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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
42,200 | my_charlen_utf8mb4 | eloqsql/strings/ctype-utf8.c | static int
my_charlen_utf8mb4(CHARSET_INFO *cs __attribute__((unused)),
const uchar *s, const uchar *e)
{
uchar c;
if (s >= e)
return MY_CS_TOOSMALL;
c= s[0];
if (c < 0xf0)
return my_valid_mbcharlen_utf8mb3(s, e);
if (c < 0xf5)
{
if (s + 4 > e) /* We need 4 characters */
return MY_CS_TOOSMALL4;
if (!IS_UTF8MB4_STEP2(c, s[1], s[2], s[3]))
return MY_CS_ILSEQ;
return 4;
}
return MY_CS_ILSEQ;
} | O3 | c | my_charlen_utf8mb4:
pushq %rbp
movq %rsp, %rbp
movl $0xffffff9b, %eax # imm = 0xFFFFFF9B
cmpq %rdx, %rsi
jae 0x87e7a
movb (%rsi), %cl
cmpb $-0x11, %cl
ja 0x87de6
movl $0x1, %eax
testb %cl, %cl
jns 0x87e7a
cmpb $-0x3e, %cl
jb 0x87e78
cmpb $-0x21, %cl
ja 0x87e3f
leaq 0x2(%rsi), %rcx
movl $0xffffff9a, %eax # imm = 0xFFFFFF9A
cmpq %rdx, %rcx
ja 0x87e7a
xorl %eax, %eax
cmpb $-0x40, 0x1(%rsi)
setl %al
addl %eax, %eax
jmp 0x87e7a
cmpb $-0xc, %cl
ja 0x87e78
leaq 0x4(%rsi), %rdi
movl $0xffffff98, %eax # imm = 0xFFFFFF98
cmpq %rdx, %rdi
ja 0x87e7a
movb 0x1(%rsi), %dl
cmpb $-0x41, %dl
jg 0x87e78
cmpb $-0x41, 0x2(%rsi)
jg 0x87e78
cmpb $-0x41, 0x3(%rsi)
jg 0x87e78
cmpb $-0x10, %cl
sete %sil
cmpb $-0x70, %dl
setb %dil
movl $0x0, %eax
testb %dil, %sil
jne 0x87e7a
cmpb $-0xc, %cl
setne %al
cmpb $-0x70, %dl
setb %cl
orb %al, %cl
movzbl %cl, %eax
shll $0x2, %eax
jmp 0x87e7a
leaq 0x3(%rsi), %rdi
movl $0xffffff99, %eax # imm = 0xFFFFFF99
cmpq %rdx, %rdi
ja 0x87e7a
movb 0x1(%rsi), %dl
cmpb $-0x41, %dl
jg 0x87e78
cmpb $-0x41, 0x2(%rsi)
movl $0x0, %eax
jg 0x87e7a
xorl %eax, %eax
cmpb $-0x60, %dl
setae %al
cmpb $-0x20, %cl
leal (%rax,%rax,2), %ecx
movl $0x3, %eax
cmovel %ecx, %eax
jmp 0x87e7a
xorl %eax, %eax
popq %rbp
retq
| my_charlen_utf8mb4:
push rbp
mov rbp, rsp
mov eax, 0FFFFFF9Bh
cmp rsi, rdx
jnb loc_87E7A
mov cl, [rsi]
cmp cl, 0EFh
ja short loc_87DE6
mov eax, 1
test cl, cl
jns loc_87E7A
cmp cl, 0C2h
jb loc_87E78
cmp cl, 0DFh
ja short loc_87E3F
lea rcx, [rsi+2]
mov eax, 0FFFFFF9Ah
cmp rcx, rdx
ja loc_87E7A
xor eax, eax
cmp byte ptr [rsi+1], 0C0h
setl al
add eax, eax
jmp loc_87E7A
loc_87DE6:
cmp cl, 0F4h
ja loc_87E78
lea rdi, [rsi+4]
mov eax, 0FFFFFF98h
cmp rdi, rdx
ja short loc_87E7A
mov dl, [rsi+1]
cmp dl, 0BFh
jg short loc_87E78
cmp byte ptr [rsi+2], 0BFh
jg short loc_87E78
cmp byte ptr [rsi+3], 0BFh
jg short loc_87E78
cmp cl, 0F0h
setz sil
cmp dl, 90h
setb dil
mov eax, 0
test sil, dil
jnz short loc_87E7A
cmp cl, 0F4h
setnz al
cmp dl, 90h
setb cl
or cl, al
movzx eax, cl
shl eax, 2
jmp short loc_87E7A
loc_87E3F:
lea rdi, [rsi+3]
mov eax, 0FFFFFF99h
cmp rdi, rdx
ja short loc_87E7A
mov dl, [rsi+1]
cmp dl, 0BFh
jg short loc_87E78
cmp byte ptr [rsi+2], 0BFh
mov eax, 0
jg short loc_87E7A
xor eax, eax
cmp dl, 0A0h
setnb al
cmp cl, 0E0h
lea ecx, [rax+rax*2]
mov eax, 3
cmovz eax, ecx
jmp short loc_87E7A
loc_87E78:
xor eax, eax
loc_87E7A:
pop rbp
retn
| long long my_charlen_utf8mb4(long long a1, char *a2, unsigned long long a3)
{
long long result; // rax
char v4; // cl
char v5; // dl
char v6; // dl
result = 4294967195LL;
if ( (unsigned long long)a2 >= a3 )
return result;
v4 = *a2;
if ( (unsigned __int8)*a2 <= 0xEFu )
{
result = 1LL;
if ( v4 >= 0 )
return result;
if ( (unsigned __int8)v4 >= 0xC2u )
{
if ( (unsigned __int8)v4 <= 0xDFu )
{
result = 4294967194LL;
if ( (unsigned long long)(a2 + 2) <= a3 )
return 2 * (unsigned int)(a2[1] < -64);
return result;
}
result = 4294967193LL;
if ( (unsigned long long)(a2 + 3) > a3 )
return result;
v6 = a2[1];
if ( v6 <= -65 )
{
result = 0LL;
if ( a2[2] <= -65 )
{
result = 3LL;
if ( v4 == -32 )
return 3 * (unsigned int)((unsigned __int8)v6 >= 0xA0u);
}
return result;
}
}
return 0LL;
}
if ( (unsigned __int8)v4 > 0xF4u )
return 0LL;
result = 4294967192LL;
if ( (unsigned long long)(a2 + 4) > a3 )
return result;
v5 = a2[1];
if ( v5 > -65 || a2[2] > -65 || a2[3] > -65 )
return 0LL;
result = 0LL;
if ( (unsigned __int8)v5 >= 0x90u || v4 != -16 )
return 4 * (unsigned int)(v4 != -12 || (unsigned __int8)v5 < 0x90u);
return result;
}
| my_charlen_utf8mb4:
PUSH RBP
MOV RBP,RSP
MOV EAX,0xffffff9b
CMP RSI,RDX
JNC 0x00187e7a
MOV CL,byte ptr [RSI]
CMP CL,0xef
JA 0x00187de6
MOV EAX,0x1
TEST CL,CL
JNS 0x00187e7a
CMP CL,0xc2
JC 0x00187e78
CMP CL,0xdf
JA 0x00187e3f
LEA RCX,[RSI + 0x2]
MOV EAX,0xffffff9a
CMP RCX,RDX
JA 0x00187e7a
XOR EAX,EAX
CMP byte ptr [RSI + 0x1],0xc0
SETL AL
ADD EAX,EAX
JMP 0x00187e7a
LAB_00187de6:
CMP CL,0xf4
JA 0x00187e78
LEA RDI,[RSI + 0x4]
MOV EAX,0xffffff98
CMP RDI,RDX
JA 0x00187e7a
MOV DL,byte ptr [RSI + 0x1]
CMP DL,0xbf
JG 0x00187e78
CMP byte ptr [RSI + 0x2],0xbf
JG 0x00187e78
CMP byte ptr [RSI + 0x3],0xbf
JG 0x00187e78
CMP CL,0xf0
SETZ SIL
CMP DL,0x90
SETC DIL
MOV EAX,0x0
TEST SIL,DIL
JNZ 0x00187e7a
CMP CL,0xf4
SETNZ AL
CMP DL,0x90
SETC CL
OR CL,AL
MOVZX EAX,CL
SHL EAX,0x2
JMP 0x00187e7a
LAB_00187e3f:
LEA RDI,[RSI + 0x3]
MOV EAX,0xffffff99
CMP RDI,RDX
JA 0x00187e7a
MOV DL,byte ptr [RSI + 0x1]
CMP DL,0xbf
JG 0x00187e78
CMP byte ptr [RSI + 0x2],0xbf
MOV EAX,0x0
JG 0x00187e7a
XOR EAX,EAX
CMP DL,0xa0
SETNC AL
CMP CL,0xe0
LEA ECX,[RAX + RAX*0x2]
MOV EAX,0x3
CMOVZ EAX,ECX
JMP 0x00187e7a
LAB_00187e78:
XOR EAX,EAX
LAB_00187e7a:
POP RBP
RET
|
ulong my_charlen_utf8mb4(int8 param_1,byte *param_2,byte *param_3)
{
byte bVar1;
byte bVar2;
if (param_3 <= param_2) {
return 0xffffff9b;
}
bVar1 = *param_2;
if (bVar1 < 0xf0) {
if (-1 < (char)bVar1) {
return 1;
}
if (0xc1 < bVar1) {
if (bVar1 < 0xe0) {
if (param_3 < param_2 + 2) {
return 0xffffff9a;
}
return (ulong)((uint)((char)param_2[1] < -0x40) * 2);
}
if (param_3 < param_2 + 3) {
return 0xffffff99;
}
if ((char)param_2[1] < -0x40) {
if (-0x41 < (char)param_2[2]) {
return 0;
}
if (bVar1 != 0xe0) {
return 3;
}
return (ulong)((uint)(0x9f < param_2[1]) * 3);
}
}
}
else if (bVar1 < 0xf5) {
if (param_3 < param_2 + 4) {
return 0xffffff98;
}
bVar2 = param_2[1];
if ((((char)bVar2 < -0x40) && ((char)param_2[2] < -0x40)) && ((char)param_2[3] < -0x40)) {
if (bVar1 == 0xf0 && bVar2 < 0x90) {
return 0;
}
return (ulong)(bVar2 < 0x90 || bVar1 != 0xf4) << 2;
}
}
return 0;
}
| |
42,201 | ftxui::Renderer(std::function<std::shared_ptr<ftxui::Node> (bool)>)::Impl::~Impl() | Andrewchistyakov[P]flashcards_lyc/build_O1/_deps/ftxui-src/src/ftxui/component/renderer.cpp | Component Renderer(std::function<Element(bool)> render) {
class Impl : public ComponentBase {
public:
explicit Impl(std::function<Element(bool)> render)
: render_(std::move(render)) {}
private:
Element Render() override { return render_(Focused()) | reflect(box_); }
bool Focusable() const override { return true; }
bool OnEvent(Event event) override {
if (event.is_mouse() && box_.Contain(event.mouse().x, event.mouse().y)) {
if (!CaptureMouse(event)) {
return false;
}
TakeFocus();
}
return false;
}
Box box_;
std::function<Element(bool)> render_;
};
return Make<Impl>(std::move(render));
} | O1 | cpp | ftxui::Renderer(std::function<std::shared_ptr<ftxui::Node> (bool)>)::Impl::~Impl():
pushq %rbx
movq %rdi, %rbx
leaq 0x2bdff(%rip), %rax # 0x59358
movq %rax, (%rdi)
movq 0x48(%rdi), %rax
testq %rax, %rax
je 0x2d573
leaq 0x38(%rbx), %rdi
movq %rdi, %rsi
movl $0x3, %edx
callq *%rax
movq %rbx, %rdi
callq 0x272d8
movl $0x58, %esi
movq %rbx, %rdi
popq %rbx
jmp 0xb400
movq %rax, %rdi
callq 0x106a9
nop
| _ZZN5ftxui8RendererESt8functionIFSt10shared_ptrINS_4NodeEEbEEEN4ImplD0Ev:
push rbx
mov rbx, rdi
lea rax, off_59358
mov [rdi], rax
mov rax, [rdi+48h]
test rax, rax
jz short loc_2D573
lea rdi, [rbx+38h]
mov rsi, rdi
mov edx, 3
call rax
loc_2D573:
mov rdi, rbx; this
call _ZN5ftxui13ComponentBaseD2Ev; ftxui::ComponentBase::~ComponentBase()
mov esi, 58h ; 'X'; unsigned __int64
mov rdi, rbx; void *
pop rbx
jmp __ZdlPvm; operator delete(void *,ulong)
mov rdi, rax
call __clang_call_terminate
| void ftxui::Renderer(std::function<std::shared_ptr<ftxui::Node> ()(bool)>)::Impl::~Impl(
ftxui::ComponentBase *this)
{
void ( *v1)(char *, char *, long long); // rax
*(_QWORD *)this = off_59358;
v1 = (void ( *)(char *, char *, long long))*((_QWORD *)this + 9);
if ( v1 )
v1((char *)this + 56, (char *)this + 56, 3LL);
ftxui::ComponentBase::~ComponentBase(this);
operator delete(this, 0x58uLL);
}
| ~Impl:
PUSH RBX
MOV RBX,RDI
LEA RAX,[0x159358]
MOV qword ptr [RDI],RAX
MOV RAX,qword ptr [RDI + 0x48]
TEST RAX,RAX
JZ 0x0012d573
LEA RDI,[RBX + 0x38]
LAB_0012d569:
MOV RSI,RDI
MOV EDX,0x3
CALL RAX
LAB_0012d573:
MOV RDI,RBX
CALL 0x001272d8
MOV ESI,0x58
MOV RDI,RBX
POP RBX
JMP 0x0010b400
|
/* ~Impl() */
void __thiscall
ftxui::Renderer(std::function<std::shared_ptr<ftxui::Node>(bool)>)::Impl::~Impl(Impl *this)
{
*(int ***)this = &PTR__Impl_00159358;
if (*(code **)(this + 0x48) != (code *)0x0) {
/* try { // try from 0012d569 to 0012d572 has its CatchHandler @ 0012d589 */
(**(code **)(this + 0x48))(this + 0x38,this + 0x38,3);
}
ComponentBase::~ComponentBase((ComponentBase *)this);
operator_delete(this,0x58);
return;
}
| |
42,202 | read_long_data2 | eloqsql/storage/maria/ma_blockrec.c | static my_bool read_long_data2(MARIA_HA *info, uchar *to, ulong length,
MARIA_EXTENT_CURSOR *extent,
uchar **data, uchar **end_of_data)
{
uint left_length= (uint) (*end_of_data - *data);
DBUG_ENTER("read_long_data2");
DBUG_PRINT("enter", ("length: %lu left_length: %u",
length, left_length));
DBUG_ASSERT(*data <= *end_of_data);
/*
Fields are never split in middle. This means that if length > rest-of-data
we should start reading from the next extent. The reason we may have
data left on the page is that if the fixed part of the row was less than
min_block_length the head block was extended to min_block_length.
This may change in the future, which is why we have the loop written
the way it's written.
*/
if (extent->first_extent && length > left_length)
{
*end_of_data= *data;
left_length= 0;
}
for(;;)
{
if (unlikely(left_length >= length))
{
memcpy(to, *data, length);
(*data)+= length;
DBUG_PRINT("info", ("left_length: %u", left_length - (uint) length));
DBUG_RETURN(0);
}
memcpy(to, *data, left_length);
to+= left_length;
length-= left_length;
if (!(*data= read_next_extent(info, extent, end_of_data)))
break;
left_length= (uint) (*end_of_data - *data);
}
DBUG_RETURN(1);
} | O0 | c | read_long_data2:
pushq %rbp
movq %rsp, %rbp
subq $0x40, %rsp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movq %rdx, -0x20(%rbp)
movq %rcx, -0x28(%rbp)
movq %r8, -0x30(%rbp)
movq %r9, -0x38(%rbp)
movq -0x38(%rbp), %rax
movq (%rax), %rax
movq -0x30(%rbp), %rcx
movq (%rcx), %rcx
subq %rcx, %rax
movl %eax, -0x3c(%rbp)
jmp 0x80486
jmp 0x80488
jmp 0x8048a
movq -0x28(%rbp), %rax
movsbl 0x34(%rax), %eax
cmpl $0x0, %eax
je 0x804b8
movq -0x20(%rbp), %rax
movl -0x3c(%rbp), %ecx
cmpq %rcx, %rax
jbe 0x804b8
movq -0x30(%rbp), %rax
movq (%rax), %rcx
movq -0x38(%rbp), %rax
movq %rcx, (%rax)
movl $0x0, -0x3c(%rbp)
jmp 0x804ba
movl -0x3c(%rbp), %eax
cmpq -0x20(%rbp), %rax
setae %al
andb $0x1, %al
movzbl %al, %eax
cmpl $0x0, %eax
setne %al
andb $0x1, %al
movzbl %al, %eax
cltq
cmpq $0x0, %rax
je 0x80508
movq -0x18(%rbp), %rdi
movq -0x30(%rbp), %rax
movq (%rax), %rsi
movq -0x20(%rbp), %rdx
callq 0x2a090
movq -0x20(%rbp), %rcx
movq -0x30(%rbp), %rax
addq (%rax), %rcx
movq %rcx, (%rax)
jmp 0x80500
jmp 0x80502
movb $0x0, -0x1(%rbp)
jmp 0x8057c
movq -0x18(%rbp), %rdi
movq -0x30(%rbp), %rax
movq (%rax), %rsi
movl -0x3c(%rbp), %eax
movl %eax, %edx
callq 0x2a090
movl -0x3c(%rbp), %ecx
movq -0x18(%rbp), %rax
movl %ecx, %ecx
addq %rcx, %rax
movq %rax, -0x18(%rbp)
movl -0x3c(%rbp), %eax
movl %eax, %ecx
movq -0x20(%rbp), %rax
subq %rcx, %rax
movq %rax, -0x20(%rbp)
movq -0x10(%rbp), %rdi
movq -0x28(%rbp), %rsi
movq -0x38(%rbp), %rdx
callq 0x78250
movq -0x30(%rbp), %rcx
movq %rax, (%rcx)
cmpq $0x0, %rax
jne 0x8055d
jmp 0x80576
movq -0x38(%rbp), %rax
movq (%rax), %rax
movq -0x30(%rbp), %rcx
movq (%rcx), %rcx
subq %rcx, %rax
movl %eax, -0x3c(%rbp)
jmp 0x804ba
jmp 0x80578
movb $0x1, -0x1(%rbp)
movb -0x1(%rbp), %al
addq $0x40, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
| read_long_data2:
push rbp
mov rbp, rsp
sub rsp, 40h
mov [rbp+var_10], rdi
mov [rbp+var_18], rsi
mov [rbp+var_20], rdx
mov [rbp+var_28], rcx
mov [rbp+var_30], r8
mov [rbp+var_38], r9
mov rax, [rbp+var_38]
mov rax, [rax]
mov rcx, [rbp+var_30]
mov rcx, [rcx]
sub rax, rcx
mov [rbp+var_3C], eax
jmp short $+2
loc_80486:
jmp short $+2
loc_80488:
jmp short $+2
loc_8048A:
mov rax, [rbp+var_28]
movsx eax, byte ptr [rax+34h]
cmp eax, 0
jz short loc_804B8
mov rax, [rbp+var_20]
mov ecx, [rbp+var_3C]
cmp rax, rcx
jbe short loc_804B8
mov rax, [rbp+var_30]
mov rcx, [rax]
mov rax, [rbp+var_38]
mov [rax], rcx
mov [rbp+var_3C], 0
loc_804B8:
jmp short $+2
loc_804BA:
mov eax, [rbp+var_3C]
cmp rax, [rbp+var_20]
setnb al
and al, 1
movzx eax, al
cmp eax, 0
setnz al
and al, 1
movzx eax, al
cdqe
cmp rax, 0
jz short loc_80508
mov rdi, [rbp+var_18]
mov rax, [rbp+var_30]
mov rsi, [rax]
mov rdx, [rbp+var_20]
call _memcpy
mov rcx, [rbp+var_20]
mov rax, [rbp+var_30]
add rcx, [rax]
mov [rax], rcx
jmp short $+2
loc_80500:
jmp short $+2
loc_80502:
mov [rbp+var_1], 0
jmp short loc_8057C
loc_80508:
mov rdi, [rbp+var_18]
mov rax, [rbp+var_30]
mov rsi, [rax]
mov eax, [rbp+var_3C]
mov edx, eax
call _memcpy
mov ecx, [rbp+var_3C]
mov rax, [rbp+var_18]
mov ecx, ecx
add rax, rcx
mov [rbp+var_18], rax
mov eax, [rbp+var_3C]
mov ecx, eax
mov rax, [rbp+var_20]
sub rax, rcx
mov [rbp+var_20], rax
mov rdi, [rbp+var_10]
mov rsi, [rbp+var_28]
mov rdx, [rbp+var_38]
call read_next_extent
mov rcx, [rbp+var_30]
mov [rcx], rax
cmp rax, 0
jnz short loc_8055D
jmp short loc_80576
loc_8055D:
mov rax, [rbp+var_38]
mov rax, [rax]
mov rcx, [rbp+var_30]
mov rcx, [rcx]
sub rax, rcx
mov [rbp+var_3C], eax
jmp loc_804BA
loc_80576:
jmp short $+2
loc_80578:
mov [rbp+var_1], 1
loc_8057C:
mov al, [rbp+var_1]
add rsp, 40h
pop rbp
retn
| char read_long_data2(_DWORD *a1, long long a2, unsigned long long a3, long long a4, long long *a5, _DWORD *a6)
{
long long v6; // r8
int v7; // r9d
long long next_extent; // rax
unsigned int v10; // [rsp+4h] [rbp-3Ch]
unsigned long long v14; // [rsp+20h] [rbp-20h]
v14 = a3;
v10 = *a6 - *(_DWORD *)a5;
if ( *(_BYTE *)(a4 + 52) && a3 > v10 )
{
*(_QWORD *)a6 = *a5;
v10 = 0;
}
while ( 1 )
{
if ( v10 >= v14 )
{
memcpy(a2, *a5, v14);
*a5 += v14;
return 0;
}
memcpy(a2, *a5, v10);
a2 += v10;
v14 -= v10;
next_extent = read_next_extent(a1, a4, (long long)a6, v10, v6, v7);
*a5 = next_extent;
if ( !next_extent )
break;
v10 = *a6 - *(_DWORD *)a5;
}
return 1;
}
| read_long_data2:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x40
MOV qword ptr [RBP + -0x10],RDI
MOV qword ptr [RBP + -0x18],RSI
MOV qword ptr [RBP + -0x20],RDX
MOV qword ptr [RBP + -0x28],RCX
MOV qword ptr [RBP + -0x30],R8
MOV qword ptr [RBP + -0x38],R9
MOV RAX,qword ptr [RBP + -0x38]
MOV RAX,qword ptr [RAX]
MOV RCX,qword ptr [RBP + -0x30]
MOV RCX,qword ptr [RCX]
SUB RAX,RCX
MOV dword ptr [RBP + -0x3c],EAX
JMP 0x00180486
LAB_00180486:
JMP 0x00180488
LAB_00180488:
JMP 0x0018048a
LAB_0018048a:
MOV RAX,qword ptr [RBP + -0x28]
MOVSX EAX,byte ptr [RAX + 0x34]
CMP EAX,0x0
JZ 0x001804b8
MOV RAX,qword ptr [RBP + -0x20]
MOV ECX,dword ptr [RBP + -0x3c]
CMP RAX,RCX
JBE 0x001804b8
MOV RAX,qword ptr [RBP + -0x30]
MOV RCX,qword ptr [RAX]
MOV RAX,qword ptr [RBP + -0x38]
MOV qword ptr [RAX],RCX
MOV dword ptr [RBP + -0x3c],0x0
LAB_001804b8:
JMP 0x001804ba
LAB_001804ba:
MOV EAX,dword ptr [RBP + -0x3c]
CMP RAX,qword ptr [RBP + -0x20]
SETNC AL
AND AL,0x1
MOVZX EAX,AL
CMP EAX,0x0
SETNZ AL
AND AL,0x1
MOVZX EAX,AL
CDQE
CMP RAX,0x0
JZ 0x00180508
MOV RDI,qword ptr [RBP + -0x18]
MOV RAX,qword ptr [RBP + -0x30]
MOV RSI,qword ptr [RAX]
MOV RDX,qword ptr [RBP + -0x20]
CALL 0x0012a090
MOV RCX,qword ptr [RBP + -0x20]
MOV RAX,qword ptr [RBP + -0x30]
ADD RCX,qword ptr [RAX]
MOV qword ptr [RAX],RCX
JMP 0x00180500
LAB_00180500:
JMP 0x00180502
LAB_00180502:
MOV byte ptr [RBP + -0x1],0x0
JMP 0x0018057c
LAB_00180508:
MOV RDI,qword ptr [RBP + -0x18]
MOV RAX,qword ptr [RBP + -0x30]
MOV RSI,qword ptr [RAX]
MOV EAX,dword ptr [RBP + -0x3c]
MOV EDX,EAX
CALL 0x0012a090
MOV ECX,dword ptr [RBP + -0x3c]
MOV RAX,qword ptr [RBP + -0x18]
MOV ECX,ECX
ADD RAX,RCX
MOV qword ptr [RBP + -0x18],RAX
MOV EAX,dword ptr [RBP + -0x3c]
MOV ECX,EAX
MOV RAX,qword ptr [RBP + -0x20]
SUB RAX,RCX
MOV qword ptr [RBP + -0x20],RAX
MOV RDI,qword ptr [RBP + -0x10]
MOV RSI,qword ptr [RBP + -0x28]
MOV RDX,qword ptr [RBP + -0x38]
CALL 0x00178250
MOV RCX,qword ptr [RBP + -0x30]
MOV qword ptr [RCX],RAX
CMP RAX,0x0
JNZ 0x0018055d
JMP 0x00180576
LAB_0018055d:
MOV RAX,qword ptr [RBP + -0x38]
MOV RAX,qword ptr [RAX]
MOV RCX,qword ptr [RBP + -0x30]
MOV RCX,qword ptr [RCX]
SUB RAX,RCX
MOV dword ptr [RBP + -0x3c],EAX
JMP 0x001804ba
LAB_00180576:
JMP 0x00180578
LAB_00180578:
MOV byte ptr [RBP + -0x1],0x1
LAB_0018057c:
MOV AL,byte ptr [RBP + -0x1]
ADD RSP,0x40
POP RBP
RET
|
int1
read_long_data2(int8 param_1,void *param_2,ulong param_3,long param_4,long *param_5,
long *param_6)
{
long lVar1;
uint local_44;
ulong local_28;
void *local_20;
local_44 = (int)*param_6 - (int)*param_5;
local_28 = param_3;
local_20 = param_2;
if ((*(char *)(param_4 + 0x34) != '\0') && (local_44 < param_3)) {
*param_6 = *param_5;
local_44 = 0;
}
while( true ) {
if (local_28 <= local_44) {
memcpy(local_20,(void *)*param_5,local_28);
*param_5 = local_28 + *param_5;
return 0;
}
memcpy(local_20,(void *)*param_5,(ulong)local_44);
local_20 = (void *)((long)local_20 + (ulong)local_44);
local_28 = local_28 - local_44;
lVar1 = read_next_extent(param_1,param_4,param_6);
*param_5 = lVar1;
if (lVar1 == 0) break;
local_44 = (int)*param_6 - (int)*param_5;
}
return 1;
}
| |
42,203 | common_chat_format_single[abi:cxx11](minja::chat_template const&, std::vector<common_chat_msg, std::allocator<common_chat_msg>> const&, common_chat_msg const&, bool, bool) | monkey531[P]llama/common/common.cpp | std::string common_chat_format_single(
const common_chat_template & tmpl,
const std::vector<common_chat_msg> & past_msg,
const common_chat_msg & new_msg,
bool add_ass,
bool use_jinja) {
std::ostringstream ss;
auto fmt_past_msg = past_msg.empty() ? "" : common_chat_apply_template(tmpl, past_msg, false, use_jinja);
std::vector<common_chat_msg> chat_new(past_msg);
// if the past_msg ends with a newline, we must preserve it in the formatted version
if (add_ass && !fmt_past_msg.empty() && fmt_past_msg.back() == '\n') {
ss << "\n";
};
// format chat with new_msg
chat_new.push_back(new_msg);
auto fmt_new_msg = common_chat_apply_template(tmpl, chat_new, add_ass, use_jinja);
// get the diff part
ss << fmt_new_msg.substr(fmt_past_msg.size(), fmt_new_msg.size() - fmt_past_msg.size());
return ss.str();
} | O3 | cpp | common_chat_format_single[abi:cxx11](minja::chat_template const&, std::vector<common_chat_msg, std::allocator<common_chat_msg>> const&, common_chat_msg const&, bool, bool):
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x1f8, %rsp # imm = 0x1F8
movl %r9d, %r15d
movl %r8d, %ebp
movq %rcx, %r12
movq %rdx, %r13
movq %rsi, %r14
movq %rdi, %rbx
leaq 0x80(%rsp), %rdi
callq 0x1bd60
movq (%r13), %rax
movzbl %r15b, %r15d
cmpq 0x8(%r13), %rax
je 0x79613
leaq 0x8(%rsp), %rdi
movq %r14, %rsi
movq %r13, %rdx
xorl %ecx, %ecx
movl %r15d, %r8d
callq 0x78e6c
jmp 0x79630
leaq 0x18(%rsp), %rax
movq %rax, -0x10(%rax)
leaq 0x74789(%rip), %rdx # 0xeddac
leaq 0x8(%rsp), %rdi
movq %rdx, %rsi
callq 0x22b0c
leaq 0x48(%rsp), %rdi
movq %r13, %rsi
callq 0x8154a
testb %bpl, %bpl
je 0x79671
movq 0x10(%rsp), %rax
testq %rax, %rax
je 0x79671
movq 0x8(%rsp), %rcx
cmpb $0xa, -0x1(%rcx,%rax)
jne 0x79671
leaq 0x7474c(%rip), %rsi # 0xeddab
leaq 0x80(%rsp), %rdi
movl $0x1, %edx
callq 0x1bb70
leaq 0x48(%rsp), %rdi
movq %r12, %rsi
callq 0x815e2
movzbl %bpl, %ecx
leaq 0x60(%rsp), %rdi
leaq 0x48(%rsp), %rdx
movq %r14, %rsi
movl %r15d, %r8d
callq 0x78e6c
movq 0x10(%rsp), %rdx
leaq 0x60(%rsp), %rsi
movq 0x8(%rsi), %rcx
subq %rdx, %rcx
leaq 0x28(%rsp), %rdi
callq 0x1ba80
movq 0x28(%rsp), %rsi
movq 0x30(%rsp), %rdx
leaq 0x80(%rsp), %rdi
callq 0x1bb70
leaq 0x38(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x796e4
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x1ba20
leaq 0x88(%rsp), %rsi
movq %rbx, %rdi
callq 0x1bfd0
leaq 0x70(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x7970f
movq 0x70(%rsp), %rsi
incq %rsi
callq 0x1ba20
leaq 0x48(%rsp), %rdi
callq 0x8160e
leaq 0x18(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x79734
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x1ba20
movq 0xb4835(%rip), %rsi # 0x12df70
leaq 0x80(%rsp), %rdi
callq 0x1b560
leaq 0xf0(%rsp), %rdi
callq 0x1b2f0
movq %rbx, %rax
addq $0x1f8, %rsp # imm = 0x1F8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x7976c
movq %rax, %rbx
jmp 0x797e2
jmp 0x79793
movq %rax, %rbx
leaq 0x38(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x79796
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x1ba20
jmp 0x79796
movq %rax, %rbx
leaq 0x70(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x797bd
movq 0x70(%rsp), %rsi
incq %rsi
callq 0x1ba20
jmp 0x797bd
jmp 0x797ba
movq %rax, %rbx
jmp 0x797c7
movq %rax, %rbx
leaq 0x48(%rsp), %rdi
callq 0x8160e
leaq 0x18(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x797e2
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x1ba20
movq 0xb4787(%rip), %rsi # 0x12df70
leaq 0x80(%rsp), %rdi
callq 0x1b560
leaq 0xf0(%rsp), %rdi
callq 0x1b2f0
movq %rbx, %rdi
callq 0x1c1e0
| _Z25common_chat_format_singleB5cxx11RKN5minja13chat_templateERKSt6vectorI15common_chat_msgSaIS4_EERKS4_bb:
push rbp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 1F8h
mov r15d, r9d
mov ebp, r8d
mov r12, rcx
mov r13, rdx
mov r14, rsi
mov rbx, rdi
lea rdi, [rsp+228h+var_1A8]
call __ZNSt7__cxx1119basic_ostringstreamIcSt11char_traitsIcESaIcEEC1Ev; std::ostringstream::basic_ostringstream(void)
mov rax, [r13+0]
movzx r15d, r15b
cmp rax, [r13+8]
jz short loc_79613
lea rdi, [rsp+228h+var_220]
mov rsi, r14
mov rdx, r13
xor ecx, ecx
mov r8d, r15d
call _Z26common_chat_apply_templateB5cxx11RKN5minja13chat_templateERKSt6vectorI15common_chat_msgSaIS4_EEbb; common_chat_apply_template(minja::chat_template const&,std::vector<common_chat_msg> const&,bool,bool)
jmp short loc_79630
loc_79613:
lea rax, [rsp+228h+var_210]
mov [rax-10h], rax
lea rdx, aErrorWhileHand_0+34h; ""
lea rdi, [rsp+228h+var_220]
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_79630:
lea rdi, [rsp+228h+var_1E0]
mov rsi, r13
call _ZNSt6vectorI15common_chat_msgSaIS0_EEC2ERKS2_; std::vector<common_chat_msg>::vector(std::vector<common_chat_msg> const&)
test bpl, bpl
jz short loc_79671
mov rax, [rsp+228h+var_218]
test rax, rax
jz short loc_79671
mov rcx, [rsp+228h+var_220]
cmp byte ptr [rcx+rax-1], 0Ah
jnz short loc_79671
lea rsi, aErrorWhileHand_0+33h; "\n"
lea rdi, [rsp+228h+var_1A8]
mov edx, 1
call __ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l; std::__ostream_insert<char,std::char_traits<char>>(std::ostream &,char const*,long)
loc_79671:
lea rdi, [rsp+228h+var_1E0]
mov rsi, r12
call _ZNSt6vectorI15common_chat_msgSaIS0_EE9push_backERKS0_; std::vector<common_chat_msg>::push_back(common_chat_msg const&)
movzx ecx, bpl
lea rdi, [rsp+228h+var_1C8]
lea rdx, [rsp+228h+var_1E0]
mov rsi, r14
mov r8d, r15d
call _Z26common_chat_apply_templateB5cxx11RKN5minja13chat_templateERKSt6vectorI15common_chat_msgSaIS4_EEbb; common_chat_apply_template(minja::chat_template const&,std::vector<common_chat_msg> const&,bool,bool)
mov rdx, [rsp+228h+var_218]
lea rsi, [rsp+228h+var_1C8]
mov rcx, [rsi+8]
sub rcx, rdx
lea rdi, [rsp+228h+var_200]
call __ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6substrEmm; std::string::substr(ulong,ulong)
mov rsi, [rsp+228h+var_200]
mov rdx, [rsp+228h+var_1F8]
lea rdi, [rsp+228h+var_1A8]
call __ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l; std::__ostream_insert<char,std::char_traits<char>>(std::ostream &,char const*,long)
lea rax, [rsp+228h+var_1F0]
mov rdi, [rax-10h]; void *
cmp rdi, rax
jz short loc_796E4
mov rsi, [rsp+228h+var_1F0]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_796E4:
lea rsi, [rsp+228h+var_1A0]
mov rdi, rbx
call __ZNKSt7__cxx1115basic_stringbufIcSt11char_traitsIcESaIcEE3strEv; std::stringbuf::str(void)
lea rax, [rsp+228h+var_1B8]
mov rdi, [rax-10h]; void *
cmp rdi, rax
jz short loc_7970F
mov rsi, [rsp+228h+var_1B8]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_7970F:
lea rdi, [rsp+228h+var_1E0]
call _ZNSt6vectorI15common_chat_msgSaIS0_EED2Ev; std::vector<common_chat_msg>::~vector()
lea rax, [rsp+228h+var_210]
mov rdi, [rax-10h]; void *
cmp rdi, rax
jz short loc_79734
mov rsi, [rsp+228h+var_210]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_79734:
mov rsi, cs:_ZTTNSt7__cxx1119basic_ostringstreamIcSt11char_traitsIcESaIcEEE_ptr
lea rdi, [rsp+228h+var_1A8]
call __ZNSt7__cxx1119basic_ostringstreamIcSt11char_traitsIcESaIcEED2Ev; std::ostringstream::~ostringstream()
lea rdi, [rsp+228h+var_138]; this
call __ZNSt8ios_baseD2Ev; std::ios_base::~ios_base()
mov rax, rbx
add rsp, 1F8h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
jmp short $+2
loc_7976C:
mov rbx, rax
jmp short loc_797E2
jmp short loc_79793
mov rbx, rax
lea rax, [rsp+arg_30]
mov rdi, [rax-10h]; void *
cmp rdi, rax
jz short loc_79796
mov rsi, [rsp+arg_30]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
jmp short loc_79796
loc_79793:
mov rbx, rax
loc_79796:
lea rax, [rsp+arg_68]
mov rdi, [rax-10h]; void *
cmp rdi, rax
jz short loc_797BD
mov rsi, [rsp+arg_68]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
jmp short loc_797BD
jmp short loc_797BA
mov rbx, rax
jmp short loc_797C7
loc_797BA:
mov rbx, rax
loc_797BD:
lea rdi, [rsp+arg_40]
call _ZNSt6vectorI15common_chat_msgSaIS0_EED2Ev; std::vector<common_chat_msg>::~vector()
loc_797C7:
lea rax, [rsp+arg_10]
mov rdi, [rax-10h]; void *
cmp rdi, rax
jz short loc_797E2
mov rsi, [rsp+arg_10]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_797E2:
mov rsi, cs:_ZTTNSt7__cxx1119basic_ostringstreamIcSt11char_traitsIcESaIcEEE_ptr
lea rdi, [rsp+arg_78]
call __ZNSt7__cxx1119basic_ostringstreamIcSt11char_traitsIcESaIcEED2Ev; std::ostringstream::~ostringstream()
lea rdi, [rsp+arg_E8]; this
call __ZNSt8ios_baseD2Ev; std::ios_base::~ios_base()
mov rdi, rbx
call __Unwind_Resume
| long long common_chat_format_single[abi:cxx11](
long long a1,
common_chat_inputs *a2,
long long *a3,
long long a4,
unsigned __int8 a5,
unsigned __int8 a6)
{
char *v11; // [rsp+8h] [rbp-220h] BYREF
long long v12; // [rsp+10h] [rbp-218h]
_QWORD v13[2]; // [rsp+18h] [rbp-210h] BYREF
void *v14[2]; // [rsp+28h] [rbp-200h] BYREF
long long v15; // [rsp+38h] [rbp-1F0h] BYREF
long long v16[3]; // [rsp+48h] [rbp-1E0h] BYREF
void *v17[2]; // [rsp+60h] [rbp-1C8h] BYREF
long long v18; // [rsp+70h] [rbp-1B8h] BYREF
_BYTE v19[8]; // [rsp+80h] [rbp-1A8h] BYREF
_BYTE v20[104]; // [rsp+88h] [rbp-1A0h] BYREF
_BYTE v21[312]; // [rsp+F0h] [rbp-138h] BYREF
std::ostringstream::basic_ostringstream(v19);
if ( *a3 == a3[1] )
{
v11 = (char *)v13;
std::string::_M_construct<char const*>((long long)&v11, "", (long long)"");
}
else
{
common_chat_apply_template[abi:cxx11](&v11, a2, a3, 0, a6);
}
std::vector<common_chat_msg>::vector(v16, a3);
if ( a5 && v12 && v11[v12 - 1] == 10 )
std::__ostream_insert<char,std::char_traits<char>>(v19, "\n", 1LL);
std::vector<common_chat_msg>::push_back(v16, a4);
common_chat_apply_template[abi:cxx11](v17, a2, v16, a5, a6);
std::string::substr(v14, v17, v12, (char *)v17[1] - v12);
std::__ostream_insert<char,std::char_traits<char>>(v19, v14[0], v14[1]);
if ( v14[0] != &v15 )
operator delete(v14[0], v15 + 1);
std::stringbuf::str(a1, v20);
if ( v17[0] != &v18 )
operator delete(v17[0], v18 + 1);
std::vector<common_chat_msg>::~vector(v16);
if ( v11 != (char *)v13 )
operator delete(v11, v13[0] + 1LL);
std::ostringstream::~ostringstream(v19, &`VTT for'std::ostringstream);
std::ios_base::~ios_base((std::ios_base *)v21);
return a1;
}
| common_chat_format_single[abi:cxx11]:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x1f8
MOV R15D,R9D
MOV EBP,R8D
MOV R12,RCX
MOV R13,RDX
MOV R14,RSI
MOV RBX,RDI
LEA RDI,[RSP + 0x80]
CALL 0x0011bd60
MOV RAX,qword ptr [R13]
MOVZX R15D,R15B
CMP RAX,qword ptr [R13 + 0x8]
JZ 0x00179613
LAB_001795fc:
LEA RDI,[RSP + 0x8]
MOV RSI,R14
MOV RDX,R13
XOR ECX,ECX
MOV R8D,R15D
CALL 0x00178e6c
JMP 0x00179630
LAB_00179613:
LEA RAX,[RSP + 0x18]
MOV qword ptr [RAX + -0x10],RAX
LAB_0017961c:
LEA RDX,[0x1eddac]
LEA RDI,[RSP + 0x8]
MOV RSI,RDX
CALL 0x00122b0c
LAB_00179630:
LEA RDI,[RSP + 0x48]
MOV RSI,R13
CALL 0x0018154a
TEST BPL,BPL
JZ 0x00179671
MOV RAX,qword ptr [RSP + 0x10]
TEST RAX,RAX
JZ 0x00179671
MOV RCX,qword ptr [RSP + 0x8]
CMP byte ptr [RCX + RAX*0x1 + -0x1],0xa
JNZ 0x00179671
LAB_00179658:
LEA RSI,[0x1eddab]
LEA RDI,[RSP + 0x80]
MOV EDX,0x1
CALL 0x0011bb70
LAB_00179671:
LEA RDI,[RSP + 0x48]
MOV RSI,R12
CALL 0x001815e2
LAB_0017967e:
MOVZX ECX,BPL
LEA RDI,[RSP + 0x60]
LEA RDX,[RSP + 0x48]
MOV RSI,R14
MOV R8D,R15D
CALL 0x00178e6c
MOV RDX,qword ptr [RSP + 0x10]
LEA RSI,[RSP + 0x60]
MOV RCX,qword ptr [RSI + 0x8]
SUB RCX,RDX
LAB_001796a8:
LEA RDI,[RSP + 0x28]
CALL 0x0011ba80
MOV RSI,qword ptr [RSP + 0x28]
MOV RDX,qword ptr [RSP + 0x30]
LAB_001796bc:
LEA RDI,[RSP + 0x80]
CALL 0x0011bb70
LEA RAX,[RSP + 0x38]
MOV RDI,qword ptr [RAX + -0x10]
CMP RDI,RAX
JZ 0x001796e4
MOV RSI,qword ptr [RSP + 0x38]
INC RSI
CALL 0x0011ba20
LAB_001796e4:
LEA RSI,[RSP + 0x88]
LAB_001796ec:
MOV RDI,RBX
CALL 0x0011bfd0
LAB_001796f4:
LEA RAX,[RSP + 0x70]
MOV RDI,qword ptr [RAX + -0x10]
CMP RDI,RAX
JZ 0x0017970f
MOV RSI,qword ptr [RSP + 0x70]
INC RSI
CALL 0x0011ba20
LAB_0017970f:
LEA RDI,[RSP + 0x48]
CALL 0x0018160e
LEA RAX,[RSP + 0x18]
MOV RDI,qword ptr [RAX + -0x10]
CMP RDI,RAX
JZ 0x00179734
MOV RSI,qword ptr [RSP + 0x18]
INC RSI
CALL 0x0011ba20
LAB_00179734:
MOV RSI,qword ptr [0x0022df70]
LEA RDI,[RSP + 0x80]
CALL 0x0011b560
LEA RDI,[RSP + 0xf0]
CALL 0x0011b2f0
MOV RAX,RBX
ADD RSP,0x1f8
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
|
/* common_chat_format_single[abi:cxx11](minja::chat_template const&, std::vector<common_chat_msg,
std::allocator<common_chat_msg> > const&, common_chat_msg const&, bool, bool) */
chat_template *
common_chat_format_single_abi_cxx11_
(chat_template *param_1,vector *param_2,common_chat_msg *param_3,bool param_4,bool param_5
)
{
int7 in_register_00000009;
long *local_220;
long local_218;
long local_210 [2];
long *local_200;
long local_1f8;
long local_1f0 [2];
vector<common_chat_msg,std::allocator<common_chat_msg>> local_1e0 [24];
long *local_1c8 [2];
long local_1b8 [2];
ostringstream local_1a8 [112];
ios_base local_138 [264];
std::__cxx11::ostringstream::ostringstream(local_1a8);
if (*(long *)param_3 == *(long *)(param_3 + 8)) {
local_220 = local_210;
/* try { // try from 0017961c to 0017962f has its CatchHandler @ 0017976a */
std::__cxx11::string::_M_construct<char_const*>(&local_220,"");
}
else {
/* try { // try from 001795fc to 00179610 has its CatchHandler @ 0017976c */
common_chat_apply_template_abi_cxx11_
((chat_template *)&local_220,param_2,SUB81(param_3,0),false);
}
/* try { // try from 00179630 to 0017963c has its CatchHandler @ 001797b5 */
std::vector<common_chat_msg,std::allocator<common_chat_msg>>::vector(local_1e0,(vector *)param_3);
if (((param_5) && (local_218 != 0)) && (*(char *)((long)local_220 + local_218 + -1) == '\n')) {
/* try { // try from 00179658 to 0017967d has its CatchHandler @ 001797ba */
std::__ostream_insert<char,std::char_traits<char>>((ostream *)local_1a8,"\n",1);
}
std::vector<common_chat_msg,std::allocator<common_chat_msg>>::push_back
(local_1e0,(common_chat_msg *)CONCAT71(in_register_00000009,param_4));
/* try { // try from 0017967e to 00179696 has its CatchHandler @ 001797b3 */
common_chat_apply_template_abi_cxx11_
((chat_template *)local_1c8,param_2,SUB81(local_1e0,0),param_5);
/* try { // try from 001796a8 to 001796b1 has its CatchHandler @ 00179793 */
std::__cxx11::string::substr((ulong)&local_200,(ulong)local_1c8);
/* try { // try from 001796bc to 001796c8 has its CatchHandler @ 00179773 */
std::__ostream_insert<char,std::char_traits<char>>
((ostream *)local_1a8,(char *)local_200,local_1f8);
if (local_200 != local_1f0) {
operator_delete(local_200,local_1f0[0] + 1);
}
/* try { // try from 001796ec to 001796f3 has its CatchHandler @ 00179771 */
std::__cxx11::stringbuf::str();
if (local_1c8[0] != local_1b8) {
operator_delete(local_1c8[0],local_1b8[0] + 1);
}
std::vector<common_chat_msg,std::allocator<common_chat_msg>>::~vector(local_1e0);
if (local_220 != local_210) {
operator_delete(local_220,local_210[0] + 1);
}
std::__cxx11::ostringstream::~ostringstream(local_1a8);
std::ios_base::~ios_base(local_138);
return param_1;
}
| |
42,204 | Catch::BinaryExpr<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, char const (&) [12]>::streamReconstructedExpression(std::ostream&) const | 11AgReS1SoR11[P]Graph/build_O1/_deps/catch2-src/src/catch2/../catch2/internal/catch_decomposer.hpp | void streamReconstructedExpression( std::ostream &os ) const override {
formatReconstructedExpression
( os, Catch::Detail::stringify( m_lhs ), m_op, Catch::Detail::stringify( m_rhs ) );
} | O1 | cpp | Catch::BinaryExpr<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, char const (&) [12]>::streamReconstructedExpression(std::ostream&) const:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x40, %rsp
movq %rsi, %rbx
movq %rdi, %r12
movq 0x10(%rdi), %rsi
leaq 0x20(%rsp), %rdi
callq 0x20454
movq 0x18(%r12), %r14
movq 0x20(%r12), %r15
movq 0x28(%r12), %r12
movl $0x4, %r13d
movl $0x4, %edx
movq %r12, %rdi
xorl %esi, %esi
callq 0x105b0
movq %rax, %rdx
subq %r12, %rdx
testq %rax, %rax
cmoveq %r13, %rdx
movq %rsp, %rdi
movq %r12, %rsi
callq 0x20301
leaq 0x20(%rsp), %rsi
movq %rsp, %r8
movq %rbx, %rdi
movq %r14, %rdx
movq %r15, %rcx
callq 0x2dc60
leaq 0x10(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x197f2
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x104f0
leaq 0x30(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x1980d
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x104f0
addq $0x40, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
movq %rax, %rbx
leaq 0x10(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x1983e
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x104f0
jmp 0x1983e
movq %rax, %rbx
leaq 0x30(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x19859
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x104f0
movq %rbx, %rdi
callq 0x10930
nop
| _ZNK5Catch10BinaryExprIRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERA4_KcE29streamReconstructedExpressionERSo:
push r15
push r14
push r13
push r12
push rbx
sub rsp, 40h
mov rbx, rsi
mov r12, rdi
mov rsi, [rdi+10h]
lea rdi, [rsp+68h+var_48]
call _ZN5Catch11StringMakerINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEvE7convertERKS6_; Catch::StringMaker<std::string,void>::convert(std::string const&)
mov r14, [r12+18h]
mov r15, [r12+20h]
mov r12, [r12+28h]
mov r13d, 4
mov edx, 4
mov rdi, r12
xor esi, esi
call _memchr
mov rdx, rax
sub rdx, r12
test rax, rax
cmovz rdx, r13
mov rdi, rsp
mov rsi, r12
call _ZN5Catch6Detail17convertIntoStringB5cxx11ENS_9StringRefE; Catch::Detail::convertIntoString(Catch::StringRef)
lea rsi, [rsp+68h+var_48]
mov r8, rsp
mov rdi, rbx
mov rdx, r14
mov rcx, r15
call _ZN5Catch29formatReconstructedExpressionERSoRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEENS_9StringRefES8_; Catch::formatReconstructedExpression(std::ostream &,std::string const&,Catch::StringRef,std::string const&)
lea rax, [rsp+68h+var_58]
mov rdi, [rax-10h]; void *
cmp rdi, rax
jz short loc_197F2
mov rsi, [rsp+68h+var_58]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_197F2:
lea rax, [rsp+68h+var_38]
mov rdi, [rax-10h]; void *
cmp rdi, rax
jz short loc_1980D
mov rsi, [rsp+68h+var_38]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_1980D:
add rsp, 40h
pop rbx
pop r12
pop r13
pop r14
pop r15
retn
mov rbx, rax
lea rax, [rsp+arg_8]
mov rdi, [rax-10h]; void *
cmp rdi, rax
jz short loc_1983E
mov rsi, [rsp+arg_8]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
jmp short loc_1983E
mov rbx, rax
loc_1983E:
lea rax, [rsp+arg_28]
mov rdi, [rax-10h]; void *
cmp rdi, rax
jz short loc_19859
mov rsi, [rsp+arg_28]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_19859:
mov rdi, rbx
call __Unwind_Resume
| void Catch::BinaryExpr<std::string const&,char const(&)[4]>::streamReconstructedExpression(
_QWORD *a1,
long long a2)
{
long long v2; // r14
long long v3; // r15
long long v4; // r12
long long v5; // rax
long long v6; // rdx
void *v7[2]; // [rsp+0h] [rbp-68h] BYREF
long long v8; // [rsp+10h] [rbp-58h] BYREF
void *v9[2]; // [rsp+20h] [rbp-48h] BYREF
long long v10; // [rsp+30h] [rbp-38h] BYREF
Catch::StringMaker<std::string,void>::convert(v9, a1[2]);
v2 = a1[3];
v3 = a1[4];
v4 = a1[5];
v5 = memchr(v4, 0LL, 4LL);
v6 = v5 - v4;
if ( !v5 )
v6 = 4LL;
Catch::Detail::convertIntoString[abi:cxx11](v7, v4, v6);
Catch::formatReconstructedExpression(a2, v9, v2, v3, v7);
if ( v7[0] != &v8 )
operator delete(v7[0], v8 + 1);
if ( v9[0] != &v10 )
operator delete(v9[0], v10 + 1);
}
| streamReconstructedExpression:
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x40
MOV RBX,RSI
MOV R12,RDI
MOV RSI,qword ptr [RDI + 0x10]
LEA RDI,[RSP + 0x20]
CALL 0x00120454
MOV R14,qword ptr [R12 + 0x18]
MOV R15,qword ptr [R12 + 0x20]
MOV R12,qword ptr [R12 + 0x28]
MOV R13D,0x4
MOV EDX,0x4
MOV RDI,R12
XOR ESI,ESI
CALL 0x001105b0
MOV RDX,RAX
SUB RDX,R12
TEST RAX,RAX
CMOVZ RDX,R13
LAB_001197b6:
MOV RDI,RSP
MOV RSI,R12
CALL 0x00120301
LAB_001197c1:
LEA RSI,[RSP + 0x20]
MOV R8,RSP
MOV RDI,RBX
MOV RDX,R14
MOV RCX,R15
CALL 0x0012dc60
LAB_001197d7:
LEA RAX,[RSP + 0x10]
MOV RDI,qword ptr [RAX + -0x10]
CMP RDI,RAX
JZ 0x001197f2
MOV RSI,qword ptr [RSP + 0x10]
INC RSI
CALL 0x001104f0
LAB_001197f2:
LEA RAX,[RSP + 0x30]
MOV RDI,qword ptr [RAX + -0x10]
CMP RDI,RAX
JZ 0x0011980d
MOV RSI,qword ptr [RSP + 0x30]
INC RSI
CALL 0x001104f0
LAB_0011980d:
ADD RSP,0x40
POP RBX
POP R12
POP R13
POP R14
POP R15
RET
|
/* Catch::BinaryExpr<std::__cxx11::string const&, char const (&)
[4]>::streamReconstructedExpression(std::ostream&) const */
void __thiscall
Catch::BinaryExpr<std::__cxx11::string_const&,char_const(&)[4]>::streamReconstructedExpression
(BinaryExpr<std::__cxx11::string_const&,char_const(&)[4]> *this,ostream *param_1)
{
int8 uVar1;
int8 uVar2;
void *__s;
void *pvVar3;
long lVar4;
long *local_68 [2];
long local_58 [2];
long *local_48 [2];
long local_38 [2];
StringMaker<std::__cxx11::string,void>::convert
((StringMaker<std::__cxx11::string,void> *)local_48,*(string **)(this + 0x10));
uVar1 = *(int8 *)(this + 0x18);
uVar2 = *(int8 *)(this + 0x20);
__s = *(void **)(this + 0x28);
pvVar3 = memchr(__s,0,4);
lVar4 = (long)pvVar3 - (long)__s;
if (pvVar3 == (void *)0x0) {
lVar4 = 4;
}
/* try { // try from 001197b6 to 001197c0 has its CatchHandler @ 0011983b */
Detail::convertIntoString_abi_cxx11_(local_68,__s,lVar4);
/* try { // try from 001197c1 to 001197d6 has its CatchHandler @ 0011981b */
formatReconstructedExpression((Catch *)param_1,local_48,uVar1,uVar2,local_68);
if (local_68[0] != local_58) {
operator_delete(local_68[0],local_58[0] + 1);
}
if (local_48[0] != local_38) {
operator_delete(local_48[0],local_38[0] + 1);
}
return;
}
| |
42,205 | 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>::basic_json(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>&&) | monkey531[P]llama/common/json.hpp | basic_json(basic_json&& other) noexcept
: json_base_class_t(std::forward<json_base_class_t>(other)),
m_data(std::move(other.m_data))
{
// check that passed value is valid
other.assert_invariant(false);
// invalidate payload
other.m_data.m_type = value_t::null;
other.m_data.m_value = {};
set_parents();
assert_invariant();
} | O0 | 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>::basic_json(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>&&):
subq $0x28, %rsp
movq %rdi, 0x20(%rsp)
movq %rsi, 0x18(%rsp)
movq 0x20(%rsp), %rax
movq %rax, 0x8(%rsp)
movq 0x18(%rsp), %rcx
movups (%rcx), %xmm0
movups %xmm0, (%rax)
movq 0x18(%rsp), %rdi
xorl %esi, %esi
callq 0xae950
movq 0x8(%rsp), %rdi
movq 0x18(%rsp), %rax
movb $0x0, (%rax)
movq $0x0, 0x10(%rsp)
movq 0x18(%rsp), %rax
movq 0x10(%rsp), %rcx
movq %rcx, 0x8(%rax)
callq 0xaea50
jmp 0xae8da
movq 0x8(%rsp), %rdi
movl $0x1, %esi
callq 0xae950
addq $0x28, %rsp
retq
movq %rax, %rdi
callq 0x5e2c0
nopw %cs:(%rax,%rax)
| _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEC2EOSD_:
sub rsp, 28h
mov [rsp+28h+var_8], rdi
mov [rsp+28h+var_10], rsi
mov rax, [rsp+28h+var_8]
mov [rsp+28h+var_20], rax
mov rcx, [rsp+28h+var_10]
movups xmm0, xmmword ptr [rcx]
movups xmmword ptr [rax], xmm0
mov rdi, [rsp+28h+var_10]
xor esi, esi
call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE16assert_invariantEb; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::assert_invariant(bool)
mov rdi, [rsp+28h+var_20]
mov rax, [rsp+28h+var_10]
mov byte ptr [rax], 0
mov [rsp+28h+var_18], 0
mov rax, [rsp+28h+var_10]
mov rcx, [rsp+28h+var_18]
mov [rax+8], rcx
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE11set_parentsEv; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::set_parents(void)
jmp short $+2
loc_AE8DA:
mov rdi, [rsp+28h+var_20]
mov esi, 1
call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE16assert_invariantEb; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::assert_invariant(bool)
add rsp, 28h
retn
mov rdi, rax
call __clang_call_terminate
| 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>::basic_json(
_OWORD *a1,
long long a2)
{
*a1 = *(_OWORD *)a2;
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::assert_invariant(
a2,
0LL);
*(_BYTE *)a2 = 0;
*(_QWORD *)(a2 + 8) = 0LL;
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::set_parents(a1);
return nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::assert_invariant(
a1,
1LL);
}
| basic_json:
SUB RSP,0x28
MOV qword ptr [RSP + 0x20],RDI
MOV qword ptr [RSP + 0x18],RSI
MOV RAX,qword ptr [RSP + 0x20]
MOV qword ptr [RSP + 0x8],RAX
MOV RCX,qword ptr [RSP + 0x18]
MOVUPS XMM0,xmmword ptr [RCX]
MOVUPS xmmword ptr [RAX],XMM0
MOV RDI,qword ptr [RSP + 0x18]
XOR ESI,ESI
CALL 0x001ae950
MOV RDI,qword ptr [RSP + 0x8]
MOV RAX,qword ptr [RSP + 0x18]
MOV byte ptr [RAX],0x0
MOV qword ptr [RSP + 0x10],0x0
MOV RAX,qword ptr [RSP + 0x18]
MOV RCX,qword ptr [RSP + 0x10]
MOV qword ptr [RAX + 0x8],RCX
LAB_001ae8d3:
CALL 0x001aea50
JMP 0x001ae8da
LAB_001ae8da:
MOV RDI,qword ptr [RSP + 0x8]
MOV ESI,0x1
CALL 0x001ae950
ADD RSP,0x28
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>::basic_json(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,
std::vector, std::__cxx11::string, bool, long, unsigned long, double, std::allocator,
nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned
char> >, void>&&) */
void __thiscall
nlohmann::json_abi_v3_11_3::
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,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>
*this,basic_json *param_1)
{
int8 uVar1;
uVar1 = *(int8 *)(param_1 + 8);
*(int8 *)this = *(int8 *)param_1;
*(int8 *)(this + 8) = uVar1;
assert_invariant(SUB81(param_1,0));
*param_1 = 0;
*(int8 *)(param_1 + 8) = 0;
/* try { // try from 001ae8d3 to 001ae8d7 has its CatchHandler @ 001ae8ee */
set_parents();
assert_invariant(SUB81(this,0));
return;
}
| |
42,206 | mi_write_blob_record | eloqsql/storage/myisam/mi_dynrec.c | int _mi_write_blob_record(MI_INFO *info, const uchar *record)
{
uchar *rec_buff;
int error;
ulong reclength,reclength2,extra;
extra= (ALIGN_SIZE(MI_MAX_DYN_BLOCK_HEADER)+MI_SPLIT_LENGTH+
MI_DYN_DELETE_BLOCK_HEADER+1);
reclength= (info->s->base.pack_reclength +
_mi_calc_total_blob_length(info,record)+ extra);
if (!(rec_buff=(uchar*) my_alloca(reclength)))
{
my_errno= HA_ERR_OUT_OF_MEM; /* purecov: inspected */
return(-1);
}
reclength2= _mi_rec_pack(info,rec_buff+ALIGN_SIZE(MI_MAX_DYN_BLOCK_HEADER),
record);
DBUG_PRINT("info",("reclength: %lu reclength2: %lu",
reclength, reclength2));
DBUG_ASSERT(reclength2 <= reclength);
error=write_dynamic_record(info,rec_buff+ALIGN_SIZE(MI_MAX_DYN_BLOCK_HEADER),
reclength2);
my_afree(rec_buff);
return(error);
} | O3 | c | mi_write_blob_record:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movq %rsi, %r14
movq %rdi, %rbx
movq (%rdi), %rax
movq 0x148(%rax), %r15
callq 0x7735c
leaq (%r15,%rax), %rsi
addq $0x5d, %rsi
xorl %edi, %edi
xorl %edx, %edx
callq 0x9f6e1
testq %rax, %rax
je 0x77343
movq %rax, %r15
movq %rax, %r12
addq $0x18, %r12
movq %rbx, %rdi
movq %r12, %rsi
movq %r14, %rdx
callq 0x76a22
movl %eax, %edx
movq %rbx, %rdi
movq %r12, %rsi
callq 0x76d94
movl %eax, %ebx
movq %r15, %rdi
callq 0x9f90e
movl %ebx, %eax
jmp 0x77353
callq 0xa13e6
movl $0x80, (%rax)
movl $0xffffffff, %eax # imm = 0xFFFFFFFF
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
| _mi_write_blob_record:
push rbp
mov rbp, rsp
push r15
push r14
push r12
push rbx
mov r14, rsi
mov rbx, rdi
mov rax, [rdi]
mov r15, [rax+148h]
call _mi_calc_total_blob_length
lea rsi, [r15+rax]
add rsi, 5Dh ; ']'
xor edi, edi
xor edx, edx
call my_malloc
test rax, rax
jz short loc_77343
mov r15, rax
mov r12, rax
add r12, 18h
mov rdi, rbx
mov rsi, r12
mov rdx, r14
call _mi_rec_pack
mov edx, eax
mov rdi, rbx
mov rsi, r12
call write_dynamic_record_0
mov ebx, eax
mov rdi, r15
call my_free
mov eax, ebx
jmp short loc_77353
loc_77343:
call _my_thread_var
mov dword ptr [rax], 80h
mov eax, 0FFFFFFFFh
loc_77353:
pop rbx
pop r12
pop r14
pop r15
pop rbp
retn
| long long mi_write_blob_record(_BYTE *a1, char *a2)
{
long long v2; // r15
long long v3; // rax
long long v4; // rax
long long v5; // r15
long long v6; // r12
unsigned int v7; // eax
unsigned int v8; // ebx
v2 = *(_QWORD *)(*(_QWORD *)a1 + 328LL);
v3 = mi_calc_total_blob_length();
v4 = my_malloc(0LL, v2 + v3 + 93, 0LL);
if ( v4 )
{
v5 = v4;
v6 = v4 + 24;
v7 = mi_rec_pack((long long)a1, (_BYTE *)(v4 + 24), a2);
v8 = write_dynamic_record_0(a1, v6, v7);
my_free(v5);
return v8;
}
else
{
*(_DWORD *)my_thread_var(0LL) = 128;
return 0xFFFFFFFFLL;
}
}
| _mi_write_blob_record:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH R12
PUSH RBX
MOV R14,RSI
MOV RBX,RDI
MOV RAX,qword ptr [RDI]
MOV R15,qword ptr [RAX + 0x148]
CALL 0x0017735c
LEA RSI,[R15 + RAX*0x1]
ADD RSI,0x5d
XOR EDI,EDI
XOR EDX,EDX
CALL 0x0019f6e1
TEST RAX,RAX
JZ 0x00177343
MOV R15,RAX
MOV R12,RAX
ADD R12,0x18
MOV RDI,RBX
MOV RSI,R12
MOV RDX,R14
CALL 0x00176a22
MOV EDX,EAX
MOV RDI,RBX
MOV RSI,R12
CALL 0x00176d94
MOV EBX,EAX
MOV RDI,R15
CALL 0x0019f90e
MOV EAX,EBX
JMP 0x00177353
LAB_00177343:
CALL 0x001a13e6
MOV dword ptr [RAX],0x80
MOV EAX,0xffffffff
LAB_00177353:
POP RBX
POP R12
POP R14
POP R15
POP RBP
RET
|
int4 _mi_write_blob_record(long *param_1,int8 param_2)
{
int4 uVar1;
long lVar2;
long lVar3;
int4 *puVar4;
lVar3 = *(long *)(*param_1 + 0x148);
lVar2 = _mi_calc_total_blob_length();
lVar3 = my_malloc(0,lVar3 + lVar2 + 0x5d,0);
if (lVar3 == 0) {
puVar4 = (int4 *)_my_thread_var();
*puVar4 = 0x80;
uVar1 = 0xffffffff;
}
else {
uVar1 = _mi_rec_pack(param_1,lVar3 + 0x18,param_2);
uVar1 = write_dynamic_record(param_1,lVar3 + 0x18,uVar1);
my_free(lVar3);
}
return uVar1;
}
| |
42,207 | ma_ft_store | eloqsql/storage/maria/ma_ft_update.c | static int _ma_ft_store(MARIA_HA *info, uint keynr, uchar *keybuf,
FT_WORD *wlist, my_off_t filepos)
{
DBUG_ENTER("_ma_ft_store");
for (; wlist->pos; wlist++)
{
MARIA_KEY key;
_ma_ft_make_key(info, &key, keynr, keybuf, wlist, filepos);
if (_ma_ck_write(info, &key))
DBUG_RETURN(1);
}
DBUG_RETURN(0);
} | O3 | c | ma_ft_store:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %r8, -0x30(%rbp)
xorl %eax, %eax
cmpq $0x0, (%rcx)
je 0x61544
movq %rcx, %r12
movq %rdx, %r15
movl %esi, %r13d
movq %rdi, %rbx
leaq -0x50(%rbp), %r14
movq %rbx, %rdi
movq %r14, %rsi
movl %r13d, %edx
movq %r15, %rcx
movq %r12, %r8
movq -0x30(%rbp), %r9
callq 0x613ad
movq %rbx, %rdi
movq %r14, %rsi
callq 0x57148
testb %al, %al
jne 0x6153f
cmpq $0x0, 0x18(%r12)
leaq 0x18(%r12), %r12
jne 0x61507
xorl %eax, %eax
jmp 0x61544
movl $0x1, %eax
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
| _ma_ft_store:
push rbp
mov rbp, rsp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 28h
mov [rbp+var_30], r8
xor eax, eax
cmp qword ptr [rcx], 0
jz short loc_61544
mov r12, rcx
mov r15, rdx
mov r13d, esi
mov rbx, rdi
lea r14, [rbp+var_50]
loc_61507:
mov rdi, rbx
mov rsi, r14
mov edx, r13d
mov rcx, r15
mov r8, r12
mov r9, [rbp+var_30]
call _ma_ft_make_key
mov rdi, rbx
mov rsi, r14
call _ma_ck_write
test al, al
jnz short loc_6153F
cmp qword ptr [r12+18h], 0
lea r12, [r12+18h]
jnz short loc_61507
xor eax, eax
jmp short loc_61544
loc_6153F:
mov eax, 1
loc_61544:
add rsp, 28h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
| long long ma_ft_store(_DWORD *a1, unsigned int a2, char *a3, _QWORD *a4, long long a5, __m128i a6)
{
long long result; // rax
long long i; // r12
_BYTE v10[32]; // [rsp+0h] [rbp-50h] BYREF
long long v11; // [rsp+20h] [rbp-30h]
v11 = a5;
result = 0LL;
if ( *a4 )
{
for ( i = (long long)a4; ; i += 24LL )
{
ma_ft_make_key(a1, (long long)v10, a2, a3, i, v11, a6);
if ( ma_ck_write((long long)a1, (long long)v10) )
break;
if ( *(_QWORD *)(i + 24) == 0LL )
return 0LL;
}
return 1LL;
}
return result;
}
| _ma_ft_store:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x28
MOV qword ptr [RBP + -0x30],R8
XOR EAX,EAX
CMP qword ptr [RCX],0x0
JZ 0x00161544
MOV R12,RCX
MOV R15,RDX
MOV R13D,ESI
MOV RBX,RDI
LEA R14,[RBP + -0x50]
LAB_00161507:
MOV RDI,RBX
MOV RSI,R14
MOV EDX,R13D
MOV RCX,R15
MOV R8,R12
MOV R9,qword ptr [RBP + -0x30]
CALL 0x001613ad
MOV RDI,RBX
MOV RSI,R14
CALL 0x00157148
TEST AL,AL
JNZ 0x0016153f
CMP qword ptr [R12 + 0x18],0x0
LEA R12,[R12 + 0x18]
JNZ 0x00161507
XOR EAX,EAX
JMP 0x00161544
LAB_0016153f:
MOV EAX,0x1
LAB_00161544:
ADD RSP,0x28
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
|
int8
_ma_ft_store(int8 param_1,int4 param_2,int8 param_3,long *param_4,
int8 param_5)
{
long *plVar1;
char cVar2;
int1 local_58 [32];
int8 local_38;
if (*param_4 != 0) {
local_38 = param_5;
do {
_ma_ft_make_key(param_1,local_58,param_2,param_3,param_4,local_38);
cVar2 = _ma_ck_write(param_1,local_58);
if (cVar2 != '\0') {
return 1;
}
plVar1 = param_4 + 3;
param_4 = param_4 + 3;
} while (*plVar1 != 0);
}
return 0;
}
| |
42,208 | common_chat_params_init_mistral_nemo(minja::chat_template const&, common_chat_inputs const&) | monkey531[P]llama/common/chat.cpp | static common_chat_params common_chat_params_init_mistral_nemo(const common_chat_template & tmpl, const struct common_chat_inputs & inputs) {
common_chat_params data;
data.grammar_lazy = inputs.tool_choice != "required";
data.grammar = build_grammar([&](const common_grammar_builder & builder) {
auto schemas = json::array();
foreach_function(inputs.tools, [&](const json & tool) {
const auto & function = tool["function"];
schemas.push_back({
{"type", "object"},
{"properties", {
// Important note: the model is probably trained to take a JSON stringified arguments value.
// It's hard to constrain that for now (while reusing the JSON schema conversion), so we're just expecting a plain object.
{"name", {
{"type", "string"},
{"const", function["name"]},
}},
{"arguments", function["parameters"]},
{"id", {
{"type", "string"},
// Nemo's template expects a 9-character alphanumeric ID.
{"pattern", "^[a-zA-Z0-9]{9}$"},
}},
}},
{"required", json::array({"name", "arguments", "id"})},
});
});
auto schema = json {
{"type", "array"},
{"items", schemas.size() == 1 ? schemas[0] : json {{"anyOf", schemas}}},
{"minItems", 1},
};
if (!inputs.parallel_tool_calls) {
schema["maxItems"] = 1;
}
builder.add_rule("root", "\"[TOOL_CALLS]\" " + builder.add_schema("tool_calls", schema));
}, grammar_options);
data.grammar_triggers.push_back({"[TOOL_CALLS]", /* .at_start = */ true});
data.prompt = tmpl.apply(inputs.messages, inputs.tools.empty() ? json() : inputs.tools, inputs.add_generation_prompt);
data.format = COMMON_CHAT_FORMAT_MISTRAL_NEMO;
return data;
} | O1 | cpp | common_chat_params_init_mistral_nemo(minja::chat_template const&, common_chat_inputs const&):
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x78, %rsp
movq %rdx, %r14
movq %rsi, %r15
movq %rdi, %rbx
movl $0x0, (%rdi)
xorl %eax, %eax
movb %al, 0x8(%rdi)
movq %rax, 0x10(%rdi)
leaq 0x28(%rdi), %rcx
movq %rcx, 0x18(%rdi)
movq %rax, 0x20(%rdi)
movb %al, 0x28(%rdi)
movb %al, 0x38(%rdi)
xorps %xmm0, %xmm0
movups %xmm0, 0x40(%rdi)
movups %xmm0, 0x50(%rdi)
movups %xmm0, 0x60(%rdi)
movups %xmm0, 0x70(%rdi)
movq %rax, 0x80(%rdi)
leaq 0x20(%rdx), %rdi
leaq 0x286c5(%rip), %rsi # 0xaca9c
callq 0x6adb5
movb %al, 0x38(%rbx)
leaq 0x30(%rsp), %rsi
xorps %xmm0, %xmm0
movaps %xmm0, (%rsi)
movaps %xmm0, 0x10(%rsi)
movq %r14, (%rsi)
leaq 0xddd0(%rip), %rax # 0x921c8
movq %rax, 0x18(%rsi)
leaq 0xe6a9(%rip), %rax # 0x92aac
movq %rax, 0x10(%rsi)
leaq 0x2f55e(%rip), %rdx # 0xb396c
leaq 0x8(%rsp), %rdi
callq 0x99c0a
leaq 0x18(%rbx), %rdi
leaq 0x8(%rsp), %r12
movq %r12, %rsi
callq 0x18800
movq (%r12), %rdi
leaq 0x18(%rsp), %r12
cmpq %r12, %rdi
je 0x84444
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x186a0
movq 0x40(%rsp), %rax
testq %rax, %rax
je 0x8445d
leaq 0x30(%rsp), %rdi
movq %rdi, %rsi
movl $0x3, %edx
callq *%rax
leaq 0x8(%rsp), %rdi
movq %r12, (%rdi)
leaq 0x305cf(%rip), %rsi # 0xb4a3b
leaq 0x305d4(%rip), %rdx # 0xb4a47
callq 0x1de7e
leaq 0x40(%rbx), %rdi
leaq 0x8(%rsp), %rsi
movb $0x1, 0x20(%rsi)
callq 0x98602
movq 0x8(%rsp), %rdi
cmpq %r12, %rdi
je 0x844a1
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x186a0
movzbl 0x10(%r14), %eax
leal -0x1(%rax), %ecx
cmpl $0x2, %ecx
jae 0x844cb
movq 0x18(%r14), %rax
movq (%rax), %rcx
cmpq 0x8(%rax), %rcx
je 0x844cf
leaq 0x10(%r14), %rsi
leaq 0x30(%rsp), %rdi
callq 0x2c816
jmp 0x844dd
testl %eax, %eax
jne 0x844bb
movb $0x0, 0x30(%rsp)
movq $0x0, 0x38(%rsp)
movzbl 0x68(%r14), %r8d
leaq 0x58(%rsp), %r9
movb $0x0, (%r9)
movq $0x0, 0x8(%r9)
movl $0x1, (%rsp)
leaq 0x8(%rsp), %rdi
leaq 0x30(%rsp), %rcx
movq %r15, %rsi
movq %r14, %rdx
callq 0x67474
leaq 0x68(%rsp), %rdi
leaq 0x8(%rsp), %rsi
callq 0x2dc98
movb 0x8(%rbx), %al
leaq 0x68(%rsp), %rdi
movb (%rdi), %cl
movb %cl, 0x8(%rbx)
movb %al, (%rdi)
movq 0x10(%rbx), %rax
movq 0x8(%rdi), %rcx
movq %rcx, 0x10(%rbx)
movq %rax, 0x8(%rdi)
callq 0x4c76e
movq 0x8(%rsp), %rdi
cmpq %r12, %rdi
je 0x84559
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x186a0
leaq 0x58(%rsp), %rdi
callq 0x4c76e
leaq 0x30(%rsp), %rdi
callq 0x4c76e
movl $0x2, (%rbx)
movq %rbx, %rax
addq $0x78, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
jmp 0x845da
jmp 0x8460b
movq %rax, %r14
movq 0x8(%rsp), %rdi
cmpq %r12, %rdi
je 0x845a8
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x186a0
jmp 0x845a8
movq %rax, %r14
leaq 0x58(%rsp), %rdi
callq 0x4c76e
leaq 0x30(%rsp), %rdi
callq 0x4c76e
jmp 0x845fb
movq %rax, %r14
movq 0x8(%rsp), %rdi
cmpq %r12, %rdi
je 0x845fb
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x186a0
jmp 0x845fb
movq %rax, %r14
jmp 0x845fb
movq %rax, %r14
movq 0x40(%rsp), %rax
testq %rax, %rax
je 0x845fb
leaq 0x30(%rsp), %rdi
movq %rdi, %rsi
movl $0x3, %edx
callq *%rax
movq %rbx, %rdi
callq 0x2c586
movq %r14, %rdi
callq 0x18bc0
movq %rax, %rdi
callq 0x1d7ab
| _ZL36common_chat_params_init_mistral_nemoRKN5minja13chat_templateERK18common_chat_inputs:
push r15
push r14
push r12
push rbx
sub rsp, 78h
mov r14, rdx
mov r15, rsi
mov rbx, rdi
mov dword ptr [rdi], 0
xor eax, eax
mov [rdi+8], al
mov [rdi+10h], rax
lea rcx, [rdi+28h]
mov [rdi+18h], rcx
mov [rdi+20h], rax
mov [rdi+28h], al
mov [rdi+38h], al
xorps xmm0, xmm0
movups xmmword ptr [rdi+40h], xmm0
movups xmmword ptr [rdi+50h], xmm0
movups xmmword ptr [rdi+60h], xmm0
movups xmmword ptr [rdi+70h], xmm0
mov [rdi+80h], rax
lea rdi, [rdx+20h]
lea rsi, aRequired; "required"
call _ZN8nlohmann16json_abi_v3_11_3neIPKcTnNSt9enable_ifIXsr3std9is_scalarIT_EE5valueEiE4typeELi0EEEbRKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerESA_IhSaIhEEvEES5_
mov [rbx+38h], al
lea rsi, [rsp+98h+var_68]
xorps xmm0, xmm0
movaps xmmword ptr [rsi], xmm0
movaps xmmword ptr [rsi+10h], xmm0
mov [rsi], r14
lea rax, _ZNSt17_Function_handlerIFvRK22common_grammar_builderEZL36common_chat_params_init_mistral_nemoRKN5minja13chat_templateERK18common_chat_inputsE3$_0E9_M_invokeERKSt9_Any_dataS2_; std::_Function_handler<void ()(common_grammar_builder const&),common_chat_params_init_mistral_nemo(minja::chat_template const&,common_chat_inputs const&)::$_0>::_M_invoke(std::_Any_data const&,common_grammar_builder const&)
mov [rsi+18h], rax
lea rax, _ZNSt17_Function_handlerIFvRK22common_grammar_builderEZL36common_chat_params_init_mistral_nemoRKN5minja13chat_templateERK18common_chat_inputsE3$_0E10_M_managerERSt9_Any_dataRKSD_St18_Manager_operation; std::_Function_handler<void ()(common_grammar_builder const&),common_chat_params_init_mistral_nemo(minja::chat_template const&,common_chat_inputs const&)::$_0>::_M_manager(std::_Any_data &,std::_Any_data const&,std::_Manager_operation)
mov [rsi+10h], rax
lea rdx, _ZL15grammar_options; grammar_options
lea rdi, [rsp+98h+var_90]
call _Z13build_grammarB5cxx11RKSt8functionIFvRK22common_grammar_builderEERK22common_grammar_options; build_grammar(std::function<void ()(common_grammar_builder const&)> const&,common_grammar_options const&)
lea rdi, [rbx+18h]
lea r12, [rsp+98h+var_90]
mov rsi, r12
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEOS4_; std::string::operator=(std::string&&)
mov rdi, [r12]; void *
lea r12, [rsp+98h+var_80]
cmp rdi, r12
jz short loc_84444
mov rsi, [rsp+98h+var_80]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_84444:
mov rax, [rsp+98h+var_58]
test rax, rax
jz short loc_8445D
lea rdi, [rsp+98h+var_68]
mov rsi, rdi
mov edx, 3
call rax
loc_8445D:
lea rdi, [rsp+98h+var_90]
mov [rdi], r12
lea rsi, aToolCalls_0; "[TOOL_CALLS]"
lea rdx, aToolCalls_0+0Ch; ""
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPKcEEvT_S8_St20forward_iterator_tag; std::string::_M_construct<char const*>(char const*,char const*,std::forward_iterator_tag)
lea rdi, [rbx+40h]
lea rsi, [rsp+98h+var_90]
mov byte ptr [rsi+20h], 1
call _ZNSt6vectorI22common_grammar_triggerSaIS0_EE12emplace_backIJS0_EEERS0_DpOT_; std::vector<common_grammar_trigger>::emplace_back<common_grammar_trigger>(common_grammar_trigger &&)
mov rdi, [rsp+98h+var_90]; void *
cmp rdi, r12
jz short loc_844A1
mov rsi, [rsp+98h+var_80]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_844A1:
movzx eax, byte ptr [r14+10h]
lea ecx, [rax-1]
cmp ecx, 2
jnb short loc_844CB
mov rax, [r14+18h]
mov rcx, [rax]
cmp rcx, [rax+8]
jz short loc_844CF
loc_844BB:
lea rsi, [r14+10h]
lea rdi, [rsp+98h+var_68]
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEC2ERKSD_; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::basic_json(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const&)
jmp short loc_844DD
loc_844CB:
test eax, eax
jnz short loc_844BB
loc_844CF:
mov [rsp+98h+var_68], 0
mov [rsp+98h+var_60], 0
loc_844DD:
movzx r8d, byte ptr [r14+68h]
lea r9, [rsp+98h+var_40]
mov byte ptr [r9], 0
mov qword ptr [r9+8], 0
mov [rsp+98h+var_98], 1
lea rdi, [rsp+98h+var_90]
lea rcx, [rsp+98h+var_68]
mov rsi, r15
mov rdx, r14
call _ZNK5minja13chat_template5applyERKN8nlohmann16json_abi_v3_11_310basic_jsonINS2_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS2_14adl_serializerES5_IhSaIhEEvEESH_bSH_b; minja::chat_template::apply(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const&,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const&,bool,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const&,bool)
lea rdi, [rsp+98h+var_30]
lea rsi, [rsp+98h+var_90]
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEC2IS9_S9_TnNSt9enable_ifIXaantsr6detail13is_basic_jsonIT0_EE5valuesr6detail18is_compatible_typeISD_SG_EE5valueEiE4typeELi0EEEOT_
mov al, [rbx+8]
lea rdi, [rsp+98h+var_30]
mov cl, [rdi]
mov [rbx+8], cl
mov [rdi], al
mov rax, [rbx+10h]
mov rcx, [rdi+8]
mov [rbx+10h], rcx
mov [rdi+8], rax
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE4dataD2Ev; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::data::~data()
mov rdi, [rsp+98h+var_90]; void *
cmp rdi, r12
jz short loc_84559
mov rsi, [rsp+98h+var_80]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_84559:
lea rdi, [rsp+98h+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()
lea rdi, [rsp+98h+var_68]
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 dword ptr [rbx], 2
mov rax, rbx
add rsp, 78h
pop rbx
pop r12
pop r14
pop r15
retn
jmp short loc_845DA
jmp loc_8460B
mov r14, rax
mov rdi, [rsp+98h+var_90]; void *
cmp rdi, r12
jz short loc_845A8
mov rsi, [rsp+98h+var_80]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
jmp short loc_845A8
mov r14, rax
loc_845A8:
lea rdi, [rsp+98h+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()
lea rdi, [rsp+98h+var_68]
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_845FB
mov r14, rax
mov rdi, [rsp+98h+var_90]; void *
cmp rdi, r12
jz short loc_845FB
mov rsi, [rsp+98h+var_80]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
jmp short loc_845FB
loc_845DA:
mov r14, rax
jmp short loc_845FB
mov r14, rax
mov rax, [rsp+98h+var_58]
test rax, rax
jz short loc_845FB
lea rdi, [rsp+98h+var_68]
mov rsi, rdi
mov edx, 3
call rax
loc_845FB:
mov rdi, rbx; this
call _ZN18common_chat_paramsD2Ev; common_chat_params::~common_chat_params()
mov rdi, r14
call __Unwind_Resume
loc_8460B:
mov rdi, rax
call __clang_call_terminate
| const minja::chat_template * common_chat_params_init_mistral_nemo(
const minja::chat_template *a1,
const common_chat_inputs *a2,
long long a3)
{
int v4; // r8d
char v5; // al
long long v6; // rax
void *v8[2]; // [rsp+8h] [rbp-90h] BYREF
_QWORD v9[2]; // [rsp+18h] [rbp-80h] BYREF
char v10; // [rsp+28h] [rbp-70h]
__int128 v11; // [rsp+30h] [rbp-68h] BYREF
long long ( *v12)(); // [rsp+40h] [rbp-58h]
long long ( *v13)(); // [rsp+48h] [rbp-50h]
void *v14[2]; // [rsp+58h] [rbp-40h] BYREF
_OWORD v15[3]; // [rsp+68h] [rbp-30h] BYREF
*(_DWORD *)a1 = 0;
*((_BYTE *)a1 + 8) = 0;
*((_QWORD *)a1 + 2) = 0LL;
*((_QWORD *)a1 + 3) = (char *)a1 + 40;
*((_QWORD *)a1 + 4) = 0LL;
*((_BYTE *)a1 + 40) = 0;
*((_BYTE *)a1 + 56) = 0;
*((_OWORD *)a1 + 4) = 0LL;
*((_OWORD *)a1 + 5) = 0LL;
*((_OWORD *)a1 + 6) = 0LL;
*((_OWORD *)a1 + 7) = 0LL;
*((_QWORD *)a1 + 16) = 0LL;
*((_BYTE *)a1 + 56) = ZN8nlohmann16json_abi_v3_11_3neIPKcTnNSt9enable_ifIXsr3std9is_scalarIT_EE5valueEiE4typeELi0EEEbRKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerESA_IhSaIhEEvEES5_(
a3 + 32,
(long long)"required");
v11 = 0LL;
*(_QWORD *)&v11 = a3;
v13 = std::_Function_handler<void ()(common_grammar_builder const&),common_chat_params_init_mistral_nemo(minja::chat_template const&,common_chat_inputs const&)::$_0>::_M_invoke;
v12 = std::_Function_handler<void ()(common_grammar_builder const&),common_chat_params_init_mistral_nemo(minja::chat_template const&,common_chat_inputs const&)::$_0>::_M_manager;
build_grammar[abi:cxx11](v8, &v11, &grammar_options);
std::string::operator=((char *)a1 + 24, v8);
if ( v8[0] != v9 )
operator delete(v8[0], v9[0] + 1LL);
if ( v12 )
((void ( *)(__int128 *, __int128 *, long long))v12)(&v11, &v11, 3LL);
v8[0] = v9;
std::string::_M_construct<char const*>(v8, "[TOOL_CALLS]", (long long)"");
v10 = 1;
std::vector<common_grammar_trigger>::emplace_back<common_grammar_trigger>((char *)a1 + 64);
if ( v8[0] != v9 )
operator delete(v8[0], v9[0] + 1LL);
if ( (unsigned int)*(unsigned __int8 *)(a3 + 16) - 1 >= 2 )
{
if ( *(_BYTE *)(a3 + 16) )
goto LABEL_9;
}
else if ( **(_QWORD **)(a3 + 24) != *(_QWORD *)(*(_QWORD *)(a3 + 24) + 8LL) )
{
LABEL_9:
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,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)&v11,
a3 + 16);
goto LABEL_12;
}
LOBYTE(v11) = 0;
*((_QWORD *)&v11 + 1) = 0LL;
LABEL_12:
v4 = *(unsigned __int8 *)(a3 + 104);
LOBYTE(v14[0]) = 0;
v14[1] = 0LL;
minja::chat_template::apply((long long)v8, a2, a3, (unsigned __int8 *)&v11, v4, (unsigned __int8 *)v14, 1);
ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEC2IS9_S9_TnNSt9enable_ifIXaantsr6detail13is_basic_jsonIT0_EE5valuesr6detail18is_compatible_typeISD_SG_EE5valueEiE4typeELi0EEEOT_(v15);
v5 = *((_BYTE *)a1 + 8);
*((_BYTE *)a1 + 8) = v15[0];
LOBYTE(v15[0]) = v5;
v6 = *((_QWORD *)a1 + 2);
*((_QWORD *)a1 + 2) = *((_QWORD *)&v15[0] + 1);
*((_QWORD *)&v15[0] + 1) = 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((void **)v15);
if ( v8[0] != v9 )
operator delete(v8[0], v9[0] + 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>::data::~data(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>::data::~data((void **)&v11);
*(_DWORD *)a1 = 2;
return a1;
}
| common_chat_params_init_mistral_nemo:
PUSH R15
PUSH R14
PUSH R12
PUSH RBX
SUB RSP,0x78
MOV R14,RDX
MOV R15,RSI
MOV RBX,RDI
MOV dword ptr [RDI],0x0
XOR EAX,EAX
MOV byte ptr [RDI + 0x8],AL
MOV qword ptr [RDI + 0x10],RAX
LEA RCX,[RDI + 0x28]
MOV qword ptr [RDI + 0x18],RCX
MOV qword ptr [RDI + 0x20],RAX
MOV byte ptr [RDI + 0x28],AL
MOV byte ptr [RDI + 0x38],AL
XORPS XMM0,XMM0
MOVUPS xmmword ptr [RDI + 0x40],XMM0
MOVUPS xmmword ptr [RDI + 0x50],XMM0
MOVUPS xmmword ptr [RDI + 0x60],XMM0
MOVUPS xmmword ptr [RDI + 0x70],XMM0
MOV qword ptr [RDI + 0x80],RAX
LEA RDI,[RDX + 0x20]
LEA RSI,[0x1aca9c]
CALL 0x0016adb5
MOV byte ptr [RBX + 0x38],AL
LEA RSI,[RSP + 0x30]
XORPS XMM0,XMM0
MOVAPS xmmword ptr [RSI],XMM0
MOVAPS xmmword ptr [RSI + 0x10],XMM0
MOV qword ptr [RSI],R14
LEA RAX,[0x1921c8]
MOV qword ptr [RSI + 0x18],RAX
LEA RAX,[0x192aac]
MOV qword ptr [RSI + 0x10],RAX
LAB_00184407:
LEA RDX,[0x1b396c]
LEA RDI,[RSP + 0x8]
CALL 0x00199c0a
LEA RDI,[RBX + 0x18]
LEA R12,[RSP + 0x8]
MOV RSI,R12
CALL 0x00118800
MOV RDI,qword ptr [R12]
LEA R12,[RSP + 0x18]
CMP RDI,R12
JZ 0x00184444
MOV RSI,qword ptr [RSP + 0x18]
INC RSI
CALL 0x001186a0
LAB_00184444:
MOV RAX,qword ptr [RSP + 0x40]
TEST RAX,RAX
JZ 0x0018445d
LAB_0018444e:
LEA RDI,[RSP + 0x30]
MOV RSI,RDI
MOV EDX,0x3
CALL RAX
LAB_0018445d:
LEA RDI,[RSP + 0x8]
MOV qword ptr [RDI],R12
LAB_00184465:
LEA RSI,[0x1b4a3b]
LEA RDX,[0x1b4a47]
CALL 0x0011de7e
LEA RDI,[RBX + 0x40]
LEA RSI,[RSP + 0x8]
MOV byte ptr [RSI + 0x20],0x1
LAB_00184485:
CALL 0x00198602
MOV RDI,qword ptr [RSP + 0x8]
CMP RDI,R12
JZ 0x001844a1
MOV RSI,qword ptr [RSP + 0x18]
INC RSI
CALL 0x001186a0
LAB_001844a1:
MOVZX EAX,byte ptr [R14 + 0x10]
LEA ECX,[RAX + -0x1]
CMP ECX,0x2
JNC 0x001844cb
MOV RAX,qword ptr [R14 + 0x18]
MOV RCX,qword ptr [RAX]
CMP RCX,qword ptr [RAX + 0x8]
JZ 0x001844cf
LAB_001844bb:
LEA RSI,[R14 + 0x10]
LEA RDI,[RSP + 0x30]
CALL 0x0012c816
JMP 0x001844dd
LAB_001844cb:
TEST EAX,EAX
JNZ 0x001844bb
LAB_001844cf:
MOV byte ptr [RSP + 0x30],0x0
MOV qword ptr [RSP + 0x38],0x0
LAB_001844dd:
MOVZX R8D,byte ptr [R14 + 0x68]
LEA R9,[RSP + 0x58]
MOV byte ptr [R9],0x0
MOV qword ptr [R9 + 0x8],0x0
LAB_001844f3:
MOV dword ptr [RSP],0x1
LEA RDI,[RSP + 0x8]
LEA RCX,[RSP + 0x30]
MOV RSI,R15
MOV RDX,R14
CALL 0x00167474
LAB_0018450f:
LEA RDI,[RSP + 0x68]
LEA RSI,[RSP + 0x8]
CALL 0x0012dc98
MOV AL,byte ptr [RBX + 0x8]
LEA RDI,[RSP + 0x68]
MOV CL,byte ptr [RDI]
MOV byte ptr [RBX + 0x8],CL
MOV byte ptr [RDI],AL
MOV RAX,qword ptr [RBX + 0x10]
MOV RCX,qword ptr [RDI + 0x8]
MOV qword ptr [RBX + 0x10],RCX
MOV qword ptr [RDI + 0x8],RAX
CALL 0x0014c76e
MOV RDI,qword ptr [RSP + 0x8]
CMP RDI,R12
JZ 0x00184559
MOV RSI,qword ptr [RSP + 0x18]
INC RSI
CALL 0x001186a0
LAB_00184559:
LEA RDI,[RSP + 0x58]
CALL 0x0014c76e
LEA RDI,[RSP + 0x30]
CALL 0x0014c76e
MOV dword ptr [RBX],0x2
MOV RAX,RBX
ADD RSP,0x78
POP RBX
POP R12
POP R14
POP R15
RET
|
/* common_chat_params_init_mistral_nemo(minja::chat_template const&, common_chat_inputs const&) */
chat_template *
common_chat_params_init_mistral_nemo(chat_template *param_1,common_chat_inputs *param_2)
{
int8 uVar1;
chat_template cVar2;
ulong in_RDX;
long *local_90 [2];
long local_80 [2];
int1 local_70;
ulong local_68 [2];
code *local_58;
code *pcStack_50;
data local_40 [8];
int8 local_38;
chat_template local_30 [8];
int8 local_28;
*(int4 *)param_1 = 0;
param_1[8] = (chat_template)0x0;
*(int8 *)(param_1 + 0x10) = 0;
*(chat_template **)(param_1 + 0x18) = param_1 + 0x28;
*(int8 *)(param_1 + 0x20) = 0;
param_1[0x28] = (chat_template)0x0;
param_1[0x38] = (chat_template)0x0;
*(int8 *)(param_1 + 0x40) = 0;
*(int8 *)(param_1 + 0x48) = 0;
*(int8 *)(param_1 + 0x50) = 0;
*(int8 *)(param_1 + 0x58) = 0;
*(int8 *)(param_1 + 0x60) = 0;
*(int8 *)(param_1 + 0x68) = 0;
*(int8 *)(param_1 + 0x70) = 0;
*(int8 *)(param_1 + 0x78) = 0;
*(int8 *)(param_1 + 0x80) = 0;
cVar2 = (chat_template)
_ZN8nlohmann16json_abi_v3_11_3neIPKcTnNSt9enable_ifIXsr3std9is_scalarIT_EE5valueEiE4typeELi0EEEbRKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerESA_IhSaIhEEvEES5_
(in_RDX + 0x20,"required");
param_1[0x38] = cVar2;
local_68[1] = 0;
pcStack_50 = std::
_Function_handler<void(common_grammar_builder_const&),common_chat_params_init_mistral_nemo(minja::chat_template_const&,common_chat_inputs_const&)::$_0>
::_M_invoke;
local_58 = std::
_Function_handler<void(common_grammar_builder_const&),common_chat_params_init_mistral_nemo(minja::chat_template_const&,common_chat_inputs_const&)::$_0>
::_M_manager;
/* try { // try from 00184407 to 00184417 has its CatchHandler @ 001845df */
local_68[0] = in_RDX;
build_grammar_abi_cxx11_((function *)local_90,(common_grammar_options *)local_68);
std::__cxx11::string::operator=((string *)(param_1 + 0x18),(string *)local_90);
if (local_90[0] != local_80) {
operator_delete(local_90[0],local_80[0] + 1);
}
if (local_58 != (code *)0x0) {
/* try { // try from 0018444e to 0018445c has its CatchHandler @ 00184584 */
(*local_58)(local_68,local_68,3);
}
local_90[0] = local_80;
/* try { // try from 00184465 to 00184477 has its CatchHandler @ 001845da */
std::__cxx11::string::_M_construct<char_const*>(local_90,"[TOOL_CALLS]","");
local_70 = 1;
/* try { // try from 00184485 to 00184489 has its CatchHandler @ 001845be */
std::vector<common_grammar_trigger,std::allocator<common_grammar_trigger>>::
emplace_back<common_grammar_trigger>
((vector<common_grammar_trigger,std::allocator<common_grammar_trigger>> *)
(param_1 + 0x40),(common_grammar_trigger *)local_90);
if (local_90[0] != local_80) {
operator_delete(local_90[0],local_80[0] + 1);
}
if (*(byte *)(in_RDX + 0x10) - 1 < 2) {
if (**(long **)(in_RDX + 0x18) == (*(long **)(in_RDX + 0x18))[1]) {
LAB_001844cf:
local_68[0] = local_68[0] & 0xffffffffffffff00;
local_68[1] = 0;
goto LAB_001844dd;
}
}
else if (*(byte *)(in_RDX + 0x10) == 0) goto LAB_001844cf;
/* try { // try from 001844bb to 001844c8 has its CatchHandler @ 00184582 */
nlohmann::json_abi_v3_11_3::
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,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>
*)local_68,(basic_json *)(in_RDX + 0x10));
LAB_001844dd:
local_40[0] = (data)0x0;
local_38 = 0;
/* try { // try from 001844f3 to 0018450e has its CatchHandler @ 001845a5 */
minja::chat_template::apply
((basic_json *)local_90,(basic_json *)param_2,SUB81(in_RDX,0),(basic_json *)local_68,
*(bool *)(in_RDX + 0x68));
/* try { // try from 0018450f to 0018451d has its CatchHandler @ 00184589 */
_ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEC2IS9_S9_TnNSt9enable_ifIXaantsr6detail13is_basic_jsonIT0_EE5valuesr6detail18is_compatible_typeISD_SG_EE5valueEiE4typeELi0EEEOT_
(local_30,local_90);
cVar2 = param_1[8];
param_1[8] = local_30[0];
uVar1 = *(int8 *)(param_1 + 0x10);
*(int8 *)(param_1 + 0x10) = local_28;
local_30[0] = cVar2;
local_28 = uVar1;
nlohmann::json_abi_v3_11_3::
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::data::~data((data *)local_30);
if (local_90[0] != local_80) {
operator_delete(local_90[0],local_80[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(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((data *)local_68);
*(int4 *)param_1 = 2;
return param_1;
}
| |
42,209 | my_well_formed_char_length_8bit | eloqsql/strings/ctype-simple.c | size_t
my_well_formed_char_length_8bit(CHARSET_INFO *cs __attribute__((unused)),
const char *start, const char *end,
size_t nchars, MY_STRCOPY_STATUS *status)
{
size_t nbytes= (size_t) (end - start);
size_t res= MY_MIN(nbytes, nchars);
status->m_well_formed_error_pos= NULL;
status->m_source_end_pos= start + res;
return res;
} | O0 | c | my_well_formed_char_length_8bit:
pushq %rbp
movq %rsp, %rbp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movq %rcx, -0x20(%rbp)
movq %r8, -0x28(%rbp)
movq -0x18(%rbp), %rax
movq -0x10(%rbp), %rcx
subq %rcx, %rax
movq %rax, -0x30(%rbp)
movq -0x30(%rbp), %rax
cmpq -0x20(%rbp), %rax
jae 0x94bab
movq -0x30(%rbp), %rax
movq %rax, -0x40(%rbp)
jmp 0x94bb3
movq -0x20(%rbp), %rax
movq %rax, -0x40(%rbp)
movq -0x40(%rbp), %rax
movq %rax, -0x38(%rbp)
movq -0x28(%rbp), %rax
movq $0x0, 0x8(%rax)
movq -0x10(%rbp), %rcx
addq -0x38(%rbp), %rcx
movq -0x28(%rbp), %rax
movq %rcx, (%rax)
movq -0x38(%rbp), %rax
popq %rbp
retq
nopl (%rax)
| my_well_formed_char_length_8bit:
push rbp
mov rbp, rsp
mov [rbp+var_8], rdi
mov [rbp+var_10], rsi
mov [rbp+var_18], rdx
mov [rbp+var_20], rcx
mov [rbp+var_28], r8
mov rax, [rbp+var_18]
mov rcx, [rbp+var_10]
sub rax, rcx
mov [rbp+var_30], rax
mov rax, [rbp+var_30]
cmp rax, [rbp+var_20]
jnb short loc_94BAB
mov rax, [rbp+var_30]
mov [rbp+var_40], rax
jmp short loc_94BB3
loc_94BAB:
mov rax, [rbp+var_20]
mov [rbp+var_40], rax
loc_94BB3:
mov rax, [rbp+var_40]
mov [rbp+var_38], rax
mov rax, [rbp+var_28]
mov qword ptr [rax+8], 0
mov rcx, [rbp+var_10]
add rcx, [rbp+var_38]
mov rax, [rbp+var_28]
mov [rax], rcx
mov rax, [rbp+var_38]
pop rbp
retn
| unsigned long long my_well_formed_char_length_8bit(
long long a1,
long long a2,
long long a3,
unsigned long long a4,
_QWORD *a5)
{
unsigned long long v6; // [rsp+0h] [rbp-40h]
if ( a3 - a2 >= a4 )
v6 = a4;
else
v6 = a3 - a2;
a5[1] = 0LL;
*a5 = v6 + a2;
return v6;
}
| my_well_formed_char_length_8bit:
PUSH RBP
MOV RBP,RSP
MOV qword ptr [RBP + -0x8],RDI
MOV qword ptr [RBP + -0x10],RSI
MOV qword ptr [RBP + -0x18],RDX
MOV qword ptr [RBP + -0x20],RCX
MOV qword ptr [RBP + -0x28],R8
MOV RAX,qword ptr [RBP + -0x18]
MOV RCX,qword ptr [RBP + -0x10]
SUB RAX,RCX
MOV qword ptr [RBP + -0x30],RAX
MOV RAX,qword ptr [RBP + -0x30]
CMP RAX,qword ptr [RBP + -0x20]
JNC 0x00194bab
MOV RAX,qword ptr [RBP + -0x30]
MOV qword ptr [RBP + -0x40],RAX
JMP 0x00194bb3
LAB_00194bab:
MOV RAX,qword ptr [RBP + -0x20]
MOV qword ptr [RBP + -0x40],RAX
LAB_00194bb3:
MOV RAX,qword ptr [RBP + -0x40]
MOV qword ptr [RBP + -0x38],RAX
MOV RAX,qword ptr [RBP + -0x28]
MOV qword ptr [RAX + 0x8],0x0
MOV RCX,qword ptr [RBP + -0x10]
ADD RCX,qword ptr [RBP + -0x38]
MOV RAX,qword ptr [RBP + -0x28]
MOV qword ptr [RAX],RCX
MOV RAX,qword ptr [RBP + -0x38]
POP RBP
RET
|
ulong my_well_formed_char_length_8bit
(int8 param_1,long param_2,long param_3,ulong param_4,long *param_5)
{
ulong local_48;
local_48 = param_4;
if ((ulong)(param_3 - param_2) < param_4) {
local_48 = param_3 - param_2;
}
param_5[1] = 0;
*param_5 = param_2 + local_48;
return local_48;
}
| |
42,210 | eprint | eloqsql/storage/maria/ma_recovery_util.c | void eprint(FILE *trace_file __attribute__ ((unused)),
const char *format __attribute__ ((unused)), ...)
{
va_list args;
va_start(args, format);
DBUG_PRINT("error", ("%s", format));
if (!trace_file)
trace_file= stderr;
if (procent_printed)
{
procent_printed= 0;
/* In silent mode, print on another line than the 0% 10% 20% line */
fputc('\n', stderr);
fflush(stderr);
}
vfprintf(trace_file , format, args);
fputc('\n', trace_file);
if (trace_file != stderr)
{
va_start(args, format);
my_printv_error(HA_ERR_INITIALIZATION, format, MYF(0), args);
}
va_end(args);
fflush(trace_file);
} | O0 | c | eprint:
pushq %rbp
movq %rsp, %rbp
subq $0xe0, %rsp
testb %al, %al
je 0x5db28
movaps %xmm0, -0xb0(%rbp)
movaps %xmm1, -0xa0(%rbp)
movaps %xmm2, -0x90(%rbp)
movaps %xmm3, -0x80(%rbp)
movaps %xmm4, -0x70(%rbp)
movaps %xmm5, -0x60(%rbp)
movaps %xmm6, -0x50(%rbp)
movaps %xmm7, -0x40(%rbp)
movq %r9, -0xb8(%rbp)
movq %r8, -0xc0(%rbp)
movq %rcx, -0xc8(%rbp)
movq %rdx, -0xd0(%rbp)
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
leaq -0x30(%rbp), %rax
leaq -0xe0(%rbp), %rcx
movq %rcx, 0x10(%rax)
leaq 0x10(%rbp), %rcx
movq %rcx, 0x8(%rax)
movl $0x30, 0x4(%rax)
movl $0x10, (%rax)
jmp 0x5db72
cmpq $0x0, -0x8(%rbp)
jne 0x5db87
movq 0x25f458(%rip), %rax # 0x2bcfd8
movq (%rax), %rax
movq %rax, -0x8(%rbp)
cmpb $0x0, 0xc1c7f2(%rip) # 0xc7a380
je 0x5dbba
movb $0x0, 0xc1c7e9(%rip) # 0xc7a380
movq 0x25f43a(%rip), %rax # 0x2bcfd8
movq (%rax), %rsi
movl $0xa, %edi
callq 0x2a690
movq 0x25f426(%rip), %rax # 0x2bcfd8
movq (%rax), %rdi
callq 0x2a3e0
movq -0x8(%rbp), %rdi
movq -0x10(%rbp), %rsi
leaq -0x30(%rbp), %rdx
callq 0x2a7e0
movq -0x8(%rbp), %rsi
movl $0xa, %edi
callq 0x2a690
movq -0x8(%rbp), %rax
movq 0x25f3f4(%rip), %rcx # 0x2bcfd8
cmpq (%rcx), %rax
je 0x5dc23
leaq -0x30(%rbp), %rax
leaq -0xe0(%rbp), %rcx
movq %rcx, 0x10(%rax)
leaq 0x10(%rbp), %rcx
movq %rcx, 0x8(%rax)
movl $0x30, 0x4(%rax)
movl $0x10, (%rax)
movq -0x10(%rbp), %rsi
leaq -0x30(%rbp), %rcx
movl $0xae, %edi
xorl %eax, %eax
movl %eax, %edx
callq 0xefdb0
movq -0x8(%rbp), %rdi
callq 0x2a3e0
addq $0xe0, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
| eprint:
push rbp
mov rbp, rsp
sub rsp, 0E0h
test al, al
jz short loc_5DB28
movaps [rbp+var_B0], xmm0
movaps [rbp+var_A0], xmm1
movaps [rbp+var_90], xmm2
movaps [rbp+var_80], xmm3
movaps [rbp+var_70], xmm4
movaps [rbp+var_60], xmm5
movaps [rbp+var_50], xmm6
movaps [rbp+var_40], xmm7
loc_5DB28:
mov [rbp+var_B8], r9
mov [rbp+var_C0], r8
mov [rbp+var_C8], rcx
mov [rbp+var_D0], rdx
mov [rbp+var_8], rdi
mov [rbp+var_10], rsi
lea rax, [rbp+var_30]
lea rcx, [rbp+var_E0]
mov [rax+10h], rcx
lea rcx, [rbp+arg_0]
mov [rax+8], rcx
mov dword ptr [rax+4], 30h ; '0'
mov dword ptr [rax], 10h
jmp short $+2
loc_5DB72:
cmp [rbp+var_8], 0
jnz short loc_5DB87
mov rax, cs:stderr_ptr
mov rax, [rax]
mov [rbp+var_8], rax
loc_5DB87:
cmp cs:procent_printed, 0
jz short loc_5DBBA
mov cs:procent_printed, 0
mov rax, cs:stderr_ptr
mov rsi, [rax]
mov edi, 0Ah
call _fputc
mov rax, cs:stderr_ptr
mov rdi, [rax]
call _fflush
loc_5DBBA:
mov rdi, [rbp+var_8]
mov rsi, [rbp+var_10]
lea rdx, [rbp+var_30]
call _vfprintf
mov rsi, [rbp+var_8]
mov edi, 0Ah
call _fputc
mov rax, [rbp+var_8]
mov rcx, cs:stderr_ptr
cmp rax, [rcx]
jz short loc_5DC23
lea rax, [rbp+var_30]
lea rcx, [rbp+var_E0]
mov [rax+10h], rcx
lea rcx, [rbp+arg_0]
mov [rax+8], rcx
mov dword ptr [rax+4], 30h ; '0'
mov dword ptr [rax], 10h
mov rsi, [rbp+var_10]
lea rcx, [rbp+var_30]
mov edi, 0AEh
xor eax, eax
mov edx, eax
call my_printv_error
loc_5DC23:
mov rdi, [rbp+var_8]
call _fflush
add rsp, 0E0h
pop rbp
retn
| long long eprint(
long long a1,
long long a2,
long long a3,
long long a4,
long long a5,
long long a6,
__m128 a7,
__m128 a8,
__m128 a9,
__m128 a10,
__m128 a11,
__m128 a12,
__m128 a13,
__m128 a14,
char a15)
{
_BYTE v16[16]; // [rsp+0h] [rbp-E0h] BYREF
long long v17; // [rsp+10h] [rbp-D0h]
long long v18; // [rsp+18h] [rbp-C8h]
long long v19; // [rsp+20h] [rbp-C0h]
long long v20; // [rsp+28h] [rbp-B8h]
__m128 v21; // [rsp+30h] [rbp-B0h]
__m128 v22; // [rsp+40h] [rbp-A0h]
__m128 v23; // [rsp+50h] [rbp-90h]
__m128 v24; // [rsp+60h] [rbp-80h]
__m128 v25; // [rsp+70h] [rbp-70h]
__m128 v26; // [rsp+80h] [rbp-60h]
__m128 v27; // [rsp+90h] [rbp-50h]
__m128 v28; // [rsp+A0h] [rbp-40h]
int v29; // [rsp+B0h] [rbp-30h] BYREF
int v30; // [rsp+B4h] [rbp-2Ch]
char *v31; // [rsp+B8h] [rbp-28h]
_BYTE *v32; // [rsp+C0h] [rbp-20h]
long long v33; // [rsp+D0h] [rbp-10h]
long long v34; // [rsp+D8h] [rbp-8h]
v21 = a7;
v22 = a8;
v23 = a9;
v24 = a10;
v25 = a11;
v26 = a12;
v27 = a13;
v28 = a14;
v20 = a6;
v19 = a5;
v18 = a4;
v17 = a3;
v34 = a1;
v33 = a2;
v32 = v16;
v31 = &a15;
v30 = 48;
v29 = 16;
if ( !a1 )
v34 = stderr;
if ( procent_printed )
{
procent_printed = 0;
fputc(10LL, stderr);
fflush(stderr);
}
vfprintf(v34, v33, &v29);
fputc(10LL, v34);
if ( v34 != stderr )
{
v32 = v16;
v31 = &a15;
v30 = 48;
v29 = 16;
my_printv_error(174LL, v33, 0LL, &v29);
}
return fflush(v34);
}
| eprint:
PUSH RBP
MOV RBP,RSP
SUB RSP,0xe0
TEST AL,AL
JZ 0x0015db28
MOVAPS xmmword ptr [RBP + -0xb0],XMM0
MOVAPS xmmword ptr [RBP + -0xa0],XMM1
MOVAPS xmmword ptr [RBP + -0x90],XMM2
MOVAPS xmmword ptr [RBP + -0x80],XMM3
MOVAPS xmmword ptr [RBP + -0x70],XMM4
MOVAPS xmmword ptr [RBP + -0x60],XMM5
MOVAPS xmmword ptr [RBP + -0x50],XMM6
MOVAPS xmmword ptr [RBP + -0x40],XMM7
LAB_0015db28:
MOV qword ptr [RBP + -0xb8],R9
MOV qword ptr [RBP + -0xc0],R8
MOV qword ptr [RBP + -0xc8],RCX
MOV qword ptr [RBP + -0xd0],RDX
MOV qword ptr [RBP + -0x8],RDI
MOV qword ptr [RBP + -0x10],RSI
LEA RAX,[RBP + -0x30]
LEA RCX,[RBP + -0xe0]
MOV qword ptr [RAX + 0x10],RCX
LEA RCX,[RBP + 0x10]
MOV qword ptr [RAX + 0x8],RCX
MOV dword ptr [RAX + 0x4],0x30
MOV dword ptr [RAX],0x10
JMP 0x0015db72
LAB_0015db72:
CMP qword ptr [RBP + -0x8],0x0
JNZ 0x0015db87
MOV RAX,qword ptr [0x003bcfd8]
MOV RAX,qword ptr [RAX]
MOV qword ptr [RBP + -0x8],RAX
LAB_0015db87:
CMP byte ptr [0x00d7a380],0x0
JZ 0x0015dbba
MOV byte ptr [0x00d7a380],0x0
MOV RAX,qword ptr [0x003bcfd8]
MOV RSI,qword ptr [RAX]
MOV EDI,0xa
CALL 0x0012a690
MOV RAX,qword ptr [0x003bcfd8]
MOV RDI,qword ptr [RAX]
CALL 0x0012a3e0
LAB_0015dbba:
MOV RDI,qword ptr [RBP + -0x8]
MOV RSI,qword ptr [RBP + -0x10]
LEA RDX,[RBP + -0x30]
CALL 0x0012a7e0
MOV RSI,qword ptr [RBP + -0x8]
MOV EDI,0xa
CALL 0x0012a690
MOV RAX,qword ptr [RBP + -0x8]
MOV RCX,qword ptr [0x003bcfd8]
CMP RAX,qword ptr [RCX]
JZ 0x0015dc23
LEA RAX,[RBP + -0x30]
LEA RCX,[RBP + -0xe0]
MOV qword ptr [RAX + 0x10],RCX
LEA RCX,[RBP + 0x10]
MOV qword ptr [RAX + 0x8],RCX
MOV dword ptr [RAX + 0x4],0x30
MOV dword ptr [RAX],0x10
MOV RSI,qword ptr [RBP + -0x10]
LEA RCX,[RBP + -0x30]
MOV EDI,0xae
XOR EAX,EAX
MOV EDX,EAX
CALL 0x001efdb0
LAB_0015dc23:
MOV RDI,qword ptr [RBP + -0x8]
CALL 0x0012a3e0
ADD RSP,0xe0
POP RBP
RET
|
void eprint(int8 param_1,int8 param_2,int8 param_3,int8 param_4,
int8 param_5,int8 param_6,int8 param_7,int8 param_8,FILE *param_9
,char *param_10,int8 param_11,int8 param_12,int8 param_13,
int8 param_14)
{
char in_AL;
int1 local_e8 [16];
int8 local_d8;
int8 local_d0;
int8 local_c8;
int8 local_c0;
int8 local_b8;
int8 local_a8;
int8 local_98;
int8 local_88;
int8 local_78;
int8 local_68;
int8 local_58;
int8 local_48;
int4 local_38;
int4 local_34;
int1 *local_30;
int1 *local_28;
char *local_18;
FILE *local_10;
if (in_AL != '\0') {
local_b8 = param_1;
local_a8 = param_2;
local_98 = param_3;
local_88 = param_4;
local_78 = param_5;
local_68 = param_6;
local_58 = param_7;
local_48 = param_8;
}
local_28 = local_e8;
local_30 = &stack0x00000008;
local_34 = 0x30;
local_38 = 0x10;
local_10 = param_9;
if (param_9 == (FILE *)0x0) {
local_10 = *(FILE **)PTR_stderr_003bcfd8;
}
local_d8 = param_11;
local_d0 = param_12;
local_c8 = param_13;
local_c0 = param_14;
local_18 = param_10;
if (procent_printed != '\0') {
procent_printed = '\0';
fputc(10,*(FILE **)PTR_stderr_003bcfd8);
fflush(*(FILE **)PTR_stderr_003bcfd8);
}
vfprintf(local_10,local_18,&local_38);
fputc(10,local_10);
if (local_10 != *(FILE **)PTR_stderr_003bcfd8) {
local_28 = local_e8;
local_30 = &stack0x00000008;
local_34 = 0x30;
local_38 = 0x10;
my_printv_error(0xae,local_18,0,&local_38);
}
fflush(local_10);
return;
}
| |
42,211 | uint64_to_be | corpus-core[P]colibri-stateless/src/util/bytes.c | void uint64_to_be(uint8_t* data, uint64_t value) {
data[0] = (value >> 56) & 0xFF;
data[1] = (value >> 48) & 0xFF;
data[2] = (value >> 40) & 0xFF;
data[3] = (value >> 32) & 0xFF;
data[4] = (value >> 24) & 0xFF;
data[5] = (value >> 16) & 0xFF;
data[6] = (value >> 8) & 0xFF;
data[7] = value & 0xFF;
} | O0 | c | uint64_to_be:
pushq %rbp
movq %rsp, %rbp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq -0x10(%rbp), %rax
shrq $0x38, %rax
andq $0xff, %rax
movb %al, %cl
movq -0x8(%rbp), %rax
movb %cl, (%rax)
movq -0x10(%rbp), %rax
shrq $0x30, %rax
andq $0xff, %rax
movb %al, %cl
movq -0x8(%rbp), %rax
movb %cl, 0x1(%rax)
movq -0x10(%rbp), %rax
shrq $0x28, %rax
andq $0xff, %rax
movb %al, %cl
movq -0x8(%rbp), %rax
movb %cl, 0x2(%rax)
movq -0x10(%rbp), %rax
shrq $0x20, %rax
andq $0xff, %rax
movb %al, %cl
movq -0x8(%rbp), %rax
movb %cl, 0x3(%rax)
movq -0x10(%rbp), %rax
shrq $0x18, %rax
andq $0xff, %rax
movb %al, %cl
movq -0x8(%rbp), %rax
movb %cl, 0x4(%rax)
movq -0x10(%rbp), %rax
shrq $0x10, %rax
andq $0xff, %rax
movb %al, %cl
movq -0x8(%rbp), %rax
movb %cl, 0x5(%rax)
movq -0x10(%rbp), %rax
shrq $0x8, %rax
andq $0xff, %rax
movb %al, %cl
movq -0x8(%rbp), %rax
movb %cl, 0x6(%rax)
movq -0x10(%rbp), %rax
andq $0xff, %rax
movb %al, %cl
movq -0x8(%rbp), %rax
movb %cl, 0x7(%rax)
popq %rbp
retq
nopw %cs:(%rax,%rax)
| uint64_to_be:
push rbp
mov rbp, rsp
mov [rbp+var_8], rdi
mov [rbp+var_10], rsi
mov rax, [rbp+var_10]
shr rax, 38h
and rax, 0FFh
mov cl, al
mov rax, [rbp+var_8]
mov [rax], cl
mov rax, [rbp+var_10]
shr rax, 30h
and rax, 0FFh
mov cl, al
mov rax, [rbp+var_8]
mov [rax+1], cl
mov rax, [rbp+var_10]
shr rax, 28h
and rax, 0FFh
mov cl, al
mov rax, [rbp+var_8]
mov [rax+2], cl
mov rax, [rbp+var_10]
shr rax, 20h
and rax, 0FFh
mov cl, al
mov rax, [rbp+var_8]
mov [rax+3], cl
mov rax, [rbp+var_10]
shr rax, 18h
and rax, 0FFh
mov cl, al
mov rax, [rbp+var_8]
mov [rax+4], cl
mov rax, [rbp+var_10]
shr rax, 10h
and rax, 0FFh
mov cl, al
mov rax, [rbp+var_8]
mov [rax+5], cl
mov rax, [rbp+var_10]
shr rax, 8
and rax, 0FFh
mov cl, al
mov rax, [rbp+var_8]
mov [rax+6], cl
mov rax, [rbp+var_10]
and rax, 0FFh
mov cl, al
mov rax, [rbp+var_8]
mov [rax+7], cl
pop rbp
retn
| _BYTE * uint64_to_be(_BYTE *a1, long long a2)
{
_BYTE *result; // rax
*a1 = HIBYTE(a2);
a1[1] = BYTE6(a2);
a1[2] = BYTE5(a2);
a1[3] = BYTE4(a2);
a1[4] = BYTE3(a2);
a1[5] = BYTE2(a2);
a1[6] = BYTE1(a2);
result = a1;
a1[7] = a2;
return result;
}
| uint64_to_be:
PUSH RBP
MOV RBP,RSP
MOV qword ptr [RBP + -0x8],RDI
MOV qword ptr [RBP + -0x10],RSI
MOV RAX,qword ptr [RBP + -0x10]
SHR RAX,0x38
AND RAX,0xff
MOV CL,AL
MOV RAX,qword ptr [RBP + -0x8]
MOV byte ptr [RAX],CL
MOV RAX,qword ptr [RBP + -0x10]
SHR RAX,0x30
AND RAX,0xff
MOV CL,AL
MOV RAX,qword ptr [RBP + -0x8]
MOV byte ptr [RAX + 0x1],CL
MOV RAX,qword ptr [RBP + -0x10]
SHR RAX,0x28
AND RAX,0xff
MOV CL,AL
MOV RAX,qword ptr [RBP + -0x8]
MOV byte ptr [RAX + 0x2],CL
MOV RAX,qword ptr [RBP + -0x10]
SHR RAX,0x20
AND RAX,0xff
MOV CL,AL
MOV RAX,qword ptr [RBP + -0x8]
MOV byte ptr [RAX + 0x3],CL
MOV RAX,qword ptr [RBP + -0x10]
SHR RAX,0x18
AND RAX,0xff
MOV CL,AL
MOV RAX,qword ptr [RBP + -0x8]
MOV byte ptr [RAX + 0x4],CL
MOV RAX,qword ptr [RBP + -0x10]
SHR RAX,0x10
AND RAX,0xff
MOV CL,AL
MOV RAX,qword ptr [RBP + -0x8]
MOV byte ptr [RAX + 0x5],CL
MOV RAX,qword ptr [RBP + -0x10]
SHR RAX,0x8
AND RAX,0xff
MOV CL,AL
MOV RAX,qword ptr [RBP + -0x8]
MOV byte ptr [RAX + 0x6],CL
MOV RAX,qword ptr [RBP + -0x10]
AND RAX,0xff
MOV CL,AL
MOV RAX,qword ptr [RBP + -0x8]
MOV byte ptr [RAX + 0x7],CL
POP RBP
RET
|
void uint64_to_be(int1 *param_1,int8 param_2)
{
*param_1 = (char)((ulong)param_2 >> 0x38);
param_1[1] = (char)((ulong)param_2 >> 0x30);
param_1[2] = (char)((ulong)param_2 >> 0x28);
param_1[3] = (char)((ulong)param_2 >> 0x20);
param_1[4] = (char)((ulong)param_2 >> 0x18);
param_1[5] = (char)((ulong)param_2 >> 0x10);
param_1[6] = (char)((ulong)param_2 >> 8);
param_1[7] = (char)param_2;
return;
}
| |
42,212 | uint64_to_be | corpus-core[P]colibri-stateless/src/util/bytes.c | void uint64_to_be(uint8_t* data, uint64_t value) {
data[0] = (value >> 56) & 0xFF;
data[1] = (value >> 48) & 0xFF;
data[2] = (value >> 40) & 0xFF;
data[3] = (value >> 32) & 0xFF;
data[4] = (value >> 24) & 0xFF;
data[5] = (value >> 16) & 0xFF;
data[6] = (value >> 8) & 0xFF;
data[7] = value & 0xFF;
} | O2 | c | uint64_to_be:
bswapq %rsi
movq %rsi, (%rdi)
retq
| uint64_to_be:
bswap rsi
mov [rdi], rsi
retn
| void uint64_to_be(_QWORD *a1, unsigned long long a2)
{
*a1 = _byteswap_uint64(a2);
}
| uint64_to_be:
BSWAP RSI
MOV qword ptr [RDI],RSI
RET
|
void uint64_to_be(ulong *param_1,ulong param_2)
{
*param_1 = param_2 >> 0x38 | (param_2 & 0xff000000000000) >> 0x28 |
(param_2 & 0xff0000000000) >> 0x18 | (param_2 & 0xff00000000) >> 8 |
(param_2 & 0xff000000) << 8 | (param_2 & 0xff0000) << 0x18 | (param_2 & 0xff00) << 0x28
| param_2 << 0x38;
return;
}
| |
42,213 | uint64_to_be | corpus-core[P]colibri-stateless/src/util/bytes.c | void uint64_to_be(uint8_t* data, uint64_t value) {
data[0] = (value >> 56) & 0xFF;
data[1] = (value >> 48) & 0xFF;
data[2] = (value >> 40) & 0xFF;
data[3] = (value >> 32) & 0xFF;
data[4] = (value >> 24) & 0xFF;
data[5] = (value >> 16) & 0xFF;
data[6] = (value >> 8) & 0xFF;
data[7] = value & 0xFF;
} | O3 | c | uint64_to_be:
bswapq %rsi
movq %rsi, (%rdi)
retq
| uint64_to_be:
bswap rsi
mov [rdi], rsi
retn
| void uint64_to_be(_QWORD *a1, unsigned long long a2)
{
*a1 = _byteswap_uint64(a2);
}
| uint64_to_be:
BSWAP RSI
MOV qword ptr [RDI],RSI
RET
|
void uint64_to_be(ulong *param_1,ulong param_2)
{
*param_1 = param_2 >> 0x38 | (param_2 & 0xff000000000000) >> 0x28 |
(param_2 & 0xff0000000000) >> 0x18 | (param_2 & 0xff00000000) >> 8 |
(param_2 & 0xff000000) << 8 | (param_2 & 0xff0000) << 0x18 | (param_2 & 0xff00) << 0x28
| param_2 << 0x38;
return;
}
| |
42,214 | minja::Parser::unexpected(minja::TemplateToken const&) const | monkey531[P]llama/common/minja.hpp | std::runtime_error unexpected(const TemplateToken & token) const {
return std::runtime_error("Unexpected " + TemplateToken::typeToString(token.type)
+ error_location_suffix(*template_str, token.location.pos));
} | O2 | cpp | minja::Parser::unexpected(minja::TemplateToken const&) const:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x88, %rsp
movq %rdx, %r14
movq %rsi, %r15
movq %rdi, %rbx
movl 0x8(%rdx), %esi
leaq 0x68(%rsp), %r12
movq %r12, %rdi
callq 0x75580
leaq 0x41eb7(%rip), %rsi # 0xb7005
leaq 0x28(%rsp), %rdi
movq %r12, %rdx
callq 0x5b1b2
movq (%r15), %rsi
movq 0x20(%r14), %rdx
leaq 0x8(%rsp), %rdi
callq 0x5a6e6
leaq 0x48(%rsp), %rdi
leaq 0x28(%rsp), %rsi
leaq 0x8(%rsp), %rdx
callq 0x3bf63
leaq 0x48(%rsp), %rsi
movq %rbx, %rdi
callq 0x25050
leaq 0x48(%rsp), %rdi
callq 0x25478
leaq 0x8(%rsp), %rdi
callq 0x25478
leaq 0x28(%rsp), %rdi
callq 0x25478
leaq 0x68(%rsp), %rdi
callq 0x25478
movq %rbx, %rax
addq $0x88, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
movq %rax, %rbx
leaq 0x48(%rsp), %rdi
callq 0x25478
jmp 0x751d9
movq %rax, %rbx
leaq 0x8(%rsp), %rdi
callq 0x25478
jmp 0x751e8
movq %rax, %rbx
leaq 0x28(%rsp), %rdi
callq 0x25478
jmp 0x751f7
movq %rax, %rbx
leaq 0x68(%rsp), %rdi
callq 0x25478
movq %rbx, %rdi
callq 0x251e0
| _ZNK5minja6Parser10unexpectedERKNS_13TemplateTokenE:
push r15
push r14
push r12
push rbx
sub rsp, 88h
mov r14, rdx
mov r15, rsi
mov rbx, rdi
mov esi, [rdx+8]
lea r12, [rsp+0A8h+var_40]
mov rdi, r12
call _ZN5minja13TemplateToken12typeToStringB5cxx11ENS0_4TypeE; minja::TemplateToken::typeToString(minja::TemplateToken::Type)
lea rsi, aUnexpected_0; "Unexpected "
lea rdi, [rsp+0A8h+var_80]
mov rdx, r12
call _ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_OS8_; std::operator+<char>(char const*,std::string&&)
mov rsi, [r15]
mov rdx, [r14+20h]
lea rdi, [rsp+0A8h+var_A0]
call _ZN5minjaL21error_location_suffixERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEm; minja::error_location_suffix(std::string const&,ulong)
lea rdi, [rsp+0A8h+var_60]
lea rsi, [rsp+0A8h+var_80]
lea rdx, [rsp+0A8h+var_A0]
call _ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEOS8_S9_; std::operator+<char>(std::string&&,std::string&)
lea rsi, [rsp+0A8h+var_60]
mov rdi, rbx
call __ZNSt13runtime_errorC1ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE; std::runtime_error::runtime_error(std::string const&)
lea rdi, [rsp+0A8h+var_60]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
lea rdi, [rsp+0A8h+var_A0]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
lea rdi, [rsp+0A8h+var_80]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
lea rdi, [rsp+0A8h+var_40]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
mov rax, rbx
add rsp, 88h
pop rbx
pop r12
pop r14
pop r15
retn
mov rbx, rax
lea rdi, [rsp+arg_40]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
jmp short loc_751D9
mov rbx, rax
loc_751D9:
lea rdi, [rsp+arg_0]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
jmp short loc_751E8
mov rbx, rax
loc_751E8:
lea rdi, [rsp+arg_20]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
jmp short loc_751F7
mov rbx, rax
loc_751F7:
lea rdi, [rsp+arg_60]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
mov rdi, rbx
call __Unwind_Resume
| minja::Parser * minja::Parser::unexpected(minja::Parser *this, const minja::TemplateToken *a2, long long a3)
{
_QWORD v5[4]; // [rsp+8h] [rbp-A0h] BYREF
_QWORD v6[4]; // [rsp+28h] [rbp-80h] BYREF
_BYTE v7[32]; // [rsp+48h] [rbp-60h] BYREF
_BYTE v8[64]; // [rsp+68h] [rbp-40h] BYREF
minja::TemplateToken::typeToString[abi:cxx11](v8, *(unsigned int *)(a3 + 8));
std::operator+<char>((long long)v6, (long long)"Unexpected ", (long long)v8);
minja::error_location_suffix((long long)v5, *(_QWORD *)a2, *(_QWORD *)(a3 + 32));
std::operator+<char>((long long)v7, v6, v5);
std::runtime_error::runtime_error(this, v7);
std::string::~string(v7);
std::string::~string(v5);
std::string::~string(v6);
std::string::~string(v8);
return this;
}
| unexpected:
PUSH R15
PUSH R14
PUSH R12
PUSH RBX
SUB RSP,0x88
MOV R14,RDX
MOV R15,RSI
MOV RBX,RDI
MOV ESI,dword ptr [RDX + 0x8]
LEA R12,[RSP + 0x68]
MOV RDI,R12
CALL 0x00175580
LAB_00175147:
LEA RSI,[0x1b7005]
LEA RDI,[RSP + 0x28]
MOV RDX,R12
CALL 0x0015b1b2
MOV RSI,qword ptr [R15]
MOV RDX,qword ptr [R14 + 0x20]
LAB_00175162:
LEA RDI,[RSP + 0x8]
CALL 0x0015a6e6
LAB_0017516c:
LEA RDI,[RSP + 0x48]
LEA RSI,[RSP + 0x28]
LEA RDX,[RSP + 0x8]
CALL 0x0013bf63
LAB_00175180:
LEA RSI,[RSP + 0x48]
MOV RDI,RBX
CALL 0x00125050
LAB_0017518d:
LEA RDI,[RSP + 0x48]
CALL 0x00125478
LEA RDI,[RSP + 0x8]
CALL 0x00125478
LEA RDI,[RSP + 0x28]
CALL 0x00125478
LEA RDI,[RSP + 0x68]
CALL 0x00125478
MOV RAX,RBX
ADD RSP,0x88
POP RBX
POP R12
POP R14
POP R15
RET
|
/* minja::Parser::unexpected(minja::TemplateToken const&) const */
TemplateToken * minja::Parser::unexpected(TemplateToken *param_1)
{
long in_RDX;
int8 *in_RSI;
minja local_a0 [32];
string local_80 [32];
string local_60 [32];
TemplateToken local_40 [32];
TemplateToken::typeToString_abi_cxx11_(local_40,*(int4 *)(in_RDX + 8));
/* try { // try from 00175147 to 0017515a has its CatchHandler @ 001751f4 */
std::operator+((char *)local_80,(string *)"Unexpected ");
/* try { // try from 00175162 to 0017516b has its CatchHandler @ 001751e5 */
error_location_suffix(local_a0,(string *)*in_RSI,*(ulong *)(in_RDX + 0x20));
/* try { // try from 0017516c to 0017517f has its CatchHandler @ 001751d6 */
std::operator+(local_60,local_80);
/* try { // try from 00175180 to 0017518c has its CatchHandler @ 001751c7 */
std::runtime_error::runtime_error((runtime_error *)param_1,local_60);
std::__cxx11::string::~string(local_60);
std::__cxx11::string::~string((string *)local_a0);
std::__cxx11::string::~string(local_80);
std::__cxx11::string::~string((string *)local_40);
return param_1;
}
| |
42,215 | plusaes::detail::expand_key(unsigned char const*, int) | Pyarmor-Static-Unpack-1shot/plusaes.hpp | inline RoundKeys expand_key(const unsigned char *key, const int key_size) {
if (key_size != 16 && key_size != 24 && key_size != 32) {
throw std::invalid_argument("Invalid key size");
}
const Word rcon[] = {
0x00, 0x01, 0x02, 0x04, 0x08, 0x10,
0x20, 0x40, 0x80, 0x1b, 0x36
};
const int nb = kBlockSize;
const int nk = key_size / nb;
const int nr = get_round_count(key_size);
std::vector<Word> w(nb * (nr + 1));
for (int i = 0; i < nk; ++ i) {
memcpy(&w[i], key + (i * kWordSize), kWordSize);
}
for (int i = nk; i < nb * (nr + 1); ++i) {
Word t = w[i - 1];
if (i % nk == 0) {
t = sub_word(rot_word(t)) ^ rcon[i / nk];
}
else if (nk > 6 && i % nk == 4) {
t = sub_word(t);
}
w[i] = t ^ w[i - nk];
}
RoundKeys keys(nr + 1);
memcpy(&keys[0], &w[0], w.size() * kWordSize);
return keys;
} | O3 | cpp | plusaes::detail::expand_key(unsigned char const*, int):
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
cmpl $0x20, %edx
ja 0x2a7bc
movl %edx, %r14d
movl %edx, %eax
movabsq $0x101010000, %rcx # imm = 0x101010000
btq %rax, %rcx
jae 0x2a7bc
movq %rsi, %r12
movq %rdi, %rbx
cmpl $0x10, %r14d
je 0x2a624
cmpl $0x20, %r14d
je 0x2a61c
cmpl $0x18, %r14d
jne 0x2a79e
movl $0xd, %r13d
jmp 0x2a62a
movl $0xf, %r13d
jmp 0x2a62a
movl $0xb, %r13d
leal (,%r13,4), %r15d
leaq -0x48(%rbp), %rdi
leaq -0x29(%rbp), %rdx
movq %r15, %rsi
callq 0x2ab1c
movq %r13, -0x50(%rbp)
movl %r14d, %esi
shrl $0x2, %esi
movl %esi, %eax
xorl %ecx, %ecx
movq -0x48(%rbp), %rdx
movl (%r12,%rcx,4), %edi
movl %edi, (%rdx,%rcx,4)
incq %rcx
cmpq %rcx, %rax
jne 0x2a650
cmpl %r15d, %esi
jae 0x2a75c
movq -0x48(%rbp), %rdi
addl %esi, %r15d
subl %esi, %r15d
xorl %r8d, %r8d
movl $0xff, %r9d
leaq 0xb76a(%rip), %r10 # 0x35df0
leaq 0xb733(%rip), %r11 # 0x35dc0
movq %rsi, %rcx
movl -0x4(%rdi,%rcx,4), %r13d
movl %ecx, %eax
xorl %edx, %edx
divl %esi
testl %edx, %edx
je 0x2a6f4
cmpl $0x19, %r14d
jb 0x2a744
cmpl $0x4, %edx
jne 0x2a744
movzbl %r13b, %eax
movzbl (%rax,%r10), %eax
movl %r13d, %edx
shrl $0x8, %edx
andl %r9d, %edx
movzbl (%rdx,%r10), %edx
shll $0x8, %edx
orl %eax, %edx
movl %r13d, %eax
shrl $0x10, %eax
andl %r9d, %eax
movzbl (%rax,%r10), %eax
shll $0x10, %eax
orl %edx, %eax
shrl $0x18, %r13d
movzbl (%r13,%r10), %r13d
shll $0x18, %r13d
orl %eax, %r13d
jmp 0x2a744
roll $0x18, %r13d
movl %r13d, %edx
andl %r9d, %edx
movzbl (%rdx,%r10), %edx
movl %r13d, %r12d
shrl $0x8, %r12d
andl %r9d, %r12d
movzbl (%r12,%r10), %r12d
shll $0x8, %r12d
orl %edx, %r12d
movl %r13d, %edx
shrl $0x10, %edx
andl %r9d, %edx
movzbl (%rdx,%r10), %edx
shll $0x10, %edx
orl %r12d, %edx
shrl $0x18, %r13d
movzbl (%r13,%r10), %r13d
shll $0x18, %r13d
orl %edx, %r13d
movl %eax, %eax
xorl (%r11,%rax,4), %r13d
xorl (%rdi,%r8), %r13d
movl %r13d, (%rdi,%rcx,4)
incq %rcx
addq $0x4, %r8
cmpq %rcx, %r15
jne 0x2a690
movl -0x50(%rbp), %esi
leaq -0x29(%rbp), %rdx
movq %rbx, %rdi
callq 0x2abb2
movq (%rbx), %rdi
movq -0x48(%rbp), %rsi
movq -0x40(%rbp), %rdx
subq %rsi, %rdx
callq 0x71c0
movq -0x48(%rbp), %rdi
testq %rdi, %rdi
je 0x2a78c
callq 0x71f0
movq %rbx, %rax
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movl $0x10, %edi
callq 0x7120
movq %rax, %r14
leaq 0xbbf0(%rip), %rsi # 0x363a2
movq %rax, %rdi
callq 0x7480
jmp 0x2a7d8
movl $0x10, %edi
callq 0x7120
movq %rax, %r14
leaq 0xbbd2(%rip), %rsi # 0x363a2
movq %rax, %rdi
callq 0x7480
movq 0x207f1(%rip), %rsi # 0x4afd0
movq 0x207ca(%rip), %rdx # 0x4afb0
movq %r14, %rdi
callq 0x7420
jmp 0x2a7f0
movq %rax, %rbx
movq %r14, %rdi
callq 0x71a0
jmp 0x2a813
movq %rax, %rbx
movq -0x48(%rbp), %rdi
testq %rdi, %rdi
je 0x2a813
callq 0x71f0
jmp 0x2a813
movq %rax, %rbx
movq %rbx, %rdi
callq 0x7450
| _ZN7plusaes6detail10expand_keyEPKhi:
push rbp
mov rbp, rsp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 28h
cmp edx, 20h ; ' '
ja loc_2A7BC
mov r14d, edx
mov eax, edx
mov rcx, 101010000h
bt rcx, rax
jnb loc_2A7BC
mov r12, rsi
mov rbx, rdi
cmp r14d, 10h
jz short loc_2A624
cmp r14d, 20h ; ' '
jz short loc_2A61C
cmp r14d, 18h
jnz loc_2A79E
mov r13d, 0Dh
jmp short loc_2A62A
loc_2A61C:
mov r13d, 0Fh
jmp short loc_2A62A
loc_2A624:
mov r13d, 0Bh
loc_2A62A:
lea r15d, ds:0[r13*4]
lea rdi, [rbp+var_48]
lea rdx, [rbp+var_29]
mov rsi, r15
call _ZNSt6vectorIjSaIjEEC2EmRKS0_; std::vector<uint>::vector(ulong,std::allocator<uint> const&)
mov [rbp+var_50], r13
mov esi, r14d
shr esi, 2
mov eax, esi
xor ecx, ecx
loc_2A650:
mov rdx, [rbp+var_48]
mov edi, [r12+rcx*4]
mov [rdx+rcx*4], edi
inc rcx
cmp rax, rcx
jnz short loc_2A650
cmp esi, r15d
jnb loc_2A75C
mov rdi, [rbp+var_48]
add r15d, esi
sub r15d, esi
xor r8d, r8d
mov r9d, 0FFh
lea r10, _ZN7plusaes6detailL5kSboxE; plusaes::detail::kSbox
lea r11, unk_35DC0
mov rcx, rsi
loc_2A690:
mov r13d, [rdi+rcx*4-4]
mov eax, ecx
xor edx, edx
div esi
test edx, edx
jz short loc_2A6F4
cmp r14d, 19h
jb loc_2A744
cmp edx, 4
jnz loc_2A744
movzx eax, r13b
movzx eax, byte ptr [rax+r10]
mov edx, r13d
shr edx, 8
and edx, r9d
movzx edx, byte ptr [rdx+r10]
shl edx, 8
or edx, eax
mov eax, r13d
shr eax, 10h
and eax, r9d
movzx eax, byte ptr [rax+r10]
shl eax, 10h
or eax, edx
shr r13d, 18h
movzx r13d, byte ptr [r13+r10+0]
shl r13d, 18h
or r13d, eax
jmp short loc_2A744
loc_2A6F4:
rol r13d, 18h
mov edx, r13d
and edx, r9d
movzx edx, byte ptr [rdx+r10]
mov r12d, r13d
shr r12d, 8
and r12d, r9d
movzx r12d, byte ptr [r12+r10]
shl r12d, 8
or r12d, edx
mov edx, r13d
shr edx, 10h
and edx, r9d
movzx edx, byte ptr [rdx+r10]
shl edx, 10h
or edx, r12d
shr r13d, 18h
movzx r13d, byte ptr [r13+r10+0]
shl r13d, 18h
or r13d, edx
mov eax, eax
xor r13d, [r11+rax*4]
loc_2A744:
xor r13d, [rdi+r8]
mov [rdi+rcx*4], r13d
inc rcx
add r8, 4
cmp r15, rcx
jnz loc_2A690
loc_2A75C:
mov esi, dword ptr [rbp+var_50]
lea rdx, [rbp+var_29]
mov rdi, rbx
call _ZNSt6vectorIN7plusaes6detail5StateESaIS2_EEC2EmRKS3_; std::vector<plusaes::detail::State>::vector(ulong,std::allocator<plusaes::detail::State> const&)
mov rdi, [rbx]
mov rsi, [rbp+var_48]
mov rdx, [rbp+var_40]
sub rdx, rsi
call _memcpy
mov rdi, [rbp+var_48]; void *
test rdi, rdi
jz short loc_2A78C
call __ZdlPv; operator delete(void *)
loc_2A78C:
mov rax, rbx
add rsp, 28h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
loc_2A79E:
mov edi, 10h; thrown_size
call ___cxa_allocate_exception
mov r14, rax
lea rsi, aInvalidKeySize; "Invalid key size"
mov rdi, rax; this
call __ZNSt16invalid_argumentC1EPKc; std::invalid_argument::invalid_argument(char const*)
jmp short loc_2A7D8
loc_2A7BC:
mov edi, 10h; thrown_size
call ___cxa_allocate_exception
mov r14, rax
lea rsi, aInvalidKeySize; "Invalid key size"
mov rdi, rax; this
call __ZNSt16invalid_argumentC1EPKc; std::invalid_argument::invalid_argument(char const*)
loc_2A7D8:
mov rsi, cs:_ZTISt16invalid_argument_ptr; lptinfo
mov rdx, cs:_ZNSt16invalid_argumentD1Ev_ptr; void (*)(void *)
mov rdi, r14; void *
call ___cxa_throw
jmp short $+2
loc_2A7F0:
mov rbx, rax
mov rdi, r14; void *
call ___cxa_free_exception
jmp short loc_2A813
mov rbx, rax
mov rdi, [rbp+var_48]; void *
test rdi, rdi
jz short loc_2A813
call __ZdlPv; operator delete(void *)
jmp short loc_2A813
mov rbx, rax
loc_2A813:
mov rdi, rbx
call __Unwind_Resume
| plusaes::detail * plusaes::detail::expand_key(
plusaes::detail *this,
const unsigned __int8 *a2,
unsigned int a3)
{
long long v4; // rcx
int v7; // r13d
unsigned int v8; // r15d
long long v9; // r8
unsigned int v10; // esi
long long v11; // rcx
_DWORD *v12; // rdi
unsigned int v13; // r13d
unsigned int v14; // r13d
std::invalid_argument *exception; // r14
unsigned int v17; // [rsp+0h] [rbp-50h]
void *v18[3]; // [rsp+8h] [rbp-48h] BYREF
_BYTE v19[41]; // [rsp+27h] [rbp-29h] BYREF
if ( a3 > 0x20 )
goto LABEL_22;
v4 = 0x101010000LL;
if ( !_bittest64(&v4, a3) )
goto LABEL_22;
if ( a3 == 16 )
{
v7 = 11;
goto LABEL_9;
}
if ( a3 == 32 )
{
v7 = 15;
goto LABEL_9;
}
if ( a3 != 24 )
{
LABEL_22:
exception = (std::invalid_argument *)__cxa_allocate_exception(0x10uLL);
std::invalid_argument::invalid_argument(exception, "Invalid key size");
__cxa_throw(
exception,
(struct type_info *)&`typeinfo for'std::invalid_argument,
(void (*)(void *))&std::invalid_argument::~invalid_argument);
}
v7 = 13;
LABEL_9:
v8 = 4 * v7;
std::vector<unsigned int>::vector(v18, (unsigned int)(4 * v7), v19);
v17 = v7;
v10 = a3 >> 2;
v11 = 0LL;
do
{
*((_DWORD *)v18[0] + v11) = *(_DWORD *)&a2[4 * v11];
++v11;
}
while ( a3 >> 2 != v11 );
if ( v10 < v8 )
{
v12 = v18[0];
v9 = 0LL;
v11 = a3 >> 2;
do
{
v13 = v12[v11 - 1];
if ( (unsigned int)v11 % v10 )
{
if ( a3 >= 0x19 && (unsigned int)v11 % v10 == 4 )
v13 = plusaes::detail::kSbox[(unsigned __int8)v13] | (plusaes::detail::kSbox[BYTE1(v13)] << 8) | (plusaes::detail::kSbox[BYTE2(v13)] << 16) | (plusaes::detail::kSbox[HIBYTE(v13)] << 24);
}
else
{
v14 = __ROL4__(v13, 24);
v13 = dword_35DC0[(unsigned int)v11 / v10] ^ (plusaes::detail::kSbox[(unsigned __int8)v14] | (plusaes::detail::kSbox[BYTE1(v14)] << 8) | (plusaes::detail::kSbox[BYTE2(v14)] << 16) | (plusaes::detail::kSbox[HIBYTE(v14)] << 24));
}
v12[v11++] = v12[v9++] ^ v13;
}
while ( v8 != v11 );
}
std::vector<plusaes::detail::State>::vector(this, v17, v19, v11, v9 * 4);
memcpy(*(_QWORD *)this, v18[0], (char *)v18[1] - (char *)v18[0]);
if ( v18[0] )
operator delete(v18[0]);
return this;
}
| expand_key:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x28
CMP EDX,0x20
JA 0x0012a7bc
MOV R14D,EDX
MOV EAX,EDX
MOV RCX,0x101010000
BT RCX,RAX
JNC 0x0012a7bc
MOV R12,RSI
MOV RBX,RDI
CMP R14D,0x10
JZ 0x0012a624
CMP R14D,0x20
JZ 0x0012a61c
CMP R14D,0x18
JNZ 0x0012a79e
MOV R13D,0xd
JMP 0x0012a62a
LAB_0012a61c:
MOV R13D,0xf
JMP 0x0012a62a
LAB_0012a624:
MOV R13D,0xb
LAB_0012a62a:
LEA R15D,[R13*0x4]
LAB_0012a632:
LEA RDI,[RBP + -0x48]
LEA RDX,[RBP + -0x29]
MOV RSI,R15
CALL 0x0012ab1c
MOV qword ptr [RBP + -0x50],R13
MOV ESI,R14D
SHR ESI,0x2
MOV EAX,ESI
XOR ECX,ECX
LAB_0012a650:
MOV RDX,qword ptr [RBP + -0x48]
MOV EDI,dword ptr [R12 + RCX*0x4]
MOV dword ptr [RDX + RCX*0x4],EDI
INC RCX
CMP RAX,RCX
JNZ 0x0012a650
CMP ESI,R15D
JNC 0x0012a75c
MOV RDI,qword ptr [RBP + -0x48]
ADD R15D,ESI
SUB R15D,ESI
XOR R8D,R8D
MOV R9D,0xff
LEA R10,[0x135df0]
LEA R11,[0x135dc0]
MOV RCX,RSI
LAB_0012a690:
MOV R13D,dword ptr [RDI + RCX*0x4 + -0x4]
MOV EAX,ECX
XOR EDX,EDX
DIV ESI
TEST EDX,EDX
JZ 0x0012a6f4
CMP R14D,0x19
JC 0x0012a744
CMP EDX,0x4
JNZ 0x0012a744
MOVZX EAX,R13B
MOVZX EAX,byte ptr [RAX + R10*0x1]
MOV EDX,R13D
SHR EDX,0x8
AND EDX,R9D
MOVZX EDX,byte ptr [RDX + R10*0x1]
SHL EDX,0x8
OR EDX,EAX
MOV EAX,R13D
SHR EAX,0x10
AND EAX,R9D
MOVZX EAX,byte ptr [RAX + R10*0x1]
SHL EAX,0x10
OR EAX,EDX
SHR R13D,0x18
MOVZX R13D,byte ptr [R13 + R10*0x1]
SHL R13D,0x18
OR R13D,EAX
JMP 0x0012a744
LAB_0012a6f4:
ROL R13D,0x18
MOV EDX,R13D
AND EDX,R9D
MOVZX EDX,byte ptr [RDX + R10*0x1]
MOV R12D,R13D
SHR R12D,0x8
AND R12D,R9D
MOVZX R12D,byte ptr [R12 + R10*0x1]
SHL R12D,0x8
OR R12D,EDX
MOV EDX,R13D
SHR EDX,0x10
AND EDX,R9D
MOVZX EDX,byte ptr [RDX + R10*0x1]
SHL EDX,0x10
OR EDX,R12D
SHR R13D,0x18
MOVZX R13D,byte ptr [R13 + R10*0x1]
SHL R13D,0x18
OR R13D,EDX
MOV EAX,EAX
XOR R13D,dword ptr [R11 + RAX*0x4]
LAB_0012a744:
XOR R13D,dword ptr [RDI + R8*0x1]
MOV dword ptr [RDI + RCX*0x4],R13D
INC RCX
ADD R8,0x4
CMP R15,RCX
JNZ 0x0012a690
LAB_0012a75c:
MOV ESI,dword ptr [RBP + -0x50]
LAB_0012a75f:
LEA RDX,[RBP + -0x29]
MOV RDI,RBX
CALL 0x0012abb2
LAB_0012a76b:
MOV RDI,qword ptr [RBX]
MOV RSI,qword ptr [RBP + -0x48]
MOV RDX,qword ptr [RBP + -0x40]
SUB RDX,RSI
CALL 0x001071c0
MOV RDI,qword ptr [RBP + -0x48]
TEST RDI,RDI
JZ 0x0012a78c
CALL 0x001071f0
LAB_0012a78c:
MOV RAX,RBX
ADD RSP,0x28
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
LAB_0012a79e:
MOV EDI,0x10
CALL 0x00107120
MOV R14,RAX
LAB_0012a7ab:
LEA RSI,[0x1363a2]
MOV RDI,RAX
CALL 0x00107480
LAB_0012a7ba:
JMP 0x0012a7d8
LAB_0012a7bc:
MOV EDI,0x10
CALL 0x00107120
MOV R14,RAX
LAB_0012a7c9:
LEA RSI,[0x1363a2]
MOV RDI,RAX
CALL 0x00107480
LAB_0012a7d8:
MOV RSI,qword ptr [0x0014afd0]
MOV RDX,qword ptr [0x0014afb0]
MOV RDI,R14
CALL 0x00107420
|
/* plusaes::detail::expand_key(unsigned char const*, int) */
detail * __thiscall plusaes::detail::expand_key(detail *this,uchar *param_1,int param_2)
{
invalid_argument *this_00;
ulong uVar1;
ulong uVar2;
int iVar3;
uint uVar4;
long lVar5;
uint uVar6;
allocator *paVar7;
uint uVar8;
void *local_50;
long local_48;
if (((uint)param_2 < 0x21) && ((0x101010000U >> ((ulong)(uint)param_2 & 0x3f) & 1) != 0)) {
if (param_2 == 0x10) {
paVar7 = (allocator *)0xb;
}
else if (param_2 == 0x20) {
paVar7 = (allocator *)0xf;
}
else {
if (param_2 != 0x18) {
this_00 = (invalid_argument *)__cxa_allocate_exception(0x10);
/* try { // try from 0012a7ab to 0012a7b9 has its CatchHandler @ 0012a7f0 */
std::invalid_argument::invalid_argument(this_00,"Invalid key size");
goto LAB_0012a7d8;
}
paVar7 = (allocator *)0xd;
}
uVar8 = (int)paVar7 * 4;
/* try { // try from 0012a632 to 0012a641 has its CatchHandler @ 0012a810 */
std::vector<unsigned_int,std::allocator<unsigned_int>>::vector
((ulong)&local_50,(allocator *)(ulong)uVar8);
uVar4 = (uint)param_2 >> 2;
uVar2 = (ulong)uVar4;
uVar1 = 0;
do {
*(int4 *)((long)local_50 + uVar1 * 4) = *(int4 *)(param_1 + uVar1 * 4);
uVar1 = uVar1 + 1;
} while (uVar2 != uVar1);
if (uVar4 < uVar8) {
lVar5 = 0;
do {
uVar6 = *(uint *)((long)local_50 + uVar2 * 4 + -4);
iVar3 = (int)((uVar2 & 0xffffffff) % (ulong)uVar4);
if (iVar3 == 0) {
uVar6 = CONCAT13(kSbox[uVar6 & 0xff],
CONCAT12(kSbox[uVar6 >> 0x18],
CONCAT11(kSbox[(uVar6 >> 8 & 0xff00) >> 8],
kSbox[uVar6 >> 8 & 0xff]))) ^
*(uint *)(&DAT_00135dc0 + ((uVar2 & 0xffffffff) / (ulong)uVar4) * 4);
}
else if ((0x18 < (uint)param_2) && (iVar3 == 4)) {
uVar6 = CONCAT13(kSbox[uVar6 >> 0x18],
CONCAT12(kSbox[uVar6 >> 0x10 & 0xff],
CONCAT11(kSbox[uVar6 >> 8 & 0xff],kSbox[uVar6 & 0xff])));
}
*(uint *)((long)local_50 + uVar2 * 4) = uVar6 ^ *(uint *)((long)local_50 + lVar5);
uVar2 = uVar2 + 1;
lVar5 = lVar5 + 4;
} while (uVar8 != uVar2);
}
/* try { // try from 0012a75f to 0012a76a has its CatchHandler @ 0012a7fd */
std::vector<plusaes::detail::State,std::allocator<plusaes::detail::State>>::vector
((ulong)this,paVar7);
memcpy(*(void **)this,local_50,local_48 - (long)local_50);
if (local_50 != (void *)0x0) {
operator_delete(local_50);
}
return this;
}
this_00 = (invalid_argument *)__cxa_allocate_exception(0x10);
/* try { // try from 0012a7c9 to 0012a7d7 has its CatchHandler @ 0012a7ee */
std::invalid_argument::invalid_argument(this_00,"Invalid key size");
LAB_0012a7d8:
/* WARNING: Subroutine does not return */
__cxa_throw(this_00,PTR_typeinfo_0014afd0,PTR__invalid_argument_0014afb0);
}
| |
42,216 | ggml_backend_cpu_set_n_threads | Yangxiaoz[P]GGML-Tutorial/ggml/src/ggml-cpu/ggml-cpu.cpp | void ggml_backend_cpu_set_n_threads(ggml_backend_t backend_cpu, int n_threads) {
GGML_ASSERT(ggml_backend_is_cpu(backend_cpu));
struct ggml_backend_cpu_context * ctx = (struct ggml_backend_cpu_context *)backend_cpu->context;
ctx->n_threads = n_threads;
} | O1 | cpp | ggml_backend_cpu_set_n_threads:
pushq %r14
pushq %rbx
pushq %rax
testq %rdi, %rdi
je 0x27bc1
movl %esi, %ebx
movq %rdi, %r14
movq (%rdi), %rdi
leaq 0x21ab6(%rip), %rsi # 0x49660
callq 0x8540
testb %al, %al
je 0x27bc1
movq 0x78(%r14), %rax
movl %ebx, (%rax)
addq $0x8, %rsp
popq %rbx
popq %r14
retq
leaq 0x11276(%rip), %rdi # 0x38e3e
leaq 0xeb52(%rip), %rdx # 0x36721
leaq 0x112c9(%rip), %rcx # 0x38e9f
movl $0xda, %esi
xorl %eax, %eax
callq 0x89c0
| ggml_backend_cpu_set_n_threads:
push r14
push rbx
push rax
test rdi, rdi
jz short loc_27BC1
mov ebx, esi
mov r14, rdi
mov rdi, [rdi]
lea rsi, _ZZL21ggml_backend_cpu_guidvE4guid; ggml_backend_cpu_guid(void)::guid
call _ggml_guid_matches
test al, al
jz short loc_27BC1
mov rax, [r14+78h]
mov [rax], ebx
add rsp, 8
pop rbx
pop r14
retn
loc_27BC1:
lea rdi, aWorkspaceLlm4b_1; "/workspace/llm4binary/github/2025_star3"...
lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed"
lea rcx, aGgmlBackendIsC_0; "ggml_backend_is_cpu(backend_cpu)"
mov esi, 0DAh
xor eax, eax
call _ggml_abort
| _DWORD * ggml_backend_cpu_set_n_threads(_QWORD *a1, int a2)
{
_DWORD *result; // rax
double v3; // xmm0_8
if ( a1 && (unsigned __int8)ggml_guid_matches(*a1, &ggml_backend_cpu_guid(void)::guid) )
{
result = (_DWORD *)a1[15];
*result = a2;
}
else
{
v3 = ggml_abort(
"/workspace/llm4binary/github/2025_star3/Yangxiaoz[P]GGML-Tutorial/ggml/src/ggml-cpu/ggml-cpu.cpp",
218LL,
"GGML_ASSERT(%s) failed",
"ggml_backend_is_cpu(backend_cpu)");
return (_DWORD *)ggml_backend_cpu_set_threadpool(v3);
}
return result;
}
| ggml_backend_cpu_set_n_threads:
PUSH R14
PUSH RBX
PUSH RAX
TEST RDI,RDI
JZ 0x00127bc1
MOV EBX,ESI
MOV R14,RDI
MOV RDI,qword ptr [RDI]
LEA RSI,[0x149660]
CALL 0x00108540
TEST AL,AL
JZ 0x00127bc1
MOV RAX,qword ptr [R14 + 0x78]
MOV dword ptr [RAX],EBX
ADD RSP,0x8
POP RBX
POP R14
RET
LAB_00127bc1:
LEA RDI,[0x138e3e]
LEA RDX,[0x136721]
LEA RCX,[0x138e9f]
MOV ESI,0xda
XOR EAX,EAX
CALL 0x001089c0
|
void ggml_backend_cpu_set_n_threads(int8 *param_1,int4 param_2)
{
char cVar1;
if (param_1 != (int8 *)0x0) {
cVar1 = ggml_guid_matches(*param_1,ggml_backend_cpu_guid()::guid);
if (cVar1 != '\0') {
*(int4 *)param_1[0xf] = param_2;
return;
}
}
/* WARNING: Subroutine does not return */
ggml_abort("/workspace/llm4binary/github/2025_star3/Yangxiaoz[P]GGML-Tutorial/ggml/src/ggml-cpu/ggml-cpu.cpp"
,0xda,"GGML_ASSERT(%s) failed","ggml_backend_is_cpu(backend_cpu)");
}
| |
42,217 | ggml_backend_cpu_set_n_threads | Yangxiaoz[P]GGML-Tutorial/ggml/src/ggml-cpu/ggml-cpu.cpp | void ggml_backend_cpu_set_n_threads(ggml_backend_t backend_cpu, int n_threads) {
GGML_ASSERT(ggml_backend_is_cpu(backend_cpu));
struct ggml_backend_cpu_context * ctx = (struct ggml_backend_cpu_context *)backend_cpu->context;
ctx->n_threads = n_threads;
} | O3 | cpp | ggml_backend_cpu_set_n_threads:
pushq %r14
pushq %rbx
pushq %rax
testq %rdi, %rdi
je 0x28455
movl %esi, %ebx
movq %rdi, %r14
movq (%rdi), %rdi
leaq 0x21222(%rip), %rsi # 0x49660
callq 0x8540
testb %al, %al
je 0x28455
movq 0x78(%r14), %rax
movl %ebx, (%rax)
addq $0x8, %rsp
popq %rbx
popq %r14
retq
leaq 0x10b8a(%rip), %rdi # 0x38fe6
leaq 0xe466(%rip), %rdx # 0x368c9
leaq 0x10bdd(%rip), %rcx # 0x39047
movl $0xda, %esi
xorl %eax, %eax
callq 0x89c0
| ggml_backend_cpu_set_n_threads:
push r14
push rbx
push rax
test rdi, rdi
jz short loc_28455
mov ebx, esi
mov r14, rdi
mov rdi, [rdi]
lea rsi, _ZZL21ggml_backend_cpu_guidvE4guid; ggml_backend_cpu_guid(void)::guid
call _ggml_guid_matches
test al, al
jz short loc_28455
mov rax, [r14+78h]
mov [rax], ebx
add rsp, 8
pop rbx
pop r14
retn
loc_28455:
lea rdi, aWorkspaceLlm4b_1; "/workspace/llm4binary/github/2025_star3"...
lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed"
lea rcx, aGgmlBackendIsC_0; "ggml_backend_is_cpu(backend_cpu)"
mov esi, 0DAh
xor eax, eax
call _ggml_abort
| _DWORD * ggml_backend_cpu_set_n_threads(_QWORD *a1, int a2)
{
_DWORD *result; // rax
double v3; // xmm0_8
if ( a1 && (unsigned __int8)ggml_guid_matches(*a1, &ggml_backend_cpu_guid(void)::guid) )
{
result = (_DWORD *)a1[15];
*result = a2;
}
else
{
v3 = ggml_abort(
"/workspace/llm4binary/github/2025_star3/Yangxiaoz[P]GGML-Tutorial/ggml/src/ggml-cpu/ggml-cpu.cpp",
218LL,
"GGML_ASSERT(%s) failed",
"ggml_backend_is_cpu(backend_cpu)");
return (_DWORD *)ggml_backend_cpu_set_threadpool(v3);
}
return result;
}
| ggml_backend_cpu_set_n_threads:
PUSH R14
PUSH RBX
PUSH RAX
TEST RDI,RDI
JZ 0x00128455
MOV EBX,ESI
MOV R14,RDI
MOV RDI,qword ptr [RDI]
LEA RSI,[0x149660]
CALL 0x00108540
TEST AL,AL
JZ 0x00128455
MOV RAX,qword ptr [R14 + 0x78]
MOV dword ptr [RAX],EBX
ADD RSP,0x8
POP RBX
POP R14
RET
LAB_00128455:
LEA RDI,[0x138fe6]
LEA RDX,[0x1368c9]
LEA RCX,[0x139047]
MOV ESI,0xda
XOR EAX,EAX
CALL 0x001089c0
|
void ggml_backend_cpu_set_n_threads(int8 *param_1,int4 param_2)
{
char cVar1;
if (param_1 != (int8 *)0x0) {
cVar1 = ggml_guid_matches(*param_1,ggml_backend_cpu_guid()::guid);
if (cVar1 != '\0') {
*(int4 *)param_1[0xf] = param_2;
return;
}
}
/* WARNING: Subroutine does not return */
ggml_abort("/workspace/llm4binary/github/2025_star3/Yangxiaoz[P]GGML-Tutorial/ggml/src/ggml-cpu/ggml-cpu.cpp"
,0xda,"GGML_ASSERT(%s) failed","ggml_backend_is_cpu(backend_cpu)");
}
| |
42,218 | nglog::LogMessage::RecordCrashReason(nglog::internal::CrashReason*) | ng-log[P]ng-log/src/logging.cc | void LogMessage::RecordCrashReason(internal::CrashReason* reason) {
reason->filename = fatal_msg_data_exclusive.fullname_;
reason->line_number = fatal_msg_data_exclusive.line_;
reason->message = fatal_msg_data_exclusive.message_text_ +
fatal_msg_data_exclusive.num_prefix_chars_;
#ifdef HAVE_STACKTRACE
// Retrieve the stack trace, omitting the logging frames that got us here.
reason->depth = GetStackTrace(reason->stack, ARRAYSIZE(reason->stack), 4);
#else
reason->depth = 0;
#endif
} | O2 | cpp | nglog::LogMessage::RecordCrashReason(nglog::internal::CrashReason*):
pushq %rbx
movq %rsi, %rbx
leaq 0x24b7b(%rip), %rax # 0x2ed60
movq 0x2c24c(%rip), %rcx # 0x36438
movq %rcx, (%rsi)
movl 0x2c207(%rip), %ecx # 0x363fc
movl %ecx, 0x8(%rsi)
movq 0x2c219(%rip), %rcx # 0x36418
leaq 0x4(%rcx,%rax), %rax
movq %rax, 0x10(%rsi)
leaq 0x18(%rsi), %rdi
pushq $0x20
popq %rsi
pushq $0x4
popq %rdx
callq 0x1bb6c
movl %eax, 0x118(%rbx)
popq %rbx
retq
nop
| _ZN5nglog10LogMessage17RecordCrashReasonEPNS_8internal11CrashReasonE:
push rbx
mov rbx, rsi
lea rax, _ZN5nglogL24fatal_msg_data_exclusiveE; nglog::fatal_msg_data_exclusive
mov rcx, cs:qword_36438
mov [rsi], rcx
mov ecx, cs:dword_363FC
mov [rsi+8], ecx
mov rcx, cs:qword_36418; int
lea rax, [rcx+rax+4]
mov [rsi+10h], rax
lea rdi, [rsi+18h]; this
push 20h ; ' '
pop rsi; void **
push 4
pop rdx; int
call _ZN5nglog5tools13GetStackTraceEPPvii; nglog::tools::GetStackTrace(void **,int,int)
mov [rbx+118h], eax
pop rbx
retn
| long long nglog::LogMessage::RecordCrashReason(long long a1, long long a2)
{
int v2; // ecx
long long result; // rax
*(_QWORD *)a2 = qword_36438;
*(_DWORD *)(a2 + 8) = dword_363FC;
v2 = qword_36418[0];
*(_QWORD *)(a2 + 16) = (char *)&nglog::fatal_msg_data_exclusive + *(_QWORD *)qword_36418 + 4;
result = nglog::tools::GetStackTrace((nglog::tools *)(a2 + 24), (void **)&qword_20, 4, v2);
*(_DWORD *)(a2 + 280) = result;
return result;
}
| RecordCrashReason:
PUSH RBX
MOV RBX,RSI
LEA RAX,[0x12ed60]
MOV RCX,qword ptr [0x00136438]
MOV qword ptr [RSI],RCX
MOV ECX,dword ptr [0x001363fc]
MOV dword ptr [RSI + 0x8],ECX
MOV RCX,qword ptr [0x00136418]
LEA RAX,[RCX + RAX*0x1 + 0x4]
MOV qword ptr [RSI + 0x10],RAX
LEA RDI,[RSI + 0x18]
PUSH 0x20
POP RSI
PUSH 0x4
POP RDX
CALL 0x0011bb6c
MOV dword ptr [RBX + 0x118],EAX
POP RBX
RET
|
/* nglog::LogMessage::RecordCrashReason(nglog::internal::CrashReason*) */
void __thiscall nglog::LogMessage::RecordCrashReason(LogMessage *this,CrashReason *param_1)
{
int4 uVar1;
*(int8 *)param_1 = fatal_msg_data_exclusive._30424_8_;
*(int4 *)(param_1 + 8) = fatal_msg_data_exclusive._30364_4_;
*(long *)(param_1 + 0x10) = fatal_msg_data_exclusive._30392_8_ + 0x12ed64;
uVar1 = tools::GetStackTrace((void **)(param_1 + 0x18),0x20,4);
*(int4 *)(param_1 + 0x118) = uVar1;
return;
}
| |
42,219 | js_finrec_finalizer | bluesky950520[P]quickjs/quickjs.c | static void js_finrec_finalizer(JSRuntime *rt, JSValue val)
{
JSFinalizationRegistryData *frd = JS_GetOpaque(val, JS_CLASS_FINALIZATION_REGISTRY);
if (frd) {
struct list_head *el, *el1;
/* first pass to remove the weak ref entries and avoid having them modified
by freeing a token / held value. */
list_for_each_safe(el, el1, &frd->entries) {
JSFinRecEntry *fre = list_entry(el, JSFinRecEntry, link);
delete_finrec_weakref(rt, fre);
}
/* second pass to actually free all objects. */
list_for_each_safe(el, el1, &frd->entries) {
JSFinRecEntry *fre = list_entry(el, JSFinRecEntry, link);
list_del(&fre->link);
JS_FreeValueRT(rt, fre->held_val);
JS_FreeValueRT(rt, fre->token);
js_free_rt(rt, fre);
}
JS_FreeValueRT(rt, frd->cb);
js_free_rt(rt, frd);
}
} | O1 | c | js_finrec_finalizer:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %rbx
movq %rsi, (%rsp)
cmpl $-0x1, %edx
jne 0x841a0
movq (%rsp), %rax
cmpw $0x3b, 0x6(%rax)
jne 0x841a0
movq 0x30(%rax), %r14
jmp 0x841a3
xorl %r14d, %r14d
testq %r14, %r14
je 0x84274
movq 0x8(%r14), %rsi
cmpq %r14, %rsi
je 0x841c9
movq 0x8(%rsi), %r15
movq %rbx, %rdi
callq 0x84340
movq %r15, %rsi
cmpq %r14, %r15
jne 0x841b5
movq 0x8(%r14), %r15
cmpq %r14, %r15
je 0x84233
movq (%r15), %rax
movq 0x8(%r15), %r12
movq %r12, 0x8(%rax)
movq %rax, (%r12)
xorps %xmm0, %xmm0
movups %xmm0, (%r15)
movq 0x30(%r15), %rsi
movq 0x38(%r15), %rdx
movq %rbx, %rdi
callq 0x1d8c6
movq 0x40(%r15), %rsi
movq 0x48(%r15), %rdx
movq %rbx, %rdi
callq 0x1d8c6
decq 0x28(%rbx)
movq %r15, %rdi
callq *0x20(%rbx)
movq 0x30(%rbx), %rcx
movq 0x40(%rbx), %rdi
subq %rax, %rcx
addq $-0x8, %rcx
movq %rcx, 0x30(%rbx)
movq %r15, %rsi
callq *0x10(%rbx)
movq %r12, %r15
cmpq %r14, %r12
jne 0x841d2
movq 0x18(%r14), %rsi
movq 0x20(%r14), %rdx
movq %rbx, %rdi
callq 0x1d8c6
decq 0x28(%rbx)
movq %r14, %rdi
callq *0x20(%rbx)
movq 0x10(%rbx), %rcx
movq 0x30(%rbx), %rdx
subq %rax, %rdx
addq $-0x8, %rdx
movq %rdx, 0x30(%rbx)
movq 0x40(%rbx), %rdi
movq %r14, %rsi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
jmpq *%rcx
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
| js_finrec_finalizer:
push r15
push r14
push r12
push rbx
push rax
mov rbx, rdi
mov [rsp+28h+var_28], rsi
cmp edx, 0FFFFFFFFh
jnz short loc_841A0
mov rax, [rsp+28h+var_28]
cmp word ptr [rax+6], 3Bh ; ';'
jnz short loc_841A0
mov r14, [rax+30h]
jmp short loc_841A3
loc_841A0:
xor r14d, r14d
loc_841A3:
test r14, r14
jz loc_84274
mov rsi, [r14+8]
cmp rsi, r14
jz short loc_841C9
loc_841B5:
mov r15, [rsi+8]
mov rdi, rbx
call delete_finrec_weakref
mov rsi, r15
cmp r15, r14
jnz short loc_841B5
loc_841C9:
mov r15, [r14+8]
cmp r15, r14
jz short loc_84233
loc_841D2:
mov rax, [r15]
mov r12, [r15+8]
mov [rax+8], r12
mov [r12], rax
xorps xmm0, xmm0
movups xmmword ptr [r15], xmm0
mov rsi, [r15+30h]
mov rdx, [r15+38h]
mov rdi, rbx
call JS_FreeValueRT
mov rsi, [r15+40h]
mov rdx, [r15+48h]
mov rdi, rbx
call JS_FreeValueRT
dec qword ptr [rbx+28h]
mov rdi, r15
call qword ptr [rbx+20h]
mov rcx, [rbx+30h]
mov rdi, [rbx+40h]
sub rcx, rax
add rcx, 0FFFFFFFFFFFFFFF8h
mov [rbx+30h], rcx
mov rsi, r15
call qword ptr [rbx+10h]
mov r15, r12
cmp r12, r14
jnz short loc_841D2
loc_84233:
mov rsi, [r14+18h]
mov rdx, [r14+20h]
mov rdi, rbx
call JS_FreeValueRT
dec qword ptr [rbx+28h]
mov rdi, r14
call qword ptr [rbx+20h]
mov rcx, [rbx+10h]
mov rdx, [rbx+30h]
sub rdx, rax
add rdx, 0FFFFFFFFFFFFFFF8h
mov [rbx+30h], rdx
mov rdi, [rbx+40h]
mov rsi, r14
add rsp, 8
pop rbx
pop r12
pop r14
pop r15
jmp rcx
loc_84274:
add rsp, 8
pop rbx
pop r12
pop r14
pop r15
retn
| void js_finrec_finalizer(long long a1, long long a2, int a3)
{
long long v4; // r14
long long v5; // rsi
long long v6; // r15
long long *v7; // r15
long long v8; // rax
long long *v9; // r12
long long v10; // rax
long long v11; // rdi
long long v12; // rax
void ( *v13)(_QWORD, long long); // rcx
if ( a3 == -1 && *(_WORD *)(a2 + 6) == 59 )
v4 = *(_QWORD *)(a2 + 48);
else
v4 = 0LL;
if ( v4 )
{
v5 = *(_QWORD *)(v4 + 8);
if ( v5 != v4 )
{
do
{
v6 = *(_QWORD *)(v5 + 8);
delete_finrec_weakref(a1);
v5 = v6;
}
while ( v6 != v4 );
}
v7 = *(long long **)(v4 + 8);
if ( v7 != (long long *)v4 )
{
do
{
v8 = *v7;
v9 = (long long *)v7[1];
*(_QWORD *)(v8 + 8) = v9;
*v9 = v8;
*(_OWORD *)v7 = 0LL;
JS_FreeValueRT(a1, (_DWORD *)v7[6], v7[7]);
JS_FreeValueRT(a1, (_DWORD *)v7[8], v7[9]);
--*(_QWORD *)(a1 + 40);
v10 = (*(long long ( **)(long long *))(a1 + 32))(v7);
v11 = *(_QWORD *)(a1 + 64);
*(_QWORD *)(a1 + 48) = *(_QWORD *)(a1 + 48) - v10 - 8;
(*(void ( **)(long long, long long *))(a1 + 16))(v11, v7);
v7 = v9;
}
while ( v9 != (long long *)v4 );
}
JS_FreeValueRT(a1, *(_DWORD **)(v4 + 24), *(_QWORD *)(v4 + 32));
--*(_QWORD *)(a1 + 40);
v12 = (*(long long ( **)(long long))(a1 + 32))(v4);
v13 = *(void ( **)(_QWORD, long long))(a1 + 16);
*(_QWORD *)(a1 + 48) = *(_QWORD *)(a1 + 48) - v12 - 8;
v13(*(_QWORD *)(a1 + 64), v4);
}
}
| js_finrec_finalizer:
PUSH R15
PUSH R14
PUSH R12
PUSH RBX
PUSH RAX
MOV RBX,RDI
MOV qword ptr [RSP],RSI
CMP EDX,-0x1
JNZ 0x001841a0
MOV RAX,qword ptr [RSP]
CMP word ptr [RAX + 0x6],0x3b
JNZ 0x001841a0
MOV R14,qword ptr [RAX + 0x30]
JMP 0x001841a3
LAB_001841a0:
XOR R14D,R14D
LAB_001841a3:
TEST R14,R14
JZ 0x00184274
MOV RSI,qword ptr [R14 + 0x8]
CMP RSI,R14
JZ 0x001841c9
LAB_001841b5:
MOV R15,qword ptr [RSI + 0x8]
MOV RDI,RBX
CALL 0x00184340
MOV RSI,R15
CMP R15,R14
JNZ 0x001841b5
LAB_001841c9:
MOV R15,qword ptr [R14 + 0x8]
CMP R15,R14
JZ 0x00184233
LAB_001841d2:
MOV RAX,qword ptr [R15]
MOV R12,qword ptr [R15 + 0x8]
MOV qword ptr [RAX + 0x8],R12
MOV qword ptr [R12],RAX
XORPS XMM0,XMM0
MOVUPS xmmword ptr [R15],XMM0
MOV RSI,qword ptr [R15 + 0x30]
MOV RDX,qword ptr [R15 + 0x38]
MOV RDI,RBX
CALL 0x0011d8c6
MOV RSI,qword ptr [R15 + 0x40]
MOV RDX,qword ptr [R15 + 0x48]
MOV RDI,RBX
CALL 0x0011d8c6
DEC qword ptr [RBX + 0x28]
MOV RDI,R15
CALL qword ptr [RBX + 0x20]
MOV RCX,qword ptr [RBX + 0x30]
MOV RDI,qword ptr [RBX + 0x40]
SUB RCX,RAX
ADD RCX,-0x8
MOV qword ptr [RBX + 0x30],RCX
MOV RSI,R15
CALL qword ptr [RBX + 0x10]
MOV R15,R12
CMP R12,R14
JNZ 0x001841d2
LAB_00184233:
MOV RSI,qword ptr [R14 + 0x18]
MOV RDX,qword ptr [R14 + 0x20]
MOV RDI,RBX
CALL 0x0011d8c6
DEC qword ptr [RBX + 0x28]
MOV RDI,R14
CALL qword ptr [RBX + 0x20]
MOV RCX,qword ptr [RBX + 0x10]
MOV RDX,qword ptr [RBX + 0x30]
SUB RDX,RAX
ADD RDX,-0x8
MOV qword ptr [RBX + 0x30],RDX
MOV RDI,qword ptr [RBX + 0x40]
MOV RSI,R14
ADD RSP,0x8
POP RBX
POP R12
POP R14
POP R15
JMP RCX
LAB_00184274:
ADD RSP,0x8
POP RBX
POP R12
POP R14
POP R15
RET
|
void js_finrec_finalizer(long param_1,long param_2,int param_3)
{
long *plVar1;
long *plVar2;
long lVar3;
long *plVar4;
if ((param_3 == -1) && (*(short *)(param_2 + 6) == 0x3b)) {
plVar4 = *(long **)(param_2 + 0x30);
}
else {
plVar4 = (long *)0x0;
}
if (plVar4 == (long *)0x0) {
return;
}
plVar1 = (long *)plVar4[1];
while (plVar1 != plVar4) {
plVar1 = (long *)plVar1[1];
delete_finrec_weakref(param_1);
}
plVar1 = (long *)plVar4[1];
while (plVar1 != plVar4) {
lVar3 = *plVar1;
plVar2 = (long *)plVar1[1];
*(long **)(lVar3 + 8) = plVar2;
*plVar2 = lVar3;
*plVar1 = 0;
plVar1[1] = 0;
JS_FreeValueRT(param_1,plVar1[6],plVar1[7]);
JS_FreeValueRT(param_1,plVar1[8],plVar1[9]);
*(long *)(param_1 + 0x28) = *(long *)(param_1 + 0x28) + -1;
lVar3 = (**(code **)(param_1 + 0x20))(plVar1);
*(long *)(param_1 + 0x30) = (*(long *)(param_1 + 0x30) - lVar3) + -8;
(**(code **)(param_1 + 0x10))(*(int8 *)(param_1 + 0x40),plVar1);
plVar1 = plVar2;
}
JS_FreeValueRT(param_1,plVar4[3],plVar4[4]);
*(long *)(param_1 + 0x28) = *(long *)(param_1 + 0x28) + -1;
lVar3 = (**(code **)(param_1 + 0x20))(plVar4);
lVar3 = (*(long *)(param_1 + 0x30) - lVar3) + -8;
*(long *)(param_1 + 0x30) = lVar3;
/* WARNING: Could not recover jumptable at 0x00184272. Too many branches */
/* WARNING: Treating indirect jump as call */
(**(code **)(param_1 + 0x10))
(*(int8 *)(param_1 + 0x40),plVar4,lVar3,*(code **)(param_1 + 0x10));
return;
}
| |
42,220 | inline_mysql_file_chsize | eloqsql/include/mysql/psi/mysql_file.h | static inline int
inline_mysql_file_chsize(
#ifdef HAVE_PSI_FILE_INTERFACE
const char *src_file, uint src_line,
#endif
File file, my_off_t newlength, int filler, myf flags)
{
int result;
#ifdef HAVE_PSI_FILE_INTERFACE
struct PSI_file_locker *locker;
PSI_file_locker_state state;
locker= PSI_FILE_CALL(get_thread_file_descriptor_locker)(&state, file, PSI_FILE_CHSIZE);
if (psi_likely(locker != NULL))
{
PSI_FILE_CALL(start_file_wait)(locker, (size_t) newlength, src_file,
src_line);
result= my_chsize(file, newlength, filler, flags);
PSI_FILE_CALL(end_file_wait)(locker, (size_t) newlength);
return result;
}
#endif
result= my_chsize(file, newlength, filler, flags);
return result;
} | O0 | c | inline_mysql_file_chsize:
pushq %rbp
movq %rsp, %rbp
subq $0x90, %rsp
movq %rdi, -0x10(%rbp)
movl %esi, -0x14(%rbp)
movl %edx, -0x18(%rbp)
movq %rcx, -0x20(%rbp)
movl %r8d, -0x24(%rbp)
movq %r9, -0x30(%rbp)
leaq 0x1e5ec0(%rip), %rax # 0x2bf0b8
movq (%rax), %rax
movq 0x158(%rax), %rax
movl -0x18(%rbp), %esi
leaq -0x88(%rbp), %rdi
movl $0xd, %edx
callq *%rax
movq %rax, -0x40(%rbp)
cmpq $0x0, -0x40(%rbp)
setne %al
andb $0x1, %al
movzbl %al, %eax
cmpl $0x0, %eax
setne %al
andb $0x1, %al
movzbl %al, %eax
cltq
cmpq $0x0, %rax
je 0xd9292
leaq 0x1e5e7a(%rip), %rax # 0x2bf0b8
movq (%rax), %rax
movq 0x210(%rax), %rax
movq -0x40(%rbp), %rdi
movq -0x20(%rbp), %rsi
movq -0x10(%rbp), %rdx
movl -0x14(%rbp), %ecx
callq *%rax
movl -0x18(%rbp), %edi
movq -0x20(%rbp), %rsi
movl -0x24(%rbp), %edx
movq -0x30(%rbp), %rcx
callq 0xeee80
movl %eax, -0x34(%rbp)
leaq 0x1e5e42(%rip), %rax # 0x2bf0b8
movq (%rax), %rax
movq 0x218(%rax), %rax
movq -0x40(%rbp), %rdi
movq -0x20(%rbp), %rsi
callq *%rax
movl -0x34(%rbp), %eax
movl %eax, -0x4(%rbp)
jmp 0xd92ae
movl -0x18(%rbp), %edi
movq -0x20(%rbp), %rsi
movl -0x24(%rbp), %edx
movq -0x30(%rbp), %rcx
callq 0xeee80
movl %eax, -0x34(%rbp)
movl -0x34(%rbp), %eax
movl %eax, -0x4(%rbp)
movl -0x4(%rbp), %eax
addq $0x90, %rsp
popq %rbp
retq
nopw (%rax,%rax)
| inline_mysql_file_chsize_3:
push rbp
mov rbp, rsp
sub rsp, 90h
mov [rbp+var_10], rdi
mov [rbp+var_14], esi
mov [rbp+var_18], edx
mov [rbp+var_20], rcx
mov [rbp+var_24], r8d
mov [rbp+var_30], r9
lea rax, PSI_server
mov rax, [rax]
mov rax, [rax+158h]
mov esi, [rbp+var_18]
lea rdi, [rbp+var_88]
mov edx, 0Dh
call rax
mov [rbp+var_40], rax
cmp [rbp+var_40], 0
setnz al
and al, 1
movzx eax, al
cmp eax, 0
setnz al
and al, 1
movzx eax, al
cdqe
cmp rax, 0
jz short loc_D9292
lea rax, PSI_server
mov rax, [rax]
mov rax, [rax+210h]
mov rdi, [rbp+var_40]
mov rsi, [rbp+var_20]
mov rdx, [rbp+var_10]
mov ecx, [rbp+var_14]
call rax
mov edi, [rbp+var_18]
mov rsi, [rbp+var_20]
mov edx, [rbp+var_24]
mov rcx, [rbp+var_30]
call my_chsize
mov [rbp+var_34], eax
lea rax, PSI_server
mov rax, [rax]
mov rax, [rax+218h]
mov rdi, [rbp+var_40]
mov rsi, [rbp+var_20]
call rax
mov eax, [rbp+var_34]
mov [rbp+var_4], eax
jmp short loc_D92AE
loc_D9292:
mov edi, [rbp+var_18]
mov rsi, [rbp+var_20]
mov edx, [rbp+var_24]
mov rcx, [rbp+var_30]
call my_chsize
mov [rbp+var_34], eax
mov eax, [rbp+var_34]
mov [rbp+var_4], eax
loc_D92AE:
mov eax, [rbp+var_4]
add rsp, 90h
pop rbp
retn
| long long inline_mysql_file_chsize_3(
long long a1,
unsigned int a2,
unsigned int a3,
long long a4,
unsigned int a5,
long long a6)
{
_BYTE v7[72]; // [rsp+8h] [rbp-88h] BYREF
long long v8; // [rsp+50h] [rbp-40h]
unsigned int v9; // [rsp+5Ch] [rbp-34h]
long long v10; // [rsp+60h] [rbp-30h]
unsigned int v11; // [rsp+6Ch] [rbp-24h]
long long v12; // [rsp+70h] [rbp-20h]
unsigned int v13; // [rsp+78h] [rbp-18h]
unsigned int v14; // [rsp+7Ch] [rbp-14h]
long long v15; // [rsp+80h] [rbp-10h]
v15 = a1;
v14 = a2;
v13 = a3;
v12 = a4;
v11 = a5;
v10 = a6;
v8 = ((long long ( *)(_BYTE *, _QWORD, long long))PSI_server[43])(v7, a3, 13LL);
if ( v8 )
{
((void ( *)(long long, long long, long long, _QWORD))PSI_server[66])(v8, v12, v15, v14);
v9 = my_chsize(v13, v12, v11, v10);
((void ( *)(long long, long long))PSI_server[67])(v8, v12);
}
else
{
return (unsigned int)my_chsize(v13, v12, v11, v10);
}
return v9;
}
| inline_mysql_file_chsize:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x90
MOV qword ptr [RBP + -0x10],RDI
MOV dword ptr [RBP + -0x14],ESI
MOV dword ptr [RBP + -0x18],EDX
MOV qword ptr [RBP + -0x20],RCX
MOV dword ptr [RBP + -0x24],R8D
MOV qword ptr [RBP + -0x30],R9
LEA RAX,[0x3bf0b8]
MOV RAX,qword ptr [RAX]
MOV RAX,qword ptr [RAX + 0x158]
MOV ESI,dword ptr [RBP + -0x18]
LEA RDI,[RBP + -0x88]
MOV EDX,0xd
CALL RAX
MOV qword ptr [RBP + -0x40],RAX
CMP qword ptr [RBP + -0x40],0x0
SETNZ AL
AND AL,0x1
MOVZX EAX,AL
CMP EAX,0x0
SETNZ AL
AND AL,0x1
MOVZX EAX,AL
CDQE
CMP RAX,0x0
JZ 0x001d9292
LEA RAX,[0x3bf0b8]
MOV RAX,qword ptr [RAX]
MOV RAX,qword ptr [RAX + 0x210]
MOV RDI,qword ptr [RBP + -0x40]
MOV RSI,qword ptr [RBP + -0x20]
MOV RDX,qword ptr [RBP + -0x10]
MOV ECX,dword ptr [RBP + -0x14]
CALL RAX
MOV EDI,dword ptr [RBP + -0x18]
MOV RSI,qword ptr [RBP + -0x20]
MOV EDX,dword ptr [RBP + -0x24]
MOV RCX,qword ptr [RBP + -0x30]
CALL 0x001eee80
MOV dword ptr [RBP + -0x34],EAX
LEA RAX,[0x3bf0b8]
MOV RAX,qword ptr [RAX]
MOV RAX,qword ptr [RAX + 0x218]
MOV RDI,qword ptr [RBP + -0x40]
MOV RSI,qword ptr [RBP + -0x20]
CALL RAX
MOV EAX,dword ptr [RBP + -0x34]
MOV dword ptr [RBP + -0x4],EAX
JMP 0x001d92ae
LAB_001d9292:
MOV EDI,dword ptr [RBP + -0x18]
MOV RSI,qword ptr [RBP + -0x20]
MOV EDX,dword ptr [RBP + -0x24]
MOV RCX,qword ptr [RBP + -0x30]
CALL 0x001eee80
MOV dword ptr [RBP + -0x34],EAX
MOV EAX,dword ptr [RBP + -0x34]
MOV dword ptr [RBP + -0x4],EAX
LAB_001d92ae:
MOV EAX,dword ptr [RBP + -0x4]
ADD RSP,0x90
POP RBP
RET
|
int4
inline_mysql_file_chsize
(int8 param_1,int4 param_2,int4 param_3,int8 param_4,
int4 param_5,int8 param_6)
{
int1 local_90 [72];
long local_48;
int4 local_3c;
int8 local_38;
int4 local_2c;
int8 local_28;
int4 local_20;
int4 local_1c;
int8 local_18;
int4 local_c;
local_38 = param_6;
local_2c = param_5;
local_28 = param_4;
local_20 = param_3;
local_1c = param_2;
local_18 = param_1;
local_48 = (**(code **)(PSI_server + 0x158))(local_90,param_3,0xd);
if (local_48 == 0) {
local_c = my_chsize(local_20,local_28,local_2c,local_38);
}
else {
(**(code **)(PSI_server + 0x210))(local_48,local_28,local_18,local_1c);
local_3c = my_chsize(local_20,local_28,local_2c,local_38);
(**(code **)(PSI_server + 0x218))(local_48,local_28);
local_c = local_3c;
}
return local_c;
}
| |
42,221 | inline_mysql_file_chsize | eloqsql/include/mysql/psi/mysql_file.h | static inline int
inline_mysql_file_chsize(
#ifdef HAVE_PSI_FILE_INTERFACE
const char *src_file, uint src_line,
#endif
File file, my_off_t newlength, int filler, myf flags)
{
int result;
#ifdef HAVE_PSI_FILE_INTERFACE
struct PSI_file_locker *locker;
PSI_file_locker_state state;
locker= PSI_FILE_CALL(get_thread_file_descriptor_locker)(&state, file, PSI_FILE_CHSIZE);
if (psi_likely(locker != NULL))
{
PSI_FILE_CALL(start_file_wait)(locker, (size_t) newlength, src_file,
src_line);
result= my_chsize(file, newlength, filler, flags);
PSI_FILE_CALL(end_file_wait)(locker, (size_t) newlength);
return result;
}
#endif
result= my_chsize(file, newlength, filler, flags);
return result;
} | O3 | c | inline_mysql_file_chsize:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x58, %rsp
movq %rsi, %rbx
movl %edi, %r14d
leaq 0x2f555b(%rip), %rax # 0x386010
movq (%rax), %rax
leaq -0x68(%rbp), %rdi
movl %r14d, %esi
movl $0xd, %edx
callq *0x158(%rax)
testq %rax, %rax
jne 0x90ae9
movl %r14d, %edi
movq %rbx, %rsi
xorl %edx, %edx
xorl %ecx, %ecx
callq 0x9d8f8
addq $0x58, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
leaq -0x1c(%rbp), %r15
movq %rax, %rdi
movq %rbx, %rsi
movl %r14d, %edx
movq %r15, %rcx
callq 0x2e7ec
movl (%r15), %eax
jmp 0x90ade
| inline_mysql_file_chsize_1:
push rbp
mov rbp, rsp
push r15
push r14
push rbx
sub rsp, 58h
mov rbx, rsi
mov r14d, edi
lea rax, PSI_server
mov rax, [rax]
lea rdi, [rbp+var_68]
mov esi, r14d
mov edx, 0Dh
call qword ptr [rax+158h]
test rax, rax
jnz short loc_90AE9
mov edi, r14d
mov rsi, rbx
xor edx, edx
xor ecx, ecx
call my_chsize
loc_90ADE:
add rsp, 58h
pop rbx
pop r14
pop r15
pop rbp
retn
loc_90AE9:
lea r15, [rbp+var_1C]
mov rdi, rax
mov rsi, rbx
mov edx, r14d
mov rcx, r15
call inline_mysql_file_chsize_cold_1_0
mov eax, [r15]
jmp short loc_90ADE
| long long inline_mysql_file_chsize_1(unsigned int a1, long long a2)
{
long long v2; // rax
_BYTE v4[76]; // [rsp+8h] [rbp-68h] BYREF
_DWORD v5[7]; // [rsp+54h] [rbp-1Ch] BYREF
v2 = ((long long ( *)(_BYTE *, _QWORD, long long))PSI_server[43])(v4, a1, 13LL);
if ( !v2 )
return my_chsize(a1, a2, 0LL, 0LL);
inline_mysql_file_chsize_cold_1_0(v2, a2, a1, v5);
return v5[0];
}
| inline_mysql_file_chsize:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH RBX
SUB RSP,0x58
MOV RBX,RSI
MOV R14D,EDI
LEA RAX,[0x486010]
MOV RAX,qword ptr [RAX]
LEA RDI,[RBP + -0x68]
MOV ESI,R14D
MOV EDX,0xd
CALL qword ptr [RAX + 0x158]
TEST RAX,RAX
JNZ 0x00190ae9
MOV EDI,R14D
MOV RSI,RBX
XOR EDX,EDX
XOR ECX,ECX
CALL 0x0019d8f8
LAB_00190ade:
ADD RSP,0x58
POP RBX
POP R14
POP R15
POP RBP
RET
LAB_00190ae9:
LEA R15,[RBP + -0x1c]
MOV RDI,RAX
MOV RSI,RBX
MOV EDX,R14D
MOV RCX,R15
CALL 0x0012e7ec
MOV EAX,dword ptr [R15]
JMP 0x00190ade
|
ulong inline_mysql_file_chsize(int4 param_1,int8 param_2)
{
long lVar1;
ulong uVar2;
int1 local_70 [76];
uint local_24;
lVar1 = (**(code **)(PSI_server + 0x158))(local_70,param_1,0xd);
if (lVar1 == 0) {
uVar2 = my_chsize(param_1,param_2,0,0);
}
else {
inline_mysql_file_chsize_cold_1(lVar1,param_2,param_1,&local_24);
uVar2 = (ulong)local_24;
}
return uVar2;
}
| |
42,222 | my_mb_wc_utf8mb4_no_range | eloqsql/strings/ctype-utf8.c | static int
my_mb_wc_utf8mb4_no_range(CHARSET_INFO *cs __attribute__((unused)),
my_wc_t *pwc, const uchar *s)
{
uchar c;
c= s[0];
if (c < 0x80)
{
*pwc = c;
return 1;
}
if (c < 0xc2)
return MY_CS_ILSEQ;
if (c < 0xe0)
{
if (!IS_CONTINUATION_BYTE(s[1]))
return MY_CS_ILSEQ;
*pwc= UTF8MB2_CODE(c, s[1]);
return 2;
}
if (c < 0xf0)
{
if (!IS_UTF8MB3_STEP2(c, s[1], s[2]))
return MY_CS_ILSEQ;
*pwc= UTF8MB3_CODE(c, s[1], s[2]);
return 3;
}
else if (c < 0xf5)
{
if (!IS_UTF8MB4_STEP2(c, s[1], s[2], s[3]))
return MY_CS_ILSEQ;
*pwc= UTF8MB4_CODE(c, s[1], s[2], s[3]);
return 4;
}
return MY_CS_ILSEQ;
} | O0 | c | my_mb_wc_utf8mb4_no_range:
pushq %rbp
movq %rsp, %rbp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movq %rdx, -0x20(%rbp)
movq -0x20(%rbp), %rax
movb (%rax), %al
movb %al, -0x21(%rbp)
movzbl -0x21(%rbp), %eax
cmpl $0x80, %eax
jge 0x6c04d
movzbl -0x21(%rbp), %eax
movl %eax, %ecx
movq -0x18(%rbp), %rax
movq %rcx, (%rax)
movl $0x1, -0x4(%rbp)
jmp 0x6c249
movzbl -0x21(%rbp), %eax
cmpl $0xc2, %eax
jge 0x6c064
movl $0x0, -0x4(%rbp)
jmp 0x6c249
movzbl -0x21(%rbp), %eax
cmpl $0xe0, %eax
jge 0x6c0c0
movq -0x20(%rbp), %rax
movzbl 0x1(%rax), %eax
xorl $0x80, %eax
cmpl $0x40, %eax
jl 0x6c08d
movl $0x0, -0x4(%rbp)
jmp 0x6c249
movzbl -0x21(%rbp), %eax
andl $0x1f, %eax
movslq %eax, %rcx
shlq $0x6, %rcx
movq -0x20(%rbp), %rax
movzbl 0x1(%rax), %eax
xorl $0x80, %eax
cltq
orq %rax, %rcx
movq -0x18(%rbp), %rax
movq %rcx, (%rax)
movl $0x2, -0x4(%rbp)
jmp 0x6c249
movzbl -0x21(%rbp), %eax
cmpl $0xf0, %eax
jge 0x6c162
movq -0x20(%rbp), %rax
movzbl 0x1(%rax), %eax
xorl $0x80, %eax
cmpl $0x40, %eax
jge 0x6c10d
movq -0x20(%rbp), %rax
movzbl 0x2(%rax), %eax
xorl $0x80, %eax
cmpl $0x40, %eax
jge 0x6c10d
movzbl -0x21(%rbp), %eax
cmpl $0xe1, %eax
jge 0x6c119
movq -0x20(%rbp), %rax
movzbl 0x1(%rax), %eax
cmpl $0xa0, %eax
jge 0x6c119
movl $0x0, -0x4(%rbp)
jmp 0x6c249
movzbl -0x21(%rbp), %eax
andl $0xf, %eax
movslq %eax, %rcx
shlq $0xc, %rcx
movq -0x20(%rbp), %rax
movzbl 0x1(%rax), %eax
xorl $0x80, %eax
cltq
shlq $0x6, %rax
orq %rax, %rcx
movq -0x20(%rbp), %rax
movzbl 0x2(%rax), %eax
xorl $0x80, %eax
cltq
orq %rax, %rcx
movq -0x18(%rbp), %rax
movq %rcx, (%rax)
movl $0x3, -0x4(%rbp)
jmp 0x6c249
movzbl -0x21(%rbp), %eax
cmpl $0xf5, %eax
jge 0x6c240
movq -0x20(%rbp), %rax
movzbl 0x1(%rax), %eax
xorl $0x80, %eax
cmpl $0x40, %eax
jge 0x6c1db
movq -0x20(%rbp), %rax
movzbl 0x2(%rax), %eax
xorl $0x80, %eax
cmpl $0x40, %eax
jge 0x6c1db
movq -0x20(%rbp), %rax
movzbl 0x3(%rax), %eax
xorl $0x80, %eax
cmpl $0x40, %eax
jge 0x6c1db
movzbl -0x21(%rbp), %eax
cmpl $0xf1, %eax
jge 0x6c1c1
movq -0x20(%rbp), %rax
movzbl 0x1(%rax), %eax
cmpl $0x90, %eax
jl 0x6c1db
movzbl -0x21(%rbp), %eax
cmpl $0xf3, %eax
jle 0x6c1e4
movq -0x20(%rbp), %rax
movzbl 0x1(%rax), %eax
cmpl $0x8f, %eax
jle 0x6c1e4
movl $0x0, -0x4(%rbp)
jmp 0x6c249
movzbl -0x21(%rbp), %eax
andl $0x7, %eax
movslq %eax, %rcx
shlq $0x12, %rcx
movq -0x20(%rbp), %rax
movzbl 0x1(%rax), %eax
xorl $0x80, %eax
cltq
shlq $0xc, %rax
orq %rax, %rcx
movq -0x20(%rbp), %rax
movzbl 0x2(%rax), %eax
xorl $0x80, %eax
cltq
shlq $0x6, %rax
orq %rax, %rcx
movq -0x20(%rbp), %rax
movzbl 0x3(%rax), %eax
xorl $0x80, %eax
cltq
orq %rax, %rcx
movq -0x18(%rbp), %rax
movq %rcx, (%rax)
movl $0x4, -0x4(%rbp)
jmp 0x6c249
jmp 0x6c242
movl $0x0, -0x4(%rbp)
movl -0x4(%rbp), %eax
popq %rbp
retq
nop
| my_mb_wc_utf8mb4_no_range:
push rbp
mov rbp, rsp
mov [rbp+var_10], rdi
mov [rbp+var_18], rsi
mov [rbp+var_20], rdx
mov rax, [rbp+var_20]
mov al, [rax]
mov [rbp+var_21], al
movzx eax, [rbp+var_21]
cmp eax, 80h
jge short loc_6C04D
movzx eax, [rbp+var_21]
mov ecx, eax
mov rax, [rbp+var_18]
mov [rax], rcx
mov [rbp+var_4], 1
jmp loc_6C249
loc_6C04D:
movzx eax, [rbp+var_21]
cmp eax, 0C2h
jge short loc_6C064
mov [rbp+var_4], 0
jmp loc_6C249
loc_6C064:
movzx eax, [rbp+var_21]
cmp eax, 0E0h
jge short loc_6C0C0
mov rax, [rbp+var_20]
movzx eax, byte ptr [rax+1]
xor eax, 80h
cmp eax, 40h ; '@'
jl short loc_6C08D
mov [rbp+var_4], 0
jmp loc_6C249
loc_6C08D:
movzx eax, [rbp+var_21]
and eax, 1Fh
movsxd rcx, eax
shl rcx, 6
mov rax, [rbp+var_20]
movzx eax, byte ptr [rax+1]
xor eax, 80h
cdqe
or rcx, rax
mov rax, [rbp+var_18]
mov [rax], rcx
mov [rbp+var_4], 2
jmp loc_6C249
loc_6C0C0:
movzx eax, [rbp+var_21]
cmp eax, 0F0h
jge loc_6C162
mov rax, [rbp+var_20]
movzx eax, byte ptr [rax+1]
xor eax, 80h
cmp eax, 40h ; '@'
jge short loc_6C10D
mov rax, [rbp+var_20]
movzx eax, byte ptr [rax+2]
xor eax, 80h
cmp eax, 40h ; '@'
jge short loc_6C10D
movzx eax, [rbp+var_21]
cmp eax, 0E1h
jge short loc_6C119
mov rax, [rbp+var_20]
movzx eax, byte ptr [rax+1]
cmp eax, 0A0h
jge short loc_6C119
loc_6C10D:
mov [rbp+var_4], 0
jmp loc_6C249
loc_6C119:
movzx eax, [rbp+var_21]
and eax, 0Fh
movsxd rcx, eax
shl rcx, 0Ch
mov rax, [rbp+var_20]
movzx eax, byte ptr [rax+1]
xor eax, 80h
cdqe
shl rax, 6
or rcx, rax
mov rax, [rbp+var_20]
movzx eax, byte ptr [rax+2]
xor eax, 80h
cdqe
or rcx, rax
mov rax, [rbp+var_18]
mov [rax], rcx
mov [rbp+var_4], 3
jmp loc_6C249
loc_6C162:
movzx eax, [rbp+var_21]
cmp eax, 0F5h
jge loc_6C240
mov rax, [rbp+var_20]
movzx eax, byte ptr [rax+1]
xor eax, 80h
cmp eax, 40h ; '@'
jge short loc_6C1DB
mov rax, [rbp+var_20]
movzx eax, byte ptr [rax+2]
xor eax, 80h
cmp eax, 40h ; '@'
jge short loc_6C1DB
mov rax, [rbp+var_20]
movzx eax, byte ptr [rax+3]
xor eax, 80h
cmp eax, 40h ; '@'
jge short loc_6C1DB
movzx eax, [rbp+var_21]
cmp eax, 0F1h
jge short loc_6C1C1
mov rax, [rbp+var_20]
movzx eax, byte ptr [rax+1]
cmp eax, 90h
jl short loc_6C1DB
loc_6C1C1:
movzx eax, [rbp+var_21]
cmp eax, 0F3h
jle short loc_6C1E4
mov rax, [rbp+var_20]
movzx eax, byte ptr [rax+1]
cmp eax, 8Fh
jle short loc_6C1E4
loc_6C1DB:
mov [rbp+var_4], 0
jmp short loc_6C249
loc_6C1E4:
movzx eax, [rbp+var_21]
and eax, 7
movsxd rcx, eax
shl rcx, 12h
mov rax, [rbp+var_20]
movzx eax, byte ptr [rax+1]
xor eax, 80h
cdqe
shl rax, 0Ch
or rcx, rax
mov rax, [rbp+var_20]
movzx eax, byte ptr [rax+2]
xor eax, 80h
cdqe
shl rax, 6
or rcx, rax
mov rax, [rbp+var_20]
movzx eax, byte ptr [rax+3]
xor eax, 80h
cdqe
or rcx, rax
mov rax, [rbp+var_18]
mov [rax], rcx
mov [rbp+var_4], 4
jmp short loc_6C249
loc_6C240:
jmp short $+2
loc_6C242:
mov [rbp+var_4], 0
loc_6C249:
mov eax, [rbp+var_4]
pop rbp
retn
| long long my_mb_wc_utf8mb4_no_range(long long a1, unsigned long long *a2, unsigned __int8 *a3)
{
unsigned __int8 v4; // [rsp+1h] [rbp-21h]
v4 = *a3;
if ( *a3 >= 0x80u )
{
if ( v4 >= 0xC2u )
{
if ( v4 >= 0xE0u )
{
if ( v4 >= 0xF0u )
{
if ( v4 >= 0xF5u )
{
return 0;
}
else if ( (a3[1] ^ 0x80) < 64
&& (a3[2] ^ 0x80) < 64
&& (a3[3] ^ 0x80) < 64
&& (v4 >= 0xF1u || a3[1] >= 0x90u)
&& (v4 <= 0xF3u || a3[1] <= 0x8Fu) )
{
*a2 = a3[3] ^ 0x80u | ((long long)(a3[2] ^ 0x80u) << 6) | ((long long)(a3[1] ^ 0x80u) << 12) | ((unsigned long long)(v4 & 7) << 18);
return 4;
}
else
{
return 0;
}
}
else if ( (a3[1] ^ 0x80) < 64 && (a3[2] ^ 0x80) < 64 && (v4 >= 0xE1u || a3[1] >= 0xA0u) )
{
*a2 = a3[2] ^ 0x80u | ((long long)(a3[1] ^ 0x80u) << 6) | ((unsigned long long)(v4 & 0xF) << 12);
return 3;
}
else
{
return 0;
}
}
else if ( (a3[1] ^ 0x80) < 64 )
{
*a2 = a3[1] ^ 0x80u | ((unsigned long long)(v4 & 0x1F) << 6);
return 2;
}
else
{
return 0;
}
}
else
{
return 0;
}
}
else
{
*a2 = v4;
return 1;
}
}
| my_mb_wc_utf8mb4_no_range:
PUSH RBP
MOV RBP,RSP
MOV qword ptr [RBP + -0x10],RDI
MOV qword ptr [RBP + -0x18],RSI
MOV qword ptr [RBP + -0x20],RDX
MOV RAX,qword ptr [RBP + -0x20]
MOV AL,byte ptr [RAX]
MOV byte ptr [RBP + -0x21],AL
MOVZX EAX,byte ptr [RBP + -0x21]
CMP EAX,0x80
JGE 0x0016c04d
MOVZX EAX,byte ptr [RBP + -0x21]
MOV ECX,EAX
MOV RAX,qword ptr [RBP + -0x18]
MOV qword ptr [RAX],RCX
MOV dword ptr [RBP + -0x4],0x1
JMP 0x0016c249
LAB_0016c04d:
MOVZX EAX,byte ptr [RBP + -0x21]
CMP EAX,0xc2
JGE 0x0016c064
MOV dword ptr [RBP + -0x4],0x0
JMP 0x0016c249
LAB_0016c064:
MOVZX EAX,byte ptr [RBP + -0x21]
CMP EAX,0xe0
JGE 0x0016c0c0
MOV RAX,qword ptr [RBP + -0x20]
MOVZX EAX,byte ptr [RAX + 0x1]
XOR EAX,0x80
CMP EAX,0x40
JL 0x0016c08d
MOV dword ptr [RBP + -0x4],0x0
JMP 0x0016c249
LAB_0016c08d:
MOVZX EAX,byte ptr [RBP + -0x21]
AND EAX,0x1f
MOVSXD RCX,EAX
SHL RCX,0x6
MOV RAX,qword ptr [RBP + -0x20]
MOVZX EAX,byte ptr [RAX + 0x1]
XOR EAX,0x80
CDQE
OR RCX,RAX
MOV RAX,qword ptr [RBP + -0x18]
MOV qword ptr [RAX],RCX
MOV dword ptr [RBP + -0x4],0x2
JMP 0x0016c249
LAB_0016c0c0:
MOVZX EAX,byte ptr [RBP + -0x21]
CMP EAX,0xf0
JGE 0x0016c162
MOV RAX,qword ptr [RBP + -0x20]
MOVZX EAX,byte ptr [RAX + 0x1]
XOR EAX,0x80
CMP EAX,0x40
JGE 0x0016c10d
MOV RAX,qword ptr [RBP + -0x20]
MOVZX EAX,byte ptr [RAX + 0x2]
XOR EAX,0x80
CMP EAX,0x40
JGE 0x0016c10d
MOVZX EAX,byte ptr [RBP + -0x21]
CMP EAX,0xe1
JGE 0x0016c119
MOV RAX,qword ptr [RBP + -0x20]
MOVZX EAX,byte ptr [RAX + 0x1]
CMP EAX,0xa0
JGE 0x0016c119
LAB_0016c10d:
MOV dword ptr [RBP + -0x4],0x0
JMP 0x0016c249
LAB_0016c119:
MOVZX EAX,byte ptr [RBP + -0x21]
AND EAX,0xf
MOVSXD RCX,EAX
SHL RCX,0xc
MOV RAX,qword ptr [RBP + -0x20]
MOVZX EAX,byte ptr [RAX + 0x1]
XOR EAX,0x80
CDQE
SHL RAX,0x6
OR RCX,RAX
MOV RAX,qword ptr [RBP + -0x20]
MOVZX EAX,byte ptr [RAX + 0x2]
XOR EAX,0x80
CDQE
OR RCX,RAX
MOV RAX,qword ptr [RBP + -0x18]
MOV qword ptr [RAX],RCX
MOV dword ptr [RBP + -0x4],0x3
JMP 0x0016c249
LAB_0016c162:
MOVZX EAX,byte ptr [RBP + -0x21]
CMP EAX,0xf5
JGE 0x0016c240
MOV RAX,qword ptr [RBP + -0x20]
MOVZX EAX,byte ptr [RAX + 0x1]
XOR EAX,0x80
CMP EAX,0x40
JGE 0x0016c1db
MOV RAX,qword ptr [RBP + -0x20]
MOVZX EAX,byte ptr [RAX + 0x2]
XOR EAX,0x80
CMP EAX,0x40
JGE 0x0016c1db
MOV RAX,qword ptr [RBP + -0x20]
MOVZX EAX,byte ptr [RAX + 0x3]
XOR EAX,0x80
CMP EAX,0x40
JGE 0x0016c1db
MOVZX EAX,byte ptr [RBP + -0x21]
CMP EAX,0xf1
JGE 0x0016c1c1
MOV RAX,qword ptr [RBP + -0x20]
MOVZX EAX,byte ptr [RAX + 0x1]
CMP EAX,0x90
JL 0x0016c1db
LAB_0016c1c1:
MOVZX EAX,byte ptr [RBP + -0x21]
CMP EAX,0xf3
JLE 0x0016c1e4
MOV RAX,qword ptr [RBP + -0x20]
MOVZX EAX,byte ptr [RAX + 0x1]
CMP EAX,0x8f
JLE 0x0016c1e4
LAB_0016c1db:
MOV dword ptr [RBP + -0x4],0x0
JMP 0x0016c249
LAB_0016c1e4:
MOVZX EAX,byte ptr [RBP + -0x21]
AND EAX,0x7
MOVSXD RCX,EAX
SHL RCX,0x12
MOV RAX,qword ptr [RBP + -0x20]
MOVZX EAX,byte ptr [RAX + 0x1]
XOR EAX,0x80
CDQE
SHL RAX,0xc
OR RCX,RAX
MOV RAX,qword ptr [RBP + -0x20]
MOVZX EAX,byte ptr [RAX + 0x2]
XOR EAX,0x80
CDQE
SHL RAX,0x6
OR RCX,RAX
MOV RAX,qword ptr [RBP + -0x20]
MOVZX EAX,byte ptr [RAX + 0x3]
XOR EAX,0x80
CDQE
OR RCX,RAX
MOV RAX,qword ptr [RBP + -0x18]
MOV qword ptr [RAX],RCX
MOV dword ptr [RBP + -0x4],0x4
JMP 0x0016c249
LAB_0016c240:
JMP 0x0016c242
LAB_0016c242:
MOV dword ptr [RBP + -0x4],0x0
LAB_0016c249:
MOV EAX,dword ptr [RBP + -0x4]
POP RBP
RET
|
int4 my_mb_wc_utf8mb4_no_range(int8 param_1,ulong *param_2,byte *param_3)
{
byte bVar1;
int4 local_c;
bVar1 = *param_3;
if (bVar1 < 0x80) {
*param_2 = (ulong)bVar1;
local_c = 1;
}
else if (bVar1 < 0xc2) {
local_c = 0;
}
else if (bVar1 < 0xe0) {
if ((param_3[1] ^ 0x80) < 0x40) {
*param_2 = (long)(int)(bVar1 & 0x1f) << 6 | (long)(int)(param_3[1] ^ 0x80);
local_c = 2;
}
else {
local_c = 0;
}
}
else if (bVar1 < 0xf0) {
if ((((param_3[1] ^ 0x80) < 0x40) && ((param_3[2] ^ 0x80) < 0x40)) &&
((0xe0 < bVar1 || (0x9f < param_3[1])))) {
*param_2 = (long)(int)(bVar1 & 0xf) << 0xc | (long)(int)(param_3[1] ^ 0x80) << 6 |
(long)(int)(param_3[2] ^ 0x80);
local_c = 3;
}
else {
local_c = 0;
}
}
else if (bVar1 < 0xf5) {
if ((((((param_3[1] ^ 0x80) < 0x40) && ((param_3[2] ^ 0x80) < 0x40)) &&
((param_3[3] ^ 0x80) < 0x40)) && ((0xf0 < bVar1 || (0x8f < param_3[1])))) &&
((bVar1 < 0xf4 || (param_3[1] < 0x90)))) {
*param_2 = (long)(int)(bVar1 & 7) << 0x12 | (long)(int)(param_3[1] ^ 0x80) << 0xc |
(long)(int)(param_3[2] ^ 0x80) << 6 | (long)(int)(param_3[3] ^ 0x80);
local_c = 4;
}
else {
local_c = 0;
}
}
else {
local_c = 0;
}
return local_c;
}
| |
42,223 | common_params_handle_model_default(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&) | monkey531[P]llama/common/arg.cpp | static void common_params_handle_model_default(
std::string & model,
const std::string & model_url,
std::string & hf_repo,
std::string & hf_file,
const std::string & hf_token,
const std::string & model_default) {
if (!hf_repo.empty()) {
// short-hand to avoid specifying --hf-file -> default it to --model
if (hf_file.empty()) {
if (model.empty()) {
auto auto_detected = common_get_hf_file(hf_repo, hf_token);
if (auto_detected.first.empty() || auto_detected.second.empty()) {
exit(1); // built without CURL, error message already printed
}
hf_repo = auto_detected.first;
hf_file = auto_detected.second;
} else {
hf_file = model;
}
}
// make sure model path is present (for caching purposes)
if (model.empty()) {
// this is to avoid different repo having same file name, or same file name in different subdirs
std::string filename = hf_repo + "_" + hf_file;
// to make sure we don't have any slashes in the filename
string_replace_all(filename, "/", "_");
model = fs_get_cache_file(filename);
}
} else if (!model_url.empty()) {
if (model.empty()) {
auto f = string_split<std::string>(model_url, '#').front();
f = string_split<std::string>(f, '?').front();
model = fs_get_cache_file(string_split<std::string>(f, '/').back());
}
} else if (model.empty()) {
model = model_default;
}
} | O0 | cpp | common_params_handle_model_default(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&):
subq $0x1d8, %rsp # imm = 0x1D8
movq %rdi, 0x1d0(%rsp)
movq %rsi, 0x1c8(%rsp)
movq %rdx, 0x1c0(%rsp)
movq %rcx, 0x1b8(%rsp)
movq %r8, 0x1b0(%rsp)
movq %r9, 0x1a8(%rsp)
movq 0x1c0(%rsp), %rdi
callq 0x5b530
testb $0x1, %al
jne 0x964a0
movq 0x1b8(%rsp), %rdi
callq 0x5b530
testb $0x1, %al
jne 0x961a2
jmp 0x96281
movq 0x1d0(%rsp), %rdi
callq 0x5b530
testb $0x1, %al
jne 0x961b8
jmp 0x9626a
movq 0x1c0(%rsp), %rsi
movq 0x1b0(%rsp), %rdx
leaq 0x168(%rsp), %rdi
callq 0xfda00
leaq 0x168(%rsp), %rdi
callq 0x5b530
testb $0x1, %al
jne 0x961fd
leaq 0x168(%rsp), %rdi
addq $0x20, %rdi
callq 0x5b530
testb $0x1, %al
jne 0x961fd
jmp 0x96207
movl $0x1, %edi
callq 0x5bc80
movq 0x1c0(%rsp), %rdi
leaq 0x168(%rsp), %rsi
callq 0x5c4a0
jmp 0x9621e
leaq 0x188(%rsp), %rsi
movq 0x1b8(%rsp), %rdi
callq 0x5c4a0
jmp 0x96235
leaq 0x168(%rsp), %rdi
callq 0xa1e30
jmp 0x9627f
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x160(%rsp)
movl %eax, 0x15c(%rsp)
leaq 0x168(%rsp), %rdi
callq 0xa1e30
jmp 0x96670
movq 0x1d0(%rsp), %rsi
movq 0x1b8(%rsp), %rdi
callq 0x5c4a0
jmp 0x96281
movq 0x1d0(%rsp), %rdi
callq 0x5b530
testb $0x1, %al
jne 0x96297
jmp 0x9649b
movq 0x1c0(%rsp), %rsi
leaq 0x18545e(%rip), %rdx # 0x21b704
leaq 0x118(%rsp), %rdi
movq %rdi, 0x18(%rsp)
callq 0x9e990
movq 0x18(%rsp), %rsi
movq 0x1b8(%rsp), %rdx
leaq 0x138(%rsp), %rdi
callq 0xa1e60
jmp 0x962d4
leaq 0x118(%rsp), %rdi
callq 0x5c608
leaq 0xf7(%rsp), %rdi
movq %rdi, 0x10(%rsp)
callq 0x5c150
movq 0x10(%rsp), %rdx
leaq 0x18a7a3(%rip), %rsi # 0x220aa2
leaq 0xf8(%rsp), %rdi
callq 0x651c0
jmp 0x9630e
leaq 0xcf(%rsp), %rdi
movq %rdi, 0x8(%rsp)
callq 0x5c150
movq 0x8(%rsp), %rdx
leaq 0x1853d8(%rip), %rsi # 0x21b704
leaq 0xd0(%rsp), %rdi
callq 0x651c0
jmp 0x9633b
leaq 0x138(%rsp), %rdi
leaq 0xf8(%rsp), %rsi
leaq 0xd0(%rsp), %rdx
callq 0xf9c40
jmp 0x9635a
leaq 0xd0(%rsp), %rdi
callq 0x5c608
leaq 0xcf(%rsp), %rdi
callq 0x5c5e0
leaq 0xf8(%rsp), %rdi
callq 0x5c608
leaq 0xf7(%rsp), %rdi
callq 0x5c5e0
leaq 0xa8(%rsp), %rdi
leaq 0x138(%rsp), %rsi
callq 0xfbd10
jmp 0x963a5
movq 0x1d0(%rsp), %rdi
leaq 0xa8(%rsp), %rsi
callq 0x5b9b0
leaq 0xa8(%rsp), %rdi
callq 0x5c608
leaq 0x138(%rsp), %rdi
callq 0x5c608
jmp 0x9649b
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x160(%rsp)
movl %eax, 0x15c(%rsp)
leaq 0x118(%rsp), %rdi
callq 0x5c608
jmp 0x96670
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x160(%rsp)
movl %eax, 0x15c(%rsp)
jmp 0x96466
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x160(%rsp)
movl %eax, 0x15c(%rsp)
jmp 0x9644c
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x160(%rsp)
movl %eax, 0x15c(%rsp)
leaq 0xd0(%rsp), %rdi
callq 0x5c608
leaq 0xcf(%rsp), %rdi
callq 0x5c5e0
leaq 0xf8(%rsp), %rdi
callq 0x5c608
leaq 0xf7(%rsp), %rdi
callq 0x5c5e0
jmp 0x96489
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x160(%rsp)
movl %eax, 0x15c(%rsp)
leaq 0x138(%rsp), %rdi
callq 0x5c608
jmp 0x96670
jmp 0x96668
movq 0x1c8(%rsp), %rdi
callq 0x5b530
testb $0x1, %al
jne 0x9663c
movq 0x1d0(%rsp), %rdi
callq 0x5b530
testb $0x1, %al
jne 0x964cb
jmp 0x9663a
movq 0x1c8(%rsp), %rsi
leaq 0x70(%rsp), %rdi
movq %rdi, (%rsp)
movl $0x23, %edx
callq 0x96680
movq (%rsp), %rdi
callq 0xa1eb0
movq %rax, %rsi
leaq 0x88(%rsp), %rdi
callq 0x5b200
jmp 0x96501
leaq 0x70(%rsp), %rdi
callq 0x650c0
leaq 0x58(%rsp), %rdi
leaq 0x88(%rsp), %rsi
movl $0x3f, %edx
callq 0x96680
jmp 0x96524
leaq 0x58(%rsp), %rdi
callq 0xa1eb0
movq %rax, %rsi
leaq 0x88(%rsp), %rdi
callq 0x5c4a0
jmp 0x96540
leaq 0x58(%rsp), %rdi
callq 0x650c0
leaq 0x20(%rsp), %rdi
leaq 0x88(%rsp), %rsi
movl $0x2f, %edx
callq 0x96680
jmp 0x96563
leaq 0x20(%rsp), %rdi
callq 0xa1ee0
movq %rax, %rsi
leaq 0x38(%rsp), %rdi
callq 0xfbd10
jmp 0x9657c
movq 0x1d0(%rsp), %rdi
leaq 0x38(%rsp), %rsi
callq 0x5b9b0
leaq 0x38(%rsp), %rdi
callq 0x5c608
leaq 0x20(%rsp), %rdi
callq 0x650c0
leaq 0x88(%rsp), %rdi
callq 0x5c608
jmp 0x9663a
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x160(%rsp)
movl %eax, 0x15c(%rsp)
leaq 0x70(%rsp), %rdi
callq 0x650c0
jmp 0x96670
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x160(%rsp)
movl %eax, 0x15c(%rsp)
jmp 0x9662b
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x160(%rsp)
movl %eax, 0x15c(%rsp)
leaq 0x58(%rsp), %rdi
callq 0x650c0
jmp 0x9662b
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x160(%rsp)
movl %eax, 0x15c(%rsp)
leaq 0x20(%rsp), %rdi
callq 0x650c0
leaq 0x88(%rsp), %rdi
callq 0x5c608
jmp 0x96670
jmp 0x96666
movq 0x1d0(%rsp), %rdi
callq 0x5b530
testb $0x1, %al
jne 0x9664f
jmp 0x96664
movq 0x1a8(%rsp), %rsi
movq 0x1d0(%rsp), %rdi
callq 0x5c4a0
jmp 0x96666
jmp 0x96668
addq $0x1d8, %rsp # imm = 0x1D8
retq
movq 0x160(%rsp), %rdi
callq 0x5bc20
nopl (%rax)
| _ZL34common_params_handle_model_defaultRNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKS4_S5_S5_S7_S7_:
sub rsp, 1D8h
mov [rsp+1D8h+var_8], rdi
mov [rsp+1D8h+var_10], rsi
mov qword ptr [rsp+1D8h+var_18], rdx
mov [rsp+1D8h+var_20], rcx
mov [rsp+1D8h+var_28], r8
mov [rsp+1D8h+var_30], r9
mov rdi, qword ptr [rsp+1D8h+var_18]
call __ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5emptyEv; std::string::empty(void)
test al, 1
jnz loc_964A0
mov rdi, [rsp+1D8h+var_20]
call __ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5emptyEv; std::string::empty(void)
test al, 1
jnz short loc_961A2
jmp loc_96281
loc_961A2:
mov rdi, [rsp+1D8h+var_8]
call __ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5emptyEv; std::string::empty(void)
test al, 1
jnz short loc_961B8
jmp loc_9626A
loc_961B8:
mov rsi, qword ptr [rsp+1D8h+var_18]; int
mov rdx, [rsp+1D8h+var_28]; void *
lea rdi, [rsp+1D8h+var_70]; int
call _Z18common_get_hf_fileRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES6_; common_get_hf_file(std::string const&,std::string const&)
lea rdi, [rsp+1D8h+var_70]
call __ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5emptyEv; std::string::empty(void)
test al, 1
jnz short loc_961FD
lea rdi, [rsp+1D8h+var_70]
add rdi, 20h ; ' '
call __ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5emptyEv; std::string::empty(void)
test al, 1
jnz short loc_961FD
jmp short loc_96207
loc_961FD:
mov edi, 1
call _exit
loc_96207:
mov rdi, qword ptr [rsp+1D8h+var_18]
lea rsi, [rsp+1D8h+var_70]
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSERKS4_; std::string::operator=(std::string const&)
jmp short $+2
loc_9621E:
lea rsi, [rsp+1D8h+var_50]
mov rdi, [rsp+1D8h+var_20]
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSERKS4_; std::string::operator=(std::string const&)
jmp short $+2
loc_96235:
lea rdi, [rsp+1D8h+var_70]
call _ZNSt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES5_ED2Ev; std::pair<std::string,std::string>::~pair()
jmp short loc_9627F
mov rcx, rax
mov eax, edx
mov [rsp+arg_158], rcx
mov [rsp+arg_154], eax
lea rdi, [rsp+arg_160]
call _ZNSt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES5_ED2Ev; std::pair<std::string,std::string>::~pair()
jmp loc_96670
loc_9626A:
mov rsi, [rsp+1D8h+var_8]
mov rdi, [rsp+1D8h+var_20]
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSERKS4_; std::string::operator=(std::string const&)
loc_9627F:
jmp short $+2
loc_96281:
mov rdi, [rsp+1D8h+var_8]
call __ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5emptyEv; std::string::empty(void)
test al, 1
jnz short loc_96297
jmp loc_9649B
loc_96297:
mov rsi, qword ptr [rsp+1D8h+var_18]; int
lea rdx, aCall911+8; int
lea rdi, [rsp+1D8h+var_C0]; int
mov [rsp+1D8h+var_1C0], rdi; int
call _ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EERKS8_PKS5_; std::operator+<char>(std::string const&,char const*)
mov rsi, [rsp+1D8h+var_1C0]
mov rdx, [rsp+1D8h+var_20]
lea rdi, [rsp+1D8h+var_A0]
call _ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEOS8_RKS8_; std::operator+<char>(std::string&&,std::string const&)
jmp short $+2
loc_962D4:
lea rdi, [rsp+1D8h+var_C0]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string()
lea rdi, [rsp+1D8h+var_E1]
mov qword ptr [rsp+1D8h+var_1C8], rdi; int
call __ZNSaIcEC1Ev; std::allocator<char>::allocator(void)
mov rdx, qword ptr [rsp+1D8h+var_1C8]
lea rsi, asc_220AA1+1; "/"
lea rdi, [rsp+1D8h+var_E1+1]
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_; std::string::basic_string<std::allocator<char>>(char const*,std::allocator<char> const&)
jmp short $+2
loc_9630E:
lea rdi, [rsp+1D8h+var_109]
mov qword ptr [rsp+1D8h+var_1D0], rdi; int
call __ZNSaIcEC1Ev; std::allocator<char>::allocator(void)
mov rdx, qword ptr [rsp+1D8h+var_1D0]
lea rsi, aCall911+8; "_"
lea rdi, [rsp+1D8h+var_109+1]
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_; std::string::basic_string<std::allocator<char>>(char const*,std::allocator<char> const&)
jmp short $+2
loc_9633B:
lea rdi, [rsp+1D8h+var_A0]
lea rsi, [rsp+1D8h+var_E1+1]
lea rdx, [rsp+1D8h+var_109+1]
call _Z18string_replace_allRNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKS4_S7_; string_replace_all(std::string &,std::string const&,std::string const&)
jmp short $+2
loc_9635A:
lea rdi, [rsp+1D8h+var_109+1]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string()
lea rdi, [rsp+1D8h+var_109]
call __ZNSaIcED1Ev; std::allocator<char>::~allocator()
lea rdi, [rsp+1D8h+var_E1+1]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string()
lea rdi, [rsp+1D8h+var_E1]
call __ZNSaIcED1Ev; std::allocator<char>::~allocator()
lea rdi, [rsp+1D8h+var_130]; int
lea rsi, [rsp+1D8h+var_A0]
call _Z17fs_get_cache_fileRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE; fs_get_cache_file(std::string const&)
jmp short $+2
loc_963A5:
mov rdi, [rsp+1D8h+var_8]
lea rsi, [rsp+1D8h+var_130]
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEOS4_; std::string::operator=(std::string&&)
lea rdi, [rsp+1D8h+var_130]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string()
lea rdi, [rsp+1D8h+var_A0]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string()
jmp loc_9649B
mov rcx, rax
mov eax, edx
mov [rsp+arg_158], rcx
mov [rsp+arg_154], eax
lea rdi, [rsp+arg_110]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string()
jmp loc_96670
mov rcx, rax
mov eax, edx
mov [rsp+arg_158], rcx
mov [rsp+arg_154], eax
jmp short loc_96466
mov rcx, rax
mov eax, edx
mov [rsp+arg_158], rcx
mov [rsp+arg_154], eax
jmp short loc_9644C
mov rcx, rax
mov eax, edx
mov [rsp+arg_158], rcx
mov [rsp+arg_154], eax
lea rdi, [rsp+arg_C8]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string()
loc_9644C:
lea rdi, [rsp+arg_C7]
call __ZNSaIcED1Ev; std::allocator<char>::~allocator()
lea rdi, [rsp+arg_F0]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string()
loc_96466:
lea rdi, [rsp+arg_EF]
call __ZNSaIcED1Ev; std::allocator<char>::~allocator()
jmp short loc_96489
mov rcx, rax
mov eax, edx
mov [rsp+arg_158], rcx
mov [rsp+arg_154], eax
loc_96489:
lea rdi, [rsp+arg_130]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string()
jmp loc_96670
loc_9649B:
jmp loc_96668
loc_964A0:
mov rdi, [rsp+1D8h+var_10]
call __ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5emptyEv; std::string::empty(void)
test al, 1
jnz loc_9663C
mov rdi, [rsp+1D8h+var_8]
call __ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5emptyEv; std::string::empty(void)
test al, 1
jnz short loc_964CB
jmp loc_9663A
loc_964CB:
mov rsi, [rsp+1D8h+var_10]
lea rdi, [rsp+1D8h+var_168]
mov qword ptr [rsp+1D8h+var_1D8], rdi; int
mov edx, 23h ; '#'
call _ZL12string_splitINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEESt6vectorIT_SaIS7_EERKS5_c; string_split<std::string>(std::string const&,char)
mov rdi, qword ptr [rsp+1D8h+var_1D8]
call _ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE5frontEv; std::vector<std::string>::front(void)
mov rsi, rax
lea rdi, [rsp+1D8h+var_150]
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC1ERKS4_; std::string::basic_string(std::string const&)
jmp short $+2
loc_96501:
lea rdi, [rsp+1D8h+var_168]
call _ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EED2Ev; std::vector<std::string>::~vector()
lea rdi, [rsp+1D8h+var_180]
lea rsi, [rsp+1D8h+var_150]
mov edx, 3Fh ; '?'
call _ZL12string_splitINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEESt6vectorIT_SaIS7_EERKS5_c; string_split<std::string>(std::string const&,char)
jmp short $+2
loc_96524:
lea rdi, [rsp+1D8h+var_180]
call _ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE5frontEv; std::vector<std::string>::front(void)
mov rsi, rax
lea rdi, [rsp+1D8h+var_150]
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSERKS4_; std::string::operator=(std::string const&)
jmp short $+2
loc_96540:
lea rdi, [rsp+1D8h+var_180]
call _ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EED2Ev; std::vector<std::string>::~vector()
lea rdi, [rsp+1D8h+var_1B8]
lea rsi, [rsp+1D8h+var_150]
mov edx, 2Fh ; '/'
call _ZL12string_splitINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEESt6vectorIT_SaIS7_EERKS5_c; string_split<std::string>(std::string const&,char)
jmp short $+2
loc_96563:
lea rdi, [rsp+1D8h+var_1B8]
call _ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE4backEv; std::vector<std::string>::back(void)
mov rsi, rax
lea rdi, [rsp+1D8h+var_1A0]; int
call _Z17fs_get_cache_fileRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE; fs_get_cache_file(std::string const&)
jmp short $+2
loc_9657C:
mov rdi, [rsp+1D8h+var_8]
lea rsi, [rsp+1D8h+var_1A0]
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEOS4_; std::string::operator=(std::string&&)
lea rdi, [rsp+1D8h+var_1A0]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string()
lea rdi, [rsp+1D8h+var_1B8]
call _ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EED2Ev; std::vector<std::string>::~vector()
lea rdi, [rsp+1D8h+var_150]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string()
jmp loc_9663A
mov rcx, rax
mov eax, edx
mov [rsp+arg_158], rcx
mov [rsp+arg_154], eax
lea rdi, [rsp+arg_68]
call _ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EED2Ev; std::vector<std::string>::~vector()
jmp loc_96670
mov rcx, rax
mov eax, edx
mov [rsp+arg_158], rcx
mov [rsp+arg_154], eax
jmp short loc_9662B
mov rcx, rax
mov eax, edx
mov [rsp+arg_158], rcx
mov [rsp+arg_154], eax
lea rdi, [rsp+arg_50]
call _ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EED2Ev; std::vector<std::string>::~vector()
jmp short loc_9662B
mov rcx, rax
mov eax, edx
mov [rsp+arg_158], rcx
mov [rsp+arg_154], eax
lea rdi, [rsp+arg_18]
call _ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EED2Ev; std::vector<std::string>::~vector()
loc_9662B:
lea rdi, [rsp+arg_80]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string()
jmp short loc_96670
loc_9663A:
jmp short loc_96666
loc_9663C:
mov rdi, [rsp+1D8h+var_8]
call __ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5emptyEv; std::string::empty(void)
test al, 1
jnz short loc_9664F
jmp short loc_96664
loc_9664F:
mov rsi, [rsp+1D8h+var_30]
mov rdi, [rsp+1D8h+var_8]
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSERKS4_; std::string::operator=(std::string const&)
loc_96664:
jmp short $+2
loc_96666:
jmp short $+2
loc_96668:
add rsp, 1D8h
retn
loc_96670:
mov rdi, [rsp+arg_158]
call __Unwind_Resume
| void common_params_handle_model_default(
long long a1,
long long a2,
long long a3,
long long a4,
void *a5,
long long 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
long long v15; // rax
int v16; // ecx
int v17; // r8d
int v18; // r9d
long long v19; // rax
int v20; // ecx
int v21; // r8d
int v22; // r9d
int v23; // [rsp+0h] [rbp-1D8h]
int v24; // [rsp+0h] [rbp-1D8h]
int v25; // [rsp+0h] [rbp-1D8h]
int v26[2]; // [rsp+0h] [rbp-1D8h]
int v27; // [rsp+0h] [rbp-1D8h]
int v28; // [rsp+0h] [rbp-1D8h]
void *v29; // [rsp+8h] [rbp-1D0h]
int v30; // [rsp+8h] [rbp-1D0h]
int v31; // [rsp+10h] [rbp-1C8h]
int v32; // [rsp+10h] [rbp-1C8h]
int v33; // [rsp+18h] [rbp-1C0h]
long long v34; // [rsp+18h] [rbp-1C0h]
int v35; // [rsp+18h] [rbp-1C0h]
long long v36; // [rsp+20h] [rbp-1B8h] BYREF
char v37; // [rsp+28h] [rbp-1B0h]
int v38; // [rsp+30h] [rbp-1A8h]
int v39; // [rsp+38h] [rbp-1A0h] BYREF
int v40; // [rsp+40h] [rbp-198h]
int v41; // [rsp+48h] [rbp-190h]
long long v42; // [rsp+50h] [rbp-188h]
long long v43; // [rsp+58h] [rbp-180h] BYREF
char v44; // [rsp+60h] [rbp-178h]
long long v45[3]; // [rsp+70h] [rbp-168h] BYREF
_BYTE v46[32]; // [rsp+88h] [rbp-150h] BYREF
int v47[9]; // [rsp+A8h] [rbp-130h] BYREF
char v48; // [rsp+CFh] [rbp-109h] BYREF
_BYTE v49[39]; // [rsp+D0h] [rbp-108h] BYREF
char v50; // [rsp+F7h] [rbp-E1h] BYREF
_BYTE v51[32]; // [rsp+F8h] [rbp-E0h] BYREF
long long v52[4]; // [rsp+118h] [rbp-C0h] BYREF
_BYTE v53[48]; // [rsp+138h] [rbp-A0h] BYREF
int v54[8]; // [rsp+168h] [rbp-70h] BYREF
_BYTE v55[32]; // [rsp+188h] [rbp-50h] BYREF
long long v56; // [rsp+1A8h] [rbp-30h]
void *v57; // [rsp+1B0h] [rbp-28h]
long long v58; // [rsp+1B8h] [rbp-20h]
int v59[2]; // [rsp+1C0h] [rbp-18h]
long long v60; // [rsp+1C8h] [rbp-10h]
long long v61; // [rsp+1D0h] [rbp-8h]
v61 = a1;
v60 = a2;
*(_QWORD *)v59 = a3;
v58 = a4;
v57 = a5;
v56 = a6;
if ( (std::string::empty(a3) & 1) != 0 )
{
if ( (std::string::empty(v60) & 1) != 0 )
{
if ( (std::string::empty(v61) & 1) != 0 )
std::string::operator=(v61, v56);
}
else if ( (std::string::empty(v61) & 1) != 0 )
{
string_split<std::string>((unsigned int)v45, v60, 35, v12, v13, v14, (unsigned int)v45);
v15 = std::vector<std::string>::front(*(_QWORD *)v26);
std::string::basic_string(v46, v15);
std::vector<std::string>::~vector(v45);
string_split<std::string>((unsigned int)&v43, (unsigned int)v46, 63, v16, v17, v18, v26[0]);
v19 = std::vector<std::string>::front(&v43);
std::string::operator=(v46, v19);
std::vector<std::string>::~vector(&v43);
string_split<std::string>((unsigned int)&v36, (unsigned int)v46, 47, v20, v21, v22, v27);
std::vector<std::string>::back(&v36);
fs_get_cache_file((int)&v39, v28, (int)v29, v31, v33, v36, v37, v38, v39, v40, v41, v42, v43, v44);
std::string::operator=(v61, &v39);
std::string::~string(&v39);
std::vector<std::string>::~vector(&v36);
std::string::~string(v46);
}
}
else
{
if ( (std::string::empty(v58) & 1) != 0 )
{
if ( (std::string::empty(v61) & 1) != 0 )
{
common_get_hf_file((int)v54, v59[0], v57);
if ( (std::string::empty(v54) & 1) != 0 || (std::string::empty(v55) & 1) != 0 )
exit(1LL);
std::string::operator=(*(_QWORD *)v59, v54);
std::string::operator=(v58, v55);
std::pair<std::string,std::string>::~pair(v54);
}
else
{
std::string::operator=(v58, v61);
}
}
if ( (std::string::empty(v61) & 1) != 0 )
{
std::operator+<char>((int)v52, v59[0], (int)"_", v6, v7, v8, v23, v29, v31, (long long)v52);
std::operator+<char>(v53, v34, v58);
std::string::~string(v52);
std::allocator<char>::allocator();
std::string::basic_string<std::allocator<char>>((long long)v51, (long long)"/", (long long)&v50);
std::allocator<char>::allocator();
std::string::basic_string<std::allocator<char>>((long long)v49, (long long)"_", (long long)&v48);
string_replace_all(
(unsigned int)v53,
(unsigned int)v51,
(unsigned int)v49,
v9,
v10,
v11,
v24,
(unsigned int)&v48,
(unsigned int)&v50,
v34,
v36,
v37);
std::string::~string(v49);
std::allocator<char>::~allocator(&v48);
std::string::~string(v51);
std::allocator<char>::~allocator(&v50);
fs_get_cache_file((int)v47, v25, v30, v32, v35, v36, v37, v38, v39, v40, v41, v42, v43, v44);
std::string::operator=(v61, v47);
std::string::~string(v47);
std::string::~string(v53);
}
}
}
| common_params_handle_model_default:
SUB RSP,0x1d8
MOV qword ptr [RSP + 0x1d0],RDI
MOV qword ptr [RSP + 0x1c8],RSI
MOV qword ptr [RSP + 0x1c0],RDX
MOV qword ptr [RSP + 0x1b8],RCX
MOV qword ptr [RSP + 0x1b0],R8
MOV qword ptr [RSP + 0x1a8],R9
MOV RDI,qword ptr [RSP + 0x1c0]
CALL 0x0015b530
TEST AL,0x1
JNZ 0x001964a0
MOV RDI,qword ptr [RSP + 0x1b8]
CALL 0x0015b530
TEST AL,0x1
JNZ 0x001961a2
JMP 0x00196281
LAB_001961a2:
MOV RDI,qword ptr [RSP + 0x1d0]
CALL 0x0015b530
TEST AL,0x1
JNZ 0x001961b8
JMP 0x0019626a
LAB_001961b8:
MOV RSI,qword ptr [RSP + 0x1c0]
MOV RDX,qword ptr [RSP + 0x1b0]
LEA RDI,[RSP + 0x168]
CALL 0x001fda00
LEA RDI,[RSP + 0x168]
CALL 0x0015b530
TEST AL,0x1
JNZ 0x001961fd
LEA RDI,[RSP + 0x168]
ADD RDI,0x20
CALL 0x0015b530
TEST AL,0x1
JNZ 0x001961fd
JMP 0x00196207
LAB_001961fd:
MOV EDI,0x1
CALL 0x0015bc80
LAB_00196207:
MOV RDI,qword ptr [RSP + 0x1c0]
LAB_0019620f:
LEA RSI,[RSP + 0x168]
CALL 0x0015c4a0
JMP 0x0019621e
LAB_0019621e:
LEA RSI,[RSP + 0x188]
MOV RDI,qword ptr [RSP + 0x1b8]
CALL 0x0015c4a0
LAB_00196233:
JMP 0x00196235
LAB_00196235:
LEA RDI,[RSP + 0x168]
CALL 0x001a1e30
JMP 0x0019627f
LAB_0019626a:
MOV RSI,qword ptr [RSP + 0x1d0]
MOV RDI,qword ptr [RSP + 0x1b8]
CALL 0x0015c4a0
LAB_0019627f:
JMP 0x00196281
LAB_00196281:
MOV RDI,qword ptr [RSP + 0x1d0]
CALL 0x0015b530
TEST AL,0x1
JNZ 0x00196297
JMP 0x0019649b
LAB_00196297:
MOV RSI,qword ptr [RSP + 0x1c0]
LEA RDX,[0x31b704]
LEA RDI,[RSP + 0x118]
MOV qword ptr [RSP + 0x18],RDI
CALL 0x0019e990
MOV RSI,qword ptr [RSP + 0x18]
MOV RDX,qword ptr [RSP + 0x1b8]
LAB_001962c5:
LEA RDI,[RSP + 0x138]
CALL 0x001a1e60
JMP 0x001962d4
LAB_001962d4:
LEA RDI,[RSP + 0x118]
CALL 0x0015c608
LEA RDI,[RSP + 0xf7]
MOV qword ptr [RSP + 0x10],RDI
CALL 0x0015c150
MOV RDX,qword ptr [RSP + 0x10]
LAB_001962f8:
LEA RSI,[0x320aa2]
LEA RDI,[RSP + 0xf8]
CALL 0x001651c0
JMP 0x0019630e
LAB_0019630e:
LEA RDI,[RSP + 0xcf]
MOV qword ptr [RSP + 0x8],RDI
CALL 0x0015c150
MOV RDX,qword ptr [RSP + 0x8]
LAB_00196325:
LEA RSI,[0x31b704]
LEA RDI,[RSP + 0xd0]
CALL 0x001651c0
JMP 0x0019633b
LAB_0019633b:
LEA RDI,[RSP + 0x138]
LEA RSI,[RSP + 0xf8]
LEA RDX,[RSP + 0xd0]
CALL 0x001f9c40
JMP 0x0019635a
LAB_0019635a:
LEA RDI,[RSP + 0xd0]
CALL 0x0015c608
LEA RDI,[RSP + 0xcf]
CALL 0x0015c5e0
LEA RDI,[RSP + 0xf8]
CALL 0x0015c608
LEA RDI,[RSP + 0xf7]
CALL 0x0015c5e0
LAB_0019638e:
LEA RDI,[RSP + 0xa8]
LEA RSI,[RSP + 0x138]
CALL 0x001fbd10
LAB_001963a3:
JMP 0x001963a5
LAB_001963a5:
MOV RDI,qword ptr [RSP + 0x1d0]
LEA RSI,[RSP + 0xa8]
CALL 0x0015b9b0
LEA RDI,[RSP + 0xa8]
CALL 0x0015c608
LEA RDI,[RSP + 0x138]
CALL 0x0015c608
JMP 0x0019649b
LAB_0019649b:
JMP 0x00196668
LAB_001964a0:
MOV RDI,qword ptr [RSP + 0x1c8]
CALL 0x0015b530
TEST AL,0x1
JNZ 0x0019663c
MOV RDI,qword ptr [RSP + 0x1d0]
CALL 0x0015b530
TEST AL,0x1
JNZ 0x001964cb
JMP 0x0019663a
LAB_001964cb:
MOV RSI,qword ptr [RSP + 0x1c8]
LEA RDI,[RSP + 0x70]
MOV qword ptr [RSP],RDI
MOV EDX,0x23
CALL 0x00196680
MOV RDI,qword ptr [RSP]
CALL 0x001a1eb0
MOV RSI,RAX
LAB_001964f2:
LEA RDI,[RSP + 0x88]
CALL 0x0015b200
JMP 0x00196501
LAB_00196501:
LEA RDI,[RSP + 0x70]
CALL 0x001650c0
LAB_0019650b:
LEA RDI,[RSP + 0x58]
LEA RSI,[RSP + 0x88]
MOV EDX,0x3f
CALL 0x00196680
JMP 0x00196524
LAB_00196524:
LEA RDI,[RSP + 0x58]
CALL 0x001a1eb0
MOV RSI,RAX
LAB_00196531:
LEA RDI,[RSP + 0x88]
CALL 0x0015c4a0
JMP 0x00196540
LAB_00196540:
LEA RDI,[RSP + 0x58]
CALL 0x001650c0
LAB_0019654a:
LEA RDI,[RSP + 0x20]
LEA RSI,[RSP + 0x88]
MOV EDX,0x2f
CALL 0x00196680
JMP 0x00196563
LAB_00196563:
LEA RDI,[RSP + 0x20]
CALL 0x001a1ee0
MOV RSI,RAX
LAB_00196570:
LEA RDI,[RSP + 0x38]
CALL 0x001fbd10
LAB_0019657a:
JMP 0x0019657c
LAB_0019657c:
MOV RDI,qword ptr [RSP + 0x1d0]
LEA RSI,[RSP + 0x38]
CALL 0x0015b9b0
LEA RDI,[RSP + 0x38]
CALL 0x0015c608
LEA RDI,[RSP + 0x20]
CALL 0x001650c0
LEA RDI,[RSP + 0x88]
CALL 0x0015c608
JMP 0x0019663a
LAB_0019663a:
JMP 0x00196666
LAB_0019663c:
MOV RDI,qword ptr [RSP + 0x1d0]
CALL 0x0015b530
TEST AL,0x1
JNZ 0x0019664f
JMP 0x00196664
LAB_0019664f:
MOV RSI,qword ptr [RSP + 0x1a8]
MOV RDI,qword ptr [RSP + 0x1d0]
CALL 0x0015c4a0
LAB_00196664:
JMP 0x00196666
LAB_00196666:
JMP 0x00196668
LAB_00196668:
ADD RSP,0x1d8
RET
|
/* common_params_handle_model_default(std::__cxx11::string&, std::__cxx11::string const&,
std::__cxx11::string&, std::__cxx11::string&, std::__cxx11::string const&, std::__cxx11::string
const&) */
void common_params_handle_model_default
(string *param_1,string *param_2,string *param_3,string *param_4,string *param_5,
string *param_6)
{
string *psVar1;
byte bVar2;
string local_1b8 [24];
string local_1a0 [32];
string local_180 [24];
string local_168 [24];
string local_150 [32];
string local_130 [39];
allocator local_109;
string local_108 [39];
allocator local_e1;
string local_e0 [32];
string local_c0 [32];
string local_a0 [48];
string local_70 [32];
string local_50 [32];
string *local_30;
string *local_28;
string *local_20;
string *local_18;
string *local_10;
string *local_8;
local_30 = param_6;
local_28 = param_5;
local_20 = param_4;
local_18 = param_3;
local_10 = param_2;
local_8 = param_1;
bVar2 = std::__cxx11::string::empty();
if ((bVar2 & 1) == 0) {
bVar2 = std::__cxx11::string::empty();
if ((bVar2 & 1) != 0) {
bVar2 = std::__cxx11::string::empty();
if ((bVar2 & 1) == 0) {
std::__cxx11::string::operator=(local_20,local_8);
}
else {
common_get_hf_file(local_70,local_18);
bVar2 = std::__cxx11::string::empty();
if (((bVar2 & 1) != 0) || (bVar2 = std::__cxx11::string::empty(), (bVar2 & 1) != 0)) {
/* WARNING: Subroutine does not return */
exit(1);
}
/* try { // try from 0019620f to 00196232 has its CatchHandler @ 00196244 */
std::__cxx11::string::operator=(local_18,local_70);
std::__cxx11::string::operator=(local_20,local_50);
std::pair<std::__cxx11::string,std::__cxx11::string>::~pair
((pair<std::__cxx11::string,std::__cxx11::string> *)local_70);
}
}
bVar2 = std::__cxx11::string::empty();
if ((bVar2 & 1) != 0) {
std::operator+(local_c0,(char *)local_18);
/* try { // try from 001962c5 to 001962d1 has its CatchHandler @ 001963d9 */
std::operator+(local_a0,local_c0);
std::__cxx11::string::~string(local_c0);
std::allocator<char>::allocator();
/* try { // try from 001962f8 to 0019630b has its CatchHandler @ 001963ff */
std::__cxx11::string::string<std::allocator<char>>(local_e0,"/",&local_e1);
std::allocator<char>::allocator();
/* try { // try from 00196325 to 00196338 has its CatchHandler @ 00196415 */
std::__cxx11::string::string<std::allocator<char>>(local_108,"_",&local_109);
/* try { // try from 0019633b to 00196357 has its CatchHandler @ 0019642b */
string_replace_all(local_a0,local_e0,local_108);
std::__cxx11::string::~string(local_108);
std::allocator<char>::~allocator((allocator<char> *)&local_109);
std::__cxx11::string::~string(local_e0);
std::allocator<char>::~allocator((allocator<char> *)&local_e1);
/* try { // try from 0019638e to 001963a2 has its CatchHandler @ 00196475 */
fs_get_cache_file(local_130);
std::__cxx11::string::operator=(local_8,local_130);
std::__cxx11::string::~string(local_130);
std::__cxx11::string::~string(local_a0);
}
}
else {
bVar2 = std::__cxx11::string::empty();
if ((bVar2 & 1) == 0) {
bVar2 = std::__cxx11::string::empty();
if ((bVar2 & 1) != 0) {
string_split<std::__cxx11::string>(local_168,(char)local_10);
psVar1 = (string *)
std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>::front
((vector<std::__cxx11::string,std::allocator<std::__cxx11::string>> *)
local_168);
/* try { // try from 001964f2 to 001964fe has its CatchHandler @ 001965b4 */
std::__cxx11::string::string(local_150,psVar1);
std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>::~vector
((vector<std::__cxx11::string,std::allocator<std::__cxx11::string>> *)local_168);
/* try { // try from 0019650b to 00196521 has its CatchHandler @ 001965d7 */
string_split<std::__cxx11::string>(local_180,(char)local_150);
psVar1 = (string *)
std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>::front
((vector<std::__cxx11::string,std::allocator<std::__cxx11::string>> *)
local_180);
/* try { // try from 00196531 to 0019653d has its CatchHandler @ 001965ed */
std::__cxx11::string::operator=(local_150,psVar1);
std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>::~vector
((vector<std::__cxx11::string,std::allocator<std::__cxx11::string>> *)local_180);
/* try { // try from 0019654a to 00196560 has its CatchHandler @ 001965d7 */
string_split<std::__cxx11::string>(local_1b8,(char)local_150);
std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>::back
((vector<std::__cxx11::string,std::allocator<std::__cxx11::string>> *)local_1b8);
/* try { // try from 00196570 to 00196579 has its CatchHandler @ 0019660d */
fs_get_cache_file(local_1a0);
std::__cxx11::string::operator=(local_8,local_1a0);
std::__cxx11::string::~string(local_1a0);
std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>::~vector
((vector<std::__cxx11::string,std::allocator<std::__cxx11::string>> *)local_1b8);
std::__cxx11::string::~string(local_150);
}
}
else {
bVar2 = std::__cxx11::string::empty();
if ((bVar2 & 1) != 0) {
std::__cxx11::string::operator=(local_8,local_30);
}
}
}
return;
}
| |
42,224 | common_params_handle_model_default(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&) | monkey531[P]llama/common/arg.cpp | static void common_params_handle_model_default(
std::string & model,
const std::string & model_url,
std::string & hf_repo,
std::string & hf_file,
const std::string & hf_token,
const std::string & model_default) {
if (!hf_repo.empty()) {
// short-hand to avoid specifying --hf-file -> default it to --model
if (hf_file.empty()) {
if (model.empty()) {
auto auto_detected = common_get_hf_file(hf_repo, hf_token);
if (auto_detected.first.empty() || auto_detected.second.empty()) {
exit(1); // built without CURL, error message already printed
}
hf_repo = auto_detected.first;
hf_file = auto_detected.second;
} else {
hf_file = model;
}
}
// make sure model path is present (for caching purposes)
if (model.empty()) {
// this is to avoid different repo having same file name, or same file name in different subdirs
std::string filename = hf_repo + "_" + hf_file;
// to make sure we don't have any slashes in the filename
string_replace_all(filename, "/", "_");
model = fs_get_cache_file(filename);
}
} else if (!model_url.empty()) {
if (model.empty()) {
auto f = string_split<std::string>(model_url, '#').front();
f = string_split<std::string>(f, '?').front();
model = fs_get_cache_file(string_split<std::string>(f, '/').back());
}
} else if (model.empty()) {
model = model_default;
}
} | O3 | cpp | common_params_handle_model_default(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&):
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x88, %rsp
movq %rdi, %rbx
cmpq $0x0, 0x8(%rdx)
je 0x553e1
movq %rcx, %r14
movq %rdx, %r15
cmpq $0x0, 0x8(%rcx)
jne 0x5555f
cmpq $0x0, 0x8(%rbx)
je 0x554e4
movq %r14, %rdi
movq %rbx, %rsi
callq 0x1b4d0
jmp 0x5555f
cmpq $0x0, 0x8(%rsi)
movq 0x8(%rbx), %rax
je 0x554c2
testq %rax, %rax
jne 0x556d1
leaq 0x8(%rsp), %r14
movq %r14, %rdi
movl $0x23, %edx
callq 0x55797
movq (%r14), %rax
leaq 0x38(%rsp), %r15
movq %r15, -0x10(%r15)
movq (%rax), %rsi
movq 0x8(%rax), %rdx
addq %rsi, %rdx
leaq 0x28(%rsp), %rdi
callq 0x276f6
leaq 0x8(%rsp), %rdi
callq 0x22860
leaq 0x8(%rsp), %rdi
leaq 0x28(%rsp), %rsi
movl $0x3f, %edx
callq 0x55797
movq 0x8(%rsp), %rsi
leaq 0x28(%rsp), %rdi
callq 0x1b4d0
leaq 0x8(%rsp), %rdi
callq 0x22860
leaq 0x68(%rsp), %rdi
leaq 0x28(%rsp), %rsi
movl $0x2f, %edx
callq 0x55797
movq 0x70(%rsp), %rsi
addq $-0x20, %rsi
leaq 0x8(%rsp), %rdi
callq 0x78e07
leaq 0x8(%rsp), %r14
movq %rbx, %rdi
movq %r14, %rsi
callq 0x1bb00
movq (%r14), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x554b3
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x1b910
leaq 0x68(%rsp), %rdi
callq 0x22860
jmp 0x556ba
testq %rax, %rax
jne 0x556d1
movq %rbx, %rdi
movq %r9, %rsi
addq $0x88, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
jmp 0x1b4d0
leaq 0x28(%rsp), %r12
movq %r12, %rdi
movq %r15, %rsi
movq %r8, %rdx
callq 0x7a421
cmpq $0x0, 0x8(%r12)
je 0x556e0
cmpq $0x0, 0x50(%rsp)
je 0x556e0
leaq 0x28(%rsp), %rsi
movq %r15, %rdi
callq 0x1b4d0
leaq 0x48(%rsp), %rsi
movq %r14, %rdi
callq 0x1b4d0
leaq 0x58(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x55544
movq 0x58(%rsp), %rsi
incq %rsi
callq 0x1b910
leaq 0x38(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x5555f
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x1b910
cmpq $0x0, 0x8(%rbx)
jne 0x556d1
leaq 0x18(%rsp), %r12
movq %r12, -0x10(%r12)
movq (%r15), %rsi
movq 0x8(%r15), %rdx
addq %rsi, %rdx
leaq 0x8(%rsp), %r15
movq %r15, %rdi
callq 0x276f6
leaq 0x9e783(%rip), %rsi # 0xf3d15
movq %r15, %rdi
callq 0x1c1a0
movq (%r14), %rsi
movq 0x8(%r14), %rdx
leaq 0x8(%rsp), %rdi
callq 0x1b270
leaq 0x38(%rsp), %r15
movq %r15, -0x10(%r15)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x555d2
movq %rdx, 0x28(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x38(%rsp)
jmp 0x555d9
movups (%rcx), %xmm0
movups %xmm0, (%r15)
movq 0x8(%rax), %rdx
movq %rdx, 0x30(%rsp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq 0x8(%rsp), %rdi
cmpq %r12, %rdi
je 0x55608
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x1b910
leaq 0x8(%rsp), %rdi
movq %r12, (%rdi)
leaq 0xa3aa4(%rip), %rsi # 0xf90bb
leaq 0xa3a9e(%rip), %rdx # 0xf90bc
callq 0x24db4
leaq 0x78(%rsp), %r14
movq %r14, -0x10(%r14)
leaq 0x9e6e2(%rip), %rsi # 0xf3d15
leaq 0x9e6dc(%rip), %rdx # 0xf3d16
leaq 0x68(%rsp), %rdi
callq 0x24db4
leaq 0x28(%rsp), %rdi
leaq 0x8(%rsp), %rsi
leaq 0x68(%rsp), %rdx
callq 0x770a9
movq 0x68(%rsp), %rdi
cmpq %r14, %rdi
je 0x5566f
movq 0x78(%rsp), %rsi
incq %rsi
callq 0x1b910
movq 0x8(%rsp), %rdi
cmpq %r12, %rdi
je 0x55686
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x1b910
leaq 0x8(%rsp), %rdi
leaq 0x28(%rsp), %rsi
callq 0x78e07
leaq 0x8(%rsp), %r14
movq %rbx, %rdi
movq %r14, %rsi
callq 0x1bb00
movq (%r14), %rdi
cmpq %r12, %rdi
je 0x556ba
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x1b910
movq 0x28(%rsp), %rdi
cmpq %r15, %rdi
je 0x556d1
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x1b910
addq $0x88, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
movl $0x1, %edi
callq 0x1bad0
movq %rax, %rbx
leaq 0x68(%rsp), %rdi
jmp 0x556fe
jmp 0x5575f
movq %rax, %rbx
leaq 0x8(%rsp), %rdi
callq 0x22860
jmp 0x55762
jmp 0x5575f
movq %rax, %rbx
leaq 0x8(%rsp), %rdi
callq 0x22860
jmp 0x5578f
movq %rax, %rbx
leaq 0x28(%rsp), %rdi
callq 0x5a882
jmp 0x5578f
jmp 0x5575f
movq %rax, %rbx
movq 0x68(%rsp), %rdi
cmpq %r14, %rdi
je 0x55746
movq 0x78(%rsp), %rsi
incq %rsi
callq 0x1b910
jmp 0x55746
movq %rax, %rbx
movq 0x8(%rsp), %rdi
cmpq %r12, %rdi
je 0x55762
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x1b910
jmp 0x55762
movq %rax, %rbx
movq 0x28(%rsp), %rdi
cmpq %r15, %rdi
je 0x5578f
movq 0x38(%rsp), %rsi
jmp 0x55787
jmp 0x55775
movq %rax, %rbx
movq 0x8(%rsp), %rdi
cmpq %r12, %rdi
je 0x5578f
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x1b910
movq %rbx, %rdi
callq 0x1c030
| _ZL34common_params_handle_model_defaultRNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKS4_S5_S5_S7_S7_:
push r15
push r14
push r12
push rbx
sub rsp, 88h
mov rbx, rdi
cmp qword ptr [rdx+8], 0
jz short loc_553E1
mov r14, rcx
mov r15, rdx
cmp qword ptr [rcx+8], 0
jnz loc_5555F
cmp qword ptr [rbx+8], 0
jz loc_554E4
mov rdi, r14
mov rsi, rbx
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9_M_assignERKS4_; std::string::_M_assign(std::string const&)
jmp loc_5555F
loc_553E1:
cmp qword ptr [rsi+8], 0
mov rax, [rbx+8]
jz loc_554C2
test rax, rax
jnz loc_556D1
lea r14, [rsp+0A8h+var_A0]
mov rdi, r14; int
mov edx, 23h ; '#'; int
call _ZL12string_splitINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEESt6vectorIT_SaIS7_EERKS5_c; string_split<std::string>(std::string const&,char)
mov rax, [r14]
lea r15, [rsp+0A8h+var_70]
mov [r15-10h], r15
mov rsi, [rax]
mov rdx, [rax+8]
add rdx, rsi
lea rdi, [rsp+0A8h+var_80]
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPcEEvT_S7_St20forward_iterator_tag; std::string::_M_construct<char *>(char *,char *,std::forward_iterator_tag)
lea rdi, [rsp+0A8h+var_A0]
call _ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EED2Ev; std::vector<std::string>::~vector()
lea rdi, [rsp+0A8h+var_A0]; int
lea rsi, [rsp+0A8h+var_80]; int
mov edx, 3Fh ; '?'; int
call _ZL12string_splitINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEESt6vectorIT_SaIS7_EERKS5_c; string_split<std::string>(std::string const&,char)
mov rsi, [rsp+0A8h+var_A0]
lea rdi, [rsp+0A8h+var_80]
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9_M_assignERKS4_; std::string::_M_assign(std::string const&)
lea rdi, [rsp+0A8h+var_A0]
call _ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EED2Ev; std::vector<std::string>::~vector()
lea rdi, [rsp+0A8h+var_40]; int
lea rsi, [rsp+0A8h+var_80]; int
mov edx, 2Fh ; '/'; int
call _ZL12string_splitINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEESt6vectorIT_SaIS7_EERKS5_c; string_split<std::string>(std::string const&,char)
mov rsi, [rsp+0A8h+var_38]
add rsi, 0FFFFFFFFFFFFFFE0h
lea rdi, [rsp+0A8h+var_A0]
call _Z17fs_get_cache_fileRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE; fs_get_cache_file(std::string const&)
lea r14, [rsp+0A8h+var_A0]
mov rdi, rbx
mov rsi, r14
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEOS4_; std::string::operator=(std::string&&)
mov rdi, [r14]; void *
lea rax, [rsp+0A8h+var_90]
cmp rdi, rax
jz short loc_554B3
mov rsi, [rsp+0A8h+var_90]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_554B3:
lea rdi, [rsp+0A8h+var_40]
call _ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EED2Ev; std::vector<std::string>::~vector()
jmp loc_556BA
loc_554C2:
test rax, rax
jnz loc_556D1
mov rdi, rbx
mov rsi, r9
add rsp, 88h
pop rbx
pop r12
pop r14
pop r15
jmp __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9_M_assignERKS4_; std::string::_M_assign(std::string const&)
loc_554E4:
lea r12, [rsp+0A8h+var_80]
mov rdi, r12
mov rsi, r15
mov rdx, r8
call _Z18common_get_hf_fileRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES6_; common_get_hf_file(std::string const&,std::string const&)
cmp qword ptr [r12+8], 0
jz loc_556E0
cmp [rsp+0A8h+var_58], 0
jz loc_556E0
lea rsi, [rsp+0A8h+var_80]
mov rdi, r15
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9_M_assignERKS4_; std::string::_M_assign(std::string const&)
lea rsi, [rsp+0A8h+var_60]
mov rdi, r14
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9_M_assignERKS4_; std::string::_M_assign(std::string const&)
lea rax, [rsp+0A8h+var_50]
mov rdi, [rax-10h]; void *
cmp rdi, rax
jz short loc_55544
mov rsi, [rsp+0A8h+var_50]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_55544:
lea rax, [rsp+0A8h+var_70]
mov rdi, [rax-10h]; void *
cmp rdi, rax
jz short loc_5555F
mov rsi, [rsp+0A8h+var_70]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_5555F:
cmp qword ptr [rbx+8], 0
jnz loc_556D1
lea r12, [rsp+0A8h+var_90]
mov [r12-10h], r12
mov rsi, [r15]
mov rdx, [r15+8]
add rdx, rsi
lea r15, [rsp+0A8h+var_A0]
mov rdi, r15
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPcEEvT_S7_St20forward_iterator_tag; std::string::_M_construct<char *>(char *,char *,std::forward_iterator_tag)
lea rsi, aCall911+8; "_"
mov rdi, r15
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6appendEPKc; std::string::append(char const*)
mov rsi, [r14]
mov rdx, [r14+8]
lea rdi, [rsp+0A8h+var_A0]
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9_M_appendEPKcm; std::string::_M_append(char const*,ulong)
lea r15, [rsp+0A8h+var_70]
mov [r15-10h], r15
mov rdx, [rax]
mov rcx, rax
add rcx, 10h
cmp rdx, rcx
jz short loc_555D2
mov [rsp+0A8h+var_80], rdx
mov rdx, [rcx]
mov [rsp+0A8h+var_70], rdx
jmp short loc_555D9
loc_555D2:
movups xmm0, xmmword ptr [rcx]
movups xmmword ptr [r15], xmm0
loc_555D9:
mov rdx, [rax+8]
mov [rsp+0A8h+var_78], rdx
mov [rax], rcx
mov qword ptr [rax+8], 0
mov byte ptr [rax+10h], 0
mov rdi, [rsp+0A8h+var_A0]; void *
cmp rdi, r12
jz short loc_55608
mov rsi, [rsp+0A8h+var_90]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_55608:
lea rdi, [rsp+0A8h+var_A0]
mov [rdi], r12
lea rsi, asc_F90BA+1; "/"
lea rdx, asc_F90BA+2; ""
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 r14, [rsp+0A8h+var_30]
mov [r14-10h], r14
lea rsi, aCall911+8; "_"
lea rdx, aCall911+9; ""
lea rdi, [rsp+0A8h+var_40]
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPKcEEvT_S8_St20forward_iterator_tag; std::string::_M_construct<char const*>(char const*,char const*,std::forward_iterator_tag)
lea rdi, [rsp+0A8h+var_80]; int
lea rsi, [rsp+0A8h+var_A0]; int
lea rdx, [rsp+0A8h+var_40]; int
call _Z18string_replace_allRNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKS4_S7_; string_replace_all(std::string &,std::string const&,std::string const&)
mov rdi, [rsp+0A8h+var_40]; void *
cmp rdi, r14
jz short loc_5566F
mov rsi, [rsp+0A8h+var_30]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_5566F:
mov rdi, [rsp+0A8h+var_A0]; void *
cmp rdi, r12
jz short loc_55686
mov rsi, [rsp+0A8h+var_90]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_55686:
lea rdi, [rsp+0A8h+var_A0]
lea rsi, [rsp+0A8h+var_80]
call _Z17fs_get_cache_fileRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE; fs_get_cache_file(std::string const&)
lea r14, [rsp+0A8h+var_A0]
mov rdi, rbx
mov rsi, r14
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEOS4_; std::string::operator=(std::string&&)
mov rdi, [r14]; void *
cmp rdi, r12
jz short loc_556BA
mov rsi, [rsp+0A8h+var_90]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_556BA:
mov rdi, [rsp+0A8h+var_80]; void *
cmp rdi, r15
jz short loc_556D1
mov rsi, [rsp+0A8h+var_70]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_556D1:
add rsp, 88h
pop rbx
pop r12
pop r14
pop r15
retn
loc_556E0:
mov edi, 1
call _exit
mov rbx, rax
lea rdi, [rsp+0A8h+var_40]
jmp short loc_556FE
jmp short loc_5575F
mov rbx, rax
lea rdi, [rsp+0A8h+var_A0]
loc_556FE:
call _ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EED2Ev; std::vector<std::string>::~vector()
jmp short loc_55762
jmp short loc_5575F
mov rbx, rax
lea rdi, [rsp+0A8h+var_A0]
call _ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EED2Ev; std::vector<std::string>::~vector()
jmp short loc_5578F
mov rbx, rax
lea rdi, [rsp+0A8h+var_80]
call _ZNSt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES5_ED2Ev; std::pair<std::string,std::string>::~pair()
jmp short loc_5578F
jmp short loc_5575F
mov rbx, rax
mov rdi, [rsp+0A8h+var_40]; void *
cmp rdi, r14
jz short loc_55746
mov rsi, [rsp+0A8h+var_30]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
jmp short loc_55746
mov rbx, rax
loc_55746:
mov rdi, [rsp+0A8h+var_A0]; void *
cmp rdi, r12
jz short loc_55762
mov rsi, [rsp+0A8h+var_90]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
jmp short loc_55762
loc_5575F:
mov rbx, rax
loc_55762:
mov rdi, [rsp+0A8h+var_80]
cmp rdi, r15
jz short loc_5578F
mov rsi, [rsp+0A8h+var_70]
jmp short loc_55787
jmp short $+2
loc_55775:
mov rbx, rax
mov rdi, [rsp+0A8h+var_A0]; void *
cmp rdi, r12
jz short loc_5578F
mov rsi, [rsp+0A8h+var_90]
loc_55787:
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_5578F:
mov rdi, rbx
call __Unwind_Resume
| void common_params_handle_model_default(
long long a1,
long long a2,
long long a3,
_QWORD *a4,
long long a5,
long long a6)
{
long long v8; // rax
int v9; // ecx
int v10; // r8d
int v11; // r9d
int v12; // ecx
int v13; // r8d
int v14; // r9d
long long v15; // rax
__int128 *v16; // rcx
int v17; // ecx
int v18; // r8d
int v19; // r9d
void *v20; // [rsp+0h] [rbp-A8h]
void *v21; // [rsp+0h] [rbp-A8h]
void *v22; // [rsp+0h] [rbp-A8h]
void *v23; // [rsp+8h] [rbp-A0h] BYREF
long long v24; // [rsp+10h] [rbp-98h]
_QWORD v25[2]; // [rsp+18h] [rbp-90h] BYREF
void *v26; // [rsp+28h] [rbp-80h] BYREF
long long v27; // [rsp+30h] [rbp-78h]
__int128 v28; // [rsp+38h] [rbp-70h] BYREF
void *v29[2]; // [rsp+48h] [rbp-60h] BYREF
long long v30; // [rsp+58h] [rbp-50h] BYREF
void *v31[2]; // [rsp+68h] [rbp-40h] BYREF
_QWORD v32[6]; // [rsp+78h] [rbp-30h] BYREF
if ( *(_QWORD *)(a3 + 8) )
{
if ( !a4[1] )
{
if ( *(_QWORD *)(a1 + 8) )
{
std::string::_M_assign(a4, a1);
}
else
{
common_get_hf_file(&v26, a3, a5);
if ( !v27 || !v29[1] )
exit(1LL);
std::string::_M_assign(a3, &v26);
std::string::_M_assign(a4, v29);
if ( v29[0] != &v30 )
operator delete(v29[0], v30 + 1);
if ( v26 != &v28 )
operator delete(v26, v28 + 1);
}
}
if ( !*(_QWORD *)(a1 + 8) )
{
v23 = v25;
std::string::_M_construct<char *>((long long)&v23, *(_BYTE **)a3, *(_QWORD *)a3 + *(_QWORD *)(a3 + 8));
std::string::append(&v23, "_");
v15 = std::string::_M_append(&v23, *a4, a4[1]);
v26 = &v28;
v16 = (__int128 *)(v15 + 16);
if ( *(_QWORD *)v15 == v15 + 16 )
{
v28 = *v16;
}
else
{
v26 = *(void **)v15;
*(_QWORD *)&v28 = *(_QWORD *)v16;
}
v27 = *(_QWORD *)(v15 + 8);
*(_QWORD *)v15 = v16;
*(_QWORD *)(v15 + 8) = 0LL;
*(_BYTE *)(v15 + 16) = 0;
if ( v23 != v25 )
operator delete(v23, v25[0] + 1LL);
v23 = v25;
std::string::_M_construct<char const*>((long long)&v23, "/", (long long)"");
v31[0] = v32;
std::string::_M_construct<char const*>((long long)v31, "_", (long long)"");
string_replace_all((int)&v26, (int)&v23, (int)v31, v17, v18, v19, v20, (int)v23, v24);
if ( v31[0] != v32 )
operator delete(v31[0], v32[0] + 1LL);
if ( v23 != v25 )
operator delete(v23, v25[0] + 1LL);
fs_get_cache_file(&v23, &v26);
std::string::operator=(a1, &v23);
if ( v23 != v25 )
operator delete(v23, v25[0] + 1LL);
LABEL_30:
if ( v26 != &v28 )
operator delete(v26, v28 + 1);
}
}
else
{
v8 = *(_QWORD *)(a1 + 8);
if ( *(_QWORD *)(a2 + 8) )
{
if ( v8 )
return;
string_split<std::string>((int)&v23, a2, 35, (int)a4, a5, a6, v20, (int)v23, v24);
v26 = &v28;
std::string::_M_construct<char *>((long long)&v26, *(_BYTE **)v23, *(_QWORD *)v23 + *((_QWORD *)v23 + 1));
std::vector<std::string>::~vector((long long)&v23);
string_split<std::string>((int)&v23, (int)&v26, 63, v9, v10, v11, v21, (int)v23, v24);
std::string::_M_assign(&v26, v23);
std::vector<std::string>::~vector((long long)&v23);
string_split<std::string>((int)v31, (int)&v26, 47, v12, v13, v14, v22, (int)v23, v24);
fs_get_cache_file(&v23, (char *)v31[1] - 32);
std::string::operator=(a1, &v23);
if ( v23 != v25 )
operator delete(v23, v25[0] + 1LL);
std::vector<std::string>::~vector((long long)v31);
goto LABEL_30;
}
if ( !v8 )
std::string::_M_assign(a1, a6);
}
}
| common_params_handle_model_default:
PUSH R15
PUSH R14
PUSH R12
PUSH RBX
SUB RSP,0x88
MOV RBX,RDI
CMP qword ptr [RDX + 0x8],0x0
JZ 0x001553e1
MOV R14,RCX
MOV R15,RDX
CMP qword ptr [RCX + 0x8],0x0
JNZ 0x0015555f
CMP qword ptr [RBX + 0x8],0x0
JZ 0x001554e4
MOV RDI,R14
MOV RSI,RBX
CALL 0x0011b4d0
JMP 0x0015555f
LAB_001553e1:
CMP qword ptr [RSI + 0x8],0x0
MOV RAX,qword ptr [RBX + 0x8]
JZ 0x001554c2
TEST RAX,RAX
JNZ 0x001556d1
LEA R14,[RSP + 0x8]
MOV RDI,R14
MOV EDX,0x23
CALL 0x00155797
MOV RAX,qword ptr [R14]
LEA R15,[RSP + 0x38]
MOV qword ptr [R15 + -0x10],R15
MOV RSI,qword ptr [RAX]
MOV RDX,qword ptr [RAX + 0x8]
ADD RDX,RSI
LAB_00155421:
LEA RDI,[RSP + 0x28]
CALL 0x001276f6
LEA RDI,[RSP + 0x8]
CALL 0x00122860
LAB_00155435:
LEA RDI,[RSP + 0x8]
LEA RSI,[RSP + 0x28]
MOV EDX,0x3f
CALL 0x00155797
MOV RSI,qword ptr [RSP + 0x8]
LAB_0015544e:
LEA RDI,[RSP + 0x28]
CALL 0x0011b4d0
LEA RDI,[RSP + 0x8]
CALL 0x00122860
LAB_00155462:
LEA RDI,[RSP + 0x68]
LEA RSI,[RSP + 0x28]
MOV EDX,0x2f
CALL 0x00155797
MOV RSI,qword ptr [RSP + 0x70]
ADD RSI,-0x20
LAB_0015547f:
LEA RDI,[RSP + 0x8]
CALL 0x00178e07
LAB_00155489:
LEA R14,[RSP + 0x8]
MOV RDI,RBX
MOV RSI,R14
CALL 0x0011bb00
MOV RDI,qword ptr [R14]
LEA RAX,[RSP + 0x18]
CMP RDI,RAX
JZ 0x001554b3
MOV RSI,qword ptr [RSP + 0x18]
INC RSI
CALL 0x0011b910
LAB_001554b3:
LEA RDI,[RSP + 0x68]
CALL 0x00122860
JMP 0x001556ba
LAB_001554c2:
TEST RAX,RAX
JNZ 0x001556d1
MOV RDI,RBX
MOV RSI,R9
ADD RSP,0x88
POP RBX
POP R12
POP R14
POP R15
JMP 0x0011b4d0
LAB_001554e4:
LEA R12,[RSP + 0x28]
MOV RDI,R12
MOV RSI,R15
MOV RDX,R8
CALL 0x0017a421
CMP qword ptr [R12 + 0x8],0x0
JZ 0x001556e0
CMP qword ptr [RSP + 0x50],0x0
JZ 0x001556e0
LAB_0015550f:
LEA RSI,[RSP + 0x28]
MOV RDI,R15
CALL 0x0011b4d0
LEA RSI,[RSP + 0x48]
MOV RDI,R14
CALL 0x0011b4d0
LAB_00155529:
LEA RAX,[RSP + 0x58]
MOV RDI,qword ptr [RAX + -0x10]
CMP RDI,RAX
JZ 0x00155544
MOV RSI,qword ptr [RSP + 0x58]
INC RSI
CALL 0x0011b910
LAB_00155544:
LEA RAX,[RSP + 0x38]
MOV RDI,qword ptr [RAX + -0x10]
CMP RDI,RAX
JZ 0x0015555f
MOV RSI,qword ptr [RSP + 0x38]
INC RSI
CALL 0x0011b910
LAB_0015555f:
CMP qword ptr [RBX + 0x8],0x0
JNZ 0x001556d1
LEA R12,[RSP + 0x18]
MOV qword ptr [R12 + -0x10],R12
MOV RSI,qword ptr [R15]
MOV RDX,qword ptr [R15 + 0x8]
ADD RDX,RSI
LEA R15,[RSP + 0x8]
MOV RDI,R15
CALL 0x001276f6
LAB_0015558b:
LEA RSI,[0x1f3d15]
MOV RDI,R15
CALL 0x0011c1a0
MOV RSI,qword ptr [R14]
MOV RDX,qword ptr [R14 + 0x8]
LAB_001555a1:
LEA RDI,[RSP + 0x8]
CALL 0x0011b270
LEA R15,[RSP + 0x38]
MOV qword ptr [R15 + -0x10],R15
MOV RDX,qword ptr [RAX]
MOV RCX,RAX
ADD RCX,0x10
CMP RDX,RCX
JZ 0x001555d2
MOV qword ptr [RSP + 0x28],RDX
MOV RDX,qword ptr [RCX]
MOV qword ptr [RSP + 0x38],RDX
JMP 0x001555d9
LAB_001555d2:
MOVUPS XMM0,xmmword ptr [RCX]
MOVUPS xmmword ptr [R15],XMM0
LAB_001555d9:
MOV RDX,qword ptr [RAX + 0x8]
MOV qword ptr [RSP + 0x30],RDX
MOV qword ptr [RAX],RCX
MOV qword ptr [RAX + 0x8],0x0
MOV byte ptr [RAX + 0x10],0x0
MOV RDI,qword ptr [RSP + 0x8]
CMP RDI,R12
JZ 0x00155608
MOV RSI,qword ptr [RSP + 0x18]
INC RSI
CALL 0x0011b910
LAB_00155608:
LEA RDI,[RSP + 0x8]
MOV qword ptr [RDI],R12
LAB_00155610:
LEA RSI,[0x1f90bb]
LEA RDX,[0x1f90bc]
CALL 0x00124db4
LEA R14,[RSP + 0x78]
MOV qword ptr [R14 + -0x10],R14
LAB_0015562c:
LEA RSI,[0x1f3d15]
LEA RDX,[0x1f3d16]
LEA RDI,[RSP + 0x68]
CALL 0x00124db4
LAB_00155644:
LEA RDI,[RSP + 0x28]
LEA RSI,[RSP + 0x8]
LEA RDX,[RSP + 0x68]
CALL 0x001770a9
MOV RDI,qword ptr [RSP + 0x68]
CMP RDI,R14
JZ 0x0015566f
MOV RSI,qword ptr [RSP + 0x78]
INC RSI
CALL 0x0011b910
LAB_0015566f:
MOV RDI,qword ptr [RSP + 0x8]
CMP RDI,R12
JZ 0x00155686
MOV RSI,qword ptr [RSP + 0x18]
INC RSI
CALL 0x0011b910
LAB_00155686:
LEA RDI,[RSP + 0x8]
LEA RSI,[RSP + 0x28]
CALL 0x00178e07
LAB_00155695:
LEA R14,[RSP + 0x8]
MOV RDI,RBX
MOV RSI,R14
CALL 0x0011bb00
MOV RDI,qword ptr [R14]
CMP RDI,R12
JZ 0x001556ba
MOV RSI,qword ptr [RSP + 0x18]
INC RSI
CALL 0x0011b910
LAB_001556ba:
MOV RDI,qword ptr [RSP + 0x28]
CMP RDI,R15
JZ 0x001556d1
MOV RSI,qword ptr [RSP + 0x38]
INC RSI
CALL 0x0011b910
LAB_001556d1:
ADD RSP,0x88
POP RBX
POP R12
POP R14
POP R15
RET
LAB_001556e0:
MOV EDI,0x1
CALL 0x0011bad0
|
/* common_params_handle_model_default(std::__cxx11::string&, std::__cxx11::string const&,
std::__cxx11::string&, std::__cxx11::string&, std::__cxx11::string const&, std::__cxx11::string
const&) */
void common_params_handle_model_default
(string *param_1,string *param_2,string *param_3,string *param_4,string *param_5,
string *param_6)
{
long *plVar1;
long *plVar2;
long *local_a0 [2];
long local_90 [2];
long *local_80;
long local_78;
long local_70;
long lStack_68;
long *local_60;
long local_58;
long local_50 [2];
long *local_40 [2];
long local_30 [2];
if (*(long *)(param_3 + 8) == 0) {
if (*(long *)(param_2 + 8) == 0) {
if (*(long *)(param_1 + 8) != 0) {
return;
}
std::__cxx11::string::_M_assign(param_1);
return;
}
if (*(long *)(param_1 + 8) != 0) {
return;
}
string_split<std::__cxx11::string>((string *)local_a0,(char)param_2);
local_80 = &local_70;
/* try { // try from 00155421 to 0015542a has its CatchHandler @ 00155707 */
std::__cxx11::string::_M_construct<char*>(&local_80,*local_a0[0],local_a0[0][1] + *local_a0[0]);
std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>::~vector
((vector<std::__cxx11::string,std::allocator<std::__cxx11::string>> *)local_a0);
/* try { // try from 00155435 to 00155448 has its CatchHandler @ 00155705 */
string_split<std::__cxx11::string>((string *)local_a0,(char)&local_80);
/* try { // try from 0015544e to 00155457 has its CatchHandler @ 001556f6 */
std::__cxx11::string::_M_assign((string *)&local_80);
std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>::~vector
((vector<std::__cxx11::string,std::allocator<std::__cxx11::string>> *)local_a0);
/* try { // try from 00155462 to 00155475 has its CatchHandler @ 001556f4 */
string_split<std::__cxx11::string>((string *)local_40,(char)&local_80);
/* try { // try from 0015547f to 00155488 has its CatchHandler @ 001556ea */
fs_get_cache_file((string *)local_a0);
std::__cxx11::string::operator=(param_1,(string *)local_a0);
if (local_a0[0] != local_90) {
operator_delete(local_a0[0],local_90[0] + 1);
}
std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>::~vector
((vector<std::__cxx11::string,std::allocator<std::__cxx11::string>> *)local_40);
}
else {
if (*(long *)(param_4 + 8) == 0) {
if (*(long *)(param_1 + 8) == 0) {
common_get_hf_file((string *)&local_80,param_3);
if ((local_78 == 0) || (local_58 == 0)) {
/* WARNING: Subroutine does not return */
exit(1);
}
/* try { // try from 0015550f to 00155528 has its CatchHandler @ 00155716 */
std::__cxx11::string::_M_assign(param_3);
std::__cxx11::string::_M_assign(param_4);
if (local_60 != local_50) {
operator_delete(local_60,local_50[0] + 1);
}
if (local_80 != &local_70) {
operator_delete(local_80,local_70 + 1);
}
}
else {
std::__cxx11::string::_M_assign(param_4);
}
}
if (*(long *)(param_1 + 8) != 0) {
return;
}
local_a0[0] = local_90;
std::__cxx11::string::_M_construct<char*>
(local_a0,*(long *)param_3,*(long *)(param_3 + 8) + *(long *)param_3);
/* try { // try from 0015558b to 00155599 has its CatchHandler @ 00155775 */
std::__cxx11::string::append((char *)local_a0);
/* try { // try from 001555a1 to 001555aa has its CatchHandler @ 00155773 */
plVar1 = (long *)std::__cxx11::string::_M_append((char *)local_a0,*(ulong *)param_4);
local_80 = &local_70;
plVar2 = plVar1 + 2;
if ((long *)*plVar1 == plVar2) {
local_70 = *plVar2;
lStack_68 = plVar1[3];
}
else {
local_70 = *plVar2;
local_80 = (long *)*plVar1;
}
local_78 = plVar1[1];
*plVar1 = (long)plVar2;
plVar1[1] = 0;
*(int1 *)(plVar1 + 2) = 0;
if (local_a0[0] != local_90) {
operator_delete(local_a0[0],local_90[0] + 1);
}
local_a0[0] = local_90;
/* try { // try from 00155610 to 00155622 has its CatchHandler @ 0015575f */
std::__cxx11::string::_M_construct<char_const*>(local_a0,&DAT_001f90bb,&DAT_001f90bc);
/* try { // try from 0015562c to 00155643 has its CatchHandler @ 00155743 */
local_40[0] = local_30;
std::__cxx11::string::_M_construct<char_const*>(local_40,&DAT_001f3d15,&DAT_001f3d16);
/* try { // try from 00155644 to 00155657 has its CatchHandler @ 00155727 */
string_replace_all((string *)&local_80,(string *)local_a0,(string *)local_40);
if (local_40[0] != local_30) {
operator_delete(local_40[0],local_30[0] + 1);
}
if (local_a0[0] != local_90) {
operator_delete(local_a0[0],local_90[0] + 1);
}
/* try { // try from 00155686 to 00155694 has its CatchHandler @ 00155725 */
fs_get_cache_file((string *)local_a0);
std::__cxx11::string::operator=(param_1,(string *)local_a0);
if (local_a0[0] != local_90) {
operator_delete(local_a0[0],local_90[0] + 1);
}
}
if (local_80 != &local_70) {
operator_delete(local_80,local_70 + 1);
}
return;
}
| |
42,225 | my_caseup_ucs2 | eloqsql/strings/ctype-ucs2.c | static size_t my_caseup_ucs2(CHARSET_INFO *cs, const char *src, size_t srclen,
char *dst, size_t dstlen)
{
my_wc_t wc;
int res;
const char *srcend= src + srclen;
char *dstend= dst + dstlen;
MY_UNICASE_INFO *uni_plane= cs->caseinfo;
DBUG_ASSERT(srclen <= dstlen);
while ((src < srcend) &&
(res= my_ucs2_uni(cs, &wc, (uchar *)src, (uchar*) srcend)) > 0)
{
my_toupper_ucs2(uni_plane, &wc);
if (res != my_uni_ucs2(cs, wc, (uchar*) dst, (uchar*) dstend))
break;
src+= res;
dst+= res;
}
return srclen;
} | O3 | c | my_caseup_ucs2:
movq %rdx, %rax
cmpq $0x2, %rdx
jl 0x4e82b
pushq %rbp
movq %rsp, %rbp
leaq (%rsi,%rax), %rdx
addq %rcx, %r8
movq 0x78(%rdi), %rdi
addq $0x2, %rcx
movzbl (%rsi), %r9d
movzbl 0x1(%rsi), %r10d
movq 0x8(%rdi), %r11
movq (%r11,%r9,8), %r11
testq %r11, %r11
je 0x4e7f2
leaq (%r10,%r10,2), %r9
movl (%r11,%r9,4), %r9d
jmp 0x4e7f9
shll $0x8, %r9d
orq %r10, %r9
cmpq %r8, %rcx
ja 0x4e82a
cmpl $0xffff, %r9d # imm = 0xFFFF
ja 0x4e82a
rolw $0x8, %r9w
movw %r9w, -0x2(%rcx)
leaq 0x2(%rsi), %r9
cmpq %rdx, %r9
jae 0x4e82a
addq $0x4, %rsi
addq $0x2, %rcx
cmpq %rdx, %rsi
movq %r9, %rsi
jbe 0x4e7d2
popq %rbp
retq
| my_caseup_ucs2:
mov rax, rdx
cmp rdx, 2
jl short locret_4E82B
push rbp
mov rbp, rsp
lea rdx, [rsi+rax]
add r8, rcx
mov rdi, [rdi+78h]
add rcx, 2
loc_4E7D2:
movzx r9d, byte ptr [rsi]
movzx r10d, byte ptr [rsi+1]
mov r11, [rdi+8]
mov r11, [r11+r9*8]
test r11, r11
jz short loc_4E7F2
lea r9, [r10+r10*2]
mov r9d, [r11+r9*4]
jmp short loc_4E7F9
loc_4E7F2:
shl r9d, 8
or r9, r10
loc_4E7F9:
cmp rcx, r8
ja short loc_4E82A
cmp r9d, 0FFFFh
ja short loc_4E82A
rol r9w, 8
mov [rcx-2], r9w
lea r9, [rsi+2]
cmp r9, rdx
jnb short loc_4E82A
add rsi, 4
add rcx, 2
cmp rsi, rdx
mov rsi, r9
jbe short loc_4E7D2
loc_4E82A:
pop rbp
locret_4E82B:
retn
| long long my_caseup_ucs2(long long a1, unsigned __int8 *a2, long long a3, long long a4, long long a5)
{
long long result; // rax
unsigned long long v6; // rdx
unsigned long long v7; // r8
long long v8; // rdi
unsigned long long v9; // rcx
long long v10; // r9
long long v11; // r10
long long v12; // r11
unsigned int v13; // r9d
bool v14; // cc
result = a3;
if ( a3 >= 2 )
{
v6 = (unsigned long long)&a2[a3];
v7 = a4 + a5;
v8 = *(_QWORD *)(a1 + 120);
v9 = a4 + 2;
do
{
v10 = *a2;
v11 = a2[1];
v12 = *(_QWORD *)(*(_QWORD *)(v8 + 8) + 8 * v10);
if ( v12 )
v13 = *(_DWORD *)(v12 + 12 * v11);
else
v13 = v11 | ((_DWORD)v10 << 8);
if ( v9 > v7 )
break;
if ( v13 > 0xFFFF )
break;
*(_WORD *)(v9 - 2) = __ROL2__(v13, 8);
if ( (unsigned long long)(a2 + 2) >= v6 )
break;
v9 += 2LL;
v14 = (unsigned long long)(a2 + 4) <= v6;
a2 += 2;
}
while ( v14 );
}
return result;
}
| my_caseup_ucs2:
MOV RAX,RDX
CMP RDX,0x2
JL 0x0014e82b
PUSH RBP
MOV RBP,RSP
LEA RDX,[RSI + RAX*0x1]
ADD R8,RCX
MOV RDI,qword ptr [RDI + 0x78]
ADD RCX,0x2
LAB_0014e7d2:
MOVZX R9D,byte ptr [RSI]
MOVZX R10D,byte ptr [RSI + 0x1]
MOV R11,qword ptr [RDI + 0x8]
MOV R11,qword ptr [R11 + R9*0x8]
TEST R11,R11
JZ 0x0014e7f2
LEA R9,[R10 + R10*0x2]
MOV R9D,dword ptr [R11 + R9*0x4]
JMP 0x0014e7f9
LAB_0014e7f2:
SHL R9D,0x8
OR R9,R10
LAB_0014e7f9:
CMP RCX,R8
JA 0x0014e82a
CMP R9D,0xffff
JA 0x0014e82a
ROL R9W,0x8
MOV word ptr [RCX + -0x2],R9W
LEA R9,[RSI + 0x2]
CMP R9,RDX
JNC 0x0014e82a
ADD RSI,0x4
ADD RCX,0x2
CMP RSI,RDX
MOV RSI,R9
JBE 0x0014e7d2
LAB_0014e82a:
POP RBP
LAB_0014e82b:
RET
|
void my_caseup_ucs2(long param_1,byte *param_2,long param_3,long param_4,long param_5)
{
long lVar1;
long lVar2;
ulong uVar3;
byte *pbVar4;
byte *pbVar5;
uint uVar6;
if (1 < param_3) {
lVar1 = *(long *)(param_1 + 0x78);
uVar3 = param_4 + 2;
pbVar4 = param_2;
while( true ) {
lVar2 = *(long *)(*(long *)(lVar1 + 8) + (ulong)*pbVar4 * 8);
if (lVar2 == 0) {
uVar6 = (uint)CONCAT11(*pbVar4,pbVar4[1]);
}
else {
uVar6 = *(uint *)(lVar2 + (ulong)pbVar4[1] * 0xc);
}
if (((ulong)(param_5 + param_4) < uVar3) || (0xffff < uVar6)) break;
*(ushort *)(uVar3 - 2) = (ushort)uVar6 << 8 | (ushort)uVar6 >> 8;
if (param_2 + param_3 <= pbVar4 + 2) {
return;
}
pbVar5 = pbVar4 + 4;
uVar3 = uVar3 + 2;
pbVar4 = pbVar4 + 2;
if (param_2 + param_3 < pbVar5) {
return;
}
}
}
return;
}
| |
42,226 | test_flash_attn_ext::build_graph(ggml_context*) | monkey531[P]llama/tests/test-backend-ops.cpp | ggml_tensor * build_graph(ggml_context * ctx) override {
const int64_t hs_padded = GGML_PAD(hs, ggml_blck_size(type_KV));
auto const &create_permuted = [&](ggml_type type, int64_t ne0, int64_t ne1, int64_t ne2, int64_t ne3) -> ggml_tensor * {
int64_t ne[4] = {ne0, ne1, ne2, ne3};
int64_t ne_perm[4];
for (int i = 0; i < 4; ++i) {
ne_perm[permute[i]] = ne[i];
}
ggml_tensor * t = ggml_new_tensor_4d(ctx, type, ne_perm[0], ne_perm[1], ne_perm[2], ne_perm[3]);
if (permute != std::array<int32_t, 4>{0, 1, 2, 3}) {
t = ggml_permute(ctx, t, permute[0], permute[1], permute[2], permute[3]);
}
return t;
};
ggml_tensor * q = create_permuted(GGML_TYPE_F32, hs_padded, nb, nh, 1);
ggml_set_name(q, "q");
ggml_tensor * k = create_permuted(type_KV, hs_padded, kv, nh, 1);
ggml_set_name(k, "k");
ggml_tensor * v = create_permuted(type_KV, hs_padded, kv, nh, 1);
ggml_set_name(v, "v");
ggml_tensor * m = nullptr;
if (mask) {
m = ggml_new_tensor_4d(ctx, GGML_TYPE_F16, kv, GGML_PAD(nb, GGML_KQ_MASK_PAD), 1, 1);
ggml_set_name(m, "m");
}
ggml_tensor * out = ggml_flash_attn_ext(ctx, q, k, v, m, 1.0f/sqrtf(hs), max_bias, logit_softcap);
ggml_set_name(out, "out");
return out;
} | O1 | cpp | test_flash_attn_ext::build_graph(ggml_context*):
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x58, %rsp
movq %rsi, %rbx
movq %rdi, %r14
movq 0x38(%rdi), %r15
movl 0x64(%rdi), %edi
callq 0xd940
addq %rax, %r15
decq %r15
movl 0x64(%r14), %edi
callq 0xd940
movq %rax, %r13
negq %r13
andq %r15, %r13
movq 0x40(%r14), %rax
movq 0x50(%r14), %rcx
movq %r13, 0x20(%rsp)
movq %rcx, 0x28(%rsp)
movq %rax, 0x30(%rsp)
movq $0x1, 0x38(%rsp)
xorl %eax, %eax
movq 0x20(%rsp,%rax,8), %rcx
movslq 0x68(%r14,%rax,4), %rdx
movq %rcx, (%rsp,%rdx,8)
incq %rax
cmpq $0x4, %rax
jne 0x42532
movq (%rsp), %rdx
movq 0x8(%rsp), %rcx
movq 0x10(%rsp), %r8
movq 0x18(%rsp), %r9
movq %rbx, %rdi
xorl %esi, %esi
callq 0xdc00
movq %rax, %r15
movq %r14, %rdi
movq %rbx, %rsi
callq 0x1bc8c
movaps 0x2bc5(%rip), %xmm0 # 0x45140
movaps %xmm0, 0x40(%rsp)
movdqu 0x68(%r14), %xmm0
pcmpeqb 0x40(%rsp), %xmm0
pmovmskb %xmm0, %eax
cmpl $0xffff, %eax # imm = 0xFFFF
je 0x425b5
movl 0x68(%r14), %edx
movl 0x6c(%r14), %ecx
movl 0x70(%r14), %r8d
movl 0x74(%r14), %r9d
movq %rbx, %rdi
movq %r15, %rsi
callq 0xdb70
movq %rax, %r15
leaq 0x3b67(%rip), %rsi # 0x46123
movq %r15, %rdi
callq 0xdb10
movl 0x64(%r14), %esi
movq %r13, 0x20(%rsp)
movdqu 0x40(%r14), %xmm0
pshufd $0x4e, %xmm0, %xmm0 # xmm0 = xmm0[2,3,0,1]
movdqu %xmm0, 0x28(%rsp)
movq $0x1, 0x38(%rsp)
xorl %eax, %eax
movq 0x20(%rsp,%rax,8), %rcx
movslq 0x68(%r14,%rax,4), %rdx
movq %rcx, (%rsp,%rdx,8)
incq %rax
cmpq $0x4, %rax
jne 0x425e9
movq (%rsp), %rdx
movq 0x8(%rsp), %rcx
movq 0x10(%rsp), %r8
movq 0x18(%rsp), %r9
movq %rbx, %rdi
callq 0xdc00
movq %rax, %r12
movq %r14, %rdi
movq %rbx, %rsi
callq 0x1bc8c
movaps 0x2b10(%rip), %xmm0 # 0x45140
movaps %xmm0, 0x40(%rsp)
movdqu 0x68(%r14), %xmm0
pcmpeqb 0x40(%rsp), %xmm0
pmovmskb %xmm0, %eax
cmpl $0xffff, %eax # imm = 0xFFFF
je 0x4266a
movl 0x68(%r14), %edx
movl 0x6c(%r14), %ecx
movl 0x70(%r14), %r8d
movl 0x74(%r14), %r9d
movq %rbx, %rdi
movq %r12, %rsi
callq 0xdb70
movq %rax, %r12
leaq 0x3a84(%rip), %rsi # 0x460f5
movq %r12, %rdi
callq 0xdb10
movl 0x64(%r14), %esi
movq %r13, 0x20(%rsp)
movdqu 0x40(%r14), %xmm0
pshufd $0x4e, %xmm0, %xmm0 # xmm0 = xmm0[2,3,0,1]
movdqu %xmm0, 0x28(%rsp)
movq $0x1, 0x38(%rsp)
xorl %eax, %eax
movq 0x20(%rsp,%rax,8), %rcx
movslq 0x68(%r14,%rax,4), %rdx
movq %rcx, (%rsp,%rdx,8)
incq %rax
cmpq $0x4, %rax
jne 0x4269e
movq (%rsp), %rdx
movq 0x8(%rsp), %rcx
movq 0x10(%rsp), %r8
movq 0x18(%rsp), %r9
movq %rbx, %rdi
callq 0xdc00
movq %rax, %r13
movq %r14, %rdi
movq %rbx, %rsi
callq 0x1bc8c
movaps 0x2a5b(%rip), %xmm0 # 0x45140
movaps %xmm0, 0x40(%rsp)
movdqu 0x68(%r14), %xmm0
pcmpeqb 0x40(%rsp), %xmm0
pmovmskb %xmm0, %eax
cmpl $0xffff, %eax # imm = 0xFFFF
je 0x4271f
movl 0x68(%r14), %edx
movl 0x6c(%r14), %ecx
movl 0x70(%r14), %r8d
movl 0x74(%r14), %r9d
movq %rbx, %rdi
movq %r13, %rsi
callq 0xdb70
movq %rax, %r13
leaq 0x3afd(%rip), %rsi # 0x46223
movq %r13, %rdi
callq 0xdb10
cmpb $0x1, 0x58(%r14)
jne 0x4277d
movq 0x48(%r14), %rdx
movq 0x50(%r14), %rcx
addq $0x1f, %rcx
andq $-0x20, %rcx
movl $0x1, %r8d
movl $0x1, %r9d
movq %rbx, %rdi
movl $0x1, %esi
callq 0xdc00
movq %rax, %rbp
movq %r14, %rdi
movq %rbx, %rsi
callq 0x1bc8c
leaq 0x5533(%rip), %rsi # 0x47ca6
movq %rbp, %rdi
callq 0xdb10
jmp 0x4277f
xorl %ebp, %ebp
xorps %xmm0, %xmm0
cvtsi2ssq 0x38(%r14), %xmm0
xorps %xmm1, %xmm1
ucomiss %xmm1, %xmm0
jb 0x42796
sqrtss %xmm0, %xmm0
jmp 0x4279b
callq 0xdb60
movss 0x2861(%rip), %xmm3 # 0x45004
divss %xmm0, %xmm3
movss 0x5c(%r14), %xmm1
movss 0x60(%r14), %xmm2
movq %rbx, %rdi
movq %r15, %rsi
movq %r12, %rdx
movq %r13, %rcx
movq %rbp, %r8
movaps %xmm3, %xmm0
callq 0xd680
movq %rax, %rbx
leaq 0x3bc4(%rip), %rsi # 0x46398
movq %rax, %rdi
callq 0xdb10
movq %rbx, %rax
addq $0x58, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
| _ZN19test_flash_attn_ext11build_graphEP12ggml_context:
push rbp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 58h
mov rbx, rsi
mov r14, rdi
mov r15, [rdi+38h]
mov edi, [rdi+64h]
call _ggml_blck_size
add r15, rax
dec r15
mov edi, [r14+64h]
call _ggml_blck_size
mov r13, rax
neg r13
and r13, r15
mov rax, [r14+40h]
mov rcx, [r14+50h]
mov [rsp+88h+var_68], r13
mov qword ptr [rsp+88h+var_60], rcx
mov qword ptr [rsp+88h+var_60+8], rax
mov [rsp+88h+var_50], 1
xor eax, eax
loc_42532:
mov rcx, [rsp+rax*8+88h+var_68]
movsxd rdx, dword ptr [r14+rax*4+68h]
mov [rsp+rdx*8+88h+var_88], rcx
inc rax
cmp rax, 4
jnz short loc_42532
mov rdx, [rsp+88h+var_88]
mov rcx, [rsp+88h+var_80]
mov r8, [rsp+88h+var_78]
mov r9, [rsp+88h+var_70]
mov rdi, rbx
xor esi, esi
call _ggml_new_tensor_4d
mov r15, rax
mov rdi, r14
mov rsi, rbx
call _ZN9test_case12add_sentinelEP12ggml_context; test_case::add_sentinel(ggml_context *)
movaps xmm0, cs:xmmword_45140
movaps [rsp+88h+var_48], xmm0
movdqu xmm0, xmmword ptr [r14+68h]
pcmpeqb xmm0, [rsp+88h+var_48]
pmovmskb eax, xmm0
cmp eax, 0FFFFh
jz short loc_425B5
mov edx, [r14+68h]
mov ecx, [r14+6Ch]
mov r8d, [r14+70h]
mov r9d, [r14+74h]
mov rdi, rbx
mov rsi, r15
call _ggml_permute
mov r15, rax
loc_425B5:
lea rsi, aFreq+3; "q"
mov rdi, r15
call _ggml_set_name
mov esi, [r14+64h]
mov [rsp+88h+var_68], r13
movdqu xmm0, xmmword ptr [r14+40h]
pshufd xmm0, xmm0, 4Eh ; 'N'
movdqu [rsp+88h+var_60], xmm0
mov [rsp+88h+var_50], 1
xor eax, eax
loc_425E9:
mov rcx, [rsp+rax*8+88h+var_68]
movsxd rdx, dword ptr [r14+rax*4+68h]
mov [rsp+rdx*8+88h+var_88], rcx
inc rax
cmp rax, 4
jnz short loc_425E9
mov rdx, [rsp+88h+var_88]
mov rcx, [rsp+88h+var_80]
mov r8, [rsp+88h+var_78]
mov r9, [rsp+88h+var_70]
mov rdi, rbx
call _ggml_new_tensor_4d
mov r12, rax
mov rdi, r14
mov rsi, rbx
call _ZN9test_case12add_sentinelEP12ggml_context; test_case::add_sentinel(ggml_context *)
movaps xmm0, cs:xmmword_45140
movaps [rsp+88h+var_48], xmm0
movdqu xmm0, xmmword ptr [r14+68h]
pcmpeqb xmm0, [rsp+88h+var_48]
pmovmskb eax, xmm0
cmp eax, 0FFFFh
jz short loc_4266A
mov edx, [r14+68h]
mov ecx, [r14+6Ch]
mov r8d, [r14+70h]
mov r9d, [r14+74h]
mov rdi, rbx
mov rsi, r12
call _ggml_permute
mov r12, rax
loc_4266A:
lea rsi, aMask_0+3; "k"
mov rdi, r12
call _ggml_set_name
mov esi, [r14+64h]
mov [rsp+88h+var_68], r13
movdqu xmm0, xmmword ptr [r14+40h]
pshufd xmm0, xmm0, 4Eh ; 'N'
movdqu [rsp+88h+var_60], xmm0
mov [rsp+88h+var_50], 1
xor eax, eax
loc_4269E:
mov rcx, [rsp+rax*8+88h+var_68]
movsxd rdx, dword ptr [r14+rax*4+68h]
mov [rsp+rdx*8+88h+var_88], rcx
inc rax
cmp rax, 4
jnz short loc_4269E
mov rdx, [rsp+88h+var_88]
mov rcx, [rsp+88h+var_80]
mov r8, [rsp+88h+var_78]
mov r9, [rsp+88h+var_70]
mov rdi, rbx
call _ggml_new_tensor_4d
mov r13, rax
mov rdi, r14
mov rsi, rbx
call _ZN9test_case12add_sentinelEP12ggml_context; test_case::add_sentinel(ggml_context *)
movaps xmm0, cs:xmmword_45140
movaps [rsp+88h+var_48], xmm0
movdqu xmm0, xmmword ptr [r14+68h]
pcmpeqb xmm0, [rsp+88h+var_48]
pmovmskb eax, xmm0
cmp eax, 0FFFFh
jz short loc_4271F
mov edx, [r14+68h]
mov ecx, [r14+6Ch]
mov r8d, [r14+70h]
mov r9d, [r14+74h]
mov rdi, rbx
mov rsi, r13
call _ggml_permute
mov r13, rax
loc_4271F:
lea rsi, aGradV+5; "v"
mov rdi, r13
call _ggml_set_name
cmp byte ptr [r14+58h], 1
jnz short loc_4277D
mov rdx, [r14+48h]
mov rcx, [r14+50h]
add rcx, 1Fh
and rcx, 0FFFFFFFFFFFFFFE0h
mov r8d, 1
mov r9d, 1
mov rdi, rbx
mov esi, 1
call _ggml_new_tensor_4d
mov rbp, rax
mov rdi, r14
mov rsi, rbx
call _ZN9test_case12add_sentinelEP12ggml_context; test_case::add_sentinel(ggml_context *)
lea rsi, a33mwarningNoMo+96h; "m"
mov rdi, rbp
call _ggml_set_name
jmp short loc_4277F
loc_4277D:
xor ebp, ebp
loc_4277F:
xorps xmm0, xmm0
cvtsi2ss xmm0, qword ptr [r14+38h]
xorps xmm1, xmm1
ucomiss xmm0, xmm1
jb short loc_42796
sqrtss xmm0, xmm0
jmp short loc_4279B
loc_42796:
call _sqrtf
loc_4279B:
movss xmm3, cs:dword_45004
divss xmm3, xmm0
movss xmm1, dword ptr [r14+5Ch]
movss xmm2, dword ptr [r14+60h]
mov rdi, rbx
mov rsi, r15
mov rdx, r12
mov rcx, r13
mov r8, rbp
movaps xmm0, xmm3
call _ggml_flash_attn_ext
mov rbx, rax
lea rsi, aSumOfOut+7; "out"
mov rdi, rax
call _ggml_set_name
mov rax, rbx
add rsp, 58h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
| long long test_flash_attn_ext::build_graph(long long a1, long long a2)
{
long long v3; // r15
long long v4; // r15
long long v5; // r13
long long v6; // rax
long long v7; // rcx
long long i; // rax
long long v9; // r15
long long v10; // rsi
long long j; // rax
long long v12; // r12
long long v13; // rsi
long long k; // rax
long long v15; // r13
long long v16; // rbp
float v17; // xmm0_4
float v18; // xmm0_4
double v19; // xmm3_8
long long v20; // rbx
long long v22; // [rsp+0h] [rbp-88h]
long long v23; // [rsp+8h] [rbp-80h]
long long v24; // [rsp+10h] [rbp-78h]
long long v25; // [rsp+18h] [rbp-70h]
long long v26; // [rsp+20h] [rbp-68h]
__m128i v27; // [rsp+28h] [rbp-60h]
long long v28; // [rsp+38h] [rbp-50h]
__int128 v29; // [rsp+40h] [rbp-48h]
v3 = *(_QWORD *)(a1 + 56);
v4 = ggml_blck_size(*(unsigned int *)(a1 + 100)) + v3 - 1;
v5 = v4 & -ggml_blck_size(*(unsigned int *)(a1 + 100));
v6 = *(_QWORD *)(a1 + 64);
v7 = *(_QWORD *)(a1 + 80);
v26 = v5;
v27.m128i_i64[0] = v7;
v27.m128i_i64[1] = v6;
v28 = 1LL;
for ( i = 0LL; i != 4; ++i )
*(&v22 + *(int *)(a1 + 4 * i + 104)) = *(&v26 + i);
v9 = ggml_new_tensor_4d(a2, 0LL, v22, v23, v24, v25);
test_case::add_sentinel(a1, a2);
v29 = xmmword_45140;
if ( _mm_movemask_epi8(_mm_cmpeq_epi8(_mm_loadu_si128((const __m128i *)(a1 + 104)), (__m128i)xmmword_45140)) != 0xFFFF )
v9 = ggml_permute(
a2,
v9,
*(unsigned int *)(a1 + 104),
*(unsigned int *)(a1 + 108),
*(unsigned int *)(a1 + 112),
*(unsigned int *)(a1 + 116));
ggml_set_name(v9, "q");
v10 = *(unsigned int *)(a1 + 100);
v26 = v5;
v27 = _mm_shuffle_epi32(_mm_loadu_si128((const __m128i *)(a1 + 64)), 78);
v28 = 1LL;
for ( j = 0LL; j != 4; ++j )
*(&v22 + *(int *)(a1 + 4 * j + 104)) = *(&v26 + j);
v12 = ggml_new_tensor_4d(a2, v10, v22, v23, v24, v25);
test_case::add_sentinel(a1, a2);
v29 = xmmword_45140;
if ( _mm_movemask_epi8(_mm_cmpeq_epi8(_mm_loadu_si128((const __m128i *)(a1 + 104)), (__m128i)xmmword_45140)) != 0xFFFF )
v12 = ggml_permute(
a2,
v12,
*(unsigned int *)(a1 + 104),
*(unsigned int *)(a1 + 108),
*(unsigned int *)(a1 + 112),
*(unsigned int *)(a1 + 116));
ggml_set_name(v12, "k");
v13 = *(unsigned int *)(a1 + 100);
v26 = v5;
v27 = _mm_shuffle_epi32(_mm_loadu_si128((const __m128i *)(a1 + 64)), 78);
v28 = 1LL;
for ( k = 0LL; k != 4; ++k )
*(&v22 + *(int *)(a1 + 4 * k + 104)) = *(&v26 + k);
v15 = ggml_new_tensor_4d(a2, v13, v22, v23, v24, v25);
test_case::add_sentinel(a1, a2);
v29 = xmmword_45140;
if ( _mm_movemask_epi8(_mm_cmpeq_epi8(_mm_loadu_si128((const __m128i *)(a1 + 104)), (__m128i)xmmword_45140)) != 0xFFFF )
v15 = ggml_permute(
a2,
v15,
*(unsigned int *)(a1 + 104),
*(unsigned int *)(a1 + 108),
*(unsigned int *)(a1 + 112),
*(unsigned int *)(a1 + 116));
ggml_set_name(v15, "v");
if ( *(_BYTE *)(a1 + 88) == 1 )
{
v16 = ggml_new_tensor_4d(
a2,
1LL,
*(_QWORD *)(a1 + 72),
(*(_QWORD *)(a1 + 80) + 31LL) & 0xFFFFFFFFFFFFFFE0LL,
1LL,
1LL);
test_case::add_sentinel(a1, a2);
ggml_set_name(v16, "m");
}
else
{
v16 = 0LL;
}
v17 = (float)(int)*(_QWORD *)(a1 + 56);
if ( v17 < 0.0 )
v18 = sqrtf();
else
v18 = fsqrt(v17);
HIDWORD(v19) = 0;
*(float *)&v19 = 1.0 / v18;
v20 = ggml_flash_attn_ext(a2, v9, v12, v15, v16, v19, *(float *)(a1 + 92), *(float *)(a1 + 96));
ggml_set_name(v20, "out");
return v20;
}
| build_graph:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x58
MOV RBX,RSI
MOV R14,RDI
MOV R15,qword ptr [RDI + 0x38]
MOV EDI,dword ptr [RDI + 0x64]
CALL 0x0010d940
ADD R15,RAX
DEC R15
MOV EDI,dword ptr [R14 + 0x64]
CALL 0x0010d940
MOV R13,RAX
NEG R13
AND R13,R15
MOV RAX,qword ptr [R14 + 0x40]
MOV RCX,qword ptr [R14 + 0x50]
MOV qword ptr [RSP + 0x20],R13
MOV qword ptr [RSP + 0x28],RCX
MOV qword ptr [RSP + 0x30],RAX
MOV qword ptr [RSP + 0x38],0x1
XOR EAX,EAX
LAB_00142532:
MOV RCX,qword ptr [RSP + RAX*0x8 + 0x20]
MOVSXD RDX,dword ptr [R14 + RAX*0x4 + 0x68]
MOV qword ptr [RSP + RDX*0x8],RCX
INC RAX
CMP RAX,0x4
JNZ 0x00142532
MOV RDX,qword ptr [RSP]
MOV RCX,qword ptr [RSP + 0x8]
MOV R8,qword ptr [RSP + 0x10]
MOV R9,qword ptr [RSP + 0x18]
MOV RDI,RBX
XOR ESI,ESI
CALL 0x0010dc00
MOV R15,RAX
MOV RDI,R14
MOV RSI,RBX
CALL 0x0011bc8c
MOVAPS XMM0,xmmword ptr [0x00145140]
MOVAPS xmmword ptr [RSP + 0x40],XMM0
MOVDQU XMM0,xmmword ptr [R14 + 0x68]
PCMPEQB XMM0,xmmword ptr [RSP + 0x40]
PMOVMSKB EAX,XMM0
CMP EAX,0xffff
JZ 0x001425b5
MOV EDX,dword ptr [R14 + 0x68]
MOV ECX,dword ptr [R14 + 0x6c]
MOV R8D,dword ptr [R14 + 0x70]
MOV R9D,dword ptr [R14 + 0x74]
MOV RDI,RBX
MOV RSI,R15
CALL 0x0010db70
MOV R15,RAX
LAB_001425b5:
LEA RSI,[0x146123]
MOV RDI,R15
CALL 0x0010db10
MOV ESI,dword ptr [R14 + 0x64]
MOV qword ptr [RSP + 0x20],R13
MOVDQU XMM0,xmmword ptr [R14 + 0x40]
PSHUFD XMM0,XMM0,0x4e
MOVDQU xmmword ptr [RSP + 0x28],XMM0
MOV qword ptr [RSP + 0x38],0x1
XOR EAX,EAX
LAB_001425e9:
MOV RCX,qword ptr [RSP + RAX*0x8 + 0x20]
MOVSXD RDX,dword ptr [R14 + RAX*0x4 + 0x68]
MOV qword ptr [RSP + RDX*0x8],RCX
INC RAX
CMP RAX,0x4
JNZ 0x001425e9
MOV RDX,qword ptr [RSP]
MOV RCX,qword ptr [RSP + 0x8]
MOV R8,qword ptr [RSP + 0x10]
MOV R9,qword ptr [RSP + 0x18]
MOV RDI,RBX
CALL 0x0010dc00
MOV R12,RAX
MOV RDI,R14
MOV RSI,RBX
CALL 0x0011bc8c
MOVAPS XMM0,xmmword ptr [0x00145140]
MOVAPS xmmword ptr [RSP + 0x40],XMM0
MOVDQU XMM0,xmmword ptr [R14 + 0x68]
PCMPEQB XMM0,xmmword ptr [RSP + 0x40]
PMOVMSKB EAX,XMM0
CMP EAX,0xffff
JZ 0x0014266a
MOV EDX,dword ptr [R14 + 0x68]
MOV ECX,dword ptr [R14 + 0x6c]
MOV R8D,dword ptr [R14 + 0x70]
MOV R9D,dword ptr [R14 + 0x74]
MOV RDI,RBX
MOV RSI,R12
CALL 0x0010db70
MOV R12,RAX
LAB_0014266a:
LEA RSI,[0x1460f5]
MOV RDI,R12
CALL 0x0010db10
MOV ESI,dword ptr [R14 + 0x64]
MOV qword ptr [RSP + 0x20],R13
MOVDQU XMM0,xmmword ptr [R14 + 0x40]
PSHUFD XMM0,XMM0,0x4e
MOVDQU xmmword ptr [RSP + 0x28],XMM0
MOV qword ptr [RSP + 0x38],0x1
XOR EAX,EAX
LAB_0014269e:
MOV RCX,qword ptr [RSP + RAX*0x8 + 0x20]
MOVSXD RDX,dword ptr [R14 + RAX*0x4 + 0x68]
MOV qword ptr [RSP + RDX*0x8],RCX
INC RAX
CMP RAX,0x4
JNZ 0x0014269e
MOV RDX,qword ptr [RSP]
MOV RCX,qword ptr [RSP + 0x8]
MOV R8,qword ptr [RSP + 0x10]
MOV R9,qword ptr [RSP + 0x18]
MOV RDI,RBX
CALL 0x0010dc00
MOV R13,RAX
MOV RDI,R14
MOV RSI,RBX
CALL 0x0011bc8c
MOVAPS XMM0,xmmword ptr [0x00145140]
MOVAPS xmmword ptr [RSP + 0x40],XMM0
MOVDQU XMM0,xmmword ptr [R14 + 0x68]
PCMPEQB XMM0,xmmword ptr [RSP + 0x40]
PMOVMSKB EAX,XMM0
CMP EAX,0xffff
JZ 0x0014271f
MOV EDX,dword ptr [R14 + 0x68]
MOV ECX,dword ptr [R14 + 0x6c]
MOV R8D,dword ptr [R14 + 0x70]
MOV R9D,dword ptr [R14 + 0x74]
MOV RDI,RBX
MOV RSI,R13
CALL 0x0010db70
MOV R13,RAX
LAB_0014271f:
LEA RSI,[0x146223]
MOV RDI,R13
CALL 0x0010db10
CMP byte ptr [R14 + 0x58],0x1
JNZ 0x0014277d
MOV RDX,qword ptr [R14 + 0x48]
MOV RCX,qword ptr [R14 + 0x50]
ADD RCX,0x1f
AND RCX,-0x20
MOV R8D,0x1
MOV R9D,0x1
MOV RDI,RBX
MOV ESI,0x1
CALL 0x0010dc00
MOV RBP,RAX
MOV RDI,R14
MOV RSI,RBX
CALL 0x0011bc8c
LEA RSI,[0x147ca6]
MOV RDI,RBP
CALL 0x0010db10
JMP 0x0014277f
LAB_0014277d:
XOR EBP,EBP
LAB_0014277f:
XORPS XMM0,XMM0
CVTSI2SS XMM0,qword ptr [R14 + 0x38]
XORPS XMM1,XMM1
UCOMISS XMM0,XMM1
JC 0x00142796
SQRTSS XMM0,XMM0
JMP 0x0014279b
LAB_00142796:
CALL 0x0010db60
LAB_0014279b:
MOVSS XMM3,dword ptr [0x00145004]
DIVSS XMM3,XMM0
MOVSS XMM1,dword ptr [R14 + 0x5c]
MOVSS XMM2,dword ptr [R14 + 0x60]
MOV RDI,RBX
MOV RSI,R15
MOV RDX,R12
MOV RCX,R13
MOV R8,RBP
MOVAPS XMM0,XMM3
CALL 0x0010d680
MOV RBX,RAX
LEA RSI,[0x146398]
MOV RDI,RAX
CALL 0x0010db10
MOV RAX,RBX
ADD RSP,0x58
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
|
/* WARNING: Globals starting with '_' overlap smaller symbols at the same address */
/* test_flash_attn_ext::build_graph(ggml_context*) */
int8 __thiscall
test_flash_attn_ext::build_graph(test_flash_attn_ext *this,ggml_context *param_1)
{
int4 uVar1;
int8 uVar2;
long lVar3;
long lVar4;
long lVar5;
int8 uVar6;
int8 uVar7;
int8 uVar8;
int8 uVar9;
ulong uVar10;
int1 auVar11 [16];
int1 auVar12 [16];
int1 auVar13 [16];
int8 local_88 [4];
ulong local_68;
int1 local_60 [16];
int8 local_50;
int8 local_48;
int8 uStack_40;
lVar5 = *(long *)(this + 0x38);
lVar3 = ggml_blck_size(*(int4 *)(this + 100));
lVar4 = ggml_blck_size(*(int4 *)(this + 100));
uVar10 = -lVar4 & (lVar5 + lVar3) - 1U;
local_68 = uVar10;
local_60._8_8_ = *(int8 *)(this + 0x40);
local_60._0_8_ = *(int8 *)(this + 0x50);
local_50 = 1;
lVar5 = 0;
do {
local_88[*(int *)(this + lVar5 * 4 + 0x68)] = *(int8 *)(local_60 + lVar5 * 8 + -8);
lVar5 = lVar5 + 1;
} while (lVar5 != 4);
uVar6 = ggml_new_tensor_4d(param_1,0,local_88[0],local_88[1],local_88[2],local_88[3]);
test_case::add_sentinel((test_case *)this,param_1);
local_48 = _DAT_00145140;
uVar9 = local_48;
uStack_40 = _UNK_00145148;
uVar2 = uStack_40;
local_48._0_1_ = SUB81(_DAT_00145140,0);
local_48._1_1_ = SUB81((ulong)_DAT_00145140 >> 8,0);
local_48._2_1_ = SUB81((ulong)_DAT_00145140 >> 0x10,0);
local_48._3_1_ = SUB81((ulong)_DAT_00145140 >> 0x18,0);
local_48._4_1_ = SUB81((ulong)_DAT_00145140 >> 0x20,0);
local_48._5_1_ = SUB81((ulong)_DAT_00145140 >> 0x28,0);
local_48._6_1_ = SUB81((ulong)_DAT_00145140 >> 0x30,0);
local_48._7_1_ = SUB81((ulong)_DAT_00145140 >> 0x38,0);
uStack_40._0_1_ = SUB81(_UNK_00145148,0);
uStack_40._1_1_ = SUB81((ulong)_UNK_00145148 >> 8,0);
uStack_40._2_1_ = SUB81((ulong)_UNK_00145148 >> 0x10,0);
uStack_40._3_1_ = SUB81((ulong)_UNK_00145148 >> 0x18,0);
uStack_40._4_1_ = SUB81((ulong)_UNK_00145148 >> 0x20,0);
uStack_40._5_1_ = SUB81((ulong)_UNK_00145148 >> 0x28,0);
uStack_40._6_1_ = SUB81((ulong)_UNK_00145148 >> 0x30,0);
uStack_40._7_1_ = SUB81((ulong)_UNK_00145148 >> 0x38,0);
auVar11[0] = -(this[0x68] == local_48._0_1_);
auVar11[1] = -(this[0x69] == local_48._1_1_);
auVar11[2] = -(this[0x6a] == local_48._2_1_);
auVar11[3] = -(this[0x6b] == local_48._3_1_);
auVar11[4] = -(this[0x6c] == local_48._4_1_);
auVar11[5] = -(this[0x6d] == local_48._5_1_);
auVar11[6] = -(this[0x6e] == local_48._6_1_);
auVar11[7] = -(this[0x6f] == local_48._7_1_);
auVar11[8] = -(this[0x70] == uStack_40._0_1_);
auVar11[9] = -(this[0x71] == uStack_40._1_1_);
auVar11[10] = -(this[0x72] == uStack_40._2_1_);
auVar11[0xb] = -(this[0x73] == uStack_40._3_1_);
auVar11[0xc] = -(this[0x74] == uStack_40._4_1_);
auVar11[0xd] = -(this[0x75] == uStack_40._5_1_);
auVar11[0xe] = -(this[0x76] == uStack_40._6_1_);
auVar11[0xf] = -(this[0x77] == uStack_40._7_1_);
local_48 = uVar9;
uStack_40 = uVar2;
if ((ushort)((ushort)(SUB161(auVar11 >> 7,0) & 1) | (ushort)(SUB161(auVar11 >> 0xf,0) & 1) << 1 |
(ushort)(SUB161(auVar11 >> 0x17,0) & 1) << 2 |
(ushort)(SUB161(auVar11 >> 0x1f,0) & 1) << 3 |
(ushort)(SUB161(auVar11 >> 0x27,0) & 1) << 4 |
(ushort)(SUB161(auVar11 >> 0x2f,0) & 1) << 5 |
(ushort)(SUB161(auVar11 >> 0x37,0) & 1) << 6 |
(ushort)(SUB161(auVar11 >> 0x3f,0) & 1) << 7 |
(ushort)(SUB161(auVar11 >> 0x47,0) & 1) << 8 |
(ushort)(SUB161(auVar11 >> 0x4f,0) & 1) << 9 |
(ushort)(SUB161(auVar11 >> 0x57,0) & 1) << 10 |
(ushort)(SUB161(auVar11 >> 0x5f,0) & 1) << 0xb |
(ushort)(SUB161(auVar11 >> 0x67,0) & 1) << 0xc |
(ushort)(SUB161(auVar11 >> 0x6f,0) & 1) << 0xd |
(ushort)(SUB161(auVar11 >> 0x77,0) & 1) << 0xe | (ushort)(auVar11[0xf] >> 7) << 0xf)
!= 0xffff) {
uVar6 = ggml_permute(param_1,uVar6,*(int4 *)(this + 0x68),*(int4 *)(this + 0x6c),
*(int4 *)(this + 0x70),*(int4 *)(this + 0x74));
}
ggml_set_name(uVar6,&DAT_00146123);
uVar1 = *(int4 *)(this + 100);
local_68 = uVar10;
auVar11 = *(int1 (*) [16])(this + 0x40);
local_60._0_8_ = auVar11._8_8_;
local_60._8_4_ = auVar11._0_4_;
local_60._12_4_ = auVar11._4_4_;
local_50 = 1;
lVar5 = 0;
do {
local_88[*(int *)(this + lVar5 * 4 + 0x68)] = *(int8 *)(local_60 + lVar5 * 8 + -8);
lVar5 = lVar5 + 1;
} while (lVar5 != 4);
uVar7 = ggml_new_tensor_4d(param_1,uVar1,local_88[0],local_88[1],local_88[2],local_88[3]);
test_case::add_sentinel((test_case *)this,param_1);
local_48 = _DAT_00145140;
uVar9 = local_48;
uStack_40 = _UNK_00145148;
uVar2 = uStack_40;
local_48._0_1_ = SUB81(_DAT_00145140,0);
local_48._1_1_ = SUB81((ulong)_DAT_00145140 >> 8,0);
local_48._2_1_ = SUB81((ulong)_DAT_00145140 >> 0x10,0);
local_48._3_1_ = SUB81((ulong)_DAT_00145140 >> 0x18,0);
local_48._4_1_ = SUB81((ulong)_DAT_00145140 >> 0x20,0);
local_48._5_1_ = SUB81((ulong)_DAT_00145140 >> 0x28,0);
local_48._6_1_ = SUB81((ulong)_DAT_00145140 >> 0x30,0);
local_48._7_1_ = SUB81((ulong)_DAT_00145140 >> 0x38,0);
uStack_40._0_1_ = SUB81(_UNK_00145148,0);
uStack_40._1_1_ = SUB81((ulong)_UNK_00145148 >> 8,0);
uStack_40._2_1_ = SUB81((ulong)_UNK_00145148 >> 0x10,0);
uStack_40._3_1_ = SUB81((ulong)_UNK_00145148 >> 0x18,0);
uStack_40._4_1_ = SUB81((ulong)_UNK_00145148 >> 0x20,0);
uStack_40._5_1_ = SUB81((ulong)_UNK_00145148 >> 0x28,0);
uStack_40._6_1_ = SUB81((ulong)_UNK_00145148 >> 0x30,0);
uStack_40._7_1_ = SUB81((ulong)_UNK_00145148 >> 0x38,0);
auVar12[0] = -(this[0x68] == local_48._0_1_);
auVar12[1] = -(this[0x69] == local_48._1_1_);
auVar12[2] = -(this[0x6a] == local_48._2_1_);
auVar12[3] = -(this[0x6b] == local_48._3_1_);
auVar12[4] = -(this[0x6c] == local_48._4_1_);
auVar12[5] = -(this[0x6d] == local_48._5_1_);
auVar12[6] = -(this[0x6e] == local_48._6_1_);
auVar12[7] = -(this[0x6f] == local_48._7_1_);
auVar12[8] = -(this[0x70] == uStack_40._0_1_);
auVar12[9] = -(this[0x71] == uStack_40._1_1_);
auVar12[10] = -(this[0x72] == uStack_40._2_1_);
auVar12[0xb] = -(this[0x73] == uStack_40._3_1_);
auVar12[0xc] = -(this[0x74] == uStack_40._4_1_);
auVar12[0xd] = -(this[0x75] == uStack_40._5_1_);
auVar12[0xe] = -(this[0x76] == uStack_40._6_1_);
auVar12[0xf] = -(this[0x77] == uStack_40._7_1_);
local_48 = uVar9;
uStack_40 = uVar2;
if ((ushort)((ushort)(SUB161(auVar12 >> 7,0) & 1) | (ushort)(SUB161(auVar12 >> 0xf,0) & 1) << 1 |
(ushort)(SUB161(auVar12 >> 0x17,0) & 1) << 2 |
(ushort)(SUB161(auVar12 >> 0x1f,0) & 1) << 3 |
(ushort)(SUB161(auVar12 >> 0x27,0) & 1) << 4 |
(ushort)(SUB161(auVar12 >> 0x2f,0) & 1) << 5 |
(ushort)(SUB161(auVar12 >> 0x37,0) & 1) << 6 |
(ushort)(SUB161(auVar12 >> 0x3f,0) & 1) << 7 |
(ushort)(SUB161(auVar12 >> 0x47,0) & 1) << 8 |
(ushort)(SUB161(auVar12 >> 0x4f,0) & 1) << 9 |
(ushort)(SUB161(auVar12 >> 0x57,0) & 1) << 10 |
(ushort)(SUB161(auVar12 >> 0x5f,0) & 1) << 0xb |
(ushort)(SUB161(auVar12 >> 0x67,0) & 1) << 0xc |
(ushort)(SUB161(auVar12 >> 0x6f,0) & 1) << 0xd |
(ushort)(SUB161(auVar12 >> 0x77,0) & 1) << 0xe | (ushort)(auVar12[0xf] >> 7) << 0xf)
!= 0xffff) {
uVar7 = ggml_permute(param_1,uVar7,*(int4 *)(this + 0x68),*(int4 *)(this + 0x6c),
*(int4 *)(this + 0x70),*(int4 *)(this + 0x74));
}
ggml_set_name(uVar7,&DAT_001460f5);
uVar1 = *(int4 *)(this + 100);
local_68 = uVar10;
auVar11 = *(int1 (*) [16])(this + 0x40);
local_60._0_8_ = auVar11._8_8_;
local_60._8_4_ = auVar11._0_4_;
local_60._12_4_ = auVar11._4_4_;
local_50 = 1;
lVar5 = 0;
do {
local_88[*(int *)(this + lVar5 * 4 + 0x68)] = *(int8 *)(local_60 + lVar5 * 8 + -8);
lVar5 = lVar5 + 1;
} while (lVar5 != 4);
uVar8 = ggml_new_tensor_4d(param_1,uVar1,local_88[0],local_88[1],local_88[2],local_88[3]);
test_case::add_sentinel((test_case *)this,param_1);
local_48 = _DAT_00145140;
uVar9 = local_48;
uStack_40 = _UNK_00145148;
uVar2 = uStack_40;
local_48._0_1_ = SUB81(_DAT_00145140,0);
local_48._1_1_ = SUB81((ulong)_DAT_00145140 >> 8,0);
local_48._2_1_ = SUB81((ulong)_DAT_00145140 >> 0x10,0);
local_48._3_1_ = SUB81((ulong)_DAT_00145140 >> 0x18,0);
local_48._4_1_ = SUB81((ulong)_DAT_00145140 >> 0x20,0);
local_48._5_1_ = SUB81((ulong)_DAT_00145140 >> 0x28,0);
local_48._6_1_ = SUB81((ulong)_DAT_00145140 >> 0x30,0);
local_48._7_1_ = SUB81((ulong)_DAT_00145140 >> 0x38,0);
uStack_40._0_1_ = SUB81(_UNK_00145148,0);
uStack_40._1_1_ = SUB81((ulong)_UNK_00145148 >> 8,0);
uStack_40._2_1_ = SUB81((ulong)_UNK_00145148 >> 0x10,0);
uStack_40._3_1_ = SUB81((ulong)_UNK_00145148 >> 0x18,0);
uStack_40._4_1_ = SUB81((ulong)_UNK_00145148 >> 0x20,0);
uStack_40._5_1_ = SUB81((ulong)_UNK_00145148 >> 0x28,0);
uStack_40._6_1_ = SUB81((ulong)_UNK_00145148 >> 0x30,0);
uStack_40._7_1_ = SUB81((ulong)_UNK_00145148 >> 0x38,0);
auVar13[0] = -(this[0x68] == local_48._0_1_);
auVar13[1] = -(this[0x69] == local_48._1_1_);
auVar13[2] = -(this[0x6a] == local_48._2_1_);
auVar13[3] = -(this[0x6b] == local_48._3_1_);
auVar13[4] = -(this[0x6c] == local_48._4_1_);
auVar13[5] = -(this[0x6d] == local_48._5_1_);
auVar13[6] = -(this[0x6e] == local_48._6_1_);
auVar13[7] = -(this[0x6f] == local_48._7_1_);
auVar13[8] = -(this[0x70] == uStack_40._0_1_);
auVar13[9] = -(this[0x71] == uStack_40._1_1_);
auVar13[10] = -(this[0x72] == uStack_40._2_1_);
auVar13[0xb] = -(this[0x73] == uStack_40._3_1_);
auVar13[0xc] = -(this[0x74] == uStack_40._4_1_);
auVar13[0xd] = -(this[0x75] == uStack_40._5_1_);
auVar13[0xe] = -(this[0x76] == uStack_40._6_1_);
auVar13[0xf] = -(this[0x77] == uStack_40._7_1_);
local_48 = uVar9;
uStack_40 = uVar2;
if ((ushort)((ushort)(SUB161(auVar13 >> 7,0) & 1) | (ushort)(SUB161(auVar13 >> 0xf,0) & 1) << 1 |
(ushort)(SUB161(auVar13 >> 0x17,0) & 1) << 2 |
(ushort)(SUB161(auVar13 >> 0x1f,0) & 1) << 3 |
(ushort)(SUB161(auVar13 >> 0x27,0) & 1) << 4 |
(ushort)(SUB161(auVar13 >> 0x2f,0) & 1) << 5 |
(ushort)(SUB161(auVar13 >> 0x37,0) & 1) << 6 |
(ushort)(SUB161(auVar13 >> 0x3f,0) & 1) << 7 |
(ushort)(SUB161(auVar13 >> 0x47,0) & 1) << 8 |
(ushort)(SUB161(auVar13 >> 0x4f,0) & 1) << 9 |
(ushort)(SUB161(auVar13 >> 0x57,0) & 1) << 10 |
(ushort)(SUB161(auVar13 >> 0x5f,0) & 1) << 0xb |
(ushort)(SUB161(auVar13 >> 0x67,0) & 1) << 0xc |
(ushort)(SUB161(auVar13 >> 0x6f,0) & 1) << 0xd |
(ushort)(SUB161(auVar13 >> 0x77,0) & 1) << 0xe | (ushort)(auVar13[0xf] >> 7) << 0xf)
!= 0xffff) {
uVar8 = ggml_permute(param_1,uVar8,*(int4 *)(this + 0x68),*(int4 *)(this + 0x6c),
*(int4 *)(this + 0x70),*(int4 *)(this + 0x74));
}
ggml_set_name(uVar8,&DAT_00146223);
if (this[0x58] == (test_flash_attn_ext)0x1) {
uVar9 = ggml_new_tensor_4d(param_1,1,*(int8 *)(this + 0x48),
*(long *)(this + 0x50) + 0x1fU & 0xffffffffffffffe0,1,1);
test_case::add_sentinel((test_case *)this,param_1);
ggml_set_name(uVar9,&DAT_00147ca6);
}
else {
uVar9 = 0;
}
if ((float)*(long *)(this + 0x38) < 0.0) {
sqrtf((float)*(long *)(this + 0x38));
}
uVar9 = ggml_flash_attn_ext(param_1,uVar6,uVar7,uVar8,uVar9);
ggml_set_name(uVar9,"out");
return uVar9;
}
| |
42,227 | test_flash_attn_ext::build_graph(ggml_context*) | monkey531[P]llama/tests/test-backend-ops.cpp | ggml_tensor * build_graph(ggml_context * ctx) override {
const int64_t hs_padded = GGML_PAD(hs, ggml_blck_size(type_KV));
auto const &create_permuted = [&](ggml_type type, int64_t ne0, int64_t ne1, int64_t ne2, int64_t ne3) -> ggml_tensor * {
int64_t ne[4] = {ne0, ne1, ne2, ne3};
int64_t ne_perm[4];
for (int i = 0; i < 4; ++i) {
ne_perm[permute[i]] = ne[i];
}
ggml_tensor * t = ggml_new_tensor_4d(ctx, type, ne_perm[0], ne_perm[1], ne_perm[2], ne_perm[3]);
if (permute != std::array<int32_t, 4>{0, 1, 2, 3}) {
t = ggml_permute(ctx, t, permute[0], permute[1], permute[2], permute[3]);
}
return t;
};
ggml_tensor * q = create_permuted(GGML_TYPE_F32, hs_padded, nb, nh, 1);
ggml_set_name(q, "q");
ggml_tensor * k = create_permuted(type_KV, hs_padded, kv, nh, 1);
ggml_set_name(k, "k");
ggml_tensor * v = create_permuted(type_KV, hs_padded, kv, nh, 1);
ggml_set_name(v, "v");
ggml_tensor * m = nullptr;
if (mask) {
m = ggml_new_tensor_4d(ctx, GGML_TYPE_F16, kv, GGML_PAD(nb, GGML_KQ_MASK_PAD), 1, 1);
ggml_set_name(m, "m");
}
ggml_tensor * out = ggml_flash_attn_ext(ctx, q, k, v, m, 1.0f/sqrtf(hs), max_bias, logit_softcap);
ggml_set_name(out, "out");
return out;
} | O2 | cpp | test_flash_attn_ext::build_graph(ggml_context*):
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %rdi, %rbx
leaq 0x8(%rsp), %r14
movq %rsi, (%r14)
movq 0x38(%rdi), %r15
movl 0x64(%rdi), %edi
callq 0xf970
leaq (%r15,%rax), %r13
decq %r13
movl 0x64(%rbx), %edi
callq 0xf970
negq %rax
andq %rax, %r13
leaq 0x18(%rsp), %rbp
movq %rbx, (%rbp)
movq %r14, 0x8(%rbp)
movq 0x40(%rbx), %r8
movq 0x50(%rbx), %rcx
xorl %r15d, %r15d
pushq $0x1
popq %r14
movq %rbp, %rdi
xorl %esi, %esi
movq %r13, %rdx
movq %r14, %r9
callq 0x2df1c
leaq 0x32e0(%rip), %rsi # 0x310bd
movq %rax, 0x10(%rsp)
movq %rax, %rdi
callq 0xfb40
movl 0x64(%rbx), %esi
movq 0x40(%rbx), %r8
movq 0x48(%rbx), %rcx
movq %rbp, %rdi
movq %r13, %rdx
movq %r14, %r9
callq 0x2df1c
movq %rax, %r12
leaq 0x3282(%rip), %rsi # 0x3108f
movq %rax, %rdi
callq 0xfb40
movl 0x64(%rbx), %esi
movq 0x40(%rbx), %r8
movq 0x48(%rbx), %rcx
movq %rbp, %rdi
movq %r13, %rdx
movq %r14, %r9
callq 0x2df1c
movq %rax, %r13
leaq 0x3385(%rip), %rsi # 0x311bd
movq %rax, %rdi
callq 0xfb40
cmpb $0x1, 0x58(%rbx)
jne 0x2de84
movq 0x8(%rsp), %rsi
movq 0x48(%rbx), %rcx
movq 0x50(%rbx), %r8
addq $0x1f, %r8
andq $-0x20, %r8
movq $0x1, (%rsp)
pushq $0x1
popq %rdx
pushq $0x1
popq %r9
movq %rbx, %rdi
callq 0x20c6c
movq %rax, %r15
leaq 0x4dba(%rip), %rsi # 0x32c36
movq %rax, %rdi
callq 0xfb40
cvtsi2ssq 0x38(%rbx), %xmm0
movq 0x8(%rsp), %r14
xorps %xmm1, %xmm1
ucomiss %xmm1, %xmm0
jb 0x2de9d
sqrtss %xmm0, %xmm0
jmp 0x2dea2
callq 0xfb90
movss 0x215a(%rip), %xmm3 # 0x30004
divss %xmm0, %xmm3
movss 0x5c(%rbx), %xmm1
movss 0x60(%rbx), %xmm2
movq %r14, %rdi
movq 0x10(%rsp), %rsi
movq %r12, %rdx
movq %r13, %rcx
movq %r15, %r8
movaps %xmm3, %xmm0
callq 0xf6a0
movq %rax, %rbx
leaq 0x3457(%rip), %rsi # 0x31332
movq %rax, %rdi
callq 0xfb40
movq %rbx, %rax
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
nop
| _ZN19test_flash_attn_ext11build_graphEP12ggml_context:
push rbp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 28h
mov rbx, rdi
lea r14, [rsp+58h+var_50]
mov [r14], rsi
mov r15, [rdi+38h]
mov edi, [rdi+64h]
call _ggml_blck_size
lea r13, [r15+rax]
dec r13
mov edi, [rbx+64h]
call _ggml_blck_size
neg rax
and r13, rax
lea rbp, [rsp+58h+var_40]
mov [rbp+0], rbx
mov [rbp+8], r14
mov r8, [rbx+40h]
mov rcx, [rbx+50h]
xor r15d, r15d
push 1
pop r14
mov rdi, rbp
xor esi, esi
mov rdx, r13
mov r9, r14
call _ZZN19test_flash_attn_ext11build_graphEP12ggml_contextENKUl9ggml_typellllE_clES2_llll; test_flash_attn_ext::build_graph(ggml_context *)::{lambda(ggml_type,long,long,long,long)#1}::operator()(ggml_type,long,long,long,long)
lea rsi, aFreq+3; "q"
mov [rsp+58h+var_48], rax
mov rdi, rax
call _ggml_set_name
mov esi, [rbx+64h]
mov r8, [rbx+40h]
mov rcx, [rbx+48h]
mov rdi, rbp
mov rdx, r13
mov r9, r14
call _ZZN19test_flash_attn_ext11build_graphEP12ggml_contextENKUl9ggml_typellllE_clES2_llll; test_flash_attn_ext::build_graph(ggml_context *)::{lambda(ggml_type,long,long,long,long)#1}::operator()(ggml_type,long,long,long,long)
mov r12, rax
lea rsi, aMask_0+3; "k"
mov rdi, rax
call _ggml_set_name
mov esi, [rbx+64h]
mov r8, [rbx+40h]
mov rcx, [rbx+48h]
mov rdi, rbp
mov rdx, r13
mov r9, r14
call _ZZN19test_flash_attn_ext11build_graphEP12ggml_contextENKUl9ggml_typellllE_clES2_llll; test_flash_attn_ext::build_graph(ggml_context *)::{lambda(ggml_type,long,long,long,long)#1}::operator()(ggml_type,long,long,long,long)
mov r13, rax
lea rsi, aGradV+5; "v"
mov rdi, rax
call _ggml_set_name
cmp byte ptr [rbx+58h], 1
jnz short loc_2DE84
mov rsi, [rsp+58h+var_50]
mov rcx, [rbx+48h]
mov r8, [rbx+50h]
add r8, 1Fh
and r8, 0FFFFFFFFFFFFFFE0h
mov [rsp+58h+var_58], 1
push 1
pop rdx
push 1
pop r9
mov rdi, rbx
call _ZN9test_case18ggml_new_tensor_4dEP12ggml_context9ggml_typellll; test_case::ggml_new_tensor_4d(ggml_context *,ggml_type,long,long,long,long)
mov r15, rax
lea rsi, a33mwarningNoMo+96h; "m"
mov rdi, rax
call _ggml_set_name
loc_2DE84:
cvtsi2ss xmm0, qword ptr [rbx+38h]
mov r14, [rsp+58h+var_50]
xorps xmm1, xmm1
ucomiss xmm0, xmm1
jb short loc_2DE9D
sqrtss xmm0, xmm0
jmp short loc_2DEA2
loc_2DE9D:
call _sqrtf
loc_2DEA2:
movss xmm3, cs:dword_30004
divss xmm3, xmm0
movss xmm1, dword ptr [rbx+5Ch]
movss xmm2, dword ptr [rbx+60h]
mov rdi, r14
mov rsi, [rsp+58h+var_48]
mov rdx, r12
mov rcx, r13
mov r8, r15
movaps xmm0, xmm3
call _ggml_flash_attn_ext
mov rbx, rax
lea rsi, aSumOfOut+7; "out"
mov rdi, rax
call _ggml_set_name
mov rax, rbx
add rsp, 28h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
| long long test_flash_attn_ext::build_graph(long long a1, long long a2)
{
long long v3; // r15
long long v4; // r13
long long v5; // r13
long long v6; // r15
long long v7; // r12
long long v8; // r13
float v9; // xmm0_4
long long v10; // r14
float v11; // xmm0_4
double v12; // xmm3_8
long long v13; // rbx
long long v15; // [rsp+8h] [rbp-50h] BYREF
long long v16; // [rsp+10h] [rbp-48h]
_QWORD v17[8]; // [rsp+18h] [rbp-40h] BYREF
v15 = a2;
v3 = *(_QWORD *)(a1 + 56);
v4 = v3 + ggml_blck_size(*(unsigned int *)(a1 + 100)) - 1;
v5 = -ggml_blck_size(*(unsigned int *)(a1 + 100)) & v4;
v17[0] = a1;
v17[1] = &v15;
v6 = 0LL;
v16 = test_flash_attn_ext::build_graph(ggml_context *)::{lambda(ggml_type,long,long,long,long)#1}::operator()(
v17,
0LL,
v5,
*(_QWORD *)(v17[0] + 80LL),
*(_QWORD *)(v17[0] + 64LL),
1LL);
ggml_set_name(v16, "q");
v7 = test_flash_attn_ext::build_graph(ggml_context *)::{lambda(ggml_type,long,long,long,long)#1}::operator()(
v17,
*(unsigned int *)(a1 + 100),
v5,
*(_QWORD *)(a1 + 72),
*(_QWORD *)(a1 + 64),
1LL);
ggml_set_name(v7, "k");
v8 = test_flash_attn_ext::build_graph(ggml_context *)::{lambda(ggml_type,long,long,long,long)#1}::operator()(
v17,
*(unsigned int *)(a1 + 100),
v5,
*(_QWORD *)(a1 + 72),
*(_QWORD *)(a1 + 64),
1LL);
ggml_set_name(v8, "v");
if ( *(_BYTE *)(a1 + 88) == 1 )
{
v6 = test_case::ggml_new_tensor_4d(
a1,
v15,
1u,
*(_QWORD *)(a1 + 72),
(*(_QWORD *)(a1 + 80) + 31LL) & 0xFFFFFFFFFFFFFFE0LL,
1LL,
1LL);
ggml_set_name(v6, "m");
}
v9 = (float)(int)*(_QWORD *)(a1 + 56);
v10 = v15;
if ( v9 < 0.0 )
v11 = sqrtf();
else
v11 = fsqrt(v9);
HIDWORD(v12) = 0;
*(float *)&v12 = 1.0 / v11;
v13 = ggml_flash_attn_ext(v10, v16, v7, v8, v6, v12, *(float *)(a1 + 92), *(float *)(a1 + 96));
ggml_set_name(v13, "out");
return v13;
}
| build_graph:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x28
MOV RBX,RDI
LEA R14,[RSP + 0x8]
MOV qword ptr [R14],RSI
MOV R15,qword ptr [RDI + 0x38]
MOV EDI,dword ptr [RDI + 0x64]
CALL 0x0010f970
LEA R13,[R15 + RAX*0x1]
DEC R13
MOV EDI,dword ptr [RBX + 0x64]
CALL 0x0010f970
NEG RAX
AND R13,RAX
LEA RBP,[RSP + 0x18]
MOV qword ptr [RBP],RBX
MOV qword ptr [RBP + 0x8],R14
MOV R8,qword ptr [RBX + 0x40]
MOV RCX,qword ptr [RBX + 0x50]
XOR R15D,R15D
PUSH 0x1
POP R14
MOV RDI,RBP
XOR ESI,ESI
MOV RDX,R13
MOV R9,R14
CALL 0x0012df1c
LEA RSI,[0x1310bd]
MOV qword ptr [RSP + 0x10],RAX
MOV RDI,RAX
CALL 0x0010fb40
MOV ESI,dword ptr [RBX + 0x64]
MOV R8,qword ptr [RBX + 0x40]
MOV RCX,qword ptr [RBX + 0x48]
MOV RDI,RBP
MOV RDX,R13
MOV R9,R14
CALL 0x0012df1c
MOV R12,RAX
LEA RSI,[0x13108f]
MOV RDI,RAX
CALL 0x0010fb40
MOV ESI,dword ptr [RBX + 0x64]
MOV R8,qword ptr [RBX + 0x40]
MOV RCX,qword ptr [RBX + 0x48]
MOV RDI,RBP
MOV RDX,R13
MOV R9,R14
CALL 0x0012df1c
MOV R13,RAX
LEA RSI,[0x1311bd]
MOV RDI,RAX
CALL 0x0010fb40
CMP byte ptr [RBX + 0x58],0x1
JNZ 0x0012de84
MOV RSI,qword ptr [RSP + 0x8]
MOV RCX,qword ptr [RBX + 0x48]
MOV R8,qword ptr [RBX + 0x50]
ADD R8,0x1f
AND R8,-0x20
MOV qword ptr [RSP],0x1
PUSH 0x1
POP RDX
PUSH 0x1
POP R9
MOV RDI,RBX
CALL 0x00120c6c
MOV R15,RAX
LEA RSI,[0x132c36]
MOV RDI,RAX
CALL 0x0010fb40
LAB_0012de84:
CVTSI2SS XMM0,qword ptr [RBX + 0x38]
MOV R14,qword ptr [RSP + 0x8]
XORPS XMM1,XMM1
UCOMISS XMM0,XMM1
JC 0x0012de9d
SQRTSS XMM0,XMM0
JMP 0x0012dea2
LAB_0012de9d:
CALL 0x0010fb90
LAB_0012dea2:
MOVSS XMM3,dword ptr [0x00130004]
DIVSS XMM3,XMM0
MOVSS XMM1,dword ptr [RBX + 0x5c]
MOVSS XMM2,dword ptr [RBX + 0x60]
MOV RDI,R14
MOV RSI,qword ptr [RSP + 0x10]
MOV RDX,R12
MOV RCX,R13
MOV R8,R15
MOVAPS XMM0,XMM3
CALL 0x0010f6a0
MOV RBX,RAX
LEA RSI,[0x131332]
MOV RDI,RAX
CALL 0x0010fb40
MOV RAX,RBX
ADD RSP,0x28
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
|
/* test_flash_attn_ext::build_graph(ggml_context*) */
int8 __thiscall
test_flash_attn_ext::build_graph(test_flash_attn_ext *this,ggml_context *param_1)
{
long lVar1;
ggml_context *pgVar2;
long lVar3;
long lVar4;
int8 uVar5;
int8 uVar6;
int8 uVar7;
ulong uVar8;
float fVar9;
ggml_context *local_50;
int8 local_48;
test_flash_attn_ext *local_40;
ggml_context **local_38;
lVar1 = *(long *)(this + 0x38);
local_50 = param_1;
lVar3 = ggml_blck_size(*(int4 *)(this + 100));
lVar4 = ggml_blck_size(*(int4 *)(this + 100));
uVar8 = (lVar1 + lVar3) - 1U & -lVar4;
uVar7 = 0;
local_40 = this;
local_38 = &local_50;
local_48 = build_graph(ggml_context*)::{lambda(ggml_type,long,long,long,long)#1}::operator()
((_lambda_ggml_type_long_long_long_long__1_ *)&local_40,0,uVar8,
*(int8 *)(this + 0x50),*(int8 *)(this + 0x40),1);
ggml_set_name(local_48,&DAT_001310bd);
uVar5 = build_graph(ggml_context*)::{lambda(ggml_type,long,long,long,long)#1}::operator()
((_lambda_ggml_type_long_long_long_long__1_ *)&local_40,
*(int4 *)(this + 100),uVar8,*(int8 *)(this + 0x48),
*(int8 *)(this + 0x40),1);
ggml_set_name(uVar5,&DAT_0013108f);
uVar6 = build_graph(ggml_context*)::{lambda(ggml_type,long,long,long,long)#1}::operator()
((_lambda_ggml_type_long_long_long_long__1_ *)&local_40,
*(int4 *)(this + 100),uVar8,*(int8 *)(this + 0x48),
*(int8 *)(this + 0x40),1);
ggml_set_name(uVar6,&DAT_001311bd);
if (this[0x58] == (test_flash_attn_ext)0x1) {
uVar7 = test_case::ggml_new_tensor_4d
((test_case *)this,local_50,1,*(int8 *)(this + 0x48),
*(long *)(this + 0x50) + 0x1fU & 0xffffffffffffffe0,1,1);
ggml_set_name(uVar7,&DAT_00132c36);
}
pgVar2 = local_50;
fVar9 = (float)*(long *)(this + 0x38);
if (fVar9 < 0.0) {
fVar9 = sqrtf(fVar9);
}
else {
fVar9 = SQRT(fVar9);
}
uVar5 = ggml_flash_attn_ext(DAT_00130004 / fVar9,*(int4 *)(this + 0x5c),
*(int4 *)(this + 0x60),pgVar2,local_48,uVar5,uVar6,uVar7);
ggml_set_name(uVar5,"out");
return uVar5;
}
| |
42,228 | google::protobuf::RepeatedField<unsigned long>::erase(google::protobuf::internal::RepeatedIterator<unsigned long const>) | aimrt_mujoco_sim/_deps/protobuf-src/src/google/protobuf/repeated_field.h | inline typename RepeatedField<Element>::iterator RepeatedField<Element>::erase(
const_iterator position) {
return erase(position, position + 1);
} | O3 | c | google::protobuf::RepeatedField<unsigned long>::erase(google::protobuf::internal::RepeatedIterator<unsigned long const>):
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x10, %rsp
movq %rsi, %rbx
movq %rdi, %r14
leaq 0x8(%rsi), %r12
movq 0x8(%rdi), %rsi
subq %rsi, %rbx
movslq (%rdi), %rax
leaq (%rsi,%rax,8), %r13
leaq 0x8(%rsp), %r15
movq %r15, %rdi
callq 0xa6a54
shlq $0x1d, %rbx
sarq $0x1d, %rbx
movq (%r15), %rsi
addq %rbx, %rsi
leaq 0x8(%rsp), %r15
movq %r15, %rdi
callq 0xa6a54
movq (%r15), %rax
subq %r12, %r13
sarq $0x3, %r13
testq %r13, %r13
jle 0xa4373
incq %r13
movq (%r12), %rcx
movq %rcx, (%rax)
addq $0x8, %r12
addq $0x8, %rax
decq %r13
cmpq $0x1, %r13
ja 0xa435b
cmpl $0x0, (%r14)
movq 0x8(%r14), %rsi
jle 0xa4387
subq %rsi, %rax
shrq $0x3, %rax
movl %eax, (%r14)
leaq 0x8(%rsp), %r14
movq %r14, %rdi
callq 0xa6a54
addq (%r14), %rbx
leaq 0x8(%rsp), %r14
movq %r14, %rdi
movq %rbx, %rsi
callq 0xa6a54
movq (%r14), %rax
addq $0x10, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
| _ZN6google8protobuf13RepeatedFieldImE5eraseENS0_8internal16RepeatedIteratorIKmEE:
push r15
push r14
push r13
push r12
push rbx
sub rsp, 10h
mov rbx, rsi
mov r14, rdi
lea r12, [rsi+8]
mov rsi, [rdi+8]
sub rbx, rsi
movsxd rax, dword ptr [rdi]
lea r13, [rsi+rax*8]
lea r15, [rsp+38h+var_30]
mov rdi, r15
call _ZN6google8protobuf8internal16RepeatedIteratorImEC2EPm; google::protobuf::internal::RepeatedIterator<ulong>::RepeatedIterator(ulong *)
shl rbx, 1Dh
sar rbx, 1Dh
mov rsi, [r15]
add rsi, rbx
lea r15, [rsp+38h+var_30]
mov rdi, r15
call _ZN6google8protobuf8internal16RepeatedIteratorImEC2EPm; google::protobuf::internal::RepeatedIterator<ulong>::RepeatedIterator(ulong *)
mov rax, [r15]
sub r13, r12
sar r13, 3
test r13, r13
jle short loc_A4373
inc r13
loc_A435B:
mov rcx, [r12]
mov [rax], rcx
add r12, 8
add rax, 8
dec r13
cmp r13, 1
ja short loc_A435B
loc_A4373:
cmp dword ptr [r14], 0
mov rsi, [r14+8]
jle short loc_A4387
sub rax, rsi
shr rax, 3
mov [r14], eax
loc_A4387:
lea r14, [rsp+38h+var_30]
mov rdi, r14
call _ZN6google8protobuf8internal16RepeatedIteratorImEC2EPm; google::protobuf::internal::RepeatedIterator<ulong>::RepeatedIterator(ulong *)
add rbx, [r14]
lea r14, [rsp+38h+var_30]
mov rdi, r14
mov rsi, rbx
call _ZN6google8protobuf8internal16RepeatedIteratorImEC2EPm; google::protobuf::internal::RepeatedIterator<ulong>::RepeatedIterator(ulong *)
mov rax, [r14]
add rsp, 10h
pop rbx
pop r12
pop r13
pop r14
pop r15
retn
| long long google::protobuf::RepeatedField<unsigned long>::erase(int *a1, long long a2)
{
_QWORD *v3; // r12
long long v4; // rsi
long long v5; // r13
long long v6; // rbx
_QWORD *v7; // rax
long long v8; // r13
long long v9; // r13
bool v10; // cf
long long v11; // rsi
_QWORD v13[6]; // [rsp+8h] [rbp-30h] BYREF
v3 = (_QWORD *)(a2 + 8);
v4 = *((_QWORD *)a1 + 1);
v5 = v4 + 8LL * *a1;
google::protobuf::internal::RepeatedIterator<unsigned long>::RepeatedIterator(v13, v4);
v6 = (a2 - v4) << 29 >> 29;
google::protobuf::internal::RepeatedIterator<unsigned long>::RepeatedIterator(v13, v6 + v13[0]);
v7 = (_QWORD *)v13[0];
v8 = (v5 - (long long)v3) >> 3;
if ( v8 > 0 )
{
v9 = v8 + 1;
do
{
*v7++ = *v3++;
v10 = v9-- == 1;
}
while ( !v10 && v9 != 1 );
}
v11 = *((_QWORD *)a1 + 1);
if ( *a1 > 0 )
*a1 = ((unsigned long long)v7 - v11) >> 3;
google::protobuf::internal::RepeatedIterator<unsigned long>::RepeatedIterator(v13, v11);
google::protobuf::internal::RepeatedIterator<unsigned long>::RepeatedIterator(v13, v13[0] + v6);
return v13[0];
}
| erase:
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x10
MOV RBX,RSI
MOV R14,RDI
LEA R12,[RSI + 0x8]
MOV RSI,qword ptr [RDI + 0x8]
SUB RBX,RSI
MOVSXD RAX,dword ptr [RDI]
LEA R13,[RSI + RAX*0x8]
LEA R15,[RSP + 0x8]
MOV RDI,R15
CALL 0x001a6a54
SHL RBX,0x1d
SAR RBX,0x1d
MOV RSI,qword ptr [R15]
ADD RSI,RBX
LEA R15,[RSP + 0x8]
MOV RDI,R15
CALL 0x001a6a54
MOV RAX,qword ptr [R15]
SUB R13,R12
SAR R13,0x3
TEST R13,R13
JLE 0x001a4373
INC R13
LAB_001a435b:
MOV RCX,qword ptr [R12]
MOV qword ptr [RAX],RCX
ADD R12,0x8
ADD RAX,0x8
DEC R13
CMP R13,0x1
JA 0x001a435b
LAB_001a4373:
CMP dword ptr [R14],0x0
MOV RSI,qword ptr [R14 + 0x8]
JLE 0x001a4387
SUB RAX,RSI
SHR RAX,0x3
MOV dword ptr [R14],EAX
LAB_001a4387:
LEA R14,[RSP + 0x8]
MOV RDI,R14
CALL 0x001a6a54
ADD RBX,qword ptr [R14]
LEA R14,[RSP + 0x8]
MOV RDI,R14
MOV RSI,RBX
CALL 0x001a6a54
MOV RAX,qword ptr [R14]
ADD RSP,0x10
POP RBX
POP R12
POP R13
POP R14
POP R15
RET
|
/* google::protobuf::RepeatedField<unsigned
long>::erase(google::protobuf::internal::RepeatedIterator<unsigned long const>) */
int8 * __thiscall
google::protobuf::RepeatedField<unsigned_long>::erase
(RepeatedField<unsigned_long> *this,long param_2)
{
int iVar1;
ulong *puVar2;
int8 *puVar3;
long lVar4;
int8 *puVar5;
long lVar6;
ulong uVar7;
int8 *local_30;
puVar5 = (int8 *)(param_2 + 8);
puVar2 = *(ulong **)(this + 8);
iVar1 = *(int *)this;
internal::RepeatedIterator<unsigned_long>::RepeatedIterator
((RepeatedIterator<unsigned_long> *)&local_30,puVar2);
lVar4 = (param_2 - (long)puVar2) * 0x20000000 >> 0x1d;
internal::RepeatedIterator<unsigned_long>::RepeatedIterator
((RepeatedIterator<unsigned_long> *)&local_30,(ulong *)((long)local_30 + lVar4));
lVar6 = (long)puVar2 + ((long)iVar1 * 8 - (long)puVar5) >> 3;
puVar3 = local_30;
if (0 < lVar6) {
uVar7 = lVar6 + 1;
do {
*puVar3 = *puVar5;
puVar5 = puVar5 + 1;
puVar3 = puVar3 + 1;
uVar7 = uVar7 - 1;
} while (1 < uVar7);
}
if (0 < *(int *)this) {
*(int *)this = (int)((ulong)((long)puVar3 - (long)*(ulong **)(this + 8)) >> 3);
}
internal::RepeatedIterator<unsigned_long>::RepeatedIterator
((RepeatedIterator<unsigned_long> *)&local_30,*(ulong **)(this + 8));
internal::RepeatedIterator<unsigned_long>::RepeatedIterator
((RepeatedIterator<unsigned_long> *)&local_30,(ulong *)(lVar4 + (long)local_30));
return local_30;
}
| |
42,229 | add_hostname(char const*, char const*, bool, Host_errors*) | eloqsql/sql/hostname.cc | static void add_hostname(const char *ip_key, const char *hostname,
bool validated, Host_errors *errors)
{
if (specialflag & SPECIAL_NO_HOST_CACHE)
return;
ulonglong now= my_hrtime().val;
mysql_mutex_lock(&hostname_cache->lock);
add_hostname_impl(ip_key, hostname, validated, errors, now);
mysql_mutex_unlock(&hostname_cache->lock);
return;
} | O0 | cpp | add_hostname(char const*, char const*, bool, Host_errors*):
pushq %rbp
movq %rsp, %rbp
subq $0x30, %rsp
movb %dl, %al
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
andb $0x1, %al
movb %al, -0x11(%rbp)
movq %rcx, -0x20(%rbp)
leaq 0x10993f6(%rip), %rax # 0x1cc8168
movq (%rax), %rax
andq $0x200, %rax # imm = 0x200
cmpq $0x0, %rax
je 0xc2ed83
jmp 0xc2eddd
callq 0x12c3a10
movq %rax, -0x30(%rbp)
movq -0x30(%rbp), %rax
movq %rax, -0x28(%rbp)
movq 0x10cf5a5(%rip), %rdi # 0x1cfe340
addq $0x48, %rdi
leaq 0x7a6b62(%rip), %rsi # 0x13d5908
movl $0x11f, %edx # imm = 0x11F
callq 0xc2e0d0
movq -0x8(%rbp), %rdi
movq -0x10(%rbp), %rsi
movb -0x11(%rbp), %al
movq -0x20(%rbp), %rcx
movq -0x28(%rbp), %r8
andb $0x1, %al
movzbl %al, %edx
callq 0xc2ef20
movq 0x10cf56c(%rip), %rdi # 0x1cfe340
addq $0x48, %rdi
callq 0xc2e150
addq $0x30, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
| _ZL12add_hostnamePKcS0_bP11Host_errors:
push rbp
mov rbp, rsp
sub rsp, 30h
mov al, dl
mov [rbp+var_8], rdi
mov [rbp+var_10], rsi
and al, 1
mov [rbp+var_11], al
mov [rbp+var_20], rcx
lea rax, specialflag
mov rax, [rax]
and rax, 200h
cmp rax, 0
jz short loc_C2ED83
jmp short loc_C2EDDD
loc_C2ED83:
call my_hrtime
mov [rbp+var_30], rax
mov rax, [rbp+var_30]
mov [rbp+var_28], rax
mov rdi, cs:_ZL14hostname_cache; hostname_cache
add rdi, 48h ; 'H'
lea rsi, aWorkspaceLlm4b_97; "/workspace/llm4binary/github2025/eloqsq"...
mov edx, 11Fh
call _ZL23inline_mysql_mutex_lockP14st_mysql_mutexPKcj_7; inline_mysql_mutex_lock(st_mysql_mutex *,char const*,uint)
mov rdi, [rbp+var_8]; char *
mov rsi, [rbp+var_10]; char *
mov al, [rbp+var_11]
mov rcx, [rbp+var_20]; Host_errors *
mov r8, [rbp+var_28]; unsigned __int64
and al, 1
movzx edx, al; bool
call _ZL17add_hostname_implPKcS0_bP11Host_errorsy; add_hostname_impl(char const*,char const*,bool,Host_errors *,ulong long)
mov rdi, cs:_ZL14hostname_cache; hostname_cache
add rdi, 48h ; 'H'
call _ZL25inline_mysql_mutex_unlockP14st_mysql_mutex_7; inline_mysql_mutex_unlock(st_mysql_mutex *)
loc_C2EDDD:
add rsp, 30h
pop rbp
retn
| long long add_hostname(const char *a1, const char *a2, long long a3, Host_errors *a4)
{
long long result; // rax
long long v5; // [rsp+8h] [rbp-28h]
char v7; // [rsp+1Fh] [rbp-11h]
v7 = a3 & 1;
result = specialflag & 0x200;
if ( (specialflag & 0x200) == 0 )
{
v5 = my_hrtime(a1, a2, a3);
inline_mysql_mutex_lock(
(long long)hostname_cache + 72,
(long long)"/workspace/llm4binary/github2025/eloqsql/sql/hostname.cc",
0x11Fu);
add_hostname_impl(a1, a2, v7 & 1, a4, v5);
return inline_mysql_mutex_unlock((long long)hostname_cache + 72);
}
return result;
}
| push:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x10
MOV qword ptr [RBP + -0x8],RDI
MOV qword ptr [RBP + -0x10],RSI
MOV RDI,qword ptr [RBP + -0x8]
MOV RSI,qword ptr [RBP + -0x10]
CALL 0x00c2f0c0
AND AL,0x1
ADD RSP,0x10
POP RBP
RET
|
/* Dynamic_array<SplM_field_ext_info>::push(SplM_field_ext_info&) */
byte __thiscall
Dynamic_array<SplM_field_ext_info>::push
(Dynamic_array<SplM_field_ext_info> *this,SplM_field_ext_info *param_1)
{
byte bVar1;
bVar1 = append(this,param_1);
return bVar1 & 1;
}
| |
42,230 | my_strtoll10 | eloqsql/strings/my_strtoll10.c | longlong my_strtoll10(const char *nptr, char **endptr, int *error)
{
const char *s, *end, *start, *n_end, *true_end;
char *dummy;
uchar c;
unsigned long i, j, k;
ulonglong li;
int negative;
ulong cutoff, cutoff2, cutoff3;
s= nptr;
/* If fixed length string */
if (endptr)
{
end= *endptr;
/* Skip leading spaces */
for ( ; s < end && my_isspace(&my_charset_latin1, *s) ; )
s++;
if (s == end)
goto no_conv;
}
else
{
endptr= &dummy; /* Easier end test */
/* Skip leading spaces */
for ( ; ; s++)
{
if (!*s)
goto no_conv;
if (!my_isspace(&my_charset_latin1, *s))
break;
}
/* This number must be big to guard against a lot of pre-zeros */
end= s+65535; /* Can't be longer than this */
}
/* Check for a sign. */
negative= 0;
if (*s == '-')
{
*error= -1; /* Mark as negative number */
negative= 1;
if (++s == end)
goto no_conv;
cutoff= MAX_NEGATIVE_NUMBER / LFACTOR2;
cutoff2= (MAX_NEGATIVE_NUMBER % LFACTOR2) / 100;
cutoff3= MAX_NEGATIVE_NUMBER % 100;
}
else
{
*error= 0;
if (*s == '+')
{
if (++s == end)
goto no_conv;
}
cutoff= ULONGLONG_MAX / LFACTOR2;
cutoff2= ULONGLONG_MAX % LFACTOR2 / 100;
cutoff3= ULONGLONG_MAX % 100;
}
/* Handle case where we have a lot of pre-zero */
if (*s == '0')
{
i= 0;
do
{
if (++s == end)
goto end_i; /* Return 0 */
}
while (*s == '0');
n_end= s+ INIT_CNT;
}
else
{
/* Read first digit to check that it's a valid number */
if ((c= (*s-'0')) > 9)
goto no_conv;
i= c;
n_end= ++s+ INIT_CNT-1;
}
/* Handle first 9 digits and store them in i */
if (n_end > end)
n_end= end;
for (; s != n_end ; s++)
{
if ((c= (*s-'0')) > 9)
goto end_i;
i= i*10+c;
}
if (s == end)
goto end_i;
/* Handle next 9 digits and store them in j */
j= 0;
start= s; /* Used to know how much to shift i */
n_end= true_end= s + INIT_CNT;
if (n_end > end)
n_end= end;
do
{
if ((c= (*s-'0')) > 9)
goto end_i_and_j;
j= j*10+c;
} while (++s != n_end);
if (s == end)
{
if (s != true_end)
goto end_i_and_j;
goto end3;
}
if ((c= (*s-'0')) > 9)
goto end3;
/* Handle the next 1 or 2 digits and store them in k */
k=c;
if (++s == end || (c= (*s-'0')) > 9)
goto end4;
k= k*10+c;
*endptr= (char*) ++s;
/* number string should have ended here */
if (s != end && (c= (*s-'0')) <= 9)
goto overflow;
/* Check that we didn't get an overflow with the last digit */
if (i > cutoff || (i == cutoff && (j > cutoff2 || (j == cutoff2 &&
k > cutoff3))))
goto overflow;
li=i*LFACTOR2+ (ulonglong) j*100 + k;
return (longlong) li;
overflow: /* *endptr is set here */
*error= MY_ERRNO_ERANGE;
return negative ? LONGLONG_MIN : (longlong) ULONGLONG_MAX;
end_i:
*endptr= (char*) s;
return (negative ? ((longlong) -(long) i) : (longlong) i);
end_i_and_j:
li= (ulonglong) i * lfactor[(uint) (s-start)] + j;
*endptr= (char*) s;
return (negative ? -((longlong) li) : (longlong) li);
end3:
li=(ulonglong) i*LFACTOR+ (ulonglong) j;
*endptr= (char*) s;
return (negative ? -((longlong) li) : (longlong) li);
end4:
li=(ulonglong) i*LFACTOR1+ (ulonglong) j * 10 + k;
*endptr= (char*) s;
if (negative)
{
if (li > MAX_NEGATIVE_NUMBER)
goto overflow;
return -((longlong) li);
}
return (longlong) li;
no_conv:
/* There was no number to convert. */
*error= MY_ERRNO_EDOM;
*endptr= (char *) nptr;
return 0;
} | O3 | c | my_strtoll10:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
testq %rsi, %rsi
je 0x5c4c6
movq (%rsi), %r8
movq %rdi, %rax
cmpq %rdi, %r8
jbe 0x5c4b6
leaq 0x2bd578(%rip), %rax # 0x319a10
movq 0x40(%rax), %rcx
movq %rdi, %rax
movzbl (%rax), %r9d
testb $0x8, 0x1(%rcx,%r9)
je 0x5c4b6
incq %rax
cmpq %r8, %rax
jne 0x5c49f
movq %r8, %rax
cmpq %r8, %rax
je 0x5c5a4
movb (%rax), %cl
movq %r8, %rbx
jmp 0x5c512
movb (%rdi), %cl
leaq -0x30(%rbp), %rsi
testb %cl, %cl
je 0x5c5a4
leaq 0x2bd535(%rip), %rax # 0x319a10
movq 0x40(%rax), %r8
leaq 0xffff(%rdi), %rbx
movq %rdi, %rax
movzbl %cl, %r9d
testb $0x8, 0x1(%r8,%r9)
je 0x5c507
movb 0x1(%rax), %cl
incq %rax
incq %rbx
testb %cl, %cl
jne 0x5c4e9
jmp 0x5c5a4
leaq 0xffff(%rax), %r8
leaq -0x30(%rbp), %rsi
cmpb $0x2d, %cl
jne 0x5c539
movl $0xffffffff, (%rdx) # imm = 0xFFFFFFFF
incq %rax
cmpq %r8, %rax
je 0x5c5a4
movl $0x8, %r9d
movl $0x15f797ae, %r10d # imm = 0x15F797AE
movl $0x57f5ff8, %r11d # imm = 0x57F5FF8
jmp 0x5c562
movl $0x0, (%rdx)
movb (%rax), %r14b
cmpb $0x2b, %r14b
jne 0x5c567
incq %rax
cmpq %r8, %rax
je 0x5c5a4
movl $0xf, %r9d
movl $0x2bef2f5c, %r10d # imm = 0x2BEF2F5C
movl $0xafebff0, %r11d # imm = 0xAFEBFF0
movb (%rax), %r14b
jmp 0x5c579
movl $0xf, %r9d
movl $0x2bef2f5c, %r10d # imm = 0x2BEF2F5C
movl $0xafebff0, %r11d # imm = 0xAFEBFF0
cmpb $0x30, %r14b
jne 0x5c59a
xorl %edi, %edi
incq %rax
cmpq %r8, %rax
je 0x5c6a9
cmpb $0x30, (%rax)
je 0x5c581
leaq 0x9(%rax), %rbx
xorl %edi, %edi
jmp 0x5c5c2
addb $-0x30, %r14b
cmpb $0x9, %r14b
jbe 0x5c5b4
movl $0x21, (%rdx)
movq %rdi, (%rsi)
xorl %eax, %eax
jmp 0x5c6b9
movzbl %r14b, %edi
movq %rax, %rbx
incq %rax
addq $0x9, %rbx
cmpq %r8, %rbx
cmovaq %r8, %rbx
cmpq %rbx, %rax
je 0x5c5f0
movb (%rax), %r14b
addb $-0x30, %r14b
cmpb $0x9, %r14b
ja 0x5c6a6
leaq (%rdi,%rdi,4), %rdi
movzbl %r14b, %r14d
leaq (%r14,%rdi,2), %rdi
incq %rax
jmp 0x5c5c9
cmpq %r8, %rax
je 0x5c6a6
leaq 0x9(%rax), %r12
cmpq %r8, %r12
cmovaq %r8, %r12
leaq 0x1(%rax), %r14
movl $0x9, %r13d
xorl %ebx, %ebx
movb -0x1(%r14), %r15b
addb $-0x30, %r15b
cmpb $0x9, %r15b
ja 0x5c6c4
leaq (%rbx,%rbx,4), %rbx
movzbl %r15b, %r15d
leaq (%r15,%rbx,2), %rbx
leaq 0x1(%r14), %r15
decq %r13
cmpq %r12, %r14
movq %r15, %r14
jne 0x5c610
leaq -0x1(%r15), %r14
cmpq %r8, %r12
je 0x5c6e9
movb (%r14), %al
addb $-0x30, %al
cmpb $0x9, %al
ja 0x5c6ee
movzbl %al, %r14d
cmpq %r8, %r15
je 0x5c66d
movb (%r15), %al
addb $-0x30, %al
cmpb $0x9, %al
jbe 0x5c70a
movabsq $0x2540be400, %rax # imm = 0x2540BE400
imulq %rax, %rdi
leaq (%rbx,%rbx,4), %rax
leaq (%rdi,%rax,2), %rax
addq %r14, %rax
movq %r15, (%rsi)
cmpb $0x2d, %cl
jne 0x5c6b9
movabsq $-0x8000000000000000, %rsi # imm = 0x8000000000000000
cmpq %rsi, %rax
ja 0x5c745
negq %rax
jmp 0x5c6b9
movq %rax, %rbx
movq %rdi, %rax
negq %rax
cmpb $0x2d, %cl
movq %rbx, (%rsi)
cmovneq %rdi, %rax
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
decq %r14
movl %r14d, %edx
subl %eax, %edx
leaq 0x28070d(%rip), %rax # 0x2dcde0
imulq (%rax,%rdx,8), %rdi
addq %rbx, %rdi
movq %rdi, %rax
negq %rax
cmpb $0x2d, %cl
movq %r14, (%rsi)
jmp 0x5c6b5
testq %r13, %r13
jne 0x5c6c7
imulq $0x3b9aca00, %rdi, %rax # imm = 0x3B9ACA00
addq %rax, %rbx
movq %rbx, %rax
negq %rax
cmpb $0x2d, %cl
movq %r14, (%rsi)
cmovneq %rbx, %rax
jmp 0x5c6b9
leaq 0x1(%r15), %r12
movq %r12, (%rsi)
cmpq %r8, %r12
je 0x5c724
movb 0x1(%r15), %sil
addb $-0x30, %sil
cmpb $0xa, %sil
jb 0x5c745
cmpq %r11, %rdi
ja 0x5c745
leaq (%r14,%r14,4), %rsi
movzbl %al, %eax
leaq (%rax,%rsi,2), %rsi
cmpq %r11, %rdi
jne 0x5c760
cmpq %r10, %rbx
ja 0x5c745
jne 0x5c760
cmpl %r9d, %esi
jbe 0x5c760
xorl %eax, %eax
cmpb $0x2d, %cl
setne %al
movl $0x22, (%rdx)
negq %rax
btsq $0x3f, %rax
jmp 0x5c6b9
movabsq $0x174876e800, %rax # imm = 0x174876E800
imulq %rax, %rdi
imulq $0x64, %rbx, %rax
addq %rdi, %rax
addq %rsi, %rax
jmp 0x5c6b9
nopl (%rax)
| my_strtoll10:
push rbp
mov rbp, rsp
push r15
push r14
push r13
push r12
push rbx
test rsi, rsi
jz short loc_5C4C6
mov r8, [rsi]
mov rax, rdi
cmp r8, rdi
jbe short loc_5C4B6
lea rax, my_charset_latin1
mov rcx, [rax+40h]
mov rax, rdi
loc_5C49F:
movzx r9d, byte ptr [rax]
test byte ptr [rcx+r9+1], 8
jz short loc_5C4B6
inc rax
cmp rax, r8
jnz short loc_5C49F
mov rax, r8
loc_5C4B6:
cmp rax, r8
jz loc_5C5A4
mov cl, [rax]
mov rbx, r8
jmp short loc_5C512
loc_5C4C6:
mov cl, [rdi]
lea rsi, [rbp+var_30]
test cl, cl
jz loc_5C5A4
lea rax, my_charset_latin1
mov r8, [rax+40h]
lea rbx, [rdi+0FFFFh]
mov rax, rdi
loc_5C4E9:
movzx r9d, cl
test byte ptr [r8+r9+1], 8
jz short loc_5C507
mov cl, [rax+1]
inc rax
inc rbx
test cl, cl
jnz short loc_5C4E9
jmp loc_5C5A4
loc_5C507:
lea r8, [rax+0FFFFh]
lea rsi, [rbp+var_30]
loc_5C512:
cmp cl, 2Dh ; '-'
jnz short loc_5C539
mov dword ptr [rdx], 0FFFFFFFFh
inc rax
cmp rax, r8
jz short loc_5C5A4
mov r9d, 8
mov r10d, 15F797AEh
mov r11d, 57F5FF8h
jmp short loc_5C562
loc_5C539:
mov dword ptr [rdx], 0
mov r14b, [rax]
cmp r14b, 2Bh ; '+'
jnz short loc_5C567
inc rax
cmp rax, r8
jz short loc_5C5A4
mov r9d, 0Fh
mov r10d, 2BEF2F5Ch
mov r11d, 0AFEBFF0h
loc_5C562:
mov r14b, [rax]
jmp short loc_5C579
loc_5C567:
mov r9d, 0Fh
mov r10d, 2BEF2F5Ch
mov r11d, 0AFEBFF0h
loc_5C579:
cmp r14b, 30h ; '0'
jnz short loc_5C59A
xor edi, edi
loc_5C581:
inc rax
cmp rax, r8
jz loc_5C6A9
cmp byte ptr [rax], 30h ; '0'
jz short loc_5C581
lea rbx, [rax+9]
xor edi, edi
jmp short loc_5C5C2
loc_5C59A:
add r14b, 0D0h
cmp r14b, 9
jbe short loc_5C5B4
loc_5C5A4:
mov dword ptr [rdx], 21h ; '!'
mov [rsi], rdi
xor eax, eax
jmp loc_5C6B9
loc_5C5B4:
movzx edi, r14b
mov rbx, rax
inc rax
add rbx, 9
loc_5C5C2:
cmp rbx, r8
cmova rbx, r8
loc_5C5C9:
cmp rax, rbx
jz short loc_5C5F0
mov r14b, [rax]
add r14b, 0D0h
cmp r14b, 9
ja loc_5C6A6
lea rdi, [rdi+rdi*4]
movzx r14d, r14b
lea rdi, [r14+rdi*2]
inc rax
jmp short loc_5C5C9
loc_5C5F0:
cmp rax, r8
jz loc_5C6A6
lea r12, [rax+9]
cmp r12, r8
cmova r12, r8
lea r14, [rax+1]
mov r13d, 9
xor ebx, ebx
loc_5C610:
mov r15b, [r14-1]
add r15b, 0D0h
cmp r15b, 9
ja loc_5C6C4
lea rbx, [rbx+rbx*4]
movzx r15d, r15b
lea rbx, [r15+rbx*2]
lea r15, [r14+1]
dec r13
cmp r14, r12
mov r14, r15
jnz short loc_5C610
lea r14, [r15-1]
cmp r12, r8
jz loc_5C6E9
mov al, [r14]
add al, 0D0h
cmp al, 9
ja loc_5C6EE
movzx r14d, al
cmp r15, r8
jz short loc_5C66D
mov al, [r15]
add al, 0D0h
cmp al, 9
jbe loc_5C70A
loc_5C66D:
mov rax, 2540BE400h
imul rdi, rax
lea rax, [rbx+rbx*4]
lea rax, [rdi+rax*2]
add rax, r14
mov [rsi], r15
cmp cl, 2Dh ; '-'
jnz short loc_5C6B9
mov rsi, 8000000000000000h
cmp rax, rsi
ja loc_5C745
neg rax
jmp short loc_5C6B9
loc_5C6A6:
mov rbx, rax
loc_5C6A9:
mov rax, rdi
neg rax
cmp cl, 2Dh ; '-'
mov [rsi], rbx
loc_5C6B5:
cmovnz rax, rdi
loc_5C6B9:
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
loc_5C6C4:
dec r14
loc_5C6C7:
mov edx, r14d
sub edx, eax
lea rax, lfactor_0
imul rdi, [rax+rdx*8]
add rdi, rbx
mov rax, rdi
neg rax
cmp cl, 2Dh ; '-'
mov [rsi], r14
jmp short loc_5C6B5
loc_5C6E9:
test r13, r13
jnz short loc_5C6C7
loc_5C6EE:
imul rax, rdi, 3B9ACA00h
add rbx, rax
mov rax, rbx
neg rax
cmp cl, 2Dh ; '-'
mov [rsi], r14
cmovnz rax, rbx
jmp short loc_5C6B9
loc_5C70A:
lea r12, [r15+1]
mov [rsi], r12
cmp r12, r8
jz short loc_5C724
mov sil, [r15+1]
add sil, 0D0h
cmp sil, 0Ah
jb short loc_5C745
loc_5C724:
cmp rdi, r11
ja short loc_5C745
lea rsi, [r14+r14*4]
movzx eax, al
lea rsi, [rax+rsi*2]
cmp rdi, r11
jnz short loc_5C760
cmp rbx, r10
ja short loc_5C745
jnz short loc_5C760
cmp esi, r9d
jbe short loc_5C760
loc_5C745:
xor eax, eax
cmp cl, 2Dh ; '-'
setnz al
mov dword ptr [rdx], 22h ; '"'
neg rax
bts rax, 3Fh ; '?'
jmp loc_5C6B9
loc_5C760:
mov rax, 174876E800h
imul rdi, rax
imul rax, rbx, 64h ; 'd'
add rax, rdi
add rax, rsi
jmp loc_5C6B9
| unsigned long long my_strtoll10(unsigned __int8 *a1, unsigned long long *a2, _DWORD *a3)
{
unsigned long long v3; // r8
unsigned __int8 *v4; // rax
unsigned __int8 v5; // cl
_BYTE *v6; // rbx
unsigned int v7; // r9d
unsigned long long v8; // r10
unsigned long long v9; // r11
unsigned __int8 v10; // r14
unsigned long long v11; // rdi
unsigned __int8 *v12; // rbx
unsigned __int8 v13; // r14
unsigned long long result; // rax
unsigned __int8 *v15; // rbx
unsigned __int8 v16; // r14
unsigned __int8 *v17; // r12
unsigned __int8 *v18; // r14
long long v19; // r13
unsigned long long v20; // rbx
unsigned __int8 v21; // r15
_BYTE *v22; // r15
unsigned __int8 *v23; // r14
unsigned __int8 v24; // al
long long v25; // r14
unsigned __int8 v26; // al
bool v27; // zf
unsigned long long v28; // rbx
long long v29; // rsi
_BYTE v30[48]; // [rsp+0h] [rbp-30h] BYREF
if ( a2 )
{
v3 = *a2;
v4 = a1;
if ( *a2 > (unsigned long long)a1 )
{
v4 = a1;
while ( (*(_BYTE *)(*(_QWORD *)&my_charset_latin1[16] + *v4 + 1LL) & 8) != 0 )
{
if ( ++v4 == (unsigned __int8 *)v3 )
{
v4 = (unsigned __int8 *)*a2;
break;
}
}
}
if ( v4 == (unsigned __int8 *)v3 )
goto LABEL_29;
v5 = *v4;
v6 = (_BYTE *)*a2;
}
else
{
v5 = *a1;
a2 = (unsigned long long *)v30;
if ( !*a1 )
goto LABEL_29;
v6 = a1 + 0xFFFF;
v4 = a1;
while ( (*(_BYTE *)(*(_QWORD *)&my_charset_latin1[16] + v5 + 1LL) & 8) != 0 )
{
v5 = *++v4;
++v6;
if ( !v5 )
goto LABEL_29;
}
v3 = (unsigned long long)(v4 + 0xFFFF);
a2 = (unsigned long long *)v30;
}
if ( v5 == 45 )
{
*a3 = -1;
if ( ++v4 == (unsigned __int8 *)v3 )
goto LABEL_29;
v7 = 8;
v8 = 368547758LL;
v9 = 92233720LL;
goto LABEL_21;
}
*a3 = 0;
v10 = *v4;
if ( *v4 == 43 )
{
if ( ++v4 == (unsigned __int8 *)v3 )
goto LABEL_29;
v7 = 15;
v8 = 737095516LL;
v9 = 184467440LL;
LABEL_21:
v10 = *v4;
goto LABEL_23;
}
v7 = 15;
v8 = 737095516LL;
v9 = 184467440LL;
LABEL_23:
if ( v10 != 48 )
{
v13 = v10 - 48;
if ( v13 <= 9u )
{
v11 = v13;
v15 = v4++;
v12 = v15 + 9;
goto LABEL_31;
}
LABEL_29:
*a3 = 33;
*a2 = (unsigned long long)a1;
return 0LL;
}
v11 = 0LL;
do
{
if ( ++v4 == (unsigned __int8 *)v3 )
goto LABEL_50;
}
while ( *v4 == 48 );
v12 = v4 + 9;
v11 = 0LL;
LABEL_31:
if ( (unsigned long long)v12 > v3 )
v12 = (unsigned __int8 *)v3;
while ( v4 != v12 )
{
v16 = *v4 - 48;
if ( v16 > 9u )
goto LABEL_49;
v11 = v16 + 10 * v11;
++v4;
}
if ( v4 == (unsigned __int8 *)v3 )
{
LABEL_49:
v6 = v4;
LABEL_50:
result = -(long long)v11;
v27 = v5 == 45;
*a2 = (unsigned long long)v6;
LABEL_51:
if ( !v27 )
return v11;
return result;
}
v17 = v4 + 9;
if ( (unsigned long long)(v4 + 9) > v3 )
v17 = (unsigned __int8 *)v3;
v18 = v4 + 1;
v19 = 9LL;
v20 = 0LL;
do
{
v21 = *(v18 - 1) - 48;
if ( v21 > 9u )
{
v23 = v18 - 1;
goto LABEL_55;
}
v20 = v21 + 10 * v20;
v22 = v18 + 1;
--v19;
v27 = v18++ == v17;
}
while ( !v27 );
v23 = v22 - 1;
if ( v17 == (unsigned __int8 *)v3 )
{
if ( !v19 )
{
LABEL_57:
v28 = 1000000000 * v11 + v20;
result = -(long long)v28;
*a2 = (unsigned long long)v23;
if ( v5 != 45 )
return v28;
return result;
}
LABEL_55:
v11 = v20 + lfactor_0[(int)v23 - (int)v4] * v11;
result = -(long long)v11;
v27 = v5 == 45;
*a2 = (unsigned long long)v23;
goto LABEL_51;
}
v24 = *v23 - 48;
if ( v24 > 9u )
goto LABEL_57;
v25 = v24;
if ( v22 == (_BYTE *)v3 || (v26 = *v22 - 48, v26 > 9u) )
{
result = v25 + 10000000000LL * v11 + 10 * v20;
*a2 = (unsigned long long)v22;
if ( v5 != 45 )
return result;
if ( result <= 0x8000000000000000LL )
return -(long long)result;
LABEL_67:
*a3 = 34;
return -(long long)(v5 != 45) | 0x8000000000000000LL;
}
else
{
*a2 = (unsigned long long)(v22 + 1);
if ( v22 + 1 != (_BYTE *)v3 && (unsigned __int8)(v22[1] - 48) < 0xAu )
goto LABEL_67;
if ( v11 > v9 )
goto LABEL_67;
v29 = v26 + 10 * v25;
if ( v11 == v9 && (v20 > v8 || v20 == v8 && (unsigned int)v29 > v7) )
goto LABEL_67;
return v29 + 100000000000LL * v11 + 100 * v20;
}
}
| my_strtoll10:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
TEST RSI,RSI
JZ 0x0015c4c6
MOV R8,qword ptr [RSI]
MOV RAX,RDI
CMP R8,RDI
JBE 0x0015c4b6
LEA RAX,[0x419a10]
MOV RCX,qword ptr [RAX + 0x40]
MOV RAX,RDI
LAB_0015c49f:
MOVZX R9D,byte ptr [RAX]
TEST byte ptr [RCX + R9*0x1 + 0x1],0x8
JZ 0x0015c4b6
INC RAX
CMP RAX,R8
JNZ 0x0015c49f
MOV RAX,R8
LAB_0015c4b6:
CMP RAX,R8
JZ 0x0015c5a4
MOV CL,byte ptr [RAX]
MOV RBX,R8
JMP 0x0015c512
LAB_0015c4c6:
MOV CL,byte ptr [RDI]
LEA RSI,[RBP + -0x30]
TEST CL,CL
JZ 0x0015c5a4
LEA RAX,[0x419a10]
MOV R8,qword ptr [RAX + 0x40]
LEA RBX,[RDI + 0xffff]
MOV RAX,RDI
LAB_0015c4e9:
MOVZX R9D,CL
TEST byte ptr [R8 + R9*0x1 + 0x1],0x8
JZ 0x0015c507
MOV CL,byte ptr [RAX + 0x1]
INC RAX
INC RBX
TEST CL,CL
JNZ 0x0015c4e9
JMP 0x0015c5a4
LAB_0015c507:
LEA R8,[RAX + 0xffff]
LEA RSI,[RBP + -0x30]
LAB_0015c512:
CMP CL,0x2d
JNZ 0x0015c539
MOV dword ptr [RDX],0xffffffff
INC RAX
CMP RAX,R8
JZ 0x0015c5a4
MOV R9D,0x8
MOV R10D,0x15f797ae
MOV R11D,0x57f5ff8
JMP 0x0015c562
LAB_0015c539:
MOV dword ptr [RDX],0x0
MOV R14B,byte ptr [RAX]
CMP R14B,0x2b
JNZ 0x0015c567
INC RAX
CMP RAX,R8
JZ 0x0015c5a4
MOV R9D,0xf
MOV R10D,0x2bef2f5c
MOV R11D,0xafebff0
LAB_0015c562:
MOV R14B,byte ptr [RAX]
JMP 0x0015c579
LAB_0015c567:
MOV R9D,0xf
MOV R10D,0x2bef2f5c
MOV R11D,0xafebff0
LAB_0015c579:
CMP R14B,0x30
JNZ 0x0015c59a
XOR EDI,EDI
LAB_0015c581:
INC RAX
CMP RAX,R8
JZ 0x0015c6a9
CMP byte ptr [RAX],0x30
JZ 0x0015c581
LEA RBX,[RAX + 0x9]
XOR EDI,EDI
JMP 0x0015c5c2
LAB_0015c59a:
ADD R14B,0xd0
CMP R14B,0x9
JBE 0x0015c5b4
LAB_0015c5a4:
MOV dword ptr [RDX],0x21
MOV qword ptr [RSI],RDI
XOR EAX,EAX
JMP 0x0015c6b9
LAB_0015c5b4:
MOVZX EDI,R14B
MOV RBX,RAX
INC RAX
ADD RBX,0x9
LAB_0015c5c2:
CMP RBX,R8
CMOVA RBX,R8
LAB_0015c5c9:
CMP RAX,RBX
JZ 0x0015c5f0
MOV R14B,byte ptr [RAX]
ADD R14B,0xd0
CMP R14B,0x9
JA 0x0015c6a6
LEA RDI,[RDI + RDI*0x4]
MOVZX R14D,R14B
LEA RDI,[R14 + RDI*0x2]
INC RAX
JMP 0x0015c5c9
LAB_0015c5f0:
CMP RAX,R8
JZ 0x0015c6a6
LEA R12,[RAX + 0x9]
CMP R12,R8
CMOVA R12,R8
LEA R14,[RAX + 0x1]
MOV R13D,0x9
XOR EBX,EBX
LAB_0015c610:
MOV R15B,byte ptr [R14 + -0x1]
ADD R15B,0xd0
CMP R15B,0x9
JA 0x0015c6c4
LEA RBX,[RBX + RBX*0x4]
MOVZX R15D,R15B
LEA RBX,[R15 + RBX*0x2]
LEA R15,[R14 + 0x1]
DEC R13
CMP R14,R12
MOV R14,R15
JNZ 0x0015c610
LEA R14,[R15 + -0x1]
CMP R12,R8
JZ 0x0015c6e9
MOV AL,byte ptr [R14]
ADD AL,0xd0
CMP AL,0x9
JA 0x0015c6ee
MOVZX R14D,AL
CMP R15,R8
JZ 0x0015c66d
MOV AL,byte ptr [R15]
ADD AL,0xd0
CMP AL,0x9
JBE 0x0015c70a
LAB_0015c66d:
MOV RAX,0x2540be400
IMUL RDI,RAX
LEA RAX,[RBX + RBX*0x4]
LEA RAX,[RDI + RAX*0x2]
ADD RAX,R14
MOV qword ptr [RSI],R15
CMP CL,0x2d
JNZ 0x0015c6b9
MOV RSI,-0x8000000000000000
CMP RAX,RSI
JA 0x0015c745
NEG RAX
JMP 0x0015c6b9
LAB_0015c6a6:
MOV RBX,RAX
LAB_0015c6a9:
MOV RAX,RDI
NEG RAX
CMP CL,0x2d
MOV qword ptr [RSI],RBX
LAB_0015c6b5:
CMOVNZ RAX,RDI
LAB_0015c6b9:
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
LAB_0015c6c4:
DEC R14
LAB_0015c6c7:
MOV EDX,R14D
SUB EDX,EAX
LEA RAX,[0x3dcde0]
IMUL RDI,qword ptr [RAX + RDX*0x8]
ADD RDI,RBX
MOV RAX,RDI
NEG RAX
CMP CL,0x2d
MOV qword ptr [RSI],R14
JMP 0x0015c6b5
LAB_0015c6e9:
TEST R13,R13
JNZ 0x0015c6c7
LAB_0015c6ee:
IMUL RAX,RDI,0x3b9aca00
ADD RBX,RAX
MOV RAX,RBX
NEG RAX
CMP CL,0x2d
MOV qword ptr [RSI],R14
CMOVNZ RAX,RBX
JMP 0x0015c6b9
LAB_0015c70a:
LEA R12,[R15 + 0x1]
MOV qword ptr [RSI],R12
CMP R12,R8
JZ 0x0015c724
MOV SIL,byte ptr [R15 + 0x1]
ADD SIL,0xd0
CMP SIL,0xa
JC 0x0015c745
LAB_0015c724:
CMP RDI,R11
JA 0x0015c745
LEA RSI,[R14 + R14*0x4]
MOVZX EAX,AL
LEA RSI,[RAX + RSI*0x2]
CMP RDI,R11
JNZ 0x0015c760
CMP RBX,R10
JA 0x0015c745
JNZ 0x0015c760
CMP ESI,R9D
JBE 0x0015c760
LAB_0015c745:
XOR EAX,EAX
CMP CL,0x2d
SETNZ AL
MOV dword ptr [RDX],0x22
NEG RAX
BTS RAX,0x3f
JMP 0x0015c6b9
LAB_0015c760:
MOV RAX,0x174876e800
IMUL RDI,RAX
IMUL RAX,RBX,0x64
ADD RAX,RDI
ADD RAX,RSI
JMP 0x0015c6b9
|
ulong my_strtoll10(byte *param_1,ulong *param_2,int4 *param_3)
{
byte bVar1;
byte bVar2;
byte *pbVar3;
byte *pbVar4;
byte *pbVar5;
byte bVar6;
byte *pbVar7;
ulong uVar8;
ulong uVar9;
uint uVar10;
ulong uVar11;
ulong uVar12;
long lVar13;
byte *pbVar14;
ulong local_38;
pbVar4 = param_1;
if (param_2 == (ulong *)0x0) {
bVar6 = *param_1;
param_2 = &local_38;
if (bVar6 != 0) {
pbVar7 = param_1 + 0xffff;
do {
if ((PTR_ctype_latin1_00419a50[(ulong)bVar6 + 1] & 8) == 0) {
pbVar3 = pbVar4 + 0xffff;
param_2 = &local_38;
goto LAB_0015c512;
}
bVar6 = pbVar4[1];
pbVar4 = pbVar4 + 1;
pbVar7 = pbVar7 + 1;
} while (bVar6 != 0);
}
goto LAB_0015c5a4;
}
pbVar7 = (byte *)*param_2;
pbVar3 = param_1;
if (param_1 < pbVar7) {
do {
pbVar4 = pbVar3;
if ((PTR_ctype_latin1_00419a50[(ulong)*pbVar3 + 1] & 8) == 0) break;
pbVar3 = pbVar3 + 1;
pbVar4 = pbVar7;
} while (pbVar3 != pbVar7);
}
if (pbVar4 == pbVar7) goto LAB_0015c5a4;
bVar6 = *pbVar4;
pbVar3 = pbVar7;
LAB_0015c512:
if (bVar6 == 0x2d) {
*param_3 = 0xffffffff;
if (pbVar4 + 1 == pbVar3) goto LAB_0015c5a4;
uVar10 = 8;
uVar11 = 0x15f797ae;
uVar12 = 0x57f5ff8;
LAB_0015c562:
pbVar4 = pbVar4 + 1;
bVar2 = *pbVar4;
}
else {
*param_3 = 0;
bVar2 = *pbVar4;
if (bVar2 == 0x2b) {
if (pbVar4 + 1 == pbVar3) goto LAB_0015c5a4;
uVar10 = 0xf;
uVar11 = 0x2bef2f5c;
uVar12 = 0xafebff0;
goto LAB_0015c562;
}
uVar10 = 0xf;
uVar11 = 0x2bef2f5c;
uVar12 = 0xafebff0;
}
if (bVar2 == 0x30) {
uVar9 = 0;
do {
pbVar14 = pbVar4;
pbVar5 = pbVar14 + 1;
if (pbVar5 == pbVar3) goto LAB_0015c6a9;
pbVar4 = pbVar5;
} while (*pbVar5 == 0x30);
pbVar14 = pbVar14 + 10;
uVar9 = 0;
}
else {
if (9 < (byte)(bVar2 - 0x30)) {
LAB_0015c5a4:
*param_3 = 0x21;
*param_2 = (ulong)param_1;
return 0;
}
uVar9 = (ulong)(byte)(bVar2 - 0x30);
pbVar5 = pbVar4 + 1;
pbVar14 = pbVar4 + 9;
}
if (pbVar3 < pbVar14) {
pbVar14 = pbVar3;
}
for (; pbVar7 = pbVar5, pbVar5 != pbVar14; pbVar5 = pbVar5 + 1) {
if (9 < (byte)(*pbVar5 - 0x30)) goto LAB_0015c6a9;
uVar9 = (ulong)(byte)(*pbVar5 - 0x30) + uVar9 * 10;
}
if (pbVar5 != pbVar3) {
pbVar4 = pbVar5 + 9;
if (pbVar3 < pbVar5 + 9) {
pbVar4 = pbVar3;
}
lVar13 = 9;
uVar8 = 0;
pbVar7 = pbVar5 + 1;
do {
pbVar14 = pbVar7;
if (9 < (byte)(pbVar14[-1] - 0x30)) {
pbVar14 = pbVar14 + -1;
goto LAB_0015c6c7;
}
uVar8 = (ulong)(byte)(pbVar14[-1] - 0x30) + uVar8 * 10;
pbVar7 = pbVar14 + 1;
lVar13 = lVar13 + -1;
} while (pbVar14 != pbVar4);
if (pbVar4 == pbVar3) {
if (lVar13 != 0) {
LAB_0015c6c7:
uVar9 = uVar9 * (&lfactor)[(uint)((int)pbVar14 - (int)pbVar5)] + uVar8;
*param_2 = (ulong)pbVar14;
goto LAB_0015c6b5;
}
}
else {
bVar2 = *pbVar14 - 0x30;
if (bVar2 < 10) {
if ((pbVar7 == pbVar3) || (bVar1 = *pbVar7, 9 < (byte)(bVar1 - 0x30))) {
uVar11 = uVar9 * 10000000000 + uVar8 * 10 + (ulong)bVar2;
*param_2 = (ulong)pbVar7;
if (bVar6 != 0x2d) {
return uVar11;
}
if (uVar11 < 0x8000000000000001) {
return -uVar11;
}
}
else {
*param_2 = (ulong)(pbVar14 + 2);
if ((((pbVar14 + 2 == pbVar3) || (9 < (byte)(pbVar14[2] - 0x30))) && (uVar9 <= uVar12)) &&
((lVar13 = (ulong)(byte)(bVar1 - 0x30) + (ulong)bVar2 * 10, uVar9 != uVar12 ||
((uVar8 <= uVar11 && ((uVar8 != uVar11 || ((uint)lVar13 <= uVar10)))))))) {
return uVar8 * 100 + uVar9 * 100000000000 + lVar13;
}
}
*param_3 = 0x22;
return -(ulong)(bVar6 != 0x2d) | 0x8000000000000000;
}
}
uVar8 = uVar8 + uVar9 * 1000000000;
*param_2 = (ulong)pbVar14;
if (bVar6 == 0x2d) {
return -uVar8;
}
return uVar8;
}
LAB_0015c6a9:
*param_2 = (ulong)pbVar7;
LAB_0015c6b5:
if (bVar6 == 0x2d) {
return -uVar9;
}
return uVar9;
}
| |
42,231 | verify_logs_proof | corpus-core[P]colibri-stateless/src/chains/eth/verifier/verify_logs_proof.c | bool verify_logs_proof(verify_ctx_t* ctx) {
uint32_t log_count = ssz_len(ctx->data);
uint32_t block_count = ssz_len(ctx->proof);
// verify each block we have a proof for
for (int i = 0; i < block_count; i++) {
if (verif_block(ctx, ssz_at(ctx->proof, i)) != C4_SUCCESS) return false;
}
// make sure we have a proof for each log
for (int i = 0; i < log_count; i++) {
ssz_ob_t log = ssz_at(ctx->data, i);
if (!has_proof(ctx, ssz_get(&log, "blockNumber").bytes, ssz_get(&log, "transactionIndex").bytes, block_count)) RETURN_VERIFY_ERROR(ctx, "missing log proof!");
}
ctx->success = true;
return true;
} | O0 | c | verify_logs_proof:
pushq %rbp
movq %rsp, %rbp
subq $0xd0, %rsp
movq %rdi, -0x10(%rbp)
movq -0x10(%rbp), %rax
addq $0x38, %rax
movq (%rax), %rcx
movq %rcx, (%rsp)
movq 0x8(%rax), %rcx
movq %rcx, 0x8(%rsp)
movq 0x10(%rax), %rax
movq %rax, 0x10(%rsp)
callq 0x9f1e0
movl %eax, -0x14(%rbp)
movq -0x10(%rbp), %rax
addq $0x20, %rax
movq (%rax), %rcx
movq %rcx, (%rsp)
movq 0x8(%rax), %rcx
movq %rcx, 0x8(%rsp)
movq 0x10(%rax), %rax
movq %rax, 0x10(%rsp)
callq 0x9f1e0
movl %eax, -0x18(%rbp)
movl $0x0, -0x1c(%rbp)
movl -0x1c(%rbp), %eax
cmpl -0x18(%rbp), %eax
jae 0x28faf
movq -0x10(%rbp), %rax
movq %rax, -0xb0(%rbp)
movq -0x10(%rbp), %rax
addq $0x20, %rax
movl -0x1c(%rbp), %esi
leaq -0x38(%rbp), %rdi
movq (%rax), %rcx
movq %rcx, (%rsp)
movq 0x8(%rax), %rcx
movq %rcx, 0x8(%rsp)
movq 0x10(%rax), %rax
movq %rax, 0x10(%rsp)
callq 0x9ef30
movq -0xb0(%rbp), %rdi
leaq -0x38(%rbp), %rax
movq (%rax), %rcx
movq %rcx, (%rsp)
movq 0x8(%rax), %rcx
movq %rcx, 0x8(%rsp)
movq 0x10(%rax), %rax
movq %rax, 0x10(%rsp)
callq 0x290d0
cmpl $0x0, %eax
je 0x28f9f
movb $0x0, -0x1(%rbp)
jmp 0x290b9
jmp 0x28fa1
movl -0x1c(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x1c(%rbp)
jmp 0x28f28
movl $0x0, -0x3c(%rbp)
movl -0x3c(%rbp), %eax
cmpl -0x14(%rbp), %eax
jae 0x290ad
movq -0x10(%rbp), %rax
addq $0x38, %rax
movl -0x3c(%rbp), %esi
leaq -0x58(%rbp), %rdi
movq (%rax), %rcx
movq %rcx, (%rsp)
movq 0x8(%rax), %rcx
movq %rcx, 0x8(%rsp)
movq 0x10(%rax), %rax
movq %rax, 0x10(%rsp)
callq 0x9ef30
movq -0x10(%rbp), %rax
movq %rax, -0xb8(%rbp)
leaq -0x80(%rbp), %rdi
leaq -0x58(%rbp), %rsi
leaq 0xb1421(%rip), %rdx # 0xda42a
callq 0xa05c0
movq -0x80(%rbp), %rax
movq %rax, -0x68(%rbp)
movq -0x78(%rbp), %rax
movq %rax, -0x60(%rbp)
leaq -0xa8(%rbp), %rdi
leaq -0x58(%rbp), %rsi
leaq 0xb16e5(%rip), %rdx # 0xda715
callq 0xa05c0
movq -0xb8(%rbp), %rdi
movq -0xa8(%rbp), %rax
movq %rax, -0x90(%rbp)
movq -0xa0(%rbp), %rax
movq %rax, -0x88(%rbp)
movl -0x18(%rbp), %r9d
movl -0x68(%rbp), %esi
movq -0x60(%rbp), %rdx
movl -0x90(%rbp), %ecx
movq -0x88(%rbp), %r8
callq 0x292d0
testb $0x1, %al
jne 0x2909d
jmp 0x2907b
movq -0x10(%rbp), %rdi
addq $0x70, %rdi
leaq 0xb1f19(%rip), %rsi # 0xdafa3
callq 0xa6370
movq -0x10(%rbp), %rax
movb $0x0, 0x68(%rax)
movb $0x0, -0x1(%rbp)
jmp 0x290b9
jmp 0x2909f
movl -0x3c(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x3c(%rbp)
jmp 0x28fb6
movq -0x10(%rbp), %rax
movb $0x1, 0x68(%rax)
movb $0x1, -0x1(%rbp)
movb -0x1(%rbp), %al
andb $0x1, %al
addq $0xd0, %rsp
popq %rbp
retq
nopw (%rax,%rax)
| verify_logs_proof:
push rbp
mov rbp, rsp
sub rsp, 0D0h
mov [rbp+var_10], rdi
mov rax, [rbp+var_10]
add rax, 38h ; '8'
mov rcx, [rax]
mov [rsp+0D0h+var_D0], rcx
mov rcx, [rax+8]
mov [rsp+0D0h+var_C8], rcx
mov rax, [rax+10h]
mov [rsp+0D0h+var_C0], rax
call ssz_len
mov [rbp+var_14], eax
mov rax, [rbp+var_10]
add rax, 20h ; ' '
mov rcx, [rax]
mov [rsp+0D0h+var_D0], rcx
mov rcx, [rax+8]
mov [rsp+0D0h+var_C8], rcx
mov rax, [rax+10h]
mov [rsp+0D0h+var_C0], rax
call ssz_len
mov [rbp+var_18], eax
mov [rbp+var_1C], 0
loc_28F28:
mov eax, [rbp+var_1C]
cmp eax, [rbp+var_18]
jnb short loc_28FAF
mov rax, [rbp+var_10]
mov [rbp+var_B0], rax
mov rax, [rbp+var_10]
add rax, 20h ; ' '
mov esi, [rbp+var_1C]
lea rdi, [rbp+var_38]
mov rcx, [rax]
mov [rsp+0D0h+var_D0], rcx
mov rcx, [rax+8]
mov [rsp+0D0h+var_C8], rcx
mov rax, [rax+10h]
mov [rsp+0D0h+var_C0], rax
call ssz_at
mov rdi, [rbp+var_B0]
lea rax, [rbp+var_38]
mov rcx, [rax]
mov [rsp+0D0h+var_D0], rcx
mov rcx, [rax+8]
mov [rsp+0D0h+var_C8], rcx
mov rax, [rax+10h]
mov [rsp+0D0h+var_C0], rax
call verif_block
cmp eax, 0
jz short loc_28F9F
mov [rbp+var_1], 0
jmp loc_290B9
loc_28F9F:
jmp short $+2
loc_28FA1:
mov eax, [rbp+var_1C]
add eax, 1
mov [rbp+var_1C], eax
jmp loc_28F28
loc_28FAF:
mov [rbp+var_3C], 0
loc_28FB6:
mov eax, [rbp+var_3C]
cmp eax, [rbp+var_14]
jnb loc_290AD
mov rax, [rbp+var_10]
add rax, 38h ; '8'
mov esi, [rbp+var_3C]
lea rdi, [rbp+var_58]
mov rcx, [rax]
mov [rsp+0D0h+var_D0], rcx
mov rcx, [rax+8]
mov [rsp+0D0h+var_C8], rcx
mov rax, [rax+10h]
mov [rsp+0D0h+var_C0], rax
call ssz_at
mov rax, [rbp+var_10]
mov [rbp+var_B8], rax
lea rdi, [rbp+var_80]
lea rsi, [rbp+var_58]
lea rdx, aEthBlocknumber+4; "blockNumber"
call ssz_get
mov rax, [rbp+var_80]
mov [rbp+var_68], rax
mov rax, [rbp+var_78]
mov [rbp+var_60], rax
lea rdi, [rbp+var_A8]
lea rsi, [rbp+var_58]
lea rdx, aTransactionind; "transactionIndex"
call ssz_get
mov rdi, [rbp+var_B8]
mov rax, [rbp+var_A8]
mov [rbp+var_90], rax
mov rax, [rbp+var_A0]
mov [rbp+var_88], rax
mov r9d, [rbp+var_18]
mov esi, dword ptr [rbp+var_68]
mov rdx, [rbp+var_60]
mov ecx, dword ptr [rbp+var_90]
mov r8, [rbp+var_88]
call has_proof
test al, 1
jnz short loc_2909D
jmp short $+2
loc_2907B:
mov rdi, [rbp+var_10]
add rdi, 70h ; 'p'
lea rsi, aMissingLogProo; "missing log proof!"
call c4_state_add_error
mov rax, [rbp+var_10]
mov byte ptr [rax+68h], 0
mov [rbp+var_1], 0
jmp short loc_290B9
loc_2909D:
jmp short $+2
loc_2909F:
mov eax, [rbp+var_3C]
add eax, 1
mov [rbp+var_3C], eax
jmp loc_28FB6
loc_290AD:
mov rax, [rbp+var_10]
mov byte ptr [rax+68h], 1
mov [rbp+var_1], 1
loc_290B9:
mov al, [rbp+var_1]
and al, 1
add rsp, 0D0h
pop rbp
retn
| char verify_logs_proof(_QWORD *a1, int a2, int a3, long long a4, int a5, int a6)
{
int v6; // edx
int v7; // r8d
int v8; // r9d
int v9; // edx
int v10; // r8d
int v11; // r9d
unsigned int v12; // esi
int v13; // edx
int v14; // r8d
int v15; // r9d
_QWORD *v17; // [rsp+18h] [rbp-B8h]
int v18; // [rsp+20h] [rbp-B0h]
long long v19; // [rsp+28h] [rbp-A8h] BYREF
long long v20; // [rsp+30h] [rbp-A0h]
long long v21; // [rsp+40h] [rbp-90h]
long long v22; // [rsp+48h] [rbp-88h]
_QWORD v23[3]; // [rsp+50h] [rbp-80h] BYREF
long long v24; // [rsp+68h] [rbp-68h]
long long v25; // [rsp+70h] [rbp-60h]
_BYTE v26[28]; // [rsp+78h] [rbp-58h] BYREF
unsigned int j; // [rsp+94h] [rbp-3Ch]
long long v28; // [rsp+98h] [rbp-38h] BYREF
long long v29; // [rsp+A0h] [rbp-30h]
long long v30; // [rsp+A8h] [rbp-28h]
unsigned int i; // [rsp+B4h] [rbp-1Ch]
unsigned int v32; // [rsp+B8h] [rbp-18h]
unsigned int v33; // [rsp+BCh] [rbp-14h]
_QWORD *v34; // [rsp+C0h] [rbp-10h]
v34 = a1;
v33 = ssz_len((_DWORD)a1, a2, a3, a1[8], a5, a6, a1[7], a1[8], a1[9]);
v32 = ssz_len((_DWORD)a1, a2, v6, v34[5], v7, v8, v34[4], v34[5], v34[6]);
for ( i = 0; i < v32; ++i )
{
v18 = (int)v34;
v12 = i;
ssz_at((unsigned int)&v28, i, v9, v34[5], v10, v11, v34[4], v34[5], v34[6]);
if ( (unsigned int)verif_block(v18, v12, v13, v29, v14, v15, v28, v29, v30) )
return 0;
}
for ( j = 0; j < v33; ++j )
{
ssz_at((unsigned int)v26, j, v9, v34[8], v10, v11, v34[7], v34[8], v34[9]);
v17 = v34;
ssz_get(v23, v26, "blockNumber");
v24 = v23[0];
v25 = v23[1];
ssz_get(&v19, v26, "transactionIndex");
v21 = v19;
v22 = v20;
if ( (has_proof(v17, (unsigned int)v24, v25, (unsigned int)v19, v20, v32) & 1) == 0 )
{
c4_state_add_error(v34 + 14, "missing log proof!");
*((_BYTE *)v34 + 104) = 0;
return 0;
}
}
*((_BYTE *)v34 + 104) = 1;
return 1;
}
| verify_logs_proof:
PUSH RBP
MOV RBP,RSP
SUB RSP,0xd0
MOV qword ptr [RBP + -0x10],RDI
MOV RAX,qword ptr [RBP + -0x10]
ADD RAX,0x38
MOV RCX,qword ptr [RAX]
MOV qword ptr [RSP],RCX
MOV RCX,qword ptr [RAX + 0x8]
MOV qword ptr [RSP + 0x8],RCX
MOV RAX,qword ptr [RAX + 0x10]
MOV qword ptr [RSP + 0x10],RAX
CALL 0x0019f1e0
MOV dword ptr [RBP + -0x14],EAX
MOV RAX,qword ptr [RBP + -0x10]
ADD RAX,0x20
MOV RCX,qword ptr [RAX]
MOV qword ptr [RSP],RCX
MOV RCX,qword ptr [RAX + 0x8]
MOV qword ptr [RSP + 0x8],RCX
MOV RAX,qword ptr [RAX + 0x10]
MOV qword ptr [RSP + 0x10],RAX
CALL 0x0019f1e0
MOV dword ptr [RBP + -0x18],EAX
MOV dword ptr [RBP + -0x1c],0x0
LAB_00128f28:
MOV EAX,dword ptr [RBP + -0x1c]
CMP EAX,dword ptr [RBP + -0x18]
JNC 0x00128faf
MOV RAX,qword ptr [RBP + -0x10]
MOV qword ptr [RBP + -0xb0],RAX
MOV RAX,qword ptr [RBP + -0x10]
ADD RAX,0x20
MOV ESI,dword ptr [RBP + -0x1c]
LEA RDI,[RBP + -0x38]
MOV RCX,qword ptr [RAX]
MOV qword ptr [RSP],RCX
MOV RCX,qword ptr [RAX + 0x8]
MOV qword ptr [RSP + 0x8],RCX
MOV RAX,qword ptr [RAX + 0x10]
MOV qword ptr [RSP + 0x10],RAX
CALL 0x0019ef30
MOV RDI,qword ptr [RBP + -0xb0]
LEA RAX,[RBP + -0x38]
MOV RCX,qword ptr [RAX]
MOV qword ptr [RSP],RCX
MOV RCX,qword ptr [RAX + 0x8]
MOV qword ptr [RSP + 0x8],RCX
MOV RAX,qword ptr [RAX + 0x10]
MOV qword ptr [RSP + 0x10],RAX
CALL 0x001290d0
CMP EAX,0x0
JZ 0x00128f9f
MOV byte ptr [RBP + -0x1],0x0
JMP 0x001290b9
LAB_00128f9f:
JMP 0x00128fa1
LAB_00128fa1:
MOV EAX,dword ptr [RBP + -0x1c]
ADD EAX,0x1
MOV dword ptr [RBP + -0x1c],EAX
JMP 0x00128f28
LAB_00128faf:
MOV dword ptr [RBP + -0x3c],0x0
LAB_00128fb6:
MOV EAX,dword ptr [RBP + -0x3c]
CMP EAX,dword ptr [RBP + -0x14]
JNC 0x001290ad
MOV RAX,qword ptr [RBP + -0x10]
ADD RAX,0x38
MOV ESI,dword ptr [RBP + -0x3c]
LEA RDI,[RBP + -0x58]
MOV RCX,qword ptr [RAX]
MOV qword ptr [RSP],RCX
MOV RCX,qword ptr [RAX + 0x8]
MOV qword ptr [RSP + 0x8],RCX
MOV RAX,qword ptr [RAX + 0x10]
MOV qword ptr [RSP + 0x10],RAX
CALL 0x0019ef30
MOV RAX,qword ptr [RBP + -0x10]
MOV qword ptr [RBP + -0xb8],RAX
LEA RDI,[RBP + -0x80]
LEA RSI,[RBP + -0x58]
LEA RDX,[0x1da42a]
CALL 0x001a05c0
MOV RAX,qword ptr [RBP + -0x80]
MOV qword ptr [RBP + -0x68],RAX
MOV RAX,qword ptr [RBP + -0x78]
MOV qword ptr [RBP + -0x60],RAX
LEA RDI,[RBP + -0xa8]
LEA RSI,[RBP + -0x58]
LEA RDX,[0x1da715]
CALL 0x001a05c0
MOV RDI,qword ptr [RBP + -0xb8]
MOV RAX,qword ptr [RBP + -0xa8]
MOV qword ptr [RBP + -0x90],RAX
MOV RAX,qword ptr [RBP + -0xa0]
MOV qword ptr [RBP + -0x88],RAX
MOV R9D,dword ptr [RBP + -0x18]
MOV ESI,dword ptr [RBP + -0x68]
MOV RDX,qword ptr [RBP + -0x60]
MOV ECX,dword ptr [RBP + -0x90]
MOV R8,qword ptr [RBP + -0x88]
CALL 0x001292d0
TEST AL,0x1
JNZ 0x0012909d
JMP 0x0012907b
LAB_0012907b:
MOV RDI,qword ptr [RBP + -0x10]
ADD RDI,0x70
LEA RSI,[0x1dafa3]
CALL 0x001a6370
MOV RAX,qword ptr [RBP + -0x10]
MOV byte ptr [RAX + 0x68],0x0
MOV byte ptr [RBP + -0x1],0x0
JMP 0x001290b9
LAB_0012909d:
JMP 0x0012909f
LAB_0012909f:
MOV EAX,dword ptr [RBP + -0x3c]
ADD EAX,0x1
MOV dword ptr [RBP + -0x3c],EAX
JMP 0x00128fb6
LAB_001290ad:
MOV RAX,qword ptr [RBP + -0x10]
MOV byte ptr [RAX + 0x68],0x1
MOV byte ptr [RBP + -0x1],0x1
LAB_001290b9:
MOV AL,byte ptr [RBP + -0x1]
AND AL,0x1
ADD RSP,0xd0
POP RBP
RET
|
int1 verify_logs_proof(long param_1)
{
long lVar1;
int iVar2;
ulong uVar3;
int8 uVar4;
int8 uVar5;
int8 uVar6;
ulong local_b0;
int8 local_a8;
ulong local_98;
int8 local_90;
ulong local_88;
int8 local_80;
ulong local_70;
int8 local_68;
int1 local_60 [28];
uint local_44;
int1 local_40 [28];
uint local_24;
uint local_20;
uint local_1c;
long local_18;
local_18 = param_1;
local_1c = ssz_len();
local_20 = ssz_len();
for (local_24 = 0; lVar1 = local_18, local_24 < local_20; local_24 = local_24 + 1) {
ssz_at(local_40,local_24);
iVar2 = verif_block(lVar1);
if (iVar2 != 0) {
return 0;
}
}
local_44 = 0;
while( true ) {
if (local_1c <= local_44) {
*(int1 *)(local_18 + 0x68) = 1;
return 1;
}
uVar4 = *(int8 *)(local_18 + 0x38);
uVar5 = *(int8 *)(local_18 + 0x40);
uVar6 = *(int8 *)(local_18 + 0x48);
ssz_at(local_60,local_44);
lVar1 = local_18;
ssz_get(&local_88,local_60,"blockNumber");
local_70 = local_88;
local_68 = local_80;
ssz_get(&local_b0,local_60,"transactionIndex");
local_98 = local_b0;
local_90 = local_a8;
uVar3 = has_proof(lVar1,local_70 & 0xffffffff,local_68,local_b0 & 0xffffffff,local_a8,local_20,
uVar4,uVar5,uVar6);
if ((uVar3 & 1) == 0) break;
local_44 = local_44 + 1;
}
c4_state_add_error(local_18 + 0x70,"missing log proof!");
*(int1 *)(local_18 + 0x68) = 0;
return 0;
}
| |
42,232 | on_chunk_update(ChunkUpdateEvent const&) | untodesu[P]voxelius/game/client/chunk_mesher.cc | static void on_chunk_update(const ChunkUpdateEvent &event)
{
const std::array<chunk_pos, 6> neighbours = {
event.cpos + DIR_NORTH<chunk_pos::value_type>,
event.cpos + DIR_SOUTH<chunk_pos::value_type>,
event.cpos + DIR_EAST<chunk_pos::value_type>,
event.cpos + DIR_WEST<chunk_pos::value_type>,
event.cpos + DIR_UP<chunk_pos::value_type>,
event.cpos + DIR_DOWN<chunk_pos::value_type>,
};
globals::dimension->chunks.emplace_or_replace<NeedsMeshingComponent>(event.chunk->get_entity());
for(const chunk_pos &cpos : neighbours) {
if(const Chunk *chunk = globals::dimension->find_chunk(cpos)) {
globals::dimension->chunks.emplace_or_replace<NeedsMeshingComponent>(chunk->get_entity());
continue;
}
}
} | O0 | cpp | on_chunk_update(ChunkUpdateEvent const&):
pushq %rbp
movq %rsp, %rbp
subq $0xf0, %rsp
movq %rdi, -0x8(%rbp)
movq -0x8(%rbp), %rdi
addq $0x8, %rdi
leaq 0x309b02(%rip), %rsi # 0x36c4d0
callq 0x634e0
movl %edx, -0x58(%rbp)
movq %rax, -0x60(%rbp)
movl -0x58(%rbp), %eax
movl %eax, -0x48(%rbp)
movq -0x60(%rbp), %rax
movq %rax, -0x50(%rbp)
movq -0x8(%rbp), %rdi
addq $0x8, %rdi
leaq 0x309ae5(%rip), %rsi # 0x36c4dc
callq 0x634e0
movl %edx, -0x68(%rbp)
movq %rax, -0x70(%rbp)
movl -0x68(%rbp), %eax
movl %eax, -0x3c(%rbp)
movq -0x70(%rbp), %rax
movq %rax, -0x44(%rbp)
movq -0x8(%rbp), %rdi
addq $0x8, %rdi
leaq 0x309ac8(%rip), %rsi # 0x36c4e8
callq 0x634e0
movl %edx, -0x78(%rbp)
movq %rax, -0x80(%rbp)
movl -0x78(%rbp), %eax
movl %eax, -0x30(%rbp)
movq -0x80(%rbp), %rax
movq %rax, -0x38(%rbp)
movq -0x8(%rbp), %rdi
addq $0x8, %rdi
leaq 0x309aab(%rip), %rsi # 0x36c4f4
callq 0x634e0
movl %edx, -0x88(%rbp)
movq %rax, -0x90(%rbp)
movl -0x88(%rbp), %eax
movl %eax, -0x24(%rbp)
movq -0x90(%rbp), %rax
movq %rax, -0x2c(%rbp)
movq -0x8(%rbp), %rdi
addq $0x8, %rdi
leaq 0x309a8e(%rip), %rsi # 0x36c50c
callq 0x634e0
movl %edx, -0x98(%rbp)
movq %rax, -0xa0(%rbp)
movl -0x98(%rbp), %eax
movl %eax, -0x18(%rbp)
movq -0xa0(%rbp), %rax
movq %rax, -0x20(%rbp)
movq -0x8(%rbp), %rdi
addq $0x8, %rdi
leaq 0x309a4d(%rip), %rsi # 0x36c500
callq 0x634e0
movl %edx, -0xa8(%rbp)
movq %rax, -0xb0(%rbp)
movq -0xb0(%rbp), %rax
movq %rax, -0x14(%rbp)
movl -0xa8(%rbp), %eax
movl %eax, -0xc(%rbp)
leaq 0x4ab750(%rip), %rax # 0x50e230
movq (%rax), %rax
addq $0x8, %rax
movq %rax, -0xe0(%rbp)
movq -0x8(%rbp), %rax
movq 0x18(%rax), %rdi
callq 0x1400c0
movq -0xe0(%rbp), %rdi
movl %eax, %esi
callq 0x717f0
leaq -0x50(%rbp), %rax
movq %rax, -0xb8(%rbp)
movq -0xb8(%rbp), %rdi
callq 0x71890
movq %rax, -0xc0(%rbp)
movq -0xb8(%rbp), %rdi
callq 0x718b0
movq %rax, -0xc8(%rbp)
movq -0xc0(%rbp), %rax
cmpq -0xc8(%rbp), %rax
je 0x62bc9
movq -0xc0(%rbp), %rax
movq %rax, -0xd0(%rbp)
leaq 0x4ab6d1(%rip), %rax # 0x50e230
movq (%rax), %rdi
movq -0xd0(%rbp), %rsi
callq 0x149140
movq %rax, -0xd8(%rbp)
cmpq $0x0, -0xd8(%rbp)
je 0x62bb0
leaq 0x4ab6aa(%rip), %rax # 0x50e230
movq (%rax), %rax
addq $0x8, %rax
movq %rax, -0xe8(%rbp)
movq -0xd8(%rbp), %rdi
callq 0x1400c0
movq -0xe8(%rbp), %rdi
movl %eax, %esi
callq 0x717f0
jmp 0x62bb2
jmp 0x62bb2
movq -0xc0(%rbp), %rax
addq $0xc, %rax
movq %rax, -0xc0(%rbp)
jmp 0x62b3a
addq $0xf0, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
| _ZL15on_chunk_updateRK16ChunkUpdateEvent:
push rbp
mov rbp, rsp
sub rsp, 0F0h
mov [rbp+var_8], rdi
mov rdi, [rbp+var_8]
add rdi, 8
lea rsi, _ZL9DIR_NORTHIiE; DIR_NORTH<int>
call _ZN3glmplIiLNS_9qualifierE0EEENS_3vecILi3ET_XT0_EEERKS4_S6_; glm::operator+<int,(glm::qualifier)0>(glm::vec<3,int,(glm::qualifier)0> const&,glm::vec<3,int,(glm::qualifier)0> const&)
mov [rbp+var_58], edx
mov [rbp+var_60], rax
mov eax, [rbp+var_58]
mov [rbp+var_48], eax
mov rax, [rbp+var_60]
mov [rbp+var_50], rax
mov rdi, [rbp+var_8]
add rdi, 8
lea rsi, _ZL9DIR_SOUTHIiE; DIR_SOUTH<int>
call _ZN3glmplIiLNS_9qualifierE0EEENS_3vecILi3ET_XT0_EEERKS4_S6_; glm::operator+<int,(glm::qualifier)0>(glm::vec<3,int,(glm::qualifier)0> const&,glm::vec<3,int,(glm::qualifier)0> const&)
mov [rbp+var_68], edx
mov [rbp+var_70], rax
mov eax, [rbp+var_68]
mov [rbp+var_3C], eax
mov rax, [rbp+var_70]
mov [rbp+var_44], rax
mov rdi, [rbp+var_8]
add rdi, 8
lea rsi, _ZL8DIR_EASTIiE; DIR_EAST<int>
call _ZN3glmplIiLNS_9qualifierE0EEENS_3vecILi3ET_XT0_EEERKS4_S6_; glm::operator+<int,(glm::qualifier)0>(glm::vec<3,int,(glm::qualifier)0> const&,glm::vec<3,int,(glm::qualifier)0> const&)
mov [rbp+var_78], edx
mov [rbp+var_80], rax
mov eax, [rbp+var_78]
mov [rbp+var_30], eax
mov rax, [rbp+var_80]
mov [rbp+var_38], rax
mov rdi, [rbp+var_8]
add rdi, 8
lea rsi, _ZL8DIR_WESTIiE; DIR_WEST<int>
call _ZN3glmplIiLNS_9qualifierE0EEENS_3vecILi3ET_XT0_EEERKS4_S6_; glm::operator+<int,(glm::qualifier)0>(glm::vec<3,int,(glm::qualifier)0> const&,glm::vec<3,int,(glm::qualifier)0> const&)
mov [rbp+var_88], edx
mov [rbp+var_90], rax
mov eax, [rbp+var_88]
mov [rbp+var_24], eax
mov rax, [rbp+var_90]
mov [rbp+var_2C], rax
mov rdi, [rbp+var_8]
add rdi, 8
lea rsi, _ZL6DIR_UPIiE; DIR_UP<int>
call _ZN3glmplIiLNS_9qualifierE0EEENS_3vecILi3ET_XT0_EEERKS4_S6_; glm::operator+<int,(glm::qualifier)0>(glm::vec<3,int,(glm::qualifier)0> const&,glm::vec<3,int,(glm::qualifier)0> const&)
mov [rbp+var_98], edx
mov [rbp+var_A0], rax
mov eax, [rbp+var_98]
mov [rbp+var_18], eax
mov rax, [rbp+var_A0]
mov [rbp+var_20], rax
mov rdi, [rbp+var_8]
add rdi, 8
lea rsi, _ZL8DIR_DOWNIiE; DIR_DOWN<int>
call _ZN3glmplIiLNS_9qualifierE0EEENS_3vecILi3ET_XT0_EEERKS4_S6_; glm::operator+<int,(glm::qualifier)0>(glm::vec<3,int,(glm::qualifier)0> const&,glm::vec<3,int,(glm::qualifier)0> const&)
mov [rbp+var_A8], edx
mov [rbp+var_B0], rax
mov rax, [rbp+var_B0]
mov [rbp+var_14], rax
mov eax, [rbp+var_A8]
mov [rbp+var_C], eax
lea rax, _ZN7globals9dimensionE; globals::dimension
mov rax, [rax]
add rax, 8
mov [rbp+var_E0], rax
mov rax, [rbp+var_8]
mov rdi, [rax+18h]; this
call _ZNK5Chunk10get_entityEv; Chunk::get_entity(void)
mov rdi, [rbp+var_E0]
mov esi, eax
call _ZN4entt14basic_registryINS_6entityESaIS1_EE18emplace_or_replaceI21NeedsMeshingComponentJEEEDcS1_DpOT0_
lea rax, [rbp+var_50]
mov [rbp+var_B8], rax
mov rdi, [rbp+var_B8]
call _ZNKSt5arrayIN3glm3vecILi3EiLNS0_9qualifierE0EEELm6EE5beginEv; std::array<glm::vec<3,int,(glm::qualifier)0>,6ul>::begin(void)
mov [rbp+var_C0], rax
mov rdi, [rbp+var_B8]
call _ZNKSt5arrayIN3glm3vecILi3EiLNS0_9qualifierE0EEELm6EE3endEv; std::array<glm::vec<3,int,(glm::qualifier)0>,6ul>::end(void)
mov [rbp+var_C8], rax
loc_62B3A:
mov rax, [rbp+var_C0]
cmp rax, [rbp+var_C8]
jz short loc_62BC9
mov rax, [rbp+var_C0]
mov [rbp+var_D0], rax
lea rax, _ZN7globals9dimensionE; globals::dimension
mov rdi, [rax]
mov rsi, [rbp+var_D0]
call _ZNK9Dimension10find_chunkERKN3glm3vecILi3EiLNS0_9qualifierE0EEE; Dimension::find_chunk(glm::vec<3,int,(glm::qualifier)0> const&)
mov [rbp+var_D8], rax
cmp [rbp+var_D8], 0
jz short loc_62BB0
lea rax, _ZN7globals9dimensionE; globals::dimension
mov rax, [rax]
add rax, 8
mov [rbp+var_E8], rax
mov rdi, [rbp+var_D8]; this
call _ZNK5Chunk10get_entityEv; Chunk::get_entity(void)
mov rdi, [rbp+var_E8]
mov esi, eax
call _ZN4entt14basic_registryINS_6entityESaIS1_EE18emplace_or_replaceI21NeedsMeshingComponentJEEEDcS1_DpOT0_
jmp short loc_62BB2
loc_62BB0:
jmp short $+2
loc_62BB2:
mov rax, [rbp+var_C0]
add rax, 0Ch
mov [rbp+var_C0], rax
jmp loc_62B3A
loc_62BC9:
add rsp, 0F0h
pop rbp
retn
| long long on_chunk_update(long long a1)
{
long long v1; // rax
int v2; // edx
long long v3; // rax
int v4; // edx
long long v5; // rax
int v6; // edx
long long v7; // rax
int v8; // edx
long long v9; // rax
int v10; // edx
int v11; // edx
unsigned int entity; // eax
long long result; // rax
unsigned int v14; // eax
long long v15; // [rsp+8h] [rbp-E8h]
long long v16; // [rsp+10h] [rbp-E0h]
Chunk *chunk; // [rsp+18h] [rbp-D8h]
long long v18; // [rsp+28h] [rbp-C8h]
long long v19; // [rsp+30h] [rbp-C0h]
long long v20; // [rsp+A0h] [rbp-50h] BYREF
int v21; // [rsp+A8h] [rbp-48h]
long long v22; // [rsp+ACh] [rbp-44h]
int v23; // [rsp+B4h] [rbp-3Ch]
long long v24; // [rsp+B8h] [rbp-38h]
int v25; // [rsp+C0h] [rbp-30h]
long long v26; // [rsp+C4h] [rbp-2Ch]
int v27; // [rsp+CCh] [rbp-24h]
long long v28; // [rsp+D0h] [rbp-20h]
int v29; // [rsp+D8h] [rbp-18h]
long long v30; // [rsp+DCh] [rbp-14h]
int v31; // [rsp+E4h] [rbp-Ch]
long long v32; // [rsp+E8h] [rbp-8h]
v32 = a1;
v1 = glm::operator+<int,(glm::qualifier)0>(a1 + 8, &DIR_NORTH<int>);
v21 = v2;
v20 = v1;
v3 = glm::operator+<int,(glm::qualifier)0>(a1 + 8, &DIR_SOUTH<int>);
v23 = v4;
v22 = v3;
v5 = glm::operator+<int,(glm::qualifier)0>(a1 + 8, &DIR_EAST<int>);
v25 = v6;
v24 = v5;
v7 = glm::operator+<int,(glm::qualifier)0>(a1 + 8, &DIR_WEST<int>);
v27 = v8;
v26 = v7;
v9 = glm::operator+<int,(glm::qualifier)0>(a1 + 8, &DIR_UP<int>);
v29 = v10;
v28 = v9;
v30 = glm::operator+<int,(glm::qualifier)0>(a1 + 8, &DIR_DOWN<int>);
v31 = v11;
v16 = globals::dimension + 8LL;
entity = Chunk::get_entity(*(Chunk **)(a1 + 24));
entt::basic_registry<entt::entity,std::allocator<entt::entity>>::emplace_or_replace<NeedsMeshingComponent>(
v16,
entity);
v19 = std::array<glm::vec<3,int,(glm::qualifier)0>,6ul>::begin(&v20);
v18 = std::array<glm::vec<3,int,(glm::qualifier)0>,6ul>::end(&v20);
while ( 1 )
{
result = v19;
if ( v19 == v18 )
break;
chunk = (Chunk *)Dimension::find_chunk(globals::dimension, v19);
if ( chunk )
{
v15 = globals::dimension + 8LL;
v14 = Chunk::get_entity(chunk);
entt::basic_registry<entt::entity,std::allocator<entt::entity>>::emplace_or_replace<NeedsMeshingComponent>(
v15,
v14);
}
v19 += 12LL;
}
return result;
}
| on_chunk_update:
PUSH RBP
MOV RBP,RSP
SUB RSP,0xf0
MOV qword ptr [RBP + -0x8],RDI
MOV RDI,qword ptr [RBP + -0x8]
ADD RDI,0x8
LEA RSI,[0x46c4d0]
CALL 0x001634e0
MOV dword ptr [RBP + -0x58],EDX
MOV qword ptr [RBP + -0x60],RAX
MOV EAX,dword ptr [RBP + -0x58]
MOV dword ptr [RBP + -0x48],EAX
MOV RAX,qword ptr [RBP + -0x60]
MOV qword ptr [RBP + -0x50],RAX
MOV RDI,qword ptr [RBP + -0x8]
ADD RDI,0x8
LEA RSI,[0x46c4dc]
CALL 0x001634e0
MOV dword ptr [RBP + -0x68],EDX
MOV qword ptr [RBP + -0x70],RAX
MOV EAX,dword ptr [RBP + -0x68]
MOV dword ptr [RBP + -0x3c],EAX
MOV RAX,qword ptr [RBP + -0x70]
MOV qword ptr [RBP + -0x44],RAX
MOV RDI,qword ptr [RBP + -0x8]
ADD RDI,0x8
LEA RSI,[0x46c4e8]
CALL 0x001634e0
MOV dword ptr [RBP + -0x78],EDX
MOV qword ptr [RBP + -0x80],RAX
MOV EAX,dword ptr [RBP + -0x78]
MOV dword ptr [RBP + -0x30],EAX
MOV RAX,qword ptr [RBP + -0x80]
MOV qword ptr [RBP + -0x38],RAX
MOV RDI,qword ptr [RBP + -0x8]
ADD RDI,0x8
LEA RSI,[0x46c4f4]
CALL 0x001634e0
MOV dword ptr [RBP + -0x88],EDX
MOV qword ptr [RBP + -0x90],RAX
MOV EAX,dword ptr [RBP + -0x88]
MOV dword ptr [RBP + -0x24],EAX
MOV RAX,qword ptr [RBP + -0x90]
MOV qword ptr [RBP + -0x2c],RAX
MOV RDI,qword ptr [RBP + -0x8]
ADD RDI,0x8
LEA RSI,[0x46c50c]
CALL 0x001634e0
MOV dword ptr [RBP + -0x98],EDX
MOV qword ptr [RBP + -0xa0],RAX
MOV EAX,dword ptr [RBP + -0x98]
MOV dword ptr [RBP + -0x18],EAX
MOV RAX,qword ptr [RBP + -0xa0]
MOV qword ptr [RBP + -0x20],RAX
MOV RDI,qword ptr [RBP + -0x8]
ADD RDI,0x8
LEA RSI,[0x46c500]
CALL 0x001634e0
MOV dword ptr [RBP + -0xa8],EDX
MOV qword ptr [RBP + -0xb0],RAX
MOV RAX,qword ptr [RBP + -0xb0]
MOV qword ptr [RBP + -0x14],RAX
MOV EAX,dword ptr [RBP + -0xa8]
MOV dword ptr [RBP + -0xc],EAX
LEA RAX,[0x60e230]
MOV RAX,qword ptr [RAX]
ADD RAX,0x8
MOV qword ptr [RBP + -0xe0],RAX
MOV RAX,qword ptr [RBP + -0x8]
MOV RDI,qword ptr [RAX + 0x18]
CALL 0x002400c0
MOV RDI,qword ptr [RBP + -0xe0]
MOV ESI,EAX
CALL 0x001717f0
LEA RAX,[RBP + -0x50]
MOV qword ptr [RBP + -0xb8],RAX
MOV RDI,qword ptr [RBP + -0xb8]
CALL 0x00171890
MOV qword ptr [RBP + -0xc0],RAX
MOV RDI,qword ptr [RBP + -0xb8]
CALL 0x001718b0
MOV qword ptr [RBP + -0xc8],RAX
LAB_00162b3a:
MOV RAX,qword ptr [RBP + -0xc0]
CMP RAX,qword ptr [RBP + -0xc8]
JZ 0x00162bc9
MOV RAX,qword ptr [RBP + -0xc0]
MOV qword ptr [RBP + -0xd0],RAX
LEA RAX,[0x60e230]
MOV RDI,qword ptr [RAX]
MOV RSI,qword ptr [RBP + -0xd0]
CALL 0x00249140
MOV qword ptr [RBP + -0xd8],RAX
CMP qword ptr [RBP + -0xd8],0x0
JZ 0x00162bb0
LEA RAX,[0x60e230]
MOV RAX,qword ptr [RAX]
ADD RAX,0x8
MOV qword ptr [RBP + -0xe8],RAX
MOV RDI,qword ptr [RBP + -0xd8]
CALL 0x002400c0
MOV RDI,qword ptr [RBP + -0xe8]
MOV ESI,EAX
CALL 0x001717f0
JMP 0x00162bb2
LAB_00162bb0:
JMP 0x00162bb2
LAB_00162bb2:
MOV RAX,qword ptr [RBP + -0xc0]
ADD RAX,0xc
MOV qword ptr [RBP + -0xc0],RAX
JMP 0x00162b3a
LAB_00162bc9:
ADD RSP,0xf0
POP RBP
RET
|
/* on_chunk_update(ChunkUpdateEvent const&) */
void on_chunk_update(ChunkUpdateEvent *param_1)
{
int4 uVar1;
basic_registry<entt::entity,std::allocator<entt::entity>> *pbVar2;
vec *pvVar3;
Chunk *this;
vec *local_c8;
array<glm::vec<3,int,(glm::qualifier)0>,6ul> local_58 [12];
int1 local_4c [12];
int1 local_40 [12];
int1 local_34 [12];
int1 local_28 [12];
int1 local_1c [12];
ChunkUpdateEvent *local_10;
local_10 = param_1;
local_58 = (array<glm::vec<3,int,(glm::qualifier)0>,6ul> [12])
glm::operator+((vec *)(param_1 + 8),(vec *)DIR_NORTH<int>);
local_4c = glm::operator+((vec *)(local_10 + 8),(vec *)DIR_SOUTH<int>);
local_40 = glm::operator+((vec *)(local_10 + 8),(vec *)DIR_EAST<int>);
local_34 = glm::operator+((vec *)(local_10 + 8),(vec *)DIR_WEST<int>);
local_28 = glm::operator+((vec *)(local_10 + 8),(vec *)DIR_UP<int>);
local_1c = glm::operator+((vec *)(local_10 + 8),(vec *)DIR_DOWN<int>);
pbVar2 = (basic_registry<entt::entity,std::allocator<entt::entity>> *)(globals::dimension + 8);
uVar1 = Chunk::get_entity(*(Chunk **)(local_10 + 0x18));
entt::basic_registry<entt::entity,std::allocator<entt::entity>>::
emplace_or_replace<NeedsMeshingComponent>(pbVar2,uVar1);
local_c8 = (vec *)std::array<glm::vec<3,int,(glm::qualifier)0>,6ul>::begin(local_58);
pvVar3 = (vec *)std::array<glm::vec<3,int,(glm::qualifier)0>,6ul>::end(local_58);
for (; local_c8 != pvVar3; local_c8 = local_c8 + 0xc) {
this = (Chunk *)Dimension::find_chunk(globals::dimension,local_c8);
if (this != (Chunk *)0x0) {
pbVar2 = (basic_registry<entt::entity,std::allocator<entt::entity>> *)(globals::dimension + 8)
;
uVar1 = Chunk::get_entity(this);
entt::basic_registry<entt::entity,std::allocator<entt::entity>>::
emplace_or_replace<NeedsMeshingComponent>(pbVar2,uVar1);
}
}
return;
}
| |
42,233 | ggml_compute_forward_add1_bf16_f32(ggml_compute_params const*, ggml_tensor*) | ngxson[P]ggml-easy/ggml/src/ggml-cpu/ops.cpp | static void ggml_compute_forward_add1_bf16_f32(
const ggml_compute_params * params,
ggml_tensor * dst) {
const ggml_tensor * src0 = dst->src[0];
const ggml_tensor * src1 = dst->src[1];
GGML_ASSERT(ggml_are_same_shape(src0, dst));
GGML_ASSERT(ggml_is_scalar(src1));
// scalar to add
const float v = *(float *) src1->data;
const int ith = params->ith;
const int nth = params->nth;
const int nr = ggml_nrows(src0);
GGML_TENSOR_UNARY_OP_LOCALS
GGML_ASSERT(src0->type == GGML_TYPE_BF16);
GGML_ASSERT(src1->type == GGML_TYPE_F32);
GGML_ASSERT(dst->type == GGML_TYPE_BF16);
GGML_ASSERT( nb0 == sizeof(ggml_bf16_t));
GGML_ASSERT(nb00 == sizeof(ggml_bf16_t));
// rows per thread
const int dr = (nr + nth - 1)/nth;
// row range for this thread
const int ir0 = dr*ith;
const int ir1 = MIN(ir0 + dr, nr);
for (int ir = ir0; ir < ir1; ++ir) {
// src0 and dst are same shape => same indices
const int i3 = ir/(ne2*ne1);
const int i2 = (ir - i3*ne2*ne1)/ne1;
const int i1 = (ir - i3*ne2*ne1 - i2*ne1);
ggml_bf16_t * dst_ptr = (ggml_bf16_t *) ((char *) dst->data + i3*nb3 + i2*nb2 + i1*nb1 );
ggml_bf16_t * src0_ptr = (ggml_bf16_t *) ((char *) src0->data + i3*nb03 + i2*nb02 + i1*nb01);
for (int i = 0; i < ne0; i++) {
dst_ptr[i] = GGML_FP32_TO_BF16(GGML_BF16_TO_FP32(src0_ptr[i]) + v);
}
}
} | O1 | cpp | ggml_compute_forward_add1_bf16_f32(ggml_compute_params const*, ggml_tensor*):
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %rsi, %r14
movq %rdi, %r13
movq 0x98(%rsi), %r15
movq 0xa0(%rsi), %r12
movq %r15, %rdi
callq 0xaf20
testb %al, %al
je 0x35297
movq %r12, %rdi
callq 0xaf60
testb %al, %al
je 0x352b6
movq 0xf8(%r12), %rax
vmovss (%rax), %xmm0
vmovss %xmm0, 0x4(%rsp)
movslq (%r13), %rbx
movl 0x4(%r13), %r13d
movq %r15, %rdi
callq 0xaa40
cmpl $0x1e, (%r15)
jne 0x352d5
cmpl $0x0, (%r12)
jne 0x352f1
cmpl $0x1e, (%r14)
vmovss 0x4(%rsp), %xmm1
jne 0x3530d
cmpq $0x2, 0x30(%r14)
jne 0x35329
cmpq $0x2, 0x30(%r15)
jne 0x35345
movq %rax, %rcx
addl %r13d, %eax
decl %eax
cltd
idivl %r13d
cltq
imulq %rax, %rbx
addl %ebx, %eax
cmpl %ecx, %eax
cmovgel %ecx, %eax
cmpl %eax, %ebx
jge 0x35288
movq 0x38(%r15), %rcx
movq %rcx, 0x20(%rsp)
movq 0x40(%r15), %rcx
movq %rcx, 0x18(%rsp)
movq 0x48(%r15), %rcx
movq %rcx, 0x10(%rsp)
movq 0x10(%r14), %r8
movq 0x18(%r14), %r9
movq 0x38(%r14), %rcx
movq %rcx, 0x8(%rsp)
movq 0x40(%r14), %r11
movq 0x48(%r14), %r12
movq 0x20(%r14), %r13
imulq %r9, %r13
movq 0xf8(%r14), %r14
movq 0xf8(%r15), %r15
movslq %eax, %rbp
movq %rbx, %rax
cqto
idivq %r13
movslq %eax, %rcx
movq %r13, %rdx
imulq %rcx, %rdx
movq %rbx, %rax
subq %rdx, %rax
cqto
idivq %r9
testq %r8, %r8
jle 0x3527c
movslq %eax, %r10
movq %rcx, %rdi
imulq %r12, %rdi
movq %r10, %rsi
imulq %r11, %rsi
movslq %edx, %rax
movq %rax, %rdx
imulq 0x8(%rsp), %rdx
addq %rdi, %rdx
addq %r14, %rdx
addq %rsi, %rdx
imulq 0x10(%rsp), %rcx
imulq 0x18(%rsp), %r10
imulq 0x20(%rsp), %rax
addq %rcx, %rax
addq %r15, %rax
addq %r10, %rax
xorl %ecx, %ecx
movzwl (%rax,%rcx,2), %esi
shll $0x10, %esi
vmovd %esi, %xmm0
vaddss %xmm0, %xmm1, %xmm0
vmovd %xmm0, %edi
movl %edi, %r10d
andl $0x7fffffff, %r10d # imm = 0x7FFFFFFF
movl %edi, %esi
shrl $0x10, %esi
cmpl $0x7f800001, %r10d # imm = 0x7F800001
jb 0x35262
orl $0x40, %esi
jmp 0x35270
andl $0x1, %esi
addl %edi, %esi
addl $0x7fff, %esi # imm = 0x7FFF
shrl $0x10, %esi
movw %si, (%rdx,%rcx,2)
incq %rcx
cmpq %rcx, %r8
jne 0x35232
incq %rbx
cmpq %rbp, %rbx
jne 0x351c9
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x1e802(%rip), %rdi # 0x53aa0
leaq 0x142c5(%rip), %rdx # 0x4956a
leaq 0x1e107(%rip), %rcx # 0x533b3
movl $0x618, %esi # imm = 0x618
jmp 0x3535f
leaq 0x1e7e3(%rip), %rdi # 0x53aa0
leaq 0x142a6(%rip), %rdx # 0x4956a
leaq 0x1ea95(%rip), %rcx # 0x53d60
movl $0x619, %esi # imm = 0x619
jmp 0x3535f
leaq 0x1e7c4(%rip), %rdi # 0x53aa0
leaq 0x14287(%rip), %rdx # 0x4956a
leaq 0x1eaf3(%rip), %rcx # 0x53ddd
movl $0x625, %esi # imm = 0x625
jmp 0x3535f
leaq 0x1e7a8(%rip), %rdi # 0x53aa0
leaq 0x1426b(%rip), %rdx # 0x4956a
leaq 0x146d6(%rip), %rcx # 0x499dc
movl $0x626, %esi # imm = 0x626
jmp 0x3535f
leaq 0x1e78c(%rip), %rdi # 0x53aa0
leaq 0x1424f(%rip), %rdx # 0x4956a
leaq 0x1eaf5(%rip), %rcx # 0x53e17
movl $0x627, %esi # imm = 0x627
jmp 0x3535f
leaq 0x1e770(%rip), %rdi # 0x53aa0
leaq 0x14233(%rip), %rdx # 0x4956a
leaq 0x1eaf5(%rip), %rcx # 0x53e33
movl $0x629, %esi # imm = 0x629
jmp 0x3535f
leaq 0x1e754(%rip), %rdi # 0x53aa0
leaq 0x14217(%rip), %rdx # 0x4956a
leaq 0x1eaf4(%rip), %rcx # 0x53e4e
movl $0x62a, %esi # imm = 0x62A
xorl %eax, %eax
callq 0xaf40
| _ZL34ggml_compute_forward_add1_bf16_f32PK19ggml_compute_paramsP11ggml_tensor:
push rbp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 28h
mov r14, rsi
mov r13, rdi
mov r15, [rsi+98h]
mov r12, [rsi+0A0h]
mov rdi, r15
call _ggml_are_same_shape
test al, al
jz loc_35297
mov rdi, r12
call _ggml_is_scalar
test al, al
jz loc_352B6
mov rax, [r12+0F8h]
vmovss xmm0, dword ptr [rax]
vmovss [rsp+58h+var_54], xmm0
movsxd rbx, dword ptr [r13+0]
mov r13d, [r13+4]
mov rdi, r15
call _ggml_nrows
cmp dword ptr [r15], 1Eh
jnz loc_352D5
cmp dword ptr [r12], 0
jnz loc_352F1
cmp dword ptr [r14], 1Eh
vmovss xmm1, [rsp+58h+var_54]
jnz loc_3530D
cmp qword ptr [r14+30h], 2
jnz loc_35329
cmp qword ptr [r15+30h], 2
jnz loc_35345
mov rcx, rax
add eax, r13d
dec eax
cdq
idiv r13d
cdqe
imul rbx, rax
add eax, ebx
cmp eax, ecx
cmovge eax, ecx
cmp ebx, eax
jge loc_35288
mov rcx, [r15+38h]
mov [rsp+58h+var_38], rcx
mov rcx, [r15+40h]
mov [rsp+58h+var_40], rcx
mov rcx, [r15+48h]
mov [rsp+58h+var_48], rcx
mov r8, [r14+10h]
mov r9, [r14+18h]
mov rcx, [r14+38h]
mov [rsp+58h+var_50], rcx
mov r11, [r14+40h]
mov r12, [r14+48h]
mov r13, [r14+20h]
imul r13, r9
mov r14, [r14+0F8h]
mov r15, [r15+0F8h]
movsxd rbp, eax
loc_351C9:
mov rax, rbx
cqo
idiv r13
movsxd rcx, eax
mov rdx, r13
imul rdx, rcx
mov rax, rbx
sub rax, rdx
cqo
idiv r9
test r8, r8
jle loc_3527C
movsxd r10, eax
mov rdi, rcx
imul rdi, r12
mov rsi, r10
imul rsi, r11
movsxd rax, edx
mov rdx, rax
imul rdx, [rsp+58h+var_50]
add rdx, rdi
add rdx, r14
add rdx, rsi
imul rcx, [rsp+58h+var_48]
imul r10, [rsp+58h+var_40]
imul rax, [rsp+58h+var_38]
add rax, rcx
add rax, r15
add rax, r10
xor ecx, ecx
loc_35232:
movzx esi, word ptr [rax+rcx*2]
shl esi, 10h
vmovd xmm0, esi
vaddss xmm0, xmm1, xmm0
vmovd edi, xmm0
mov r10d, edi
and r10d, 7FFFFFFFh
mov esi, edi
shr esi, 10h
cmp r10d, 7F800001h
jb short loc_35262
or esi, 40h
jmp short loc_35270
loc_35262:
and esi, 1
add esi, edi
add esi, 7FFFh
shr esi, 10h
loc_35270:
mov [rdx+rcx*2], si
inc rcx
cmp r8, rcx
jnz short loc_35232
loc_3527C:
inc rbx
cmp rbx, rbp
jnz loc_351C9
loc_35288:
add rsp, 28h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
loc_35297:
lea rdi, aWorkspaceLlm4b_5; "/workspace/llm4binary/github/2025_star3"...
lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed"
lea rcx, aGgmlCanRepeatS+1Fh; "ggml_are_same_shape(src0, dst)"
mov esi, 618h
jmp loc_3535F
loc_352B6:
lea rdi, aWorkspaceLlm4b_5; "/workspace/llm4binary/github/2025_star3"...
lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed"
lea rcx, aGgmlIsScalarSr; "ggml_is_scalar(src1)"
mov esi, 619h
jmp loc_3535F
loc_352D5:
lea rdi, aWorkspaceLlm4b_5; "/workspace/llm4binary/github/2025_star3"...
lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed"
lea rcx, aSrc0TypeGgmlTy_0; "src0->type == GGML_TYPE_BF16"
mov esi, 625h
jmp short loc_3535F
loc_352F1:
lea rdi, aWorkspaceLlm4b_5; "/workspace/llm4binary/github/2025_star3"...
lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed"
lea rcx, aSrc1TypeGgmlTy; "src1->type == GGML_TYPE_F32"
mov esi, 626h
jmp short loc_3535F
loc_3530D:
lea rdi, aWorkspaceLlm4b_5; "/workspace/llm4binary/github/2025_star3"...
lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed"
lea rcx, aDstTypeGgmlTyp_0; "dst->type == GGML_TYPE_BF16"
mov esi, 627h
jmp short loc_3535F
loc_35329:
lea rdi, aWorkspaceLlm4b_5; "/workspace/llm4binary/github/2025_star3"...
lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed"
lea rcx, aNb0SizeofGgmlB; "nb0 == sizeof(ggml_bf16_t)"
mov esi, 629h
jmp short loc_3535F
loc_35345:
lea rdi, aWorkspaceLlm4b_5; "/workspace/llm4binary/github/2025_star3"...
lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed"
lea rcx, aNb00SizeofGgml_0; "nb00 == sizeof(ggml_bf16_t)"
mov esi, 62Ah
loc_3535F:
xor eax, eax
call _ggml_abort
| long long ggml_compute_forward_add1_bf16_f32(int *a1, long long a2)
{
long long v2; // r15
long long v3; // r12
long long v6; // rbx
int v7; // r13d
int v8; // eax
int v10; // ecx
int v11; // eax
long long v12; // rbx
long long result; // rax
long long v14; // r8
long long v15; // r9
long long v16; // r11
long long v17; // r12
long long v18; // r13
long long v19; // r14
long long v20; // r15
long long v21; // rbp
long long v22; // rcx
long long v23; // rdx
long long v24; // r10
long long v25; // rsi
long long v26; // rax
long long v27; // rdx
long long i; // rcx
unsigned int v33; // esi
long long v35; // [rsp+8h] [rbp-50h]
long long v36; // [rsp+10h] [rbp-48h]
long long v37; // [rsp+18h] [rbp-40h]
long long v38; // [rsp+20h] [rbp-38h]
v2 = *(_QWORD *)(a2 + 152);
v3 = *(_QWORD *)(a2 + 160);
if ( !(unsigned __int8)ggml_are_same_shape(v2, a2) )
{
ggml_abort(
"/workspace/llm4binary/github/2025_star3/ngxson[P]ggml-easy/ggml/src/ggml-cpu/ops.cpp",
1560LL,
"GGML_ASSERT(%s) failed",
"ggml_are_same_shape(src0, dst)");
return ggml_compute_forward_acc();
}
if ( !(unsigned __int8)ggml_is_scalar(v3) )
{
ggml_abort(
"/workspace/llm4binary/github/2025_star3/ngxson[P]ggml-easy/ggml/src/ggml-cpu/ops.cpp",
1561LL,
"GGML_ASSERT(%s) failed",
"ggml_is_scalar(src1)");
return ggml_compute_forward_acc();
}
_RAX = *(_QWORD *)(v3 + 248);
__asm
{
vmovss xmm0, dword ptr [rax]
vmovss [rsp+58h+var_54], xmm0
}
v6 = *a1;
v7 = a1[1];
v8 = ggml_nrows(v2);
if ( *(_DWORD *)v2 != 30 )
{
ggml_abort(
"/workspace/llm4binary/github/2025_star3/ngxson[P]ggml-easy/ggml/src/ggml-cpu/ops.cpp",
1573LL,
"GGML_ASSERT(%s) failed",
"src0->type == GGML_TYPE_BF16");
return ggml_compute_forward_acc();
}
if ( *(_DWORD *)v3 )
{
ggml_abort(
"/workspace/llm4binary/github/2025_star3/ngxson[P]ggml-easy/ggml/src/ggml-cpu/ops.cpp",
1574LL,
"GGML_ASSERT(%s) failed",
"src1->type == GGML_TYPE_F32");
return ggml_compute_forward_acc();
}
__asm { vmovss xmm1, [rsp+58h+var_54] }
if ( *(_DWORD *)a2 != 30 )
{
ggml_abort(
"/workspace/llm4binary/github/2025_star3/ngxson[P]ggml-easy/ggml/src/ggml-cpu/ops.cpp",
1575LL,
"GGML_ASSERT(%s) failed",
"dst->type == GGML_TYPE_BF16");
return ggml_compute_forward_acc();
}
if ( *(_QWORD *)(a2 + 48) != 2LL )
{
ggml_abort(
"/workspace/llm4binary/github/2025_star3/ngxson[P]ggml-easy/ggml/src/ggml-cpu/ops.cpp",
1577LL,
"GGML_ASSERT(%s) failed",
"nb0 == sizeof(ggml_bf16_t)");
return ggml_compute_forward_acc();
}
if ( *(_QWORD *)(v2 + 48) != 2LL )
{
ggml_abort(
"/workspace/llm4binary/github/2025_star3/ngxson[P]ggml-easy/ggml/src/ggml-cpu/ops.cpp",
1578LL,
"GGML_ASSERT(%s) failed",
"nb00 == sizeof(ggml_bf16_t)");
return ggml_compute_forward_acc();
}
v10 = v8;
v11 = (v7 + v8 - 1) / v7;
v12 = v11 * v6;
result = (unsigned int)(v12 + v11);
if ( (int)result >= v10 )
result = (unsigned int)v10;
if ( (int)v12 < (int)result )
{
v38 = *(_QWORD *)(v2 + 56);
v37 = *(_QWORD *)(v2 + 64);
v36 = *(_QWORD *)(v2 + 72);
v14 = *(_QWORD *)(a2 + 16);
v15 = *(_QWORD *)(a2 + 24);
v35 = *(_QWORD *)(a2 + 56);
v16 = *(_QWORD *)(a2 + 64);
v17 = *(_QWORD *)(a2 + 72);
v18 = v15 * *(_QWORD *)(a2 + 32);
v19 = *(_QWORD *)(a2 + 248);
v20 = *(_QWORD *)(v2 + 248);
v21 = (int)result;
do
{
v22 = (int)(v12 / v18);
result = (v12 - v22 * v18) / v15;
v23 = (v12 - v22 * v18) % v15;
if ( v14 > 0 )
{
v24 = (int)result;
v25 = v16 * (int)result;
v26 = (int)v23;
v27 = v25 + v19 + v17 * v22 + v35 * (int)v23;
result = v37 * v24 + v20 + v36 * v22 + v38 * v26;
for ( i = 0LL; i != v14; ++i )
{
_ESI = *(unsigned __int16 *)(result + 2 * i) << 16;
__asm
{
vmovd xmm0, esi
vaddss xmm0, xmm1, xmm0
vmovd edi, xmm0
}
if ( (_EDI & 0x7FFFFFFF) < 0x7F800001 )
v33 = (_EDI + (HIWORD(_EDI) & 1) + 0x7FFF) >> 16;
else
LOWORD(v33) = HIWORD(_EDI) | 0x40;
*(_WORD *)(v27 + 2 * i) = v33;
}
}
++v12;
}
while ( v12 != v21 );
}
return result;
}
| ggml_compute_forward_add1_bf16_f32:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x28
MOV R14,RSI
MOV R13,RDI
MOV R15,qword ptr [RSI + 0x98]
MOV R12,qword ptr [RSI + 0xa0]
MOV RDI,R15
CALL 0x0010af20
TEST AL,AL
JZ 0x00135297
MOV RDI,R12
CALL 0x0010af60
TEST AL,AL
JZ 0x001352b6
MOV RAX,qword ptr [R12 + 0xf8]
VMOVSS XMM0,dword ptr [RAX]
VMOVSS dword ptr [RSP + 0x4],XMM0
MOVSXD RBX,dword ptr [R13]
MOV R13D,dword ptr [R13 + 0x4]
MOV RDI,R15
CALL 0x0010aa40
CMP dword ptr [R15],0x1e
JNZ 0x001352d5
CMP dword ptr [R12],0x0
JNZ 0x001352f1
CMP dword ptr [R14],0x1e
VMOVSS XMM1,dword ptr [RSP + 0x4]
JNZ 0x0013530d
CMP qword ptr [R14 + 0x30],0x2
JNZ 0x00135329
CMP qword ptr [R15 + 0x30],0x2
JNZ 0x00135345
MOV RCX,RAX
ADD EAX,R13D
DEC EAX
CDQ
IDIV R13D
CDQE
IMUL RBX,RAX
ADD EAX,EBX
CMP EAX,ECX
CMOVGE EAX,ECX
CMP EBX,EAX
JGE 0x00135288
MOV RCX,qword ptr [R15 + 0x38]
MOV qword ptr [RSP + 0x20],RCX
MOV RCX,qword ptr [R15 + 0x40]
MOV qword ptr [RSP + 0x18],RCX
MOV RCX,qword ptr [R15 + 0x48]
MOV qword ptr [RSP + 0x10],RCX
MOV R8,qword ptr [R14 + 0x10]
MOV R9,qword ptr [R14 + 0x18]
MOV RCX,qword ptr [R14 + 0x38]
MOV qword ptr [RSP + 0x8],RCX
MOV R11,qword ptr [R14 + 0x40]
MOV R12,qword ptr [R14 + 0x48]
MOV R13,qword ptr [R14 + 0x20]
IMUL R13,R9
MOV R14,qword ptr [R14 + 0xf8]
MOV R15,qword ptr [R15 + 0xf8]
MOVSXD RBP,EAX
LAB_001351c9:
MOV RAX,RBX
CQO
IDIV R13
MOVSXD RCX,EAX
MOV RDX,R13
IMUL RDX,RCX
MOV RAX,RBX
SUB RAX,RDX
CQO
IDIV R9
TEST R8,R8
JLE 0x0013527c
MOVSXD R10,EAX
MOV RDI,RCX
IMUL RDI,R12
MOV RSI,R10
IMUL RSI,R11
MOVSXD RAX,EDX
MOV RDX,RAX
IMUL RDX,qword ptr [RSP + 0x8]
ADD RDX,RDI
ADD RDX,R14
ADD RDX,RSI
IMUL RCX,qword ptr [RSP + 0x10]
IMUL R10,qword ptr [RSP + 0x18]
IMUL RAX,qword ptr [RSP + 0x20]
ADD RAX,RCX
ADD RAX,R15
ADD RAX,R10
XOR ECX,ECX
LAB_00135232:
MOVZX ESI,word ptr [RAX + RCX*0x2]
SHL ESI,0x10
VMOVD XMM0,ESI
VADDSS XMM0,XMM1,XMM0
VMOVD EDI,XMM0
MOV R10D,EDI
AND R10D,0x7fffffff
MOV ESI,EDI
SHR ESI,0x10
CMP R10D,0x7f800001
JC 0x00135262
OR ESI,0x40
JMP 0x00135270
LAB_00135262:
AND ESI,0x1
ADD ESI,EDI
ADD ESI,0x7fff
SHR ESI,0x10
LAB_00135270:
MOV word ptr [RDX + RCX*0x2],SI
INC RCX
CMP R8,RCX
JNZ 0x00135232
LAB_0013527c:
INC RBX
CMP RBX,RBP
JNZ 0x001351c9
LAB_00135288:
ADD RSP,0x28
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
LAB_00135297:
LEA RDI,[0x153aa0]
LEA RDX,[0x14956a]
LEA RCX,[0x1533b3]
MOV ESI,0x618
JMP 0x0013535f
LAB_001352b6:
LEA RDI,[0x153aa0]
LEA RDX,[0x14956a]
LEA RCX,[0x153d60]
MOV ESI,0x619
JMP 0x0013535f
LAB_001352d5:
LEA RDI,[0x153aa0]
LEA RDX,[0x14956a]
LEA RCX,[0x153ddd]
MOV ESI,0x625
JMP 0x0013535f
LAB_001352f1:
LEA RDI,[0x153aa0]
LEA RDX,[0x14956a]
LEA RCX,[0x1499dc]
MOV ESI,0x626
JMP 0x0013535f
LAB_0013530d:
LEA RDI,[0x153aa0]
LEA RDX,[0x14956a]
LEA RCX,[0x153e17]
MOV ESI,0x627
JMP 0x0013535f
LAB_00135329:
LEA RDI,[0x153aa0]
LEA RDX,[0x14956a]
LEA RCX,[0x153e33]
MOV ESI,0x629
JMP 0x0013535f
LAB_00135345:
LEA RDI,[0x153aa0]
LEA RDX,[0x14956a]
LEA RCX,[0x153e4e]
MOV ESI,0x62a
LAB_0013535f:
XOR EAX,EAX
CALL 0x0010af40
|
/* ggml_compute_forward_add1_bf16_f32(ggml_compute_params const*, ggml_tensor*) */
void ggml_compute_forward_add1_bf16_f32(ggml_compute_params *param_1,ggml_tensor *param_2)
{
float fVar1;
int iVar2;
int *piVar3;
int *piVar4;
long lVar5;
long lVar6;
long lVar7;
long lVar8;
long lVar9;
long lVar10;
long lVar11;
long lVar12;
long lVar13;
long lVar14;
long lVar15;
float fVar16;
char cVar17;
int iVar18;
int iVar19;
long lVar20;
long lVar21;
long lVar22;
char *pcVar23;
long lVar24;
ushort uVar25;
int8 uVar26;
long lVar27;
piVar3 = *(int **)(param_2 + 0x98);
piVar4 = *(int **)(param_2 + 0xa0);
cVar17 = ggml_are_same_shape(piVar3);
if (cVar17 == '\0') {
pcVar23 = "ggml_are_same_shape(src0, dst)";
uVar26 = 0x618;
}
else {
cVar17 = ggml_is_scalar(piVar4);
if (cVar17 == '\0') {
pcVar23 = "ggml_is_scalar(src1)";
uVar26 = 0x619;
}
else {
fVar1 = **(float **)(piVar4 + 0x3e);
iVar2 = *(int *)param_1;
iVar19 = *(int *)(param_1 + 4);
iVar18 = ggml_nrows(piVar3);
if (*piVar3 == 0x1e) {
if (*piVar4 == 0) {
if (*(int *)param_2 == 0x1e) {
if (*(long *)(param_2 + 0x30) == 2) {
if (*(long *)(piVar3 + 0xc) == 2) {
iVar19 = (iVar18 + iVar19 + -1) / iVar19;
lVar24 = (long)iVar2 * (long)iVar19;
iVar19 = iVar19 + (int)lVar24;
if (iVar18 <= iVar19) {
iVar19 = iVar18;
}
if ((int)lVar24 < iVar19) {
lVar5 = *(long *)(piVar3 + 0xe);
lVar6 = *(long *)(piVar3 + 0x10);
lVar7 = *(long *)(piVar3 + 0x12);
lVar8 = *(long *)(param_2 + 0x10);
lVar9 = *(long *)(param_2 + 0x18);
lVar10 = *(long *)(param_2 + 0x38);
lVar11 = *(long *)(param_2 + 0x40);
lVar12 = *(long *)(param_2 + 0x48);
lVar13 = *(long *)(param_2 + 0x20);
lVar14 = *(long *)(param_2 + 0xf8);
lVar15 = *(long *)(piVar3 + 0x3e);
do {
lVar21 = (long)(int)(lVar24 / (lVar13 * lVar9));
lVar20 = lVar24 - lVar13 * lVar9 * lVar21;
if (0 < lVar8) {
lVar27 = (long)(int)(lVar20 / lVar9);
lVar20 = (long)(int)(lVar20 % lVar9);
lVar22 = 0;
do {
fVar16 = fVar1 + (float)((uint)*(ushort *)
(lVar20 * lVar5 + lVar21 * lVar7 + lVar15 +
lVar27 * lVar6 + lVar22 * 2) << 0x10);
if ((uint)ABS(fVar16) < 0x7f800001) {
uVar25 = (ushort)(((uint)fVar16 >> 0x10 & 1) + (int)fVar16 + 0x7fff >>
0x10);
}
else {
uVar25 = (ushort)((uint)fVar16 >> 0x10) | 0x40;
}
*(ushort *)
(lVar20 * lVar10 + lVar21 * lVar12 + lVar14 + lVar27 * lVar11 + lVar22 * 2)
= uVar25;
lVar22 = lVar22 + 1;
} while (lVar8 != lVar22);
}
lVar24 = lVar24 + 1;
} while (lVar24 != iVar19);
}
return;
}
pcVar23 = "nb00 == sizeof(ggml_bf16_t)";
uVar26 = 0x62a;
}
else {
pcVar23 = "nb0 == sizeof(ggml_bf16_t)";
uVar26 = 0x629;
}
}
else {
pcVar23 = "dst->type == GGML_TYPE_BF16";
uVar26 = 0x627;
}
}
else {
pcVar23 = "src1->type == GGML_TYPE_F32";
uVar26 = 0x626;
}
}
else {
pcVar23 = "src0->type == GGML_TYPE_BF16";
uVar26 = 0x625;
}
}
}
/* WARNING: Subroutine does not return */
ggml_abort("/workspace/llm4binary/github/2025_star3/ngxson[P]ggml-easy/ggml/src/ggml-cpu/ops.cpp",
uVar26,"GGML_ASSERT(%s) failed",pcVar23);
}
| |
42,234 | ggml_compute_forward_add1_bf16_f32(ggml_compute_params const*, ggml_tensor*) | ngxson[P]ggml-easy/ggml/src/ggml-cpu/ops.cpp | static void ggml_compute_forward_add1_bf16_f32(
const ggml_compute_params * params,
ggml_tensor * dst) {
const ggml_tensor * src0 = dst->src[0];
const ggml_tensor * src1 = dst->src[1];
GGML_ASSERT(ggml_are_same_shape(src0, dst));
GGML_ASSERT(ggml_is_scalar(src1));
// scalar to add
const float v = *(float *) src1->data;
const int ith = params->ith;
const int nth = params->nth;
const int nr = ggml_nrows(src0);
GGML_TENSOR_UNARY_OP_LOCALS
GGML_ASSERT(src0->type == GGML_TYPE_BF16);
GGML_ASSERT(src1->type == GGML_TYPE_F32);
GGML_ASSERT(dst->type == GGML_TYPE_BF16);
GGML_ASSERT( nb0 == sizeof(ggml_bf16_t));
GGML_ASSERT(nb00 == sizeof(ggml_bf16_t));
// rows per thread
const int dr = (nr + nth - 1)/nth;
// row range for this thread
const int ir0 = dr*ith;
const int ir1 = MIN(ir0 + dr, nr);
for (int ir = ir0; ir < ir1; ++ir) {
// src0 and dst are same shape => same indices
const int i3 = ir/(ne2*ne1);
const int i2 = (ir - i3*ne2*ne1)/ne1;
const int i1 = (ir - i3*ne2*ne1 - i2*ne1);
ggml_bf16_t * dst_ptr = (ggml_bf16_t *) ((char *) dst->data + i3*nb3 + i2*nb2 + i1*nb1 );
ggml_bf16_t * src0_ptr = (ggml_bf16_t *) ((char *) src0->data + i3*nb03 + i2*nb02 + i1*nb01);
for (int i = 0; i < ne0; i++) {
dst_ptr[i] = GGML_FP32_TO_BF16(GGML_BF16_TO_FP32(src0_ptr[i]) + v);
}
}
} | O3 | cpp | ggml_compute_forward_add1_bf16_f32(ggml_compute_params const*, ggml_tensor*):
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %rsi, %r14
movq %rdi, %r13
movq 0x98(%rsi), %r15
movq 0xa0(%rsi), %r12
movq %r15, %rdi
callq 0xaf20
testb %al, %al
je 0x34f47
movq %r12, %rdi
callq 0xaf60
testb %al, %al
je 0x34f66
movq 0xf8(%r12), %rax
vmovss (%rax), %xmm0
vmovss %xmm0, 0x4(%rsp)
movslq (%r13), %rbx
movl 0x4(%r13), %r13d
movq %r15, %rdi
callq 0xaa40
cmpl $0x1e, (%r15)
jne 0x34f85
cmpl $0x0, (%r12)
jne 0x34fa1
cmpl $0x1e, (%r14)
vmovss 0x4(%rsp), %xmm1
jne 0x34fbd
cmpq $0x2, 0x30(%r14)
jne 0x34fd9
cmpq $0x2, 0x30(%r15)
jne 0x34ff5
movq %rax, %rcx
addl %r13d, %eax
decl %eax
cltd
idivl %r13d
cltq
imulq %rax, %rbx
addl %ebx, %eax
cmpl %ecx, %eax
cmovgel %ecx, %eax
cmpl %eax, %ebx
jge 0x34f38
movq 0x38(%r15), %rcx
movq %rcx, 0x20(%rsp)
movq 0x40(%r15), %rcx
movq %rcx, 0x18(%rsp)
movq 0x48(%r15), %rcx
movq %rcx, 0x10(%rsp)
movq 0x10(%r14), %r8
movq 0x18(%r14), %r9
movq 0x38(%r14), %rcx
movq %rcx, 0x8(%rsp)
movq 0x40(%r14), %r11
movq 0x48(%r14), %r12
movq 0x20(%r14), %r13
imulq %r9, %r13
movq 0xf8(%r14), %r14
movq 0xf8(%r15), %r15
movslq %eax, %rbp
movq %rbx, %rax
cqto
idivq %r13
movslq %eax, %rcx
movq %r13, %rdx
imulq %rcx, %rdx
movq %rbx, %rax
subq %rdx, %rax
cqto
idivq %r9
testq %r8, %r8
jle 0x34f2c
movslq %eax, %r10
movq %rcx, %rdi
imulq %r12, %rdi
movq %r10, %rsi
imulq %r11, %rsi
movslq %edx, %rax
movq %rax, %rdx
imulq 0x8(%rsp), %rdx
addq %rdi, %rdx
addq %r14, %rdx
addq %rsi, %rdx
imulq 0x10(%rsp), %rcx
imulq 0x18(%rsp), %r10
imulq 0x20(%rsp), %rax
addq %rcx, %rax
addq %r15, %rax
addq %r10, %rax
xorl %ecx, %ecx
movzwl (%rax,%rcx,2), %esi
shll $0x10, %esi
vmovd %esi, %xmm0
vaddss %xmm0, %xmm1, %xmm0
vmovd %xmm0, %edi
movl %edi, %r10d
andl $0x7fffffff, %r10d # imm = 0x7FFFFFFF
movl %edi, %esi
shrl $0x10, %esi
cmpl $0x7f800001, %r10d # imm = 0x7F800001
jb 0x34f12
orl $0x40, %esi
jmp 0x34f20
andl $0x1, %esi
addl %edi, %esi
addl $0x7fff, %esi # imm = 0x7FFF
shrl $0x10, %esi
movw %si, (%rdx,%rcx,2)
incq %rcx
cmpq %rcx, %r8
jne 0x34ee2
incq %rbx
cmpq %rbp, %rbx
jne 0x34e79
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x1db52(%rip), %rdi # 0x52aa0
leaq 0x13615(%rip), %rdx # 0x4856a
leaq 0x1d457(%rip), %rcx # 0x523b3
movl $0x618, %esi # imm = 0x618
jmp 0x3500f
leaq 0x1db33(%rip), %rdi # 0x52aa0
leaq 0x135f6(%rip), %rdx # 0x4856a
leaq 0x1dde5(%rip), %rcx # 0x52d60
movl $0x619, %esi # imm = 0x619
jmp 0x3500f
leaq 0x1db14(%rip), %rdi # 0x52aa0
leaq 0x135d7(%rip), %rdx # 0x4856a
leaq 0x1de43(%rip), %rcx # 0x52ddd
movl $0x625, %esi # imm = 0x625
jmp 0x3500f
leaq 0x1daf8(%rip), %rdi # 0x52aa0
leaq 0x135bb(%rip), %rdx # 0x4856a
leaq 0x13a26(%rip), %rcx # 0x489dc
movl $0x626, %esi # imm = 0x626
jmp 0x3500f
leaq 0x1dadc(%rip), %rdi # 0x52aa0
leaq 0x1359f(%rip), %rdx # 0x4856a
leaq 0x1de45(%rip), %rcx # 0x52e17
movl $0x627, %esi # imm = 0x627
jmp 0x3500f
leaq 0x1dac0(%rip), %rdi # 0x52aa0
leaq 0x13583(%rip), %rdx # 0x4856a
leaq 0x1de45(%rip), %rcx # 0x52e33
movl $0x629, %esi # imm = 0x629
jmp 0x3500f
leaq 0x1daa4(%rip), %rdi # 0x52aa0
leaq 0x13567(%rip), %rdx # 0x4856a
leaq 0x1de44(%rip), %rcx # 0x52e4e
movl $0x62a, %esi # imm = 0x62A
xorl %eax, %eax
callq 0xaf40
| _ZL34ggml_compute_forward_add1_bf16_f32PK19ggml_compute_paramsP11ggml_tensor:
push rbp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 28h
mov r14, rsi
mov r13, rdi
mov r15, [rsi+98h]
mov r12, [rsi+0A0h]
mov rdi, r15
call _ggml_are_same_shape
test al, al
jz loc_34F47
mov rdi, r12
call _ggml_is_scalar
test al, al
jz loc_34F66
mov rax, [r12+0F8h]
vmovss xmm0, dword ptr [rax]
vmovss [rsp+58h+var_54], xmm0
movsxd rbx, dword ptr [r13+0]
mov r13d, [r13+4]
mov rdi, r15
call _ggml_nrows
cmp dword ptr [r15], 1Eh
jnz loc_34F85
cmp dword ptr [r12], 0
jnz loc_34FA1
cmp dword ptr [r14], 1Eh
vmovss xmm1, [rsp+58h+var_54]
jnz loc_34FBD
cmp qword ptr [r14+30h], 2
jnz loc_34FD9
cmp qword ptr [r15+30h], 2
jnz loc_34FF5
mov rcx, rax
add eax, r13d
dec eax
cdq
idiv r13d
cdqe
imul rbx, rax
add eax, ebx
cmp eax, ecx
cmovge eax, ecx
cmp ebx, eax
jge loc_34F38
mov rcx, [r15+38h]
mov [rsp+58h+var_38], rcx
mov rcx, [r15+40h]
mov [rsp+58h+var_40], rcx
mov rcx, [r15+48h]
mov [rsp+58h+var_48], rcx
mov r8, [r14+10h]
mov r9, [r14+18h]
mov rcx, [r14+38h]
mov [rsp+58h+var_50], rcx
mov r11, [r14+40h]
mov r12, [r14+48h]
mov r13, [r14+20h]
imul r13, r9
mov r14, [r14+0F8h]
mov r15, [r15+0F8h]
movsxd rbp, eax
loc_34E79:
mov rax, rbx
cqo
idiv r13
movsxd rcx, eax
mov rdx, r13
imul rdx, rcx
mov rax, rbx
sub rax, rdx
cqo
idiv r9
test r8, r8
jle loc_34F2C
movsxd r10, eax
mov rdi, rcx
imul rdi, r12
mov rsi, r10
imul rsi, r11
movsxd rax, edx
mov rdx, rax
imul rdx, [rsp+58h+var_50]
add rdx, rdi
add rdx, r14
add rdx, rsi
imul rcx, [rsp+58h+var_48]
imul r10, [rsp+58h+var_40]
imul rax, [rsp+58h+var_38]
add rax, rcx
add rax, r15
add rax, r10
xor ecx, ecx
loc_34EE2:
movzx esi, word ptr [rax+rcx*2]
shl esi, 10h
vmovd xmm0, esi
vaddss xmm0, xmm1, xmm0
vmovd edi, xmm0
mov r10d, edi
and r10d, 7FFFFFFFh
mov esi, edi
shr esi, 10h
cmp r10d, 7F800001h
jb short loc_34F12
or esi, 40h
jmp short loc_34F20
loc_34F12:
and esi, 1
add esi, edi
add esi, 7FFFh
shr esi, 10h
loc_34F20:
mov [rdx+rcx*2], si
inc rcx
cmp r8, rcx
jnz short loc_34EE2
loc_34F2C:
inc rbx
cmp rbx, rbp
jnz loc_34E79
loc_34F38:
add rsp, 28h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
loc_34F47:
lea rdi, aWorkspaceLlm4b_5; "/workspace/llm4binary/github/2025_star3"...
lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed"
lea rcx, aGgmlCanRepeatS+1Fh; "ggml_are_same_shape(src0, dst)"
mov esi, 618h
jmp loc_3500F
loc_34F66:
lea rdi, aWorkspaceLlm4b_5; "/workspace/llm4binary/github/2025_star3"...
lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed"
lea rcx, aGgmlIsScalarSr; "ggml_is_scalar(src1)"
mov esi, 619h
jmp loc_3500F
loc_34F85:
lea rdi, aWorkspaceLlm4b_5; "/workspace/llm4binary/github/2025_star3"...
lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed"
lea rcx, aSrc0TypeGgmlTy_0; "src0->type == GGML_TYPE_BF16"
mov esi, 625h
jmp short loc_3500F
loc_34FA1:
lea rdi, aWorkspaceLlm4b_5; "/workspace/llm4binary/github/2025_star3"...
lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed"
lea rcx, aSrc1TypeGgmlTy; "src1->type == GGML_TYPE_F32"
mov esi, 626h
jmp short loc_3500F
loc_34FBD:
lea rdi, aWorkspaceLlm4b_5; "/workspace/llm4binary/github/2025_star3"...
lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed"
lea rcx, aDstTypeGgmlTyp_0; "dst->type == GGML_TYPE_BF16"
mov esi, 627h
jmp short loc_3500F
loc_34FD9:
lea rdi, aWorkspaceLlm4b_5; "/workspace/llm4binary/github/2025_star3"...
lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed"
lea rcx, aNb0SizeofGgmlB; "nb0 == sizeof(ggml_bf16_t)"
mov esi, 629h
jmp short loc_3500F
loc_34FF5:
lea rdi, aWorkspaceLlm4b_5; "/workspace/llm4binary/github/2025_star3"...
lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed"
lea rcx, aNb00SizeofGgml_0; "nb00 == sizeof(ggml_bf16_t)"
mov esi, 62Ah
loc_3500F:
xor eax, eax
call _ggml_abort
| long long ggml_compute_forward_add1_bf16_f32(int *a1, long long a2)
{
long long v2; // r15
long long v3; // r12
long long v6; // rbx
int v7; // r13d
int v8; // eax
int v10; // ecx
int v11; // eax
long long v12; // rbx
long long result; // rax
long long v14; // r8
long long v15; // r9
long long v16; // r11
long long v17; // r12
long long v18; // r13
long long v19; // r14
long long v20; // r15
long long v21; // rbp
long long v22; // rcx
long long v23; // rdx
long long v24; // r10
long long v25; // rsi
long long v26; // rax
long long v27; // rdx
long long i; // rcx
unsigned int v33; // esi
long long v35; // [rsp+8h] [rbp-50h]
long long v36; // [rsp+10h] [rbp-48h]
long long v37; // [rsp+18h] [rbp-40h]
long long v38; // [rsp+20h] [rbp-38h]
v2 = *(_QWORD *)(a2 + 152);
v3 = *(_QWORD *)(a2 + 160);
if ( !(unsigned __int8)ggml_are_same_shape(v2, a2) )
{
ggml_abort(
"/workspace/llm4binary/github/2025_star3/ngxson[P]ggml-easy/ggml/src/ggml-cpu/ops.cpp",
1560LL,
"GGML_ASSERT(%s) failed",
"ggml_are_same_shape(src0, dst)");
return ggml_compute_forward_acc();
}
if ( !(unsigned __int8)ggml_is_scalar(v3) )
{
ggml_abort(
"/workspace/llm4binary/github/2025_star3/ngxson[P]ggml-easy/ggml/src/ggml-cpu/ops.cpp",
1561LL,
"GGML_ASSERT(%s) failed",
"ggml_is_scalar(src1)");
return ggml_compute_forward_acc();
}
_RAX = *(_QWORD *)(v3 + 248);
__asm
{
vmovss xmm0, dword ptr [rax]
vmovss [rsp+58h+var_54], xmm0
}
v6 = *a1;
v7 = a1[1];
v8 = ggml_nrows(v2);
if ( *(_DWORD *)v2 != 30 )
{
ggml_abort(
"/workspace/llm4binary/github/2025_star3/ngxson[P]ggml-easy/ggml/src/ggml-cpu/ops.cpp",
1573LL,
"GGML_ASSERT(%s) failed",
"src0->type == GGML_TYPE_BF16");
return ggml_compute_forward_acc();
}
if ( *(_DWORD *)v3 )
{
ggml_abort(
"/workspace/llm4binary/github/2025_star3/ngxson[P]ggml-easy/ggml/src/ggml-cpu/ops.cpp",
1574LL,
"GGML_ASSERT(%s) failed",
"src1->type == GGML_TYPE_F32");
return ggml_compute_forward_acc();
}
__asm { vmovss xmm1, [rsp+58h+var_54] }
if ( *(_DWORD *)a2 != 30 )
{
ggml_abort(
"/workspace/llm4binary/github/2025_star3/ngxson[P]ggml-easy/ggml/src/ggml-cpu/ops.cpp",
1575LL,
"GGML_ASSERT(%s) failed",
"dst->type == GGML_TYPE_BF16");
return ggml_compute_forward_acc();
}
if ( *(_QWORD *)(a2 + 48) != 2LL )
{
ggml_abort(
"/workspace/llm4binary/github/2025_star3/ngxson[P]ggml-easy/ggml/src/ggml-cpu/ops.cpp",
1577LL,
"GGML_ASSERT(%s) failed",
"nb0 == sizeof(ggml_bf16_t)");
return ggml_compute_forward_acc();
}
if ( *(_QWORD *)(v2 + 48) != 2LL )
{
ggml_abort(
"/workspace/llm4binary/github/2025_star3/ngxson[P]ggml-easy/ggml/src/ggml-cpu/ops.cpp",
1578LL,
"GGML_ASSERT(%s) failed",
"nb00 == sizeof(ggml_bf16_t)");
return ggml_compute_forward_acc();
}
v10 = v8;
v11 = (v7 + v8 - 1) / v7;
v12 = v11 * v6;
result = (unsigned int)(v12 + v11);
if ( (int)result >= v10 )
result = (unsigned int)v10;
if ( (int)v12 < (int)result )
{
v38 = *(_QWORD *)(v2 + 56);
v37 = *(_QWORD *)(v2 + 64);
v36 = *(_QWORD *)(v2 + 72);
v14 = *(_QWORD *)(a2 + 16);
v15 = *(_QWORD *)(a2 + 24);
v35 = *(_QWORD *)(a2 + 56);
v16 = *(_QWORD *)(a2 + 64);
v17 = *(_QWORD *)(a2 + 72);
v18 = v15 * *(_QWORD *)(a2 + 32);
v19 = *(_QWORD *)(a2 + 248);
v20 = *(_QWORD *)(v2 + 248);
v21 = (int)result;
do
{
v22 = (int)(v12 / v18);
result = (v12 - v22 * v18) / v15;
v23 = (v12 - v22 * v18) % v15;
if ( v14 > 0 )
{
v24 = (int)result;
v25 = v16 * (int)result;
v26 = (int)v23;
v27 = v25 + v19 + v17 * v22 + v35 * (int)v23;
result = v37 * v24 + v20 + v36 * v22 + v38 * v26;
for ( i = 0LL; i != v14; ++i )
{
_ESI = *(unsigned __int16 *)(result + 2 * i) << 16;
__asm
{
vmovd xmm0, esi
vaddss xmm0, xmm1, xmm0
vmovd edi, xmm0
}
if ( (_EDI & 0x7FFFFFFF) < 0x7F800001 )
v33 = (_EDI + (HIWORD(_EDI) & 1) + 0x7FFF) >> 16;
else
LOWORD(v33) = HIWORD(_EDI) | 0x40;
*(_WORD *)(v27 + 2 * i) = v33;
}
}
++v12;
}
while ( v12 != v21 );
}
return result;
}
| ggml_compute_forward_add1_bf16_f32:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x28
MOV R14,RSI
MOV R13,RDI
MOV R15,qword ptr [RSI + 0x98]
MOV R12,qword ptr [RSI + 0xa0]
MOV RDI,R15
CALL 0x0010af20
TEST AL,AL
JZ 0x00134f47
MOV RDI,R12
CALL 0x0010af60
TEST AL,AL
JZ 0x00134f66
MOV RAX,qword ptr [R12 + 0xf8]
VMOVSS XMM0,dword ptr [RAX]
VMOVSS dword ptr [RSP + 0x4],XMM0
MOVSXD RBX,dword ptr [R13]
MOV R13D,dword ptr [R13 + 0x4]
MOV RDI,R15
CALL 0x0010aa40
CMP dword ptr [R15],0x1e
JNZ 0x00134f85
CMP dword ptr [R12],0x0
JNZ 0x00134fa1
CMP dword ptr [R14],0x1e
VMOVSS XMM1,dword ptr [RSP + 0x4]
JNZ 0x00134fbd
CMP qword ptr [R14 + 0x30],0x2
JNZ 0x00134fd9
CMP qword ptr [R15 + 0x30],0x2
JNZ 0x00134ff5
MOV RCX,RAX
ADD EAX,R13D
DEC EAX
CDQ
IDIV R13D
CDQE
IMUL RBX,RAX
ADD EAX,EBX
CMP EAX,ECX
CMOVGE EAX,ECX
CMP EBX,EAX
JGE 0x00134f38
MOV RCX,qword ptr [R15 + 0x38]
MOV qword ptr [RSP + 0x20],RCX
MOV RCX,qword ptr [R15 + 0x40]
MOV qword ptr [RSP + 0x18],RCX
MOV RCX,qword ptr [R15 + 0x48]
MOV qword ptr [RSP + 0x10],RCX
MOV R8,qword ptr [R14 + 0x10]
MOV R9,qword ptr [R14 + 0x18]
MOV RCX,qword ptr [R14 + 0x38]
MOV qword ptr [RSP + 0x8],RCX
MOV R11,qword ptr [R14 + 0x40]
MOV R12,qword ptr [R14 + 0x48]
MOV R13,qword ptr [R14 + 0x20]
IMUL R13,R9
MOV R14,qword ptr [R14 + 0xf8]
MOV R15,qword ptr [R15 + 0xf8]
MOVSXD RBP,EAX
LAB_00134e79:
MOV RAX,RBX
CQO
IDIV R13
MOVSXD RCX,EAX
MOV RDX,R13
IMUL RDX,RCX
MOV RAX,RBX
SUB RAX,RDX
CQO
IDIV R9
TEST R8,R8
JLE 0x00134f2c
MOVSXD R10,EAX
MOV RDI,RCX
IMUL RDI,R12
MOV RSI,R10
IMUL RSI,R11
MOVSXD RAX,EDX
MOV RDX,RAX
IMUL RDX,qword ptr [RSP + 0x8]
ADD RDX,RDI
ADD RDX,R14
ADD RDX,RSI
IMUL RCX,qword ptr [RSP + 0x10]
IMUL R10,qword ptr [RSP + 0x18]
IMUL RAX,qword ptr [RSP + 0x20]
ADD RAX,RCX
ADD RAX,R15
ADD RAX,R10
XOR ECX,ECX
LAB_00134ee2:
MOVZX ESI,word ptr [RAX + RCX*0x2]
SHL ESI,0x10
VMOVD XMM0,ESI
VADDSS XMM0,XMM1,XMM0
VMOVD EDI,XMM0
MOV R10D,EDI
AND R10D,0x7fffffff
MOV ESI,EDI
SHR ESI,0x10
CMP R10D,0x7f800001
JC 0x00134f12
OR ESI,0x40
JMP 0x00134f20
LAB_00134f12:
AND ESI,0x1
ADD ESI,EDI
ADD ESI,0x7fff
SHR ESI,0x10
LAB_00134f20:
MOV word ptr [RDX + RCX*0x2],SI
INC RCX
CMP R8,RCX
JNZ 0x00134ee2
LAB_00134f2c:
INC RBX
CMP RBX,RBP
JNZ 0x00134e79
LAB_00134f38:
ADD RSP,0x28
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
LAB_00134f47:
LEA RDI,[0x152aa0]
LEA RDX,[0x14856a]
LEA RCX,[0x1523b3]
MOV ESI,0x618
JMP 0x0013500f
LAB_00134f66:
LEA RDI,[0x152aa0]
LEA RDX,[0x14856a]
LEA RCX,[0x152d60]
MOV ESI,0x619
JMP 0x0013500f
LAB_00134f85:
LEA RDI,[0x152aa0]
LEA RDX,[0x14856a]
LEA RCX,[0x152ddd]
MOV ESI,0x625
JMP 0x0013500f
LAB_00134fa1:
LEA RDI,[0x152aa0]
LEA RDX,[0x14856a]
LEA RCX,[0x1489dc]
MOV ESI,0x626
JMP 0x0013500f
LAB_00134fbd:
LEA RDI,[0x152aa0]
LEA RDX,[0x14856a]
LEA RCX,[0x152e17]
MOV ESI,0x627
JMP 0x0013500f
LAB_00134fd9:
LEA RDI,[0x152aa0]
LEA RDX,[0x14856a]
LEA RCX,[0x152e33]
MOV ESI,0x629
JMP 0x0013500f
LAB_00134ff5:
LEA RDI,[0x152aa0]
LEA RDX,[0x14856a]
LEA RCX,[0x152e4e]
MOV ESI,0x62a
LAB_0013500f:
XOR EAX,EAX
CALL 0x0010af40
|
/* ggml_compute_forward_add1_bf16_f32(ggml_compute_params const*, ggml_tensor*) */
void ggml_compute_forward_add1_bf16_f32(ggml_compute_params *param_1,ggml_tensor *param_2)
{
float fVar1;
int iVar2;
int *piVar3;
int *piVar4;
long lVar5;
long lVar6;
long lVar7;
long lVar8;
long lVar9;
long lVar10;
long lVar11;
long lVar12;
long lVar13;
long lVar14;
long lVar15;
float fVar16;
char cVar17;
int iVar18;
int iVar19;
long lVar20;
long lVar21;
long lVar22;
char *pcVar23;
long lVar24;
ushort uVar25;
int8 uVar26;
long lVar27;
piVar3 = *(int **)(param_2 + 0x98);
piVar4 = *(int **)(param_2 + 0xa0);
cVar17 = ggml_are_same_shape(piVar3);
if (cVar17 == '\0') {
pcVar23 = "ggml_are_same_shape(src0, dst)";
uVar26 = 0x618;
}
else {
cVar17 = ggml_is_scalar(piVar4);
if (cVar17 == '\0') {
pcVar23 = "ggml_is_scalar(src1)";
uVar26 = 0x619;
}
else {
fVar1 = **(float **)(piVar4 + 0x3e);
iVar2 = *(int *)param_1;
iVar19 = *(int *)(param_1 + 4);
iVar18 = ggml_nrows(piVar3);
if (*piVar3 == 0x1e) {
if (*piVar4 == 0) {
if (*(int *)param_2 == 0x1e) {
if (*(long *)(param_2 + 0x30) == 2) {
if (*(long *)(piVar3 + 0xc) == 2) {
iVar19 = (iVar18 + iVar19 + -1) / iVar19;
lVar24 = (long)iVar2 * (long)iVar19;
iVar19 = iVar19 + (int)lVar24;
if (iVar18 <= iVar19) {
iVar19 = iVar18;
}
if ((int)lVar24 < iVar19) {
lVar5 = *(long *)(piVar3 + 0xe);
lVar6 = *(long *)(piVar3 + 0x10);
lVar7 = *(long *)(piVar3 + 0x12);
lVar8 = *(long *)(param_2 + 0x10);
lVar9 = *(long *)(param_2 + 0x18);
lVar10 = *(long *)(param_2 + 0x38);
lVar11 = *(long *)(param_2 + 0x40);
lVar12 = *(long *)(param_2 + 0x48);
lVar13 = *(long *)(param_2 + 0x20);
lVar14 = *(long *)(param_2 + 0xf8);
lVar15 = *(long *)(piVar3 + 0x3e);
do {
lVar21 = (long)(int)(lVar24 / (lVar13 * lVar9));
lVar20 = lVar24 - lVar13 * lVar9 * lVar21;
if (0 < lVar8) {
lVar27 = (long)(int)(lVar20 / lVar9);
lVar20 = (long)(int)(lVar20 % lVar9);
lVar22 = 0;
do {
fVar16 = fVar1 + (float)((uint)*(ushort *)
(lVar20 * lVar5 + lVar21 * lVar7 + lVar15 +
lVar27 * lVar6 + lVar22 * 2) << 0x10);
if ((uint)ABS(fVar16) < 0x7f800001) {
uVar25 = (ushort)(((uint)fVar16 >> 0x10 & 1) + (int)fVar16 + 0x7fff >>
0x10);
}
else {
uVar25 = (ushort)((uint)fVar16 >> 0x10) | 0x40;
}
*(ushort *)
(lVar20 * lVar10 + lVar21 * lVar12 + lVar14 + lVar27 * lVar11 + lVar22 * 2)
= uVar25;
lVar22 = lVar22 + 1;
} while (lVar8 != lVar22);
}
lVar24 = lVar24 + 1;
} while (lVar24 != iVar19);
}
return;
}
pcVar23 = "nb00 == sizeof(ggml_bf16_t)";
uVar26 = 0x62a;
}
else {
pcVar23 = "nb0 == sizeof(ggml_bf16_t)";
uVar26 = 0x629;
}
}
else {
pcVar23 = "dst->type == GGML_TYPE_BF16";
uVar26 = 0x627;
}
}
else {
pcVar23 = "src1->type == GGML_TYPE_F32";
uVar26 = 0x626;
}
}
else {
pcVar23 = "src0->type == GGML_TYPE_BF16";
uVar26 = 0x625;
}
}
}
/* WARNING: Subroutine does not return */
ggml_abort("/workspace/llm4binary/github/2025_star3/ngxson[P]ggml-easy/ggml/src/ggml-cpu/ops.cpp",
uVar26,"GGML_ASSERT(%s) failed",pcVar23);
}
| |
42,235 | my_is_printable | eloqsql/strings/ctype.c | static inline my_bool
my_is_printable(my_wc_t wc)
{
/*
Blocks:
U+0000 .. U+001F control
U+0020 .. U+007E printable
U+007F .. U+009F control
U+00A0 .. U+00FF printable
U+0100 .. U+10FFFF As of Unicode-6.1.0, this range does not have any
characters of the "Cc" (Other, control) category.
Should be mostly safe to print.
Except for the surrogate halfs,
which are encoding components, not real characters.
*/
if (wc >= 0x20 && wc <= 0x7E) /* Quickly detect ASCII printable */
return TRUE;
if (wc <= 0x9F) /* The rest of U+0000..U+009F are control characters */
{
/* NL, CR, TAB are Ok */
return (wc == '\r' || wc == '\n' || wc == '\t');
}
/*
Surrogate halfs (when alone) print badly in terminals:
SELECT _ucs2 0xD800;
Let's escape them as well.
*/
if (wc >= 0xD800 && wc <= 0xDFFF)
return FALSE;
return TRUE;
} | O0 | c | my_is_printable:
pushq %rbp
movq %rsp, %rbp
movq %rdi, -0x10(%rbp)
cmpq $0x20, -0x10(%rbp)
jb 0x64e9c
cmpq $0x7e, -0x10(%rbp)
ja 0x64e9c
movb $0x1, -0x1(%rbp)
jmp 0x64ef4
cmpq $0x9f, -0x10(%rbp)
ja 0x64ed6
movb $0x1, %al
cmpq $0xd, -0x10(%rbp)
movb %al, -0x11(%rbp)
je 0x64ec9
movb $0x1, %al
cmpq $0xa, -0x10(%rbp)
movb %al, -0x11(%rbp)
je 0x64ec9
cmpq $0x9, -0x10(%rbp)
sete %al
movb %al, -0x11(%rbp)
movb -0x11(%rbp), %al
andb $0x1, %al
movzbl %al, %eax
movb %al, -0x1(%rbp)
jmp 0x64ef4
cmpq $0xd800, -0x10(%rbp) # imm = 0xD800
jb 0x64ef0
cmpq $0xdfff, -0x10(%rbp) # imm = 0xDFFF
ja 0x64ef0
movb $0x0, -0x1(%rbp)
jmp 0x64ef4
movb $0x1, -0x1(%rbp)
movb -0x1(%rbp), %al
popq %rbp
retq
nopl (%rax)
| my_is_printable:
push rbp
mov rbp, rsp
mov [rbp+var_10], rdi
cmp [rbp+var_10], 20h ; ' '
jb short loc_64E9C
cmp [rbp+var_10], 7Eh ; '~'
ja short loc_64E9C
mov [rbp+var_1], 1
jmp short loc_64EF4
loc_64E9C:
cmp [rbp+var_10], 9Fh
ja short loc_64ED6
mov al, 1
cmp [rbp+var_10], 0Dh
mov [rbp+var_11], al
jz short loc_64EC9
mov al, 1
cmp [rbp+var_10], 0Ah
mov [rbp+var_11], al
jz short loc_64EC9
cmp [rbp+var_10], 9
setz al
mov [rbp+var_11], al
loc_64EC9:
mov al, [rbp+var_11]
and al, 1
movzx eax, al
mov [rbp+var_1], al
jmp short loc_64EF4
loc_64ED6:
cmp [rbp+var_10], 0D800h
jb short loc_64EF0
cmp [rbp+var_10], 0DFFFh
ja short loc_64EF0
mov [rbp+var_1], 0
jmp short loc_64EF4
loc_64EF0:
mov [rbp+var_1], 1
loc_64EF4:
mov al, [rbp+var_1]
pop rbp
retn
| bool my_is_printable(unsigned long long a1)
{
bool v2; // [rsp+1h] [rbp-11h]
if ( a1 >= 0x20 && a1 <= 0x7E )
return 1;
if ( a1 > 0x9F )
return a1 < 0xD800 || a1 > 0xDFFF;
v2 = 1;
if ( a1 != 13 )
{
v2 = 1;
if ( a1 != 10 )
return a1 == 9;
}
return v2;
}
| my_is_printable:
PUSH RBP
MOV RBP,RSP
MOV qword ptr [RBP + -0x10],RDI
CMP qword ptr [RBP + -0x10],0x20
JC 0x00164e9c
CMP qword ptr [RBP + -0x10],0x7e
JA 0x00164e9c
MOV byte ptr [RBP + -0x1],0x1
JMP 0x00164ef4
LAB_00164e9c:
CMP qword ptr [RBP + -0x10],0x9f
JA 0x00164ed6
MOV AL,0x1
CMP qword ptr [RBP + -0x10],0xd
MOV byte ptr [RBP + -0x11],AL
JZ 0x00164ec9
MOV AL,0x1
CMP qword ptr [RBP + -0x10],0xa
MOV byte ptr [RBP + -0x11],AL
JZ 0x00164ec9
CMP qword ptr [RBP + -0x10],0x9
SETZ AL
MOV byte ptr [RBP + -0x11],AL
LAB_00164ec9:
MOV AL,byte ptr [RBP + -0x11]
AND AL,0x1
MOVZX EAX,AL
MOV byte ptr [RBP + -0x1],AL
JMP 0x00164ef4
LAB_00164ed6:
CMP qword ptr [RBP + -0x10],0xd800
JC 0x00164ef0
CMP qword ptr [RBP + -0x10],0xdfff
JA 0x00164ef0
MOV byte ptr [RBP + -0x1],0x0
JMP 0x00164ef4
LAB_00164ef0:
MOV byte ptr [RBP + -0x1],0x1
LAB_00164ef4:
MOV AL,byte ptr [RBP + -0x1]
POP RBP
RET
|
bool my_is_printable(ulong param_1)
{
int1 local_19;
int1 local_9;
if ((param_1 < 0x20) || (0x7e < param_1)) {
if (param_1 < 0xa0) {
local_19 = true;
if ((param_1 != 0xd) && (local_19 = true, param_1 != 10)) {
local_19 = param_1 == 9;
}
local_9 = local_19;
}
else if ((param_1 < 0xd800) || (0xdfff < param_1)) {
local_9 = true;
}
else {
local_9 = false;
}
}
else {
local_9 = true;
}
return local_9;
}
| |
42,236 | ma_log_suffix | eloqsql/storage/maria/ma_key_recover.c | my_bool _ma_log_suffix(MARIA_PAGE *ma_page, uint org_length, uint new_length)
{
LSN lsn;
LEX_CUSTRING log_array[TRANSLOG_INTERNAL_PARTS + 4];
uchar log_data[FILEID_STORE_SIZE + PAGE_STORE_SIZE + 10 + 7 + 2], *log_pos;
uchar *buff= ma_page->buff;
int diff;
uint translog_parts, extra_length;
MARIA_HA *info= ma_page->info;
pgcache_page_no_t page= ma_page->pos / info->s->block_size;
DBUG_ENTER("_ma_log_suffix");
DBUG_PRINT("enter", ("page: %lu org_length: %u new_length: %u",
(ulong) page, org_length, new_length));
DBUG_ASSERT(ma_page->size == new_length);
DBUG_ASSERT(ma_page->org_size == org_length);
log_pos= log_data + FILEID_STORE_SIZE;
page_store(log_pos, page);
log_pos+= PAGE_STORE_SIZE;
/* Store keypage_flag */
*log_pos++= KEY_OP_SET_PAGEFLAG;
*log_pos++= _ma_get_keypage_flag(info->s, buff);
if ((diff= (int) (new_length - org_length)) < 0)
{
log_pos[0]= KEY_OP_DEL_SUFFIX;
int2store(log_pos+1, -diff);
log_pos+= 3;
translog_parts= 1;
extra_length= 0;
}
else
{
log_pos[0]= KEY_OP_ADD_SUFFIX;
int2store(log_pos+1, diff);
log_pos+= 3;
log_array[TRANSLOG_INTERNAL_PARTS + 1].str= buff + org_length;
log_array[TRANSLOG_INTERNAL_PARTS + 1].length= (uint) diff;
translog_parts= 2;
extra_length= (uint) diff;
}
log_array[TRANSLOG_INTERNAL_PARTS + 0].str= log_data;
log_array[TRANSLOG_INTERNAL_PARTS + 0].length= (uint) (log_pos -
log_data);
_ma_log_key_changes(ma_page,
log_array + TRANSLOG_INTERNAL_PARTS + translog_parts,
log_pos, &extra_length, &translog_parts);
/* Remember new page length for future log entires for same page */
ma_page->org_size= ma_page->size;
DBUG_RETURN(translog_write_record(&lsn, LOGREC_REDO_INDEX,
info->trn, info,
(translog_size_t)
log_array[TRANSLOG_INTERNAL_PARTS +
0].length + extra_length,
TRANSLOG_INTERNAL_PARTS + translog_parts,
log_array, log_data, NULL));
} | O3 | c | ma_log_suffix:
pushq %rbp
movq %rsp, %rbp
pushq %rbx
subq $0x98, %rsp
movl %edx, %r10d
movq %fs:0x28, %rax
movq %rax, -0x10(%rbp)
movq (%rdi), %rcx
movq 0x10(%rdi), %r9
movq 0x18(%rdi), %rax
movq (%rcx), %r11
movl 0x7bc(%r11), %ebx
xorl %r8d, %r8d
xorl %edx, %edx
divq %rbx
movl %eax, -0x2e(%rbp)
shrq $0x20, %rax
movb %al, -0x2a(%rbp)
movb $0xa, -0x29(%rbp)
movl 0x744(%r11), %eax
addl $-0x3, %eax
movb (%r9,%rax), %al
movb %al, -0x28(%rbp)
subl %esi, %r10d
js 0x59cb7
leaq -0x24(%rbp), %rax
movl %esi, %edx
addq %rdx, %r9
movq %r9, -0x70(%rbp)
movl %r10d, %edx
movq %rdx, -0x68(%rbp)
movl $0x4, %r9d
movb $0x6, %dl
movl %r10d, %r8d
jmp 0x59cc6
negl %r10d
movl $0x3, %r9d
movb $0x7, %dl
leaq -0x24(%rbp), %rax
leaq -0x30(%rbp), %r11
movb %dl, 0x9(%r11)
movw %r10w, 0xa(%r11)
leaq -0xa0(%rbp), %r10
movq %r11, 0x20(%r10)
subq %r11, %rax
movl %eax, %edx
movq %rdx, 0x28(%r10)
movl 0x20(%rdi), %edx
movl %edx, 0x24(%rdi)
movq 0x8(%rcx), %rdx
addl %eax, %r8d
subq $0x8, %rsp
leaq -0x38(%rbp), %rdi
movl $0xc, %esi
pushq $0x0
pushq %r11
pushq %r10
callq 0x2a8ac
addq $0x20, %rsp
movq %fs:0x28, %rcx
cmpq -0x10(%rbp), %rcx
jne 0x59d29
addq $0x98, %rsp
popq %rbx
popq %rbp
retq
callq 0x29270
| _ma_log_suffix:
push rbp
mov rbp, rsp
push rbx
sub rsp, 98h
mov r10d, edx
mov rax, fs:28h
mov [rbp+var_10], rax
mov rcx, [rdi]
mov r9, [rdi+10h]
mov rax, [rdi+18h]
mov r11, [rcx]
mov ebx, [r11+7BCh]
xor r8d, r8d
xor edx, edx
div rbx
mov [rbp+var_2E], eax
shr rax, 20h
mov [rbp+var_2A], al
mov [rbp+var_29], 0Ah
mov eax, [r11+744h]
add eax, 0FFFFFFFDh
mov al, [r9+rax]
mov [rbp+var_28], al
sub r10d, esi
js short loc_59CB7
lea rax, [rbp+var_24]
mov edx, esi
add r9, rdx
mov [rbp+var_70], r9
mov edx, r10d
mov [rbp+var_68], rdx
mov r9d, 4
mov dl, 6
mov r8d, r10d
jmp short loc_59CC6
loc_59CB7:
neg r10d
mov r9d, 3
mov dl, 7
lea rax, [rbp+var_24]
loc_59CC6:
lea r11, [rbp+var_30]
mov [r11+9], dl
mov [r11+0Ah], r10w
lea r10, [rbp+var_A0]
mov [r10+20h], r11
sub rax, r11
mov edx, eax
mov [r10+28h], rdx
mov edx, [rdi+20h]
mov [rdi+24h], edx
mov rdx, [rcx+8]
add r8d, eax
sub rsp, 8
lea rdi, [rbp+var_38]
mov esi, 0Ch
push 0
push r11
push r10
call translog_write_record
add rsp, 20h
mov rcx, fs:28h
cmp rcx, [rbp+var_10]
jnz short loc_59D29
add rsp, 98h
pop rbx
pop rbp
retn
loc_59D29:
call ___stack_chk_fail
| long long ma_log_suffix(long long **a1, unsigned int a2, int a3)
{
long long *v3; // rcx
long long *v4; // r9
long long v5; // r11
unsigned int v6; // r8d
unsigned long long v7; // rax
unsigned int v8; // r10d
int v9; // r9d
char v10; // dl
__int128 v12; // [rsp+0h] [rbp-A0h] BYREF
__int16 *v13; // [rsp+20h] [rbp-80h]
long long v14; // [rsp+28h] [rbp-78h]
long long v15; // [rsp+30h] [rbp-70h]
long long v16; // [rsp+38h] [rbp-68h]
_BYTE v17[8]; // [rsp+68h] [rbp-38h] BYREF
__int16 v18; // [rsp+70h] [rbp-30h] BYREF
int v19; // [rsp+72h] [rbp-2Eh]
char v20; // [rsp+76h] [rbp-2Ah]
char v21; // [rsp+77h] [rbp-29h]
char v22; // [rsp+78h] [rbp-28h]
char v23; // [rsp+79h] [rbp-27h]
__int16 v24; // [rsp+7Ah] [rbp-26h]
_BYTE v25[20]; // [rsp+7Ch] [rbp-24h] BYREF
unsigned long long v26; // [rsp+90h] [rbp-10h]
v26 = __readfsqword(0x28u);
v3 = *a1;
v4 = a1[2];
v5 = **a1;
v6 = 0;
v7 = (unsigned long long)a1[3] / *(unsigned int *)(v5 + 1980);
v19 = v7;
v20 = BYTE4(v7);
v21 = 10;
v22 = *((_BYTE *)v4 + (unsigned int)(*(_DWORD *)(v5 + 1860) - 3));
v8 = a3 - a2;
if ( (int)(a3 - a2) < 0 )
{
LOWORD(v8) = a2 - a3;
v9 = 3;
v10 = 7;
}
else
{
v15 = (long long)v4 + a2;
v16 = v8;
v9 = 4;
v10 = 6;
v6 = v8;
}
v23 = v10;
v24 = v8;
v13 = &v18;
v14 = (unsigned int)(v25 - (_BYTE *)&v18);
*((_DWORD *)a1 + 9) = *((_DWORD *)a1 + 8);
return translog_write_record(
(unsigned long long)v17,
&byte_9[3],
v3[1],
v3,
(unsigned int)(v25 - (_BYTE *)&v18) + v6,
v9,
&v12,
&v18,
0LL);
}
| _ma_log_suffix:
PUSH RBP
MOV RBP,RSP
PUSH RBX
SUB RSP,0x98
MOV R10D,EDX
MOV RAX,qword ptr FS:[0x28]
MOV qword ptr [RBP + -0x10],RAX
MOV RCX,qword ptr [RDI]
MOV R9,qword ptr [RDI + 0x10]
MOV RAX,qword ptr [RDI + 0x18]
MOV R11,qword ptr [RCX]
MOV EBX,dword ptr [R11 + 0x7bc]
XOR R8D,R8D
XOR EDX,EDX
DIV RBX
MOV dword ptr [RBP + -0x2e],EAX
SHR RAX,0x20
MOV byte ptr [RBP + -0x2a],AL
MOV byte ptr [RBP + -0x29],0xa
MOV EAX,dword ptr [R11 + 0x744]
ADD EAX,-0x3
MOV AL,byte ptr [R9 + RAX*0x1]
MOV byte ptr [RBP + -0x28],AL
SUB R10D,ESI
JS 0x00159cb7
LEA RAX,[RBP + -0x24]
MOV EDX,ESI
ADD R9,RDX
MOV qword ptr [RBP + -0x70],R9
MOV EDX,R10D
MOV qword ptr [RBP + -0x68],RDX
MOV R9D,0x4
MOV DL,0x6
MOV R8D,R10D
JMP 0x00159cc6
LAB_00159cb7:
NEG R10D
MOV R9D,0x3
MOV DL,0x7
LEA RAX,[RBP + -0x24]
LAB_00159cc6:
LEA R11,[RBP + -0x30]
MOV byte ptr [R11 + 0x9],DL
MOV word ptr [R11 + 0xa],R10W
LEA R10,[RBP + -0xa0]
MOV qword ptr [R10 + 0x20],R11
SUB RAX,R11
MOV EDX,EAX
MOV qword ptr [R10 + 0x28],RDX
MOV EDX,dword ptr [RDI + 0x20]
MOV dword ptr [RDI + 0x24],EDX
MOV RDX,qword ptr [RCX + 0x8]
ADD R8D,EAX
SUB RSP,0x8
LEA RDI,[RBP + -0x38]
MOV ESI,0xc
PUSH 0x0
PUSH R11
PUSH R10
CALL 0x0012a8ac
ADD RSP,0x20
MOV RCX,qword ptr FS:[0x28]
CMP RCX,qword ptr [RBP + -0x10]
JNZ 0x00159d29
ADD RSP,0x98
POP RBX
POP RBP
RET
LAB_00159d29:
CALL 0x00129270
|
void _ma_log_suffix(long *param_1,uint param_2,int param_3)
{
long *plVar1;
int1 auVar2 [16];
int iVar3;
uint uVar4;
int8 uVar5;
uint uVar6;
long in_FS_OFFSET;
int1 local_a8 [32];
int1 *local_88;
ulong local_80;
long local_78;
ulong local_70;
int1 local_40 [8];
int1 local_38 [2];
int4 local_36;
int1 local_32;
int1 local_31;
int1 local_30;
int1 local_2f;
int2 local_2e;
int1 local_2c [20];
long local_18;
local_18 = *(long *)(in_FS_OFFSET + 0x28);
plVar1 = (long *)*param_1;
uVar4 = 0;
auVar2._8_8_ = 0;
auVar2._0_8_ = param_1[3];
auVar2 = auVar2 / ZEXT416(*(uint *)(*plVar1 + 0x7bc));
local_36 = auVar2._0_4_;
local_32 = auVar2[4];
local_31 = 10;
local_30 = *(int1 *)(param_1[2] + (ulong)(*(int *)(*plVar1 + 0x744) - 3));
uVar6 = param_3 - param_2;
if ((int)uVar6 < 0) {
uVar6 = -uVar6;
uVar5 = 3;
local_2f = 7;
iVar3 = (int)local_2c;
}
else {
iVar3 = (int)local_2c;
local_78 = param_1[2] + (ulong)param_2;
local_70 = (ulong)uVar6;
uVar5 = 4;
local_2f = 6;
uVar4 = uVar6;
}
local_88 = local_38;
local_2e = (int2)uVar6;
uVar6 = iVar3 - (int)local_88;
local_80 = (ulong)uVar6;
*(int *)((long)param_1 + 0x24) = (int)param_1[4];
translog_write_record(local_40,0xc,plVar1[1],plVar1,uVar4 + uVar6,uVar5,local_a8,local_88,0);
if (*(long *)(in_FS_OFFSET + 0x28) == local_18) {
return;
}
/* WARNING: Subroutine does not return */
__stack_chk_fail();
}
| |
42,237 | mi_checksum | eloqsql/storage/myisam/mi_checksum.c | ha_checksum mi_checksum(MI_INFO *info, const uchar *buf)
{
ha_checksum crc=0;
const uchar *record= buf;
MI_COLUMNDEF *column= info->s->rec;
MI_COLUMNDEF *column_end= column+ info->s->base.fields;
my_bool skip_null_bits= MY_TEST(info->s->options & HA_OPTION_NULL_FIELDS);
for ( ; column != column_end ; buf+= column++->length)
{
const uchar *pos;
ulong length;
if ((record[column->null_pos] & column->null_bit) &&
skip_null_bits)
continue; /* Null field */
switch (column->type) {
case FIELD_BLOB:
{
length=_mi_calc_blob_length(column->length-
portable_sizeof_char_ptr,
buf);
memcpy((void*) &pos, buf+column->length - portable_sizeof_char_ptr,
sizeof(char*));
break;
}
case FIELD_VARCHAR:
{
uint pack_length= HA_VARCHAR_PACKLENGTH(column->length-1);
if (pack_length == 1)
length= (ulong) *(uchar*) buf;
else
length= uint2korr(buf);
pos= buf+pack_length;
break;
}
default:
length=column->length;
pos=buf;
break;
}
crc=my_checksum(crc, pos ? pos : (uchar*) "", length);
}
return crc;
} | O3 | c | mi_checksum:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq (%rdi), %rcx
movq 0x168(%rcx), %rax
testq %rax, %rax
je 0x8ec7d
movq 0x230(%rcx), %r12
movq 0x318(%rcx), %rcx
shlq $0x4, %rax
leaq (%rax,%rax,2), %r13
xorl %ebx, %ebx
andl $0x400, %ecx # imm = 0x400
movq %rcx, -0x38(%rbp)
movq %rsi, %r14
xorl %r15d, %r15d
movq %rsi, -0x30(%rbp)
movzwl 0xe(%r12,%rbx), %eax
movb 0xc(%r12,%rbx), %cl
testb %cl, (%rsi,%rax)
je 0x8ebf3
cmpq $0x0, -0x38(%rbp)
jne 0x8ec65
movl (%r12,%rbx), %eax
movzwl 0x4(%r12,%rbx), %edx
cmpl $0x8, %eax
je 0x8ec24
cmpl $0x4, %eax
jne 0x8ec37
addl $-0x8, %edx
movl %edx, %edi
movq %r14, %rsi
callq 0x785c1
movq %rax, %rdx
movzwl 0x4(%r12,%rbx), %eax
movq -0x8(%r14,%rax), %rsi
jmp 0x8ec48
cmpl $0x100, %edx # imm = 0x100
ja 0x8ec3c
movzbl (%r14), %edx
movl $0x1, %esi
jmp 0x8ec45
movq %r14, %rsi
jmp 0x8ec48
movzwl (%r14), %edx
movl $0x2, %esi
addq %r14, %rsi
testq %rsi, %rsi
leaq 0x50040(%rip), %rax # 0xdec92
cmoveq %rax, %rsi
movl %r15d, %edi
callq 0xa7838
movl %eax, %r15d
movq -0x30(%rbp), %rsi
movzwl 0x4(%r12,%rbx), %eax
addq %rax, %r14
addq $0x30, %rbx
cmpq %rbx, %r13
jne 0x8ebdc
jmp 0x8ec80
xorl %r15d, %r15d
movl %r15d, %eax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
| mi_checksum:
push rbp
mov rbp, rsp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 18h
mov rcx, [rdi]
mov rax, [rcx+168h]
test rax, rax
jz loc_8EC7D
mov r12, [rcx+230h]
mov rcx, [rcx+318h]
shl rax, 4
lea r13, [rax+rax*2]
xor ebx, ebx
and ecx, 400h
mov [rbp+var_38], rcx
mov r14, rsi
xor r15d, r15d
mov [rbp+var_30], rsi
loc_8EBDC:
movzx eax, word ptr [r12+rbx+0Eh]
mov cl, [r12+rbx+0Ch]
test [rsi+rax], cl
jz short loc_8EBF3
cmp [rbp+var_38], 0
jnz short loc_8EC65
loc_8EBF3:
mov eax, [r12+rbx]
movzx edx, word ptr [r12+rbx+4]
cmp eax, 8
jz short loc_8EC24
cmp eax, 4
jnz short loc_8EC37
add edx, 0FFFFFFF8h
mov edi, edx
mov rsi, r14
call _mi_calc_blob_length
mov rdx, rax
movzx eax, word ptr [r12+rbx+4]
mov rsi, [r14+rax-8]
jmp short loc_8EC48
loc_8EC24:
cmp edx, 100h
ja short loc_8EC3C
movzx edx, byte ptr [r14]
mov esi, 1
jmp short loc_8EC45
loc_8EC37:
mov rsi, r14
jmp short loc_8EC48
loc_8EC3C:
movzx edx, word ptr [r14]
mov esi, 2
loc_8EC45:
add rsi, r14
loc_8EC48:
test rsi, rsi
lea rax, asc_DEC8E+4; ""
cmovz rsi, rax
mov edi, r15d
call my_checksum
mov r15d, eax
mov rsi, [rbp+var_30]
loc_8EC65:
movzx eax, word ptr [r12+rbx+4]
add r14, rax
add rbx, 30h ; '0'
cmp r13, rbx
jnz loc_8EBDC
jmp short loc_8EC80
loc_8EC7D:
xor r15d, r15d
loc_8EC80:
mov eax, r15d
add rsp, 18h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
| long long mi_checksum(long long *a1, unsigned __int8 *a2)
{
long long v2; // rcx
long long v3; // rax
long long v4; // r12
long long v5; // r13
long long v6; // rbx
unsigned __int8 *v7; // r14
unsigned int v8; // r15d
int v9; // eax
unsigned long long v10; // rdx
char *v11; // rsi
long long v12; // rsi
long long v14; // [rsp+8h] [rbp-38h]
unsigned __int8 *v15; // [rsp+10h] [rbp-30h]
v2 = *a1;
v3 = *(_QWORD *)(*a1 + 360);
if ( v3 )
{
v4 = *(_QWORD *)(v2 + 560);
v5 = 48 * v3;
v6 = 0LL;
v14 = *(_QWORD *)(v2 + 792) & 0x400LL;
v7 = a2;
v8 = 0;
v15 = a2;
do
{
if ( (*(_BYTE *)(v4 + v6 + 12) & a2[*(unsigned __int16 *)(v4 + v6 + 14)]) == 0 || !v14 )
{
v9 = *(_DWORD *)(v4 + v6);
v10 = *(unsigned __int16 *)(v4 + v6 + 4);
if ( v9 == 8 )
{
if ( (unsigned int)v10 > 0x100 )
{
v10 = *(unsigned __int16 *)v7;
v12 = 2LL;
}
else
{
v10 = *v7;
v12 = 1LL;
}
v11 = (char *)&v7[v12];
}
else if ( v9 == 4 )
{
v10 = mi_calc_blob_length((int)v10 - 8, v7);
v11 = *(char **)&v7[*(unsigned __int16 *)(v4 + v6 + 4) - 8];
}
else
{
v11 = (char *)v7;
}
if ( !v11 )
v11 = "";
v8 = my_checksum(v8, v11, v10);
a2 = v15;
}
v7 += *(unsigned __int16 *)(v4 + v6 + 4);
v6 += 48LL;
}
while ( v5 != v6 );
}
else
{
return 0;
}
return v8;
}
| mi_checksum:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x18
MOV RCX,qword ptr [RDI]
MOV RAX,qword ptr [RCX + 0x168]
TEST RAX,RAX
JZ 0x0018ec7d
MOV R12,qword ptr [RCX + 0x230]
MOV RCX,qword ptr [RCX + 0x318]
SHL RAX,0x4
LEA R13,[RAX + RAX*0x2]
XOR EBX,EBX
AND ECX,0x400
MOV qword ptr [RBP + -0x38],RCX
MOV R14,RSI
XOR R15D,R15D
MOV qword ptr [RBP + -0x30],RSI
LAB_0018ebdc:
MOVZX EAX,word ptr [R12 + RBX*0x1 + 0xe]
MOV CL,byte ptr [R12 + RBX*0x1 + 0xc]
TEST byte ptr [RSI + RAX*0x1],CL
JZ 0x0018ebf3
CMP qword ptr [RBP + -0x38],0x0
JNZ 0x0018ec65
LAB_0018ebf3:
MOV EAX,dword ptr [R12 + RBX*0x1]
MOVZX EDX,word ptr [R12 + RBX*0x1 + 0x4]
CMP EAX,0x8
JZ 0x0018ec24
CMP EAX,0x4
JNZ 0x0018ec37
ADD EDX,-0x8
MOV EDI,EDX
MOV RSI,R14
CALL 0x001785c1
MOV RDX,RAX
MOVZX EAX,word ptr [R12 + RBX*0x1 + 0x4]
MOV RSI,qword ptr [R14 + RAX*0x1 + -0x8]
JMP 0x0018ec48
LAB_0018ec24:
CMP EDX,0x100
JA 0x0018ec3c
MOVZX EDX,byte ptr [R14]
MOV ESI,0x1
JMP 0x0018ec45
LAB_0018ec37:
MOV RSI,R14
JMP 0x0018ec48
LAB_0018ec3c:
MOVZX EDX,word ptr [R14]
MOV ESI,0x2
LAB_0018ec45:
ADD RSI,R14
LAB_0018ec48:
TEST RSI,RSI
LEA RAX,[0x1dec92]
CMOVZ RSI,RAX
MOV EDI,R15D
CALL 0x001a7838
MOV R15D,EAX
MOV RSI,qword ptr [RBP + -0x30]
LAB_0018ec65:
MOVZX EAX,word ptr [R12 + RBX*0x1 + 0x4]
ADD R14,RAX
ADD RBX,0x30
CMP R13,RBX
JNZ 0x0018ebdc
JMP 0x0018ec80
LAB_0018ec7d:
XOR R15D,R15D
LAB_0018ec80:
MOV EAX,R15D
ADD RSP,0x18
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
|
int4 mi_checksum(long *param_1,ushort *param_2)
{
ushort uVar1;
long lVar2;
long lVar3;
ulong uVar4;
int4 uVar5;
ulong uVar6;
long lVar7;
long lVar8;
ushort *puVar9;
ushort *puVar10;
lVar7 = *param_1;
lVar2 = *(long *)(lVar7 + 0x168);
if (lVar2 == 0) {
uVar5 = 0;
}
else {
lVar3 = *(long *)(lVar7 + 0x230);
uVar4 = *(ulong *)(lVar7 + 0x318);
lVar7 = 0;
uVar5 = 0;
puVar10 = param_2;
do {
if (((*(byte *)((long)param_2 + (ulong)*(ushort *)(lVar3 + 0xe + lVar7)) &
*(byte *)(lVar3 + 0xc + lVar7)) == 0) || ((uVar4 & 0x400) == 0)) {
uVar1 = *(ushort *)(lVar3 + 4 + lVar7);
uVar6 = (ulong)uVar1;
if (*(int *)(lVar3 + lVar7) == 8) {
if (uVar1 < 0x101) {
uVar6 = (ulong)(byte)*puVar10;
lVar8 = 1;
}
else {
uVar6 = (ulong)*puVar10;
lVar8 = 2;
}
puVar9 = (ushort *)(lVar8 + (long)puVar10);
}
else {
puVar9 = puVar10;
if (*(int *)(lVar3 + lVar7) == 4) {
uVar6 = _mi_calc_blob_length(uVar1 - 8,puVar10);
puVar9 = *(ushort **)((long)puVar10 + ((ulong)*(ushort *)(lVar3 + 4 + lVar7) - 8));
}
}
if (puVar9 == (ushort *)0x0) {
puVar9 = (ushort *)&DAT_001dec92;
}
uVar5 = my_checksum(uVar5,puVar9,uVar6);
}
puVar10 = (ushort *)((long)puVar10 + (ulong)*(ushort *)(lVar3 + 4 + lVar7));
lVar7 = lVar7 + 0x30;
} while (lVar2 * 0x30 != lVar7);
}
return uVar5;
}
| |
42,238 | type_inference_get_type | tsotchke[P]eshkol/src/frontend/type_inference/context.c | Type* type_inference_get_type(TypeInferenceContext* context, const AstNode* node) {
assert(context != NULL);
// Check if node is NULL
if (node == NULL) {
return NULL;
}
// Check if the node is in the context
for (size_t i = 0; i < context->count; i++) {
if (context->nodes[i] == node) {
return context->inferred_types[i];
}
}
// Check if the node has an inferred type stored directly
if (node->inferred_type) {
return node->inferred_type;
}
return NULL;
} | O0 | c | type_inference_get_type:
pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
cmpq $0x0, -0x10(%rbp)
je 0xc639
jmp 0xc658
leaq 0x1a75b(%rip), %rdi # 0x26d9b
leaq 0x1c45f(%rip), %rsi # 0x28aa6
movl $0xe8, %edx
leaq 0x1c61b(%rip), %rcx # 0x28c6e
callq 0x2160
cmpq $0x0, -0x18(%rbp)
jne 0xc669
movq $0x0, -0x8(%rbp)
jmp 0xc6dc
movq $0x0, -0x20(%rbp)
movq -0x20(%rbp), %rax
movq -0x10(%rbp), %rcx
cmpq 0x30(%rcx), %rax
jae 0xc6bb
movq -0x10(%rbp), %rax
movq 0x18(%rax), %rax
movq -0x20(%rbp), %rcx
movq (%rax,%rcx,8), %rax
cmpq -0x18(%rbp), %rax
jne 0xc6ab
movq -0x10(%rbp), %rax
movq 0x20(%rax), %rax
movq -0x20(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movq %rax, -0x8(%rbp)
jmp 0xc6dc
jmp 0xc6ad
movq -0x20(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x20(%rbp)
jmp 0xc671
movq -0x18(%rbp), %rax
cmpq $0x0, 0x20(%rax)
je 0xc6d4
movq -0x18(%rbp), %rax
movq 0x20(%rax), %rax
movq %rax, -0x8(%rbp)
jmp 0xc6dc
movq $0x0, -0x8(%rbp)
movq -0x8(%rbp), %rax
addq $0x20, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
| type_inference_get_type:
push rbp
mov rbp, rsp
sub rsp, 20h
mov [rbp+var_10], rdi
mov [rbp+var_18], rsi
cmp [rbp+var_10], 0
jz short loc_C639
jmp short loc_C658
loc_C639:
lea rdi, aContextNull; "context != NULL"
lea rsi, aWorkspaceLlm4b_7; "/workspace/llm4binary/github/2025_star3"...
mov edx, 0E8h
lea rcx, aTypeTypeInfere; "Type *type_inference_get_type(TypeInfer"...
call ___assert_fail
loc_C658:
cmp [rbp+var_18], 0
jnz short loc_C669
mov [rbp+var_8], 0
jmp short loc_C6DC
loc_C669:
mov [rbp+var_20], 0
loc_C671:
mov rax, [rbp+var_20]
mov rcx, [rbp+var_10]
cmp rax, [rcx+30h]
jnb short loc_C6BB
mov rax, [rbp+var_10]
mov rax, [rax+18h]
mov rcx, [rbp+var_20]
mov rax, [rax+rcx*8]
cmp rax, [rbp+var_18]
jnz short loc_C6AB
mov rax, [rbp+var_10]
mov rax, [rax+20h]
mov rcx, [rbp+var_20]
mov rax, [rax+rcx*8]
mov [rbp+var_8], rax
jmp short loc_C6DC
loc_C6AB:
jmp short $+2
loc_C6AD:
mov rax, [rbp+var_20]
add rax, 1
mov [rbp+var_20], rax
jmp short loc_C671
loc_C6BB:
mov rax, [rbp+var_18]
cmp qword ptr [rax+20h], 0
jz short loc_C6D4
mov rax, [rbp+var_18]
mov rax, [rax+20h]
mov [rbp+var_8], rax
jmp short loc_C6DC
loc_C6D4:
mov [rbp+var_8], 0
loc_C6DC:
mov rax, [rbp+var_8]
add rsp, 20h
pop rbp
retn
| long long type_inference_get_type(_QWORD *a1, long long a2)
{
unsigned long long i; // [rsp+0h] [rbp-20h]
if ( !a1 )
__assert_fail(
"context != NULL",
"/workspace/llm4binary/github/2025_star3/tsotchke[P]eshkol/src/frontend/type_inference/context.c",
232LL,
"Type *type_inference_get_type(TypeInferenceContext *, const AstNode *)");
if ( !a2 )
return 0LL;
for ( i = 0LL; i < a1[6]; ++i )
{
if ( *(_QWORD *)(a1[3] + 8 * i) == a2 )
return *(_QWORD *)(a1[4] + 8 * i);
}
if ( *(_QWORD *)(a2 + 32) )
return *(_QWORD *)(a2 + 32);
else
return 0LL;
}
| type_inference_get_type:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x20
MOV qword ptr [RBP + -0x10],RDI
MOV qword ptr [RBP + -0x18],RSI
CMP qword ptr [RBP + -0x10],0x0
JZ 0x0010c639
JMP 0x0010c658
LAB_0010c639:
LEA RDI,[0x126d9b]
LEA RSI,[0x128aa6]
MOV EDX,0xe8
LEA RCX,[0x128c6e]
CALL 0x00102160
LAB_0010c658:
CMP qword ptr [RBP + -0x18],0x0
JNZ 0x0010c669
MOV qword ptr [RBP + -0x8],0x0
JMP 0x0010c6dc
LAB_0010c669:
MOV qword ptr [RBP + -0x20],0x0
LAB_0010c671:
MOV RAX,qword ptr [RBP + -0x20]
MOV RCX,qword ptr [RBP + -0x10]
CMP RAX,qword ptr [RCX + 0x30]
JNC 0x0010c6bb
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX + 0x18]
MOV RCX,qword ptr [RBP + -0x20]
MOV RAX,qword ptr [RAX + RCX*0x8]
CMP RAX,qword ptr [RBP + -0x18]
JNZ 0x0010c6ab
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX + 0x20]
MOV RCX,qword ptr [RBP + -0x20]
MOV RAX,qword ptr [RAX + RCX*0x8]
MOV qword ptr [RBP + -0x8],RAX
JMP 0x0010c6dc
LAB_0010c6ab:
JMP 0x0010c6ad
LAB_0010c6ad:
MOV RAX,qword ptr [RBP + -0x20]
ADD RAX,0x1
MOV qword ptr [RBP + -0x20],RAX
JMP 0x0010c671
LAB_0010c6bb:
MOV RAX,qword ptr [RBP + -0x18]
CMP qword ptr [RAX + 0x20],0x0
JZ 0x0010c6d4
MOV RAX,qword ptr [RBP + -0x18]
MOV RAX,qword ptr [RAX + 0x20]
MOV qword ptr [RBP + -0x8],RAX
JMP 0x0010c6dc
LAB_0010c6d4:
MOV qword ptr [RBP + -0x8],0x0
LAB_0010c6dc:
MOV RAX,qword ptr [RBP + -0x8]
ADD RSP,0x20
POP RBP
RET
|
int8 type_inference_get_type(long param_1,long param_2)
{
ulong local_28;
int8 local_10;
if (param_1 == 0) {
/* WARNING: Subroutine does not return */
__assert_fail("context != NULL",
"/workspace/llm4binary/github/2025_star3/tsotchke[P]eshkol/src/frontend/type_inference/context.c"
,0xe8,"Type *type_inference_get_type(TypeInferenceContext *, const AstNode *)");
}
if (param_2 == 0) {
local_10 = 0;
}
else {
for (local_28 = 0; local_28 < *(ulong *)(param_1 + 0x30); local_28 = local_28 + 1) {
if (*(long *)(*(long *)(param_1 + 0x18) + local_28 * 8) == param_2) {
return *(int8 *)(*(long *)(param_1 + 0x20) + local_28 * 8);
}
}
if (*(long *)(param_2 + 0x20) == 0) {
local_10 = 0;
}
else {
local_10 = *(int8 *)(param_2 + 0x20);
}
}
return local_10;
}
| |
42,239 | type_inference_get_type | tsotchke[P]eshkol/src/frontend/type_inference/context.c | Type* type_inference_get_type(TypeInferenceContext* context, const AstNode* node) {
assert(context != NULL);
// Check if node is NULL
if (node == NULL) {
return NULL;
}
// Check if the node is in the context
for (size_t i = 0; i < context->count; i++) {
if (context->nodes[i] == node) {
return context->inferred_types[i];
}
}
// Check if the node has an inferred type stored directly
if (node->inferred_type) {
return node->inferred_type;
}
return NULL;
} | O1 | c | type_inference_get_type:
pushq %rax
testq %rdi, %rdi
je 0x8ffa
testq %rsi, %rsi
je 0x8fdd
movq 0x30(%rdi), %rax
testq %rax, %rax
setne %cl
je 0x8ff0
movq 0x18(%rdi), %rdx
cmpq %rsi, (%rdx)
je 0x8fe1
leaq -0x1(%rax), %rcx
xorl %r9d, %r9d
cmpq %r9, %rcx
je 0x8fee
leaq 0x1(%r9), %r8
cmpq %rsi, 0x8(%rdx,%r9,8)
movq %r8, %r9
jne 0x8fc2
cmpq %rax, %r8
setb %cl
jmp 0x8fe4
xorl %eax, %eax
jmp 0x8ff8
xorl %r8d, %r8d
movq 0x20(%rdi), %rax
movq (%rax,%r8,8), %rax
jmp 0x8ff0
xorl %ecx, %ecx
testb %cl, %cl
jne 0x8ff8
movq 0x20(%rsi), %rax
popq %rcx
retq
leaq 0x11d66(%rip), %rdi # 0x1ad67
leaq 0x13934(%rip), %rsi # 0x1c93c
leaq 0x13af5(%rip), %rcx # 0x1cb04
movl $0xe8, %edx
callq 0x2180
| type_inference_get_type:
push rax
test rdi, rdi
jz short loc_8FFA
test rsi, rsi
jz short loc_8FDD
mov rax, [rdi+30h]
test rax, rax
setnz cl
jz short loc_8FF0
mov rdx, [rdi+18h]
cmp [rdx], rsi
jz short loc_8FE1
lea rcx, [rax-1]
xor r9d, r9d
loc_8FC2:
cmp rcx, r9
jz short loc_8FEE
lea r8, [r9+1]
cmp [rdx+r9*8+8], rsi
mov r9, r8
jnz short loc_8FC2
cmp r8, rax
setb cl
jmp short loc_8FE4
loc_8FDD:
xor eax, eax
jmp short loc_8FF8
loc_8FE1:
xor r8d, r8d
loc_8FE4:
mov rax, [rdi+20h]
mov rax, [rax+r8*8]
jmp short loc_8FF0
loc_8FEE:
xor ecx, ecx
loc_8FF0:
test cl, cl
jnz short loc_8FF8
mov rax, [rsi+20h]
loc_8FF8:
pop rcx
retn
loc_8FFA:
lea rdi, aContextNull; "context != NULL"
lea rsi, aWorkspaceLlm4b_7; "/workspace/llm4binary/github/2025_star3"...
lea rcx, aTypeTypeInfere; "Type *type_inference_get_type(TypeInfer"...
mov edx, 0E8h
call ___assert_fail
| unsigned long long type_inference_get_type(_QWORD *a1, long long a2)
{
unsigned long long result; // rax
bool v3; // cl
_QWORD *v4; // rdx
long long v5; // r9
unsigned long long v6; // r8
if ( !a1 )
__assert_fail(
"context != NULL",
"/workspace/llm4binary/github/2025_star3/tsotchke[P]eshkol/src/frontend/type_inference/context.c",
232LL,
"Type *type_inference_get_type(TypeInferenceContext *, const AstNode *)");
if ( !a2 )
return 0LL;
result = a1[6];
v3 = result != 0;
if ( result )
{
v4 = (_QWORD *)a1[3];
if ( *v4 == a2 )
{
v6 = 0LL;
LABEL_11:
result = *(_QWORD *)(a1[4] + 8 * v6);
}
else
{
v5 = 0LL;
while ( result - 1 != v5 )
{
v6 = v5 + 1;
if ( v4[++v5] == a2 )
{
v3 = v6 < result;
goto LABEL_11;
}
}
v3 = 0;
}
}
if ( !v3 )
return *(_QWORD *)(a2 + 32);
return result;
}
| type_inference_get_type:
PUSH RAX
TEST RDI,RDI
JZ 0x00108ffa
TEST RSI,RSI
JZ 0x00108fdd
MOV RAX,qword ptr [RDI + 0x30]
TEST RAX,RAX
SETNZ CL
JZ 0x00108ff0
MOV RDX,qword ptr [RDI + 0x18]
CMP qword ptr [RDX],RSI
JZ 0x00108fe1
LEA RCX,[RAX + -0x1]
XOR R9D,R9D
LAB_00108fc2:
CMP RCX,R9
JZ 0x00108fee
LEA R8,[R9 + 0x1]
CMP qword ptr [RDX + R9*0x8 + 0x8],RSI
MOV R9,R8
JNZ 0x00108fc2
CMP R8,RAX
SETC CL
JMP 0x00108fe4
LAB_00108fdd:
XOR EAX,EAX
JMP 0x00108ff8
LAB_00108fe1:
XOR R8D,R8D
LAB_00108fe4:
MOV RAX,qword ptr [RDI + 0x20]
MOV RAX,qword ptr [RAX + R8*0x8]
JMP 0x00108ff0
LAB_00108fee:
XOR ECX,ECX
LAB_00108ff0:
TEST CL,CL
JNZ 0x00108ff8
MOV RAX,qword ptr [RSI + 0x20]
LAB_00108ff8:
POP RCX
RET
LAB_00108ffa:
LEA RDI,[0x11ad67]
LEA RSI,[0x11c93c]
LEA RCX,[0x11cb04]
MOV EDX,0xe8
CALL 0x00102180
|
ulong type_inference_get_type(long param_1,long param_2)
{
long lVar1;
ulong uVar2;
ulong uVar3;
ulong uVar4;
bool bVar5;
if (param_1 == 0) {
/* WARNING: Subroutine does not return */
__assert_fail("context != NULL",
"/workspace/llm4binary/github/2025_star3/tsotchke[P]eshkol/src/frontend/type_inference/context.c"
,0xe8,"Type *type_inference_get_type(TypeInferenceContext *, const AstNode *)");
}
if (param_2 == 0) {
uVar2 = 0;
}
else {
uVar2 = *(ulong *)(param_1 + 0x30);
bVar5 = uVar2 != 0;
if (bVar5) {
if (**(long **)(param_1 + 0x18) == param_2) {
uVar3 = 0;
}
else {
uVar4 = 0;
do {
if (uVar2 - 1 == uVar4) {
bVar5 = false;
goto LAB_00108ff0;
}
uVar3 = uVar4 + 1;
lVar1 = uVar4 + 1;
uVar4 = uVar3;
} while ((*(long **)(param_1 + 0x18))[lVar1] != param_2);
bVar5 = uVar3 < uVar2;
}
uVar2 = *(ulong *)(*(long *)(param_1 + 0x20) + uVar3 * 8);
}
LAB_00108ff0:
if (!bVar5) {
uVar2 = *(ulong *)(param_2 + 0x20);
}
}
return uVar2;
}
| |
42,240 | rak_vm_mul | fabiosvm[P]rak/include/rak/vm.h | static inline void rak_vm_mul(RakVM *vm, RakError *err)
{
RakValue val1 = rak_vm_get(vm, 1);
RakValue val2 = rak_vm_get(vm, 0);
if (!rak_is_number(val1) || !rak_is_number(val2))
{
rak_error_set(err, "cannot multiply non-number values");
return;
}
double num1 = rak_as_number(val1);
double num2 = rak_as_number(val2);
RakValue res = rak_number_value(num1 * num2);
rak_vm_set(vm, 1, res);
rak_vm_pop(vm);
} | O0 | c | rak_vm_mul:
pushq %rbp
movq %rsp, %rbp
subq $0x50, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq -0x8(%rbp), %rdi
movl $0x1, %esi
callq 0xb680
movq %rax, -0x20(%rbp)
movq %rdx, -0x18(%rbp)
movq -0x8(%rbp), %rdi
xorl %esi, %esi
callq 0xb680
movq %rax, -0x30(%rbp)
movq %rdx, -0x28(%rbp)
cmpl $0x2, -0x20(%rbp)
jne 0xd5c5
cmpl $0x2, -0x30(%rbp)
je 0xd5d9
movq -0x10(%rbp), %rdi
leaq 0x1566(%rip), %rsi # 0xeb36
movb $0x0, %al
callq 0x8220
jmp 0xd629
movsd -0x18(%rbp), %xmm0
movsd %xmm0, -0x38(%rbp)
movsd -0x28(%rbp), %xmm0
movsd %xmm0, -0x40(%rbp)
movl $0x2, -0x50(%rbp)
movl $0x0, -0x4c(%rbp)
movsd -0x38(%rbp), %xmm0
mulsd -0x40(%rbp), %xmm0
movsd %xmm0, -0x48(%rbp)
movq -0x8(%rbp), %rdi
movq -0x50(%rbp), %rdx
movq -0x48(%rbp), %rcx
movl $0x1, %esi
callq 0xc920
movq -0x8(%rbp), %rdi
callq 0xb630
addq $0x50, %rsp
popq %rbp
retq
nop
| rak_vm_mul:
push rbp
mov rbp, rsp
sub rsp, 50h
mov [rbp+var_8], rdi
mov [rbp+var_10], rsi
mov rdi, [rbp+var_8]
mov esi, 1
call rak_vm_get
mov [rbp+var_20], rax
mov [rbp+var_18], rdx
mov rdi, [rbp+var_8]
xor esi, esi
call rak_vm_get
mov [rbp+var_30], rax
mov [rbp+var_28], rdx
cmp dword ptr [rbp+var_20], 2
jnz short loc_D5C5
cmp dword ptr [rbp+var_30], 2
jz short loc_D5D9
loc_D5C5:
mov rdi, [rbp+var_10]
lea rsi, aCannotMultiply; "cannot multiply non-number values"
mov al, 0
call rak_error_set
jmp short loc_D629
loc_D5D9:
movsd xmm0, [rbp+var_18]
movsd [rbp+var_38], xmm0
movsd xmm0, [rbp+var_28]
movsd [rbp+var_40], xmm0
mov dword ptr [rbp+var_50], 2
mov dword ptr [rbp+var_50+4], 0
movsd xmm0, [rbp+var_38]
mulsd xmm0, [rbp+var_40]
movsd [rbp+var_48], xmm0
mov rdi, [rbp+var_8]
mov rdx, [rbp+var_50]
mov rcx, [rbp+var_48]
mov esi, 1
call rak_vm_set
mov rdi, [rbp+var_8]
call rak_vm_pop
loc_D629:
add rsp, 50h
pop rbp
retn
| long long rak_vm_mul(
long long a1,
long long a2,
__m128 a3,
__m128 a4,
__m128 a5,
__m128 a6,
double a7,
double a8,
__m128 a9,
__m128 a10)
{
double v10; // rdx
long long v11; // rdx
long long v12; // rcx
long long v13; // r8
long long v14; // r9
__m128 v15; // xmm4
__m128 v16; // xmm5
char v18; // [rsp+0h] [rbp-50h]
int v19; // [rsp+20h] [rbp-30h]
int v20; // [rsp+30h] [rbp-20h]
double v21; // [rsp+38h] [rbp-18h]
v20 = rak_vm_get(a1, 1u);
v21 = v10;
v19 = rak_vm_get(a1, 0);
if ( v20 != 2 || v19 != 2 )
return rak_error_set(
a2,
(long long)"cannot multiply non-number values",
v11,
v12,
v13,
v14,
a3,
a4,
a5,
a6,
v15,
v16,
a9,
a10,
v18);
rak_vm_set(a1, 1u, 2LL, COERCE__INT64(v21 * *(double *)&v11));
return rak_vm_pop(a1);
}
| rak_vm_mul:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x50
MOV qword ptr [RBP + -0x8],RDI
MOV qword ptr [RBP + -0x10],RSI
MOV RDI,qword ptr [RBP + -0x8]
MOV ESI,0x1
CALL 0x0010b680
MOV qword ptr [RBP + -0x20],RAX
MOV qword ptr [RBP + -0x18],RDX
MOV RDI,qword ptr [RBP + -0x8]
XOR ESI,ESI
CALL 0x0010b680
MOV qword ptr [RBP + -0x30],RAX
MOV qword ptr [RBP + -0x28],RDX
CMP dword ptr [RBP + -0x20],0x2
JNZ 0x0010d5c5
CMP dword ptr [RBP + -0x30],0x2
JZ 0x0010d5d9
LAB_0010d5c5:
MOV RDI,qword ptr [RBP + -0x10]
LEA RSI,[0x10eb36]
MOV AL,0x0
CALL 0x00108220
JMP 0x0010d629
LAB_0010d5d9:
MOVSD XMM0,qword ptr [RBP + -0x18]
MOVSD qword ptr [RBP + -0x38],XMM0
MOVSD XMM0,qword ptr [RBP + -0x28]
MOVSD qword ptr [RBP + -0x40],XMM0
MOV dword ptr [RBP + -0x50],0x2
MOV dword ptr [RBP + -0x4c],0x0
MOVSD XMM0,qword ptr [RBP + -0x38]
MULSD XMM0,qword ptr [RBP + -0x40]
MOVSD qword ptr [RBP + -0x48],XMM0
MOV RDI,qword ptr [RBP + -0x8]
MOV RDX,qword ptr [RBP + -0x50]
MOV RCX,qword ptr [RBP + -0x48]
MOV ESI,0x1
CALL 0x0010c920
MOV RDI,qword ptr [RBP + -0x8]
CALL 0x0010b630
LAB_0010d629:
ADD RSP,0x50
POP RBP
RET
|
void rak_vm_mul(int8 param_1,int8 param_2)
{
int iVar1;
int iVar2;
double extraout_RDX;
double extraout_RDX_00;
iVar1 = rak_vm_get(param_1,1);
iVar2 = rak_vm_get(param_1,0);
if ((iVar1 == 2) && (iVar2 == 2)) {
rak_vm_set(param_1,1,2,extraout_RDX * extraout_RDX_00);
rak_vm_pop(param_1);
}
else {
rak_error_set(param_2,"cannot multiply non-number values");
}
return;
}
| |
42,241 | Item_func_group_concat::cleanup() | eloqsql/sql/item_sum.cc | void Item_func_group_concat::cleanup()
{
DBUG_ENTER("Item_func_group_concat::cleanup");
Item_sum::cleanup();
/*
Free table and tree if they belong to this item (if item have not pointer
to original item from which was made copy => it own its objects )
*/
if (!original)
{
delete tmp_table_param;
tmp_table_param= 0;
if (table)
{
THD *thd= table->in_use;
if (table->blob_storage)
delete table->blob_storage;
free_tmp_table(thd, table);
table= 0;
if (tree)
{
delete_tree(tree, 0);
tree= 0;
}
if (unique_filter)
{
delete unique_filter;
unique_filter= NULL;
}
}
DBUG_ASSERT(tree == 0);
}
/*
As the ORDER structures pointed to by the elements of the
'order' array may be modified in find_order_in_list() called
from Item_func_group_concat::setup() to point to runtime
created objects, we need to reset them back to the original
arguments of the function.
*/
ORDER **order_ptr= order;
for (uint i= 0; i < arg_count_order; i++)
{
(*order_ptr)->item= &args[arg_count_field + i];
order_ptr++;
}
DBUG_VOID_RETURN;
} | O0 | cpp | Item_func_group_concat::cleanup():
pushq %rbp
movq %rsp, %rbp
subq $0x40, %rsp
movq %rdi, -0x8(%rbp)
movq -0x8(%rbp), %rdi
movq %rdi, -0x28(%rbp)
callq 0xcff9f0
movq -0x28(%rbp), %rax
cmpq $0x0, 0x448(%rax)
jne 0xd0941c
movq -0x28(%rbp), %rax
movq 0x108(%rax), %rax
movq %rax, -0x30(%rbp)
cmpq $0x0, %rax
je 0xd09307
movq -0x30(%rbp), %rdi
callq 0x89e2d0
movq -0x30(%rbp), %rdi
movl $0xa0, %esi
callq 0x7e1820
movq -0x28(%rbp), %rax
movq $0x0, 0x108(%rax)
cmpq $0x0, 0x3f0(%rax)
je 0xd09416
movq -0x28(%rbp), %rax
movq 0x3f0(%rax), %rcx
movq 0x48(%rcx), %rcx
movq %rcx, -0x10(%rbp)
movq 0x3f0(%rax), %rax
cmpq $0x0, 0x330(%rax)
je 0xd0937d
movq -0x28(%rbp), %rax
movq 0x3f0(%rax), %rax
movq 0x330(%rax), %rax
movq %rax, -0x38(%rbp)
cmpq $0x0, %rax
je 0xd0937b
movq -0x38(%rbp), %rdi
callq 0xd0c0c0
movq -0x38(%rbp), %rdi
movl $0x48, %esi
callq 0x7e1820
jmp 0xd0937d
movq -0x28(%rbp), %rax
movq -0x10(%rbp), %rdi
movq 0x3f0(%rax), %rsi
callq 0x94ec60
movq -0x28(%rbp), %rax
movq $0x0, 0x3f0(%rax)
cmpq $0x0, 0x3d0(%rax)
je 0xd093cb
movq -0x28(%rbp), %rax
movq 0x3d0(%rax), %rdi
xorl %esi, %esi
callq 0x12d1470
movq -0x28(%rbp), %rax
movq $0x0, 0x3d0(%rax)
movq -0x28(%rbp), %rax
cmpq $0x0, 0x3e8(%rax)
je 0xd09414
movq -0x28(%rbp), %rax
movq 0x3e8(%rax), %rax
movq %rax, -0x40(%rbp)
cmpq $0x0, %rax
je 0xd09405
movq -0x40(%rbp), %rdi
callq 0xa2f210
movq -0x40(%rbp), %rdi
movl $0x588, %esi # imm = 0x588
callq 0x7e1820
movq -0x28(%rbp), %rax
movq $0x0, 0x3e8(%rax)
jmp 0xd09416
jmp 0xd09418
jmp 0xd0941a
jmp 0xd0941c
movq -0x28(%rbp), %rax
movq 0x3f8(%rax), %rax
movq %rax, -0x18(%rbp)
movl $0x0, -0x1c(%rbp)
movq -0x28(%rbp), %rcx
movl -0x1c(%rbp), %eax
cmpl 0x408(%rcx), %eax
jae 0xd0947d
movq -0x28(%rbp), %rax
movq 0x70(%rax), %rcx
movl 0x40c(%rax), %eax
addl -0x1c(%rbp), %eax
movl %eax, %eax
shlq $0x3, %rax
addq %rax, %rcx
movq -0x18(%rbp), %rax
movq (%rax), %rax
movq %rcx, 0x8(%rax)
movq -0x18(%rbp), %rax
addq $0x8, %rax
movq %rax, -0x18(%rbp)
movl -0x1c(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x1c(%rbp)
jmp 0xd09432
jmp 0xd0947f
jmp 0xd09481
addq $0x40, %rsp
popq %rbp
retq
nopw (%rax,%rax)
| _ZN22Item_func_group_concat7cleanupEv:
push rbp
mov rbp, rsp
sub rsp, 40h
mov [rbp+var_8], rdi
mov rdi, [rbp+var_8]; this
mov [rbp+var_28], rdi
call _ZN8Item_sum7cleanupEv; Item_sum::cleanup(void)
mov rax, [rbp+var_28]
cmp qword ptr [rax+448h], 0
jnz loc_D0941C
mov rax, [rbp+var_28]
mov rax, [rax+108h]
mov [rbp+var_30], rax
cmp rax, 0
jz short loc_D09307
mov rdi, [rbp+var_30]; this
call _ZN15TMP_TABLE_PARAMD2Ev; TMP_TABLE_PARAM::~TMP_TABLE_PARAM()
mov rdi, [rbp+var_30]; void *
mov esi, 0A0h; unsigned __int64
call _ZN9Sql_allocdlEPvm; Sql_alloc::operator delete(void *,ulong)
loc_D09307:
mov rax, [rbp+var_28]
mov qword ptr [rax+108h], 0
cmp qword ptr [rax+3F0h], 0
jz loc_D09416
mov rax, [rbp+var_28]
mov rcx, [rax+3F0h]
mov rcx, [rcx+48h]
mov [rbp+var_10], rcx
mov rax, [rax+3F0h]
cmp qword ptr [rax+330h], 0
jz short loc_D0937D
mov rax, [rbp+var_28]
mov rax, [rax+3F0h]
mov rax, [rax+330h]
mov [rbp+var_38], rax
cmp rax, 0
jz short loc_D0937B
mov rdi, [rbp+var_38]; this
call _ZN16Blob_mem_storageD2Ev; Blob_mem_storage::~Blob_mem_storage()
mov rdi, [rbp+var_38]; void *
mov esi, 48h ; 'H'; unsigned __int64
call _ZN9Sql_allocdlEPvm; Sql_alloc::operator delete(void *,ulong)
loc_D0937B:
jmp short $+2
loc_D0937D:
mov rax, [rbp+var_28]
mov rdi, [rbp+var_10]; THD *
mov rsi, [rax+3F0h]; TABLE *
call _Z14free_tmp_tableP3THDP5TABLE; free_tmp_table(THD *,TABLE *)
mov rax, [rbp+var_28]
mov qword ptr [rax+3F0h], 0
cmp qword ptr [rax+3D0h], 0
jz short loc_D093CB
mov rax, [rbp+var_28]
mov rdi, [rax+3D0h]
xor esi, esi
call delete_tree
mov rax, [rbp+var_28]
mov qword ptr [rax+3D0h], 0
loc_D093CB:
mov rax, [rbp+var_28]
cmp qword ptr [rax+3E8h], 0
jz short loc_D09414
mov rax, [rbp+var_28]
mov rax, [rax+3E8h]
mov [rbp+var_40], rax
cmp rax, 0
jz short loc_D09405
mov rdi, [rbp+var_40]; this
call _ZN6UniqueD2Ev; Unique::~Unique()
mov rdi, [rbp+var_40]; void *
mov esi, 588h; unsigned __int64
call _ZN9Sql_allocdlEPvm; Sql_alloc::operator delete(void *,ulong)
loc_D09405:
mov rax, [rbp+var_28]
mov qword ptr [rax+3E8h], 0
loc_D09414:
jmp short $+2
loc_D09416:
jmp short $+2
loc_D09418:
jmp short $+2
loc_D0941A:
jmp short $+2
loc_D0941C:
mov rax, [rbp+var_28]
mov rax, [rax+3F8h]
mov [rbp+var_18], rax
mov [rbp+var_1C], 0
loc_D09432:
mov rcx, [rbp+var_28]
mov eax, [rbp+var_1C]
cmp eax, [rcx+408h]
jnb short loc_D0947D
mov rax, [rbp+var_28]
mov rcx, [rax+70h]
mov eax, [rax+40Ch]
add eax, [rbp+var_1C]
mov eax, eax
shl rax, 3
add rcx, rax
mov rax, [rbp+var_18]
mov rax, [rax]
mov [rax+8], rcx
mov rax, [rbp+var_18]
add rax, 8
mov [rbp+var_18], rax
mov eax, [rbp+var_1C]
add eax, 1
mov [rbp+var_1C], eax
jmp short loc_D09432
loc_D0947D:
jmp short $+2
loc_D0947F:
jmp short $+2
loc_D09481:
add rsp, 40h
pop rbp
retn
| long long Item_func_group_concat::cleanup(TABLE **this)
{
long long result; // rax
Unique *v2; // [rsp+0h] [rbp-40h]
Blob_mem_storage *v3; // [rsp+8h] [rbp-38h]
TMP_TABLE_PARAM *v4; // [rsp+10h] [rbp-30h]
unsigned int i; // [rsp+24h] [rbp-1Ch]
TABLE *v6; // [rsp+28h] [rbp-18h]
THD *v7; // [rsp+30h] [rbp-10h]
Item_sum::cleanup((Item_sum *)this);
if ( !this[137] )
{
v4 = this[33];
if ( v4 )
{
TMP_TABLE_PARAM::~TMP_TABLE_PARAM(v4);
Sql_alloc::operator delete(v4);
}
this[33] = 0LL;
if ( this[126] )
{
v7 = (THD *)*((_QWORD *)this[126] + 9);
if ( *((_QWORD *)this[126] + 102) )
{
v3 = (Blob_mem_storage *)*((_QWORD *)this[126] + 102);
if ( v3 )
{
Blob_mem_storage::~Blob_mem_storage(v3);
Sql_alloc::operator delete(v3);
}
}
free_tmp_table(v7, this[126]);
this[126] = 0LL;
if ( this[122] )
{
delete_tree(this[122], 0LL);
this[122] = 0LL;
}
if ( this[125] )
{
v2 = this[125];
if ( v2 )
{
Unique::~Unique(v2);
Sql_alloc::operator delete(v2);
}
this[125] = 0LL;
}
}
}
v6 = this[127];
for ( i = 0; ; ++i )
{
result = i;
if ( i >= *((_DWORD *)this + 258) )
break;
*(_QWORD *)(*(_QWORD *)v6 + 8LL) = (char *)this[14] + 8 * i + 8 * *((_DWORD *)this + 259);
v6 = (TABLE *)((char *)v6 + 8);
}
return result;
}
| size_of:
PUSH RBP
MOV RBP,RSP
MOV qword ptr [RBP + -0x8],RDI
MOV EAX,0xd0
POP RBP
RET
|
/* Field_timestamp_hires::size_of() const */
int8 Field_timestamp_hires::size_of(void)
{
return 0xd0;
}
| |
42,242 | parse_cpu_range(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, bool (&) [512]) | monkey531[P]llama/common/common.cpp | bool parse_cpu_range(const std::string & range, bool (&boolmask)[GGML_MAX_N_THREADS]) {
size_t dash_loc = range.find('-');
if (dash_loc == std::string::npos) {
LOG_ERR("Format of CPU range is invalid! Expected [<start>]-[<end>].\n");
return false;
}
size_t start_i;
size_t end_i;
if (dash_loc == 0) {
start_i = 0;
} else {
start_i = std::stoull(range.substr(0, dash_loc));
if (start_i >= GGML_MAX_N_THREADS) {
LOG_ERR("Start index out of bounds!\n");
return false;
}
}
if (dash_loc == range.length() - 1) {
end_i = GGML_MAX_N_THREADS - 1;
} else {
end_i = std::stoull(range.substr(dash_loc + 1));
if (end_i >= GGML_MAX_N_THREADS) {
LOG_ERR("End index out of bounds!\n");
return false;
}
}
for (size_t i = start_i; i <= end_i; i++) {
boolmask[i] = true;
}
return true;
} | O2 | cpp | parse_cpu_range(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, bool (&) [512]):
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x20, %rsp
movq %rsi, %rbx
movq %rdi, %r15
pushq $0x2d
popq %rsi
xorl %edx, %edx
callq 0x23ba0
movq %rax, %r12
testq %rax, %rax
je 0x53668
cmpq $-0x1, %r12
jne 0x5366d
leaq 0xabe1a(%rip), %rax # 0xff468
cmpl $0x0, (%rax)
js 0x53743
callq 0x9679e
leaq 0x5f66c(%rip), %rdx # 0xb2ccf
jmp 0x53721
movq %r12, %r14
jmp 0x536bf
movq %rsp, %r14
movq %r14, %rdi
movq %r15, %rsi
xorl %edx, %edx
movq %r12, %rcx
callq 0x23970
pushq $0xa
popq %rdx
movq %r14, %rdi
xorl %esi, %esi
callq 0x588ed
movq %rax, %r14
movq %rsp, %rdi
callq 0x24218
cmpq $0x200, %r14 # imm = 0x200
jb 0x536bf
leaq 0xabdc0(%rip), %rax # 0xff468
cmpl $0x0, (%rax)
js 0x53743
callq 0x9679e
leaq 0x5f64f(%rip), %rdx # 0xb2d0c
jmp 0x53721
movq 0x8(%r15), %rax
decq %rax
movl $0x1ff, %r13d # imm = 0x1FF
cmpq %rax, %r12
je 0x5373a
incq %r12
movq %rsp, %r13
pushq $-0x1
popq %rcx
movq %r13, %rdi
movq %r15, %rsi
movq %r12, %rdx
callq 0x23970
pushq $0xa
popq %rdx
movq %r13, %rdi
xorl %esi, %esi
callq 0x588ed
movq %rax, %r13
movq %rsp, %rdi
callq 0x24218
cmpq $0x200, %r13 # imm = 0x200
jb 0x5373a
leaq 0xabd58(%rip), %rax # 0xff468
cmpl $0x0, (%rax)
js 0x53743
callq 0x9679e
leaq 0x5f607(%rip), %rdx # 0xb2d28
xorl %ebx, %ebx
pushq $0x4
popq %rsi
movq %rax, %rdi
xorl %eax, %eax
callq 0x96836
jmp 0x53745
movb $0x1, (%rbx,%r14)
incq %r14
cmpq %r13, %r14
jbe 0x53732
movb $0x1, %bl
jmp 0x53745
xorl %ebx, %ebx
movl %ebx, %eax
addq $0x20, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
jmp 0x53757
movq %rax, %rbx
movq %rsp, %rdi
callq 0x24218
movq %rbx, %rdi
callq 0x23fd0
| _Z15parse_cpu_rangeRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERA512_b:
push r15
push r14
push r13
push r12
push rbx
sub rsp, 20h
mov rbx, rsi
mov r15, rdi
push 2Dh ; '-'
pop rsi
xor edx, edx
call __ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4findEcm; std::string::find(char,ulong)
mov r12, rax
test rax, rax
jz short loc_53668
cmp r12, 0FFFFFFFFFFFFFFFFh
jnz short loc_5366D
lea rax, common_log_verbosity_thold
cmp dword ptr [rax], 0
js loc_53743
call _Z15common_log_mainv; common_log_main(void)
lea rdx, aFormatOfCpuRan; "Format of CPU range is invalid! Expecte"...
jmp loc_53721
loc_53668:
mov r14, r12
jmp short loc_536BF
loc_5366D:
mov r14, rsp
mov rdi, r14
mov rsi, r15
xor edx, edx
mov rcx, r12
call __ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6substrEmm; std::string::substr(ulong,ulong)
push 0Ah
pop rdx
mov rdi, r14
xor esi, esi
call _ZNSt7__cxx116stoullERKNS_12basic_stringIcSt11char_traitsIcESaIcEEEPmi; std::stoull(std::string const&,ulong *,int)
mov r14, rax
mov rdi, rsp; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
cmp r14, 200h
jb short loc_536BF
lea rax, common_log_verbosity_thold
cmp dword ptr [rax], 0
js loc_53743
call _Z15common_log_mainv; common_log_main(void)
lea rdx, aStartIndexOutO; "Start index out of bounds!\n"
jmp short loc_53721
loc_536BF:
mov rax, [r15+8]
dec rax
mov r13d, 1FFh
cmp r12, rax
jz short loc_5373A
inc r12
mov r13, rsp
push 0FFFFFFFFFFFFFFFFh
pop rcx
mov rdi, r13
mov rsi, r15
mov rdx, r12
call __ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6substrEmm; std::string::substr(ulong,ulong)
push 0Ah
pop rdx
mov rdi, r13
xor esi, esi
call _ZNSt7__cxx116stoullERKNS_12basic_stringIcSt11char_traitsIcESaIcEEEPmi; std::stoull(std::string const&,ulong *,int)
mov r13, rax
mov rdi, rsp; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
cmp r13, 200h
jb short loc_5373A
lea rax, common_log_verbosity_thold
cmp dword ptr [rax], 0
js short loc_53743
call _Z15common_log_mainv; common_log_main(void)
lea rdx, aEndIndexOutOfB; "End index out of bounds!\n"
loc_53721:
xor ebx, ebx
push 4
pop rsi
mov rdi, rax
xor eax, eax
call _Z14common_log_addP10common_log14ggml_log_levelPKcz; common_log_add(common_log *,ggml_log_level,char const*,...)
jmp short loc_53745
loc_53732:
mov byte ptr [rbx+r14], 1
inc r14
loc_5373A:
cmp r14, r13
jbe short loc_53732
mov bl, 1
jmp short loc_53745
loc_53743:
xor ebx, ebx
loc_53745:
mov eax, ebx
add rsp, 20h
pop rbx
pop r12
pop r13
pop r14
pop r15
retn
jmp short $+2
loc_53757:
mov rbx, rax
mov rdi, rsp; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
mov rdi, rbx
call __Unwind_Resume
| long long parse_cpu_range(long long a1, long long a2)
{
unsigned int v2; // ebx
long long v3; // rax
long long v4; // r12
int v5; // eax
int v6; // ecx
int v7; // r8d
int v8; // r9d
const char *v9; // rdx
unsigned long long v10; // r14
unsigned long long v11; // r13
char v13[72]; // [rsp+0h] [rbp-48h] BYREF
v2 = a2;
v3 = std::string::find(a1, 45LL, 0LL);
v4 = v3;
if ( v3 )
{
if ( v3 == -1 )
{
if ( common_log_verbosity_thold >= 0 )
{
v5 = common_log_main();
v9 = "Format of CPU range is invalid! Expected [<start>]-[<end>].\n";
LABEL_13:
v2 = 0;
common_log_add(v5, 4, (_DWORD)v9, v6, v7, v8, v13[0]);
return v2;
}
return 0;
}
std::string::substr(v13, a1, 0LL, v3);
v10 = std::stoull(v13, 0LL, 10LL);
std::string::~string(v13);
if ( v10 >= 0x200 )
{
if ( common_log_verbosity_thold >= 0 )
{
v5 = common_log_main();
v9 = "Start index out of bounds!\n";
goto LABEL_13;
}
return 0;
}
}
else
{
v10 = 0LL;
}
v11 = 511LL;
if ( v4 != *(_QWORD *)(a1 + 8) - 1LL )
{
std::string::substr(v13, a1, v4 + 1, -1LL);
v11 = std::stoull(v13, 0LL, 10LL);
std::string::~string(v13);
if ( v11 >= 0x200 )
{
if ( common_log_verbosity_thold >= 0 )
{
v5 = common_log_main();
v9 = "End index out of bounds!\n";
goto LABEL_13;
}
return 0;
}
}
while ( v10 <= v11 )
*(_BYTE *)(a2 + v10++) = 1;
LOBYTE(v2) = 1;
return v2;
}
| parse_cpu_range:
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x20
MOV RBX,RSI
MOV R15,RDI
PUSH 0x2d
POP RSI
XOR EDX,EDX
CALL 0x00123ba0
MOV R12,RAX
TEST RAX,RAX
JZ 0x00153668
CMP R12,-0x1
JNZ 0x0015366d
LEA RAX,[0x1ff468]
CMP dword ptr [RAX],0x0
JS 0x00153743
CALL 0x0019679e
LEA RDX,[0x1b2ccf]
JMP 0x00153721
LAB_00153668:
MOV R14,R12
JMP 0x001536bf
LAB_0015366d:
MOV R14,RSP
MOV RDI,R14
MOV RSI,R15
XOR EDX,EDX
MOV RCX,R12
CALL 0x00123970
LAB_00153680:
PUSH 0xa
POP RDX
MOV RDI,R14
XOR ESI,ESI
CALL 0x001588ed
LAB_0015368d:
MOV R14,RAX
MOV RDI,RSP
CALL 0x00124218
CMP R14,0x200
JC 0x001536bf
LEA RAX,[0x1ff468]
CMP dword ptr [RAX],0x0
JS 0x00153743
CALL 0x0019679e
LEA RDX,[0x1b2d0c]
JMP 0x00153721
LAB_001536bf:
MOV RAX,qword ptr [R15 + 0x8]
DEC RAX
MOV R13D,0x1ff
CMP R12,RAX
JZ 0x0015373a
INC R12
MOV R13,RSP
PUSH -0x1
POP RCX
MOV RDI,R13
MOV RSI,R15
MOV RDX,R12
CALL 0x00123970
LAB_001536e8:
PUSH 0xa
POP RDX
MOV RDI,R13
XOR ESI,ESI
CALL 0x001588ed
LAB_001536f5:
MOV R13,RAX
MOV RDI,RSP
CALL 0x00124218
CMP R13,0x200
JC 0x0015373a
LEA RAX,[0x1ff468]
CMP dword ptr [RAX],0x0
JS 0x00153743
CALL 0x0019679e
LEA RDX,[0x1b2d28]
LAB_00153721:
XOR EBX,EBX
PUSH 0x4
POP RSI
MOV RDI,RAX
XOR EAX,EAX
CALL 0x00196836
JMP 0x00153745
LAB_00153732:
MOV byte ptr [RBX + R14*0x1],0x1
INC R14
LAB_0015373a:
CMP R14,R13
JBE 0x00153732
MOV BL,0x1
JMP 0x00153745
LAB_00153743:
XOR EBX,EBX
LAB_00153745:
MOV EAX,EBX
ADD RSP,0x20
POP RBX
POP R12
POP R13
POP R14
POP R15
RET
|
/* parse_cpu_range(std::__cxx11::string const&, bool (&) [512]) */
ulong parse_cpu_range(string *param_1,bool *param_2)
{
long lVar1;
int8 uVar2;
ulong uVar3;
char *pcVar4;
ulong uVar5;
string asStack_48 [32];
lVar1 = std::__cxx11::string::find((char)param_1,0x2d);
if (lVar1 == 0) {
uVar3 = 0;
LAB_001536bf:
uVar5 = 0x1ff;
if (lVar1 != *(long *)(param_1 + 8) + -1) {
std::__cxx11::string::substr((ulong)asStack_48,(ulong)param_1);
/* try { // try from 001536e8 to 001536f4 has its CatchHandler @ 00153755 */
uVar5 = std::__cxx11::stoull(asStack_48,(ulong *)0x0,10);
std::__cxx11::string::~string(asStack_48);
if (0x1ff < uVar5) {
if (common_log_verbosity_thold < 0) goto LAB_00153743;
uVar2 = common_log_main();
pcVar4 = "End index out of bounds!\n";
goto LAB_00153721;
}
}
for (; uVar3 <= uVar5; uVar3 = uVar3 + 1) {
param_2[uVar3] = true;
}
uVar3 = CONCAT71((int7)((ulong)param_2 >> 8),1);
}
else {
if (lVar1 == -1) {
if (common_log_verbosity_thold < 0) {
LAB_00153743:
uVar3 = 0;
goto LAB_00153745;
}
uVar2 = common_log_main();
pcVar4 = "Format of CPU range is invalid! Expected [<start>]-[<end>].\n";
}
else {
std::__cxx11::string::substr((ulong)asStack_48,(ulong)param_1);
/* try { // try from 00153680 to 0015368c has its CatchHandler @ 00153757 */
uVar3 = std::__cxx11::stoull(asStack_48,(ulong *)0x0,10);
std::__cxx11::string::~string(asStack_48);
if (uVar3 < 0x200) goto LAB_001536bf;
if (common_log_verbosity_thold < 0) goto LAB_00153743;
uVar2 = common_log_main();
pcVar4 = "Start index out of bounds!\n";
}
LAB_00153721:
uVar3 = 0;
common_log_add(uVar2,4,pcVar4);
}
LAB_00153745:
return uVar3 & 0xffffffff;
}
| |
42,243 | nglog::LogDestination::~LogDestination() | ng-log[P]ng-log/src/logging.cc | void LogDestination::SetLoggerImpl(base::Logger* logger) {
if (logger_ == logger) {
// Prevent releasing currently held sink on reset
return;
}
if (logger_ && logger_ != &fileobject_) {
// Delete user-specified logger set via SetLogger().
delete logger_;
}
logger_ = logger;
} | O1 | cpp | nglog::LogDestination::~LogDestination():
pushq %rbx
movq %rdi, %rbx
movq 0xc8(%rdi), %rdi
cmpq %rbx, %rdi
je 0x96a2
testq %rdi, %rdi
je 0x969b
movq (%rdi), %rax
callq *0x8(%rax)
movq %rbx, 0xc8(%rbx)
movq %rbx, %rdi
popq %rbx
jmp 0x96a8
| _ZN5nglog14LogDestinationD2Ev:
push rbx; Alternative name is 'nglog::LogDestination::~LogDestination()'
mov rbx, rdi
mov rdi, [rdi+0C8h]
cmp rdi, rbx
jz short loc_96A2
test rdi, rdi
jz short loc_969B
mov rax, [rdi]
call qword ptr [rax+8]
loc_969B:
mov [rbx+0C8h], rbx
loc_96A2:
mov rdi, rbx; this
pop rbx
jmp short $+2; nglog::`anonymous namespace'::LogFileObject::~LogFileObject()
| void nglog::LogDestination::~LogDestination(nglog::LogDestination *this)
{
nglog::LogDestination *v2; // rdi
v2 = (nglog::LogDestination *)*((_QWORD *)this + 25);
if ( v2 != this )
{
if ( v2 )
(*(void ( **)(nglog::LogDestination *))(*(_QWORD *)v2 + 8LL))(v2);
*((_QWORD *)this + 25) = this;
}
nglog::`anonymous namespace'::LogFileObject::~LogFileObject(this);
}
| ~LogDestination:
PUSH RBX
MOV RBX,RDI
MOV RDI,qword ptr [RDI + 0xc8]
CMP RDI,RBX
JZ 0x001096a2
TEST RDI,RDI
JZ 0x0010969b
MOV RAX,qword ptr [RDI]
CALL qword ptr [RAX + 0x8]
LAB_0010969b:
MOV qword ptr [RBX + 0xc8],RBX
LAB_001096a2:
MOV RDI,RBX
POP RBX
JMP 0x001096a8
|
/* nglog::LogDestination::~LogDestination() */
void __thiscall nglog::LogDestination::~LogDestination(LogDestination *this)
{
LogDestination *pLVar1;
pLVar1 = *(LogDestination **)(this + 200);
if (pLVar1 != this) {
if (pLVar1 != (LogDestination *)0x0) {
(**(code **)(*(long *)pLVar1 + 8))();
}
*(LogDestination **)(this + 200) = this;
}
(anonymous_namespace)::LogFileObject::~LogFileObject((LogFileObject *)this);
return;
}
| |
42,244 | nglog::LogDestination::~LogDestination() | ng-log[P]ng-log/src/logging.cc | void LogDestination::SetLoggerImpl(base::Logger* logger) {
if (logger_ == logger) {
// Prevent releasing currently held sink on reset
return;
}
if (logger_ && logger_ != &fileobject_) {
// Delete user-specified logger set via SetLogger().
delete logger_;
}
logger_ = logger;
} | O3 | cpp | nglog::LogDestination::~LogDestination():
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %r14
movq 0xc8(%rdi), %rdi
cmpq %rsi, %rdi
je 0x963d
movq %rsi, %rbx
testq %rdi, %rdi
sete %al
cmpq %r14, %rdi
sete %cl
orb %al, %cl
jne 0x9636
movq (%rdi), %rax
callq *0x8(%rax)
movq %rbx, 0xc8(%r14)
addq $0x8, %rsp
popq %rbx
popq %r14
retq
nop
| _ZN5nglog14LogDestination13SetLoggerImplEPNS_4base6LoggerE:
push r14
push rbx
push rax
mov r14, rdi
mov rdi, [rdi+0C8h]
cmp rdi, rsi
jz short loc_963D
mov rbx, rsi
test rdi, rdi
setz al
cmp rdi, r14
setz cl
or cl, al
jnz short loc_9636
mov rax, [rdi]
call qword ptr [rax+8]
loc_9636:
mov [r14+0C8h], rbx
loc_963D:
add rsp, 8
pop rbx
pop r14
retn
| char nglog::LogDestination::SetLoggerImpl(nglog::LogDestination *this, nglog::base::Logger *a2)
{
nglog::base::Logger *v3; // rdi
char result; // al
v3 = (nglog::base::Logger *)*((_QWORD *)this + 25);
if ( v3 != a2 )
{
result = v3 == 0LL;
if ( v3 != 0LL && v3 != this )
result = (*(long long ( **)(nglog::base::Logger *))(*(_QWORD *)v3 + 8LL))(v3);
*((_QWORD *)this + 25) = a2;
}
return result;
}
| SetLoggerImpl:
PUSH R14
PUSH RBX
PUSH RAX
MOV R14,RDI
MOV RDI,qword ptr [RDI + 0xc8]
CMP RDI,RSI
JZ 0x0010963d
MOV RBX,RSI
TEST RDI,RDI
SETZ AL
CMP RDI,R14
SETZ CL
OR CL,AL
JNZ 0x00109636
MOV RAX,qword ptr [RDI]
CALL qword ptr [RAX + 0x8]
LAB_00109636:
MOV qword ptr [R14 + 0xc8],RBX
LAB_0010963d:
ADD RSP,0x8
POP RBX
POP R14
RET
|
/* nglog::LogDestination::SetLoggerImpl(nglog::base::Logger*) */
void __thiscall nglog::LogDestination::SetLoggerImpl(LogDestination *this,Logger *param_1)
{
Logger *pLVar1;
pLVar1 = *(Logger **)(this + 200);
if (pLVar1 != param_1) {
if (pLVar1 != (Logger *)this && pLVar1 != (Logger *)0x0) {
(**(code **)(*(long *)pLVar1 + 8))();
}
*(Logger **)(this + 200) = param_1;
}
return;
}
| |
42,245 | test_select_version | eloqsql/tests/mysql_client_test.c | static void test_select_version()
{
MYSQL_STMT *stmt;
int rc;
myheader("test_select_version");
stmt= mysql_simple_prepare(mysql, "SELECT @@version");
check_stmt(stmt);
verify_param_count(stmt, 0);
rc= mysql_stmt_execute(stmt);
check_execute(stmt, rc);
my_process_stmt_result(stmt);
mysql_stmt_close(stmt);
} | O0 | c | test_select_version:
pushq %rbp
movq %rsp, %rbp
subq $0x10, %rsp
jmp 0x46d7a
movsbl 0x423750(%rip), %eax # 0x46a4d1
cmpl $0x2, %eax
jge 0x46e02
movq 0x26824b(%rip), %rax # 0x2aefd8
movq (%rax), %rdi
leaq 0xe758d(%rip), %rsi # 0x12e324
movb $0x0, %al
callq 0x3a1c0
movq 0x268233(%rip), %rax # 0x2aefd8
movq (%rax), %rdi
movl 0x42396e(%rip), %edx # 0x46a71c
movl %edx, %eax
addl $0x1, %eax
movl %eax, 0x423963(%rip) # 0x46a71c
movl 0x423959(%rip), %ecx # 0x46a718
movl 0x423736(%rip), %r8d # 0x46a4fc
leaq 0xe885f(%rip), %rsi # 0x12f62c
leaq 0xe7989(%rip), %r9 # 0x12e75d
movb $0x0, %al
callq 0x3a1c0
movq 0x2681f6(%rip), %rax # 0x2aefd8
movq (%rax), %rdi
leaq 0xe7570(%rip), %rsi # 0x12e35c
movb $0x0, %al
callq 0x3a1c0
movq 0x2681de(%rip), %rax # 0x2aefd8
movq (%rax), %rdi
callq 0x3a4a0
movq 0x4236cf(%rip), %rdi # 0x46a4d8
leaq 0xeb091(%rip), %rsi # 0x131ea1
callq 0x3be90
movq %rax, -0x8(%rbp)
cmpq $0x0, -0x8(%rbp)
jne 0x46e29
xorl %eax, %eax
movl %eax, %edi
callq 0x3bf10
cmpq $0x0, -0x8(%rbp)
je 0x46e32
jmp 0x46e4a
leaq 0xe6dd3(%rip), %rdi # 0x12dc0c
movl $0x795, %esi # imm = 0x795
leaq 0xe6b25(%rip), %rdx # 0x12d96a
callq 0x3c010
movq -0x8(%rbp), %rdi
xorl %eax, %eax
movl %eax, %esi
callq 0x41790
movq -0x8(%rbp), %rdi
callq 0x3b8a0
movl %eax, -0xc(%rbp)
cmpl $0x0, -0xc(%rbp)
je 0x46e76
movq -0x8(%rbp), %rdi
xorl %eax, %eax
movl %eax, %esi
callq 0x3c0b0
cmpl $0x0, -0xc(%rbp)
jne 0x46e7e
jmp 0x46e96
leaq 0xe6d87(%rip), %rdi # 0x12dc0c
movl $0x79a, %esi # imm = 0x79A
leaq 0xf297b(%rip), %rdx # 0x13980c
callq 0x3c010
movq -0x8(%rbp), %rdi
callq 0x3c1c0
movq -0x8(%rbp), %rdi
callq 0x3b9f0
addq $0x10, %rsp
popq %rbp
retq
nop
| test_select_version:
push rbp
mov rbp, rsp
sub rsp, 10h
jmp short $+2
loc_46D7A:
movsx eax, cs:opt_silent
cmp eax, 2
jge short loc_46E02
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, aTestSelectVers; "test_select_version"
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_46E02:
mov rdi, cs:mysql
lea rsi, aSelectVersion; "SELECT @@version"
call mysql_simple_prepare
mov [rbp+var_8], rax
cmp [rbp+var_8], 0
jnz short loc_46E29
xor eax, eax
mov edi, eax
call print_error
loc_46E29:
cmp [rbp+var_8], 0
jz short loc_46E32
jmp short loc_46E4A
loc_46E32:
lea rdi, aWorkspaceLlm4b_0; "/workspace/llm4binary/github2025/eloqsq"...
mov esi, 795h
lea rdx, aStmt0; "stmt != 0"
call die
loc_46E4A:
mov rdi, [rbp+var_8]
xor eax, eax
mov esi, eax
call verify_param_count
mov rdi, [rbp+var_8]
call wrap_mysql_stmt_execute
mov [rbp+var_C], eax
cmp [rbp+var_C], 0
jz short loc_46E76
mov rdi, [rbp+var_8]
xor eax, eax
mov esi, eax
call print_st_error
loc_46E76:
cmp [rbp+var_C], 0
jnz short loc_46E7E
jmp short loc_46E96
loc_46E7E:
lea rdi, aWorkspaceLlm4b_0; "/workspace/llm4binary/github2025/eloqsq"...
mov esi, 79Ah
lea rdx, aRcMysqlDataTru+1Eh; "rc == 0"
call die
loc_46E96:
mov rdi, [rbp+var_8]
call my_process_stmt_result
mov rdi, [rbp+var_8]
call wrap_mysql_stmt_close
add rsp, 10h
pop rbp
retn
| char test_select_version()
{
int v0; // edx
long long v2; // [rsp+8h] [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_select_version");
fprintf(stdout, " \n#####################################\n");
fflush(stdout);
}
v2 = mysql_simple_prepare(mysql, (long long)"SELECT @@version");
if ( !v2 )
{
print_error(0LL);
die("/workspace/llm4binary/github2025/eloqsql/tests/mysql_client_test.c", 1941, "stmt != 0");
}
verify_param_count(v2, 0LL);
if ( (unsigned int)wrap_mysql_stmt_execute(v2) )
{
print_st_error(v2, 0LL);
die("/workspace/llm4binary/github2025/eloqsql/tests/mysql_client_test.c", 1946, "rc == 0");
}
my_process_stmt_result(v2);
return wrap_mysql_stmt_close(v2);
}
| test_select_version:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x10
JMP 0x00146d7a
LAB_00146d7a:
MOVSX EAX,byte ptr [0x0056a4d1]
CMP EAX,0x2
JGE 0x00146e02
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,[0x22e75d]
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_00146e02:
MOV RDI,qword ptr [0x0056a4d8]
LEA RSI,[0x231ea1]
CALL 0x0013be90
MOV qword ptr [RBP + -0x8],RAX
CMP qword ptr [RBP + -0x8],0x0
JNZ 0x00146e29
XOR EAX,EAX
MOV EDI,EAX
CALL 0x0013bf10
LAB_00146e29:
CMP qword ptr [RBP + -0x8],0x0
JZ 0x00146e32
JMP 0x00146e4a
LAB_00146e32:
LEA RDI,[0x22dc0c]
MOV ESI,0x795
LEA RDX,[0x22d96a]
CALL 0x0013c010
LAB_00146e4a:
MOV RDI,qword ptr [RBP + -0x8]
XOR EAX,EAX
MOV ESI,EAX
CALL 0x00141790
MOV RDI,qword ptr [RBP + -0x8]
CALL 0x0013b8a0
MOV dword ptr [RBP + -0xc],EAX
CMP dword ptr [RBP + -0xc],0x0
JZ 0x00146e76
MOV RDI,qword ptr [RBP + -0x8]
XOR EAX,EAX
MOV ESI,EAX
CALL 0x0013c0b0
LAB_00146e76:
CMP dword ptr [RBP + -0xc],0x0
JNZ 0x00146e7e
JMP 0x00146e96
LAB_00146e7e:
LEA RDI,[0x22dc0c]
MOV ESI,0x79a
LEA RDX,[0x23980c]
CALL 0x0013c010
LAB_00146e96:
MOV RDI,qword ptr [RBP + -0x8]
CALL 0x0013c1c0
MOV RDI,qword ptr [RBP + -0x8]
CALL 0x0013b9f0
ADD RSP,0x10
POP RBP
RET
|
void test_select_version(void)
{
int iVar1;
long lVar2;
ulong uVar3;
if (opt_silent < '\x02') {
fprintf(*(FILE **)PTR_stdout_003aefd8,"\n\n#####################################\n");
uVar3 = (ulong)test_count;
test_count = test_count + 1;
fprintf(*(FILE **)PTR_stdout_003aefd8,"%u of (%u/%u): %s",uVar3,(ulong)iter_count,
(ulong)opt_count,"test_select_version");
fprintf(*(FILE **)PTR_stdout_003aefd8," \n#####################################\n");
fflush(*(FILE **)PTR_stdout_003aefd8);
}
lVar2 = mysql_simple_prepare(mysql,"SELECT @@version");
if (lVar2 == 0) {
print_error(0);
die("/workspace/llm4binary/github2025/eloqsql/tests/mysql_client_test.c",0x795,"stmt != 0");
}
verify_param_count(lVar2,0);
iVar1 = wrap_mysql_stmt_execute(lVar2);
if (iVar1 != 0) {
print_st_error(lVar2,0);
die("/workspace/llm4binary/github2025/eloqsql/tests/mysql_client_test.c",0x79a,"rc == 0");
}
my_process_stmt_result(lVar2);
wrap_mysql_stmt_close(lVar2);
return;
}
| |
42,246 | completion_token_output::to_json[abi:cxx11](bool) const | monkey531[P]llama/examples/server/server.cpp | json to_json(bool post_sampling_probs) const {
json probs_for_token = json::array();
for (const auto & p : probs) {
std::string txt(p.txt);
txt.resize(validate_utf8(txt));
probs_for_token.push_back(json {
{"id", p.tok},
{"token", txt},
{"bytes", str_to_bytes(p.txt)},
{
post_sampling_probs ? "prob" : "logprob",
post_sampling_probs ? p.prob : logarithm(p.prob)
},
});
}
return probs_for_token;
} | O2 | cpp | completion_token_output::to_json[abi:cxx11](bool) const:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x1a8, %rsp # imm = 0x1A8
movl %edx, %ebp
movq %rsi, %r14
movq %rdi, (%rsp)
xorl %esi, %esi
xorl %edx, %edx
callq 0x4ea90
movq 0x28(%r14), %rdx
movq 0x30(%r14), %rax
movq %rax, 0x30(%rsp)
leaq 0x110(%rsp), %rax
movq %rax, 0x20(%rsp)
leaq 0x128(%rsp), %rax
movq %rax, 0x18(%rsp)
leaq 0x140(%rsp), %rax
movq %rax, 0x10(%rsp)
leaq 0x6fce6(%rip), %rax # 0xf7874
leaq 0x6fcdc(%rip), %rcx # 0xf7871
movl %ebp, 0x8(%rsp)
testl %ebp, %ebp
cmovneq %rax, %rcx
movq %rcx, 0x28(%rsp)
leaq 0x188(%rsp), %r12
leaq 0x158(%rsp), %r15
leaq 0xf8(%rsp), %r13
cmpq 0x30(%rsp), %rdx
je 0x87de0
movq %rdx, %r14
leaq 0x8(%rdx), %rbp
movq %r12, %rdi
movq %rbp, %rsi
callq 0x28f50
movq %r12, %rdi
callq 0x3b4a5
movq %r12, %rbx
movq %r12, %rdi
movq %rax, %rsi
callq 0x28f60
movq %r15, %r12
movq %r15, %rdi
leaq 0x6df44(%rip), %rsi # 0xf5b40
callq 0x51ecc
leaq 0x170(%rsp), %rdi
movq %r14, %rsi
callq 0x51edc
movq %r13, %rdi
movq %r12, %rsi
pushq $0x2
popq %rdx
callq 0x4eab4
leaq 0xb8(%rsp), %rdi
leaq 0x6d973(%rip), %rsi # 0xf55a1
callq 0x51eec
leaq 0xd0(%rsp), %rdi
movq %rbx, %rsi
callq 0x66710
leaq 0x110(%rsp), %rdi
leaq 0xb8(%rsp), %rsi
pushq $0x2
popq %rdx
callq 0x4eab4
leaq 0x88(%rsp), %rdi
leaq 0x7dad4(%rip), %rsi # 0x10573e
callq 0x51eec
leaq 0x70(%rsp), %r12
movq %r12, %rdi
movq %rbp, %rsi
callq 0x87a8c
leaq 0xa0(%rsp), %rdi
movq %r12, %rsi
callq 0x87af8
leaq 0x128(%rsp), %rdi
leaq 0x88(%rsp), %rsi
pushq $0x2
popq %rdx
callq 0x4eab4
movq 0x28(%rsp), %rax
movq %rax, 0x38(%rsp)
leaq 0x40(%rsp), %rdi
leaq 0x38(%rsp), %rsi
callq 0x87b08
movss 0x28(%r14), %xmm0
cmpb $0x0, 0x8(%rsp)
jne 0x87cd2
callq 0x87b18
movss %xmm0, 0xc(%rsp)
leaq 0x58(%rsp), %rdi
leaq 0xc(%rsp), %rsi
callq 0x69fce
leaq 0x140(%rsp), %rdi
leaq 0x40(%rsp), %rsi
pushq $0x2
popq %rdx
callq 0x4eab4
leaq 0xe8(%rsp), %r12
movq %r12, %rdi
movq %r13, %rsi
pushq $0x4
popq %rdx
pushq $0x1
popq %rcx
pushq $0x2
popq %r8
callq 0x4eb88
movq (%rsp), %rdi
movq %r12, %rsi
callq 0x548e2
movq %r12, %rdi
callq 0x3ec50
pushq $0x48
popq %rbp
leaq (%rsp,%rbp), %rdi
addq $0xf8, %rdi
callq 0x3ec50
addq $-0x18, %rbp
cmpq $-0x18, %rbp
jne 0x87d30
pushq $0x18
popq %r12
movq %r12, %rbp
leaq (%rsp,%rbp), %rdi
addq $0x40, %rdi
callq 0x3ec50
addq $-0x18, %rbp
cmpq $-0x18, %rbp
jne 0x87d51
movq %r12, %rbp
leaq (%rsp,%rbp), %rdi
addq $0x88, %rdi
callq 0x3ec50
addq $-0x18, %rbp
cmpq $-0x18, %rbp
jne 0x87d6b
leaq 0x70(%rsp), %rdi
callq 0x3fdbe
movq %r12, %rbp
leaq (%rsp,%rbp), %rdi
addq $0xb8, %rdi
callq 0x3ec50
addq $-0x18, %rbp
cmpq $-0x18, %rbp
jne 0x87d92
movq %r12, %rbp
leaq (%rsp,%rbp), %rdi
addq $0x158, %rdi # imm = 0x158
callq 0x3ec50
addq $-0x18, %rbp
cmpq $-0x18, %rbp
jne 0x87daf
movq %rbx, %r12
movq %rbx, %rdi
callq 0x29678
movq %r14, %rdx
addq $0x30, %rdx
jmp 0x87bbc
movq (%rsp), %rax
addq $0x1a8, %rsp # imm = 0x1A8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbp
leaq 0x40(%rsp), %rdi
callq 0x3ec50
jmp 0x87eca
movq %rax, %rbp
jmp 0x87e24
movq %rax, %rbp
movb $0x1, %bl
jmp 0x87e69
movq %rax, %rbp
leaq 0xb8(%rsp), %rdi
callq 0x3ec50
movb $0x1, %bl
jmp 0x87f3b
movq %rax, %rbp
jmp 0x87e4a
movq %rax, %rbp
movb $0x1, %bl
jmp 0x87f1d
movq %rax, %rbp
leaq 0xe8(%rsp), %rdi
callq 0x3ec50
pushq $0x48
popq %rbx
leaq (%rsp,%rbx), %rdi
addq $0xf8, %rdi
callq 0x3ec50
addq $-0x18, %rbx
cmpq $-0x18, %rbx
jne 0x87e4d
xorl %ebx, %ebx
pushq $0x18
popq %r14
leaq (%rsp,%r14), %rdi
addq $0x40, %rdi
callq 0x3ec50
addq $-0x18, %r14
cmpq $-0x18, %r14
jne 0x87e6d
jmp 0x87ecc
movq %rax, %rbp
movb $0x1, %bl
jmp 0x87f13
movq %rax, %rbp
movb $0x1, %bl
jmp 0x87f06
movq %rax, %rbp
jmp 0x87f91
movq %rax, %rbp
movb $0x1, %bl
xorl %r14d, %r14d
jmp 0x87ef7
jmp 0x87ebf
movq %rax, %rbp
movb $0x1, %bl
leaq 0x128(%rsp), %rax
movq %rax, 0x10(%rsp)
jmp 0x87ecc
movq %rax, %rbp
jmp 0x87f84
movq %rax, %rbp
movb $0x1, %bl
pushq $0x18
popq %r14
leaq (%rsp,%r14), %rdi
addq $0x88, %rdi
callq 0x3ec50
addq $-0x18, %r14
cmpq $-0x18, %r14
jne 0x87ed0
movb $0x1, %r14b
movq 0x10(%rsp), %rax
movq %rax, 0x18(%rsp)
leaq 0x70(%rsp), %rdi
callq 0x3fdbe
testb %r14b, %r14b
jne 0x87f13
leaq 0x88(%rsp), %rdi
callq 0x3ec50
movq 0x18(%rsp), %rax
movq %rax, 0x20(%rsp)
pushq $0x18
popq %r14
leaq (%rsp,%r14), %rdi
addq $0xb8, %rdi
callq 0x3ec50
addq $-0x18, %r14
cmpq $-0x18, %r14
jne 0x87f21
movq 0x20(%rsp), %r13
pushq $0x18
popq %r14
leaq (%rsp,%r14), %rdi
addq $0x158, %rdi # imm = 0x158
callq 0x3ec50
addq $-0x18, %r14
cmpq $-0x18, %r14
jne 0x87f44
leaq 0xf8(%rsp), %r14
cmpq %r13, %r14
setne %al
andb %al, %bl
cmpb $0x1, %bl
jne 0x87f84
addq $-0x18, %r13
movq %r13, %rdi
callq 0x3ec50
cmpq %r14, %r13
jne 0x87f73
leaq 0x188(%rsp), %rdi
callq 0x29678
movq (%rsp), %rdi
callq 0x3ec50
movq %rbp, %rdi
callq 0x293c0
movq %rax, %rbp
movb $0x1, %bl
jmp 0x87f40
nop
| _ZNK23completion_token_output7to_jsonB5cxx11Eb:
push rbp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 1A8h
mov ebp, edx
mov r14, rsi
mov [rsp+1D8h+var_1D8], rdi
xor esi, esi
xor edx, edx
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE5arrayESt16initializer_listINS0_6detail8json_refISD_EEE; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::array(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>>>)
mov rdx, [r14+28h]
mov rax, [r14+30h]
mov [rsp+1D8h+var_1A8], rax
lea rax, [rsp+1D8h+var_C8]
mov [rsp+1D8h+var_1B8], rax
lea rax, [rsp+1D8h+var_B0]
mov [rsp+1D8h+var_1C0], rax
lea rax, [rsp+1D8h+var_98]
mov [rsp+1D8h+var_1C8], rax
lea rax, aLogprob+3; "prob"
lea rcx, aLogprob; "logprob"
mov [rsp+1D8h+var_1D0], ebp
test ebp, ebp
cmovnz rcx, rax
mov [rsp+1D8h+var_1B0], rcx
lea r12, [rsp+1D8h+var_50]
lea r15, [rsp+1D8h+var_80]
lea r13, [rsp+1D8h+var_E0]
loc_87BBC:
cmp rdx, [rsp+1D8h+var_1A8]
jz loc_87DE0
mov r14, rdx
lea rbp, [rdx+8]
mov rdi, r12
mov rsi, rbp
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2ERKS4_; std::string::basic_string(std::string const&)
mov rdi, r12
call _ZL13validate_utf8RKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE; validate_utf8(std::string const&)
mov rbx, r12
mov rdi, r12
mov rsi, rax
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6resizeEm; std::string::resize(ulong)
mov r12, r15
mov rdi, r15
lea rsi, aInvalidAdapter+10h; "id"
call _ZN8nlohmann16json_abi_v3_11_36detail8json_refINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEEC2IJRA3_KcETnNSt9enable_ifIXsr3std16is_constructibleISF_DpT_EE5valueEiE4typeELi0EEEDpOSM_
lea rdi, [rsp+1D8h+var_68]
mov rsi, r14
call _ZN8nlohmann16json_abi_v3_11_36detail8json_refINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEEC2IJRKiETnNSt9enable_ifIXsr3std16is_constructibleISF_DpT_EE5valueEiE4typeELi0EEEDpOSL_
mov rdi, r13
mov rsi, r12
push 2
pop rdx
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>>>)
lea rdi, [rsp+1D8h+var_120]
lea rsi, aUnknownToken+8; "token"
call _ZN8nlohmann16json_abi_v3_11_36detail8json_refINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEEC2IJRA6_KcETnNSt9enable_ifIXsr3std16is_constructibleISF_DpT_EE5valueEiE4typeELi0EEEDpOSM_
lea rdi, [rsp+1D8h+var_108]
mov rsi, rbx
call _ZN8nlohmann16json_abi_v3_11_36detail8json_refINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEEC2IJRSB_ETnNSt9enable_ifIXsr3std16is_constructibleISF_DpT_EE5valueEiE4typeELi0EEEDpOSK_
lea rdi, [rsp+1D8h+var_C8]
lea rsi, [rsp+1D8h+var_120]
push 2
pop rdx
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>>>)
lea rdi, [rsp+1D8h+var_150]
lea rsi, aWstringConvert+16h; "bytes"
call _ZN8nlohmann16json_abi_v3_11_36detail8json_refINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEEC2IJRA6_KcETnNSt9enable_ifIXsr3std16is_constructibleISF_DpT_EE5valueEiE4typeELi0EEEDpOSM_
lea r12, [rsp+1D8h+var_168]
mov rdi, r12
mov rsi, rbp
call _ZN23completion_token_output12str_to_bytesERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE; completion_token_output::str_to_bytes(std::string const&)
lea rdi, [rsp+1D8h+var_138]
mov rsi, r12
call _ZN8nlohmann16json_abi_v3_11_36detail8json_refINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEEC2IJSE_ETnNSt9enable_ifIXsr3std16is_constructibleISF_DpT_EE5valueEiE4typeELi0EEEDpOSJ_
lea rdi, [rsp+1D8h+var_B0]
lea rsi, [rsp+1D8h+var_150]
push 2
pop rdx
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>>>)
mov rax, [rsp+1D8h+var_1B0]
mov [rsp+1D8h+var_1A0], rax
lea rdi, [rsp+1D8h+var_198]; this
lea rsi, [rsp+1D8h+var_1A0]
call _ZN8nlohmann16json_abi_v3_11_36detail8json_refINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEEC2IJPKcETnNSt9enable_ifIXsr3std16is_constructibleISF_DpT_EE5valueEiE4typeELi0EEEDpOSL_
movss xmm0, dword ptr [r14+28h]; float
cmp byte ptr [rsp+1D8h+var_1D0], 0
jnz short loc_87CD2
call _ZN23completion_token_output9logarithmEf; completion_token_output::logarithm(float)
loc_87CD2:
movss [rsp+1D8h+var_1CC], xmm0
lea rdi, [rsp+1D8h+var_180]
lea rsi, [rsp+1D8h+var_1CC]
call _ZN8nlohmann16json_abi_v3_11_36detail8json_refINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEEC2IJfETnNSt9enable_ifIXsr3std16is_constructibleISF_DpT_EE5valueEiE4typeELi0EEEDpOSJ_
lea rdi, [rsp+1D8h+var_98]
lea rsi, [rsp+1D8h+var_198]
push 2
pop rdx
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>>>)
lea r12, [rsp+1D8h+var_F0]
mov rdi, r12
mov rsi, r13
push 4
pop rdx
push 1
pop rcx
push 2
pop r8
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 rdi, [rsp+1D8h+var_1D8]
mov rsi, r12
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE9push_backEOSD_; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::push_back(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>&&)
mov rdi, r12
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()
push 48h ; 'H'
pop rbp
loc_87D30:
lea rdi, [rsp+rbp+1D8h+var_1D8]
add rdi, 0F8h
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()
add rbp, 0FFFFFFFFFFFFFFE8h
cmp rbp, 0FFFFFFFFFFFFFFE8h
jnz short loc_87D30
push 18h
pop r12
mov rbp, r12
loc_87D51:
lea rdi, [rsp+rbp+1D8h+var_1D8]
add rdi, 40h ; '@'
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()
add rbp, 0FFFFFFFFFFFFFFE8h
cmp rbp, 0FFFFFFFFFFFFFFE8h
jnz short loc_87D51
mov rbp, r12
loc_87D6B:
lea rdi, [rsp+rbp+1D8h+var_1D8]
add rdi, 88h
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()
add rbp, 0FFFFFFFFFFFFFFE8h
cmp rbp, 0FFFFFFFFFFFFFFE8h
jnz short loc_87D6B
lea rdi, [rsp+1D8h+var_168]
call _ZNSt12_Vector_baseIhSaIhEED2Ev; std::_Vector_base<uchar>::~_Vector_base()
mov rbp, r12
loc_87D92:
lea rdi, [rsp+rbp+1D8h+var_1D8]
add rdi, 0B8h
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()
add rbp, 0FFFFFFFFFFFFFFE8h
cmp rbp, 0FFFFFFFFFFFFFFE8h
jnz short loc_87D92
mov rbp, r12
loc_87DAF:
lea rdi, [rsp+rbp+1D8h+var_1D8]
add rdi, 158h
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()
add rbp, 0FFFFFFFFFFFFFFE8h
cmp rbp, 0FFFFFFFFFFFFFFE8h
jnz short loc_87DAF
mov r12, rbx
mov rdi, rbx; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
mov rdx, r14
add rdx, 30h ; '0'
jmp loc_87BBC
loc_87DE0:
mov rax, [rsp+1D8h+var_1D8]
add rsp, 1A8h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
mov rbp, rax
lea rdi, [rsp+arg_38]
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvED2Ev; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::~basic_json()
jmp loc_87ECA
mov rbp, rax
jmp short loc_87E24
mov rbp, rax
mov bl, 1
jmp short loc_87E69
mov rbp, rax
lea rdi, [rsp+arg_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()
loc_87E24:
mov bl, 1
jmp loc_87F3B
mov rbp, rax
jmp short loc_87E4A
mov rbp, rax
mov bl, 1
jmp loc_87F1D
mov rbp, rax
lea rdi, [rsp+arg_E0]
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_87E4A:
push 48h ; 'H'
pop rbx
loc_87E4D:
lea rdi, [rsp+rbx+0]
add rdi, 0F8h
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()
add rbx, 0FFFFFFFFFFFFFFE8h
cmp rbx, 0FFFFFFFFFFFFFFE8h
jnz short loc_87E4D
xor ebx, ebx
loc_87E69:
push 18h
pop r14
loc_87E6D:
lea rdi, [rsp+r14+0]
add rdi, 40h ; '@'
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()
add r14, 0FFFFFFFFFFFFFFE8h
cmp r14, 0FFFFFFFFFFFFFFE8h
jnz short loc_87E6D
jmp short loc_87ECC
mov rbp, rax
mov bl, 1
jmp loc_87F13
mov rbp, rax
mov bl, 1
jmp short loc_87F06
mov rbp, rax
jmp loc_87F91
mov rbp, rax
mov bl, 1
xor r14d, r14d
jmp short loc_87EF7
jmp short loc_87EBF
mov rbp, rax
mov bl, 1
lea rax, [rsp+arg_120]
mov [rsp+arg_8], rax
jmp short loc_87ECC
loc_87EBF:
mov rbp, rax
jmp loc_87F84
mov rbp, rax
loc_87ECA:
mov bl, 1
loc_87ECC:
push 18h
pop r14
loc_87ED0:
lea rdi, [rsp+r14+0]
add rdi, 88h
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()
add r14, 0FFFFFFFFFFFFFFE8h
cmp r14, 0FFFFFFFFFFFFFFE8h
jnz short loc_87ED0
mov r14b, 1
mov rax, [rsp+arg_8]
mov [rsp+arg_10], rax
loc_87EF7:
lea rdi, [rsp+arg_68]
call _ZNSt12_Vector_baseIhSaIhEED2Ev; std::_Vector_base<uchar>::~_Vector_base()
test r14b, r14b
jnz short loc_87F13
loc_87F06:
lea rdi, [rsp+arg_80]
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_87F13:
mov rax, [rsp+arg_10]
mov [rsp+arg_18], rax
loc_87F1D:
push 18h
pop r14
loc_87F21:
lea rdi, [rsp+r14+0]
add rdi, 0B8h
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()
add r14, 0FFFFFFFFFFFFFFE8h
cmp r14, 0FFFFFFFFFFFFFFE8h
jnz short loc_87F21
loc_87F3B:
mov r13, [rsp+arg_18]
loc_87F40:
push 18h
pop r14
loc_87F44:
lea rdi, [rsp+r14+0]
add rdi, 158h
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()
add r14, 0FFFFFFFFFFFFFFE8h
cmp r14, 0FFFFFFFFFFFFFFE8h
jnz short loc_87F44
lea r14, [rsp+arg_F0]
cmp r14, r13
setnz al
and bl, al
cmp bl, 1
jnz short loc_87F84
loc_87F73:
add r13, 0FFFFFFFFFFFFFFE8h
mov rdi, r13
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()
cmp r13, r14
jnz short loc_87F73
loc_87F84:
lea rdi, [rsp+arg_180]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
loc_87F91:
mov rdi, [rsp+0]
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvED2Ev; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::~basic_json()
mov rdi, rbp
call __Unwind_Resume
mov rbp, rax
mov bl, 1
jmp short loc_87F40
| long long completion_token_output::to_json[abi:cxx11](long long a1, long long a2, char a3)
{
long long v4; // rdx
long long v5; // r14
long long *v6; // rbp
long long i; // rbp
long long j; // rbp
long long k; // rbp
long long m; // rbp
long long n; // rbp
char v13; // [rsp+8h] [rbp-1D0h]
long long v14; // [rsp+30h] [rbp-1A8h]
_BYTE v15[24]; // [rsp+40h] [rbp-198h] BYREF
_BYTE v16[24]; // [rsp+58h] [rbp-180h] BYREF
_QWORD v17[3]; // [rsp+70h] [rbp-168h] BYREF
_BYTE v18[24]; // [rsp+88h] [rbp-150h] BYREF
_BYTE v19[24]; // [rsp+A0h] [rbp-138h] BYREF
_BYTE v20[24]; // [rsp+B8h] [rbp-120h] BYREF
_BYTE v21[24]; // [rsp+D0h] [rbp-108h] BYREF
_BYTE v22[16]; // [rsp+E8h] [rbp-F0h] BYREF
_BYTE v23[24]; // [rsp+F8h] [rbp-E0h] BYREF
_BYTE v24[24]; // [rsp+110h] [rbp-C8h] BYREF
_BYTE v25[24]; // [rsp+128h] [rbp-B0h] BYREF
_BYTE v26[24]; // [rsp+140h] [rbp-98h] BYREF
_BYTE v27[24]; // [rsp+158h] [rbp-80h] BYREF
_BYTE v28[24]; // [rsp+170h] [rbp-68h] BYREF
long long v29[10]; // [rsp+188h] [rbp-50h] BYREF
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::array(
a1,
0LL,
0LL);
v4 = *(_QWORD *)(a2 + 40);
v14 = *(_QWORD *)(a2 + 48);
v13 = a3;
while ( v4 != v14 )
{
v5 = v4;
v6 = (long long *)(v4 + 8);
std::string::basic_string(v29, v4 + 8);
validate_utf8(v29);
std::string::resize(v29);
ZN8nlohmann16json_abi_v3_11_36detail8json_refINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEEC2IJRA3_KcETnNSt9enable_ifIXsr3std16is_constructibleISF_DpT_EE5valueEiE4typeELi0EEEDpOSM_((long long)v27);
ZN8nlohmann16json_abi_v3_11_36detail8json_refINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEEC2IJRKiETnNSt9enable_ifIXsr3std16is_constructibleISF_DpT_EE5valueEiE4typeELi0EEEDpOSL_(
(long long)v28,
v5);
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)v23,
(long long)v27,
2LL);
ZN8nlohmann16json_abi_v3_11_36detail8json_refINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEEC2IJRA6_KcETnNSt9enable_ifIXsr3std16is_constructibleISF_DpT_EE5valueEiE4typeELi0EEEDpOSM_((long long)v20);
ZN8nlohmann16json_abi_v3_11_36detail8json_refINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEEC2IJRSB_ETnNSt9enable_ifIXsr3std16is_constructibleISF_DpT_EE5valueEiE4typeELi0EEEDpOSK_(
(long long)v21,
(long long)v29);
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)v24,
(long long)v20,
2LL);
ZN8nlohmann16json_abi_v3_11_36detail8json_refINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEEC2IJRA6_KcETnNSt9enable_ifIXsr3std16is_constructibleISF_DpT_EE5valueEiE4typeELi0EEEDpOSM_((long long)v18);
completion_token_output::str_to_bytes((long long)v17, v6);
ZN8nlohmann16json_abi_v3_11_36detail8json_refINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEEC2IJSE_ETnNSt9enable_ifIXsr3std16is_constructibleISF_DpT_EE5valueEiE4typeELi0EEEDpOSJ_((long long)v19);
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)v25,
(long long)v18,
2LL);
ZN8nlohmann16json_abi_v3_11_36detail8json_refINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEEC2IJPKcETnNSt9enable_ifIXsr3std16is_constructibleISF_DpT_EE5valueEiE4typeELi0EEEDpOSL_((long long)v15);
if ( !v13 )
completion_token_output::logarithm((completion_token_output *)v15, *(float *)(v5 + 40));
ZN8nlohmann16json_abi_v3_11_36detail8json_refINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEEC2IJfETnNSt9enable_ifIXsr3std16is_constructibleISF_DpT_EE5valueEiE4typeELi0EEEDpOSJ_((long long)v16);
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)v26,
(long long)v15,
2LL);
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,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(
v22,
v23,
4LL,
1LL,
2LL);
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::push_back(
a1,
v22);
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,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)v22);
for ( i = 72LL; 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>::~basic_json((long long)&v23[i]);
for ( j = 24LL; j != -24; j -= 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>::~basic_json((long long)&v15[j]);
for ( k = 24LL; k != -24; k -= 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>::~basic_json((long long)&v18[k]);
std::_Vector_base<unsigned char>::~_Vector_base(v17);
for ( m = 24LL; m != -24; m -= 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>::~basic_json((long long)&v20[m]);
for ( n = 24LL; n != -24; n -= 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>::~basic_json((long long)&v27[n]);
std::string::~string(v29);
v4 = v5 + 48;
}
return a1;
}
| to_json[abi:cxx11]:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x1a8
MOV EBP,EDX
MOV R14,RSI
MOV qword ptr [RSP],RDI
XOR ESI,ESI
XOR EDX,EDX
CALL 0x0014ea90
MOV RDX,qword ptr [R14 + 0x28]
MOV RAX,qword ptr [R14 + 0x30]
MOV qword ptr [RSP + 0x30],RAX
LEA RAX,[RSP + 0x110]
MOV qword ptr [RSP + 0x20],RAX
LEA RAX,[RSP + 0x128]
MOV qword ptr [RSP + 0x18],RAX
LEA RAX,[RSP + 0x140]
MOV qword ptr [RSP + 0x10],RAX
LEA RAX,[0x1f7874]
LEA RCX,[0x1f7871]
MOV dword ptr [RSP + 0x8],EBP
TEST EBP,EBP
CMOVNZ RCX,RAX
MOV qword ptr [RSP + 0x28],RCX
LEA R12,[RSP + 0x188]
LEA R15,[RSP + 0x158]
LEA R13,[RSP + 0xf8]
LAB_00187bbc:
CMP RDX,qword ptr [RSP + 0x30]
JZ 0x00187de0
MOV R14,RDX
LEA RBP,[RDX + 0x8]
LAB_00187bce:
MOV RDI,R12
MOV RSI,RBP
CALL 0x00128f50
MOV RDI,R12
CALL 0x0013b4a5
LAB_00187be1:
MOV RBX,R12
MOV RDI,R12
MOV RSI,RAX
CALL 0x00128f60
LAB_00187bef:
MOV R12,R15
MOV RDI,R15
LEA RSI,[0x1f5b40]
CALL 0x00151ecc
LEA RDI,[RSP + 0x170]
MOV RSI,R14
CALL 0x00151edc
LAB_00187c11:
MOV RDI,R13
MOV RSI,R12
PUSH 0x2
POP RDX
CALL 0x0014eab4
LAB_00187c1f:
LEA RDI,[RSP + 0xb8]
LEA RSI,[0x1f55a1]
CALL 0x00151eec
LAB_00187c33:
LEA RDI,[RSP + 0xd0]
MOV RSI,RBX
CALL 0x00166710
LAB_00187c43:
LEA RDI,[RSP + 0x110]
LEA RSI,[RSP + 0xb8]
PUSH 0x2
POP RDX
CALL 0x0014eab4
LAB_00187c5b:
LEA RDI,[RSP + 0x88]
LEA RSI,[0x20573e]
CALL 0x00151eec
LAB_00187c6f:
LEA R12,[RSP + 0x70]
MOV RDI,R12
MOV RSI,RBP
CALL 0x00187a8c
LAB_00187c7f:
LEA RDI,[RSP + 0xa0]
MOV RSI,R12
CALL 0x00187af8
LAB_00187c8f:
LEA RDI,[RSP + 0x128]
LEA RSI,[RSP + 0x88]
PUSH 0x2
POP RDX
CALL 0x0014eab4
MOV RAX,qword ptr [RSP + 0x28]
MOV qword ptr [RSP + 0x38],RAX
LAB_00187cb1:
LEA RDI,[RSP + 0x40]
LEA RSI,[RSP + 0x38]
CALL 0x00187b08
MOVSS XMM0,dword ptr [R14 + 0x28]
CMP byte ptr [RSP + 0x8],0x0
JNZ 0x00187cd2
LAB_00187ccd:
CALL 0x00187b18
LAB_00187cd2:
MOVSS dword ptr [RSP + 0xc],XMM0
LEA RDI,[RSP + 0x58]
LEA RSI,[RSP + 0xc]
CALL 0x00169fce
LAB_00187ce7:
LEA RDI,[RSP + 0x140]
LEA RSI,[RSP + 0x40]
PUSH 0x2
POP RDX
CALL 0x0014eab4
LAB_00187cfc:
LEA R12,[RSP + 0xe8]
MOV RDI,R12
MOV RSI,R13
PUSH 0x4
POP RDX
PUSH 0x1
POP RCX
PUSH 0x2
POP R8
CALL 0x0014eb88
LAB_00187d19:
MOV RDI,qword ptr [RSP]
MOV RSI,R12
CALL 0x001548e2
LAB_00187d25:
MOV RDI,R12
CALL 0x0013ec50
PUSH 0x48
POP RBP
LAB_00187d30:
LEA RDI,[RSP + RBP*0x1]
ADD RDI,0xf8
CALL 0x0013ec50
ADD RBP,-0x18
CMP RBP,-0x18
JNZ 0x00187d30
PUSH 0x18
POP R12
MOV RBP,R12
LAB_00187d51:
LEA RDI,[RSP + RBP*0x1]
ADD RDI,0x40
CALL 0x0013ec50
ADD RBP,-0x18
CMP RBP,-0x18
JNZ 0x00187d51
MOV RBP,R12
LAB_00187d6b:
LEA RDI,[RSP + RBP*0x1]
ADD RDI,0x88
CALL 0x0013ec50
ADD RBP,-0x18
CMP RBP,-0x18
JNZ 0x00187d6b
LEA RDI,[RSP + 0x70]
CALL 0x0013fdbe
MOV RBP,R12
LAB_00187d92:
LEA RDI,[RSP + RBP*0x1]
ADD RDI,0xb8
CALL 0x0013ec50
ADD RBP,-0x18
CMP RBP,-0x18
JNZ 0x00187d92
MOV RBP,R12
LAB_00187daf:
LEA RDI,[RSP + RBP*0x1]
ADD RDI,0x158
CALL 0x0013ec50
ADD RBP,-0x18
CMP RBP,-0x18
JNZ 0x00187daf
MOV R12,RBX
MOV RDI,RBX
CALL 0x00129678
MOV RDX,R14
ADD RDX,0x30
JMP 0x00187bbc
LAB_00187de0:
MOV RAX,qword ptr [RSP]
ADD RSP,0x1a8
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
|
/* completion_token_output::to_json[abi:cxx11](bool) const */
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
* completion_token_output::to_json_abi_cxx11_(bool param_1)
{
int in_EDX;
long lVar1;
long lVar2;
long lVar3;
long lVar4;
long in_RSI;
int7 in_register_00000039;
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,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;
float fVar5;
char local_1d0;
float local_1cc;
int1 *local_1c8;
int1 *local_1c0;
int1 *local_1b8;
char *local_1b0;
long local_1a8;
char *local_1a0;
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,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_198 [24];
int1 local_180 [24];
completion_token_output local_168 [24];
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
local_150 [24];
int1 local_138 [24];
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
local_120 [24];
int1 local_108 [24];
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
local_f0 [16];
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
local_e0 [24];
int1 local_c8 [24];
int1 local_b0 [24];
int1 local_98 [24];
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
local_80 [24];
int1 local_68 [24];
string local_50 [32];
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>
*)CONCAT71(in_register_00000039,param_1);
nlohmann::json_abi_v3_11_3::
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::array(this,0,0);
lVar1 = *(long *)(in_RSI + 0x28);
local_1a8 = *(long *)(in_RSI + 0x30);
local_1b8 = local_c8;
local_1c0 = local_b0;
local_1c8 = local_98;
local_1b0 = "logprob";
if (in_EDX != 0) {
local_1b0 = "prob";
}
for (; lVar1 != local_1a8; lVar1 = lVar1 + 0x30) {
/* try { // try from 00187bce to 00187bd8 has its CatchHandler @ 00187e97 */
std::__cxx11::string::string(local_50,(string *)(lVar1 + 8));
validate_utf8(local_50);
/* try { // try from 00187be1 to 00187bee has its CatchHandler @ 00187ea9 */
std::__cxx11::string::resize((ulong)local_50);
/* try { // try from 00187bef to 00187c00 has its CatchHandler @ 00187ebf */
_ZN8nlohmann16json_abi_v3_11_36detail8json_refINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEEC2IJRA3_KcETnNSt9enable_ifIXsr3std16is_constructibleISF_DpT_EE5valueEiE4typeELi0EEEDpOSM_
(local_80,"id");
_ZN8nlohmann16json_abi_v3_11_36detail8json_refINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEEC2IJRKiETnNSt9enable_ifIXsr3std16is_constructibleISF_DpT_EE5valueEiE4typeELi0EEEDpOSL_
(local_68,lVar1);
/* try { // try from 00187c11 to 00187c1e has its CatchHandler @ 00187fa2 */
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_e0,local_80,2);
/* try { // try from 00187c1f to 00187c32 has its CatchHandler @ 00187e08 */
_ZN8nlohmann16json_abi_v3_11_36detail8json_refINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEEC2IJRA6_KcETnNSt9enable_ifIXsr3std16is_constructibleISF_DpT_EE5valueEiE4typeELi0EEEDpOSM_
(local_120,"token");
/* try { // try from 00187c33 to 00187c42 has its CatchHandler @ 00187e14 */
_ZN8nlohmann16json_abi_v3_11_36detail8json_refINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEEC2IJRSB_ETnNSt9enable_ifIXsr3std16is_constructibleISF_DpT_EE5valueEiE4typeELi0EEEDpOSK_
(local_108,local_50);
/* try { // try from 00187c43 to 00187c5a has its CatchHandler @ 00187e30 */
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_c8,local_120,2);
/* try { // try from 00187c5b to 00187c6e has its CatchHandler @ 00187e86 */
_ZN8nlohmann16json_abi_v3_11_36detail8json_refINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEEC2IJRA6_KcETnNSt9enable_ifIXsr3std16is_constructibleISF_DpT_EE5valueEiE4typeELi0EEEDpOSM_
(local_150,"bytes");
/* try { // try from 00187c6f to 00187c7e has its CatchHandler @ 00187e90 */
str_to_bytes(local_168,(string *)(lVar1 + 8));
/* try { // try from 00187c7f to 00187c8e has its CatchHandler @ 00187e9f */
_ZN8nlohmann16json_abi_v3_11_36detail8json_refINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEEC2IJSE_ETnNSt9enable_ifIXsr3std16is_constructibleISF_DpT_EE5valueEiE4typeELi0EEEDpOSJ_
(local_138,local_168);
/* try { // try from 00187c8f to 00187ca6 has its CatchHandler @ 00187eab */
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_b0,local_150,2);
local_1a0 = local_1b0;
/* try { // try from 00187cb1 to 00187cbf has its CatchHandler @ 00187ec7 */
_ZN8nlohmann16json_abi_v3_11_36detail8json_refINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEEC2IJPKcETnNSt9enable_ifIXsr3std16is_constructibleISF_DpT_EE5valueEiE4typeELi0EEEDpOSL_
(local_198,&local_1a0);
fVar5 = *(float *)(lVar1 + 0x28);
local_1d0 = (char)in_EDX;
if (local_1d0 == '\0') {
/* try { // try from 00187ccd to 00187cd1 has its CatchHandler @ 00187df6 */
fVar5 = (float)logarithm(fVar5);
}
local_1cc = fVar5;
_ZN8nlohmann16json_abi_v3_11_36detail8json_refINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEEC2IJfETnNSt9enable_ifIXsr3std16is_constructibleISF_DpT_EE5valueEiE4typeELi0EEEDpOSJ_
(local_180,&local_1cc);
/* try { // try from 00187ce7 to 00187cfb has its CatchHandler @ 00187e0d */
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_98,local_198,2);
/* try { // try from 00187cfc to 00187d18 has its CatchHandler @ 00187e2b */
nlohmann::json_abi_v3_11_3::
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,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_f0,local_e0,4,1,2);
/* try { // try from 00187d19 to 00187d24 has its CatchHandler @ 00187e3a */
nlohmann::json_abi_v3_11_3::
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::push_back(this,(basic_json *)local_f0);
nlohmann::json_abi_v3_11_3::
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,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_f0);
lVar2 = 0x48;
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>
::~basic_json(local_e0 + lVar2);
lVar2 = lVar2 + -0x18;
} while (lVar2 != -0x18);
lVar2 = 0x18;
lVar3 = lVar2;
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>
::~basic_json(local_198 + lVar3);
lVar3 = lVar3 + -0x18;
lVar4 = lVar2;
} while (lVar3 != -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>
::~basic_json(local_150 + lVar4);
lVar4 = lVar4 + -0x18;
} while (lVar4 != -0x18);
std::_Vector_base<unsigned_char,std::allocator<unsigned_char>>::~_Vector_base
((_Vector_base<unsigned_char,std::allocator<unsigned_char>> *)local_168);
lVar3 = lVar2;
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>
::~basic_json(local_120 + lVar3);
lVar3 = lVar3 + -0x18;
} while (lVar3 != -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>
::~basic_json(local_80 + lVar2);
lVar2 = lVar2 + -0x18;
} while (lVar2 != -0x18);
std::__cxx11::string::~string(local_50);
}
return this;
}
| |
42,247 | test_str_to_int | eloqsql/libmariadb/unittest/libmariadb/ps_bugs.c | static int test_str_to_int(MYSQL *mysql)
{
int i;
struct st_atoi_test{
const char *str_value;
int int_value;
int rc;
} atoi_tests[]=
{
{"0", 0, 0},
{" 1",1, 0},
{"123 ",123, 0},
{"10.2",10, MYSQL_DATA_TRUNCATED},
{"a", 0, MYSQL_DATA_TRUNCATED},
{"1 2 3", 1, MYSQL_DATA_TRUNCATED},
{NULL, 0, 0}
};
for(i=0; atoi_tests[i].str_value; i++)
{
int rc;
MYSQL_STMT *stmt;
MYSQL_BIND bind[1];
struct st_atoi_test *test= &atoi_tests[i];
char sql[256];
int int_value;
snprintf(sql, sizeof(sql), "SELECT '%s'",test->str_value);
stmt= mysql_stmt_init(mysql);
rc= mysql_stmt_prepare(stmt, sql, (ulong)strlen(sql));
check_stmt_rc(rc, stmt);
rc= mysql_stmt_execute(stmt);
check_stmt_rc(rc, stmt);
rc= mysql_stmt_store_result(stmt);
memset(bind, 0, sizeof(MYSQL_BIND));
bind[0].buffer_type= MYSQL_TYPE_LONG;
bind[0].buffer= &int_value;
bind[0].buffer_length= sizeof(int_value);
rc= mysql_stmt_bind_result(stmt, bind);
check_stmt_rc(rc, stmt);
rc= mysql_stmt_fetch(stmt);
diag("test: str='%s', expected/returned value =%d/%d, expected/returned rc=%d/%d",
test->str_value, test->int_value, int_value, test->rc, rc);
FAIL_UNLESS(rc == test->rc, "unexpected return code");
FAIL_UNLESS(int_value == test->int_value, "unexpected int value");
mysql_stmt_close(stmt);
}
return OK;
} | O0 | c | test_str_to_int:
pushq %rbp
movq %rsp, %rbp
subq $0x250, %rsp # imm = 0x250
movq %fs:0x28, %rax
movq %rax, -0x8(%rbp)
movq %rdi, -0x120(%rbp)
leaq -0x1a0(%rbp), %rdi
leaq 0x478e3(%rip), %rsi # 0x76f10
movl $0x70, %edx
callq 0x14370
movl $0x0, -0x124(%rbp)
movslq -0x124(%rbp), %rcx
leaq -0x1a0(%rbp), %rax
shlq $0x4, %rcx
addq %rcx, %rax
cmpq $0x0, (%rax)
je 0x2f926
movslq -0x124(%rbp), %rcx
leaq -0x1a0(%rbp), %rax
shlq $0x4, %rcx
addq %rcx, %rax
movq %rax, -0x228(%rbp)
leaq -0x110(%rbp), %rdi
movq -0x228(%rbp), %rax
movq (%rax), %rcx
movl $0x100, %esi # imm = 0x100
leaq 0x3b3ef(%rip), %rdx # 0x6aa88
movb $0x0, %al
callq 0x146e0
movq -0x120(%rbp), %rdi
callq 0x44950
movq %rax, -0x1b0(%rbp)
movq -0x1b0(%rbp), %rax
movq %rax, -0x240(%rbp)
leaq -0x110(%rbp), %rax
movq %rax, -0x238(%rbp)
leaq -0x110(%rbp), %rdi
callq 0x141a0
movq -0x240(%rbp), %rdi
movq -0x238(%rbp), %rsi
movq %rax, %rdx
callq 0x45070
movl %eax, -0x1a4(%rbp)
cmpl $0x0, -0x1a4(%rbp)
je 0x2f738
movq -0x1b0(%rbp), %rdi
callq 0x43fd0
movq %rax, %rsi
leaq 0x35e7a(%rip), %rdi # 0x65590
leaq 0x36950(%rip), %rdx # 0x6606d
movl $0x1273, %ecx # imm = 0x1273
movb $0x0, %al
callq 0x2fc40
movl $0x1, -0x114(%rbp)
jmp 0x2f930
jmp 0x2f73a
movq -0x1b0(%rbp), %rdi
callq 0x46580
movl %eax, -0x1a4(%rbp)
cmpl $0x0, -0x1a4(%rbp)
je 0x2f78d
movq -0x1b0(%rbp), %rdi
callq 0x43fd0
movq %rax, %rsi
leaq 0x35e25(%rip), %rdi # 0x65590
leaq 0x368fb(%rip), %rdx # 0x6606d
movl $0x1275, %ecx # imm = 0x1275
movb $0x0, %al
callq 0x2fc40
movl $0x1, -0x114(%rbp)
jmp 0x2f930
jmp 0x2f78f
movq -0x1b0(%rbp), %rdi
callq 0x454d0
movl %eax, -0x1a4(%rbp)
leaq -0x220(%rbp), %rdi
xorl %esi, %esi
movl $0x70, %edx
callq 0x14260
movl $0x3, -0x1c0(%rbp)
leaq -0x22c(%rbp), %rax
movq %rax, -0x210(%rbp)
movq $0x4, -0x1e0(%rbp)
movq -0x1b0(%rbp), %rdi
leaq -0x220(%rbp), %rsi
callq 0x43940
movsbl %al, %eax
movl %eax, -0x1a4(%rbp)
cmpl $0x0, -0x1a4(%rbp)
je 0x2f834
movq -0x1b0(%rbp), %rdi
callq 0x43fd0
movq %rax, %rsi
leaq 0x35d7e(%rip), %rdi # 0x65590
leaq 0x36854(%rip), %rdx # 0x6606d
movl $0x127e, %ecx # imm = 0x127E
movb $0x0, %al
callq 0x2fc40
movl $0x1, -0x114(%rbp)
jmp 0x2f930
jmp 0x2f836
movq -0x1b0(%rbp), %rdi
callq 0x44020
movl %eax, -0x1a4(%rbp)
movq -0x228(%rbp), %rax
movq (%rax), %rsi
movq -0x228(%rbp), %rax
movl 0x8(%rax), %edx
movl -0x22c(%rbp), %ecx
movq -0x228(%rbp), %rax
movl 0xc(%rax), %r8d
movl -0x1a4(%rbp), %r9d
leaq 0x3b219(%rip), %rdi # 0x6aa94
movb $0x0, %al
callq 0x2fc40
movl -0x1a4(%rbp), %eax
movq -0x228(%rbp), %rcx
cmpl 0xc(%rcx), %eax
je 0x2f8c1
leaq 0x35cf5(%rip), %rdi # 0x65590
leaq 0x3b23d(%rip), %rsi # 0x6aadf
leaq 0x367c4(%rip), %rdx # 0x6606d
movl $0x1283, %ecx # imm = 0x1283
movb $0x0, %al
callq 0x2fc40
movl $0x1, -0x114(%rbp)
jmp 0x2f930
jmp 0x2f8c3
jmp 0x2f8c5
movl -0x22c(%rbp), %eax
movq -0x228(%rbp), %rcx
cmpl 0x8(%rcx), %eax
je 0x2f904
leaq 0x35cb2(%rip), %rdi # 0x65590
leaq 0x3b211(%rip), %rsi # 0x6aaf6
leaq 0x36781(%rip), %rdx # 0x6606d
movl $0x1284, %ecx # imm = 0x1284
movb $0x0, %al
callq 0x2fc40
movl $0x1, -0x114(%rbp)
jmp 0x2f930
jmp 0x2f906
movq -0x1b0(%rbp), %rdi
callq 0x43eb0
movl -0x124(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x124(%rbp)
jmp 0x2f641
movl $0x0, -0x114(%rbp)
movl -0x114(%rbp), %eax
movl %eax, -0x244(%rbp)
movq %fs:0x28, %rax
movq -0x8(%rbp), %rcx
cmpq %rcx, %rax
jne 0x2f95d
movl -0x244(%rbp), %eax
addq $0x250, %rsp # imm = 0x250
popq %rbp
retq
callq 0x144c0
nopw %cs:(%rax,%rax)
| test_str_to_int:
push rbp
mov rbp, rsp
sub rsp, 250h
mov rax, fs:28h
mov [rbp+var_8], rax
mov [rbp+var_120], rdi
lea rdi, [rbp+var_1A0]
lea rsi, off_76F10; "0"
mov edx, 70h ; 'p'
call _memcpy
mov [rbp+var_124], 0
loc_2F641:
movsxd rcx, [rbp+var_124]
lea rax, [rbp+var_1A0]
shl rcx, 4
add rax, rcx
cmp qword ptr [rax], 0
jz loc_2F926
movsxd rcx, [rbp+var_124]
lea rax, [rbp+var_1A0]
shl rcx, 4
add rax, rcx
mov [rbp+var_228], rax
lea rdi, [rbp+var_110]
mov rax, [rbp+var_228]
mov rcx, [rax]
mov esi, 100h
lea rdx, aSelectS_0; "SELECT '%s'"
mov al, 0
call _snprintf
mov rdi, [rbp+var_120]
call mysql_stmt_init
mov [rbp+var_1B0], rax
mov rax, [rbp+var_1B0]
mov [rbp+var_240], rax
lea rax, [rbp+var_110]
mov [rbp+var_238], rax
lea rdi, [rbp+var_110]
call _strlen
mov rdi, [rbp+var_240]
mov rsi, [rbp+var_238]
mov rdx, rax
call mysql_stmt_prepare
mov [rbp+var_1A4], eax
cmp [rbp+var_1A4], 0
jz short loc_2F738
mov rdi, [rbp+var_1B0]
call mysql_stmt_error
mov rsi, rax
lea rdi, aErrorSSD; "Error: %s (%s: %d)"
lea rdx, aWorkspaceLlm4b_0; "/workspace/llm4binary/github2025/eloqsq"...
mov ecx, 1273h
mov al, 0
call diag
mov [rbp+var_114], 1
jmp loc_2F930
loc_2F738:
jmp short $+2
loc_2F73A:
mov rdi, [rbp+var_1B0]
call mysql_stmt_execute
mov [rbp+var_1A4], eax
cmp [rbp+var_1A4], 0
jz short loc_2F78D
mov rdi, [rbp+var_1B0]
call mysql_stmt_error
mov rsi, rax
lea rdi, aErrorSSD; "Error: %s (%s: %d)"
lea rdx, aWorkspaceLlm4b_0; "/workspace/llm4binary/github2025/eloqsq"...
mov ecx, 1275h
mov al, 0
call diag
mov [rbp+var_114], 1
jmp loc_2F930
loc_2F78D:
jmp short $+2
loc_2F78F:
mov rdi, [rbp+var_1B0]
call mysql_stmt_store_result
mov [rbp+var_1A4], eax
lea rdi, [rbp+var_220]
xor esi, esi
mov edx, 70h ; 'p'
call _memset
mov [rbp+var_1C0], 3
lea rax, [rbp+var_22C]
mov [rbp+var_210], rax
mov [rbp+var_1E0], 4
mov rdi, [rbp+var_1B0]
lea rsi, [rbp+var_220]
call mysql_stmt_bind_result
movsx eax, al
mov [rbp+var_1A4], eax
cmp [rbp+var_1A4], 0
jz short loc_2F834
mov rdi, [rbp+var_1B0]
call mysql_stmt_error
mov rsi, rax
lea rdi, aErrorSSD; "Error: %s (%s: %d)"
lea rdx, aWorkspaceLlm4b_0; "/workspace/llm4binary/github2025/eloqsq"...
mov ecx, 127Eh
mov al, 0
call diag
mov [rbp+var_114], 1
jmp loc_2F930
loc_2F834:
jmp short $+2
loc_2F836:
mov rdi, [rbp+var_1B0]
call mysql_stmt_fetch
mov [rbp+var_1A4], eax
mov rax, [rbp+var_228]
mov rsi, [rax]
mov rax, [rbp+var_228]
mov edx, [rax+8]
mov ecx, [rbp+var_22C]
mov rax, [rbp+var_228]
mov r8d, [rax+0Ch]
mov r9d, [rbp+var_1A4]
lea rdi, aTestStrSExpect; "test: str='%s', expected/returned value"...
mov al, 0
call diag
mov eax, [rbp+var_1A4]
mov rcx, [rbp+var_228]
cmp eax, [rcx+0Ch]
jz short loc_2F8C1
lea rdi, aErrorSSD; "Error: %s (%s: %d)"
lea rsi, aUnexpectedRetu; "unexpected return code"
lea rdx, aWorkspaceLlm4b_0; "/workspace/llm4binary/github2025/eloqsq"...
mov ecx, 1283h
mov al, 0
call diag
mov [rbp+var_114], 1
jmp short loc_2F930
loc_2F8C1:
jmp short $+2
loc_2F8C3:
jmp short $+2
loc_2F8C5:
mov eax, [rbp+var_22C]
mov rcx, [rbp+var_228]
cmp eax, [rcx+8]
jz short loc_2F904
lea rdi, aErrorSSD; "Error: %s (%s: %d)"
lea rsi, aUnexpectedIntV; "unexpected int value"
lea rdx, aWorkspaceLlm4b_0; "/workspace/llm4binary/github2025/eloqsq"...
mov ecx, 1284h
mov al, 0
call diag
mov [rbp+var_114], 1
jmp short loc_2F930
loc_2F904:
jmp short $+2
loc_2F906:
mov rdi, [rbp+var_1B0]
call mysql_stmt_close
mov eax, [rbp+var_124]
add eax, 1
mov [rbp+var_124], eax
jmp loc_2F641
loc_2F926:
mov [rbp+var_114], 0
loc_2F930:
mov eax, [rbp+var_114]
mov [rbp+var_244], eax
mov rax, fs:28h
mov rcx, [rbp+var_8]
cmp rax, rcx
jnz short loc_2F95D
mov eax, [rbp+var_244]
add rsp, 250h
pop rbp
retn
loc_2F95D:
call ___stack_chk_fail
| long long test_str_to_int(long long a1)
{
long long v1; // rax
int v2; // eax
int v3; // r8d
int v4; // r9d
int v5; // eax
int v6; // r8d
int v7; // r9d
char v8; // al
int v9; // eax
int v10; // r8d
int v11; // r9d
int v12; // r8d
int v13; // r9d
long long v15; // [rsp+10h] [rbp-240h]
int v16; // [rsp+24h] [rbp-22Ch] BYREF
_OWORD *v17; // [rsp+28h] [rbp-228h]
_BYTE v18[16]; // [rsp+30h] [rbp-220h] BYREF
int *v19; // [rsp+40h] [rbp-210h]
long long v20; // [rsp+70h] [rbp-1E0h]
int v21; // [rsp+90h] [rbp-1C0h]
long long v22; // [rsp+A0h] [rbp-1B0h]
int v23; // [rsp+ACh] [rbp-1A4h]
_QWORD v24[15]; // [rsp+B0h] [rbp-1A0h] BYREF
int i; // [rsp+12Ch] [rbp-124h]
long long v26; // [rsp+130h] [rbp-120h]
_BYTE v28[264]; // [rsp+140h] [rbp-110h] BYREF
unsigned long long v29; // [rsp+248h] [rbp-8h]
v29 = __readfsqword(0x28u);
v26 = a1;
memcpy(v24, &off_76F10, 112LL);
for ( i = 0; v24[2 * i]; ++i )
{
v17 = &v24[2 * i];
snprintf(v28, 256LL, "SELECT '%s'", *(const char **)v17);
v22 = mysql_stmt_init(v26);
v15 = v22;
v1 = strlen(v28);
v23 = mysql_stmt_prepare(v15, v28, v1);
if ( v23 )
{
v2 = mysql_stmt_error(v22);
diag(
(unsigned int)"Error: %s (%s: %d)",
v2,
(unsigned int)"/workspace/llm4binary/github2025/eloqsql/libmariadb/unittest/libmariadb/ps_bugs.c",
4723,
v3,
v4);
return 1;
}
v23 = mysql_stmt_execute(v22);
if ( v23 )
{
v5 = mysql_stmt_error(v22);
diag(
(unsigned int)"Error: %s (%s: %d)",
v5,
(unsigned int)"/workspace/llm4binary/github2025/eloqsql/libmariadb/unittest/libmariadb/ps_bugs.c",
4725,
v6,
v7);
return 1;
}
v23 = mysql_stmt_store_result(v22);
memset(v18, 0LL, 112LL);
v21 = 3;
v19 = &v16;
v20 = 4LL;
v8 = mysql_stmt_bind_result(v22, v18);
v23 = v8;
if ( v8 )
{
v9 = mysql_stmt_error(v22);
diag(
(unsigned int)"Error: %s (%s: %d)",
v9,
(unsigned int)"/workspace/llm4binary/github2025/eloqsql/libmariadb/unittest/libmariadb/ps_bugs.c",
4734,
v10,
v11);
return 1;
}
v23 = mysql_stmt_fetch(v22);
diag(
(unsigned int)"test: str='%s', expected/returned value =%d/%d, expected/returned rc=%d/%d",
*(_QWORD *)v17,
*((_DWORD *)v17 + 2),
v16,
*((_DWORD *)v17 + 3),
v23);
if ( v23 != *((_DWORD *)v17 + 3) )
{
diag(
(unsigned int)"Error: %s (%s: %d)",
(unsigned int)"unexpected return code",
(unsigned int)"/workspace/llm4binary/github2025/eloqsql/libmariadb/unittest/libmariadb/ps_bugs.c",
4739,
v12,
v13);
return 1;
}
if ( v16 != *((_DWORD *)v17 + 2) )
{
diag(
(unsigned int)"Error: %s (%s: %d)",
(unsigned int)"unexpected int value",
(unsigned int)"/workspace/llm4binary/github2025/eloqsql/libmariadb/unittest/libmariadb/ps_bugs.c",
4740,
v12,
v13);
return 1;
}
mysql_stmt_close(v22);
}
return 0;
}
| test_str_to_int:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x250
MOV RAX,qword ptr FS:[0x28]
MOV qword ptr [RBP + -0x8],RAX
MOV qword ptr [RBP + -0x120],RDI
LEA RDI,[RBP + -0x1a0]
LEA RSI,[0x176f10]
MOV EDX,0x70
CALL 0x00114370
MOV dword ptr [RBP + -0x124],0x0
LAB_0012f641:
MOVSXD RCX,dword ptr [RBP + -0x124]
LEA RAX,[RBP + -0x1a0]
SHL RCX,0x4
ADD RAX,RCX
CMP qword ptr [RAX],0x0
JZ 0x0012f926
MOVSXD RCX,dword ptr [RBP + -0x124]
LEA RAX,[RBP + -0x1a0]
SHL RCX,0x4
ADD RAX,RCX
MOV qword ptr [RBP + -0x228],RAX
LEA RDI,[RBP + -0x110]
MOV RAX,qword ptr [RBP + -0x228]
MOV RCX,qword ptr [RAX]
MOV ESI,0x100
LEA RDX,[0x16aa88]
MOV AL,0x0
CALL 0x001146e0
MOV RDI,qword ptr [RBP + -0x120]
CALL 0x00144950
MOV qword ptr [RBP + -0x1b0],RAX
MOV RAX,qword ptr [RBP + -0x1b0]
MOV qword ptr [RBP + -0x240],RAX
LEA RAX,[RBP + -0x110]
MOV qword ptr [RBP + -0x238],RAX
LEA RDI,[RBP + -0x110]
CALL 0x001141a0
MOV RDI,qword ptr [RBP + -0x240]
MOV RSI,qword ptr [RBP + -0x238]
MOV RDX,RAX
CALL 0x00145070
MOV dword ptr [RBP + -0x1a4],EAX
CMP dword ptr [RBP + -0x1a4],0x0
JZ 0x0012f738
MOV RDI,qword ptr [RBP + -0x1b0]
CALL 0x00143fd0
MOV RSI,RAX
LEA RDI,[0x165590]
LEA RDX,[0x16606d]
MOV ECX,0x1273
MOV AL,0x0
CALL 0x0012fc40
MOV dword ptr [RBP + -0x114],0x1
JMP 0x0012f930
LAB_0012f738:
JMP 0x0012f73a
LAB_0012f73a:
MOV RDI,qword ptr [RBP + -0x1b0]
CALL 0x00146580
MOV dword ptr [RBP + -0x1a4],EAX
CMP dword ptr [RBP + -0x1a4],0x0
JZ 0x0012f78d
MOV RDI,qword ptr [RBP + -0x1b0]
CALL 0x00143fd0
MOV RSI,RAX
LEA RDI,[0x165590]
LEA RDX,[0x16606d]
MOV ECX,0x1275
MOV AL,0x0
CALL 0x0012fc40
MOV dword ptr [RBP + -0x114],0x1
JMP 0x0012f930
LAB_0012f78d:
JMP 0x0012f78f
LAB_0012f78f:
MOV RDI,qword ptr [RBP + -0x1b0]
CALL 0x001454d0
MOV dword ptr [RBP + -0x1a4],EAX
LEA RDI,[RBP + -0x220]
XOR ESI,ESI
MOV EDX,0x70
CALL 0x00114260
MOV dword ptr [RBP + -0x1c0],0x3
LEA RAX,[RBP + -0x22c]
MOV qword ptr [RBP + -0x210],RAX
MOV qword ptr [RBP + -0x1e0],0x4
MOV RDI,qword ptr [RBP + -0x1b0]
LEA RSI,[RBP + -0x220]
CALL 0x00143940
MOVSX EAX,AL
MOV dword ptr [RBP + -0x1a4],EAX
CMP dword ptr [RBP + -0x1a4],0x0
JZ 0x0012f834
MOV RDI,qword ptr [RBP + -0x1b0]
CALL 0x00143fd0
MOV RSI,RAX
LEA RDI,[0x165590]
LEA RDX,[0x16606d]
MOV ECX,0x127e
MOV AL,0x0
CALL 0x0012fc40
MOV dword ptr [RBP + -0x114],0x1
JMP 0x0012f930
LAB_0012f834:
JMP 0x0012f836
LAB_0012f836:
MOV RDI,qword ptr [RBP + -0x1b0]
CALL 0x00144020
MOV dword ptr [RBP + -0x1a4],EAX
MOV RAX,qword ptr [RBP + -0x228]
MOV RSI,qword ptr [RAX]
MOV RAX,qword ptr [RBP + -0x228]
MOV EDX,dword ptr [RAX + 0x8]
MOV ECX,dword ptr [RBP + -0x22c]
MOV RAX,qword ptr [RBP + -0x228]
MOV R8D,dword ptr [RAX + 0xc]
MOV R9D,dword ptr [RBP + -0x1a4]
LEA RDI,[0x16aa94]
MOV AL,0x0
CALL 0x0012fc40
MOV EAX,dword ptr [RBP + -0x1a4]
MOV RCX,qword ptr [RBP + -0x228]
CMP EAX,dword ptr [RCX + 0xc]
JZ 0x0012f8c1
LEA RDI,[0x165590]
LEA RSI,[0x16aadf]
LEA RDX,[0x16606d]
MOV ECX,0x1283
MOV AL,0x0
CALL 0x0012fc40
MOV dword ptr [RBP + -0x114],0x1
JMP 0x0012f930
LAB_0012f8c1:
JMP 0x0012f8c3
LAB_0012f8c3:
JMP 0x0012f8c5
LAB_0012f8c5:
MOV EAX,dword ptr [RBP + -0x22c]
MOV RCX,qword ptr [RBP + -0x228]
CMP EAX,dword ptr [RCX + 0x8]
JZ 0x0012f904
LEA RDI,[0x165590]
LEA RSI,[0x16aaf6]
LEA RDX,[0x16606d]
MOV ECX,0x1284
MOV AL,0x0
CALL 0x0012fc40
MOV dword ptr [RBP + -0x114],0x1
JMP 0x0012f930
LAB_0012f904:
JMP 0x0012f906
LAB_0012f906:
MOV RDI,qword ptr [RBP + -0x1b0]
CALL 0x00143eb0
MOV EAX,dword ptr [RBP + -0x124]
ADD EAX,0x1
MOV dword ptr [RBP + -0x124],EAX
JMP 0x0012f641
LAB_0012f926:
MOV dword ptr [RBP + -0x114],0x0
LAB_0012f930:
MOV EAX,dword ptr [RBP + -0x114]
MOV dword ptr [RBP + -0x244],EAX
MOV RAX,qword ptr FS:[0x28]
MOV RCX,qword ptr [RBP + -0x8]
CMP RAX,RCX
JNZ 0x0012f95d
MOV EAX,dword ptr [RBP + -0x244]
ADD RSP,0x250
POP RBP
RET
LAB_0012f95d:
CALL 0x001144c0
|
int4 test_str_to_int(int8 param_1)
{
char cVar1;
int8 uVar2;
size_t sVar3;
long in_FS_OFFSET;
int local_234;
long *local_230;
int1 local_228 [16];
int *local_218;
int8 local_1e8;
int4 local_1c8;
int8 local_1b8;
int local_1ac;
long local_1a8 [15];
int local_12c;
int8 local_128;
int4 local_11c;
char local_118 [264];
long local_10;
local_10 = *(long *)(in_FS_OFFSET + 0x28);
local_128 = param_1;
memcpy(local_1a8,&PTR_DAT_00176f10,0x70);
local_12c = 0;
do {
if (local_1a8[(long)local_12c * 2] == 0) {
local_11c = 0;
LAB_0012f930:
if (*(long *)(in_FS_OFFSET + 0x28) == local_10) {
return local_11c;
}
/* WARNING: Subroutine does not return */
__stack_chk_fail();
}
local_230 = local_1a8 + (long)local_12c * 2;
snprintf(local_118,0x100,"SELECT \'%s\'",*local_230);
uVar2 = mysql_stmt_init(local_128);
local_1b8 = uVar2;
sVar3 = strlen(local_118);
local_1ac = mysql_stmt_prepare(uVar2,local_118,sVar3);
if (local_1ac != 0) {
uVar2 = mysql_stmt_error(local_1b8);
diag("Error: %s (%s: %d)",uVar2,
"/workspace/llm4binary/github2025/eloqsql/libmariadb/unittest/libmariadb/ps_bugs.c",
0x1273);
local_11c = 1;
goto LAB_0012f930;
}
local_1ac = mysql_stmt_execute(local_1b8);
if (local_1ac != 0) {
uVar2 = mysql_stmt_error(local_1b8);
diag("Error: %s (%s: %d)",uVar2,
"/workspace/llm4binary/github2025/eloqsql/libmariadb/unittest/libmariadb/ps_bugs.c",
0x1275);
local_11c = 1;
goto LAB_0012f930;
}
local_1ac = mysql_stmt_store_result(local_1b8);
memset(local_228,0,0x70);
local_1c8 = 3;
local_218 = &local_234;
local_1e8 = 4;
cVar1 = mysql_stmt_bind_result(local_1b8,local_228);
local_1ac = (int)cVar1;
if (local_1ac != 0) {
uVar2 = mysql_stmt_error(local_1b8);
diag("Error: %s (%s: %d)",uVar2,
"/workspace/llm4binary/github2025/eloqsql/libmariadb/unittest/libmariadb/ps_bugs.c",
0x127e);
local_11c = 1;
goto LAB_0012f930;
}
local_1ac = mysql_stmt_fetch(local_1b8);
diag("test: str=\'%s\', expected/returned value =%d/%d, expected/returned rc=%d/%d",*local_230,
(int)local_230[1],local_234,*(int4 *)((long)local_230 + 0xc),local_1ac);
if (local_1ac != *(int *)((long)local_230 + 0xc)) {
diag("Error: %s (%s: %d)","unexpected return code",
"/workspace/llm4binary/github2025/eloqsql/libmariadb/unittest/libmariadb/ps_bugs.c",
0x1283);
local_11c = 1;
goto LAB_0012f930;
}
if (local_234 != (int)local_230[1]) {
diag("Error: %s (%s: %d)","unexpected int value",
"/workspace/llm4binary/github2025/eloqsql/libmariadb/unittest/libmariadb/ps_bugs.c",
0x1284);
local_11c = 1;
goto LAB_0012f930;
}
mysql_stmt_close(local_1b8);
local_12c = local_12c + 1;
} while( true );
}
| |
42,248 | minja::ForNode::do_render(std::__cxx11::basic_ostringstream<char, std::char_traits<char>, std::allocator<char>>&, std::shared_ptr<minja::Context> const&) const | monkey531[P]llama/common/minja.hpp | void do_render(std::ostringstream & out, const std::shared_ptr<Context> & context) const override {
// https://jinja.palletsprojects.com/en/3.0.x/templates/#for
if (!iterable) throw std::runtime_error("ForNode.iterable is null");
if (!body) throw std::runtime_error("ForNode.body is null");
auto iterable_value = iterable->evaluate(context);
Value::CallableType loop_function;
std::function<void(Value&)> visit = [&](Value& iter) {
auto filtered_items = Value::array();
if (!iter.is_null()) {
if (!iterable_value.is_iterable()) {
throw std::runtime_error("For loop iterable must be iterable: " + iterable_value.dump());
}
iterable_value.for_each([&](Value & item) {
destructuring_assign(var_names, context, item);
if (!condition || condition->evaluate(context).to_bool()) {
filtered_items.push_back(item);
}
});
}
if (filtered_items.empty()) {
if (else_body) {
else_body->render(out, context);
}
} else {
auto loop = recursive ? Value::callable(loop_function) : Value::object();
loop.set("length", (int64_t) filtered_items.size());
size_t cycle_index = 0;
loop.set("cycle", Value::callable([&](const std::shared_ptr<Context> &, ArgumentsValue & args) {
if (args.args.empty() || !args.kwargs.empty()) {
throw std::runtime_error("cycle() expects at least 1 positional argument and no named arg");
}
auto item = args.args[cycle_index];
cycle_index = (cycle_index + 1) % args.args.size();
return item;
}));
auto loop_context = Context::make(Value::object(), context);
loop_context->set("loop", loop);
for (size_t i = 0, n = filtered_items.size(); i < n; ++i) {
auto & item = filtered_items.at(i);
destructuring_assign(var_names, loop_context, item);
loop.set("index", (int64_t) i + 1);
loop.set("index0", (int64_t) i);
loop.set("revindex", (int64_t) (n - i));
loop.set("revindex0", (int64_t) (n - i - 1));
loop.set("length", (int64_t) n);
loop.set("first", i == 0);
loop.set("last", i == (n - 1));
loop.set("previtem", i > 0 ? filtered_items.at(i - 1) : Value());
loop.set("nextitem", i < n - 1 ? filtered_items.at(i + 1) : Value());
try {
body->render(out, loop_context);
} catch (const LoopControlException & e) {
if (e.control_type == LoopControlType::Break) break;
if (e.control_type == LoopControlType::Continue) continue;
}
}
}
};
if (recursive) {
loop_function = [&](const std::shared_ptr<Context> &, ArgumentsValue & args) {
if (args.args.size() != 1 || !args.kwargs.empty() || !args.args[0].is_array()) {
throw std::runtime_error("loop() expects exactly 1 positional iterable argument");
}
auto & items = args.args[0];
visit(items);
return Value();
};
}
visit(iterable_value);
} | O1 | cpp | minja::ForNode::do_render(std::__cxx11::basic_ostringstream<char, std::char_traits<char>, std::allocator<char>>&, std::shared_ptr<minja::Context> const&) const:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x98, %rsp
movq %rsi, %r14
movq 0x38(%rdi), %rsi
testq %rsi, %rsi
je 0x9bad9
movq %rdi, %rbx
cmpq $0x0, 0x58(%rdi)
je 0x9baf7
movq %rdx, %r15
leaq 0x48(%rsp), %r12
movq %r12, %rdi
callq 0x86f5e
xorps %xmm0, %xmm0
movaps %xmm0, 0x30(%rsp)
movaps %xmm0, 0x20(%rsp)
movaps %xmm0, 0x10(%rsp)
movaps %xmm0, (%rsp)
movl $0x28, %edi
callq 0x1b8c0
movq %r12, (%rax)
movq %rbx, 0x8(%rax)
movq %r15, 0x10(%rax)
movq %r14, 0x18(%rax)
leaq 0x20(%rsp), %rcx
movq %rcx, 0x20(%rax)
movq %rax, (%rsp)
leaq 0x32f(%rip), %rax # 0x9bd0a
movq %rax, 0x18(%rsp)
leaq 0x32b(%rip), %rax # 0x9bd12
movq %rax, 0x10(%rsp)
cmpb $0x1, 0x68(%rbx)
jne 0x9ba07
movq %rsp, %rax
leaq 0x40(%rsp), %rsi
movq %rax, (%rsi)
leaq 0x20(%rsp), %rdi
callq 0x9bc86
cmpq $0x0, 0x10(%rsp)
je 0x9bb29
movq %rsp, %rdi
leaq 0x48(%rsp), %rsi
callq *0x18(%rdi)
movq 0x10(%rsp), %rax
testq %rax, %rax
je 0x9ba35
movq %rsp, %rdi
movq %rdi, %rsi
movl $0x3, %edx
callq *%rax
movq 0x30(%rsp), %rax
testq %rax, %rax
je 0x9ba4e
leaq 0x20(%rsp), %rdi
movq %rdi, %rsi
movl $0x3, %edx
callq *%rax
leaq 0x88(%rsp), %rbx
movq %rbx, %rdi
xorl %esi, %esi
callq 0x58ac0
movq %rbx, %rdi
callq 0x5e2ac
movq -0x8(%rbx), %rdi
testq %rdi, %rdi
je 0x9ba76
callq 0x6dc18
movq 0x70(%rsp), %rdi
testq %rdi, %rdi
je 0x9ba85
callq 0x6dc18
movq 0x60(%rsp), %rdi
testq %rdi, %rdi
je 0x9ba94
callq 0x6dc18
movq 0x50(%rsp), %rdi
testq %rdi, %rdi
je 0x9baca
movq 0x934e3(%rip), %rax # 0x12ef88
cmpb $0x0, (%rax)
je 0x9bab5
movl 0xc(%rdi), %eax
leal -0x1(%rax), %ecx
movl %ecx, 0xc(%rdi)
jmp 0x9babf
movl $0xffffffff, %eax # imm = 0xFFFFFFFF
lock
xaddl %eax, 0xc(%rdi)
cmpl $0x1, %eax
jne 0x9baca
movq (%rdi), %rax
callq *0x18(%rax)
addq $0x98, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
movl $0x10, %edi
callq 0x1b460
movq %rax, %r14
leaq 0x58015(%rip), %rsi # 0xf3b02
movq %rax, %rdi
callq 0x1b340
jmp 0x9bb13
movl $0x10, %edi
callq 0x1b460
movq %rax, %r14
leaq 0x58010(%rip), %rsi # 0xf3b1b
movq %rax, %rdi
callq 0x1b340
movq 0x934d6(%rip), %rsi # 0x12eff0
movq 0x9343f(%rip), %rdx # 0x12ef60
movq %r14, %rdi
callq 0x1bf30
callq 0x1b330
jmp 0x9bb30
movq %rax, %rbx
movq %r14, %rdi
callq 0x1b690
jmp 0x9bb83
jmp 0x9bb8d
jmp 0x9bb8d
movq %rax, %rbx
jmp 0x9bb60
movq %rax, %rbx
movq 0x10(%rsp), %rax
testq %rax, %rax
je 0x9bb60
movq %rsp, %rdi
movq %rdi, %rsi
movl $0x3, %edx
callq *%rax
movq 0x30(%rsp), %rax
testq %rax, %rax
je 0x9bb79
leaq 0x20(%rsp), %rdi
movq %rdi, %rsi
movl $0x3, %edx
callq *%rax
leaq 0x48(%rsp), %rdi
callq 0x87254
movq %rbx, %rdi
callq 0x1bfd0
jmp 0x9bb8d
movq %rax, %rdi
callq 0x229a1
nop
| _ZNK5minja7ForNode9do_renderERNSt7__cxx1119basic_ostringstreamIcSt11char_traitsIcESaIcEEERKSt10shared_ptrINS_7ContextEE:
push r15
push r14
push r12
push rbx
sub rsp, 98h
mov r14, rsi
mov rsi, [rdi+38h]
test rsi, rsi
jz loc_9BAD9
mov rbx, rdi
cmp qword ptr [rdi+58h], 0
jz loc_9BAF7
mov r15, rdx
lea r12, [rsp+0B8h+var_70]
mov rdi, r12
call _ZNK5minja10Expression8evaluateERKSt10shared_ptrINS_7ContextEE; minja::Expression::evaluate(std::shared_ptr<minja::Context> const&)
xorps xmm0, xmm0
movaps [rsp+0B8h+var_88], xmm0
movaps [rsp+0B8h+var_98], xmm0
movaps [rsp+0B8h+var_A8], xmm0
movaps [rsp+0B8h+var_B8], xmm0
mov edi, 28h ; '('; unsigned __int64
call __Znwm; operator new(ulong)
mov [rax], r12
mov [rax+8], rbx
mov [rax+10h], r15
mov [rax+18h], r14
lea rcx, [rsp+0B8h+var_98]
mov [rax+20h], rcx
mov qword ptr [rsp+0B8h+var_B8], rax
lea rax, _ZNSt17_Function_handlerIFvRN5minja5ValueEEZNKS0_7ForNode9do_renderERNSt7__cxx1119basic_ostringstreamIcSt11char_traitsIcESaIcEEERKSt10shared_ptrINS0_7ContextEEEUlS2_E_E9_M_invokeERKSt9_Any_dataS2_; std::_Function_handler<void ()(minja::Value &),minja::ForNode::do_render(std::ostringstream &,std::shared_ptr<minja::Context> const&)::{lambda(minja::Value &)#1}>::_M_invoke(std::_Any_data const&,minja::Value &)
mov qword ptr [rsp+0B8h+var_A8+8], rax
lea rax, _ZNSt17_Function_handlerIFvRN5minja5ValueEEZNKS0_7ForNode9do_renderERNSt7__cxx1119basic_ostringstreamIcSt11char_traitsIcESaIcEEERKSt10shared_ptrINS0_7ContextEEEUlS2_E_E10_M_managerERSt9_Any_dataRKSJ_St18_Manager_operation; std::_Function_handler<void ()(minja::Value &),minja::ForNode::do_render(std::ostringstream &,std::shared_ptr<minja::Context> const&)::{lambda(minja::Value &)#1}>::_M_manager(std::_Any_data &,std::_Any_data const&,std::_Manager_operation)
mov qword ptr [rsp+0B8h+var_A8], rax
cmp byte ptr [rbx+68h], 1
jnz short loc_9BA07
mov rax, rsp
lea rsi, [rsp+0B8h+var_78]
mov [rsi], rax
lea rdi, [rsp+0B8h+var_98]
call _ZNSt8functionIFN5minja5ValueERKSt10shared_ptrINS0_7ContextEERNS0_14ArgumentsValueEEEaSIZNKS0_7ForNode9do_renderERNSt7__cxx1119basic_ostringstreamIcSt11char_traitsIcESaIcEEES6_EUlS6_S8_E_EENSt9enable_ifIXsrNSA_9_CallableIT_NSL_IXntsr7is_sameINSt9remove_cvINSt16remove_referenceISN_E4typeEE4typeESA_EE5valueESt5decayISN_EE4type4typeESt15__invoke_resultIRSY_JS6_S8_EEEE5valueERSA_E4typeEOSN_
loc_9BA07:
cmp qword ptr [rsp+0B8h+var_A8], 0
jz loc_9BB29
mov rdi, rsp
lea rsi, [rsp+0B8h+var_70]
call qword ptr [rdi+18h]
mov rax, qword ptr [rsp+0B8h+var_A8]
test rax, rax
jz short loc_9BA35
mov rdi, rsp
mov rsi, rdi
mov edx, 3
call rax
loc_9BA35:
mov rax, qword ptr [rsp+0B8h+var_88]
test rax, rax
jz short loc_9BA4E
lea rdi, [rsp+0B8h+var_98]
mov rsi, rdi
mov edx, 3
call rax
loc_9BA4E:
lea rbx, [rsp+0B8h+var_30]
mov rdi, rbx
xor esi, esi
call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE16assert_invariantEb; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::assert_invariant(bool)
mov rdi, rbx
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE4dataD2Ev; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::data::~data()
mov rdi, [rbx-8]
test rdi, rdi
jz short loc_9BA76
call _ZNSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE2EE10_M_releaseEv; std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(void)
loc_9BA76:
mov rdi, [rsp+0B8h+var_48]
test rdi, rdi
jz short loc_9BA85
call _ZNSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE2EE10_M_releaseEv; std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(void)
loc_9BA85:
mov rdi, [rsp+0B8h+var_58]
test rdi, rdi
jz short loc_9BA94
call _ZNSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE2EE10_M_releaseEv; std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(void)
loc_9BA94:
mov rdi, [rsp+0B8h+var_68]
test rdi, rdi
jz short loc_9BACA
mov rax, cs:__libc_single_threaded_ptr
cmp byte ptr [rax], 0
jz short loc_9BAB5
mov eax, [rdi+0Ch]
lea ecx, [rax-1]
mov [rdi+0Ch], ecx
jmp short loc_9BABF
loc_9BAB5:
mov eax, 0FFFFFFFFh
lock xadd [rdi+0Ch], eax
loc_9BABF:
cmp eax, 1
jnz short loc_9BACA
mov rax, [rdi]
call qword ptr [rax+18h]
loc_9BACA:
add rsp, 98h
pop rbx
pop r12
pop r14
pop r15
retn
loc_9BAD9:
mov edi, 10h; thrown_size
call ___cxa_allocate_exception
mov r14, rax
lea rsi, aFornodeIterabl; "ForNode.iterable is null"
mov rdi, rax; this
call __ZNSt13runtime_errorC1EPKc; std::runtime_error::runtime_error(char const*)
jmp short loc_9BB13
loc_9BAF7:
mov edi, 10h; thrown_size
call ___cxa_allocate_exception
mov r14, rax
lea rsi, aFornodeBodyIsN; "ForNode.body is null"
mov rdi, rax; this
call __ZNSt13runtime_errorC1EPKc; std::runtime_error::runtime_error(char const*)
loc_9BB13:
mov rsi, cs:_ZTISt13runtime_error_ptr; lptinfo
mov rdx, cs:_ZTISt19_Sp_make_shared_tag; void (*)(void *)
mov rdi, r14; void *
call ___cxa_throw
loc_9BB29:
call __ZSt25__throw_bad_function_callv; std::__throw_bad_function_call(void)
jmp short $+2
loc_9BB30:
mov rbx, rax
mov rdi, r14; void *
call ___cxa_free_exception
jmp short loc_9BB83
jmp short loc_9BB8D
jmp short loc_9BB8D
mov rbx, rax
jmp short loc_9BB60
mov rbx, rax
mov rax, qword ptr [rsp+0B8h+var_A8]
test rax, rax
jz short loc_9BB60
mov rdi, rsp
mov rsi, rdi
mov edx, 3
call rax
loc_9BB60:
mov rax, qword ptr [rsp+0B8h+var_88]
test rax, rax
jz short loc_9BB79
lea rdi, [rsp+0B8h+var_98]
mov rsi, rdi
mov edx, 3
call rax
loc_9BB79:
lea rdi, [rsp+0B8h+var_70]; this
call _ZN5minja5ValueD2Ev; minja::Value::~Value()
loc_9BB83:
mov rdi, rbx
call __Unwind_Resume
jmp short $+2
loc_9BB8D:
mov rdi, rax
call __clang_call_terminate
| long long minja::ForNode::do_render(long long a1, long long a2, long long a3)
{
void (***v4)(void); // rsi
_QWORD *v6; // rax
long long result; // rax
long long v8; // rdi
std::runtime_error *exception; // r14
__int128 v10; // [rsp+0h] [rbp-B8h] BYREF
long long ( *v11)(); // [rsp+10h] [rbp-A8h]
long long ( *v12)(); // [rsp+18h] [rbp-A0h]
__int128 v13; // [rsp+20h] [rbp-98h] BYREF
__int128 v14; // [rsp+30h] [rbp-88h]
__int128 *v15; // [rsp+40h] [rbp-78h]
_BYTE v16[8]; // [rsp+48h] [rbp-70h] BYREF
long long v17; // [rsp+50h] [rbp-68h]
volatile signed __int32 *v18; // [rsp+60h] [rbp-58h]
volatile signed __int32 *v19; // [rsp+70h] [rbp-48h]
volatile signed __int32 *v20; // [rsp+80h] [rbp-38h]
char v21[48]; // [rsp+88h] [rbp-30h] BYREF
v4 = *(void (****)(void))(a1 + 56);
if ( !v4 )
{
exception = (std::runtime_error *)__cxa_allocate_exception(0x10uLL);
std::runtime_error::runtime_error(exception, "ForNode.iterable is null");
goto LABEL_25;
}
if ( !*(_QWORD *)(a1 + 88) )
{
exception = (std::runtime_error *)__cxa_allocate_exception(0x10uLL);
std::runtime_error::runtime_error(exception, "ForNode.body is null");
LABEL_25:
__cxa_throw(
exception,
(struct type_info *)&`typeinfo for'std::runtime_error,
(void (*)(void *))&std::runtime_error::~runtime_error);
}
minja::Expression::evaluate((long long)v16, v4);
v14 = 0LL;
v13 = 0LL;
v10 = 0LL;
v6 = (_QWORD *)operator new(0x28uLL);
*v6 = v16;
v6[1] = a1;
v6[2] = a3;
v6[3] = a2;
v6[4] = &v13;
*(_QWORD *)&v10 = v6;
v12 = std::_Function_handler<void ()(minja::Value &),minja::ForNode::do_render(std::ostringstream &,std::shared_ptr<minja::Context> const&)::{lambda(minja::Value &)#1}>::_M_invoke;
v11 = std::_Function_handler<void ()(minja::Value &),minja::ForNode::do_render(std::ostringstream &,std::shared_ptr<minja::Context> const&)::{lambda(minja::Value &)#1}>::_M_manager;
if ( *(_BYTE *)(a1 + 104) == 1 )
{
v15 = &v10;
std::function<minja::Value ()(std::shared_ptr<minja::Context> const&,minja::ArgumentsValue &)>::operator=<minja::ForNode::do_render(std::ostringstream &,std::shared_ptr<minja::Context> const&)::{lambda(std::shared_ptr<minja::Context> const&,minja::ArgumentsValue &)#1}>(&v13);
}
if ( !v11 )
std::__throw_bad_function_call();
((void ( *)(__int128 *, _BYTE *))v12)(&v10, v16);
if ( v11 )
((void ( *)(__int128 *, __int128 *, long long))v11)(&v10, &v10, 3LL);
if ( (_QWORD)v14 )
((void ( *)(__int128 *, __int128 *, long long))v14)(&v13, &v13, 3LL);
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::assert_invariant(v21);
result = nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,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(v21);
if ( v20 )
result = std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(v20);
if ( v19 )
result = std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(v19);
if ( v18 )
result = std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(v18);
v8 = v17;
if ( v17 )
{
if ( _libc_single_threaded )
{
result = *(unsigned int *)(v17 + 12);
*(_DWORD *)(v17 + 12) = result - 1;
}
else
{
result = (unsigned int)_InterlockedExchangeAdd((volatile signed __int32 *)(v17 + 12), 0xFFFFFFFF);
}
if ( (_DWORD)result == 1 )
return (*(long long ( **)(long long, _QWORD))(*(_QWORD *)v8 + 24LL))(v8, 0LL);
}
return result;
}
| do_render:
PUSH R15
PUSH R14
PUSH R12
PUSH RBX
SUB RSP,0x98
MOV R14,RSI
MOV RSI,qword ptr [RDI + 0x38]
TEST RSI,RSI
JZ 0x0019bad9
MOV RBX,RDI
CMP qword ptr [RDI + 0x58],0x0
JZ 0x0019baf7
MOV R15,RDX
LEA R12,[RSP + 0x48]
MOV RDI,R12
CALL 0x00186f5e
XORPS XMM0,XMM0
MOVAPS xmmword ptr [RSP + 0x30],XMM0
MOVAPS xmmword ptr [RSP + 0x20],XMM0
MOVAPS xmmword ptr [RSP + 0x10],XMM0
MOVAPS xmmword ptr [RSP],XMM0
LAB_0019b9ae:
MOV EDI,0x28
CALL 0x0011b8c0
MOV qword ptr [RAX],R12
MOV qword ptr [RAX + 0x8],RBX
MOV qword ptr [RAX + 0x10],R15
MOV qword ptr [RAX + 0x18],R14
LEA RCX,[RSP + 0x20]
MOV qword ptr [RAX + 0x20],RCX
MOV qword ptr [RSP],RAX
LEA RAX,[0x19bd0a]
MOV qword ptr [RSP + 0x18],RAX
LEA RAX,[0x19bd12]
MOV qword ptr [RSP + 0x10],RAX
CMP byte ptr [RBX + 0x68],0x1
JNZ 0x0019ba07
MOV RAX,RSP
LEA RSI,[RSP + 0x40]
MOV qword ptr [RSI],RAX
LEA RDI,[RSP + 0x20]
CALL 0x0019bc86
LAB_0019ba07:
CMP qword ptr [RSP + 0x10],0x0
JZ 0x0019bb29
LAB_0019ba13:
MOV RDI,RSP
LEA RSI,[RSP + 0x48]
CALL qword ptr [RDI + 0x18]
MOV RAX,qword ptr [RSP + 0x10]
TEST RAX,RAX
JZ 0x0019ba35
LAB_0019ba28:
MOV RDI,RSP
MOV RSI,RDI
MOV EDX,0x3
CALL RAX
LAB_0019ba35:
MOV RAX,qword ptr [RSP + 0x30]
TEST RAX,RAX
JZ 0x0019ba4e
LAB_0019ba3f:
LEA RDI,[RSP + 0x20]
MOV RSI,RDI
MOV EDX,0x3
CALL RAX
LAB_0019ba4e:
LEA RBX,[RSP + 0x88]
MOV RDI,RBX
XOR ESI,ESI
CALL 0x00158ac0
MOV RDI,RBX
CALL 0x0015e2ac
MOV RDI,qword ptr [RBX + -0x8]
TEST RDI,RDI
JZ 0x0019ba76
CALL 0x0016dc18
LAB_0019ba76:
MOV RDI,qword ptr [RSP + 0x70]
TEST RDI,RDI
JZ 0x0019ba85
CALL 0x0016dc18
LAB_0019ba85:
MOV RDI,qword ptr [RSP + 0x60]
TEST RDI,RDI
JZ 0x0019ba94
CALL 0x0016dc18
LAB_0019ba94:
MOV RDI,qword ptr [RSP + 0x50]
TEST RDI,RDI
JZ 0x0019baca
MOV RAX,qword ptr [0x0022ef88]
CMP byte ptr [RAX],0x0
JZ 0x0019bab5
MOV EAX,dword ptr [RDI + 0xc]
LEA ECX,[RAX + -0x1]
MOV dword ptr [RDI + 0xc],ECX
JMP 0x0019babf
LAB_0019bab5:
MOV EAX,0xffffffff
XADD.LOCK dword ptr [RDI + 0xc],EAX
LAB_0019babf:
CMP EAX,0x1
JNZ 0x0019baca
MOV RAX,qword ptr [RDI]
CALL qword ptr [RAX + 0x18]
LAB_0019baca:
ADD RSP,0x98
POP RBX
POP R12
POP R14
POP R15
RET
LAB_0019bad9:
MOV EDI,0x10
CALL 0x0011b460
MOV R14,RAX
LAB_0019bae6:
LEA RSI,[0x1f3b02]
MOV RDI,RAX
CALL 0x0011b340
LAB_0019baf5:
JMP 0x0019bb13
LAB_0019baf7:
MOV EDI,0x10
CALL 0x0011b460
MOV R14,RAX
LAB_0019bb04:
LEA RSI,[0x1f3b1b]
MOV RDI,RAX
CALL 0x0011b340
LAB_0019bb13:
MOV RSI,qword ptr [0x0022eff0]
MOV RDX,qword ptr [0x0022ef60]
MOV RDI,R14
CALL 0x0011bf30
LAB_0019bb29:
CALL 0x0011b330
|
/* minja::ForNode::do_render(std::__cxx11::ostringstream&, std::shared_ptr<minja::Context> const&)
const */
void __thiscall minja::ForNode::do_render(ForNode *this,ostringstream *param_1,shared_ptr *param_2)
{
int *piVar1;
int iVar2;
runtime_error *this_00;
int8 *local_b8;
int8 uStack_b0;
code *local_a8;
code *pcStack_a0;
int8 local_98;
int8 uStack_90;
code *local_88;
int8 uStack_80;
int1 *local_78;
Expression local_70 [8];
long *local_68;
_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *local_58;
_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *local_48;
_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *local_38;
data local_30 [16];
if (*(shared_ptr **)(this + 0x38) == (shared_ptr *)0x0) {
this_00 = (runtime_error *)__cxa_allocate_exception(0x10);
/* try { // try from 0019bae6 to 0019baf4 has its CatchHandler @ 0019bb30 */
std::runtime_error::runtime_error(this_00,"ForNode.iterable is null");
}
else {
if (*(long *)(this + 0x58) != 0) {
Expression::evaluate(local_70,*(shared_ptr **)(this + 0x38));
local_88 = (code *)0x0;
uStack_80 = 0;
local_98 = 0;
uStack_90 = 0;
local_a8 = (code *)0x0;
pcStack_a0 = (code *)0x0;
local_b8 = (int8 *)0x0;
uStack_b0 = 0;
/* try { // try from 0019b9ae to 0019b9b7 has its CatchHandler @ 0019bb41 */
local_b8 = (int8 *)operator_new(0x28);
*local_b8 = local_70;
local_b8[1] = this;
local_b8[2] = param_2;
local_b8[3] = param_1;
local_b8[4] = &local_98;
pcStack_a0 = std::
_Function_handler<void(minja::Value&),minja::ForNode::do_render(std::__cxx11::ostringstream&,std::shared_ptr<minja::Context>const&)const::{lambda(minja::Value&)#1}>
::_M_invoke;
local_a8 = std::
_Function_handler<void(minja::Value&),minja::ForNode::do_render(std::__cxx11::ostringstream&,std::shared_ptr<minja::Context>const&)const::{lambda(minja::Value&)#1}>
::_M_manager;
if (this[0x68] == (ForNode)0x1) {
local_78 = (int1 *)&local_b8;
std::function<minja::Value(std::shared_ptr<minja::Context>const&,minja::ArgumentsValue&)>::
operator=((function<minja::Value(std::shared_ptr<minja::Context>const&,minja::ArgumentsValue&)>
*)&local_98,
(_lambda_std__shared_ptr<minja::Context>_const__minja__ArgumentsValue___1_ *)
&local_78);
}
if (local_a8 != (code *)0x0) {
/* try { // try from 0019ba13 to 0019ba1d has its CatchHandler @ 0019bb46 */
(*pcStack_a0)(&local_b8,local_70);
if (local_a8 != (code *)0x0) {
/* try { // try from 0019ba28 to 0019ba34 has its CatchHandler @ 0019bb3f */
(*local_a8)(&local_b8,&local_b8,3);
}
if (local_88 != (code *)0x0) {
/* try { // try from 0019ba3f to 0019ba4d has its CatchHandler @ 0019bb3d */
(*local_88)(&local_98,&local_98,3);
}
nlohmann::json_abi_v3_11_3::
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::assert_invariant(SUB81(local_30,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_30);
if (local_38 != (_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *)0x0) {
std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(local_38);
}
if (local_48 != (_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *)0x0) {
std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(local_48);
}
if (local_58 != (_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *)0x0) {
std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(local_58);
}
if (local_68 != (long *)0x0) {
if (*PTR___libc_single_threaded_0022ef88 == '\0') {
LOCK();
piVar1 = (int *)((long)local_68 + 0xc);
iVar2 = *piVar1;
*piVar1 = *piVar1 + -1;
UNLOCK();
}
else {
iVar2 = *(int *)((long)local_68 + 0xc);
*(int *)((long)local_68 + 0xc) = iVar2 + -1;
}
if (iVar2 == 1) {
(**(code **)(*local_68 + 0x18))();
}
}
return;
}
/* WARNING: Subroutine does not return */
/* try { // try from 0019bb29 to 0019bb2d has its CatchHandler @ 0019bb46 */
std::__throw_bad_function_call();
}
this_00 = (runtime_error *)__cxa_allocate_exception(0x10);
/* try { // try from 0019bb04 to 0019bb12 has its CatchHandler @ 0019bb2e */
std::runtime_error::runtime_error(this_00,"ForNode.body is null");
}
/* WARNING: Subroutine does not return */
__cxa_throw(this_00,PTR_typeinfo_0022eff0,PTR__runtime_error_0022ef60);
}
| |
42,249 | void nlohmann::json_abi_v3_11_3::detail::from_json<nlohmann::json_abi_v3_11_3::basic_json<std::map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>>(nlohmann::json_abi_v3_11_3::basic_json<std::map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void> const&, nlohmann::json_abi_v3_11_3::basic_json<std::map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>::string_t&) | llama.cpp/common/json.hpp | inline void from_json(const BasicJsonType& j, typename BasicJsonType::string_t& s)
{
if (JSON_HEDLEY_UNLIKELY(!j.is_string()))
{
JSON_THROW(type_error::create(302, concat("type must be string, but is ", j.type_name()), &j));
}
s = *j.template get_ptr<const typename BasicJsonType::string_t*>();
} | O3 | cpp | void nlohmann::json_abi_v3_11_3::detail::from_json<nlohmann::json_abi_v3_11_3::basic_json<std::map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>>(nlohmann::json_abi_v3_11_3::basic_json<std::map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void> const&, nlohmann::json_abi_v3_11_3::basic_json<std::map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>::string_t&):
pushq %rbp
pushq %r14
pushq %rbx
subq $0x30, %rsp
movq %rdi, %r14
cmpb $0x3, (%rdi)
jne 0x7eb62
movq 0x8(%r14), %rax
movq %rsi, %rdi
movq %rax, %rsi
addq $0x30, %rsp
popq %rbx
popq %r14
popq %rbp
jmp 0x21260
movl $0x20, %edi
callq 0x20610
movq %rax, %rbx
movq %r14, %rdi
callq 0x7919c
leaq 0x8(%rsp), %rdx
movq %rax, (%rdx)
leaq 0x9b0ea(%rip), %rsi # 0x119c70
leaq 0x10(%rsp), %rdi
callq 0x7edd0
movb $0x1, %bpl
leaq 0x10(%rsp), %rdx
movq %rbx, %rdi
movl $0x12e, %esi # imm = 0x12E
movq %r14, %rcx
callq 0x7ebf8
xorl %ebp, %ebp
leaq 0xe048f(%rip), %rsi # 0x15f040
leaq -0x98a4(%rip), %rdx # 0x75314
movq %rbx, %rdi
callq 0x20a10
movq %rax, %r14
leaq 0x20(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x7ebde
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x20170
testb %bpl, %bpl
jne 0x7ebe8
jmp 0x7ebf0
movq %rax, %r14
movq %rbx, %rdi
callq 0x20e90
movq %r14, %rdi
callq 0x20ab0
| _ZN8nlohmann16json_abi_v3_11_36detail9from_jsonINS0_10basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEEEvRKT_RNSG_8string_tE:
push rbp; void *
push r14; int
push rbx; __int64
sub rsp, 30h
mov r14, rdi
cmp byte ptr [rdi], 3
jnz short loc_7EB62
mov rax, [r14+8]
mov rdi, rsi
mov rsi, rax
add rsp, 30h
pop rbx
pop r14
pop rbp
jmp __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9_M_assignERKS4_; std::string::_M_assign(std::string const&)
loc_7EB62:
mov edi, 20h ; ' '; thrown_size
call ___cxa_allocate_exception
mov rbx, rax
mov rdi, r14
call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE9type_nameEv; nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::type_name(void)
lea rdx, [rsp+48h+var_40]
mov [rdx], rax
lea rsi, aTypeMustBeStri; "type must be string, but is "
lea rdi, [rsp+48h+var_38]
call _ZN8nlohmann16json_abi_v3_11_36detail6concatINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEJRA29_KcPS9_EEET_DpOT0_; nlohmann::json_abi_v3_11_3::detail::concat<std::string,char const(&)[29],char const*>(char const(&)[29],char const* &&)
mov bpl, 1
lea rdx, [rsp+48h+var_38]
mov rdi, rbx; this
mov esi, 12Eh; int
mov rcx, r14
call _ZN8nlohmann16json_abi_v3_11_36detail10type_error6createIPKNS0_10basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SK_
xor ebp, ebp
lea rsi, _ZTIN8nlohmann16json_abi_v3_11_36detail10type_errorE; lptinfo
lea rdx, _ZN8nlohmann16json_abi_v3_11_36detail9exceptionD2Ev; void (*)(void *)
mov rdi, rbx; void *
call ___cxa_throw
mov r14, rax
lea rax, [rsp+48h+var_28]
mov rdi, [rax-10h]; void *
cmp rdi, rax
jz short loc_7EBDE
mov rsi, [rsp+48h+var_28]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_7EBDE:
test bpl, bpl
jnz short loc_7EBE8
jmp short loc_7EBF0
mov r14, rax
loc_7EBE8:
mov rdi, rbx; void *
call ___cxa_free_exception
loc_7EBF0:
mov rdi, r14
call __Unwind_Resume
| from_json<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>:
PUSH RBP
PUSH R14
PUSH RBX
SUB RSP,0x30
MOV R14,RDI
CMP byte ptr [RDI],0x3
JNZ 0x0017eb62
MOV RAX,qword ptr [R14 + 0x8]
MOV RDI,RSI
MOV RSI,RAX
ADD RSP,0x30
POP RBX
POP R14
POP RBP
JMP 0x00121260
LAB_0017eb62:
MOV EDI,0x20
CALL 0x00120610
MOV RBX,RAX
MOV RDI,R14
CALL 0x0017919c
LEA RDX,[RSP + 0x8]
MOV qword ptr [RDX],RAX
LAB_0017eb7f:
LEA RSI,[0x219c70]
LEA RDI,[RSP + 0x10]
CALL 0x0017edd0
MOV BPL,0x1
LAB_0017eb93:
LEA RDX,[RSP + 0x10]
MOV RDI,RBX
MOV ESI,0x12e
MOV RCX,R14
CALL 0x0017ebf8
XOR EBP,EBP
LEA RSI,[0x25f040]
LEA RDX,[0x175314]
MOV RDI,RBX
CALL 0x00120a10
|
/* void
nlohmann::json_abi_v3_11_3::detail::from_json<nlohmann::json_abi_v3_11_3::basic_json<std::map,
std::vector, std::__cxx11::string, bool, long, unsigned long, double, std::allocator,
nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned
char> >, void> >(nlohmann::json_abi_v3_11_3::basic_json<std::map, std::vector,
std::__cxx11::string, bool, long, unsigned long, double, std::allocator,
nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned
char> >, void> const&, nlohmann::json_abi_v3_11_3::basic_json<std::map, std::vector,
std::__cxx11::string, bool, long, unsigned long, double, std::allocator,
nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned
char> >, void>::string_t&) */
void nlohmann::json_abi_v3_11_3::detail::
from_json<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>
(basic_json *param_1,string_t *param_2)
{
int8 uVar1;
char *local_40;
detail local_38 [32];
if (*param_1 == (basic_json)0x3) {
std::__cxx11::string::_M_assign((string *)param_2);
return;
}
uVar1 = __cxa_allocate_exception(0x20);
local_40 = (char *)basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::type_name((basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
*)param_1);
/* try { // try from 0017eb7f to 0017eb8f has its CatchHandler @ 0017ebe5 */
concat<std::__cxx11::string,char_const(&)[29],char_const*>
(local_38,"type must be string, but is ",&local_40);
/* try { // try from 0017eb93 to 0017ebbf has its CatchHandler @ 0017ebc0 */
_ZN8nlohmann16json_abi_v3_11_36detail10type_error6createIPKNS0_10basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SK_
(uVar1,0x12e,local_38,param_1);
/* WARNING: Subroutine does not return */
__cxa_throw(uVar1,&type_error::typeinfo,exception::~exception);
}
| ||
42,250 | my_wc_mb_bin | eloqsql/strings/ctype-bin.c | int my_wc_mb_bin(CHARSET_INFO *cs __attribute__((unused)),
my_wc_t wc, uchar *s, uchar *e)
{
if (s >= e)
return MY_CS_TOOSMALL;
if (wc < 256)
{
s[0]= (char) wc;
return 1;
}
return MY_CS_ILUNI;
} | O3 | c | my_wc_mb_bin:
pushq %rbp
movq %rsp, %rbp
movl $0xffffff9b, %eax # imm = 0xFFFFFF9B
cmpq %rcx, %rdx
jae 0x301b7
xorl %eax, %eax
cmpq $0xff, %rsi
ja 0x301b7
movb %sil, (%rdx)
movl $0x1, %eax
popq %rbp
retq
| my_wc_mb_bin:
push rbp
mov rbp, rsp
mov eax, 0FFFFFF9Bh
cmp rdx, rcx
jnb short loc_301B7
xor eax, eax
cmp rsi, 0FFh
ja short loc_301B7
mov [rdx], sil
mov eax, 1
loc_301B7:
pop rbp
retn
| long long my_wc_mb_bin(long long a1, unsigned long long a2, _BYTE *a3, unsigned long long a4)
{
long long result; // rax
result = 4294967195LL;
if ( (unsigned long long)a3 < a4 )
{
result = 0LL;
if ( a2 <= 0xFF )
{
*a3 = a2;
return 1LL;
}
}
return result;
}
| my_wc_mb_bin:
PUSH RBP
MOV RBP,RSP
MOV EAX,0xffffff9b
CMP RDX,RCX
JNC 0x001301b7
XOR EAX,EAX
CMP RSI,0xff
JA 0x001301b7
MOV byte ptr [RDX],SIL
MOV EAX,0x1
LAB_001301b7:
POP RBP
RET
|
int8 my_wc_mb_bin(int8 param_1,ulong param_2,int1 *param_3,int1 *param_4)
{
int8 uVar1;
uVar1 = 0xffffff9b;
if ((param_3 < param_4) && (uVar1 = 0, param_2 < 0x100)) {
*param_3 = (char)param_2;
uVar1 = 1;
}
return uVar1;
}
| |
42,251 | LefDefParser::lefiLayer::addAcFrequency() | Efficient-TDP/thirdparty/Limbo/limbo/thirdparty/lefdef/5.8/lef/lef/lefiLayer.cpp | void
lefiLayer::addAcFrequency()
{
lefiLayerDensity *density;
density = accurrents_[numAccurrents_ - 1];
density->addFrequency(numNums_, nums_);
numNums_ = 0;
numAllocated_ = 0;
nums_ = 0;
} | O0 | cpp | LefDefParser::lefiLayer::addAcFrequency():
subq $0x18, %rsp
movq %rdi, 0x10(%rsp)
movq 0x10(%rsp), %rax
movq %rax, (%rsp)
movq 0x380(%rax), %rcx
movl 0x378(%rax), %edx
subl $0x1, %edx
movslq %edx, %rdx
movq (%rcx,%rdx,8), %rcx
movq %rcx, 0x8(%rsp)
movq 0x8(%rsp), %rdi
movl 0x398(%rax), %esi
movq 0x3a0(%rax), %rdx
callq 0x1afa0
movq (%rsp), %rax
movl $0x0, 0x398(%rax)
movl $0x0, 0x39c(%rax)
movq $0x0, 0x3a0(%rax)
addq $0x18, %rsp
retq
nopl (%rax)
| _ZN12LefDefParser9lefiLayer14addAcFrequencyEv:
sub rsp, 18h
mov [rsp+18h+var_8], rdi
mov rax, [rsp+18h+var_8]
mov [rsp+18h+var_18], rax
mov rcx, [rax+380h]
mov edx, [rax+378h]
sub edx, 1
movsxd rdx, edx
mov rcx, [rcx+rdx*8]
mov [rsp+18h+var_10], rcx
mov rdi, [rsp+18h+var_10]; this
mov esi, [rax+398h]; int
mov rdx, [rax+3A0h]; double *
call _ZN12LefDefParser16lefiLayerDensity12addFrequencyEiPd; LefDefParser::lefiLayerDensity::addFrequency(int,double *)
mov rax, [rsp+18h+var_18]
mov dword ptr [rax+398h], 0
mov dword ptr [rax+39Ch], 0
mov qword ptr [rax+3A0h], 0
add rsp, 18h
retn
| LefDefParser::lefiLayer * LefDefParser::lefiLayer::addAcFrequency(LefDefParser::lefiLayer *this)
{
LefDefParser::lefiLayer *result; // rax
LefDefParser::lefiLayerDensity::addFrequency(
*(LefDefParser::lefiLayerDensity **)(*((_QWORD *)this + 112) + 8LL * (*((_DWORD *)this + 222) - 1)),
*((_DWORD *)this + 230),
*((double **)this + 116));
result = this;
*((_DWORD *)this + 230) = 0;
*((_DWORD *)this + 231) = 0;
*((_QWORD *)this + 116) = 0LL;
return result;
}
| addAcFrequency:
SUB RSP,0x18
MOV qword ptr [RSP + 0x10],RDI
MOV RAX,qword ptr [RSP + 0x10]
MOV qword ptr [RSP],RAX
MOV RCX,qword ptr [RAX + 0x380]
MOV EDX,dword ptr [RAX + 0x378]
SUB EDX,0x1
MOVSXD RDX,EDX
MOV RCX,qword ptr [RCX + RDX*0x8]
MOV qword ptr [RSP + 0x8],RCX
MOV RDI,qword ptr [RSP + 0x8]
MOV ESI,dword ptr [RAX + 0x398]
MOV RDX,qword ptr [RAX + 0x3a0]
CALL 0x0011afa0
MOV RAX,qword ptr [RSP]
MOV dword ptr [RAX + 0x398],0x0
MOV dword ptr [RAX + 0x39c],0x0
MOV qword ptr [RAX + 0x3a0],0x0
ADD RSP,0x18
RET
|
/* LefDefParser::lefiLayer::addAcFrequency() */
void __thiscall LefDefParser::lefiLayer::addAcFrequency(lefiLayer *this)
{
lefiLayerDensity::addFrequency
(*(lefiLayerDensity **)
(*(long *)(this + 0x380) + (long)(*(int *)(this + 0x378) + -1) * 8),
*(int *)(this + 0x398),*(double **)(this + 0x3a0));
*(int4 *)(this + 0x398) = 0;
*(int4 *)(this + 0x39c) = 0;
*(int8 *)(this + 0x3a0) = 0;
return;
}
| |
42,252 | my_symlink | eloqsql/mysys/my_symlink.c | int my_symlink(const char *content, const char *linkname, myf MyFlags)
{
#ifndef HAVE_READLINK
return 0;
#else
int result;
DBUG_ENTER("my_symlink");
DBUG_PRINT("enter",("content: %s linkname: %s", content, linkname));
result= 0;
if (symlink(content, linkname))
{
result= -1;
my_errno=errno;
if (MyFlags & MY_WME)
my_error(EE_CANT_SYMLINK, MYF(0), linkname, content, errno);
}
else if ((MyFlags & MY_SYNC_DIR) && my_sync_dir_by_file(linkname, MyFlags))
result= -1;
DBUG_RETURN(result);
#endif /* HAVE_READLINK */
} | O3 | c | my_symlink:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdx, %r15
movq %rsi, %rbx
movq %rdi, %r12
callq 0x24080
testl %eax, %eax
je 0x2bf6a
callq 0x24060
movq %rax, %r13
movl (%rax), %r14d
callq 0x2655e
movl %r14d, (%rax)
movl $0xffffffff, %r14d # imm = 0xFFFFFFFF
testb $0x10, %r15b
je 0x2bf86
movl (%r13), %r8d
movl $0x19, %edi
xorl %esi, %esi
movq %rbx, %rdx
movq %r12, %rcx
xorl %eax, %eax
callq 0x2ac87
jmp 0x2bf86
xorl %r14d, %r14d
testw %r15w, %r15w
jns 0x2bf86
movq %rbx, %rdi
movq %r15, %rsi
callq 0x2c3bb
xorl %r14d, %r14d
negl %eax
sbbl %r14d, %r14d
movl %r14d, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
| my_symlink:
push rbp
mov rbp, rsp
push r15
push r14
push r13
push r12
push rbx
push rax
mov r15, rdx
mov rbx, rsi
mov r12, rdi
call _symlink
test eax, eax
jz short loc_2BF6A
call ___errno_location
mov r13, rax
mov r14d, [rax]
call _my_thread_var
mov [rax], r14d
mov r14d, 0FFFFFFFFh
test r15b, 10h
jz short loc_2BF86
mov r8d, [r13+0]
mov edi, 19h
xor esi, esi
mov rdx, rbx
mov rcx, r12
xor eax, eax
call my_error
jmp short loc_2BF86
loc_2BF6A:
xor r14d, r14d
test r15w, r15w
jns short loc_2BF86
mov rdi, rbx
mov rsi, r15
call my_sync_dir_by_file
xor r14d, r14d
neg eax
sbb r14d, r14d
loc_2BF86:
mov eax, r14d
add rsp, 8
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
| long long my_symlink(long long a1, long long a2, long long a3)
{
unsigned int *v4; // r13
unsigned int v5; // r14d
unsigned int v6; // r14d
if ( (unsigned int)symlink(a1) )
{
v4 = (unsigned int *)__errno_location(a1);
v5 = *v4;
*(_DWORD *)my_thread_var() = v5;
v6 = -1;
if ( (a3 & 0x10) != 0 )
my_error(0x19u, 0, a2, a1, *v4);
}
else
{
v6 = 0;
if ( (a3 & 0x8000u) != 0LL )
return (unsigned int)-((unsigned int)my_sync_dir_by_file(a2, a3) != 0);
}
return v6;
}
| my_symlink:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
PUSH RAX
MOV R15,RDX
MOV RBX,RSI
MOV R12,RDI
CALL 0x00124080
TEST EAX,EAX
JZ 0x0012bf6a
CALL 0x00124060
MOV R13,RAX
MOV R14D,dword ptr [RAX]
CALL 0x0012655e
MOV dword ptr [RAX],R14D
MOV R14D,0xffffffff
TEST R15B,0x10
JZ 0x0012bf86
MOV R8D,dword ptr [R13]
MOV EDI,0x19
XOR ESI,ESI
MOV RDX,RBX
MOV RCX,R12
XOR EAX,EAX
CALL 0x0012ac87
JMP 0x0012bf86
LAB_0012bf6a:
XOR R14D,R14D
TEST R15W,R15W
JNS 0x0012bf86
MOV RDI,RBX
MOV RSI,R15
CALL 0x0012c3bb
XOR R14D,R14D
NEG EAX
SBB R14D,R14D
LAB_0012bf86:
MOV EAX,R14D
ADD RSP,0x8
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
|
int my_symlink(char *param_1,char *param_2,ulong param_3)
{
int iVar1;
int *piVar2;
int *piVar3;
iVar1 = symlink(param_1,param_2);
if (iVar1 == 0) {
iVar1 = 0;
if ((short)param_3 < 0) {
iVar1 = my_sync_dir_by_file(param_2,param_3);
iVar1 = -(uint)(iVar1 != 0);
}
}
else {
piVar2 = __errno_location();
iVar1 = *piVar2;
piVar3 = (int *)_my_thread_var();
*piVar3 = iVar1;
iVar1 = -1;
if ((param_3 & 0x10) != 0) {
my_error(0x19,0,param_2,param_1,*piVar2);
}
}
return iVar1;
}
| |
42,253 | flush_pagecache_blocks_with_filter | eloqsql/storage/maria/ma_pagecache.c | int flush_pagecache_blocks_with_filter(PAGECACHE *pagecache,
PAGECACHE_FILE *file,
enum flush_type type,
PAGECACHE_FLUSH_FILTER filter,
void *filter_arg)
{
int res;
DBUG_ENTER("flush_pagecache_blocks_with_filter");
DBUG_PRINT("enter", ("pagecache: %p", pagecache));
if (pagecache->disk_blocks <= 0)
DBUG_RETURN(0);
pagecache_pthread_mutex_lock(&pagecache->cache_lock);
inc_counter_for_resize_op(pagecache);
res= flush_pagecache_blocks_int(pagecache, file, type, filter, filter_arg);
dec_counter_for_resize_op(pagecache);
pagecache_pthread_mutex_unlock(&pagecache->cache_lock);
DBUG_RETURN(res);
} | O0 | c | flush_pagecache_blocks_with_filter:
pushq %rbp
movq %rsp, %rbp
subq $0x40, %rsp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movl %edx, -0x1c(%rbp)
movq %rcx, -0x28(%rbp)
movq %r8, -0x30(%rbp)
jmp 0x3ee5d
movq -0x10(%rbp), %rax
cmpq $0x0, 0x40(%rax)
jg 0x3ee73
jmp 0x3ee6a
movl $0x0, -0x4(%rbp)
jmp 0x3eed2
movq -0x10(%rbp), %rdi
addq $0xc8, %rdi
leaq 0x1132c2(%rip), %rsi # 0x152147
movl $0x1471, %edx # imm = 0x1471
callq 0x3bb60
movq -0x10(%rbp), %rdi
callq 0x3bf10
movq -0x10(%rbp), %rdi
movq -0x18(%rbp), %rsi
movl -0x1c(%rbp), %edx
movq -0x28(%rbp), %rcx
movq -0x30(%rbp), %r8
callq 0x3eee0
movl %eax, -0x34(%rbp)
movq -0x10(%rbp), %rdi
callq 0x3cc40
movq -0x10(%rbp), %rdi
addq $0xc8, %rdi
callq 0x3bbd0
movl -0x34(%rbp), %eax
movl %eax, -0x4(%rbp)
movl -0x4(%rbp), %eax
addq $0x40, %rsp
popq %rbp
retq
nopl (%rax,%rax)
| flush_pagecache_blocks_with_filter:
push rbp
mov rbp, rsp
sub rsp, 40h
mov [rbp+var_10], rdi
mov [rbp+var_18], rsi
mov [rbp+var_1C], edx
mov [rbp+var_28], rcx
mov [rbp+var_30], r8
jmp short $+2
loc_3EE5D:
mov rax, [rbp+var_10]
cmp qword ptr [rax+40h], 0
jg short loc_3EE73
jmp short $+2
loc_3EE6A:
mov [rbp+var_4], 0
jmp short loc_3EED2
loc_3EE73:
mov rdi, [rbp+var_10]
add rdi, 0C8h
lea rsi, aWorkspaceLlm4b_1; "/workspace/llm4binary/github2025/eloqsq"...
mov edx, 1471h
call inline_mysql_mutex_lock_0
mov rdi, [rbp+var_10]
call inc_counter_for_resize_op
mov rdi, [rbp+var_10]
mov rsi, [rbp+var_18]
mov edx, [rbp+var_1C]
mov rcx, [rbp+var_28]
mov r8, [rbp+var_30]
call flush_pagecache_blocks_int
mov [rbp+var_34], eax
mov rdi, [rbp+var_10]
call dec_counter_for_resize_op
mov rdi, [rbp+var_10]
add rdi, 0C8h
call inline_mysql_mutex_unlock_0
mov eax, [rbp+var_34]
mov [rbp+var_4], eax
loc_3EED2:
mov eax, [rbp+var_4]
add rsp, 40h
pop rbp
retn
| long long flush_pagecache_blocks_with_filter(long long a1, long long a2, unsigned int a3, long long a4, long long a5)
{
unsigned int v6; // [rsp+Ch] [rbp-34h]
if ( *(long long *)(a1 + 64) > 0 )
{
inline_mysql_mutex_lock_0(
a1 + 200,
(long long)"/workspace/llm4binary/github2025/eloqsql/storage/maria/ma_pagecache.c",
0x1471u);
inc_counter_for_resize_op(a1);
v6 = flush_pagecache_blocks_int(a1, a2, a3, a4, a5);
dec_counter_for_resize_op(a1);
inline_mysql_mutex_unlock_0(a1 + 200);
return v6;
}
else
{
return 0;
}
}
| flush_pagecache_blocks_with_filter:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x40
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
JMP 0x0013ee5d
LAB_0013ee5d:
MOV RAX,qword ptr [RBP + -0x10]
CMP qword ptr [RAX + 0x40],0x0
JG 0x0013ee73
JMP 0x0013ee6a
LAB_0013ee6a:
MOV dword ptr [RBP + -0x4],0x0
JMP 0x0013eed2
LAB_0013ee73:
MOV RDI,qword ptr [RBP + -0x10]
ADD RDI,0xc8
LEA RSI,[0x252147]
MOV EDX,0x1471
CALL 0x0013bb60
MOV RDI,qword ptr [RBP + -0x10]
CALL 0x0013bf10
MOV RDI,qword ptr [RBP + -0x10]
MOV RSI,qword ptr [RBP + -0x18]
MOV EDX,dword ptr [RBP + -0x1c]
MOV RCX,qword ptr [RBP + -0x28]
MOV R8,qword ptr [RBP + -0x30]
CALL 0x0013eee0
MOV dword ptr [RBP + -0x34],EAX
MOV RDI,qword ptr [RBP + -0x10]
CALL 0x0013cc40
MOV RDI,qword ptr [RBP + -0x10]
ADD RDI,0xc8
CALL 0x0013bbd0
MOV EAX,dword ptr [RBP + -0x34]
MOV dword ptr [RBP + -0x4],EAX
LAB_0013eed2:
MOV EAX,dword ptr [RBP + -0x4]
ADD RSP,0x40
POP RBP
RET
|
int4
flush_pagecache_blocks_with_filter
(long param_1,int8 param_2,int4 param_3,int8 param_4,int8 param_5)
{
int4 local_c;
if (*(long *)(param_1 + 0x40) < 1) {
local_c = 0;
}
else {
inline_mysql_mutex_lock
(param_1 + 200,"/workspace/llm4binary/github2025/eloqsql/storage/maria/ma_pagecache.c"
,0x1471);
inc_counter_for_resize_op(param_1);
local_c = flush_pagecache_blocks_int(param_1,param_2,param_3,param_4,param_5);
dec_counter_for_resize_op(param_1);
inline_mysql_mutex_unlock(param_1 + 200);
}
return local_c;
}
| |
42,254 | JS_SetPropertyStr | bluesky950520[P]quickjs/quickjs.c | int JS_SetPropertyStr(JSContext *ctx, JSValue this_obj,
const char *prop, JSValue val)
{
JSAtom atom;
int ret;
atom = JS_NewAtom(ctx, prop);
ret = JS_SetPropertyInternal(ctx, this_obj, atom, val, JS_PROP_THROW);
JS_FreeAtom(ctx, atom);
return ret;
} | O0 | c | JS_SetPropertyStr:
subq $0x48, %rsp
movq %rsi, 0x38(%rsp)
movq %rdx, 0x40(%rsp)
movq %r8, 0x28(%rsp)
movq %r9, 0x30(%rsp)
movq %rdi, 0x20(%rsp)
movq %rcx, 0x18(%rsp)
movq 0x20(%rsp), %rdi
movq 0x18(%rsp), %rsi
callq 0x2e7b0
movl %eax, 0x14(%rsp)
movq 0x20(%rsp), %rdi
movl 0x14(%rsp), %ecx
movq 0x38(%rsp), %rsi
movq 0x40(%rsp), %rdx
movq 0x28(%rsp), %r8
movq 0x30(%rsp), %r9
movl $0x4000, (%rsp) # imm = 0x4000
callq 0x3a050
movl %eax, 0x10(%rsp)
movq 0x20(%rsp), %rdi
movl 0x14(%rsp), %esi
callq 0x2f330
movl 0x10(%rsp), %eax
addq $0x48, %rsp
retq
nopl (%rax)
| JS_SetPropertyStr:
sub rsp, 48h
mov [rsp+48h+var_10], rsi
mov [rsp+48h+var_8], rdx
mov [rsp+48h+var_20], r8
mov [rsp+48h+var_18], r9
mov [rsp+48h+var_28], rdi
mov [rsp+48h+var_30], rcx
mov rdi, [rsp+48h+var_28]
mov rsi, [rsp+48h+var_30]
call JS_NewAtom
mov [rsp+48h+var_34], eax
mov rdi, [rsp+48h+var_28]
mov ecx, [rsp+48h+var_34]
mov rsi, [rsp+48h+var_10]
mov rdx, [rsp+48h+var_8]
mov r8, [rsp+48h+var_20]
mov r9, [rsp+48h+var_18]
mov [rsp+48h+var_48], 4000h
call JS_SetPropertyInternal
mov [rsp+48h+var_38], eax
mov rdi, [rsp+48h+var_28]
mov esi, [rsp+48h+var_34]
call JS_FreeAtom
mov eax, [rsp+48h+var_38]
add rsp, 48h
retn
| long long JS_SetPropertyStr(long long a1, int a2, int a3, unsigned __int8 *a4, int a5, int a6)
{
unsigned int v7; // [rsp+10h] [rbp-38h]
unsigned int v8; // [rsp+14h] [rbp-34h]
v8 = JS_NewAtom(a1, a4);
v7 = JS_SetPropertyInternal(a1, a2, a3, v8, a5, a6, 0x4000);
JS_FreeAtom(a1, v8);
return v7;
}
| JS_SetPropertyStr:
SUB RSP,0x48
MOV qword ptr [RSP + 0x38],RSI
MOV qword ptr [RSP + 0x40],RDX
MOV qword ptr [RSP + 0x28],R8
MOV qword ptr [RSP + 0x30],R9
MOV qword ptr [RSP + 0x20],RDI
MOV qword ptr [RSP + 0x18],RCX
MOV RDI,qword ptr [RSP + 0x20]
MOV RSI,qword ptr [RSP + 0x18]
CALL 0x0012e7b0
MOV dword ptr [RSP + 0x14],EAX
MOV RDI,qword ptr [RSP + 0x20]
MOV ECX,dword ptr [RSP + 0x14]
MOV RSI,qword ptr [RSP + 0x38]
MOV RDX,qword ptr [RSP + 0x40]
MOV R8,qword ptr [RSP + 0x28]
MOV R9,qword ptr [RSP + 0x30]
MOV dword ptr [RSP],0x4000
CALL 0x0013a050
MOV dword ptr [RSP + 0x10],EAX
MOV RDI,qword ptr [RSP + 0x20]
MOV ESI,dword ptr [RSP + 0x14]
CALL 0x0012f330
MOV EAX,dword ptr [RSP + 0x10]
ADD RSP,0x48
RET
|
int4
JS_SetPropertyStr(int8 param_1,int8 param_2,int8 param_3,int8 param_4,
int8 param_5,int8 param_6)
{
int4 uVar1;
int4 uVar2;
uVar1 = JS_NewAtom(param_1,param_4);
uVar2 = JS_SetPropertyInternal(param_1,param_2,param_3,uVar1,param_5,param_6,0x4000);
JS_FreeAtom(param_1,uVar1);
return uVar2;
}
| |
42,255 | JS_SetPropertyStr | bluesky950520[P]quickjs/quickjs.c | int JS_SetPropertyStr(JSContext *ctx, JSValue this_obj,
const char *prop, JSValue val)
{
JSAtom atom;
int ret;
atom = JS_NewAtom(ctx, prop);
ret = JS_SetPropertyInternal(ctx, this_obj, atom, val, JS_PROP_THROW);
JS_FreeAtom(ctx, atom);
return ret;
} | O2 | c | JS_SetPropertyStr:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %r9, %rbx
movq %r8, %r14
movq %rdx, %r15
movq %rsi, %r12
movq %rdi, %r13
movq %rcx, %rsi
callq 0x1e021
movl %eax, %ebp
movl $0x4000, (%rsp) # imm = 0x4000
movq %r13, %rdi
movq %r12, %rsi
movq %r15, %rdx
movl %eax, %ecx
movq %r14, %r8
movq %rbx, %r9
callq 0x22d5f
movl %eax, %ebx
movq %r13, %rdi
movl %ebp, %esi
callq 0x1e545
movl %ebx, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
| JS_SetPropertyStr:
push rbp
push r15
push r14
push r13
push r12
push rbx
push rax
mov rbx, r9
mov r14, r8
mov r15, rdx
mov r12, rsi
mov r13, rdi
mov rsi, rcx
call JS_NewAtom
mov ebp, eax
mov [rsp+38h+var_38], 4000h
mov rdi, r13
mov rsi, r12
mov rdx, r15
mov ecx, eax
mov r8, r14
mov r9, rbx
call JS_SetPropertyInternal
mov ebx, eax
mov rdi, r13
mov esi, ebp
call JS_FreeAtom
mov eax, ebx
add rsp, 8
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
| long long JS_SetPropertyStr(long long a1, int a2, int a3, unsigned __int8 *a4, int a5, int a6)
{
int v9; // ebp
unsigned int v10; // ebx
v9 = JS_NewAtom(a1, a4);
v10 = JS_SetPropertyInternal(a1, a2, a3, v9, a5, a6, 0x4000);
JS_FreeAtom(a1, v9);
return v10;
}
| JS_SetPropertyStr:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
PUSH RAX
MOV RBX,R9
MOV R14,R8
MOV R15,RDX
MOV R12,RSI
MOV R13,RDI
MOV RSI,RCX
CALL 0x0011e021
MOV EBP,EAX
MOV dword ptr [RSP],0x4000
MOV RDI,R13
MOV RSI,R12
MOV RDX,R15
MOV ECX,EAX
MOV R8,R14
MOV R9,RBX
CALL 0x00122d5f
MOV EBX,EAX
MOV RDI,R13
MOV ESI,EBP
CALL 0x0011e545
MOV EAX,EBX
ADD RSP,0x8
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
|
int4
JS_SetPropertyStr(int8 param_1,int8 param_2,int8 param_3,int8 param_4,
int8 param_5,int8 param_6)
{
int4 uVar1;
int4 uVar2;
int8 in_RAX;
uVar2 = (int4)((ulong)in_RAX >> 0x20);
uVar1 = JS_NewAtom(param_1,param_4);
uVar2 = JS_SetPropertyInternal
(param_1,param_2,param_3,uVar1,param_5,param_6,CONCAT44(uVar2,0x4000));
JS_FreeAtom(param_1,uVar1);
return uVar2;
}
| |
42,256 | JS_SetPropertyStr | bluesky950520[P]quickjs/quickjs.c | int JS_SetPropertyStr(JSContext *ctx, JSValue this_obj,
const char *prop, JSValue val)
{
JSAtom atom;
int ret;
atom = JS_NewAtom(ctx, prop);
ret = JS_SetPropertyInternal(ctx, this_obj, atom, val, JS_PROP_THROW);
JS_FreeAtom(ctx, atom);
return ret;
} | O3 | c | JS_SetPropertyStr:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x38, %rsp
movq %r9, %r14
movq %r8, %r15
movq %rcx, %r12
movq %rdx, %r13
movq %rsi, %rbp
movq %rdi, %rbx
movq %rcx, %rdi
callq 0xe270
movq %rbx, %rdi
movq %r12, %rsi
movq %rax, %rdx
callq 0x24537
movl %eax, %r12d
movq %rbp, 0x28(%rsp)
movq %r13, 0x30(%rsp)
movups 0x28(%rsp), %xmm0
movups %xmm0, (%rsp)
movq $0x0, 0x18(%rsp)
movl $0x4000, 0x10(%rsp) # imm = 0x4000
movq %rbx, %rdi
movq %rbp, %rsi
movq %r13, %rdx
movl %eax, %ecx
movq %r15, %r8
movq %r14, %r9
callq 0x289c7
movl %eax, %ebp
movq %rbx, %rdi
movl %r12d, %esi
callq 0x24f3d
movl %ebp, %eax
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
| JS_SetPropertyStr:
push rbp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 38h
mov r14, r9
mov r15, r8
mov r12, rcx
mov r13, rdx
mov rbp, rsi
mov rbx, rdi
mov rdi, rcx
call _strlen
mov rdi, rbx
mov rsi, r12
mov rdx, rax
call JS_NewAtomLen
mov r12d, eax
mov qword ptr [rsp+68h+var_40], rbp
mov qword ptr [rsp+68h+var_40+8], r13
movups xmm0, [rsp+68h+var_40]
movups [rsp+68h+var_68], xmm0
mov [rsp+68h+var_50], 0
mov [rsp+68h+var_58], 4000h
mov rdi, rbx
mov rsi, rbp
mov rdx, r13
mov ecx, eax
mov r8, r15
mov r9, r14
call JS_SetPropertyInternal2
mov ebp, eax
mov rdi, rbx
mov esi, r12d
call JS_FreeAtom
mov eax, ebp
add rsp, 38h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
| long long JS_SetPropertyStr(
long long a1,
long long a2,
long long a3,
unsigned __int8 *a4,
long long a5,
long long a6,
double a7,
__m128 a8,
__m128 a9,
__m128 a10,
double a11,
double a12,
__m128 a13,
__m128 a14)
{
unsigned __int8 *v16; // r12
long long v18; // rax
double v19; // xmm4_8
double v20; // xmm5_8
unsigned int v21; // ebp
__m128 v23; // [rsp+28h] [rbp-40h]
v16 = a4;
v18 = strlen(a4);
LODWORD(v16) = JS_NewAtomLen(a1, v16, v18);
v23.m128_u64[0] = a2;
v23.m128_u64[1] = a3;
v21 = JS_SetPropertyInternal2(
a1,
a2,
a3,
(unsigned int)v16,
a5,
a6,
v23,
a8,
a9,
a10,
v19,
v20,
a13,
a14,
a2,
a3,
0x4000u,
0LL);
JS_FreeAtom(a1, (int)v16);
return v21;
}
| JS_SetPropertyStr:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x38
MOV R14,R9
MOV R15,R8
MOV R12,RCX
MOV R13,RDX
MOV RBP,RSI
MOV RBX,RDI
MOV RDI,RCX
CALL 0x0010e270
MOV RDI,RBX
MOV RSI,R12
MOV RDX,RAX
CALL 0x00124537
MOV R12D,EAX
MOV qword ptr [RSP + 0x28],RBP
MOV qword ptr [RSP + 0x30],R13
MOVUPS XMM0,xmmword ptr [RSP + 0x28]
MOVUPS xmmword ptr [RSP],XMM0
MOV qword ptr [RSP + 0x18],0x0
MOV dword ptr [RSP + 0x10],0x4000
MOV RDI,RBX
MOV RSI,RBP
MOV RDX,R13
MOV ECX,EAX
MOV R8,R15
MOV R9,R14
CALL 0x001289c7
MOV EBP,EAX
MOV RDI,RBX
MOV ESI,R12D
CALL 0x00124f3d
MOV EAX,EBP
ADD RSP,0x38
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
|
int4
JS_SetPropertyStr(int8 param_1,int8 param_2,int8 param_3,char *param_4,
int8 param_5,int8 param_6)
{
int4 uVar1;
int4 uVar2;
size_t sVar3;
int4 local_40;
int4 uStack_38;
sVar3 = strlen(param_4);
uVar1 = JS_NewAtomLen(param_1,param_4,sVar3);
local_40 = (int4)param_2;
uStack_38 = (int4)param_3;
uVar2 = JS_SetPropertyInternal2
(param_1,param_2,param_3,uVar1,param_5,param_6,local_40,uStack_38,0x4000,0);
JS_FreeAtom(param_1,uVar1);
return uVar2;
}
| |
42,257 | httplib::ClientImpl::send_with_content_provider(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&, std::unordered_multimap<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, httplib::detail::case_ignore::hash, httplib::detail::case_ignore::equal_to, std::allocator<std::pair<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&, char const*, unsigned long, std::function<bool (unsigned long, unsigned long, httplib::DataSink&)>, std::function<bool (unsigned long, httplib::DataSink&)>, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, std::function<bool (unsigned long, unsigned long)>) | hkr04[P]cpp-mcp/common/httplib.h | inline Result ClientImpl::send_with_content_provider(
const std::string &method, const std::string &path, const Headers &headers,
const char *body, size_t content_length, ContentProvider content_provider,
ContentProviderWithoutLength content_provider_without_length,
const std::string &content_type, Progress progress) {
Request req;
req.method = method;
req.headers = headers;
req.path = path;
req.progress = progress;
if (max_timeout_msec_ > 0) {
req.start_time_ = std::chrono::steady_clock::now();
}
auto error = Error::Success;
auto res = send_with_content_provider(
req, body, content_length, std::move(content_provider),
std::move(content_provider_without_length), content_type, error);
return Result{std::move(res), error, std::move(req.headers)};
} | O0 | c | httplib::ClientImpl::send_with_content_provider(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&, std::unordered_multimap<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, httplib::detail::case_ignore::hash, httplib::detail::case_ignore::equal_to, std::allocator<std::pair<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&, char const*, unsigned long, std::function<bool (unsigned long, unsigned long, httplib::DataSink&)>, std::function<bool (unsigned long, httplib::DataSink&)>, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, std::function<bool (unsigned long, unsigned long)>):
subq $0x3c8, %rsp # imm = 0x3C8
movq %rdi, 0x38(%rsp)
movq %rdi, %rax
movq %rax, 0x40(%rsp)
movq 0x3f0(%rsp), %rax
movq %rax, 0x48(%rsp)
movq 0x3e8(%rsp), %rax
movq 0x3e0(%rsp), %rax
movq %rax, 0x50(%rsp)
movq 0x3d8(%rsp), %rax
movq %rax, 0x58(%rsp)
movq 0x3d0(%rsp), %rax
movq %rdi, 0x3c0(%rsp)
movq %rsi, 0x3b8(%rsp)
movq %rdx, 0x3b0(%rsp)
movq %rcx, 0x3a8(%rsp)
movq %r8, 0x3a0(%rsp)
movq %r9, 0x398(%rsp)
movq 0x3b8(%rsp), %rax
movq %rax, 0x60(%rsp)
leaq 0xd8(%rsp), %rdi
movq %rdi, 0x68(%rsp)
callq 0x16b60
movq 0x68(%rsp), %rdi
movq 0x3b0(%rsp), %rsi
callq 0xb080
jmp 0x8b08e
movq 0x3a0(%rsp), %rsi
leaq 0x148(%rsp), %rdi
callq 0x16e70
jmp 0x8b0a5
movq 0x3a8(%rsp), %rsi
leaq 0xf8(%rsp), %rdi
callq 0xb080
jmp 0x8b0bc
movq 0x48(%rsp), %rsi
leaq 0x330(%rsp), %rdi
callq 0x8b310
jmp 0x8b0d0
movq 0x60(%rsp), %rax
cmpq $0x0, 0x1b8(%rax)
jle 0x8b117
callq 0xbaf0
movq %rax, 0xc0(%rsp)
movq 0xc0(%rsp), %rax
movq %rax, 0x390(%rsp)
jmp 0x8b117
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0xd0(%rsp)
movl %eax, 0xcc(%rsp)
jmp 0x8b264
movq 0x58(%rsp), %rsi
movl $0x0, 0xbc(%rsp)
movq 0x398(%rsp), %rax
movq %rax, 0x20(%rsp)
movq 0x3d0(%rsp), %rax
movq %rax, 0x28(%rsp)
leaq 0x90(%rsp), %rdi
movq %rdi, 0x30(%rsp)
callq 0x67760
movq 0x50(%rsp), %rsi
leaq 0x70(%rsp), %rdi
movq %rdi, 0x18(%rsp)
callq 0x8b7b0
movq 0x18(%rsp), %rdx
movq 0x60(%rsp), %rsi
movq 0x20(%rsp), %rcx
movq 0x28(%rsp), %r8
movq 0x30(%rsp), %r9
movq 0x3e8(%rsp), %rdi
movq %rsp, %rax
leaq 0xbc(%rsp), %r10
movq %r10, 0x10(%rax)
movq %rdi, 0x8(%rax)
movq %rdx, (%rax)
leaq 0xb0(%rsp), %rdi
leaq 0xd8(%rsp), %rdx
callq 0x8b360
jmp 0x8b1b5
leaq 0x70(%rsp), %rdi
callq 0x8b300
leaq 0x90(%rsp), %rdi
callq 0x1a5f0
movq 0x38(%rsp), %rdi
movl 0xbc(%rsp), %edx
leaq 0x148(%rsp), %rcx
leaq 0xb0(%rsp), %rsi
callq 0x8b840
jmp 0x8b1ef
leaq 0xb0(%rsp), %rdi
callq 0x8b890
leaq 0xd8(%rsp), %rdi
callq 0x1a9f0
movq 0x40(%rsp), %rax
addq $0x3c8, %rsp # imm = 0x3C8
retq
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0xd0(%rsp)
movl %eax, 0xcc(%rsp)
leaq 0x70(%rsp), %rdi
callq 0x8b300
leaq 0x90(%rsp), %rdi
callq 0x1a5f0
jmp 0x8b264
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0xd0(%rsp)
movl %eax, 0xcc(%rsp)
leaq 0xb0(%rsp), %rdi
callq 0x8b890
leaq 0xd8(%rsp), %rdi
callq 0x1a9f0
movq 0xd0(%rsp), %rdi
callq 0xbe10
nop
| _ZN7httplib10ClientImpl26send_with_content_providerERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES8_RKSt18unordered_multimapIS6_S6_NS_6detail11case_ignore4hashENSB_8equal_toESaISt4pairIS7_S6_EEEPKcmSt8functionIFbmmRNS_8DataSinkEEESM_IFbmSO_EES8_SM_IFbmmEE:
sub rsp, 3C8h
mov [rsp+3C8h+var_390], rdi
mov rax, rdi
mov [rsp+3C8h+var_388], rax
mov rax, [rsp+3C8h+arg_20]
mov [rsp+3C8h+var_380], rax
mov rax, [rsp+3C8h+arg_18]
mov rax, [rsp+3C8h+arg_10]
mov [rsp+3C8h+var_378], rax
mov rax, [rsp+3C8h+arg_8]
mov [rsp+3C8h+var_370], rax
mov rax, [rsp+3C8h+arg_0]
mov [rsp+3C8h+var_8], rdi
mov [rsp+3C8h+var_10], rsi
mov [rsp+3C8h+var_18], rdx
mov [rsp+3C8h+var_20], rcx
mov [rsp+3C8h+var_28], r8
mov [rsp+3C8h+var_30], r9
mov rax, [rsp+3C8h+var_10]
mov [rsp+3C8h+var_368], rax
lea rdi, [rsp+3C8h+var_2F0]; this
mov [rsp+3C8h+var_360], rdi
call _ZN7httplib7RequestC2Ev; httplib::Request::Request(void)
mov rdi, [rsp+3C8h+var_360]
mov rsi, [rsp+3C8h+var_18]
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSERKS4_; std::string::operator=(std::string const&)
jmp short $+2
loc_8B08E:
mov rsi, [rsp+3C8h+var_28]
lea rdi, [rsp+3C8h+var_280]
call _ZNSt18unordered_multimapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES5_N7httplib6detail11case_ignore4hashENS8_8equal_toESaISt4pairIKS5_S5_EEEaSERKSF_; std::unordered_multimap<std::string,std::string,httplib::detail::case_ignore::hash,httplib::detail::case_ignore::equal_to,std::allocator<std::pair<std::string const,std::string>>>::operator=(std::unordered_multimap<std::string,std::string,httplib::detail::case_ignore::hash,httplib::detail::case_ignore::equal_to,std::allocator<std::pair<std::string const,std::string>>> const&)
jmp short $+2
loc_8B0A5:
mov rsi, [rsp+3C8h+var_20]
lea rdi, [rsp+3C8h+var_2D0]
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSERKS4_; std::string::operator=(std::string const&)
jmp short $+2
loc_8B0BC:
mov rsi, [rsp+3C8h+var_380]
lea rdi, [rsp+3C8h+var_98]; this
call _ZNSt8functionIFbmmEEaSERKS1_; std::function<bool ()(ulong,ulong)>::operator=(std::function<bool ()(ulong,ulong)> const&)
jmp short $+2
loc_8B0D0:
mov rax, [rsp+3C8h+var_368]
cmp qword ptr [rax+1B8h], 0
jle short loc_8B117
call __ZNSt6chrono3_V212steady_clock3nowEv; std::chrono::_V2::steady_clock::now(void)
mov [rsp+3C8h+var_308], rax
mov rax, [rsp+3C8h+var_308]
mov [rsp+3C8h+var_38], rax
jmp short loc_8B117
mov rcx, rax
mov eax, edx
mov [rsp+arg_C8], rcx
mov [rsp+arg_C4], eax
jmp loc_8B264
loc_8B117:
mov rsi, [rsp+3C8h+var_370]
mov [rsp+3C8h+var_30C], 0
mov rax, [rsp+3C8h+var_30]
mov [rsp+3C8h+var_3A8], rax
mov rax, [rsp+3C8h+arg_0]
mov [rsp+3C8h+var_3A0], rax
lea rdi, [rsp+3C8h+var_338]
mov [rsp+3C8h+var_398], rdi
call _ZNSt8functionIFbmmRN7httplib8DataSinkEEEC2EOS4_; std::function<bool ()(ulong,ulong,httplib::DataSink &)>::function(std::function<bool ()(ulong,ulong,httplib::DataSink &)>&&)
mov rsi, [rsp+3C8h+var_378]
lea rdi, [rsp+3C8h+var_358]
mov [rsp+3C8h+var_3B0], rdi
call _ZNSt8functionIFbmRN7httplib8DataSinkEEEC2EOS4_; std::function<bool ()(ulong,httplib::DataSink &)>::function(std::function<bool ()(ulong,httplib::DataSink &)>&&)
mov rdx, [rsp+3C8h+var_3B0]
mov rsi, [rsp+3C8h+var_368]
mov rcx, [rsp+3C8h+var_3A8]
mov r8, [rsp+3C8h+var_3A0]
mov r9, [rsp+3C8h+var_398]
mov rdi, [rsp+3C8h+arg_18]
mov rax, rsp
lea r10, [rsp+3C8h+var_30C]
mov [rax+10h], r10
mov [rax+8], rdi
mov [rax], rdx
lea rdi, [rsp+3C8h+var_318]
lea rdx, [rsp+3C8h+var_2F0]
call _ZN7httplib10ClientImpl26send_with_content_providerERNS_7RequestEPKcmSt8functionIFbmmRNS_8DataSinkEEES5_IFbmS7_EERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERNS_5ErrorE; httplib::ClientImpl::send_with_content_provider(httplib::Request &,char const*,ulong,std::function<bool ()(ulong,ulong,httplib::DataSink &)>,std::function<bool ()(ulong,httplib::DataSink &)>,std::string const&,httplib::Error &)
jmp short $+2
loc_8B1B5:
lea rdi, [rsp+3C8h+var_358]
call _ZNSt8functionIFbmRN7httplib8DataSinkEEED2Ev; std::function<bool ()(ulong,httplib::DataSink &)>::~function()
lea rdi, [rsp+3C8h+var_338]
call _ZNSt8functionIFbmmRN7httplib8DataSinkEEED2Ev; std::function<bool ()(ulong,ulong,httplib::DataSink &)>::~function()
mov rdi, [rsp+3C8h+var_390]
mov edx, [rsp+3C8h+var_30C]
lea rcx, [rsp+3C8h+var_280]
lea rsi, [rsp+3C8h+var_318]
call _ZN7httplib6ResultC2EOSt10unique_ptrINS_8ResponseESt14default_deleteIS2_EENS_5ErrorEOSt18unordered_multimapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESE_NS_6detail11case_ignore4hashENSG_8equal_toESaISt4pairIKSE_SE_EEE; httplib::Result::Result(std::unique_ptr<httplib::Response> &&,httplib::Error,std::unordered_multimap<std::string,std::allocator<char>,httplib::detail::case_ignore::hash,httplib::detail::equal_to,std::allocator<std::pair<std::allocator<char> const,std::allocator<char>>>> &&)
jmp short $+2
loc_8B1EF:
lea rdi, [rsp+3C8h+var_318]
call _ZNSt10unique_ptrIN7httplib8ResponseESt14default_deleteIS1_EED2Ev; std::unique_ptr<httplib::Response>::~unique_ptr()
lea rdi, [rsp+3C8h+var_2F0]; this
call _ZN7httplib7RequestD2Ev; httplib::Request::~Request()
mov rax, [rsp+3C8h+var_388]
add rsp, 3C8h
retn
mov rcx, rax
mov eax, edx
mov [rsp+arg_C8], rcx
mov [rsp+arg_C4], eax
lea rdi, [rsp+arg_68]
call _ZNSt8functionIFbmRN7httplib8DataSinkEEED2Ev; std::function<bool ()(ulong,httplib::DataSink &)>::~function()
lea rdi, [rsp+arg_88]
call _ZNSt8functionIFbmmRN7httplib8DataSinkEEED2Ev; std::function<bool ()(ulong,ulong,httplib::DataSink &)>::~function()
jmp short loc_8B264
mov rcx, rax
mov eax, edx
mov [rsp+arg_C8], rcx
mov [rsp+arg_C4], eax
lea rdi, [rsp+arg_A8]
call _ZNSt10unique_ptrIN7httplib8ResponseESt14default_deleteIS1_EED2Ev; std::unique_ptr<httplib::Response>::~unique_ptr()
loc_8B264:
lea rdi, [rsp+arg_D0]; this
call _ZN7httplib7RequestD2Ev; httplib::Request::~Request()
mov rdi, [rsp+arg_C8]
call __Unwind_Resume
| long long httplib::ClientImpl::send_with_content_provider(
long long a1,
long long a2,
long long a3,
long long a4,
long long a5,
long long a6,
long long a7,
std::_Function_base *a8,
long long a9,
long long a10,
long long a11)
{
int v12; // [rsp+20h] [rbp-3A8h]
long long v13; // [rsp+38h] [rbp-390h]
long long v14; // [rsp+40h] [rbp-388h]
char v15[8]; // [rsp+70h] [rbp-358h] BYREF
int v16; // [rsp+78h] [rbp-350h]
char v17; // [rsp+80h] [rbp-348h]
int v18; // [rsp+88h] [rbp-340h]
_DWORD v19[6]; // [rsp+90h] [rbp-338h] BYREF
char v20; // [rsp+A8h] [rbp-320h]
_DWORD v21[3]; // [rsp+B0h] [rbp-318h] BYREF
unsigned int v22; // [rsp+BCh] [rbp-30Ch] BYREF
long long v23; // [rsp+C0h] [rbp-308h]
_BYTE v24[32]; // [rsp+D8h] [rbp-2F0h] BYREF
_BYTE v25[80]; // [rsp+F8h] [rbp-2D0h] BYREF
_BYTE v26[488]; // [rsp+148h] [rbp-280h] BYREF
_BYTE v27[96]; // [rsp+330h] [rbp-98h] BYREF
long long v28; // [rsp+390h] [rbp-38h]
long long v29; // [rsp+398h] [rbp-30h]
long long v30; // [rsp+3A0h] [rbp-28h]
long long v31; // [rsp+3A8h] [rbp-20h]
long long v32; // [rsp+3B0h] [rbp-18h]
long long v33; // [rsp+3B8h] [rbp-10h]
long long v34; // [rsp+3C0h] [rbp-8h]
v34 = a1;
v33 = a2;
v32 = a3;
v31 = a4;
v30 = a5;
v29 = a6;
httplib::Request::Request((httplib::Request *)v24);
std::string::operator=(v24, v32);
std::unordered_multimap<std::string,std::string,httplib::detail::case_ignore::hash,httplib::detail::case_ignore::equal_to,std::allocator<std::pair<std::string const,std::string>>>::operator=(
(long long)v26,
v30);
std::string::operator=(v25, v31);
std::function<bool ()(unsigned long,unsigned long)>::operator=(v27, a11);
if ( *(long long *)(a2 + 440) > 0 )
{
v23 = std::chrono::_V2::steady_clock::now((std::chrono::_V2::steady_clock *)v27);
v28 = v23;
}
v22 = 0;
v12 = v29;
std::function<bool ()(unsigned long,unsigned long,httplib::DataSink &)>::function((std::_Function_base *)v19, a8);
std::function<bool ()(unsigned long,httplib::DataSink &)>::function(v15, a9);
((void ( *)(unsigned int, _DWORD, unsigned int, int, _DWORD, unsigned int, long long, long long, long long, unsigned int, int, _DWORD, unsigned int, _DWORD, _DWORD, _DWORD, _DWORD, _DWORD, _DWORD, unsigned int, char, int, char, int, _DWORD, _DWORD, _DWORD, char, _DWORD, _DWORD))httplib::ClientImpl::send_with_content_provider)(
(unsigned int)v21,
a2,
(unsigned int)v24,
v12,
a7,
(unsigned int)v19,
(long long)v15,
a10,
(long long)&v22,
(unsigned int)v15,
v12,
a7,
(unsigned int)v19,
a1,
a1,
a11,
a9,
(_DWORD)a8,
a2,
(unsigned int)v24,
v15[0],
v16,
v17,
v18,
v19[0],
v19[2],
v19[4],
v20,
v21[0],
v21[2]);
std::function<bool ()(unsigned long,httplib::DataSink &)>::~function(v15);
std::function<bool ()(unsigned long,unsigned long,httplib::DataSink &)>::~function((std::_Function_base *)v19);
httplib::Result::Result(v13, v21, v22, v26);
std::unique_ptr<httplib::Response>::~unique_ptr(v21);
httplib::Request::~Request((httplib::Request *)v24);
return v14;
}
| send_with_content_provider:
SUB RSP,0x3c8
MOV qword ptr [RSP + 0x38],RDI
MOV RAX,RDI
MOV qword ptr [RSP + 0x40],RAX
MOV RAX,qword ptr [RSP + 0x3f0]
MOV qword ptr [RSP + 0x48],RAX
MOV RAX,qword ptr [RSP + 0x3e8]
MOV RAX,qword ptr [RSP + 0x3e0]
MOV qword ptr [RSP + 0x50],RAX
MOV RAX,qword ptr [RSP + 0x3d8]
MOV qword ptr [RSP + 0x58],RAX
MOV RAX,qword ptr [RSP + 0x3d0]
MOV qword ptr [RSP + 0x3c0],RDI
MOV qword ptr [RSP + 0x3b8],RSI
MOV qword ptr [RSP + 0x3b0],RDX
MOV qword ptr [RSP + 0x3a8],RCX
MOV qword ptr [RSP + 0x3a0],R8
MOV qword ptr [RSP + 0x398],R9
MOV RAX,qword ptr [RSP + 0x3b8]
MOV qword ptr [RSP + 0x60],RAX
LEA RDI,[RSP + 0xd8]
MOV qword ptr [RSP + 0x68],RDI
CALL 0x00116b60
MOV RDI,qword ptr [RSP + 0x68]
MOV RSI,qword ptr [RSP + 0x3b0]
LAB_0018b087:
CALL 0x0010b080
JMP 0x0018b08e
LAB_0018b08e:
MOV RSI,qword ptr [RSP + 0x3a0]
LEA RDI,[RSP + 0x148]
CALL 0x00116e70
JMP 0x0018b0a5
LAB_0018b0a5:
MOV RSI,qword ptr [RSP + 0x3a8]
LEA RDI,[RSP + 0xf8]
CALL 0x0010b080
JMP 0x0018b0bc
LAB_0018b0bc:
MOV RSI,qword ptr [RSP + 0x48]
LEA RDI,[RSP + 0x330]
CALL 0x0018b310
JMP 0x0018b0d0
LAB_0018b0d0:
MOV RAX,qword ptr [RSP + 0x60]
CMP qword ptr [RAX + 0x1b8],0x0
JLE 0x0018b117
CALL 0x0010baf0
MOV qword ptr [RSP + 0xc0],RAX
MOV RAX,qword ptr [RSP + 0xc0]
MOV qword ptr [RSP + 0x390],RAX
JMP 0x0018b117
LAB_0018b117:
MOV RSI,qword ptr [RSP + 0x58]
MOV dword ptr [RSP + 0xbc],0x0
MOV RAX,qword ptr [RSP + 0x398]
MOV qword ptr [RSP + 0x20],RAX
MOV RAX,qword ptr [RSP + 0x3d0]
MOV qword ptr [RSP + 0x28],RAX
LEA RDI,[RSP + 0x90]
MOV qword ptr [RSP + 0x30],RDI
CALL 0x00167760
MOV RSI,qword ptr [RSP + 0x50]
LEA RDI,[RSP + 0x70]
MOV qword ptr [RSP + 0x18],RDI
CALL 0x0018b7b0
MOV RDX,qword ptr [RSP + 0x18]
MOV RSI,qword ptr [RSP + 0x60]
MOV RCX,qword ptr [RSP + 0x20]
MOV R8,qword ptr [RSP + 0x28]
MOV R9,qword ptr [RSP + 0x30]
MOV RDI,qword ptr [RSP + 0x3e8]
LAB_0018b188:
MOV RAX,RSP
LEA R10,[RSP + 0xbc]
MOV qword ptr [RAX + 0x10],R10
MOV qword ptr [RAX + 0x8],RDI
MOV qword ptr [RAX],RDX
LEA RDI,[RSP + 0xb0]
LEA RDX,[RSP + 0xd8]
CALL 0x0018b360
JMP 0x0018b1b5
LAB_0018b1b5:
LEA RDI,[RSP + 0x70]
CALL 0x0018b300
LEA RDI,[RSP + 0x90]
CALL 0x0011a5f0
MOV RDI,qword ptr [RSP + 0x38]
MOV EDX,dword ptr [RSP + 0xbc]
LEA RCX,[RSP + 0x148]
LAB_0018b1e0:
LEA RSI,[RSP + 0xb0]
CALL 0x0018b840
LAB_0018b1ed:
JMP 0x0018b1ef
LAB_0018b1ef:
LEA RDI,[RSP + 0xb0]
CALL 0x0018b890
LEA RDI,[RSP + 0xd8]
CALL 0x0011a9f0
MOV RAX,qword ptr [RSP + 0x40]
ADD RSP,0x3c8
RET
|
/* httplib::ClientImpl::send_with_content_provider(std::__cxx11::string const&, std::__cxx11::string
const&, std::unordered_multimap<std::__cxx11::string, std::__cxx11::string,
httplib::detail::case_ignore::hash, httplib::detail::case_ignore::equal_to,
std::allocator<std::pair<std::__cxx11::string const, std::__cxx11::string > > > const&, char
const*, unsigned long, std::function<bool (unsigned long, unsigned long, httplib::DataSink&)>,
std::function<bool (unsigned long, httplib::DataSink&)>, std::__cxx11::string const&,
std::function<bool (unsigned long, unsigned long)>) */
Result * httplib::ClientImpl::send_with_content_provider
(Result *param_1,long param_2,string *param_3,string *param_4,
unordered_multimap *param_5,int8 param_6,int8 param_7,
function *param_8,function *param_9,int8 param_10,function *param_11)
{
int8 uVar1;
function<bool(unsigned_long,httplib::DataSink&)> local_358 [32];
function<bool(unsigned_long,unsigned_long,httplib::DataSink&)> local_338 [32];
unique_ptr<httplib::Response,std::default_delete<httplib::Response>> local_318 [12];
int4 local_30c;
int8 local_308;
Request local_2f0 [32];
string local_2d0 [80];
unordered_multimap<std::__cxx11::string,std::__cxx11::string,httplib::detail::case_ignore::hash,httplib::detail::case_ignore::equal_to,std::allocator<std::pair<std::__cxx11::string_const,std::__cxx11::string>>>
local_280 [488];
function<bool(unsigned_long,unsigned_long)> local_98 [96];
int8 local_38;
int8 local_30;
unordered_multimap *local_28;
string *local_20;
string *local_18;
long local_10;
Result *local_8;
local_30 = param_6;
local_28 = param_5;
local_20 = param_4;
local_18 = param_3;
local_10 = param_2;
local_8 = param_1;
Request::Request(local_2f0);
/* try { // try from 0018b087 to 0018b0cd has its CatchHandler @ 0018b0fe */
std::__cxx11::string::operator=((string *)local_2f0,local_18);
std::
unordered_multimap<std::__cxx11::string,std::__cxx11::string,httplib::detail::case_ignore::hash,httplib::detail::case_ignore::equal_to,std::allocator<std::pair<std::__cxx11::string_const,std::__cxx11::string>>>
::operator=(local_280,local_28);
std::__cxx11::string::operator=(local_2d0,local_20);
std::function<bool(unsigned_long,unsigned_long)>::operator=(local_98,param_11);
if (0 < *(long *)(param_2 + 0x1b8)) {
local_308 = std::chrono::_V2::steady_clock::now();
local_38 = local_308;
}
uVar1 = local_30;
local_30c = 0;
std::function<bool(unsigned_long,unsigned_long,httplib::DataSink&)>::function(local_338,param_8);
std::function<bool(unsigned_long,httplib::DataSink&)>::function(local_358,param_9);
/* try { // try from 0018b188 to 0018b1b2 has its CatchHandler @ 0018b216 */
send_with_content_provider
(local_318,param_2,local_2f0,uVar1,param_7,local_338,local_358,param_10,&local_30c);
std::function<bool(unsigned_long,httplib::DataSink&)>::~function(local_358);
std::function<bool(unsigned_long,unsigned_long,httplib::DataSink&)>::~function(local_338);
/* try { // try from 0018b1e0 to 0018b1ec has its CatchHandler @ 0018b243 */
Result::Result(param_1,local_318,local_30c,local_280);
std::unique_ptr<httplib::Response,std::default_delete<httplib::Response>>::~unique_ptr(local_318);
Request::~Request(local_2f0);
return param_1;
}
| |
42,258 | ma_split_page | eloqsql/storage/maria/ma_write.c | int _ma_split_page(MARIA_HA *info, MARIA_KEY *key, MARIA_PAGE *split_page,
uint org_split_length,
uchar *inserted_key_pos, uint changed_length,
int move_length,
uchar *key_buff, my_bool insert_last_key)
{
uint keynr;
uint length,a_length,key_ref_length,t_length,nod_flag,key_length;
uint page_length, split_length, page_flag;
uchar *key_pos, *pos, *UNINIT_VAR(after_key);
MARIA_KEY_PARAM s_temp;
MARIA_PINNED_PAGE tmp_page_link, *page_link= &tmp_page_link;
MARIA_SHARE *share= info->s;
MARIA_KEYDEF *keyinfo= key->keyinfo;
MARIA_KEY tmp_key;
MARIA_PAGE new_page;
int res;
DBUG_ENTER("_ma_split_page");
DBUG_DUMP("buff", split_page->buff, split_page->size);
info->page_changed=1; /* Info->buff is used */
info->keyread_buff_used=1;
page_flag= split_page->flag;
nod_flag= split_page->node;
key_ref_length= share->keypage_header + nod_flag;
new_page.info= info;
new_page.buff= info->buff;
new_page.keyinfo= keyinfo;
tmp_key.data= key_buff;
tmp_key.keyinfo= keyinfo;
if (insert_last_key)
key_pos= _ma_find_last_pos(&tmp_key, split_page, &after_key);
else
key_pos= _ma_find_half_pos(&tmp_key, split_page, &after_key);
if (!key_pos)
DBUG_RETURN(-1);
key_length= tmp_key.data_length + tmp_key.ref_length;
split_length= (uint) (key_pos - split_page->buff);
a_length= split_page->size;
split_page->size= split_length;
page_store_size(share, split_page);
key_pos=after_key;
if (nod_flag)
{
DBUG_PRINT("test",("Splitting nod"));
pos=key_pos-nod_flag;
memcpy(new_page.buff + share->keypage_header, pos, (size_t) nod_flag);
}
/* Move middle item to key and pointer to new page */
if ((new_page.pos= _ma_new(info, PAGECACHE_PRIORITY_HIGH, &page_link)) ==
HA_OFFSET_ERROR)
DBUG_RETURN(-1);
_ma_copy_key(key, &tmp_key);
_ma_kpointer(info, key->data + key_length, new_page.pos);
/* Store new page */
if (!(*keyinfo->get_key)(&tmp_key, page_flag, nod_flag, &key_pos))
DBUG_RETURN(-1);
t_length=(*keyinfo->pack_key)(&tmp_key, nod_flag, (uchar *) 0,
(uchar*) 0, (uchar*) 0, &s_temp);
length=(uint) ((split_page->buff + a_length) - key_pos);
memcpy(new_page.buff + key_ref_length + t_length, key_pos,
(size_t) length);
(*keyinfo->store_key)(keyinfo,new_page.buff+key_ref_length,&s_temp);
page_length= length + t_length + key_ref_length;
bzero(new_page.buff, share->keypage_header);
/* Copy KEYFLAG_FLAG_ISNODE and KEYPAGE_FLAG_HAS_TRANSID from parent page */
new_page.flag= page_flag;
new_page.size= page_length;
page_store_info(share, &new_page);
/* Copy key number */
keynr= _ma_get_keynr(share, split_page->buff);
_ma_store_keynr(share, new_page.buff, keynr);
res= 2; /* Middle key up */
if (share->now_transactional && _ma_log_new(&new_page, 0))
res= -1;
/*
Clear unitialized part of page to avoid valgrind/purify warnings
and to get a clean page that is easier to compress and compare with
pages generated with redo
*/
bzero(new_page.buff + page_length, share->block_size - page_length);
if (_ma_write_keypage(&new_page, page_link->write_lock,
DFLT_INIT_HITS))
res= -1;
/* Save changes to split pages */
if (share->now_transactional &&
_ma_log_split(split_page, org_split_length, split_length,
inserted_key_pos, changed_length, move_length,
KEY_OP_NONE, (uchar*) 0, 0, 0))
res= -1;
DBUG_DUMP_KEY("middle_key", key);
DBUG_RETURN(res);
} | O3 | c | ma_split_page:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xaf8, %rsp # imm = 0xAF8
movl %r9d, -0xa50(%rbp)
movq %r8, -0xa98(%rbp)
movl %ecx, -0xa4c(%rbp)
movq %rdx, %r12
movq %rdi, %rdx
movq 0x18(%rbp), %rdi
movq %fs:0x28, %rax
movq %rax, -0x30(%rbp)
leaq -0xb20(%rbp), %rax
movq %rax, -0xa80(%rbp)
movq (%rdx), %r15
movq %rsi, -0xaa0(%rbp)
movq 0x8(%rsi), %r14
movw $0x101, 0x684(%rdx) # imm = 0x101
movl 0x28(%r12), %ecx
movl 0x2c(%r12), %r8d
movl 0x744(%r15), %eax
movq %rcx, -0xab0(%rbp)
addl %ecx, %eax
movl %eax, -0xa2c(%rbp)
movq %rdx, -0xb08(%rbp)
movq %rdx, -0xaa8(%rbp)
movq 0x378(%rdx), %rax
movq %rax, -0xa78(%rbp)
movq %rax, -0xaf8(%rbp)
movq %r14, -0xb00(%rbp)
movq %rdi, -0xa70(%rbp)
movq %r14, -0xa68(%rbp)
cmpb $0x0, 0x20(%rbp)
movq %r15, -0xa28(%rbp)
movq %r12, -0xa18(%rbp)
movl %r8d, -0xa1c(%rbp)
je 0x581e8
movq (%r12), %r13
movq (%r13), %rsi
movl 0x744(%rsi), %edx
movl 0x20(%r12), %eax
subl %edx, %eax
movq 0x10(%r12), %r15
addq %rdx, %r15
movq %r15, -0xa38(%rbp)
testb $0x2e, 0xa2(%r14)
sete %r9b
testb $0x2, %r8b
sete %cl
andb %r9b, %cl
cmpb $0x1, %cl
jne 0x58206
movzwl 0xaa(%r14), %ecx
xorl %edx, %edx
divl %ecx
addl $-0x2, %eax
imull %ecx, %eax
movl 0x740(%rsi), %edx
movl %ecx, %esi
subl %edx, %esi
movl %esi, -0xa60(%rbp)
movq (%r13), %rdx
movl 0x740(%rdx), %edx
movl %edx, -0xa5c(%rbp)
movl $0x0, -0xa58(%rbp)
addq %rax, %r15
leaq (%r15,%rcx), %rax
movq %rax, -0xa48(%rbp)
movq %r15, %rsi
movq %rcx, %rdx
callq 0x29080
movq %r15, %rbx
jmp 0x582da
leaq -0xa70(%rbp), %rdi
leaq -0xa48(%rbp), %rdx
movq %r12, %rsi
callq 0x5860b
movq %rax, %rbx
jmp 0x5830e
movl %eax, %r12d
movq %rdx, %rbx
leaq -0xa10(%rbp), %rax
leaq -0xad0(%rbp), %rdi
movq %rax, (%rdi)
movq %r14, 0x8(%rdi)
movb $0x0, (%rax)
leaq -0xa38(%rbp), %rcx
movl %r8d, %esi
xorl %edx, %edx
callq *0xe0(%r14)
testl %eax, %eax
je 0x582cb
movq %r13, -0xa40(%rbp)
movq %r14, %r13
movl -0xa1c(%rbp), %r14d
movl %r12d, %r12d
addq %r15, %r12
subq %rbx, %r12
leaq -0xa38(%rbp), %rcx
movq (%rcx), %rcx
movq %r15, %rbx
movq %rcx, %r15
movq -0xac0(%rbp), %rcx
movq %rcx, -0xa60(%rbp)
movl -0xab8(%rbp), %ecx
movl %ecx, -0xa58(%rbp)
movq -0xa70(%rbp), %rdi
movl %eax, %edx
leaq -0xa10(%rbp), %rsi
callq 0x29080
leaq -0xad0(%rbp), %rdi
movl %r14d, %esi
xorl %edx, %edx
leaq -0xa38(%rbp), %rcx
callq *0xe0(%r13)
testl %eax, %eax
je 0x582ea
movq -0xa38(%rbp), %rcx
cmpq %r12, %rcx
jb 0x58263
movq %r15, -0xa48(%rbp)
jmp 0x582fd
movq %r13, %rdi
movl $0x7e, %esi
callq 0x405a4
xorl %ebx, %ebx
movq -0xa18(%rbp), %r12
movq -0xa28(%rbp), %r15
jmp 0x5830e
movq -0xa40(%rbp), %rdi
movl $0x7e, %esi
callq 0x405a4
xorl %ebx, %ebx
movq -0xa18(%rbp), %r12
movq -0xa28(%rbp), %r15
movq %r13, %r14
movl $0xffffffff, %eax # imm = 0xFFFFFFFF
testq %rbx, %rbx
je 0x585e5
movq %r14, -0xa40(%rbp)
movl -0xa5c(%rbp), %r14d
addl -0xa60(%rbp), %r14d
movq 0x10(%r12), %rax
subq %rax, %rbx
movl 0x20(%r12), %r13d
movl %ebx, 0x20(%r12)
movl 0x744(%r15), %ecx
movb %bl, -0x1(%rax,%rcx)
movq 0x10(%r12), %rax
movl 0x744(%r15), %ecx
movq %rbx, -0xa90(%rbp)
movb %bh, -0x2(%rax,%rcx)
movq -0xa48(%rbp), %rsi
movq %rsi, -0xad0(%rbp)
movq -0xab0(%rbp), %r12
testq %r12, %r12
je 0x58398
subq %r12, %rsi
movl 0x744(%r15), %edi
addq -0xa78(%rbp), %rdi
movq %r12, %rdx
callq 0x29080
leaq -0xa80(%rbp), %rdx
movq -0xaa8(%rbp), %r15
movq %r15, %rdi
movl $0x6, %esi
callq 0x6fed7
movq %rax, -0xaf0(%rbp)
cmpq $-0x1, %rax
je 0x58541
movq %rax, %rbx
movq %r13, -0xa88(%rbp)
leaq -0xa70(%rbp), %rsi
movq -0xaa0(%rbp), %r13
movq %r13, %rdi
callq 0x42664
movl %r14d, %esi
addq (%r13), %rsi
movq %r15, %rdi
movq %rbx, %rdx
callq 0x6db6d
leaq -0xad0(%rbp), %rcx
leaq -0xa70(%rbp), %rdi
movl -0xa1c(%rbp), %esi
movl %r12d, %edx
movq -0xa40(%rbp), %r14
callq *0xe0(%r14)
testl %eax, %eax
movl $0xffffffff, %eax # imm = 0xFFFFFFFF
je 0x585e5
leaq -0xa70(%rbp), %rdi
leaq -0xa10(%rbp), %r9
movl %r12d, %esi
xorl %edx, %edx
xorl %ecx, %ecx
xorl %r8d, %r8d
callq *0xf0(%r14)
movq -0xa88(%rbp), %r13
movq -0xa18(%rbp), %rcx
addq 0x10(%rcx), %r13
movl %eax, %ebx
movq -0xad0(%rbp), %rsi
subq %rsi, %r13
movl -0xa2c(%rbp), %r12d
movq -0xa78(%rbp), %r15
addq %r15, %r12
movl %eax, %edi
addq %r12, %rdi
movl %r13d, %edx
callq 0x29080
movq %r14, %rdi
movq %r12, %rsi
leaq -0xa10(%rbp), %rdx
callq *0xf8(%r14)
addl -0xa2c(%rbp), %ebx
addl %r13d, %ebx
movq -0xa28(%rbp), %r14
movl 0x744(%r14), %edx
movq %r15, %rdi
xorl %esi, %esi
callq 0x292b0
movl -0xa1c(%rbp), %ecx
movl %ecx, -0xadc(%rbp)
movl %ebx, -0xae8(%rbp)
movl 0x744(%r14), %eax
addl $-0x3, %eax
movq %r15, %rdx
movb %cl, (%r15,%rax)
movl 0x744(%r14), %eax
movb %bl, -0x1(%r15,%rax)
movl 0x744(%r14), %eax
movl %ebx, %r12d
movb %bh, -0x2(%rdx,%rax)
movq -0xa18(%rbp), %rax
movq 0x10(%rax), %rax
movl 0x744(%r14), %ecx
addl $-0x4, %ecx
movb (%rax,%rcx), %al
movb %al, (%r15,%rcx)
cmpb $0x0, 0x7e7(%r14)
je 0x5854b
leaq -0xb08(%rbp), %r14
movq %r14, %rdi
xorl %esi, %esi
callq 0x56eb4
negb %al
movl $0x0, %r15d
sbbl %r15d, %r15d
orl $0x2, %r15d
movq 0x10(%r14), %rbx
jmp 0x58554
movl $0xffffffff, %eax # imm = 0xFFFFFFFF
jmp 0x585e5
movq %r15, %rbx
movl $0x2, %r15d
movl %r12d, %edi
addq %rbx, %rdi
movq -0xa28(%rbp), %r14
movl 0x7bc(%r14), %edx
subl %r12d, %edx
xorl %esi, %esi
callq 0x292b0
movq -0xa80(%rbp), %rax
movl 0xc(%rax), %esi
leaq -0xb08(%rbp), %rdi
movl $0x3, %edx
callq 0x6fbed
negb %al
movl $0x0, %eax
sbbl %eax, %eax
orl %r15d, %eax
cmpb $0x0, 0x7e7(%r14)
je 0x585e5
movl 0x10(%rbp), %r9d
xorl %ebx, %ebx
movq -0xa18(%rbp), %rdi
movl -0xa4c(%rbp), %esi
movq -0xa90(%rbp), %rdx
movq %rax, %r14
movq -0xa98(%rbp), %rcx
movl -0xa50(%rbp), %r8d
pushq %rbx
pushq %rbx
pushq $0x0
pushq %rbx
callq 0x58723
addq $0x20, %rsp
negb %al
sbbl %ebx, %ebx
orl %r14d, %ebx
movl %ebx, %eax
movq %fs:0x28, %rcx
cmpq -0x30(%rbp), %rcx
jne 0x58606
addq $0xaf8, %rsp # imm = 0xAF8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
callq 0x29260
| _ma_split_page:
push rbp
mov rbp, rsp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 0AF8h
mov [rbp+var_A50], r9d
mov [rbp+var_A98], r8
mov [rbp+var_A4C], ecx
mov r12, rdx
mov rdx, rdi
mov rdi, [rbp+arg_8]
mov rax, fs:28h
mov [rbp+var_30], rax
lea rax, [rbp+var_B20]
mov [rbp+var_A80], rax
mov r15, [rdx]
mov [rbp+var_AA0], rsi
mov r14, [rsi+8]
mov word ptr [rdx+684h], 101h
mov ecx, [r12+28h]
mov r8d, [r12+2Ch]
mov eax, [r15+744h]
mov [rbp+var_AB0], rcx
add eax, ecx
mov [rbp+var_A2C], eax
mov [rbp+var_B08], rdx
mov [rbp+var_AA8], rdx
mov rax, [rdx+378h]
mov [rbp+var_A78], rax
mov [rbp+var_AF8], rax
mov [rbp+var_B00], r14
mov [rbp+var_A70], rdi
mov [rbp+var_A68], r14
cmp [rbp+arg_10], 0
mov [rbp+var_A28], r15
mov [rbp+var_A18], r12
mov [rbp+var_A1C], r8d
jz loc_581E8
mov r13, [r12]
mov rsi, [r13+0]
mov edx, [rsi+744h]
mov eax, [r12+20h]
sub eax, edx
mov r15, [r12+10h]
add r15, rdx
mov [rbp+var_A38], r15
test byte ptr [r14+0A2h], 2Eh
setz r9b
test r8b, 2
setz cl
and cl, r9b
cmp cl, 1
jnz short loc_58206
movzx ecx, word ptr [r14+0AAh]
xor edx, edx
div ecx
add eax, 0FFFFFFFEh
imul eax, ecx
mov edx, [rsi+740h]
mov esi, ecx
sub esi, edx
mov dword ptr [rbp+var_A60], esi
mov rdx, [r13+0]
mov edx, [rdx+740h]
mov dword ptr [rbp+var_A60+4], edx
mov [rbp+var_A58], 0
add r15, rax
lea rax, [r15+rcx]
mov [rbp+var_A48], rax
mov rsi, r15
mov rdx, rcx
call _memcpy
mov rbx, r15
jmp loc_582DA
loc_581E8:
lea rdi, [rbp+var_A70]
lea rdx, [rbp+var_A48]
mov rsi, r12
call _ma_find_half_pos
mov rbx, rax
jmp loc_5830E
loc_58206:
mov r12d, eax
mov rbx, rdx
lea rax, [rbp+var_A10]
lea rdi, [rbp+var_AD0]
mov [rdi], rax
mov [rdi+8], r14
mov byte ptr [rax], 0
lea rcx, [rbp+var_A38]
mov esi, r8d
xor edx, edx
call qword ptr [r14+0E0h]
test eax, eax
jz loc_582CB
mov [rbp+var_A40], r13
mov r13, r14
mov r14d, [rbp+var_A1C]
mov r12d, r12d
add r12, r15
sub r12, rbx
lea rcx, [rbp+var_A38]
mov rcx, [rcx]
loc_58263:
mov rbx, r15
mov r15, rcx
mov rcx, [rbp+var_AC0]
mov [rbp+var_A60], rcx
mov ecx, [rbp+var_AB8]
mov [rbp+var_A58], ecx
mov rdi, [rbp+var_A70]
mov edx, eax
lea rsi, [rbp+var_A10]
call _memcpy
lea rdi, [rbp+var_AD0]
mov esi, r14d
xor edx, edx
lea rcx, [rbp+var_A38]
call qword ptr [r13+0E0h]
test eax, eax
jz short loc_582EA
mov rcx, [rbp+var_A38]
cmp rcx, r12
jb short loc_58263
mov [rbp+var_A48], r15
jmp short loc_582FD
loc_582CB:
mov rdi, r13
mov esi, 7Eh ; '~'
call _ma_set_fatal_error
xor ebx, ebx
loc_582DA:
mov r12, [rbp+var_A18]
mov r15, [rbp+var_A28]
jmp short loc_5830E
loc_582EA:
mov rdi, [rbp+var_A40]
mov esi, 7Eh ; '~'
call _ma_set_fatal_error
xor ebx, ebx
loc_582FD:
mov r12, [rbp+var_A18]
mov r15, [rbp+var_A28]
mov r14, r13
loc_5830E:
mov eax, 0FFFFFFFFh
test rbx, rbx
jz loc_585E5
mov [rbp+var_A40], r14
mov r14d, dword ptr [rbp+var_A60+4]
add r14d, dword ptr [rbp+var_A60]
mov rax, [r12+10h]
sub rbx, rax
mov r13d, [r12+20h]
mov [r12+20h], ebx
mov ecx, [r15+744h]
mov [rax+rcx-1], bl
mov rax, [r12+10h]
mov ecx, [r15+744h]
mov [rbp+var_A90], rbx
mov [rax+rcx-2], bh
mov rsi, [rbp+var_A48]
mov [rbp+var_AD0], rsi
mov r12, [rbp+var_AB0]
test r12, r12
jz short loc_58398
sub rsi, r12
mov edi, [r15+744h]
add rdi, [rbp+var_A78]
mov rdx, r12
call _memcpy
loc_58398:
lea rdx, [rbp+var_A80]
mov r15, [rbp+var_AA8]
mov rdi, r15
mov esi, 6
call _ma_new
mov [rbp+var_AF0], rax
cmp rax, 0FFFFFFFFFFFFFFFFh
jz loc_58541
mov rbx, rax
mov [rbp+var_A88], r13
lea rsi, [rbp+var_A70]
mov r13, [rbp+var_AA0]
mov rdi, r13
call _ma_copy_key
mov esi, r14d
add rsi, [r13+0]
mov rdi, r15
mov rdx, rbx
call _ma_kpointer
lea rcx, [rbp+var_AD0]
lea rdi, [rbp+var_A70]
mov esi, [rbp+var_A1C]
mov edx, r12d
mov r14, [rbp+var_A40]
call qword ptr [r14+0E0h]
test eax, eax
mov eax, 0FFFFFFFFh
jz loc_585E5
lea rdi, [rbp+var_A70]
lea r9, [rbp+var_A10]
mov esi, r12d
xor edx, edx
xor ecx, ecx
xor r8d, r8d
call qword ptr [r14+0F0h]
mov r13, [rbp+var_A88]
mov rcx, [rbp+var_A18]
add r13, [rcx+10h]
mov ebx, eax
mov rsi, [rbp+var_AD0]
sub r13, rsi
mov r12d, [rbp+var_A2C]
mov r15, [rbp+var_A78]
add r12, r15
mov edi, eax
add rdi, r12
mov edx, r13d
call _memcpy
mov rdi, r14
mov rsi, r12
lea rdx, [rbp+var_A10]
call qword ptr [r14+0F8h]
add ebx, [rbp+var_A2C]
add ebx, r13d
mov r14, [rbp+var_A28]
mov edx, [r14+744h]
mov rdi, r15
xor esi, esi
call _memset
mov ecx, [rbp+var_A1C]
mov [rbp+var_ADC], ecx
mov [rbp+var_AE8], ebx
mov eax, [r14+744h]
add eax, 0FFFFFFFDh
mov rdx, r15
mov [r15+rax], cl
mov eax, [r14+744h]
mov [r15+rax-1], bl
mov eax, [r14+744h]
mov r12d, ebx
mov [rdx+rax-2], bh
mov rax, [rbp+var_A18]
mov rax, [rax+10h]
mov ecx, [r14+744h]
add ecx, 0FFFFFFFCh
mov al, [rax+rcx]
mov [r15+rcx], al
cmp byte ptr [r14+7E7h], 0
jz short loc_5854B
lea r14, [rbp+var_B08]
mov rdi, r14
xor esi, esi
call _ma_log_new
neg al
mov r15d, 0
sbb r15d, r15d
or r15d, 2
mov rbx, [r14+10h]
jmp short loc_58554
loc_58541:
mov eax, 0FFFFFFFFh
jmp loc_585E5
loc_5854B:
mov rbx, r15
mov r15d, 2
loc_58554:
mov edi, r12d
add rdi, rbx
mov r14, [rbp+var_A28]
mov edx, [r14+7BCh]
sub edx, r12d
xor esi, esi
call _memset
mov rax, [rbp+var_A80]
mov esi, [rax+0Ch]
lea rdi, [rbp+var_B08]
mov edx, 3
call _ma_write_keypage
neg al
mov eax, 0
sbb eax, eax
or eax, r15d
cmp byte ptr [r14+7E7h], 0
jz short loc_585E5
mov r9d, [rbp+arg_0]
xor ebx, ebx
mov rdi, [rbp+var_A18]
mov esi, [rbp+var_A4C]
mov rdx, [rbp+var_A90]
mov r14, rax
mov rcx, [rbp+var_A98]
mov r8d, [rbp+var_A50]
push rbx
push rbx
push 0
push rbx
call _ma_log_split
add rsp, 20h
neg al
sbb ebx, ebx
or ebx, r14d
mov eax, ebx
loc_585E5:
mov rcx, fs:28h
cmp rcx, [rbp+var_30]
jnz short loc_58606
add rsp, 0AF8h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
loc_58606:
call ___stack_chk_fail
| long long ma_split_page(
long long a1,
long long a2,
long long **a3,
int a4,
long long a5,
int a6,
int a7,
long long a8,
char a9)
{
long long **v9; // r12
long long v10; // r15
long long v11; // r14
unsigned int v12; // r8d
int v13; // eax
long long *v14; // r13
long long v15; // rsi
long long v16; // rdx
unsigned int v17; // eax
long long v18; // r15
long long v19; // rcx
long long v20; // rax
long long v21; // r15
long long half_pos; // rbx
unsigned int v23; // r12d
long long v24; // rbx
unsigned int v25; // eax
long long v26; // rdx
long long v27; // rcx
long long v28; // r8
int v29; // r9d
long long v30; // r13
unsigned int v31; // r14d
unsigned long long v32; // r12
long long v33; // rcx
long long v34; // rdx
long long v35; // rcx
long long v36; // r8
int v37; // r9d
long long result; // rax
unsigned int v39; // r14d
long long *v40; // rax
long long v41; // rbx
long long v42; // r13
long long *v43; // rax
long long v44; // rcx
unsigned int v45; // r12d
long long v46; // r15
_QWORD *v47; // r13
long long *v48; // r14
bool v49; // zf
long long v50; // rbx
long long v51; // r13
long long v52; // r15
long long v53; // r12
long long v54; // r14
unsigned int v55; // r12d
int v56; // r15d
long long v57; // rbx
long long v58; // r14
char v59; // [rsp+0h] [rbp-B20h] BYREF
long long *v60[2]; // [rsp+18h] [rbp-B08h] BYREF
long long v61; // [rsp+28h] [rbp-AF8h]
long long v62; // [rsp+30h] [rbp-AF0h]
int v63; // [rsp+38h] [rbp-AE8h]
unsigned int v64; // [rsp+44h] [rbp-ADCh]
_QWORD v65[3]; // [rsp+50h] [rbp-AD0h] BYREF
int v66; // [rsp+68h] [rbp-AB8h]
long long v67; // [rsp+70h] [rbp-AB0h]
long long v68; // [rsp+78h] [rbp-AA8h]
_QWORD *v69; // [rsp+80h] [rbp-AA0h]
long long v70; // [rsp+88h] [rbp-A98h]
long long v71; // [rsp+90h] [rbp-A90h]
long long v72; // [rsp+98h] [rbp-A88h]
char *v73; // [rsp+A0h] [rbp-A80h] BYREF
long long v74; // [rsp+A8h] [rbp-A78h]
_QWORD v75[2]; // [rsp+B0h] [rbp-A70h] BYREF
long long v76; // [rsp+C0h] [rbp-A60h]
int v77; // [rsp+C8h] [rbp-A58h]
int v78; // [rsp+D0h] [rbp-A50h]
int v79; // [rsp+D4h] [rbp-A4Ch]
long long v80; // [rsp+D8h] [rbp-A48h] BYREF
long long *v81; // [rsp+E0h] [rbp-A40h]
unsigned long long v82; // [rsp+E8h] [rbp-A38h] BYREF
unsigned int v83; // [rsp+F4h] [rbp-A2Ch]
long long v84; // [rsp+F8h] [rbp-A28h]
unsigned int v85; // [rsp+104h] [rbp-A1Ch]
long long **v86; // [rsp+108h] [rbp-A18h]
_BYTE v87[2528]; // [rsp+110h] [rbp-A10h] BYREF
unsigned long long v88; // [rsp+AF0h] [rbp-30h]
v78 = a6;
v70 = a5;
v79 = a4;
v9 = a3;
v88 = __readfsqword(0x28u);
v73 = &v59;
v10 = *(_QWORD *)a1;
v69 = (_QWORD *)a2;
v11 = *(_QWORD *)(a2 + 8);
*(_WORD *)(a1 + 1668) = 257;
v12 = *((_DWORD *)a3 + 11);
v13 = *(_DWORD *)(v10 + 1860);
v67 = *((unsigned int *)a3 + 10);
v83 = v67 + v13;
v60[0] = (long long *)a1;
v68 = a1;
v74 = *(_QWORD *)(a1 + 888);
v61 = v74;
v60[1] = (long long *)v11;
v75[0] = a8;
v75[1] = v11;
v84 = v10;
v86 = a3;
v85 = v12;
if ( !a9 )
{
half_pos = ma_find_half_pos(v75, a3, &v80);
goto LABEL_14;
}
v14 = *a3;
v15 = **a3;
v16 = *(unsigned int *)(v15 + 1860);
v17 = *((_DWORD *)v9 + 8) - v16;
v18 = (long long)v9[2] + v16;
v82 = v18;
if ( (*(_BYTE *)(v11 + 162) & 0x2E) == 0 && (v12 & 2) == 0 )
{
v19 = *(unsigned __int16 *)(v11 + 170);
v20 = (unsigned int)v19 * (v17 / *(unsigned __int16 *)(v11 + 170) - 2);
LODWORD(v76) = *(unsigned __int16 *)(v11 + 170) - *(_DWORD *)(v15 + 1856);
HIDWORD(v76) = *(_DWORD *)(*v14 + 1856);
v77 = 0;
v21 = v20 + v18;
v80 = v21 + v19;
memcpy(a8, v21, v19);
half_pos = v21;
LABEL_11:
v9 = v86;
v10 = v84;
goto LABEL_14;
}
v23 = v17;
v24 = v16;
v65[0] = v87;
v65[1] = v11;
v87[0] = 0;
v25 = (*(long long ( **)(_QWORD *, _QWORD, _QWORD, unsigned long long *))(v11 + 224))(v65, v12, 0LL, &v82);
if ( !v25 )
{
ma_set_fatal_error(v14, 126, v26, v27, v28, v29);
half_pos = 0LL;
goto LABEL_11;
}
v81 = v14;
v30 = v11;
v31 = v85;
v32 = v18 + v23 - v24;
v33 = v82;
while ( 1 )
{
half_pos = v18;
v18 = v33;
v76 = v65[2];
v77 = v66;
memcpy(v75[0], v87, v25);
v25 = (*(long long ( **)(_QWORD *, _QWORD, _QWORD, unsigned long long *))(v30 + 224))(v65, v31, 0LL, &v82);
if ( !v25 )
break;
v33 = v82;
if ( v82 >= v32 )
{
v80 = v18;
goto LABEL_13;
}
}
ma_set_fatal_error(v81, 126, v34, v35, v36, v37);
half_pos = 0LL;
LABEL_13:
v9 = v86;
v10 = v84;
v11 = v30;
LABEL_14:
result = 0xFFFFFFFFLL;
if ( half_pos )
{
v81 = (long long *)v11;
v39 = v76 + HIDWORD(v76);
v40 = v9[2];
v41 = half_pos - (_QWORD)v40;
v42 = *((unsigned int *)v9 + 8);
*((_DWORD *)v9 + 8) = v41;
*((_BYTE *)v40 + *(unsigned int *)(v10 + 1860) - 1) = v41;
v43 = v9[2];
v44 = *(unsigned int *)(v10 + 1860);
v71 = v41;
*((_BYTE *)v43 + v44 - 2) = BYTE1(v41);
v65[0] = v80;
v45 = v67;
if ( v67 )
memcpy(v74 + *(unsigned int *)(v10 + 1860), v80 - v67, v67);
v46 = v68;
v62 = ma_new(v68, 6LL, &v73);
if ( v62 == -1 )
{
return 0xFFFFFFFFLL;
}
else
{
v72 = v42;
v47 = v69;
ma_copy_key((long long)v69, (long long)v75);
ma_kpointer(v46, *v47 + v39);
v48 = v81;
v49 = ((unsigned int ( *)(_QWORD *, _QWORD, _QWORD, _QWORD *))v81[28])(v75, v85, v45, v65) == 0;
result = 0xFFFFFFFFLL;
if ( !v49 )
{
v50 = ((unsigned int ( *)(_QWORD *, _QWORD, _QWORD, _QWORD, _QWORD, _BYTE *))v48[30])(
v75,
v45,
0LL,
0LL,
0LL,
v87);
v51 = (long long)v86[2] + v72 - v65[0];
v52 = v74;
v53 = v74 + v83;
memcpy(v53 + v50, v65[0], (unsigned int)(*((_DWORD *)v86 + 4) + v72 - LODWORD(v65[0])));
((void ( *)(long long *, long long, _BYTE *))v48[31])(v48, v53, v87);
LODWORD(v50) = v51 + v83 + v50;
v54 = v84;
memset(v52, 0LL, *(unsigned int *)(v84 + 1860));
v64 = v85;
v63 = v50;
*(_BYTE *)(v52 + (unsigned int)(*(_DWORD *)(v54 + 1860) - 3)) = v85;
*(_BYTE *)(v52 + *(unsigned int *)(v54 + 1860) - 1) = v50;
v55 = v50;
*(_BYTE *)(v52 + *(unsigned int *)(v54 + 1860) - 2) = BYTE1(v50);
*(_BYTE *)(v52 + (unsigned int)(*(_DWORD *)(v54 + 1860) - 4)) = *((_BYTE *)v86[2]
+ (unsigned int)(*(_DWORD *)(v54 + 1860) - 4));
if ( *(_BYTE *)(v54 + 2023) )
{
v56 = ma_log_new(v60, 0) ? -1 : 2;
v57 = v61;
}
else
{
v57 = v52;
v56 = 2;
}
v58 = v84;
memset(v57 + v55, 0LL, *(_DWORD *)(v84 + 1980) - v55);
result = v56 | (unsigned int)-((unsigned __int8)ma_write_keypage(v60, *((unsigned int *)v73 + 3), 3LL) != 0);
if ( *(_BYTE *)(v58 + 2023) )
return (unsigned __int8)ma_log_split((_DWORD)v86, v79, v71, v70, v78, a7, 0, 0LL, 0, 0) != 0
? -1
: (unsigned int)result;
}
}
}
return result;
}
| _ma_split_page:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0xaf8
MOV dword ptr [RBP + -0xa50],R9D
MOV qword ptr [RBP + -0xa98],R8
MOV dword ptr [RBP + -0xa4c],ECX
MOV R12,RDX
MOV RDX,RDI
MOV RDI,qword ptr [RBP + 0x18]
MOV RAX,qword ptr FS:[0x28]
MOV qword ptr [RBP + -0x30],RAX
LEA RAX,[RBP + -0xb20]
MOV qword ptr [RBP + -0xa80],RAX
MOV R15,qword ptr [RDX]
MOV qword ptr [RBP + -0xaa0],RSI
MOV R14,qword ptr [RSI + 0x8]
MOV word ptr [RDX + 0x684],0x101
MOV ECX,dword ptr [R12 + 0x28]
MOV R8D,dword ptr [R12 + 0x2c]
MOV EAX,dword ptr [R15 + 0x744]
MOV qword ptr [RBP + -0xab0],RCX
ADD EAX,ECX
MOV dword ptr [RBP + -0xa2c],EAX
MOV qword ptr [RBP + -0xb08],RDX
MOV qword ptr [RBP + -0xaa8],RDX
MOV RAX,qword ptr [RDX + 0x378]
MOV qword ptr [RBP + -0xa78],RAX
MOV qword ptr [RBP + -0xaf8],RAX
MOV qword ptr [RBP + -0xb00],R14
MOV qword ptr [RBP + -0xa70],RDI
MOV qword ptr [RBP + -0xa68],R14
CMP byte ptr [RBP + 0x20],0x0
MOV qword ptr [RBP + -0xa28],R15
MOV qword ptr [RBP + -0xa18],R12
MOV dword ptr [RBP + -0xa1c],R8D
JZ 0x001581e8
MOV R13,qword ptr [R12]
MOV RSI,qword ptr [R13]
MOV EDX,dword ptr [RSI + 0x744]
MOV EAX,dword ptr [R12 + 0x20]
SUB EAX,EDX
MOV R15,qword ptr [R12 + 0x10]
ADD R15,RDX
MOV qword ptr [RBP + -0xa38],R15
TEST byte ptr [R14 + 0xa2],0x2e
SETZ R9B
TEST R8B,0x2
SETZ CL
AND CL,R9B
CMP CL,0x1
JNZ 0x00158206
MOVZX ECX,word ptr [R14 + 0xaa]
XOR EDX,EDX
DIV ECX
ADD EAX,-0x2
IMUL EAX,ECX
MOV EDX,dword ptr [RSI + 0x740]
MOV ESI,ECX
SUB ESI,EDX
MOV dword ptr [RBP + -0xa60],ESI
MOV RDX,qword ptr [R13]
MOV EDX,dword ptr [RDX + 0x740]
MOV dword ptr [RBP + -0xa5c],EDX
MOV dword ptr [RBP + -0xa58],0x0
ADD R15,RAX
LEA RAX,[R15 + RCX*0x1]
MOV qword ptr [RBP + -0xa48],RAX
MOV RSI,R15
MOV RDX,RCX
CALL 0x00129080
MOV RBX,R15
JMP 0x001582da
LAB_001581e8:
LEA RDI,[RBP + -0xa70]
LEA RDX,[RBP + -0xa48]
MOV RSI,R12
CALL 0x0015860b
MOV RBX,RAX
JMP 0x0015830e
LAB_00158206:
MOV R12D,EAX
MOV RBX,RDX
LEA RAX,[RBP + -0xa10]
LEA RDI,[RBP + -0xad0]
MOV qword ptr [RDI],RAX
MOV qword ptr [RDI + 0x8],R14
MOV byte ptr [RAX],0x0
LEA RCX,[RBP + -0xa38]
MOV ESI,R8D
XOR EDX,EDX
CALL qword ptr [R14 + 0xe0]
TEST EAX,EAX
JZ 0x001582cb
MOV qword ptr [RBP + -0xa40],R13
MOV R13,R14
MOV R14D,dword ptr [RBP + -0xa1c]
MOV R12D,R12D
ADD R12,R15
SUB R12,RBX
LEA RCX,[RBP + -0xa38]
MOV RCX,qword ptr [RCX]
LAB_00158263:
MOV RBX,R15
MOV R15,RCX
MOV RCX,qword ptr [RBP + -0xac0]
MOV qword ptr [RBP + -0xa60],RCX
MOV ECX,dword ptr [RBP + -0xab8]
MOV dword ptr [RBP + -0xa58],ECX
MOV RDI,qword ptr [RBP + -0xa70]
MOV EDX,EAX
LEA RSI,[RBP + -0xa10]
CALL 0x00129080
LEA RDI,[RBP + -0xad0]
MOV ESI,R14D
XOR EDX,EDX
LEA RCX,[RBP + -0xa38]
CALL qword ptr [R13 + 0xe0]
TEST EAX,EAX
JZ 0x001582ea
MOV RCX,qword ptr [RBP + -0xa38]
CMP RCX,R12
JC 0x00158263
MOV qword ptr [RBP + -0xa48],R15
JMP 0x001582fd
LAB_001582cb:
MOV RDI,R13
MOV ESI,0x7e
CALL 0x001405a4
XOR EBX,EBX
LAB_001582da:
MOV R12,qword ptr [RBP + -0xa18]
MOV R15,qword ptr [RBP + -0xa28]
JMP 0x0015830e
LAB_001582ea:
MOV RDI,qword ptr [RBP + -0xa40]
MOV ESI,0x7e
CALL 0x001405a4
XOR EBX,EBX
LAB_001582fd:
MOV R12,qword ptr [RBP + -0xa18]
MOV R15,qword ptr [RBP + -0xa28]
MOV R14,R13
LAB_0015830e:
MOV EAX,0xffffffff
TEST RBX,RBX
JZ 0x001585e5
MOV qword ptr [RBP + -0xa40],R14
MOV R14D,dword ptr [RBP + -0xa5c]
ADD R14D,dword ptr [RBP + -0xa60]
MOV RAX,qword ptr [R12 + 0x10]
SUB RBX,RAX
MOV R13D,dword ptr [R12 + 0x20]
MOV dword ptr [R12 + 0x20],EBX
MOV ECX,dword ptr [R15 + 0x744]
MOV byte ptr [RAX + RCX*0x1 + -0x1],BL
MOV RAX,qword ptr [R12 + 0x10]
MOV ECX,dword ptr [R15 + 0x744]
MOV qword ptr [RBP + -0xa90],RBX
MOV byte ptr [RAX + RCX*0x1 + -0x2],BH
MOV RSI,qword ptr [RBP + -0xa48]
MOV qword ptr [RBP + -0xad0],RSI
MOV R12,qword ptr [RBP + -0xab0]
TEST R12,R12
JZ 0x00158398
SUB RSI,R12
MOV EDI,dword ptr [R15 + 0x744]
ADD RDI,qword ptr [RBP + -0xa78]
MOV RDX,R12
CALL 0x00129080
LAB_00158398:
LEA RDX,[RBP + -0xa80]
MOV R15,qword ptr [RBP + -0xaa8]
MOV RDI,R15
MOV ESI,0x6
CALL 0x0016fed7
MOV qword ptr [RBP + -0xaf0],RAX
CMP RAX,-0x1
JZ 0x00158541
MOV RBX,RAX
MOV qword ptr [RBP + -0xa88],R13
LEA RSI,[RBP + -0xa70]
MOV R13,qword ptr [RBP + -0xaa0]
MOV RDI,R13
CALL 0x00142664
MOV ESI,R14D
ADD RSI,qword ptr [R13]
MOV RDI,R15
MOV RDX,RBX
CALL 0x0016db6d
LEA RCX,[RBP + -0xad0]
LEA RDI,[RBP + -0xa70]
MOV ESI,dword ptr [RBP + -0xa1c]
MOV EDX,R12D
MOV R14,qword ptr [RBP + -0xa40]
CALL qword ptr [R14 + 0xe0]
TEST EAX,EAX
MOV EAX,0xffffffff
JZ 0x001585e5
LEA RDI,[RBP + -0xa70]
LEA R9,[RBP + -0xa10]
MOV ESI,R12D
XOR EDX,EDX
XOR ECX,ECX
XOR R8D,R8D
CALL qword ptr [R14 + 0xf0]
MOV R13,qword ptr [RBP + -0xa88]
MOV RCX,qword ptr [RBP + -0xa18]
ADD R13,qword ptr [RCX + 0x10]
MOV EBX,EAX
MOV RSI,qword ptr [RBP + -0xad0]
SUB R13,RSI
MOV R12D,dword ptr [RBP + -0xa2c]
MOV R15,qword ptr [RBP + -0xa78]
ADD R12,R15
MOV EDI,EAX
ADD RDI,R12
MOV EDX,R13D
CALL 0x00129080
MOV RDI,R14
MOV RSI,R12
LEA RDX,[RBP + -0xa10]
CALL qword ptr [R14 + 0xf8]
ADD EBX,dword ptr [RBP + -0xa2c]
ADD EBX,R13D
MOV R14,qword ptr [RBP + -0xa28]
MOV EDX,dword ptr [R14 + 0x744]
MOV RDI,R15
XOR ESI,ESI
CALL 0x001292b0
MOV ECX,dword ptr [RBP + -0xa1c]
MOV dword ptr [RBP + -0xadc],ECX
MOV dword ptr [RBP + -0xae8],EBX
MOV EAX,dword ptr [R14 + 0x744]
ADD EAX,-0x3
MOV RDX,R15
MOV byte ptr [R15 + RAX*0x1],CL
MOV EAX,dword ptr [R14 + 0x744]
MOV byte ptr [R15 + RAX*0x1 + -0x1],BL
MOV EAX,dword ptr [R14 + 0x744]
MOV R12D,EBX
MOV byte ptr [RDX + RAX*0x1 + -0x2],BH
MOV RAX,qword ptr [RBP + -0xa18]
MOV RAX,qword ptr [RAX + 0x10]
MOV ECX,dword ptr [R14 + 0x744]
ADD ECX,-0x4
MOV AL,byte ptr [RAX + RCX*0x1]
MOV byte ptr [R15 + RCX*0x1],AL
CMP byte ptr [R14 + 0x7e7],0x0
JZ 0x0015854b
LEA R14,[RBP + -0xb08]
MOV RDI,R14
XOR ESI,ESI
CALL 0x00156eb4
NEG AL
MOV R15D,0x0
SBB R15D,R15D
OR R15D,0x2
MOV RBX,qword ptr [R14 + 0x10]
JMP 0x00158554
LAB_00158541:
MOV EAX,0xffffffff
JMP 0x001585e5
LAB_0015854b:
MOV RBX,R15
MOV R15D,0x2
LAB_00158554:
MOV EDI,R12D
ADD RDI,RBX
MOV R14,qword ptr [RBP + -0xa28]
MOV EDX,dword ptr [R14 + 0x7bc]
SUB EDX,R12D
XOR ESI,ESI
CALL 0x001292b0
MOV RAX,qword ptr [RBP + -0xa80]
MOV ESI,dword ptr [RAX + 0xc]
LEA RDI,[RBP + -0xb08]
MOV EDX,0x3
CALL 0x0016fbed
NEG AL
MOV EAX,0x0
SBB EAX,EAX
OR EAX,R15D
CMP byte ptr [R14 + 0x7e7],0x0
JZ 0x001585e5
MOV R9D,dword ptr [RBP + 0x10]
XOR EBX,EBX
MOV RDI,qword ptr [RBP + -0xa18]
MOV ESI,dword ptr [RBP + -0xa4c]
MOV RDX,qword ptr [RBP + -0xa90]
MOV R14,RAX
MOV RCX,qword ptr [RBP + -0xa98]
MOV R8D,dword ptr [RBP + -0xa50]
PUSH RBX
PUSH RBX
PUSH 0x0
PUSH RBX
CALL 0x00158723
ADD RSP,0x20
NEG AL
SBB EBX,EBX
OR EBX,R14D
MOV EAX,EBX
LAB_001585e5:
MOV RCX,qword ptr FS:[0x28]
CMP RCX,qword ptr [RBP + -0x30]
JNZ 0x00158606
ADD RSP,0xaf8
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
LAB_00158606:
CALL 0x00129260
|
uint _ma_split_page(long *param_1,long *param_2,long *param_3,int4 param_4,int8 param_5,
int4 param_6,int4 param_7,void *param_8,char param_9)
{
ushort uVar1;
long *plVar2;
long *plVar3;
uint uVar4;
int1 *puVar5;
char cVar6;
uint uVar7;
uint uVar8;
int iVar9;
uint uVar10;
long lVar11;
void *__s;
ulong uVar12;
int1 *puVar13;
int1 *__src;
long in_FS_OFFSET;
int1 local_b28 [24];
long *local_b10;
long *local_b08;
void *local_b00;
long local_af8;
uint local_af0;
uint local_ae4;
int1 *local_ad8;
long *local_ad0;
int8 local_ac8;
int4 local_ac0;
ulong local_ab8;
long *local_ab0;
long *local_aa8;
int8 local_aa0;
long local_a98;
ulong local_a90;
int1 *local_a88;
void *local_a80;
void *local_a78;
long *local_a70;
int8 local_a68;
int4 local_a60;
int4 local_a58;
int4 local_a54;
int1 *local_a50;
long *local_a48;
int1 *local_a40;
uint local_a34;
long local_a30;
uint local_a24;
long *local_a20;
int1 local_a18 [2528];
long local_38;
local_38 = *(long *)(in_FS_OFFSET + 0x28);
local_a88 = local_b28;
lVar11 = *param_1;
plVar2 = (long *)param_2[1];
*(int2 *)((long)param_1 + 0x684) = 0x101;
local_ab8 = (ulong)*(uint *)(param_3 + 5);
local_a24 = *(uint *)((long)param_3 + 0x2c);
local_a34 = *(int *)(lVar11 + 0x744) + *(uint *)(param_3 + 5);
local_b00 = (void *)param_1[0x6f];
local_a78 = param_8;
local_b10 = param_1;
local_b08 = plVar2;
local_ab0 = param_1;
local_aa8 = param_2;
local_aa0 = param_5;
local_a80 = local_b00;
local_a70 = plVar2;
local_a58 = param_6;
local_a54 = param_4;
local_a30 = lVar11;
local_a20 = param_3;
if (param_9 == '\0') {
__src = (int1 *)_ma_find_half_pos(&local_a78,param_3,&local_a50);
}
else {
plVar3 = (long *)*param_3;
uVar10 = *(uint *)(*plVar3 + 0x744);
uVar7 = (int)param_3[4] - uVar10;
puVar13 = (int1 *)(param_3[2] + (ulong)uVar10);
local_a40 = puVar13;
if ((local_a24 & 2) == 0 && (*(byte *)((long)plVar2 + 0xa2) & 0x2e) == 0) {
uVar1 = *(ushort *)((long)plVar2 + 0xaa);
local_a68 = CONCAT44(*(int4 *)(*plVar3 + 0x740),(uint)uVar1 - *(int *)(*plVar3 + 0x740))
;
local_a60 = 0;
__src = puVar13 + (uVar7 / uVar1 - 2) * (uint)uVar1;
local_a50 = __src + uVar1;
memcpy(param_8,__src,(ulong)uVar1);
param_3 = local_a20;
lVar11 = local_a30;
}
else {
local_ad8 = local_a18;
local_a18[0] = 0;
local_ad0 = plVar2;
uVar8 = (*(code *)plVar2[0x1c])(&local_ad8,local_a24,0,&local_a40);
uVar4 = local_a24;
if (uVar8 == 0) {
_ma_set_fatal_error(plVar3,0x7e);
__src = (int1 *)0x0;
param_3 = local_a20;
lVar11 = local_a30;
}
else {
puVar5 = puVar13;
local_a48 = plVar3;
do {
__src = puVar5;
puVar5 = local_a40;
local_a68 = local_ac8;
local_a60 = local_ac0;
memcpy(local_a78,local_a18,(ulong)uVar8);
uVar8 = (*(code *)plVar2[0x1c])(&local_ad8,uVar4,0,&local_a40);
if (uVar8 == 0) {
_ma_set_fatal_error(local_a48,0x7e);
__src = (int1 *)0x0;
param_3 = local_a20;
lVar11 = local_a30;
goto LAB_0015830e;
}
} while (local_a40 < puVar13 + ((ulong)uVar7 - (ulong)uVar10));
local_a50 = puVar5;
param_3 = local_a20;
lVar11 = local_a30;
}
}
}
LAB_0015830e:
uVar12 = local_ab8;
uVar10 = 0xffffffff;
if (__src != (int1 *)0x0) {
uVar7 = local_a68._4_4_ + (int)local_a68;
local_a98 = (long)__src - param_3[2];
uVar10 = *(uint *)(param_3 + 4);
*(int *)(param_3 + 4) = (int)local_a98;
*(char *)(param_3[2] + -1 + (ulong)*(uint *)(lVar11 + 0x744)) = (char)local_a98;
*(char *)(param_3[2] + -2 + (ulong)*(uint *)(lVar11 + 0x744)) = (char)((ulong)local_a98 >> 8);
local_ad8 = local_a50;
local_a48 = plVar2;
if (local_ab8 != 0) {
memcpy((void *)((ulong)*(uint *)(lVar11 + 0x744) + (long)local_a80),local_a50 + -local_ab8,
local_ab8);
}
plVar2 = local_ab0;
lVar11 = _ma_new(local_ab0,6,&local_a88);
plVar3 = local_aa8;
local_af8 = lVar11;
if (lVar11 == -1) {
uVar10 = 0xffffffff;
}
else {
local_a90 = (ulong)uVar10;
_ma_copy_key(local_aa8,&local_a78);
_ma_kpointer(plVar2,(ulong)uVar7 + *plVar3,lVar11);
plVar2 = local_a48;
iVar9 = (*(code *)local_a48[0x1c])(&local_a78,local_a24,uVar12 & 0xffffffff,&local_ad8);
uVar10 = 0xffffffff;
if (iVar9 != 0) {
uVar10 = (*(code *)plVar2[0x1e])(&local_a78,uVar12 & 0xffffffff,0,0,0,local_a18);
__s = local_a80;
uVar12 = (local_a90 + local_a20[2]) - (long)local_ad8;
lVar11 = (ulong)local_a34 + (long)local_a80;
memcpy((void *)((ulong)uVar10 + lVar11),local_ad8,uVar12 & 0xffffffff);
(*(code *)plVar2[0x1f])(plVar2,lVar11,local_a18);
lVar11 = local_a30;
uVar7 = uVar10 + local_a34 + (int)uVar12;
memset(__s,0,(ulong)*(uint *)(local_a30 + 0x744));
local_ae4 = local_a24;
*(char *)((long)__s + (ulong)(*(int *)(lVar11 + 0x744) - 3)) = (char)local_a24;
*(char *)((long)__s + ((ulong)*(uint *)(lVar11 + 0x744) - 1)) = (char)uVar7;
*(char *)((long)__s + ((ulong)*(uint *)(lVar11 + 0x744) - 2)) = (char)(uVar7 >> 8);
uVar12 = (ulong)(*(int *)(lVar11 + 0x744) - 4);
*(int1 *)((long)__s + uVar12) = *(int1 *)(local_a20[2] + uVar12);
local_af0 = uVar7;
if (*(char *)(lVar11 + 0x7e7) == '\0') {
uVar10 = 2;
}
else {
cVar6 = _ma_log_new(&local_b10);
uVar10 = -(uint)(cVar6 != '\0') | 2;
__s = local_b00;
}
lVar11 = local_a30;
memset((void *)((ulong)uVar7 + (long)__s),0,(ulong)(*(int *)(local_a30 + 0x7bc) - uVar7));
cVar6 = _ma_write_keypage(&local_b10,*(int4 *)(local_a88 + 0xc),3);
uVar10 = -(uint)(cVar6 != '\0') | uVar10;
if (*(char *)(lVar11 + 0x7e7) != '\0') {
cVar6 = _ma_log_split(local_a20,local_a54,local_a98,local_aa0,local_a58,param_7,0,0,0,0);
uVar10 = -(uint)(cVar6 != '\0') | uVar10;
}
}
}
}
if (*(long *)(in_FS_OFFSET + 0x28) != local_38) {
/* WARNING: Subroutine does not return */
__stack_chk_fail();
}
return uVar10;
}
| |
42,259 | ft_init_stopwords | eloqsql/storage/myisam/ft_stopwords.c | int ft_init_stopwords()
{
DBUG_ENTER("ft_init_stopwords");
if (!stopwords3)
{
if (!(stopwords3=(TREE *)my_malloc(mi_key_memory_ft_stopwords,
sizeof(TREE), MYF(0))))
DBUG_RETURN(-1);
init_tree(stopwords3,0,0,sizeof(FT_STOPWORD),(qsort_cmp2)&FT_STOPWORD_cmp,
(ft_stopword_file ? (tree_element_free)&FT_STOPWORD_free : 0),
NULL, MYF(0));
/*
Stopword engine currently does not support tricky
character sets UCS2, UTF16, UTF32.
Use latin1 to compare stopwords in case of these character sets.
It's also fine to use latin1 with the built-in stopwords.
*/
ft_stopword_cs= default_charset_info->mbminlen == 1 ?
default_charset_info : &my_charset_latin1;
}
if (ft_stopword_file)
{
File fd;
size_t len;
uchar *buffer, *start, *end;
FT_WORD w;
int error=-1;
if (!*ft_stopword_file)
DBUG_RETURN(0);
if ((fd=my_open(ft_stopword_file, O_RDONLY, MYF(MY_WME))) == -1)
DBUG_RETURN(-1);
len=(size_t)my_seek(fd, 0L, MY_SEEK_END, MYF(0));
my_seek(fd, 0L, MY_SEEK_SET, MYF(0));
if (!(start= buffer= my_malloc(mi_key_memory_ft_stopwords, len+1,
MYF(MY_WME))))
goto err0;
len=my_read(fd, buffer, len, MYF(MY_WME));
end=start+len;
while (ft_simple_get_word(ft_stopword_cs, &start, end, &w, TRUE))
{
if (ft_add_stopword(my_strndup(mi_key_memory_ft_stopwords,
(char*) w.pos, w.len, MYF(0))))
goto err1;
}
error=0;
err1:
my_free(buffer);
err0:
my_close(fd, MYF(MY_WME));
DBUG_RETURN(error);
}
else
{
/* compatibility mode: to be removed */
char **sws=(char **)ft_precompiled_stopwords;
for (;*sws;sws++)
{
if (ft_add_stopword(*sws))
DBUG_RETURN(-1);
}
ft_stopword_file="(built-in)"; /* for SHOW VARIABLES */
}
DBUG_RETURN(0);
} | O3 | c | ft_init_stopwords:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x48, %rsp
cmpq $0x0, 0xb8e48b(%rip) # 0xbff940
jne 0x71534
leaq 0xb8e4ce(%rip), %rax # 0xbff98c
movl (%rax), %edi
movl $0x298, %esi # imm = 0x298
xorl %edx, %edx
callq 0x9fc99
movq %rax, 0xb8e46d(%rip) # 0xbff940
testq %rax, %rax
je 0x71666
leaq 0xb8e455(%rip), %rcx # 0xbff938
movq (%rcx), %rcx
testq %rcx, %rcx
leaq 0x1cb(%rip), %r9 # 0x716bb
cmoveq %rcx, %r9
xorps %xmm0, %xmm0
movups %xmm0, (%rsp)
leaq 0x191(%rip), %r8 # 0x71693
movq %rax, %rdi
xorl %esi, %esi
xorl %edx, %edx
movl $0x10, %ecx
callq 0xa4528
leaq 0x3141de(%rip), %rax # 0x3856f8
movq (%rax), %rax
cmpl $0x1, 0x98(%rax)
je 0x7152d
leaq 0x33a9f3(%rip), %rax # 0x3abf20
movq %rax, 0xb8e414(%rip) # 0xbff948
leaq 0xb8e3fd(%rip), %rbx # 0xbff938
movq (%rbx), %rdi
testq %rdi, %rdi
je 0x7162f
cmpb $0x0, (%rdi)
je 0x71661
movl $0x10, %edx
xorl %esi, %esi
callq 0xa02c8
cmpl $-0x1, %eax
je 0x71666
movl %eax, %r12d
movl %eax, %edi
xorl %esi, %esi
movl $0x2, %edx
xorl %ecx, %ecx
callq 0xa0a88
movq %rax, %rbx
movl %r12d, %edi
xorl %esi, %esi
xorl %edx, %edx
xorl %ecx, %ecx
callq 0xa0a88
leaq 0xb8e3fc(%rip), %r15 # 0xbff98c
movl (%r15), %edi
leaq 0x1(%rbx), %rsi
movl $0x10, %edx
callq 0x9fc99
movq %rax, -0x40(%rbp)
testq %rax, %rax
je 0x7166e
movq %rax, %r14
movl $0x10, %ecx
movl %r12d, -0x2c(%rbp)
movl %r12d, %edi
movq %rax, %rsi
movq %rbx, %rdx
callq 0xa0888
movq %rax, %r12
movq %r14, -0x38(%rbp)
addq %r14, %r12
leaq -0x40(%rbp), %r13
leaq -0x58(%rbp), %rbx
xorl %r14d, %r14d
movq 0xb8e364(%rip), %rdi # 0xbff948
movq %r13, %rsi
movq %r12, %rdx
movq %rbx, %rcx
movl $0x1, %r8d
callq 0x73ac5
testb %al, %al
je 0x71620
movl (%r15), %edi
movq -0x58(%rbp), %rsi
movq -0x48(%rbp), %rdx
xorl %ecx, %ecx
callq 0x9ffb0
movq %rax, %rdi
callq 0x716d0
testl %eax, %eax
je 0x715dd
movl $0xffffffff, %r14d # imm = 0xFFFFFFFF
movq -0x38(%rbp), %rdi
callq 0x9fec6
movl -0x2c(%rbp), %r12d
jmp 0x71674
leaq 0x312bca(%rip), %r14 # 0x384200
movq (%r14), %rdi
testq %rdi, %rdi
je 0x71657
addq $0x8, %r14
callq 0x716d0
testl %eax, %eax
jne 0x71666
movq (%r14), %rdi
addq $0x8, %r14
testq %rdi, %rdi
jne 0x71642
leaq 0x6a267(%rip), %rax # 0xdb8c5
movq %rax, (%rbx)
xorl %r14d, %r14d
jmp 0x71681
movl $0xffffffff, %r14d # imm = 0xFFFFFFFF
jmp 0x71681
movl $0xffffffff, %r14d # imm = 0xFFFFFFFF
movl $0x10, %esi
movl %r12d, %edi
callq 0xa046d
movl %r14d, %eax
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
| ft_init_stopwords:
push rbp
mov rbp, rsp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 48h
cmp cs:stopwords3, 0
jnz short loc_71534
lea rax, mi_key_memory_ft_stopwords
mov edi, [rax]
mov esi, 298h
xor edx, edx
call my_malloc
mov cs:stopwords3, rax
test rax, rax
jz loc_71666
lea rcx, ft_stopword_file
mov rcx, [rcx]
test rcx, rcx
lea r9, FT_STOPWORD_free
cmovz r9, rcx
xorps xmm0, xmm0
movups [rsp+70h+var_70], xmm0
lea r8, FT_STOPWORD_cmp
mov rdi, rax
xor esi, esi
xor edx, edx
mov ecx, 10h
call init_tree
lea rax, default_charset_info
mov rax, [rax]
cmp dword ptr [rax+98h], 1
jz short loc_7152D
lea rax, my_charset_latin1
loc_7152D:
mov cs:ft_stopword_cs, rax
loc_71534:
lea rbx, ft_stopword_file
mov rdi, [rbx]
test rdi, rdi
jz loc_7162F
cmp byte ptr [rdi], 0
jz loc_71661
mov edx, 10h
xor esi, esi
call my_open
cmp eax, 0FFFFFFFFh
jz loc_71666
mov r12d, eax
mov edi, eax
xor esi, esi
mov edx, 2
xor ecx, ecx
call my_seek
mov rbx, rax
mov edi, r12d
xor esi, esi
xor edx, edx
xor ecx, ecx
call my_seek
lea r15, mi_key_memory_ft_stopwords
mov edi, [r15]
lea rsi, [rbx+1]
mov edx, 10h
call my_malloc
mov [rbp+var_40], rax
test rax, rax
jz loc_7166E
mov r14, rax
mov ecx, 10h
mov [rbp+var_2C], r12d
mov edi, r12d
mov rsi, rax
mov rdx, rbx
call my_read
mov r12, rax
mov [rbp+var_38], r14
add r12, r14
lea r13, [rbp+var_40]
lea rbx, [rbp+var_58]
xor r14d, r14d
loc_715DD:
mov rdi, cs:ft_stopword_cs
mov rsi, r13
mov rdx, r12
mov rcx, rbx
mov r8d, 1
call ft_simple_get_word
test al, al
jz short loc_71620
mov edi, [r15]
mov rsi, [rbp+var_58]
mov rdx, [rbp+var_48]
xor ecx, ecx
call my_strndup
mov rdi, rax
call ft_add_stopword
test eax, eax
jz short loc_715DD
mov r14d, 0FFFFFFFFh
loc_71620:
mov rdi, [rbp+var_38]
call my_free
mov r12d, [rbp+var_2C]
jmp short loc_71674
loc_7162F:
lea r14, ft_precompiled_stopwords
mov rdi, [r14]
test rdi, rdi
jz short loc_71657
add r14, 8
loc_71642:
call ft_add_stopword
test eax, eax
jnz short loc_71666
mov rdi, [r14]
add r14, 8
test rdi, rdi
jnz short loc_71642
loc_71657:
lea rax, aBuiltIn; "(built-in)"
mov [rbx], rax
loc_71661:
xor r14d, r14d
jmp short loc_71681
loc_71666:
mov r14d, 0FFFFFFFFh
jmp short loc_71681
loc_7166E:
mov r14d, 0FFFFFFFFh
loc_71674:
mov esi, 10h
mov edi, r12d
call my_close
loc_71681:
mov eax, r14d
add rsp, 48h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
| long long ft_init_stopwords()
{
long long v0; // rax
long long ( *v1)(); // r9
void *v2; // rax
unsigned int v3; // eax
unsigned int v4; // r12d
long long v5; // rbx
long long v6; // rax
long long v7; // r12
unsigned int v8; // r14d
long long v9; // rax
char **v10; // r14
_QWORD v13[3]; // [rsp+18h] [rbp-58h] BYREF
long long v14; // [rsp+30h] [rbp-40h] BYREF
long long v15; // [rsp+38h] [rbp-38h]
unsigned int v16; // [rsp+44h] [rbp-2Ch]
if ( !stopwords3 )
{
v0 = my_malloc(mi_key_memory_ft_stopwords, 664LL, 0LL);
stopwords3 = v0;
if ( !v0 )
return (unsigned int)-1;
v1 = FT_STOPWORD_free;
if ( !ft_stopword_file )
LODWORD(v1) = 0;
init_tree(v0, 0, 0, 16, (unsigned int)FT_STOPWORD_cmp, (_DWORD)v1, 0LL, 0LL);
v2 = default_charset_info;
if ( *((_DWORD *)default_charset_info + 38) != 1 )
v2 = &my_charset_latin1;
ft_stopword_cs = (long long)v2;
}
if ( !ft_stopword_file )
{
if ( ft_precompiled_stopwords )
{
v10 = &ft_precompiled_stopwords + 1;
while ( !(unsigned int)((long long (*)(void))ft_add_stopword)() )
{
if ( !*v10++ )
goto LABEL_21;
}
return (unsigned int)-1;
}
LABEL_21:
ft_stopword_file = "(built-in)";
return 0;
}
if ( !*ft_stopword_file )
return 0;
v3 = my_open(ft_stopword_file, 0LL, 16LL);
if ( v3 == -1 )
return (unsigned int)-1;
v4 = v3;
v5 = my_seek(v3, 0LL, 2LL, 0LL);
my_seek(v4, 0LL, 0LL, 0LL);
v6 = my_malloc(mi_key_memory_ft_stopwords, v5 + 1, 16LL);
v14 = v6;
if ( v6 )
{
v16 = v4;
v15 = v6;
v7 = v6 + my_read(v4, v6, v5, 16LL);
v8 = 0;
while ( (unsigned __int8)ft_simple_get_word(ft_stopword_cs, &v14, v7, v13, 1LL) )
{
v9 = my_strndup(mi_key_memory_ft_stopwords, v13[0], v13[2], 0LL);
if ( (unsigned int)ft_add_stopword(v9) )
{
v8 = -1;
break;
}
}
my_free(v15);
v4 = v16;
}
else
{
v8 = -1;
}
my_close(v4, 16LL);
return v8;
}
| ft_init_stopwords:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x48
CMP qword ptr [0x00cff940],0x0
JNZ 0x00171534
LEA RAX,[0xcff98c]
MOV EDI,dword ptr [RAX]
MOV ESI,0x298
XOR EDX,EDX
CALL 0x0019fc99
MOV qword ptr [0x00cff940],RAX
TEST RAX,RAX
JZ 0x00171666
LEA RCX,[0xcff938]
MOV RCX,qword ptr [RCX]
TEST RCX,RCX
LEA R9,[0x1716bb]
CMOVZ R9,RCX
XORPS XMM0,XMM0
MOVUPS xmmword ptr [RSP],XMM0
LEA R8,[0x171693]
MOV RDI,RAX
XOR ESI,ESI
XOR EDX,EDX
MOV ECX,0x10
CALL 0x001a4528
LEA RAX,[0x4856f8]
MOV RAX,qword ptr [RAX]
CMP dword ptr [RAX + 0x98],0x1
JZ 0x0017152d
LEA RAX,[0x4abf20]
LAB_0017152d:
MOV qword ptr [0x00cff948],RAX
LAB_00171534:
LEA RBX,[0xcff938]
MOV RDI,qword ptr [RBX]
TEST RDI,RDI
JZ 0x0017162f
CMP byte ptr [RDI],0x0
JZ 0x00171661
MOV EDX,0x10
XOR ESI,ESI
CALL 0x001a02c8
CMP EAX,-0x1
JZ 0x00171666
MOV R12D,EAX
MOV EDI,EAX
XOR ESI,ESI
MOV EDX,0x2
XOR ECX,ECX
CALL 0x001a0a88
MOV RBX,RAX
MOV EDI,R12D
XOR ESI,ESI
XOR EDX,EDX
XOR ECX,ECX
CALL 0x001a0a88
LEA R15,[0xcff98c]
MOV EDI,dword ptr [R15]
LEA RSI,[RBX + 0x1]
MOV EDX,0x10
CALL 0x0019fc99
MOV qword ptr [RBP + -0x40],RAX
TEST RAX,RAX
JZ 0x0017166e
MOV R14,RAX
MOV ECX,0x10
MOV dword ptr [RBP + -0x2c],R12D
MOV EDI,R12D
MOV RSI,RAX
MOV RDX,RBX
CALL 0x001a0888
MOV R12,RAX
MOV qword ptr [RBP + -0x38],R14
ADD R12,R14
LEA R13,[RBP + -0x40]
LEA RBX,[RBP + -0x58]
XOR R14D,R14D
LAB_001715dd:
MOV RDI,qword ptr [0x00cff948]
MOV RSI,R13
MOV RDX,R12
MOV RCX,RBX
MOV R8D,0x1
CALL 0x00173ac5
TEST AL,AL
JZ 0x00171620
MOV EDI,dword ptr [R15]
MOV RSI,qword ptr [RBP + -0x58]
MOV RDX,qword ptr [RBP + -0x48]
XOR ECX,ECX
CALL 0x0019ffb0
MOV RDI,RAX
CALL 0x001716d0
TEST EAX,EAX
JZ 0x001715dd
MOV R14D,0xffffffff
LAB_00171620:
MOV RDI,qword ptr [RBP + -0x38]
CALL 0x0019fec6
MOV R12D,dword ptr [RBP + -0x2c]
JMP 0x00171674
LAB_0017162f:
LEA R14,[0x484200]
MOV RDI,qword ptr [R14]
TEST RDI,RDI
JZ 0x00171657
ADD R14,0x8
LAB_00171642:
CALL 0x001716d0
TEST EAX,EAX
JNZ 0x00171666
MOV RDI,qword ptr [R14]
ADD R14,0x8
TEST RDI,RDI
JNZ 0x00171642
LAB_00171657:
LEA RAX,[0x1db8c5]
MOV qword ptr [RBX],RAX
LAB_00171661:
XOR R14D,R14D
JMP 0x00171681
LAB_00171666:
MOV R14D,0xffffffff
JMP 0x00171681
LAB_0017166e:
MOV R14D,0xffffffff
LAB_00171674:
MOV ESI,0x10
MOV EDI,R12D
CALL 0x001a046d
LAB_00171681:
MOV EAX,R14D
ADD RSP,0x48
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
|
int8 ft_init_stopwords(void)
{
int *puVar1;
char cVar2;
int iVar3;
long lVar4;
long lVar5;
int8 uVar6;
code *pcVar7;
int8 uVar8;
int **ppuVar9;
int8 local_60 [2];
int8 local_50;
long local_48;
long local_40;
int local_34;
if (stopwords3 == 0) {
stopwords3 = my_malloc(mi_key_memory_ft_stopwords,0x298,0);
if (stopwords3 != 0) {
pcVar7 = FT_STOPWORD_free;
if (ft_stopword_file == (char *)0x0) {
pcVar7 = (code *)0x0;
}
init_tree(stopwords3,0,0,0x10,FT_STOPWORD_cmp,pcVar7,0,0);
ft_stopword_cs = (int4 *)default_charset_info;
if (*(int *)(default_charset_info + 0x98) != 1) {
ft_stopword_cs = &my_charset_latin1;
}
goto LAB_00171534;
}
LAB_00171666:
uVar8 = 0xffffffff;
}
else {
LAB_00171534:
if (ft_stopword_file == (char *)0x0) {
if (ft_precompiled_stopwords != (int *)0x0) {
ppuVar9 = &PTR_s_able_00484208;
do {
iVar3 = ft_add_stopword();
if (iVar3 != 0) goto LAB_00171666;
puVar1 = *ppuVar9;
ppuVar9 = ppuVar9 + 1;
} while (puVar1 != (int *)0x0);
}
ft_stopword_file = "(built-in)";
}
else if (*ft_stopword_file != '\0') {
iVar3 = my_open(ft_stopword_file,0,0x10);
if (iVar3 != -1) {
lVar4 = my_seek(iVar3,0,2,0);
my_seek(iVar3,0,0,0);
lVar5 = my_malloc(mi_key_memory_ft_stopwords,lVar4 + 1,0x10);
local_48 = lVar5;
if (lVar5 == 0) {
uVar8 = 0xffffffff;
}
else {
local_34 = iVar3;
lVar4 = my_read(iVar3,lVar5,lVar4,0x10);
uVar8 = 0;
local_40 = lVar5;
do {
cVar2 = ft_simple_get_word(ft_stopword_cs,&local_48,lVar4 + lVar5,local_60,1);
if (cVar2 == '\0') goto LAB_00171620;
uVar6 = my_strndup(mi_key_memory_ft_stopwords,local_60[0],local_50,0);
iVar3 = ft_add_stopword(uVar6);
} while (iVar3 == 0);
uVar8 = 0xffffffff;
LAB_00171620:
my_free(local_40);
iVar3 = local_34;
}
my_close(iVar3,0x10);
return uVar8;
}
goto LAB_00171666;
}
uVar8 = 0;
}
return uVar8;
}
| |
42,260 | streamable_to_string<char [5], true>::impl[abi:cxx11](char const (&) [5]) | aimrt_mujoco_sim/_deps/yaml-cpp-src/include/yaml-cpp/traits.h | static std::string impl(const Key& key) {
std::stringstream ss;
ss << key;
return ss.str();
} | O3 | c | streamable_to_string<char [5], true>::impl[abi:cxx11](char const (&) [5]):
pushq %r15
pushq %r14
pushq %rbx
subq $0x190, %rsp # imm = 0x190
movq %rsi, %r14
movq %rdi, %rbx
leaq 0x8(%rsp), %rdi
callq 0x1eba0
leaq 0x18(%rsp), %r15
movq %r14, %rdi
callq 0x1e730
movq %r15, %rdi
movq %r14, %rsi
movq %rax, %rdx
callq 0x1f400
leaq 0x20(%rsp), %rsi
movq %rbx, %rdi
callq 0x1ebf0
movq 0x43dc1(%rip), %rsi # 0xafd50
leaq 0x8(%rsp), %rdi
callq 0x1ec00
leaq 0x88(%rsp), %rdi
callq 0x1e4d0
movq %rbx, %rax
addq $0x190, %rsp # imm = 0x190
popq %rbx
popq %r14
popq %r15
retq
movq %rax, %rbx
movq 0x43d90(%rip), %rsi # 0xafd50
leaq 0x8(%rsp), %rdi
callq 0x1ec00
leaq 0x88(%rsp), %rdi
callq 0x1e4d0
movq %rbx, %rdi
callq 0x1ffd0
nop
| _ZN20streamable_to_stringIA6_cLb1EE4implB5cxx11ERA6_Kc:
push r15
push r14
push rbx
sub rsp, 190h
mov r14, rsi
mov rbx, rdi
lea rdi, [rsp+1A8h+var_1A0]
call __ZNSt7__cxx1118basic_stringstreamIcSt11char_traitsIcESaIcEEC1Ev; std::basic_stringstream<char,std::char_traits<char>,std::allocator<char>>::basic_stringstream(void)
lea r15, [rsp+1A8h+var_190]
mov rdi, r14
call _strlen
mov rdi, r15
mov rsi, r14
mov rdx, rax
call __ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l; std::__ostream_insert<char,std::char_traits<char>>(std::ostream &,char const*,long)
lea rsi, [rsp+1A8h+var_188]
mov rdi, rbx
call __ZNKRSt7__cxx1115basic_stringbufIcSt11char_traitsIcESaIcEE3strEv; std::stringbuf::str(void)
mov rsi, cs:_ZTTNSt7__cxx1118basic_stringstreamIcSt11char_traitsIcESaIcEEE_ptr
lea rdi, [rsp+1A8h+var_1A0]
call __ZNSt7__cxx1118basic_stringstreamIcSt11char_traitsIcESaIcEED2Ev; std::basic_stringstream<char,std::char_traits<char>,std::allocator<char>>::~basic_stringstream()
lea rdi, [rsp+1A8h+var_120]; this
call __ZNSt8ios_baseD2Ev; std::ios_base::~ios_base()
mov rax, rbx
add rsp, 190h
pop rbx
pop r14
pop r15
retn
mov rbx, rax
mov rsi, cs:_ZTTNSt7__cxx1118basic_stringstreamIcSt11char_traitsIcESaIcEEE_ptr
lea rdi, [rsp+arg_0]
call __ZNSt7__cxx1118basic_stringstreamIcSt11char_traitsIcESaIcEED2Ev; std::basic_stringstream<char,std::char_traits<char>,std::allocator<char>>::~basic_stringstream()
lea rdi, [rsp+arg_80]; this
call __ZNSt8ios_baseD2Ev; std::ios_base::~ios_base()
mov rdi, rbx
call __Unwind_Resume
| long long streamable_to_string<char [6],true>::impl[abi:cxx11](long long a1, long long a2)
{
long long v2; // rax
_BYTE v4[16]; // [rsp+8h] [rbp-1A0h] BYREF
_BYTE v5[8]; // [rsp+18h] [rbp-190h] BYREF
_BYTE v6[104]; // [rsp+20h] [rbp-188h] BYREF
_BYTE v7[288]; // [rsp+88h] [rbp-120h] BYREF
std::basic_stringstream<char,std::char_traits<char>,std::allocator<char>>::basic_stringstream(v4);
v2 = strlen(a2);
std::__ostream_insert<char,std::char_traits<char>>(v5, a2, v2);
std::stringbuf::str(a1, v6);
std::basic_stringstream<char,std::char_traits<char>,std::allocator<char>>::~basic_stringstream(
v4,
&`VTT for'std::basic_stringstream<char,std::char_traits<char>,std::allocator<char>>);
std::ios_base::~ios_base((std::ios_base *)v7);
return a1;
}
| impl[abi:cxx11]:
PUSH R15
PUSH R14
PUSH RBX
SUB RSP,0x190
MOV R14,RSI
MOV RBX,RDI
LEA RDI,[RSP + 0x8]
CALL 0x0011eba0
LEA R15,[RSP + 0x18]
MOV RDI,R14
CALL 0x0011e730
LAB_0016bf6d:
MOV RDI,R15
MOV RSI,R14
MOV RDX,RAX
CALL 0x0011f400
LEA RSI,[RSP + 0x20]
MOV RDI,RBX
CALL 0x0011ebf0
LAB_0016bf88:
MOV RSI,qword ptr [0x001afd50]
LEA RDI,[RSP + 0x8]
CALL 0x0011ec00
LEA RDI,[RSP + 0x88]
CALL 0x0011e4d0
MOV RAX,RBX
ADD RSP,0x190
POP RBX
POP R14
POP R15
RET
|
/* streamable_to_string<char [6], true>::impl[abi:cxx11](char const (&) [6]) */
streamable_to_string<char[6],true> * __thiscall
streamable_to_string<char[6],true>::impl_abi_cxx11_
(streamable_to_string<char[6],true> *this,char *param_1)
{
size_t sVar1;
stringstream local_1a0 [16];
ostream local_190 [112];
ios_base local_120 [264];
std::__cxx11::stringstream::stringstream(local_1a0);
sVar1 = strlen(param_1);
/* try { // try from 0016bf6d to 0016bf87 has its CatchHandler @ 0016bfb6 */
std::__ostream_insert<char,std::char_traits<char>>(local_190,param_1,sVar1);
std::__cxx11::stringbuf::str();
std::__cxx11::stringstream::~stringstream(local_1a0);
std::ios_base::~ios_base(local_120);
return this;
}
| |
42,261 | 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);
} | O0 | c | maria_rtree_insert:
pushq %rbp
movq %rsp, %rbp
subq $0x40, %rsp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movq -0x10(%rbp), %rax
movq (%rax), %rax
movq %rax, -0x28(%rbp)
movq $0x0, -0x40(%rbp)
cmpq $0x0, -0x18(%rbp)
jne 0x8efd5
jmp 0x8efcc
movb $0x1, -0x1(%rbp)
jmp 0x8f091
movq -0x28(%rbp), %rax
movq 0x118(%rax), %rax
movq -0x18(%rbp), %rcx
movq 0x8(%rcx), %rcx
movzbl 0xa5(%rcx), %ecx
shlq $0x3, %rcx
addq %rcx, %rax
movq %rax, -0x30(%rbp)
movq -0x30(%rbp), %rax
movq (%rax), %rax
movq %rax, -0x38(%rbp)
movq -0x10(%rbp), %rdi
movq -0x18(%rbp), %rsi
movl $0xffffffff, %edx # imm = 0xFFFFFFFF
leaq -0x38(%rbp), %rcx
callq 0x8e3c0
cmpl $-0x1, %eax
sete %al
movb %al, %cl
andb $0x1, %cl
movzbl %cl, %ecx
movl %ecx, -0x1c(%rbp)
testb $0x1, %al
jne 0x8f032
jmp 0x8f034
jmp 0x8f080
movq -0x28(%rbp), %rax
cmpb $0x0, 0x7e7(%rax)
je 0x8f05f
movq -0x10(%rbp), %rdi
movq -0x18(%rbp), %rsi
movq -0x30(%rbp), %rdx
movq -0x38(%rbp), %rcx
leaq -0x40(%rbp), %r8
callq 0x86390
movl %eax, -0x1c(%rbp)
jmp 0x8f073
movq -0x38(%rbp), %rcx
movq -0x30(%rbp), %rax
movq %rcx, (%rax)
movq -0x10(%rbp), %rdi
callq 0x8f0a0
movq -0x10(%rbp), %rdi
movq -0x40(%rbp), %rsi
callq 0x8f0d0
jmp 0x8f082
cmpl $0x0, -0x1c(%rbp)
setne %al
andb $0x1, %al
movzbl %al, %eax
movb %al, -0x1(%rbp)
movb -0x1(%rbp), %al
addq $0x40, %rsp
popq %rbp
retq
nopw (%rax,%rax)
| maria_rtree_insert:
push rbp
mov rbp, rsp
sub rsp, 40h
mov [rbp+var_10], rdi
mov [rbp+var_18], rsi
mov rax, [rbp+var_10]
mov rax, [rax]
mov [rbp+var_28], rax
mov [rbp+var_40], 0
cmp [rbp+var_18], 0
jnz short loc_8EFD5
jmp short $+2
loc_8EFCC:
mov [rbp+var_1], 1
jmp loc_8F091
loc_8EFD5:
mov rax, [rbp+var_28]
mov rax, [rax+118h]
mov rcx, [rbp+var_18]
mov rcx, [rcx+8]
movzx ecx, byte ptr [rcx+0A5h]
shl rcx, 3
add rax, rcx
mov [rbp+var_30], rax
mov rax, [rbp+var_30]
mov rax, [rax]
mov [rbp+var_38], rax
mov rdi, [rbp+var_10]
mov rsi, [rbp+var_18]
mov edx, 0FFFFFFFFh
lea rcx, [rbp+var_38]
call maria_rtree_insert_level
cmp eax, 0FFFFFFFFh
setz al
mov cl, al
and cl, 1
movzx ecx, cl
mov [rbp+var_1C], ecx
test al, 1
jnz short loc_8F032
jmp short loc_8F034
loc_8F032:
jmp short loc_8F080
loc_8F034:
mov rax, [rbp+var_28]
cmp byte ptr [rax+7E7h], 0
jz short loc_8F05F
mov rdi, [rbp+var_10]
mov rsi, [rbp+var_18]
mov rdx, [rbp+var_30]
mov rcx, [rbp+var_38]
lea r8, [rbp+var_40]
call _ma_write_undo_key_insert
mov [rbp+var_1C], eax
jmp short loc_8F073
loc_8F05F:
mov rcx, [rbp+var_38]
mov rax, [rbp+var_30]
mov [rax], rcx
mov rdi, [rbp+var_10]
call _ma_fast_unlock_key_del_2
loc_8F073:
mov rdi, [rbp+var_10]
mov rsi, [rbp+var_40]
call _ma_unpin_all_pages_and_finalize_row_3
loc_8F080:
jmp short $+2
loc_8F082:
cmp [rbp+var_1C], 0
setnz al
and al, 1
movzx eax, al
mov [rbp+var_1], al
loc_8F091:
mov al, [rbp+var_1]
add rsp, 40h
pop rbp
retn
| bool maria_rtree_insert(long long *a1, float **a2)
{
bool v2; // al
long long v4; // [rsp+0h] [rbp-40h] BYREF
long long v5; // [rsp+8h] [rbp-38h] BYREF
long long *v6; // [rsp+10h] [rbp-30h]
long long v7; // [rsp+18h] [rbp-28h]
int v8; // [rsp+24h] [rbp-1Ch]
float **v9; // [rsp+28h] [rbp-18h]
long long *v10; // [rsp+30h] [rbp-10h]
v10 = a1;
v9 = a2;
v7 = *a1;
v4 = 0LL;
if ( !a2 )
return 1;
v6 = (long long *)(8LL * *((unsigned __int8 *)v9[1] + 165) + *(_QWORD *)(v7 + 280));
v5 = *v6;
v2 = (unsigned int)maria_rtree_insert_level(v10, (long long)v9, 0xFFFFFFFF, &v5) == -1;
v8 = v2;
if ( !v2 )
{
if ( *(_BYTE *)(v7 + 2023) )
{
v8 = ma_write_undo_key_insert(v10, v9, (long long)v6, v5, (long long)&v4);
}
else
{
*v6 = v5;
ma_fast_unlock_key_del_2(v10);
}
ma_unpin_all_pages_and_finalize_row_3(v10, v4);
}
return v8 != 0;
}
| maria_rtree_insert:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x40
MOV qword ptr [RBP + -0x10],RDI
MOV qword ptr [RBP + -0x18],RSI
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX]
MOV qword ptr [RBP + -0x28],RAX
MOV qword ptr [RBP + -0x40],0x0
CMP qword ptr [RBP + -0x18],0x0
JNZ 0x0018efd5
JMP 0x0018efcc
LAB_0018efcc:
MOV byte ptr [RBP + -0x1],0x1
JMP 0x0018f091
LAB_0018efd5:
MOV RAX,qword ptr [RBP + -0x28]
MOV RAX,qword ptr [RAX + 0x118]
MOV RCX,qword ptr [RBP + -0x18]
MOV RCX,qword ptr [RCX + 0x8]
MOVZX ECX,byte ptr [RCX + 0xa5]
SHL RCX,0x3
ADD RAX,RCX
MOV qword ptr [RBP + -0x30],RAX
MOV RAX,qword ptr [RBP + -0x30]
MOV RAX,qword ptr [RAX]
MOV qword ptr [RBP + -0x38],RAX
MOV RDI,qword ptr [RBP + -0x10]
MOV RSI,qword ptr [RBP + -0x18]
MOV EDX,0xffffffff
LEA RCX,[RBP + -0x38]
CALL 0x0018e3c0
CMP EAX,-0x1
SETZ AL
MOV CL,AL
AND CL,0x1
MOVZX ECX,CL
MOV dword ptr [RBP + -0x1c],ECX
TEST AL,0x1
JNZ 0x0018f032
JMP 0x0018f034
LAB_0018f032:
JMP 0x0018f080
LAB_0018f034:
MOV RAX,qword ptr [RBP + -0x28]
CMP byte ptr [RAX + 0x7e7],0x0
JZ 0x0018f05f
MOV RDI,qword ptr [RBP + -0x10]
MOV RSI,qword ptr [RBP + -0x18]
MOV RDX,qword ptr [RBP + -0x30]
MOV RCX,qword ptr [RBP + -0x38]
LEA R8,[RBP + -0x40]
CALL 0x00186390
MOV dword ptr [RBP + -0x1c],EAX
JMP 0x0018f073
LAB_0018f05f:
MOV RCX,qword ptr [RBP + -0x38]
MOV RAX,qword ptr [RBP + -0x30]
MOV qword ptr [RAX],RCX
MOV RDI,qword ptr [RBP + -0x10]
CALL 0x0018f0a0
LAB_0018f073:
MOV RDI,qword ptr [RBP + -0x10]
MOV RSI,qword ptr [RBP + -0x40]
CALL 0x0018f0d0
LAB_0018f080:
JMP 0x0018f082
LAB_0018f082:
CMP dword ptr [RBP + -0x1c],0x0
SETNZ AL
AND AL,0x1
MOVZX EAX,AL
MOV byte ptr [RBP + -0x1],AL
LAB_0018f091:
MOV AL,byte ptr [RBP + -0x1]
ADD RSP,0x40
POP RBP
RET
|
int8 maria_rtree_insert(long *param_1,long param_2)
{
int iVar1;
int8 local_48;
int8 local_40;
int8 *local_38;
long local_30;
uint local_24;
long local_20;
long *local_18;
bool local_9;
local_30 = *param_1;
local_48 = 0;
if (param_2 == 0) {
local_9 = true;
}
else {
local_38 = (int8 *)
(*(long *)(local_30 + 0x118) + (ulong)*(byte *)(*(long *)(param_2 + 8) + 0xa5) * 8);
local_40 = *local_38;
local_20 = param_2;
local_18 = param_1;
iVar1 = maria_rtree_insert_level(param_1,param_2,0xffffffff,&local_40);
local_24 = (uint)(iVar1 == -1);
if (iVar1 != -1) {
if (*(char *)(local_30 + 0x7e7) == '\0') {
*local_38 = local_40;
_ma_fast_unlock_key_del(local_18);
}
else {
local_24 = _ma_write_undo_key_insert(local_18,local_20,local_38,local_40,&local_48);
}
_ma_unpin_all_pages_and_finalize_row(local_18,local_48);
}
local_9 = local_24 != 0;
local_30 = 0;
}
return CONCAT71((int7)((ulong)local_30 >> 8),local_9);
}
| |
42,262 | my_init_mysys_psi_keys | eloqsql/mysys/my_init.c | void my_init_mysys_psi_keys()
{
const char* category= "mysys";
int count;
count= sizeof(all_mysys_mutexes)/sizeof(all_mysys_mutexes[0]);
mysql_mutex_register(category, all_mysys_mutexes, count);
count= sizeof(all_mysys_conds)/sizeof(all_mysys_conds[0]);
mysql_cond_register(category, all_mysys_conds, count);
count= sizeof(all_mysys_rwlocks)/sizeof(all_mysys_rwlocks[0]);
mysql_rwlock_register(category, all_mysys_rwlocks, count);
count= sizeof(all_mysys_threads)/sizeof(all_mysys_threads[0]);
mysql_thread_register(category, all_mysys_threads, count);
count= sizeof(all_mysys_files)/sizeof(all_mysys_files[0]);
mysql_file_register(category, all_mysys_files, count);
count= array_elements(all_mysys_stages);
mysql_stage_register(category, all_mysys_stages, count);
} | O3 | c | my_init_mysys_psi_keys:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
leaq 0x2e67f7(%rip), %r14 # 0x386010
movq (%r14), %rax
leaq 0x3cb99(%rip), %rbx # 0xdc3bc
leaq 0x2e5fd6(%rip), %rsi # 0x385800
movq %rbx, %rdi
movl $0x13, %edx
callq *(%rax)
movq (%r14), %rax
leaq 0x2e6192(%rip), %rsi # 0x3859d0
movq %rbx, %rdi
movl $0x7, %edx
callq *0x10(%rax)
movq (%r14), %rax
leaq 0x2e622d(%rip), %rsi # 0x385a80
movq %rbx, %rdi
movl $0x1, %edx
callq *0x8(%rax)
movq (%r14), %rax
leaq 0x2e6238(%rip), %rsi # 0x385aa0
movq %rbx, %rdi
movl $0x1, %edx
callq *0x18(%rax)
movq (%r14), %rax
leaq 0x2e6243(%rip), %rsi # 0x385ac0
movq %rbx, %rdi
movl $0x2, %edx
callq *0x20(%rax)
movq (%r14), %rax
movq 0x28(%rax), %rax
leaq 0x2e5f5a(%rip), %rsi # 0x3857f0
movq %rbx, %rdi
movl $0x1, %edx
popq %rbx
popq %r14
popq %rbp
jmpq *%rax
| my_init_mysys_psi_keys:
push rbp
mov rbp, rsp
push r14
push rbx
lea r14, PSI_server
mov rax, [r14]
lea rbx, aMysys; "mysys"
lea rsi, all_mysys_mutexes
mov rdi, rbx
mov edx, 13h
call qword ptr [rax]
mov rax, [r14]
lea rsi, all_mysys_conds
mov rdi, rbx
mov edx, 7
call qword ptr [rax+10h]
mov rax, [r14]
lea rsi, all_mysys_rwlocks
mov rdi, rbx
mov edx, 1
call qword ptr [rax+8]
mov rax, [r14]
lea rsi, all_mysys_threads
mov rdi, rbx
mov edx, 1
call qword ptr [rax+18h]
mov rax, [r14]
lea rsi, all_mysys_files
mov rdi, rbx
mov edx, 2
call qword ptr [rax+20h]
mov rax, [r14]
mov rax, [rax+28h]
lea rsi, all_mysys_stages
mov rdi, rbx
mov edx, 1
pop rbx
pop r14
pop rbp
jmp rax
| long long my_init_mysys_psi_keys()
{
((void ( *)(const char *, _UNKNOWN **, long long))*PSI_server)("mysys", &all_mysys_mutexes, 19LL);
((void ( *)(const char *, _UNKNOWN **, long long))PSI_server[2])("mysys", &all_mysys_conds, 7LL);
((void ( *)(const char *, _UNKNOWN **, long long))PSI_server[1])("mysys", &all_mysys_rwlocks, 1LL);
((void ( *)(const char *, _UNKNOWN **, long long))PSI_server[3])("mysys", &all_mysys_threads, 1LL);
((void ( *)(const char *, _UNKNOWN **, long long))PSI_server[4])("mysys", &all_mysys_files, 2LL);
return ((long long ( *)(const char *, _UNKNOWN **, long long))PSI_server[5])("mysys", &all_mysys_stages, 1LL);
}
| my_init_mysys_psi_keys:
PUSH RBP
MOV RBP,RSP
PUSH R14
PUSH RBX
LEA R14,[0x486010]
MOV RAX,qword ptr [R14]
LEA RBX,[0x1dc3bc]
LEA RSI,[0x485800]
MOV RDI,RBX
MOV EDX,0x13
CALL qword ptr [RAX]
MOV RAX,qword ptr [R14]
LEA RSI,[0x4859d0]
MOV RDI,RBX
MOV EDX,0x7
CALL qword ptr [RAX + 0x10]
MOV RAX,qword ptr [R14]
LEA RSI,[0x485a80]
MOV RDI,RBX
MOV EDX,0x1
CALL qword ptr [RAX + 0x8]
MOV RAX,qword ptr [R14]
LEA RSI,[0x485aa0]
MOV RDI,RBX
MOV EDX,0x1
CALL qword ptr [RAX + 0x18]
MOV RAX,qword ptr [R14]
LEA RSI,[0x485ac0]
MOV RDI,RBX
MOV EDX,0x2
CALL qword ptr [RAX + 0x20]
MOV RAX,qword ptr [R14]
MOV RAX,qword ptr [RAX + 0x28]
LEA RSI,[0x4857f0]
MOV RDI,RBX
MOV EDX,0x1
POP RBX
POP R14
POP RBP
JMP RAX
|
void my_init_mysys_psi_keys(void)
{
(**(code **)PSI_server)("mysys",all_mysys_mutexes,0x13);
(**(code **)(PSI_server + 0x10))("mysys",all_mysys_conds,7);
(**(code **)(PSI_server + 8))("mysys",all_mysys_rwlocks,1);
(**(code **)(PSI_server + 0x18))("mysys",all_mysys_threads,1);
(**(code **)(PSI_server + 0x20))("mysys",all_mysys_files,2);
/* WARNING: Could not recover jumptable at 0x0019f8a2. Too many branches */
/* WARNING: Treating indirect jump as call */
(**(code **)(PSI_server + 0x28))("mysys",&all_mysys_stages,1);
return;
}
| |
42,263 | r3d_frustum_is_point_in | r3d/src/details/r3d_frustum.c | bool r3d_frustum_is_point_in(const r3d_frustum_t* frustum, Vector3 position)
{
for (int i = 0; i < R3D_PLANE_COUNT; i++) {
if (r3d_frustum_distance_to_plane(frustum->planes[i], position) <= 0) {
return false;
}
}
return true;
} | O3 | c | r3d_frustum_is_point_in:
movsd (%rdi), %xmm2
movsd 0x8(%rdi), %xmm3
movaps %xmm2, %xmm4
mulps %xmm0, %xmm4
shufps $0x55, %xmm4, %xmm4 # xmm4 = xmm4[1,1,1,1]
mulss %xmm0, %xmm2
addss %xmm4, %xmm2
movaps %xmm3, %xmm4
mulss %xmm1, %xmm4
addss %xmm2, %xmm4
shufps $0x55, %xmm3, %xmm3 # xmm3 = xmm3[1,1,1,1]
addss %xmm4, %xmm3
xorps %xmm2, %xmm2
ucomiss %xmm3, %xmm2
jae 0xdfe79
pushq %rbp
movq %rsp, %rbp
addq $0x18, %rdi
xorl %ecx, %ecx
movq %rcx, %rax
cmpq $0x5, %rcx
je 0xdfe70
movsd -0x8(%rdi), %xmm3
movsd (%rdi), %xmm4
movaps %xmm3, %xmm5
mulps %xmm0, %xmm5
shufps $0x55, %xmm5, %xmm5 # xmm5 = xmm5[1,1,1,1]
mulss %xmm0, %xmm3
addss %xmm5, %xmm3
movaps %xmm4, %xmm5
mulss %xmm1, %xmm5
addss %xmm3, %xmm5
shufps $0x55, %xmm4, %xmm4 # xmm4 = xmm4[1,1,1,1]
addss %xmm5, %xmm4
addq $0x10, %rdi
leaq 0x1(%rax), %rcx
ucomiss %xmm4, %xmm2
jb 0xdfe2c
cmpq $0x5, %rax
setae %al
popq %rbp
retq
xorl %eax, %eax
retq
| r3d_frustum_is_point_in:
movsd xmm2, qword ptr [rdi]
movsd xmm3, qword ptr [rdi+8]
movaps xmm4, xmm2
mulps xmm4, xmm0
shufps xmm4, xmm4, 55h ; 'U'
mulss xmm2, xmm0
addss xmm2, xmm4
movaps xmm4, xmm3
mulss xmm4, xmm1
addss xmm4, xmm2
shufps xmm3, xmm3, 55h ; 'U'
addss xmm3, xmm4
xorps xmm2, xmm2
ucomiss xmm2, xmm3
jnb short loc_DFE79
push rbp
mov rbp, rsp
add rdi, 18h
xor ecx, ecx
loc_DFE2C:
mov rax, rcx
cmp rcx, 5
jz short loc_DFE70
movsd xmm3, qword ptr [rdi-8]
movsd xmm4, qword ptr [rdi]
movaps xmm5, xmm3
mulps xmm5, xmm0
shufps xmm5, xmm5, 55h ; 'U'
mulss xmm3, xmm0
addss xmm3, xmm5
movaps xmm5, xmm4
mulss xmm5, xmm1
addss xmm5, xmm3
shufps xmm4, xmm4, 55h ; 'U'
addss xmm4, xmm5
add rdi, 10h
lea rcx, [rax+1]
ucomiss xmm2, xmm4
jb short loc_DFE2C
loc_DFE70:
cmp rax, 5
setnb al
pop rbp
retn
loc_DFE79:
xor eax, eax
retn
| bool r3d_frustum_is_point_in(unsigned long long *a1, __m128 a2, float a3)
{
__m128 v3; // xmm4
unsigned long long *v4; // rdi
unsigned long long v5; // rcx
unsigned long long v6; // rax
__m128 v7; // xmm5
float v8; // xmm4_4
v3 = _mm_mul_ps((__m128)*a1, a2);
if ( (float)(_mm_shuffle_ps((__m128)a1[1], (__m128)a1[1], 85).m128_f32[0]
+ (float)((float)(COERCE_FLOAT(a1[1]) * a3)
+ (float)((float)(COERCE_FLOAT(*a1) * a2.m128_f32[0]) + _mm_shuffle_ps(v3, v3, 85).m128_f32[0]))) <= 0.0 )
return 0;
v4 = a1 + 3;
v5 = 0LL;
do
{
v6 = v5;
if ( v5 == 5 )
break;
v7 = _mm_mul_ps((__m128)*(v4 - 1), a2);
v8 = _mm_shuffle_ps((__m128)*v4, (__m128)*v4, 85).m128_f32[0]
+ (float)((float)(COERCE_FLOAT(*v4) * a3)
+ (float)((float)(COERCE_FLOAT(*(v4 - 1)) * a2.m128_f32[0]) + _mm_shuffle_ps(v7, v7, 85).m128_f32[0]));
v4 += 2;
++v5;
}
while ( v8 > 0.0 );
return v6 >= 5;
}
| r3d_frustum_is_point_in:
MOVSD XMM2,qword ptr [RDI]
MOVSD XMM3,qword ptr [RDI + 0x8]
MOVAPS XMM4,XMM2
MULPS XMM4,XMM0
SHUFPS XMM4,XMM4,0x55
MULSS XMM2,XMM0
ADDSS XMM2,XMM4
MOVAPS XMM4,XMM3
MULSS XMM4,XMM1
ADDSS XMM4,XMM2
SHUFPS XMM3,XMM3,0x55
ADDSS XMM3,XMM4
XORPS XMM2,XMM2
UCOMISS XMM2,XMM3
JNC 0x001dfe79
PUSH RBP
MOV RBP,RSP
ADD RDI,0x18
XOR ECX,ECX
LAB_001dfe2c:
MOV RAX,RCX
CMP RCX,0x5
JZ 0x001dfe70
MOVSD XMM3,qword ptr [RDI + -0x8]
MOVSD XMM4,qword ptr [RDI]
MOVAPS XMM5,XMM3
MULPS XMM5,XMM0
SHUFPS XMM5,XMM5,0x55
MULSS XMM3,XMM0
ADDSS XMM3,XMM5
MOVAPS XMM5,XMM4
MULSS XMM5,XMM1
ADDSS XMM5,XMM3
SHUFPS XMM4,XMM4,0x55
ADDSS XMM4,XMM5
ADD RDI,0x10
LEA RCX,[RAX + 0x1]
UCOMISS XMM2,XMM4
JC 0x001dfe2c
LAB_001dfe70:
CMP RAX,0x5
SETNC AL
POP RBP
RET
LAB_001dfe79:
XOR EAX,EAX
RET
|
int8 r3d_frustum_is_point_in(int8 param_1,float param_2,int8 *param_3)
{
int8 *puVar1;
int8 uVar2;
ulong uVar3;
ulong uVar4;
float fVar5;
fVar5 = (float)((ulong)param_1 >> 0x20);
if ((float)((ulong)param_3[1] >> 0x20) +
(float)param_3[1] * param_2 +
(float)*param_3 * (float)param_1 + (float)((ulong)*param_3 >> 0x20) * fVar5 <= 0.0) {
return 0;
}
param_3 = param_3 + 3;
uVar3 = 0;
do {
uVar4 = uVar3;
if (uVar4 == 5) break;
puVar1 = param_3 + -1;
uVar2 = *param_3;
param_3 = param_3 + 2;
uVar3 = uVar4 + 1;
} while (0.0 < (float)((ulong)uVar2 >> 0x20) +
(float)uVar2 * param_2 +
(float)*puVar1 * (float)param_1 + (float)((ulong)*puVar1 >> 0x20) * fVar5);
return CONCAT71((int7)(uVar4 >> 8),4 < uVar4);
}
| |
42,264 | ma_kpointer | eloqsql/storage/maria/ma_search.c | void _ma_kpointer(register MARIA_HA *info, register uchar *buff, my_off_t pos)
{
pos/=maria_block_size;
switch (info->s->base.key_reflength) {
#if SIZEOF_OFF_T > 4
case 7: mi_int7store(buff,pos); break;
case 6: mi_int6store(buff,pos); break;
case 5: mi_int5store(buff,pos); break;
#else
case 7: *buff++=0;
/* fall through */
case 6: *buff++=0;
/* fall through */
case 5: *buff++=0;
/* fall through */
#endif
case 4: mi_int4store(buff,pos); break;
case 3: mi_int3store(buff,pos); break;
case 2: mi_int2store(buff,(uint) pos); break;
case 1: buff[0]= (uchar) pos; break;
default: abort(); /* impossible */
}
} | O0 | c | ma_kpointer:
pushq %rbp
movq %rsp, %rbp
subq $0x70, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
leaq 0x288535(%rip), %rax # 0x2c5150
movq (%rax), %rcx
movq -0x18(%rbp), %rax
xorl %edx, %edx
divq %rcx
movq %rax, -0x18(%rbp)
movq -0x8(%rbp), %rax
movq (%rax), %rax
movl 0x3e4(%rax), %eax
decl %eax
movl %eax, %ecx
movq %rcx, -0x68(%rbp)
subl $0x6, %eax
ja 0x3ce71
movq -0x68(%rbp), %rax
leaq 0x123ef4(%rip), %rcx # 0x160b48
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movq -0x18(%rbp), %rax
movq %rax, -0x20(%rbp)
movq -0x18(%rbp), %rax
shrq $0x20, %rax
movq %rax, -0x28(%rbp)
movq -0x20(%rbp), %rax
movb %al, %cl
movq -0x10(%rbp), %rax
movb %cl, 0x6(%rax)
movq -0x20(%rbp), %rax
shrq $0x8, %rax
movb %al, %cl
movq -0x10(%rbp), %rax
movb %cl, 0x5(%rax)
movq -0x20(%rbp), %rax
shrq $0x10, %rax
movb %al, %cl
movq -0x10(%rbp), %rax
movb %cl, 0x4(%rax)
movq -0x20(%rbp), %rax
shrq $0x18, %rax
movb %al, %cl
movq -0x10(%rbp), %rax
movb %cl, 0x3(%rax)
movq -0x28(%rbp), %rax
movb %al, %cl
movq -0x10(%rbp), %rax
movb %cl, 0x2(%rax)
movq -0x28(%rbp), %rax
shrq $0x8, %rax
movb %al, %cl
movq -0x10(%rbp), %rax
movb %cl, 0x1(%rax)
movq -0x28(%rbp), %rax
shrq $0x10, %rax
movb %al, %cl
movq -0x10(%rbp), %rax
movb %cl, (%rax)
jmp 0x3ce76
movq -0x18(%rbp), %rax
movq %rax, -0x30(%rbp)
movq -0x18(%rbp), %rax
shrq $0x20, %rax
movq %rax, -0x38(%rbp)
movq -0x30(%rbp), %rax
movb %al, %cl
movq -0x10(%rbp), %rax
movb %cl, 0x5(%rax)
movq -0x30(%rbp), %rax
shrq $0x8, %rax
movb %al, %cl
movq -0x10(%rbp), %rax
movb %cl, 0x4(%rax)
movq -0x30(%rbp), %rax
shrq $0x10, %rax
movb %al, %cl
movq -0x10(%rbp), %rax
movb %cl, 0x3(%rax)
movq -0x30(%rbp), %rax
shrq $0x18, %rax
movb %al, %cl
movq -0x10(%rbp), %rax
movb %cl, 0x2(%rax)
movq -0x38(%rbp), %rax
movb %al, %cl
movq -0x10(%rbp), %rax
movb %cl, 0x1(%rax)
movq -0x38(%rbp), %rax
shrq $0x8, %rax
movb %al, %cl
movq -0x10(%rbp), %rax
movb %cl, (%rax)
jmp 0x3ce76
movq -0x18(%rbp), %rax
movq %rax, -0x40(%rbp)
movq -0x18(%rbp), %rax
shrq $0x20, %rax
movq %rax, -0x48(%rbp)
movq -0x40(%rbp), %rax
movb %al, %cl
movq -0x10(%rbp), %rax
movb %cl, 0x4(%rax)
movq -0x40(%rbp), %rax
shrq $0x8, %rax
movb %al, %cl
movq -0x10(%rbp), %rax
movb %cl, 0x3(%rax)
movq -0x40(%rbp), %rax
shrq $0x10, %rax
movb %al, %cl
movq -0x10(%rbp), %rax
movb %cl, 0x2(%rax)
movq -0x40(%rbp), %rax
shrq $0x18, %rax
movb %al, %cl
movq -0x10(%rbp), %rax
movb %cl, 0x1(%rax)
movq -0x48(%rbp), %rax
movb %al, %cl
movq -0x10(%rbp), %rax
movb %cl, (%rax)
jmp 0x3ce76
movq -0x18(%rbp), %rax
movq %rax, -0x50(%rbp)
movq -0x50(%rbp), %rax
movb %al, %cl
movq -0x10(%rbp), %rax
movb %cl, 0x3(%rax)
movq -0x50(%rbp), %rax
shrq $0x8, %rax
movb %al, %cl
movq -0x10(%rbp), %rax
movb %cl, 0x2(%rax)
movq -0x50(%rbp), %rax
shrq $0x10, %rax
movb %al, %cl
movq -0x10(%rbp), %rax
movb %cl, 0x1(%rax)
movq -0x50(%rbp), %rax
shrq $0x18, %rax
movb %al, %cl
movq -0x10(%rbp), %rax
movb %cl, (%rax)
jmp 0x3ce76
movq -0x18(%rbp), %rax
movq %rax, -0x58(%rbp)
movq -0x58(%rbp), %rax
movb %al, %cl
movq -0x10(%rbp), %rax
movb %cl, 0x2(%rax)
movq -0x58(%rbp), %rax
shrq $0x8, %rax
movb %al, %cl
movq -0x10(%rbp), %rax
movb %cl, 0x1(%rax)
movq -0x58(%rbp), %rax
shrq $0x10, %rax
movb %al, %cl
movq -0x10(%rbp), %rax
movb %cl, (%rax)
jmp 0x3ce76
movq -0x18(%rbp), %rax
movl %eax, -0x5c(%rbp)
movl -0x5c(%rbp), %eax
movb %al, %cl
movq -0x10(%rbp), %rax
movb %cl, 0x1(%rax)
movl -0x5c(%rbp), %eax
shrl $0x8, %eax
movb %al, %cl
movq -0x10(%rbp), %rax
movb %cl, (%rax)
jmp 0x3ce76
movq -0x18(%rbp), %rax
movb %al, %cl
movq -0x10(%rbp), %rax
movb %cl, (%rax)
jmp 0x3ce76
callq 0x29570
addq $0x70, %rsp
popq %rbp
retq
nopl (%rax)
| _ma_kpointer:
push rbp
mov rbp, rsp
sub rsp, 70h
mov [rbp+var_8], rdi
mov [rbp+var_10], rsi
mov [rbp+var_18], rdx
lea rax, maria_block_size
mov rcx, [rax]
mov rax, [rbp+var_18]
xor edx, edx
div rcx
mov [rbp+var_18], rax
mov rax, [rbp+var_8]
mov rax, [rax]
mov eax, [rax+3E4h]
dec eax; switch 7 cases
mov ecx, eax
mov [rbp+var_68], rcx
sub eax, 6
ja def_3CC5B; jumptable 000000000003CC5B default case
mov rax, [rbp+var_68]
lea rcx, jpt_3CC5B
movsxd rax, ds:(jpt_3CC5B - 160B48h)[rcx+rax*4]
add rax, rcx
jmp rax; switch jump
loc_3CC5D:
mov rax, [rbp+var_18]; jumptable 000000000003CC5B case 7
mov [rbp+var_20], rax
mov rax, [rbp+var_18]
shr rax, 20h
mov [rbp+var_28], rax
mov rax, [rbp+var_20]
mov cl, al
mov rax, [rbp+var_10]
mov [rax+6], cl
mov rax, [rbp+var_20]
shr rax, 8
mov cl, al
mov rax, [rbp+var_10]
mov [rax+5], cl
mov rax, [rbp+var_20]
shr rax, 10h
mov cl, al
mov rax, [rbp+var_10]
mov [rax+4], cl
mov rax, [rbp+var_20]
shr rax, 18h
mov cl, al
mov rax, [rbp+var_10]
mov [rax+3], cl
mov rax, [rbp+var_28]
mov cl, al
mov rax, [rbp+var_10]
mov [rax+2], cl
mov rax, [rbp+var_28]
shr rax, 8
mov cl, al
mov rax, [rbp+var_10]
mov [rax+1], cl
mov rax, [rbp+var_28]
shr rax, 10h
mov cl, al
mov rax, [rbp+var_10]
mov [rax], cl
jmp loc_3CE76
loc_3CCE4:
mov rax, [rbp+var_18]; jumptable 000000000003CC5B case 6
mov [rbp+var_30], rax
mov rax, [rbp+var_18]
shr rax, 20h
mov [rbp+var_38], rax
mov rax, [rbp+var_30]
mov cl, al
mov rax, [rbp+var_10]
mov [rax+5], cl
mov rax, [rbp+var_30]
shr rax, 8
mov cl, al
mov rax, [rbp+var_10]
mov [rax+4], cl
mov rax, [rbp+var_30]
shr rax, 10h
mov cl, al
mov rax, [rbp+var_10]
mov [rax+3], cl
mov rax, [rbp+var_30]
shr rax, 18h
mov cl, al
mov rax, [rbp+var_10]
mov [rax+2], cl
mov rax, [rbp+var_38]
mov cl, al
mov rax, [rbp+var_10]
mov [rax+1], cl
mov rax, [rbp+var_38]
shr rax, 8
mov cl, al
mov rax, [rbp+var_10]
mov [rax], cl
jmp loc_3CE76
loc_3CD5A:
mov rax, [rbp+var_18]; jumptable 000000000003CC5B case 5
mov [rbp+var_40], rax
mov rax, [rbp+var_18]
shr rax, 20h
mov [rbp+var_48], rax
mov rax, [rbp+var_40]
mov cl, al
mov rax, [rbp+var_10]
mov [rax+4], cl
mov rax, [rbp+var_40]
shr rax, 8
mov cl, al
mov rax, [rbp+var_10]
mov [rax+3], cl
mov rax, [rbp+var_40]
shr rax, 10h
mov cl, al
mov rax, [rbp+var_10]
mov [rax+2], cl
mov rax, [rbp+var_40]
shr rax, 18h
mov cl, al
mov rax, [rbp+var_10]
mov [rax+1], cl
mov rax, [rbp+var_48]
mov cl, al
mov rax, [rbp+var_10]
mov [rax], cl
jmp loc_3CE76
loc_3CDBF:
mov rax, [rbp+var_18]; jumptable 000000000003CC5B case 4
mov [rbp+var_50], rax
mov rax, [rbp+var_50]
mov cl, al
mov rax, [rbp+var_10]
mov [rax+3], cl
mov rax, [rbp+var_50]
shr rax, 8
mov cl, al
mov rax, [rbp+var_10]
mov [rax+2], cl
mov rax, [rbp+var_50]
shr rax, 10h
mov cl, al
mov rax, [rbp+var_10]
mov [rax+1], cl
mov rax, [rbp+var_50]
shr rax, 18h
mov cl, al
mov rax, [rbp+var_10]
mov [rax], cl
jmp short loc_3CE76
loc_3CE08:
mov rax, [rbp+var_18]; jumptable 000000000003CC5B case 3
mov [rbp+var_58], rax
mov rax, [rbp+var_58]
mov cl, al
mov rax, [rbp+var_10]
mov [rax+2], cl
mov rax, [rbp+var_58]
shr rax, 8
mov cl, al
mov rax, [rbp+var_10]
mov [rax+1], cl
mov rax, [rbp+var_58]
shr rax, 10h
mov cl, al
mov rax, [rbp+var_10]
mov [rax], cl
jmp short loc_3CE76
loc_3CE40:
mov rax, [rbp+var_18]; jumptable 000000000003CC5B case 2
mov [rbp+var_5C], eax
mov eax, [rbp+var_5C]
mov cl, al
mov rax, [rbp+var_10]
mov [rax+1], cl
mov eax, [rbp+var_5C]
shr eax, 8
mov cl, al
mov rax, [rbp+var_10]
mov [rax], cl
jmp short loc_3CE76
loc_3CE63:
mov rax, [rbp+var_18]; jumptable 000000000003CC5B case 1
mov cl, al
mov rax, [rbp+var_10]
mov [rax], cl
jmp short loc_3CE76
def_3CC5B:
call _abort; jumptable 000000000003CC5B default case
loc_3CE76:
add rsp, 70h
pop rbp
retn
| _BYTE * ma_kpointer(long long a1, _BYTE *a2, unsigned long long a3)
{
unsigned long long v3; // rdx
_BYTE *result; // rax
unsigned long long v6; // [rsp+58h] [rbp-18h]
v3 = a3 % *(_QWORD *)&maria_block_size;
v6 = a3 / *(_QWORD *)&maria_block_size;
switch ( *(_DWORD *)(*(_QWORD *)a1 + 996LL) )
{
case 1:
result = a2;
*a2 = v6;
break;
case 2:
a2[1] = v6;
result = a2;
*a2 = BYTE1(v6);
break;
case 3:
a2[2] = v6;
a2[1] = BYTE1(v6);
result = a2;
*a2 = BYTE2(v6);
break;
case 4:
a2[3] = v6;
a2[2] = BYTE1(v6);
a2[1] = BYTE2(v6);
result = a2;
*a2 = BYTE3(v6);
break;
case 5:
a2[4] = v6;
a2[3] = BYTE1(v6);
a2[2] = BYTE2(v6);
a2[1] = BYTE3(v6);
result = a2;
*a2 = BYTE4(v6);
break;
case 6:
a2[5] = v6;
a2[4] = BYTE1(v6);
a2[3] = BYTE2(v6);
a2[2] = BYTE3(v6);
a2[1] = BYTE4(v6);
result = a2;
*a2 = BYTE5(v6);
break;
case 7:
a2[6] = v6;
a2[5] = BYTE1(v6);
a2[4] = BYTE2(v6);
a2[3] = BYTE3(v6);
a2[2] = BYTE4(v6);
a2[1] = BYTE5(v6);
result = a2;
*a2 = BYTE6(v6);
break;
default:
abort(a1, a2, v3);
}
return result;
}
| _ma_kpointer:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x70
MOV qword ptr [RBP + -0x8],RDI
MOV qword ptr [RBP + -0x10],RSI
MOV qword ptr [RBP + -0x18],RDX
LEA RAX,[0x3c5150]
MOV RCX,qword ptr [RAX]
MOV RAX,qword ptr [RBP + -0x18]
XOR EDX,EDX
DIV RCX
MOV qword ptr [RBP + -0x18],RAX
MOV RAX,qword ptr [RBP + -0x8]
MOV RAX,qword ptr [RAX]
MOV EAX,dword ptr [RAX + 0x3e4]
DEC EAX
MOV ECX,EAX
MOV qword ptr [RBP + -0x68],RCX
SUB EAX,0x6
JA 0x0013ce71
MOV RAX,qword ptr [RBP + -0x68]
LEA RCX,[0x260b48]
MOVSXD RAX,dword ptr [RCX + RAX*0x4]
ADD RAX,RCX
switchD:
JMP RAX
caseD_7:
MOV RAX,qword ptr [RBP + -0x18]
MOV qword ptr [RBP + -0x20],RAX
MOV RAX,qword ptr [RBP + -0x18]
SHR RAX,0x20
MOV qword ptr [RBP + -0x28],RAX
MOV RAX,qword ptr [RBP + -0x20]
MOV CL,AL
MOV RAX,qword ptr [RBP + -0x10]
MOV byte ptr [RAX + 0x6],CL
MOV RAX,qword ptr [RBP + -0x20]
SHR RAX,0x8
MOV CL,AL
MOV RAX,qword ptr [RBP + -0x10]
MOV byte ptr [RAX + 0x5],CL
MOV RAX,qword ptr [RBP + -0x20]
SHR RAX,0x10
MOV CL,AL
MOV RAX,qword ptr [RBP + -0x10]
MOV byte ptr [RAX + 0x4],CL
MOV RAX,qword ptr [RBP + -0x20]
SHR RAX,0x18
MOV CL,AL
MOV RAX,qword ptr [RBP + -0x10]
MOV byte ptr [RAX + 0x3],CL
MOV RAX,qword ptr [RBP + -0x28]
MOV CL,AL
MOV RAX,qword ptr [RBP + -0x10]
MOV byte ptr [RAX + 0x2],CL
MOV RAX,qword ptr [RBP + -0x28]
SHR RAX,0x8
MOV CL,AL
MOV RAX,qword ptr [RBP + -0x10]
MOV byte ptr [RAX + 0x1],CL
MOV RAX,qword ptr [RBP + -0x28]
SHR RAX,0x10
MOV CL,AL
MOV RAX,qword ptr [RBP + -0x10]
MOV byte ptr [RAX],CL
JMP 0x0013ce76
caseD_6:
MOV RAX,qword ptr [RBP + -0x18]
MOV qword ptr [RBP + -0x30],RAX
MOV RAX,qword ptr [RBP + -0x18]
SHR RAX,0x20
MOV qword ptr [RBP + -0x38],RAX
MOV RAX,qword ptr [RBP + -0x30]
MOV CL,AL
MOV RAX,qword ptr [RBP + -0x10]
MOV byte ptr [RAX + 0x5],CL
MOV RAX,qword ptr [RBP + -0x30]
SHR RAX,0x8
MOV CL,AL
MOV RAX,qword ptr [RBP + -0x10]
MOV byte ptr [RAX + 0x4],CL
MOV RAX,qword ptr [RBP + -0x30]
SHR RAX,0x10
MOV CL,AL
MOV RAX,qword ptr [RBP + -0x10]
MOV byte ptr [RAX + 0x3],CL
MOV RAX,qword ptr [RBP + -0x30]
SHR RAX,0x18
MOV CL,AL
MOV RAX,qword ptr [RBP + -0x10]
MOV byte ptr [RAX + 0x2],CL
MOV RAX,qword ptr [RBP + -0x38]
MOV CL,AL
MOV RAX,qword ptr [RBP + -0x10]
MOV byte ptr [RAX + 0x1],CL
MOV RAX,qword ptr [RBP + -0x38]
SHR RAX,0x8
MOV CL,AL
MOV RAX,qword ptr [RBP + -0x10]
MOV byte ptr [RAX],CL
JMP 0x0013ce76
caseD_5:
MOV RAX,qword ptr [RBP + -0x18]
MOV qword ptr [RBP + -0x40],RAX
MOV RAX,qword ptr [RBP + -0x18]
SHR RAX,0x20
MOV qword ptr [RBP + -0x48],RAX
MOV RAX,qword ptr [RBP + -0x40]
MOV CL,AL
MOV RAX,qword ptr [RBP + -0x10]
MOV byte ptr [RAX + 0x4],CL
MOV RAX,qword ptr [RBP + -0x40]
SHR RAX,0x8
MOV CL,AL
MOV RAX,qword ptr [RBP + -0x10]
MOV byte ptr [RAX + 0x3],CL
MOV RAX,qword ptr [RBP + -0x40]
SHR RAX,0x10
MOV CL,AL
MOV RAX,qword ptr [RBP + -0x10]
MOV byte ptr [RAX + 0x2],CL
MOV RAX,qword ptr [RBP + -0x40]
SHR RAX,0x18
MOV CL,AL
MOV RAX,qword ptr [RBP + -0x10]
MOV byte ptr [RAX + 0x1],CL
MOV RAX,qword ptr [RBP + -0x48]
MOV CL,AL
MOV RAX,qword ptr [RBP + -0x10]
MOV byte ptr [RAX],CL
JMP 0x0013ce76
caseD_4:
MOV RAX,qword ptr [RBP + -0x18]
MOV qword ptr [RBP + -0x50],RAX
MOV RAX,qword ptr [RBP + -0x50]
MOV CL,AL
MOV RAX,qword ptr [RBP + -0x10]
MOV byte ptr [RAX + 0x3],CL
MOV RAX,qword ptr [RBP + -0x50]
SHR RAX,0x8
MOV CL,AL
MOV RAX,qword ptr [RBP + -0x10]
MOV byte ptr [RAX + 0x2],CL
MOV RAX,qword ptr [RBP + -0x50]
SHR RAX,0x10
MOV CL,AL
MOV RAX,qword ptr [RBP + -0x10]
MOV byte ptr [RAX + 0x1],CL
MOV RAX,qword ptr [RBP + -0x50]
SHR RAX,0x18
MOV CL,AL
MOV RAX,qword ptr [RBP + -0x10]
MOV byte ptr [RAX],CL
JMP 0x0013ce76
caseD_3:
MOV RAX,qword ptr [RBP + -0x18]
MOV qword ptr [RBP + -0x58],RAX
MOV RAX,qword ptr [RBP + -0x58]
MOV CL,AL
MOV RAX,qword ptr [RBP + -0x10]
MOV byte ptr [RAX + 0x2],CL
MOV RAX,qword ptr [RBP + -0x58]
SHR RAX,0x8
MOV CL,AL
MOV RAX,qword ptr [RBP + -0x10]
MOV byte ptr [RAX + 0x1],CL
MOV RAX,qword ptr [RBP + -0x58]
SHR RAX,0x10
MOV CL,AL
MOV RAX,qword ptr [RBP + -0x10]
MOV byte ptr [RAX],CL
JMP 0x0013ce76
caseD_2:
MOV RAX,qword ptr [RBP + -0x18]
MOV dword ptr [RBP + -0x5c],EAX
MOV EAX,dword ptr [RBP + -0x5c]
MOV CL,AL
MOV RAX,qword ptr [RBP + -0x10]
MOV byte ptr [RAX + 0x1],CL
MOV EAX,dword ptr [RBP + -0x5c]
SHR EAX,0x8
MOV CL,AL
MOV RAX,qword ptr [RBP + -0x10]
MOV byte ptr [RAX],CL
JMP 0x0013ce76
caseD_1:
MOV RAX,qword ptr [RBP + -0x18]
MOV CL,AL
MOV RAX,qword ptr [RBP + -0x10]
MOV byte ptr [RAX],CL
JMP 0x0013ce76
default:
CALL 0x00129570
LAB_0013ce76:
ADD RSP,0x70
POP RBP
RET
|
void _ma_kpointer(long *param_1,int1 *param_2,ulong param_3)
{
int1 uVar1;
int1 uVar2;
int1 uVar3;
int1 uVar4;
int1 uVar5;
int1 uVar6;
param_3 = param_3 / maria_block_size;
uVar1 = (int1)param_3;
uVar2 = (int1)(param_3 >> 8);
uVar3 = (int1)(param_3 >> 0x10);
uVar4 = (int1)(param_3 >> 0x18);
uVar5 = (int1)(param_3 >> 0x20);
uVar6 = (int1)(param_3 >> 0x28);
switch(*(int4 *)(*param_1 + 0x3e4)) {
case 1:
*param_2 = uVar1;
break;
case 2:
param_2[1] = uVar1;
*param_2 = uVar2;
break;
case 3:
param_2[2] = uVar1;
param_2[1] = uVar2;
*param_2 = uVar3;
break;
case 4:
param_2[3] = uVar1;
param_2[2] = uVar2;
param_2[1] = uVar3;
*param_2 = uVar4;
break;
case 5:
param_2[4] = uVar1;
param_2[3] = uVar2;
param_2[2] = uVar3;
param_2[1] = uVar4;
*param_2 = uVar5;
break;
case 6:
param_2[5] = uVar1;
param_2[4] = uVar2;
param_2[3] = uVar3;
param_2[2] = uVar4;
param_2[1] = uVar5;
*param_2 = uVar6;
break;
case 7:
param_2[6] = uVar1;
param_2[5] = uVar2;
param_2[4] = uVar3;
param_2[3] = uVar4;
param_2[2] = uVar5;
param_2[1] = uVar6;
*param_2 = (char)(param_3 >> 0x30);
break;
default:
/* WARNING: Subroutine does not return */
abort();
}
return;
}
| |
42,265 | rtree_insert_level | eloqsql/storage/myisam/rt_index.c | static int rtree_insert_level(MI_INFO *info, uint keynr, uchar *key,
uint key_length, int ins_level)
{
my_off_t old_root;
MI_KEYDEF *keyinfo = info->s->keyinfo + keynr;
int res;
my_off_t new_page;
DBUG_ENTER("rtree_insert_level");
if ((old_root = info->s->state.key_root[keynr]) == HA_OFFSET_ERROR)
{
if ((old_root = _mi_new(info, keyinfo, DFLT_INIT_HITS)) == HA_OFFSET_ERROR)
DBUG_RETURN(-1);
info->buff_used = 1;
mi_putint(info->buff, 2, 0);
res = rtree_add_key(info, keyinfo, key, key_length, info->buff, NULL);
if (_mi_write_keypage(info, keyinfo, old_root, DFLT_INIT_HITS, info->buff))
DBUG_RETURN(1);
info->s->state.key_root[keynr] = old_root;
DBUG_RETURN(res);
}
switch ((res = rtree_insert_req(info, keyinfo, key, key_length,
old_root, &new_page, ins_level, 0)))
{
case 0: /* root was not split */
{
break;
}
case 1: /* root was split, grow a new root */
{
uchar *new_root_buf= info->buff + info->s->base.max_key_block_length;
my_off_t new_root;
uchar *new_key;
uint nod_flag = info->s->base.key_reflength;
DBUG_PRINT("rtree", ("root was split, grow a new root"));
mi_putint(new_root_buf, 2, nod_flag);
if ((new_root = _mi_new(info, keyinfo, DFLT_INIT_HITS)) ==
HA_OFFSET_ERROR)
goto err1;
new_key = new_root_buf + keyinfo->block_length + nod_flag;
_mi_kpointer(info, new_key - nod_flag, old_root);
if (rtree_set_key_mbr(info, keyinfo, new_key, key_length, old_root))
goto err1;
if (rtree_add_key(info, keyinfo, new_key, key_length, new_root_buf, NULL)
== -1)
goto err1;
_mi_kpointer(info, new_key - nod_flag, new_page);
if (rtree_set_key_mbr(info, keyinfo, new_key, key_length, new_page))
goto err1;
if (rtree_add_key(info, keyinfo, new_key, key_length, new_root_buf, NULL)
== -1)
goto err1;
if (_mi_write_keypage(info, keyinfo, new_root,
DFLT_INIT_HITS, new_root_buf))
goto err1;
info->s->state.key_root[keynr] = new_root;
DBUG_PRINT("rtree", ("new root page: %lu level: %d nod_flag: %u",
(ulong) new_root, 0, mi_test_if_nod(new_root_buf)));
break;
err1:
DBUG_RETURN(-1); /* purecov: inspected */
}
default:
case -1: /* error */
{
break;
}
}
DBUG_RETURN(res);
} | O0 | c | rtree_insert_level:
pushq %rbp
movq %rsp, %rbp
subq $0x90, %rsp
movq %rdi, -0x10(%rbp)
movl %esi, -0x14(%rbp)
movq %rdx, -0x20(%rbp)
movl %ecx, -0x24(%rbp)
movl %r8d, -0x28(%rbp)
movq -0x10(%rbp), %rax
movq (%rax), %rax
movq 0x218(%rax), %rax
movl -0x14(%rbp), %ecx
imulq $0x70, %rcx, %rcx
addq %rcx, %rax
movq %rax, -0x38(%rbp)
movq -0x10(%rbp), %rax
movq (%rax), %rax
movq 0x98(%rax), %rax
movl -0x14(%rbp), %ecx
movq (%rax,%rcx,8), %rax
movq %rax, -0x30(%rbp)
cmpq $-0x1, %rax
jne 0x50ac5
movq -0x10(%rbp), %rdi
movq -0x38(%rbp), %rsi
movl $0x3, %edx
callq 0x649e0
movq %rax, -0x30(%rbp)
cmpq $-0x1, %rax
jne 0x50a06
jmp 0x509fa
movl $0xffffffff, -0x4(%rbp) # imm = 0xFFFFFFFF
jmp 0x50ce3
movq -0x10(%rbp), %rax
movb $0x1, 0x33d(%rax)
movw $0x2, -0x4a(%rbp)
movzwl -0x4a(%rbp), %eax
movl %eax, -0x50(%rbp)
movl -0x50(%rbp), %eax
movb %al, %cl
movq -0x10(%rbp), %rax
movq 0x100(%rax), %rax
movb %cl, 0x1(%rax)
movl -0x50(%rbp), %eax
shrl $0x8, %eax
movb %al, %cl
movq -0x10(%rbp), %rax
movq 0x100(%rax), %rax
movb %cl, (%rax)
movq -0x10(%rbp), %rdi
movq -0x38(%rbp), %rsi
movq -0x20(%rbp), %rdx
movl -0x24(%rbp), %ecx
movq -0x10(%rbp), %rax
movq 0x100(%rax), %r8
xorl %eax, %eax
movl %eax, %r9d
callq 0x52150
movl %eax, -0x3c(%rbp)
movq -0x10(%rbp), %rdi
movq -0x38(%rbp), %rsi
movq -0x30(%rbp), %rdx
movq -0x10(%rbp), %rax
movq 0x100(%rax), %r8
movl $0x3, %ecx
callq 0x646b0
cmpl $0x0, %eax
je 0x50aa1
jmp 0x50a95
movl $0x1, -0x4(%rbp)
jmp 0x50ce3
movq -0x30(%rbp), %rdx
movq -0x10(%rbp), %rax
movq (%rax), %rax
movq 0x98(%rax), %rax
movl -0x14(%rbp), %ecx
movq %rdx, (%rax,%rcx,8)
movl -0x3c(%rbp), %eax
movl %eax, -0x4(%rbp)
jmp 0x50ce3
movq -0x10(%rbp), %rdi
movq -0x38(%rbp), %rsi
movq -0x20(%rbp), %rdx
movl -0x24(%rbp), %ecx
movq -0x30(%rbp), %r8
movl -0x28(%rbp), %r9d
movq %rsp, %rax
movl %r9d, (%rax)
movl $0x0, 0x8(%rax)
leaq -0x48(%rbp), %r9
callq 0x51b70
movl %eax, -0x3c(%rbp)
movl %eax, %ecx
movl %ecx, -0x78(%rbp)
subl $-0x1, %eax
je 0x50cd9
jmp 0x50b05
movl -0x78(%rbp), %eax
testl %eax, %eax
je 0x50b1b
jmp 0x50b0e
movl -0x78(%rbp), %eax
subl $0x1, %eax
je 0x50b20
jmp 0x50cd7
jmp 0x50cdb
movq -0x10(%rbp), %rax
movq 0x100(%rax), %rax
movq -0x10(%rbp), %rcx
movq (%rcx), %rcx
movl 0x190(%rcx), %ecx
addq %rcx, %rax
movq %rax, -0x58(%rbp)
movq -0x10(%rbp), %rax
movq (%rax), %rax
movl 0x17c(%rax), %eax
movl %eax, -0x6c(%rbp)
jmp 0x50b51
movl -0x6c(%rbp), %edx
xorl %eax, %eax
movl $0x8000, %ecx # imm = 0x8000
cmpl $0x0, %edx
cmovnel %ecx, %eax
addl $0x2, %eax
movw %ax, -0x6e(%rbp)
movzwl -0x6e(%rbp), %eax
movl %eax, -0x74(%rbp)
movl -0x74(%rbp), %eax
movb %al, %cl
movq -0x58(%rbp), %rax
movb %cl, 0x1(%rax)
movl -0x74(%rbp), %eax
shrl $0x8, %eax
movb %al, %cl
movq -0x58(%rbp), %rax
movb %cl, (%rax)
movq -0x10(%rbp), %rdi
movq -0x38(%rbp), %rsi
movl $0x3, %edx
callq 0x649e0
movq %rax, -0x60(%rbp)
cmpq $-0x1, %rax
jne 0x50baa
jmp 0x50ccc
movq -0x58(%rbp), %rax
movq -0x38(%rbp), %rcx
movzwl 0xe(%rcx), %ecx
movslq %ecx, %rcx
addq %rcx, %rax
movl -0x6c(%rbp), %ecx
addq %rcx, %rax
movq %rax, -0x68(%rbp)
movq -0x10(%rbp), %rdi
movq -0x68(%rbp), %rsi
movl -0x6c(%rbp), %eax
movl %eax, %ecx
xorl %eax, %eax
subq %rcx, %rax
addq %rax, %rsi
movq -0x30(%rbp), %rdx
callq 0x46ab0
movq -0x10(%rbp), %rdi
movq -0x38(%rbp), %rsi
movq -0x68(%rbp), %rdx
movl -0x24(%rbp), %ecx
movq -0x30(%rbp), %r8
callq 0x52420
cmpl $0x0, %eax
je 0x50c06
jmp 0x50ccc
movq -0x10(%rbp), %rdi
movq -0x38(%rbp), %rsi
movq -0x68(%rbp), %rdx
movl -0x24(%rbp), %ecx
movq -0x58(%rbp), %r8
xorl %eax, %eax
movl %eax, %r9d
callq 0x52150
cmpl $-0x1, %eax
jne 0x50c2d
jmp 0x50ccc
movq -0x10(%rbp), %rdi
movq -0x68(%rbp), %rsi
movl -0x6c(%rbp), %eax
movl %eax, %ecx
xorl %eax, %eax
subq %rcx, %rax
addq %rax, %rsi
movq -0x48(%rbp), %rdx
callq 0x46ab0
movq -0x10(%rbp), %rdi
movq -0x38(%rbp), %rsi
movq -0x68(%rbp), %rdx
movl -0x24(%rbp), %ecx
movq -0x48(%rbp), %r8
callq 0x52420
cmpl $0x0, %eax
je 0x50c6a
jmp 0x50ccc
movq -0x10(%rbp), %rdi
movq -0x38(%rbp), %rsi
movq -0x68(%rbp), %rdx
movl -0x24(%rbp), %ecx
movq -0x58(%rbp), %r8
xorl %eax, %eax
movl %eax, %r9d
callq 0x52150
cmpl $-0x1, %eax
jne 0x50c8e
jmp 0x50ccc
movq -0x10(%rbp), %rdi
movq -0x38(%rbp), %rsi
movq -0x60(%rbp), %rdx
movq -0x58(%rbp), %r8
movl $0x3, %ecx
callq 0x646b0
cmpl $0x0, %eax
je 0x50caf
jmp 0x50ccc
movq -0x60(%rbp), %rdx
movq -0x10(%rbp), %rax
movq (%rax), %rax
movq 0x98(%rax), %rax
movl -0x14(%rbp), %ecx
movq %rdx, (%rax,%rcx,8)
jmp 0x50cca
jmp 0x50cdb
jmp 0x50cce
movl $0xffffffff, -0x4(%rbp) # imm = 0xFFFFFFFF
jmp 0x50ce3
jmp 0x50cd9
jmp 0x50cdb
jmp 0x50cdd
movl -0x3c(%rbp), %eax
movl %eax, -0x4(%rbp)
movl -0x4(%rbp), %eax
addq $0x90, %rsp
popq %rbp
retq
nop
| rtree_insert_level:
push rbp
mov rbp, rsp
sub rsp, 90h
mov [rbp+var_10], rdi
mov [rbp+var_14], esi
mov [rbp+var_20], rdx
mov [rbp+var_24], ecx
mov [rbp+var_28], r8d
mov rax, [rbp+var_10]
mov rax, [rax]
mov rax, [rax+218h]
mov ecx, [rbp+var_14]
imul rcx, 70h ; 'p'
add rax, rcx
mov [rbp+var_38], rax
mov rax, [rbp+var_10]
mov rax, [rax]
mov rax, [rax+98h]
mov ecx, [rbp+var_14]
mov rax, [rax+rcx*8]
mov [rbp+var_30], rax
cmp rax, 0FFFFFFFFFFFFFFFFh
jnz loc_50AC5
mov rdi, [rbp+var_10]
mov rsi, [rbp+var_38]
mov edx, 3
call _mi_new
mov [rbp+var_30], rax
cmp rax, 0FFFFFFFFFFFFFFFFh
jnz short loc_50A06
jmp short $+2
loc_509FA:
mov [rbp+var_4], 0FFFFFFFFh
jmp loc_50CE3
loc_50A06:
mov rax, [rbp+var_10]
mov byte ptr [rax+33Dh], 1
mov [rbp+var_4A], 2
movzx eax, [rbp+var_4A]
mov [rbp+var_50], eax
mov eax, [rbp+var_50]
mov cl, al
mov rax, [rbp+var_10]
mov rax, [rax+100h]
mov [rax+1], cl
mov eax, [rbp+var_50]
shr eax, 8
mov cl, al
mov rax, [rbp+var_10]
mov rax, [rax+100h]
mov [rax], cl
mov rdi, [rbp+var_10]
mov rsi, [rbp+var_38]
mov rdx, [rbp+var_20]
mov ecx, [rbp+var_24]
mov rax, [rbp+var_10]
mov r8, [rax+100h]
xor eax, eax
mov r9d, eax
call rtree_add_key
mov [rbp+var_3C], eax
mov rdi, [rbp+var_10]
mov rsi, [rbp+var_38]
mov rdx, [rbp+var_30]
mov rax, [rbp+var_10]
mov r8, [rax+100h]
mov ecx, 3
call _mi_write_keypage
cmp eax, 0
jz short loc_50AA1
jmp short $+2
loc_50A95:
mov [rbp+var_4], 1
jmp loc_50CE3
loc_50AA1:
mov rdx, [rbp+var_30]
mov rax, [rbp+var_10]
mov rax, [rax]
mov rax, [rax+98h]
mov ecx, [rbp+var_14]
mov [rax+rcx*8], rdx
mov eax, [rbp+var_3C]
mov [rbp+var_4], eax
jmp loc_50CE3
loc_50AC5:
mov rdi, [rbp+var_10]
mov rsi, [rbp+var_38]
mov rdx, [rbp+var_20]
mov ecx, [rbp+var_24]
mov r8, [rbp+var_30]
mov r9d, [rbp+var_28]
mov rax, rsp
mov [rax], r9d
mov dword ptr [rax+8], 0
lea r9, [rbp+var_48]
call rtree_insert_req
mov [rbp+var_3C], eax
mov ecx, eax
mov [rbp+var_78], ecx
sub eax, 0FFFFFFFFh
jz loc_50CD9
jmp short $+2
loc_50B05:
mov eax, [rbp+var_78]
test eax, eax
jz short loc_50B1B
jmp short $+2
loc_50B0E:
mov eax, [rbp+var_78]
sub eax, 1
jz short loc_50B20
jmp loc_50CD7
loc_50B1B:
jmp loc_50CDB
loc_50B20:
mov rax, [rbp+var_10]
mov rax, [rax+100h]
mov rcx, [rbp+var_10]
mov rcx, [rcx]
mov ecx, [rcx+190h]
add rax, rcx
mov [rbp+var_58], rax
mov rax, [rbp+var_10]
mov rax, [rax]
mov eax, [rax+17Ch]
mov [rbp+var_6C], eax
jmp short $+2
loc_50B51:
mov edx, [rbp+var_6C]
xor eax, eax
mov ecx, 8000h
cmp edx, 0
cmovnz eax, ecx
add eax, 2
mov [rbp+var_6E], ax
movzx eax, [rbp+var_6E]
mov [rbp+var_74], eax
mov eax, [rbp+var_74]
mov cl, al
mov rax, [rbp+var_58]
mov [rax+1], cl
mov eax, [rbp+var_74]
shr eax, 8
mov cl, al
mov rax, [rbp+var_58]
mov [rax], cl
mov rdi, [rbp+var_10]
mov rsi, [rbp+var_38]
mov edx, 3
call _mi_new
mov [rbp+var_60], rax
cmp rax, 0FFFFFFFFFFFFFFFFh
jnz short loc_50BAA
jmp loc_50CCC
loc_50BAA:
mov rax, [rbp+var_58]
mov rcx, [rbp+var_38]
movzx ecx, word ptr [rcx+0Eh]
movsxd rcx, ecx
add rax, rcx
mov ecx, [rbp+var_6C]
add rax, rcx
mov [rbp+var_68], rax
mov rdi, [rbp+var_10]
mov rsi, [rbp+var_68]
mov eax, [rbp+var_6C]
mov ecx, eax
xor eax, eax
sub rax, rcx
add rsi, rax
mov rdx, [rbp+var_30]
call _mi_kpointer
mov rdi, [rbp+var_10]
mov rsi, [rbp+var_38]
mov rdx, [rbp+var_68]
mov ecx, [rbp+var_24]
mov r8, [rbp+var_30]
call rtree_set_key_mbr
cmp eax, 0
jz short loc_50C06
jmp loc_50CCC
loc_50C06:
mov rdi, [rbp+var_10]
mov rsi, [rbp+var_38]
mov rdx, [rbp+var_68]
mov ecx, [rbp+var_24]
mov r8, [rbp+var_58]
xor eax, eax
mov r9d, eax
call rtree_add_key
cmp eax, 0FFFFFFFFh
jnz short loc_50C2D
jmp loc_50CCC
loc_50C2D:
mov rdi, [rbp+var_10]
mov rsi, [rbp+var_68]
mov eax, [rbp+var_6C]
mov ecx, eax
xor eax, eax
sub rax, rcx
add rsi, rax
mov rdx, [rbp+var_48]
call _mi_kpointer
mov rdi, [rbp+var_10]
mov rsi, [rbp+var_38]
mov rdx, [rbp+var_68]
mov ecx, [rbp+var_24]
mov r8, [rbp+var_48]
call rtree_set_key_mbr
cmp eax, 0
jz short loc_50C6A
jmp short loc_50CCC
loc_50C6A:
mov rdi, [rbp+var_10]
mov rsi, [rbp+var_38]
mov rdx, [rbp+var_68]
mov ecx, [rbp+var_24]
mov r8, [rbp+var_58]
xor eax, eax
mov r9d, eax
call rtree_add_key
cmp eax, 0FFFFFFFFh
jnz short loc_50C8E
jmp short loc_50CCC
loc_50C8E:
mov rdi, [rbp+var_10]
mov rsi, [rbp+var_38]
mov rdx, [rbp+var_60]
mov r8, [rbp+var_58]
mov ecx, 3
call _mi_write_keypage
cmp eax, 0
jz short loc_50CAF
jmp short loc_50CCC
loc_50CAF:
mov rdx, [rbp+var_60]
mov rax, [rbp+var_10]
mov rax, [rax]
mov rax, [rax+98h]
mov ecx, [rbp+var_14]
mov [rax+rcx*8], rdx
jmp short $+2
loc_50CCA:
jmp short loc_50CDB
loc_50CCC:
jmp short $+2
loc_50CCE:
mov [rbp+var_4], 0FFFFFFFFh
jmp short loc_50CE3
loc_50CD7:
jmp short $+2
loc_50CD9:
jmp short $+2
loc_50CDB:
jmp short $+2
loc_50CDD:
mov eax, [rbp+var_3C]
mov [rbp+var_4], eax
loc_50CE3:
mov eax, [rbp+var_4]
add rsp, 90h
pop rbp
retn
| long long rtree_insert_level(_QWORD *a1, unsigned int a2, long long a3, unsigned int a4, int a5)
{
__int16 v5; // ax
int v7; // [rsp+24h] [rbp-6Ch]
_BYTE *v8; // [rsp+28h] [rbp-68h]
long long v9; // [rsp+30h] [rbp-60h]
_BYTE *v10; // [rsp+38h] [rbp-58h]
unsigned long long v11; // [rsp+48h] [rbp-48h] BYREF
unsigned int inserted; // [rsp+54h] [rbp-3Ch]
long long v13; // [rsp+58h] [rbp-38h]
unsigned long long v14; // [rsp+60h] [rbp-30h]
int v15; // [rsp+68h] [rbp-28h]
unsigned int v16; // [rsp+6Ch] [rbp-24h]
long long v17; // [rsp+70h] [rbp-20h]
unsigned int v18; // [rsp+7Ch] [rbp-14h]
_QWORD *v19; // [rsp+80h] [rbp-10h]
v19 = a1;
v18 = a2;
v17 = a3;
v16 = a4;
v15 = a5;
v13 = 112LL * a2 + *(_QWORD *)(*a1 + 536LL);
v14 = *(_QWORD *)(*(_QWORD *)(*a1 + 152LL) + 8LL * a2);
if ( v14 != -1LL )
{
inserted = rtree_insert_req((_DWORD)v19, v13, v17, v16, v14, (unsigned int)&v11, v15, 0);
if ( inserted == 1 )
{
v10 = (_BYTE *)(*(unsigned int *)(*v19 + 400LL) + v19[32]);
v7 = *(_DWORD *)(*v19 + 380LL);
v5 = 0;
if ( v7 )
v5 = 0x8000;
v10[1] = v5 + 2;
*v10 = (unsigned __int16)(v5 + 2) >> 8;
v9 = mi_new(v19, v13, 3LL);
if ( v9 == -1 )
return (unsigned int)-1;
v8 = &v10[*(unsigned __int16 *)(v13 + 14) + v7];
mi_kpointer((long long)v19, &v10[*(unsigned __int16 *)(v13 + 14)], v14);
if ( (unsigned int)rtree_set_key_mbr(v19, v13, v8, v16, v14) )
return (unsigned int)-1;
if ( (unsigned int)rtree_add_key(v19, v13, v8, v16, v10, 0LL) == -1 )
return (unsigned int)-1;
mi_kpointer((long long)v19, &v8[-v7], v11);
if ( (unsigned int)rtree_set_key_mbr(v19, v13, v8, v16, v11)
|| (unsigned int)rtree_add_key(v19, v13, v8, v16, v10, 0LL) == -1
|| (unsigned int)mi_write_keypage(v19, v13, v9, 3LL, v10) )
{
return (unsigned int)-1;
}
*(_QWORD *)(*(_QWORD *)(*v19 + 152LL) + 8LL * v18) = v9;
}
return inserted;
}
v14 = mi_new(v19, v13, 3LL);
if ( v14 == -1LL )
{
return (unsigned int)-1;
}
else
{
*((_BYTE *)v19 + 829) = 1;
*(_BYTE *)(v19[32] + 1LL) = 2;
*(_BYTE *)v19[32] = 0;
inserted = rtree_add_key(v19, v13, v17, v16, v19[32], 0LL);
if ( (unsigned int)mi_write_keypage(v19, v13, v14, 3LL, v19[32]) )
{
return 1;
}
else
{
*(_QWORD *)(*(_QWORD *)(*v19 + 152LL) + 8LL * v18) = v14;
return inserted;
}
}
}
| rtree_insert_level:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x90
MOV qword ptr [RBP + -0x10],RDI
MOV dword ptr [RBP + -0x14],ESI
MOV qword ptr [RBP + -0x20],RDX
MOV dword ptr [RBP + -0x24],ECX
MOV dword ptr [RBP + -0x28],R8D
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX]
MOV RAX,qword ptr [RAX + 0x218]
MOV ECX,dword ptr [RBP + -0x14]
IMUL RCX,RCX,0x70
ADD RAX,RCX
MOV qword ptr [RBP + -0x38],RAX
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX]
MOV RAX,qword ptr [RAX + 0x98]
MOV ECX,dword ptr [RBP + -0x14]
MOV RAX,qword ptr [RAX + RCX*0x8]
MOV qword ptr [RBP + -0x30],RAX
CMP RAX,-0x1
JNZ 0x00150ac5
MOV RDI,qword ptr [RBP + -0x10]
MOV RSI,qword ptr [RBP + -0x38]
MOV EDX,0x3
CALL 0x001649e0
MOV qword ptr [RBP + -0x30],RAX
CMP RAX,-0x1
JNZ 0x00150a06
JMP 0x001509fa
LAB_001509fa:
MOV dword ptr [RBP + -0x4],0xffffffff
JMP 0x00150ce3
LAB_00150a06:
MOV RAX,qword ptr [RBP + -0x10]
MOV byte ptr [RAX + 0x33d],0x1
MOV word ptr [RBP + -0x4a],0x2
MOVZX EAX,word ptr [RBP + -0x4a]
MOV dword ptr [RBP + -0x50],EAX
MOV EAX,dword ptr [RBP + -0x50]
MOV CL,AL
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX + 0x100]
MOV byte ptr [RAX + 0x1],CL
MOV EAX,dword ptr [RBP + -0x50]
SHR EAX,0x8
MOV CL,AL
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX + 0x100]
MOV byte ptr [RAX],CL
MOV RDI,qword ptr [RBP + -0x10]
MOV RSI,qword ptr [RBP + -0x38]
MOV RDX,qword ptr [RBP + -0x20]
MOV ECX,dword ptr [RBP + -0x24]
MOV RAX,qword ptr [RBP + -0x10]
MOV R8,qword ptr [RAX + 0x100]
XOR EAX,EAX
MOV R9D,EAX
CALL 0x00152150
MOV dword ptr [RBP + -0x3c],EAX
MOV RDI,qword ptr [RBP + -0x10]
MOV RSI,qword ptr [RBP + -0x38]
MOV RDX,qword ptr [RBP + -0x30]
MOV RAX,qword ptr [RBP + -0x10]
MOV R8,qword ptr [RAX + 0x100]
MOV ECX,0x3
CALL 0x001646b0
CMP EAX,0x0
JZ 0x00150aa1
JMP 0x00150a95
LAB_00150a95:
MOV dword ptr [RBP + -0x4],0x1
JMP 0x00150ce3
LAB_00150aa1:
MOV RDX,qword ptr [RBP + -0x30]
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX]
MOV RAX,qword ptr [RAX + 0x98]
MOV ECX,dword ptr [RBP + -0x14]
MOV qword ptr [RAX + RCX*0x8],RDX
MOV EAX,dword ptr [RBP + -0x3c]
MOV dword ptr [RBP + -0x4],EAX
JMP 0x00150ce3
LAB_00150ac5:
MOV RDI,qword ptr [RBP + -0x10]
MOV RSI,qword ptr [RBP + -0x38]
MOV RDX,qword ptr [RBP + -0x20]
MOV ECX,dword ptr [RBP + -0x24]
MOV R8,qword ptr [RBP + -0x30]
MOV R9D,dword ptr [RBP + -0x28]
MOV RAX,RSP
MOV dword ptr [RAX],R9D
MOV dword ptr [RAX + 0x8],0x0
LEA R9,[RBP + -0x48]
CALL 0x00151b70
MOV dword ptr [RBP + -0x3c],EAX
MOV ECX,EAX
MOV dword ptr [RBP + -0x78],ECX
SUB EAX,-0x1
JZ 0x00150cd9
JMP 0x00150b05
LAB_00150b05:
MOV EAX,dword ptr [RBP + -0x78]
TEST EAX,EAX
JZ 0x00150b1b
JMP 0x00150b0e
LAB_00150b0e:
MOV EAX,dword ptr [RBP + -0x78]
SUB EAX,0x1
JZ 0x00150b20
JMP 0x00150cd7
LAB_00150b1b:
JMP 0x00150cdb
LAB_00150b20:
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX + 0x100]
MOV RCX,qword ptr [RBP + -0x10]
MOV RCX,qword ptr [RCX]
MOV ECX,dword ptr [RCX + 0x190]
ADD RAX,RCX
MOV qword ptr [RBP + -0x58],RAX
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX]
MOV EAX,dword ptr [RAX + 0x17c]
MOV dword ptr [RBP + -0x6c],EAX
JMP 0x00150b51
LAB_00150b51:
MOV EDX,dword ptr [RBP + -0x6c]
XOR EAX,EAX
MOV ECX,0x8000
CMP EDX,0x0
CMOVNZ EAX,ECX
ADD EAX,0x2
MOV word ptr [RBP + -0x6e],AX
MOVZX EAX,word ptr [RBP + -0x6e]
MOV dword ptr [RBP + -0x74],EAX
MOV EAX,dword ptr [RBP + -0x74]
MOV CL,AL
MOV RAX,qword ptr [RBP + -0x58]
MOV byte ptr [RAX + 0x1],CL
MOV EAX,dword ptr [RBP + -0x74]
SHR EAX,0x8
MOV CL,AL
MOV RAX,qword ptr [RBP + -0x58]
MOV byte ptr [RAX],CL
MOV RDI,qword ptr [RBP + -0x10]
MOV RSI,qword ptr [RBP + -0x38]
MOV EDX,0x3
CALL 0x001649e0
MOV qword ptr [RBP + -0x60],RAX
CMP RAX,-0x1
JNZ 0x00150baa
JMP 0x00150ccc
LAB_00150baa:
MOV RAX,qword ptr [RBP + -0x58]
MOV RCX,qword ptr [RBP + -0x38]
MOVZX ECX,word ptr [RCX + 0xe]
MOVSXD RCX,ECX
ADD RAX,RCX
MOV ECX,dword ptr [RBP + -0x6c]
ADD RAX,RCX
MOV qword ptr [RBP + -0x68],RAX
MOV RDI,qword ptr [RBP + -0x10]
MOV RSI,qword ptr [RBP + -0x68]
MOV EAX,dword ptr [RBP + -0x6c]
MOV ECX,EAX
XOR EAX,EAX
SUB RAX,RCX
ADD RSI,RAX
MOV RDX,qword ptr [RBP + -0x30]
CALL 0x00146ab0
MOV RDI,qword ptr [RBP + -0x10]
MOV RSI,qword ptr [RBP + -0x38]
MOV RDX,qword ptr [RBP + -0x68]
MOV ECX,dword ptr [RBP + -0x24]
MOV R8,qword ptr [RBP + -0x30]
CALL 0x00152420
CMP EAX,0x0
JZ 0x00150c06
JMP 0x00150ccc
LAB_00150c06:
MOV RDI,qword ptr [RBP + -0x10]
MOV RSI,qword ptr [RBP + -0x38]
MOV RDX,qword ptr [RBP + -0x68]
MOV ECX,dword ptr [RBP + -0x24]
MOV R8,qword ptr [RBP + -0x58]
XOR EAX,EAX
MOV R9D,EAX
CALL 0x00152150
CMP EAX,-0x1
JNZ 0x00150c2d
JMP 0x00150ccc
LAB_00150c2d:
MOV RDI,qword ptr [RBP + -0x10]
MOV RSI,qword ptr [RBP + -0x68]
MOV EAX,dword ptr [RBP + -0x6c]
MOV ECX,EAX
XOR EAX,EAX
SUB RAX,RCX
ADD RSI,RAX
MOV RDX,qword ptr [RBP + -0x48]
CALL 0x00146ab0
MOV RDI,qword ptr [RBP + -0x10]
MOV RSI,qword ptr [RBP + -0x38]
MOV RDX,qword ptr [RBP + -0x68]
MOV ECX,dword ptr [RBP + -0x24]
MOV R8,qword ptr [RBP + -0x48]
CALL 0x00152420
CMP EAX,0x0
JZ 0x00150c6a
JMP 0x00150ccc
LAB_00150c6a:
MOV RDI,qword ptr [RBP + -0x10]
MOV RSI,qword ptr [RBP + -0x38]
MOV RDX,qword ptr [RBP + -0x68]
MOV ECX,dword ptr [RBP + -0x24]
MOV R8,qword ptr [RBP + -0x58]
XOR EAX,EAX
MOV R9D,EAX
CALL 0x00152150
CMP EAX,-0x1
JNZ 0x00150c8e
JMP 0x00150ccc
LAB_00150c8e:
MOV RDI,qword ptr [RBP + -0x10]
MOV RSI,qword ptr [RBP + -0x38]
MOV RDX,qword ptr [RBP + -0x60]
MOV R8,qword ptr [RBP + -0x58]
MOV ECX,0x3
CALL 0x001646b0
CMP EAX,0x0
JZ 0x00150caf
JMP 0x00150ccc
LAB_00150caf:
MOV RDX,qword ptr [RBP + -0x60]
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX]
MOV RAX,qword ptr [RAX + 0x98]
MOV ECX,dword ptr [RBP + -0x14]
MOV qword ptr [RAX + RCX*0x8],RDX
JMP 0x00150cca
LAB_00150cca:
JMP 0x00150cdb
LAB_00150ccc:
JMP 0x00150cce
LAB_00150cce:
MOV dword ptr [RBP + -0x4],0xffffffff
JMP 0x00150ce3
LAB_00150cd7:
JMP 0x00150cd9
LAB_00150cd9:
JMP 0x00150cdb
LAB_00150cdb:
JMP 0x00150cdd
LAB_00150cdd:
MOV EAX,dword ptr [RBP + -0x3c]
MOV dword ptr [RBP + -0x4],EAX
LAB_00150ce3:
MOV EAX,dword ptr [RBP + -0x4]
ADD RSP,0x90
POP RBP
RET
|
int rtree_insert_level(long *param_1,uint param_2,int8 param_3,int4 param_4,
int4 param_5)
{
uint uVar1;
short sVar2;
int iVar3;
int1 *puVar4;
long lVar5;
int1 *puVar6;
int8 local_50;
int local_44;
long local_40;
long local_38;
int4 local_30;
int4 local_2c;
int8 local_28;
uint local_1c;
long *local_18;
int local_c;
local_40 = *(long *)(*param_1 + 0x218) + (ulong)param_2 * 0x70;
local_38 = *(long *)(*(long *)(*param_1 + 0x98) + (ulong)param_2 * 8);
local_30 = param_5;
local_2c = param_4;
local_28 = param_3;
local_1c = param_2;
local_18 = param_1;
if (local_38 == -1) {
local_38 = _mi_new(param_1,local_40,3);
if (local_38 == -1) {
return -1;
}
*(int1 *)((long)local_18 + 0x33d) = 1;
*(int1 *)(local_18[0x20] + 1) = 2;
*(int1 *)local_18[0x20] = 0;
local_44 = rtree_add_key(local_18,local_40,local_28,local_2c,local_18[0x20],0);
iVar3 = _mi_write_keypage(local_18,local_40,local_38,3,local_18[0x20]);
if (iVar3 != 0) {
return 1;
}
*(long *)(*(long *)(*local_18 + 0x98) + (ulong)local_1c * 8) = local_38;
return local_44;
}
local_44 = rtree_insert_req(param_1,local_40,param_3,param_4,local_38,&local_50,param_5,0);
if (((local_44 == -1) || (local_44 == 0)) || (local_44 != 1)) {
LAB_00150cdb:
local_c = local_44;
}
else {
puVar4 = (int1 *)(local_18[0x20] + (ulong)*(uint *)(*local_18 + 400));
uVar1 = *(uint *)(*local_18 + 0x17c);
sVar2 = 0;
if (uVar1 != 0) {
sVar2 = -0x8000;
}
puVar4[1] = (char)(sVar2 + 2);
*puVar4 = (char)((ushort)(sVar2 + 2) >> 8);
lVar5 = _mi_new(local_18,local_40,3);
if (lVar5 != -1) {
puVar6 = puVar4 + (ulong)uVar1 + (long)(int)(uint)*(ushort *)(local_40 + 0xe);
_mi_kpointer(local_18,(long)puVar6 - (ulong)uVar1,local_38);
iVar3 = rtree_set_key_mbr(local_18,local_40,puVar6,local_2c,local_38);
if ((iVar3 == 0) &&
(iVar3 = rtree_add_key(local_18,local_40,puVar6,local_2c,puVar4,0), iVar3 != -1)) {
_mi_kpointer(local_18,(long)puVar6 - (ulong)uVar1,local_50);
iVar3 = rtree_set_key_mbr(local_18,local_40,puVar6,local_2c,local_50);
if ((iVar3 == 0) &&
((iVar3 = rtree_add_key(local_18,local_40,puVar6,local_2c,puVar4,0), iVar3 != -1 &&
(iVar3 = _mi_write_keypage(local_18,local_40,lVar5,3,puVar4), iVar3 == 0)))) {
*(long *)(*(long *)(*local_18 + 0x98) + (ulong)local_1c * 8) = lVar5;
goto LAB_00150cdb;
}
}
}
local_c = -1;
}
return local_c;
}
| |
42,266 | safe_hash_search | eloqsql/mysys/my_safehash.c | uchar *safe_hash_search(SAFE_HASH *hash, const uchar *key, uint length,
uchar *def)
{
uchar *result;
DBUG_ENTER("safe_hash_search");
mysql_rwlock_rdlock(&hash->mutex);
result= my_hash_search(&hash->hash, key, length);
mysql_rwlock_unlock(&hash->mutex);
if (!result)
result= def;
else
result= ((SAFE_HASH_ENTRY*) result)->data;
DBUG_PRINT("exit",("data: %p", result));
DBUG_RETURN(result);
} | O3 | c | safe_hash_search:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movq %rcx, %rbx
movl %edx, %r12d
movq %rsi, %r15
movq %rdi, %r14
cmpq $0x0, 0x90(%rdi)
jne 0x6282b
movq %r14, %rdi
callq 0x61594
leaq 0x98(%r14), %rdi
movl %r12d, %edx
movq %r15, %rsi
callq 0x51a8a
movq %rax, %r15
movq 0x90(%r14), %rdi
testq %rdi, %rdi
jne 0x62841
movq %r14, %rdi
callq 0x616c2
testq %r15, %r15
je 0x6281f
movq 0x10(%r15), %rbx
movq %rbx, %rax
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
leaq 0x344bf(%rip), %rsi # 0x96cf1
movq %r14, %rdi
movl $0xa7, %edx
callq 0x29fe7
jmp 0x627ed
leaq 0x2d1618(%rip), %rax # 0x333e60
movq (%rax), %rax
callq *0x168(%rax)
jmp 0x6280e
| safe_hash_search:
push rbp
mov rbp, rsp
push r15
push r14
push r12
push rbx
mov rbx, rcx
mov r12d, edx
mov r15, rsi
mov r14, rdi
cmp qword ptr [rdi+90h], 0
jnz short loc_6282B
mov rdi, r14
call my_rw_rdlock
loc_627ED:
lea rdi, [r14+98h]
mov edx, r12d
mov rsi, r15
call my_hash_search
mov r15, rax
mov rdi, [r14+90h]
test rdi, rdi
jnz short loc_62841
loc_6280E:
mov rdi, r14
call my_rw_unlock
test r15, r15
jz short loc_6281F
mov rbx, [r15+10h]
loc_6281F:
mov rax, rbx
pop rbx
pop r12
pop r14
pop r15
pop rbp
retn
loc_6282B:
lea rsi, aWorkspaceLlm4b_26; "/workspace/llm4binary/github2025/eloqsq"...
mov rdi, r14
mov edx, 0A7h
call psi_rwlock_rdlock
jmp short loc_627ED
loc_62841:
lea rax, PSI_server
mov rax, [rax]
call qword ptr [rax+168h]
jmp short loc_6280E
| long long safe_hash_search(long long a1, long long a2, unsigned int a3, long long a4)
{
long long v6; // r15
if ( *(_QWORD *)(a1 + 144) )
psi_rwlock_rdlock(a1, (long long)"/workspace/llm4binary/github2025/eloqsql/mysys/my_safehash.c", 0xA7u);
else
my_rw_rdlock(a1);
v6 = my_hash_search(a1 + 152, a2, a3);
if ( *(_QWORD *)(a1 + 144) )
PSI_server[45]();
my_rw_unlock(a1);
if ( v6 )
return *(_QWORD *)(v6 + 16);
return a4;
}
| safe_hash_search:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH R12
PUSH RBX
MOV RBX,RCX
MOV R12D,EDX
MOV R15,RSI
MOV R14,RDI
CMP qword ptr [RDI + 0x90],0x0
JNZ 0x0016282b
MOV RDI,R14
CALL 0x00161594
LAB_001627ed:
LEA RDI,[R14 + 0x98]
MOV EDX,R12D
MOV RSI,R15
CALL 0x00151a8a
MOV R15,RAX
MOV RDI,qword ptr [R14 + 0x90]
TEST RDI,RDI
JNZ 0x00162841
LAB_0016280e:
MOV RDI,R14
CALL 0x001616c2
TEST R15,R15
JZ 0x0016281f
MOV RBX,qword ptr [R15 + 0x10]
LAB_0016281f:
MOV RAX,RBX
POP RBX
POP R12
POP R14
POP R15
POP RBP
RET
LAB_0016282b:
LEA RSI,[0x196cf1]
MOV RDI,R14
MOV EDX,0xa7
CALL 0x00129fe7
JMP 0x001627ed
LAB_00162841:
LEA RAX,[0x433e60]
MOV RAX,qword ptr [RAX]
CALL qword ptr [RAX + 0x168]
JMP 0x0016280e
|
int8 safe_hash_search(long param_1,int8 param_2,int4 param_3,int8 param_4)
{
long lVar1;
if (*(long *)(param_1 + 0x90) == 0) {
my_rw_rdlock(param_1);
}
else {
psi_rwlock_rdlock(param_1,"/workspace/llm4binary/github2025/eloqsql/mysys/my_safehash.c",0xa7);
}
lVar1 = my_hash_search(param_1 + 0x98,param_2,param_3);
if (*(long *)(param_1 + 0x90) != 0) {
(**(code **)(PSI_server + 0x168))();
}
my_rw_unlock(param_1);
if (lVar1 != 0) {
param_4 = *(int8 *)(lVar1 + 0x10);
}
return param_4;
}
| |
42,267 | atoi_octal | eloqsql/mysys/my_init.c | static ulong atoi_octal(const char *str)
{
long int tmp;
while (*str && my_isspace(&my_charset_latin1, *str))
str++;
str2int(str,
(*str == '0' ? 8 : 10), /* Octalt or decimalt */
0, INT_MAX, &tmp);
return (ulong) tmp;
} | O0 | c | atoi_octal:
pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movq %rdi, -0x8(%rbp)
movq -0x8(%rbp), %rax
movsbl (%rax), %ecx
xorl %eax, %eax
cmpl $0x0, %ecx
movb %al, -0x11(%rbp)
je 0xf3cb0
leaq 0x2733dc(%rip), %rax # 0x367070
movq 0x40(%rax), %rax
movq -0x8(%rbp), %rcx
movzbl (%rcx), %ecx
movzbl 0x1(%rax,%rcx), %eax
andl $0x8, %eax
cmpl $0x0, %eax
setne %al
movb %al, -0x11(%rbp)
movb -0x11(%rbp), %al
testb $0x1, %al
jne 0xf3cb9
jmp 0xf3cc7
movq -0x8(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x8(%rbp)
jmp 0xf3c7c
movq -0x8(%rbp), %rdi
movq -0x8(%rbp), %rax
movsbl (%rax), %ecx
movl $0xa, %esi
movl $0x8, %eax
cmpl $0x30, %ecx
cmovel %eax, %esi
xorl %eax, %eax
movl %eax, %edx
movl $0x7fffffff, %ecx # imm = 0x7FFFFFFF
leaq -0x10(%rbp), %r8
callq 0x14ede0
movq -0x10(%rbp), %rax
addq $0x20, %rsp
popq %rbp
retq
nop
| atoi_octal:
push rbp
mov rbp, rsp
sub rsp, 20h
mov [rbp+var_8], rdi
loc_F3C7C:
mov rax, [rbp+var_8]
movsx ecx, byte ptr [rax]
xor eax, eax
cmp ecx, 0
mov [rbp+var_11], al
jz short loc_F3CB0
lea rax, my_charset_latin1
mov rax, [rax+40h]
mov rcx, [rbp+var_8]
movzx ecx, byte ptr [rcx]
movzx eax, byte ptr [rax+rcx+1]
and eax, 8
cmp eax, 0
setnz al
mov [rbp+var_11], al
loc_F3CB0:
mov al, [rbp+var_11]
test al, 1
jnz short loc_F3CB9
jmp short loc_F3CC7
loc_F3CB9:
mov rax, [rbp+var_8]
add rax, 1
mov [rbp+var_8], rax
jmp short loc_F3C7C
loc_F3CC7:
mov rdi, [rbp+var_8]
mov rax, [rbp+var_8]
movsx ecx, byte ptr [rax]
mov esi, 0Ah
mov eax, 8
cmp ecx, 30h ; '0'
cmovz esi, eax
xor eax, eax
mov edx, eax
mov ecx, 7FFFFFFFh
lea r8, [rbp+var_10]
call str2int
mov rax, [rbp+var_10]
add rsp, 20h
pop rbp
retn
| long long atoi_octal(_BYTE *a1)
{
long long v1; // rsi
bool v3; // [rsp+Fh] [rbp-11h]
long long v4; // [rsp+10h] [rbp-10h] BYREF
_BYTE *i; // [rsp+18h] [rbp-8h]
for ( i = a1; ; ++i )
{
v3 = 0;
if ( *i )
v3 = (*(_BYTE *)(*((_QWORD *)&my_charset_latin1 + 8) + (unsigned __int8)*i + 1LL) & 8) != 0;
if ( !v3 )
break;
}
v1 = 10LL;
if ( *i == 48 )
v1 = 8LL;
str2int(i, v1, 0LL, 0x7FFFFFFFLL, &v4);
return v4;
}
| atoi_octal:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x20
MOV qword ptr [RBP + -0x8],RDI
LAB_001f3c7c:
MOV RAX,qword ptr [RBP + -0x8]
MOVSX ECX,byte ptr [RAX]
XOR EAX,EAX
CMP ECX,0x0
MOV byte ptr [RBP + -0x11],AL
JZ 0x001f3cb0
LEA RAX,[0x467070]
MOV RAX,qword ptr [RAX + 0x40]
MOV RCX,qword ptr [RBP + -0x8]
MOVZX ECX,byte ptr [RCX]
MOVZX EAX,byte ptr [RAX + RCX*0x1 + 0x1]
AND EAX,0x8
CMP EAX,0x0
SETNZ AL
MOV byte ptr [RBP + -0x11],AL
LAB_001f3cb0:
MOV AL,byte ptr [RBP + -0x11]
TEST AL,0x1
JNZ 0x001f3cb9
JMP 0x001f3cc7
LAB_001f3cb9:
MOV RAX,qword ptr [RBP + -0x8]
ADD RAX,0x1
MOV qword ptr [RBP + -0x8],RAX
JMP 0x001f3c7c
LAB_001f3cc7:
MOV RDI,qword ptr [RBP + -0x8]
MOV RAX,qword ptr [RBP + -0x8]
MOVSX ECX,byte ptr [RAX]
MOV ESI,0xa
MOV EAX,0x8
CMP ECX,0x30
CMOVZ ESI,EAX
XOR EAX,EAX
MOV EDX,EAX
MOV ECX,0x7fffffff
LEA R8,[RBP + -0x10]
CALL 0x0024ede0
MOV RAX,qword ptr [RBP + -0x10]
ADD RSP,0x20
POP RBP
RET
|
int8 atoi_octal(byte *param_1)
{
int8 uVar1;
bool bVar2;
int8 local_18;
byte *local_10;
local_10 = param_1;
while( true ) {
bVar2 = false;
if (*local_10 != 0) {
bVar2 = (PTR_ctype_latin1_004670b0[(ulong)*local_10 + 1] & 8) != 0;
}
if (!bVar2) break;
local_10 = local_10 + 1;
}
uVar1 = 10;
if (*local_10 == 0x30) {
uVar1 = 8;
}
str2int(local_10,uVar1,0,0x7fffffff,&local_18);
return local_18;
}
| |
42,268 | ggml_add_cast | 7CodeWizard[P]stablediffusion/ggml/src/ggml.c | struct ggml_tensor * ggml_add_cast(
struct ggml_context * ctx,
struct ggml_tensor * a,
struct ggml_tensor * b,
enum ggml_type type) {
return ggml_add_cast_impl(ctx, a, b, type);
} | O1 | c | ggml_add_cast:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq 0x10(%rdx), %rax
cmpq 0x10(%rsi), %rax
jne 0x90f0e
movq %rdx, %rbx
movq %rsi, %r14
movq 0x18(%rsi), %rsi
movq 0x18(%rdx), %r9
movq %rsi, %rax
cqto
idivq %r9
testq %rdx, %rdx
jne 0x90f0e
movq %rdi, %r12
movq 0x20(%r14), %rdi
movq 0x20(%rbx), %r10
movq %rdi, %rax
cqto
idivq %r10
testq %rdx, %rdx
jne 0x90f0e
movq 0x28(%r14), %r8
movq 0x28(%rbx), %r11
movq %r8, %rax
cqto
idivq %r11
testq %rdx, %rdx
jne 0x90f0e
movl (%r14), %eax
cmpq $0x1, %rax
je 0x90e61
leaq (%rax,%rax,8), %rax
leaq 0x6545a(%rip), %rdx # 0xf62b0
cmpb $0x0, 0x18(%rdx,%rax,8)
je 0x90f13
cmpq $0x0, 0x98(%r14)
jne 0x90e79
cmpq $0x0, 0x98(%rbx)
je 0x90f09
cmpq %r9, %rsi
jne 0x90f18
cmpq %r10, %rdi
jne 0x90f18
movb $0x1, %r15b
cmpq %r11, %r8
jne 0x90f18
leaq 0x10(%r14), %r13
xorl %ebp, %ebp
movq %r12, %rdi
movl %ecx, %esi
movl $0x4, %edx
movq %r13, %rcx
xorl %r8d, %r8d
xorl %r9d, %r9d
callq 0x8e8b7
movq %r12, %rdi
movq %rax, %r12
movl $0x2, 0x50(%rax)
testb %r15b, %r15b
je 0x90edf
xorl %esi, %esi
movl $0x4, %edx
movq %r13, %rcx
xorl %r8d, %r8d
xorl %r9d, %r9d
callq 0x8e8b7
movq %rax, %rbp
movq %rbp, 0x98(%r12)
movq %r14, 0xa0(%r12)
movq %rbx, 0xa8(%r12)
movq %r12, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
xorl %r15d, %r15d
jmp 0x90e97
callq 0xcb93
callq 0xcbd8
callq 0xcc1d
| ggml_add_cast:
push rbp
push r15
push r14
push r13
push r12
push rbx
push rax
mov rax, [rdx+10h]
cmp rax, [rsi+10h]
jnz loc_90F0E
mov rbx, rdx
mov r14, rsi
mov rsi, [rsi+18h]
mov r9, [rdx+18h]
mov rax, rsi
cqo
idiv r9
test rdx, rdx
jnz loc_90F0E
mov r12, rdi
mov rdi, [r14+20h]
mov r10, [rbx+20h]
mov rax, rdi
cqo
idiv r10
test rdx, rdx
jnz loc_90F0E
mov r8, [r14+28h]
mov r11, [rbx+28h]
mov rax, r8
cqo
idiv r11
test rdx, rdx
jnz loc_90F0E
mov eax, [r14]
cmp rax, 1
jz short loc_90E61
lea rax, [rax+rax*8]
lea rdx, type_traits
cmp byte ptr [rdx+rax*8+18h], 0
jz loc_90F13
loc_90E61:
cmp qword ptr [r14+98h], 0
jnz short loc_90E79
cmp qword ptr [rbx+98h], 0
jz loc_90F09
loc_90E79:
cmp rsi, r9
jnz loc_90F18
cmp rdi, r10
jnz loc_90F18
mov r15b, 1
cmp r8, r11
jnz loc_90F18
loc_90E97:
lea r13, [r14+10h]
xor ebp, ebp
mov rdi, r12
mov esi, ecx
mov edx, 4
mov rcx, r13
xor r8d, r8d
xor r9d, r9d
call ggml_new_tensor_impl
mov rdi, r12
mov r12, rax
mov dword ptr [rax+50h], 2
test r15b, r15b
jz short loc_90EDF
xor esi, esi
mov edx, 4
mov rcx, r13
xor r8d, r8d
xor r9d, r9d
call ggml_new_tensor_impl
mov rbp, rax
loc_90EDF:
mov [r12+98h], rbp
mov [r12+0A0h], r14
mov [r12+0A8h], rbx
mov rax, r12
add rsp, 8
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
loc_90F09:
xor r15d, r15d
jmp short loc_90E97
loc_90F0E:
call ggml_add_cast_cold_1
loc_90F13:
call ggml_add_cast_cold_2
loc_90F18:
call ggml_add_cast_cold_3
| long long ggml_add_cast(long long a1, _QWORD *a2, _QWORD *a3, unsigned int a4, __m128 a5, __m128 a6)
{
long long v8; // rsi
long long v9; // r9
long long v10; // r12
long long v11; // r10
long long v12; // r11
long long v13; // rax
char v14; // r15
long long v15; // rbp
long long v16; // rdi
long long v17; // r12
if ( a3[2] != a2[2]
|| (v8 = a2[3], v9 = a3[3], v8 % v9)
|| (v10 = a1, a1 = a2[4], v11 = a3[4], a1 % v11)
|| (v12 = a3[5], a2[5] % v12) )
{
ggml_add_cast_cold_1(a1);
}
v13 = *(unsigned int *)a2;
if ( v13 != 1 && !LOBYTE((&type_traits)[9 * v13 + 3]) )
ggml_add_cast_cold_2(a1);
if ( a2[19] || a3[19] )
{
if ( v8 != v9 || a1 != v11 || (v14 = 1, a2[5] != v12) )
ggml_add_cast_cold_3(a1);
}
else
{
v14 = 0;
}
v15 = 0LL;
v16 = v10;
v17 = ggml_new_tensor_impl(v10, a4, 4, a2 + 2, 0LL, 0LL, a5, a6);
*(_DWORD *)(v17 + 80) = 2;
if ( v14 )
v15 = ggml_new_tensor_impl(v16, 0, 4, a2 + 2, 0LL, 0LL, a5, a6);
*(_QWORD *)(v17 + 152) = v15;
*(_QWORD *)(v17 + 160) = a2;
*(_QWORD *)(v17 + 168) = a3;
return v17;
}
| |||
42,269 | ggml_add_cast | 7CodeWizard[P]stablediffusion/ggml/src/ggml.c | struct ggml_tensor * ggml_add_cast(
struct ggml_context * ctx,
struct ggml_tensor * a,
struct ggml_tensor * b,
enum ggml_type type) {
return ggml_add_cast_impl(ctx, a, b, type);
} | O2 | c | ggml_add_cast:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movl %ecx, %r12d
movq %rdx, %rbx
movq %rsi, %r14
movq %rdi, %r15
movq %rdx, %rdi
callq 0x79206
testb %al, %al
je 0x69c68
movl (%r14), %eax
cmpq $0x1, %rax
je 0x69bd8
imulq $0x48, %rax, %rax
leaq 0x6b6d3(%rip), %rcx # 0xd52a0
cmpb $0x0, 0x18(%rax,%rcx)
je 0x69c9d
cmpq $0x0, 0x98(%r14)
jne 0x69bec
cmpq $0x0, 0x98(%rbx)
je 0x69c64
movq %r14, %rdi
movq %rbx, %rsi
callq 0x67e29
movb $0x1, %bpl
testb %al, %al
je 0x69cd2
leaq 0x10(%r14), %r13
pushq $0x4
popq %rdx
movq %r15, %rdi
movl %r12d, %esi
movq %r13, %rcx
callq 0x6835b
movq %rax, %r12
movl $0x2, 0x50(%rax)
testb %bpl, %bpl
je 0x69c38
pushq $0x4
popq %rdx
movq %r15, %rdi
xorl %esi, %esi
movq %r13, %rcx
callq 0x6835b
jmp 0x69c3a
xorl %eax, %eax
movq %rax, 0x98(%r12)
movq %r14, 0xa0(%r12)
movq %rbx, 0xa8(%r12)
movq %r12, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
xorl %ebp, %ebp
jmp 0x69c02
movq 0x6c2d9(%rip), %rax # 0xd5f48
movq (%rax), %rdi
callq 0xa6f0
movq 0x6c32a(%rip), %rax # 0xd5fa8
movq (%rax), %rdi
leaq 0x30596(%rip), %rsi # 0x9a21e
leaq 0x37bef(%rip), %rdx # 0xa187e
leaq 0x397fe(%rip), %r8 # 0xa3494
movl $0xc95, %ecx # imm = 0xC95
jmp 0x69d05
movq 0x6c2a4(%rip), %rax # 0xd5f48
movq (%rax), %rdi
callq 0xa6f0
movq 0x6c2f5(%rip), %rax # 0xd5fa8
movq (%rax), %rdi
leaq 0x30561(%rip), %rsi # 0x9a21e
leaq 0x37bba(%rip), %rdx # 0xa187e
leaq 0x397e4(%rip), %r8 # 0xa34af
movl $0xc96, %ecx # imm = 0xC96
jmp 0x69d05
movq 0x6c26f(%rip), %rax # 0xd5f48
movq (%rax), %rdi
callq 0xa6f0
movq 0x6c2c0(%rip), %rax # 0xd5fa8
movq (%rax), %rdi
leaq 0x3052c(%rip), %rsi # 0x9a21e
leaq 0x37b85(%rip), %rdx # 0xa187e
leaq 0x384a6(%rip), %r8 # 0xa21a6
movl $0xc9c, %ecx # imm = 0xC9C
xorl %eax, %eax
callq 0xa8b0
callq 0x67550
callq 0xa300
| ggml_add_cast:
push rbp
push r15
push r14
push r13
push r12
push rbx
push rax
mov r12d, ecx
mov rbx, rdx
mov r14, rsi
mov r15, rdi
mov rdi, rdx
call ggml_can_repeat_rows
test al, al
jz loc_69C68
mov eax, [r14]
cmp rax, 1
jz short loc_69BD8
imul rax, 48h ; 'H'
lea rcx, type_traits
cmp byte ptr [rax+rcx+18h], 0
jz loc_69C9D
loc_69BD8:
cmp qword ptr [r14+98h], 0
jnz short loc_69BEC
cmp qword ptr [rbx+98h], 0
jz short loc_69C64
loc_69BEC:
mov rdi, r14
mov rsi, rbx
call ggml_are_same_shape
mov bpl, 1
test al, al
jz loc_69CD2
loc_69C02:
lea r13, [r14+10h]
push 4
pop rdx
mov rdi, r15
mov esi, r12d
mov rcx, r13
call ggml_new_tensor
mov r12, rax
mov dword ptr [rax+50h], 2
test bpl, bpl
jz short loc_69C38
push 4
pop rdx
mov rdi, r15
xor esi, esi
mov rcx, r13
call ggml_new_tensor
jmp short loc_69C3A
loc_69C38:
xor eax, eax
loc_69C3A:
mov [r12+98h], rax
mov [r12+0A0h], r14
mov [r12+0A8h], rbx
mov rax, r12
add rsp, 8
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
loc_69C64:
xor ebp, ebp
jmp short loc_69C02
loc_69C68:
mov rax, cs:stdout_ptr
mov rdi, [rax]
call _fflush
mov rax, cs:stderr_ptr
mov rdi, [rax]
lea rsi, aGgmlAssertSDS; "GGML_ASSERT: %s:%d: %s\n"
lea rdx, aWorkspaceLlm4b_7; "/workspace/llm4binary/github/2025_star3"...
lea r8, aGgmlCanRepeatR; "ggml_can_repeat_rows(b, a)"
mov ecx, 0C95h
jmp short loc_69D05
loc_69C9D:
mov rax, cs:stdout_ptr
mov rdi, [rax]
call _fflush
mov rax, cs:stderr_ptr
mov rdi, [rax]
lea rsi, aGgmlAssertSDS; "GGML_ASSERT: %s:%d: %s\n"
lea rdx, aWorkspaceLlm4b_7; "/workspace/llm4binary/github/2025_star3"...
lea r8, aGgmlIsQuantize; "ggml_is_quantized(a->type) || a->type ="...
mov ecx, 0C96h
jmp short loc_69D05
loc_69CD2:
mov rax, cs:stdout_ptr
mov rdi, [rax]
call _fflush
mov rax, cs:stderr_ptr
mov rdi, [rax]
lea rsi, aGgmlAssertSDS; "GGML_ASSERT: %s:%d: %s\n"
lea rdx, aWorkspaceLlm4b_7; "/workspace/llm4binary/github/2025_star3"...
lea r8, aGgmlAreSameSha; "ggml_are_same_shape(a, b)"
mov ecx, 0C9Ch
loc_69D05:
xor eax, eax
call _fprintf
call ggml_print_backtrace
call _abort
| long long ggml_add_cast(long long a1, _QWORD *a2, _QWORD *a3, unsigned int a4)
{
long long v6; // rax
char v7; // bp
long long v8; // r12
long long v9; // rax
long long v11; // rdi
if ( !(unsigned __int8)ggml_can_repeat_rows(a3) )
{
fflush(stdout);
v11 = stderr;
fprintf(
stderr,
"GGML_ASSERT: %s:%d: %s\n",
"/workspace/llm4binary/github/2025_star3/7CodeWizard[P]stablediffusion/ggml/src/ggml.c",
3221LL,
"ggml_can_repeat_rows(b, a)");
goto LABEL_15;
}
v6 = *(unsigned int *)a2;
if ( v6 != 1 && !LOBYTE((&type_traits)[9 * v6 + 3]) )
{
fflush(stdout);
v11 = stderr;
fprintf(
stderr,
"GGML_ASSERT: %s:%d: %s\n",
"/workspace/llm4binary/github/2025_star3/7CodeWizard[P]stablediffusion/ggml/src/ggml.c",
3222LL,
"ggml_is_quantized(a->type) || a->type == GGML_TYPE_F16");
goto LABEL_15;
}
if ( a2[19] || a3[19] )
{
v7 = 1;
if ( ggml_are_same_shape(a2, a3) )
goto LABEL_7;
fflush(stdout);
v11 = stderr;
fprintf(
stderr,
"GGML_ASSERT: %s:%d: %s\n",
"/workspace/llm4binary/github/2025_star3/7CodeWizard[P]stablediffusion/ggml/src/ggml.c",
3228LL,
"ggml_are_same_shape(a, b)");
LABEL_15:
ggml_print_backtrace();
abort(v11);
}
v7 = 0;
LABEL_7:
v8 = ggml_new_tensor(a1, a4, 4LL, (long long)(a2 + 2));
*(_DWORD *)(v8 + 80) = 2;
if ( v7 )
v9 = ggml_new_tensor(a1, 0LL, 4LL, (long long)(a2 + 2));
else
v9 = 0LL;
*(_QWORD *)(v8 + 152) = v9;
*(_QWORD *)(v8 + 160) = a2;
*(_QWORD *)(v8 + 168) = a3;
return v8;
}
| ggml_add_cast:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
PUSH RAX
MOV R12D,ECX
MOV RBX,RDX
MOV R14,RSI
MOV R15,RDI
MOV RDI,RDX
CALL 0x00179206
TEST AL,AL
JZ 0x00169c68
MOV EAX,dword ptr [R14]
CMP RAX,0x1
JZ 0x00169bd8
IMUL RAX,RAX,0x48
LEA RCX,[0x1d52a0]
CMP byte ptr [RAX + RCX*0x1 + 0x18],0x0
JZ 0x00169c9d
LAB_00169bd8:
CMP qword ptr [R14 + 0x98],0x0
JNZ 0x00169bec
CMP qword ptr [RBX + 0x98],0x0
JZ 0x00169c64
LAB_00169bec:
MOV RDI,R14
MOV RSI,RBX
CALL 0x00167e29
MOV BPL,0x1
TEST AL,AL
JZ 0x00169cd2
LAB_00169c02:
LEA R13,[R14 + 0x10]
PUSH 0x4
POP RDX
MOV RDI,R15
MOV ESI,R12D
MOV RCX,R13
CALL 0x0016835b
MOV R12,RAX
MOV dword ptr [RAX + 0x50],0x2
TEST BPL,BPL
JZ 0x00169c38
PUSH 0x4
POP RDX
MOV RDI,R15
XOR ESI,ESI
MOV RCX,R13
CALL 0x0016835b
JMP 0x00169c3a
LAB_00169c38:
XOR EAX,EAX
LAB_00169c3a:
MOV qword ptr [R12 + 0x98],RAX
MOV qword ptr [R12 + 0xa0],R14
MOV qword ptr [R12 + 0xa8],RBX
MOV RAX,R12
ADD RSP,0x8
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
LAB_00169c64:
XOR EBP,EBP
JMP 0x00169c02
LAB_00169c68:
MOV RAX,qword ptr [0x001d5f48]
MOV RDI,qword ptr [RAX]
CALL 0x0010a6f0
MOV RAX,qword ptr [0x001d5fa8]
MOV RDI,qword ptr [RAX]
LEA RSI,[0x19a21e]
LEA RDX,[0x1a187e]
LEA R8,[0x1a3494]
MOV ECX,0xc95
JMP 0x00169d05
LAB_00169c9d:
MOV RAX,qword ptr [0x001d5f48]
MOV RDI,qword ptr [RAX]
CALL 0x0010a6f0
MOV RAX,qword ptr [0x001d5fa8]
MOV RDI,qword ptr [RAX]
LEA RSI,[0x19a21e]
LEA RDX,[0x1a187e]
LEA R8,[0x1a34af]
MOV ECX,0xc96
JMP 0x00169d05
LAB_00169cd2:
MOV RAX,qword ptr [0x001d5f48]
MOV RDI,qword ptr [RAX]
CALL 0x0010a6f0
MOV RAX,qword ptr [0x001d5fa8]
MOV RDI,qword ptr [RAX]
LEA RSI,[0x19a21e]
LEA RDX,[0x1a187e]
LEA R8,[0x1a21a6]
MOV ECX,0xc9c
LAB_00169d05:
XOR EAX,EAX
CALL 0x0010a8b0
CALL 0x00167550
CALL 0x0010a300
|
long ggml_add_cast(int8 param_1,uint *param_2,long param_3,int4 param_4)
{
bool bVar1;
char cVar2;
long lVar3;
int8 uVar4;
FILE *__stream;
char *pcVar5;
cVar2 = ggml_can_repeat_rows(param_3);
if (cVar2 == '\0') {
fflush(*(FILE **)PTR_stdout_001d5f48);
__stream = *(FILE **)PTR_stderr_001d5fa8;
pcVar5 = "ggml_can_repeat_rows(b, a)";
uVar4 = 0xc95;
}
else {
if (((ulong)*param_2 == 1) || (type_traits[(ulong)*param_2 * 0x48 + 0x18] != '\0')) {
if ((*(long *)(param_2 + 0x26) == 0) && (*(long *)(param_3 + 0x98) == 0)) {
bVar1 = false;
}
else {
cVar2 = ggml_are_same_shape(param_2,param_3);
bVar1 = true;
if (cVar2 == '\0') {
fflush(*(FILE **)PTR_stdout_001d5f48);
__stream = *(FILE **)PTR_stderr_001d5fa8;
pcVar5 = "ggml_are_same_shape(a, b)";
uVar4 = 0xc9c;
goto LAB_00169d05;
}
}
lVar3 = ggml_new_tensor(param_1,param_4,4,param_2 + 4);
*(int4 *)(lVar3 + 0x50) = 2;
if (bVar1) {
uVar4 = ggml_new_tensor(param_1,0,4,param_2 + 4);
}
else {
uVar4 = 0;
}
*(int8 *)(lVar3 + 0x98) = uVar4;
*(uint **)(lVar3 + 0xa0) = param_2;
*(long *)(lVar3 + 0xa8) = param_3;
return lVar3;
}
fflush(*(FILE **)PTR_stdout_001d5f48);
__stream = *(FILE **)PTR_stderr_001d5fa8;
pcVar5 = "ggml_is_quantized(a->type) || a->type == GGML_TYPE_F16";
uVar4 = 0xc96;
}
LAB_00169d05:
fprintf(__stream,"GGML_ASSERT: %s:%d: %s\n",
"/workspace/llm4binary/github/2025_star3/7CodeWizard[P]stablediffusion/ggml/src/ggml.c",
uVar4,pcVar5);
ggml_print_backtrace();
/* WARNING: Subroutine does not return */
abort();
}
| |
42,270 | ggml_add_cast | 7CodeWizard[P]stablediffusion/ggml/src/ggml.c | struct ggml_tensor * ggml_add_cast(
struct ggml_context * ctx,
struct ggml_tensor * a,
struct ggml_tensor * b,
enum ggml_type type) {
return ggml_add_cast_impl(ctx, a, b, type);
} | O3 | c | ggml_add_cast:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq 0x10(%rdx), %rax
cmpq 0x10(%rsi), %rax
jne 0x8fcae
movq %rdx, %rbx
movq %rsi, %r14
movq 0x18(%rsi), %rsi
movq 0x18(%rdx), %r9
movq %rsi, %rax
cqto
idivq %r9
testq %rdx, %rdx
jne 0x8fcae
movq %rdi, %r15
movq 0x20(%r14), %rdi
movq 0x20(%rbx), %r10
movq %rdi, %rax
cqto
idivq %r10
testq %rdx, %rdx
jne 0x8fcae
movq 0x28(%r14), %r8
movq 0x28(%rbx), %r11
movq %r8, %rax
cqto
idivq %r11
testq %rdx, %rdx
jne 0x8fcae
movl (%r14), %eax
cmpq $0x1, %rax
je 0x8fbf1
leaq (%rax,%rax,8), %rax
leaq 0x646ca(%rip), %rdx # 0xf42b0
cmpb $0x0, 0x18(%rdx,%rax,8)
je 0x8fcb3
leaq 0x10(%r14), %r12
cmpq $0x0, 0x98(%r14)
jne 0x8fc09
cmpq $0x0, 0x98(%rbx)
je 0x8fc88
cmpq %r9, %rsi
jne 0x8fcb8
cmpq %r10, %rdi
jne 0x8fcb8
cmpq %r11, %r8
jne 0x8fcb8
movq %r15, %rdi
movl %ecx, %esi
movl $0x4, %edx
movq %r12, %rcx
xorl %r8d, %r8d
xorl %r9d, %r9d
callq 0x8d64f
movq %rax, %r13
movl $0x2, 0x50(%rax)
movq %r15, %rdi
xorl %esi, %esi
movl $0x4, %edx
movq %r12, %rcx
xorl %r8d, %r8d
xorl %r9d, %r9d
callq 0x8d64f
movq %rax, %rbp
movq %rbp, 0x98(%r13)
movq %r14, 0xa0(%r13)
movq %rbx, 0xa8(%r13)
movq %r13, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
xorl %ebp, %ebp
movq %r15, %rdi
movl %ecx, %esi
movl $0x4, %edx
movq %r12, %rcx
xorl %r8d, %r8d
xorl %r9d, %r9d
callq 0x8d64f
movq %rax, %r13
movl $0x2, 0x50(%rax)
jmp 0x8fc61
callq 0xcb3e
callq 0xcb83
callq 0xcbc8
| ggml_add_cast:
push rbp
push r15
push r14
push r13
push r12
push rbx
push rax
mov rax, [rdx+10h]
cmp rax, [rsi+10h]
jnz loc_8FCAE
mov rbx, rdx
mov r14, rsi
mov rsi, [rsi+18h]
mov r9, [rdx+18h]
mov rax, rsi
cqo
idiv r9
test rdx, rdx
jnz loc_8FCAE
mov r15, rdi
mov rdi, [r14+20h]
mov r10, [rbx+20h]
mov rax, rdi
cqo
idiv r10
test rdx, rdx
jnz loc_8FCAE
mov r8, [r14+28h]
mov r11, [rbx+28h]
mov rax, r8
cqo
idiv r11
test rdx, rdx
jnz loc_8FCAE
mov eax, [r14]
cmp rax, 1
jz short loc_8FBF1
lea rax, [rax+rax*8]
lea rdx, type_traits
cmp byte ptr [rdx+rax*8+18h], 0
jz loc_8FCB3
loc_8FBF1:
lea r12, [r14+10h]
cmp qword ptr [r14+98h], 0
jnz short loc_8FC09
cmp qword ptr [rbx+98h], 0
jz short loc_8FC88
loc_8FC09:
cmp rsi, r9
jnz loc_8FCB8
cmp rdi, r10
jnz loc_8FCB8
cmp r8, r11
jnz loc_8FCB8
mov rdi, r15
mov esi, ecx
mov edx, 4
mov rcx, r12
xor r8d, r8d
xor r9d, r9d
call ggml_new_tensor_impl
mov r13, rax
mov dword ptr [rax+50h], 2
mov rdi, r15
xor esi, esi
mov edx, 4
mov rcx, r12
xor r8d, r8d
xor r9d, r9d
call ggml_new_tensor_impl
mov rbp, rax
loc_8FC61:
mov [r13+98h], rbp
mov [r13+0A0h], r14
mov [r13+0A8h], rbx
mov rax, r13
add rsp, 8
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
loc_8FC88:
xor ebp, ebp
mov rdi, r15
mov esi, ecx
mov edx, 4
mov rcx, r12
xor r8d, r8d
xor r9d, r9d
call ggml_new_tensor_impl
mov r13, rax
mov dword ptr [rax+50h], 2
jmp short loc_8FC61
loc_8FCAE:
call ggml_add_cast_cold_1
loc_8FCB3:
call ggml_add_cast_cold_2
loc_8FCB8:
call ggml_add_cast_cold_3
| long long ggml_add_cast(long long a1, _QWORD *a2, _QWORD *a3, unsigned int a4, __m128 a5, __m128 a6)
{
long long v8; // rsi
long long v9; // r9
long long v10; // r15
long long v11; // r10
long long v12; // r11
long long v13; // rax
long long v14; // r13
long long v15; // rbp
if ( a3[2] != a2[2]
|| (v8 = a2[3], v9 = a3[3], v8 % v9)
|| (v10 = a1, a1 = a2[4], v11 = a3[4], a1 % v11)
|| (v12 = a3[5], a2[5] % v12) )
{
ggml_add_cast_cold_1(a1);
}
v13 = *(unsigned int *)a2;
if ( v13 != 1 && !LOBYTE((&type_traits)[9 * v13 + 3]) )
ggml_add_cast_cold_2(a1);
if ( a2[19] || a3[19] )
{
if ( v8 != v9 || a1 != v11 || a2[5] != v12 )
ggml_add_cast_cold_3(a1);
v14 = ggml_new_tensor_impl(v10, a4, 4, a2 + 2, 0LL, 0LL, a5, a6);
*(_DWORD *)(v14 + 80) = 2;
v15 = ggml_new_tensor_impl(v10, 0, 4, a2 + 2, 0LL, 0LL, a5, a6);
}
else
{
v15 = 0LL;
v14 = ggml_new_tensor_impl(v10, a4, 4, a2 + 2, 0LL, 0LL, a5, a6);
*(_DWORD *)(v14 + 80) = 2;
}
*(_QWORD *)(v14 + 152) = v15;
*(_QWORD *)(v14 + 160) = a2;
*(_QWORD *)(v14 + 168) = a3;
return v14;
}
| |||
42,271 | mi_calc_total_blob_length | eloqsql/storage/myisam/mi_dynrec.c | ulong _mi_calc_total_blob_length(MI_INFO *info, const uchar *record)
{
ulong length;
MI_BLOB *blob,*end;
for (length=0, blob= info->blobs, end=blob+info->s->base.blobs ;
blob != end;
blob++)
{
blob->length=_mi_calc_blob_length(blob->pack_length,record + blob->offset);
length+=blob->length;
}
return length;
} | O0 | c | mi_calc_total_blob_length:
pushq %rbp
movq %rsp, %rbp
subq $0x30, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq $0x0, -0x18(%rbp)
movq -0x8(%rbp), %rax
movq 0x48(%rax), %rax
movq %rax, -0x20(%rbp)
movq -0x20(%rbp), %rax
movq -0x8(%rbp), %rcx
movq (%rcx), %rcx
movl 0x188(%rcx), %ecx
imulq $0x18, %rcx, %rcx
addq %rcx, %rax
movq %rax, -0x28(%rbp)
movq -0x20(%rbp), %rax
cmpq -0x28(%rbp), %rax
je 0xa895a
movq -0x20(%rbp), %rax
movl 0x8(%rax), %edi
movq -0x10(%rbp), %rsi
movq -0x20(%rbp), %rax
addq (%rax), %rsi
callq 0xab0f0
movq %rax, %rcx
movq -0x20(%rbp), %rax
movq %rcx, 0x10(%rax)
movq -0x20(%rbp), %rax
movq 0x10(%rax), %rax
addq -0x18(%rbp), %rax
movq %rax, -0x18(%rbp)
movq -0x20(%rbp), %rax
addq $0x18, %rax
movq %rax, -0x20(%rbp)
jmp 0xa8910
movq -0x18(%rbp), %rax
addq $0x30, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
| _mi_calc_total_blob_length:
push rbp
mov rbp, rsp
sub rsp, 30h
mov [rbp+var_8], rdi
mov [rbp+var_10], rsi
mov [rbp+var_18], 0
mov rax, [rbp+var_8]
mov rax, [rax+48h]
mov [rbp+var_20], rax
mov rax, [rbp+var_20]
mov rcx, [rbp+var_8]
mov rcx, [rcx]
mov ecx, [rcx+188h]
imul rcx, 18h
add rax, rcx
mov [rbp+var_28], rax
loc_A8910:
mov rax, [rbp+var_20]
cmp rax, [rbp+var_28]
jz short loc_A895A
mov rax, [rbp+var_20]
mov edi, [rax+8]
mov rsi, [rbp+var_10]
mov rax, [rbp+var_20]
add rsi, [rax]
call _mi_calc_blob_length
mov rcx, rax
mov rax, [rbp+var_20]
mov [rax+10h], rcx
mov rax, [rbp+var_20]
mov rax, [rax+10h]
add rax, [rbp+var_18]
mov [rbp+var_18], rax
mov rax, [rbp+var_20]
add rax, 18h
mov [rbp+var_20], rax
jmp short loc_A8910
loc_A895A:
mov rax, [rbp+var_18]
add rsp, 30h
pop rbp
retn
| long long mi_calc_total_blob_length(_QWORD *a1, long long a2)
{
long long v3; // [rsp+8h] [rbp-28h]
long long v4; // [rsp+10h] [rbp-20h]
long long v5; // [rsp+18h] [rbp-18h]
v5 = 0LL;
v4 = a1[9];
v3 = 24LL * *(unsigned int *)(*a1 + 392LL) + v4;
while ( v4 != v3 )
{
*(_QWORD *)(v4 + 16) = mi_calc_blob_length(*(unsigned int *)(v4 + 8), *(_QWORD *)v4 + a2);
v5 += *(_QWORD *)(v4 + 16);
v4 += 24LL;
}
return v5;
}
| _mi_calc_total_blob_length:
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],0x0
MOV RAX,qword ptr [RBP + -0x8]
MOV RAX,qword ptr [RAX + 0x48]
MOV qword ptr [RBP + -0x20],RAX
MOV RAX,qword ptr [RBP + -0x20]
MOV RCX,qword ptr [RBP + -0x8]
MOV RCX,qword ptr [RCX]
MOV ECX,dword ptr [RCX + 0x188]
IMUL RCX,RCX,0x18
ADD RAX,RCX
MOV qword ptr [RBP + -0x28],RAX
LAB_001a8910:
MOV RAX,qword ptr [RBP + -0x20]
CMP RAX,qword ptr [RBP + -0x28]
JZ 0x001a895a
MOV RAX,qword ptr [RBP + -0x20]
MOV EDI,dword ptr [RAX + 0x8]
MOV RSI,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RBP + -0x20]
ADD RSI,qword ptr [RAX]
CALL 0x001ab0f0
MOV RCX,RAX
MOV RAX,qword ptr [RBP + -0x20]
MOV qword ptr [RAX + 0x10],RCX
MOV RAX,qword ptr [RBP + -0x20]
MOV RAX,qword ptr [RAX + 0x10]
ADD RAX,qword ptr [RBP + -0x18]
MOV qword ptr [RBP + -0x18],RAX
MOV RAX,qword ptr [RBP + -0x20]
ADD RAX,0x18
MOV qword ptr [RBP + -0x20],RAX
JMP 0x001a8910
LAB_001a895a:
MOV RAX,qword ptr [RBP + -0x18]
ADD RSP,0x30
POP RBP
RET
|
long _mi_calc_total_blob_length(long *param_1,long param_2)
{
long *plVar1;
long lVar2;
long *local_28;
long local_20;
local_20 = 0;
local_28 = (long *)param_1[9];
plVar1 = local_28 + (ulong)*(uint *)(*param_1 + 0x188) * 3;
for (; local_28 != plVar1; local_28 = local_28 + 3) {
lVar2 = _mi_calc_blob_length((int)local_28[1],param_2 + *local_28);
local_28[2] = lVar2;
local_20 = local_28[2] + local_20;
}
return local_20;
}
| |
42,272 | 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);
} | O0 | c | mi_ft_segiterator:
pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movq %rdi, -0x10(%rbp)
movq -0x10(%rbp), %rax
cmpl $0x0, (%rax)
jne 0x63ce3
jmp 0x63cd7
movl $0x0, -0x4(%rbp)
jmp 0x63e72
movq -0x10(%rbp), %rax
movl (%rax), %ecx
addl $-0x1, %ecx
movl %ecx, (%rax)
movq -0x10(%rbp), %rax
cmpq $0x0, 0x8(%rax)
jne 0x63d07
jmp 0x63cfb
movl $0x1, -0x4(%rbp)
jmp 0x63e72
movq -0x10(%rbp), %rax
movq 0x8(%rax), %rcx
addq $-0x20, %rcx
movq %rcx, 0x8(%rax)
movq -0x10(%rbp), %rax
movq 0x8(%rax), %rax
movzbl 0x19(%rax), %eax
cmpl $0x0, %eax
je 0x63d6a
movq -0x10(%rbp), %rax
movq 0x10(%rax), %rax
movq -0x10(%rbp), %rcx
movq 0x8(%rcx), %rcx
movl 0xc(%rcx), %ecx
movzbl (%rax,%rcx), %eax
movq -0x10(%rbp), %rcx
movq 0x8(%rcx), %rcx
movzbl 0x19(%rcx), %ecx
andl %ecx, %eax
cmpl $0x0, %eax
je 0x63d6a
movq -0x10(%rbp), %rax
movq $0x0, 0x18(%rax)
movl $0x1, -0x4(%rbp)
jmp 0x63e72
movq -0x10(%rbp), %rax
movq 0x10(%rax), %rcx
movq -0x10(%rbp), %rax
movq 0x8(%rax), %rax
movl 0x8(%rax), %eax
addq %rax, %rcx
movq -0x10(%rbp), %rax
movq %rcx, 0x18(%rax)
movq -0x10(%rbp), %rax
movq 0x8(%rax), %rax
movzwl 0x12(%rax), %eax
andl $0x8, %eax
cmpl $0x0, %eax
je 0x63df6
movq -0x10(%rbp), %rax
movq 0x8(%rax), %rax
movzbl 0x1a(%rax), %eax
movl %eax, -0x14(%rbp)
cmpl $0x1, -0x14(%rbp)
jne 0x63dc1
movq -0x10(%rbp), %rax
movq 0x18(%rax), %rax
movzbl (%rax), %eax
movl %eax, -0x18(%rbp)
jmp 0x63dcf
movq -0x10(%rbp), %rax
movq 0x18(%rax), %rax
movzwl (%rax), %eax
movl %eax, -0x18(%rbp)
movl -0x18(%rbp), %ecx
movq -0x10(%rbp), %rax
movl %ecx, 0x4(%rax)
movl -0x14(%rbp), %edx
movq -0x10(%rbp), %rax
movq 0x18(%rax), %rcx
movl %edx, %edx
addq %rdx, %rcx
movq %rcx, 0x18(%rax)
movl $0x1, -0x4(%rbp)
jmp 0x63e72
movq -0x10(%rbp), %rax
movq 0x8(%rax), %rax
movzwl 0x12(%rax), %eax
andl $0x20, %eax
cmpl $0x0, %eax
je 0x63e58
movq -0x10(%rbp), %rax
movq 0x8(%rax), %rax
movzbl 0x1a(%rax), %edi
movq -0x10(%rbp), %rax
movq 0x18(%rax), %rsi
callq 0x37390
movl %eax, %ecx
movq -0x10(%rbp), %rax
movl %ecx, 0x4(%rax)
movq -0x10(%rbp), %rax
movq -0x10(%rbp), %rcx
movq 0x18(%rcx), %rcx
movq -0x10(%rbp), %rdx
movq 0x8(%rdx), %rdx
movzbl 0x1a(%rdx), %edx
movslq %edx, %rdx
movq (%rcx,%rdx), %rcx
movq %rcx, 0x18(%rax)
movl $0x1, -0x4(%rbp)
jmp 0x63e72
movq -0x10(%rbp), %rax
movq 0x8(%rax), %rax
movzwl 0x14(%rax), %ecx
movq -0x10(%rbp), %rax
movl %ecx, 0x4(%rax)
movl $0x1, -0x4(%rbp)
movl -0x4(%rbp), %eax
addq $0x20, %rsp
popq %rbp
retq
nopl (%rax,%rax)
| _mi_ft_segiterator:
push rbp
mov rbp, rsp
sub rsp, 20h
mov [rbp+var_10], rdi
mov rax, [rbp+var_10]
cmp dword ptr [rax], 0
jnz short loc_63CE3
jmp short $+2
loc_63CD7:
mov [rbp+var_4], 0
jmp loc_63E72
loc_63CE3:
mov rax, [rbp+var_10]
mov ecx, [rax]
add ecx, 0FFFFFFFFh
mov [rax], ecx
mov rax, [rbp+var_10]
cmp qword ptr [rax+8], 0
jnz short loc_63D07
jmp short $+2
loc_63CFB:
mov [rbp+var_4], 1
jmp loc_63E72
loc_63D07:
mov rax, [rbp+var_10]
mov rcx, [rax+8]
add rcx, 0FFFFFFFFFFFFFFE0h
mov [rax+8], rcx
mov rax, [rbp+var_10]
mov rax, [rax+8]
movzx eax, byte ptr [rax+19h]
cmp eax, 0
jz short loc_63D6A
mov rax, [rbp+var_10]
mov rax, [rax+10h]
mov rcx, [rbp+var_10]
mov rcx, [rcx+8]
mov ecx, [rcx+0Ch]
movzx eax, byte ptr [rax+rcx]
mov rcx, [rbp+var_10]
mov rcx, [rcx+8]
movzx ecx, byte ptr [rcx+19h]
and eax, ecx
cmp eax, 0
jz short loc_63D6A
mov rax, [rbp+var_10]
mov qword ptr [rax+18h], 0
mov [rbp+var_4], 1
jmp loc_63E72
loc_63D6A:
mov rax, [rbp+var_10]
mov rcx, [rax+10h]
mov rax, [rbp+var_10]
mov rax, [rax+8]
mov eax, [rax+8]
add rcx, rax
mov rax, [rbp+var_10]
mov [rax+18h], rcx
mov rax, [rbp+var_10]
mov rax, [rax+8]
movzx eax, word ptr [rax+12h]
and eax, 8
cmp eax, 0
jz short loc_63DF6
mov rax, [rbp+var_10]
mov rax, [rax+8]
movzx eax, byte ptr [rax+1Ah]
mov [rbp+var_14], eax
cmp [rbp+var_14], 1
jnz short loc_63DC1
mov rax, [rbp+var_10]
mov rax, [rax+18h]
movzx eax, byte ptr [rax]
mov [rbp+var_18], eax
jmp short loc_63DCF
loc_63DC1:
mov rax, [rbp+var_10]
mov rax, [rax+18h]
movzx eax, word ptr [rax]
mov [rbp+var_18], eax
loc_63DCF:
mov ecx, [rbp+var_18]
mov rax, [rbp+var_10]
mov [rax+4], ecx
mov edx, [rbp+var_14]
mov rax, [rbp+var_10]
mov rcx, [rax+18h]
mov edx, edx
add rcx, rdx
mov [rax+18h], rcx
mov [rbp+var_4], 1
jmp short loc_63E72
loc_63DF6:
mov rax, [rbp+var_10]
mov rax, [rax+8]
movzx eax, word ptr [rax+12h]
and eax, 20h
cmp eax, 0
jz short loc_63E58
mov rax, [rbp+var_10]
mov rax, [rax+8]
movzx edi, byte ptr [rax+1Ah]
mov rax, [rbp+var_10]
mov rsi, [rax+18h]
call _mi_calc_blob_length
mov ecx, eax
mov rax, [rbp+var_10]
mov [rax+4], ecx
mov rax, [rbp+var_10]
mov rcx, [rbp+var_10]
mov rcx, [rcx+18h]
mov rdx, [rbp+var_10]
mov rdx, [rdx+8]
movzx edx, byte ptr [rdx+1Ah]
movsxd rdx, edx
mov rcx, [rcx+rdx]
mov [rax+18h], rcx
mov [rbp+var_4], 1
jmp short loc_63E72
loc_63E58:
mov rax, [rbp+var_10]
mov rax, [rax+8]
movzx ecx, word ptr [rax+14h]
mov rax, [rbp+var_10]
mov [rax+4], ecx
mov [rbp+var_4], 1
loc_63E72:
mov eax, [rbp+var_4]
add rsp, 20h
pop rbp
retn
| long long mi_ft_segiterator(long long a1)
{
int v2; // [rsp+8h] [rbp-18h]
unsigned int v3; // [rsp+Ch] [rbp-14h]
if ( *(_DWORD *)a1 )
{
--*(_DWORD *)a1;
if ( *(_QWORD *)(a1 + 8) )
{
*(_QWORD *)(a1 + 8) -= 32LL;
if ( *(_BYTE *)(*(_QWORD *)(a1 + 8) + 25LL)
&& (*(_BYTE *)(*(_QWORD *)(a1 + 8) + 25LL) & *(_BYTE *)(*(_QWORD *)(a1 + 16)
+ *(unsigned int *)(*(_QWORD *)(a1 + 8) + 12LL))) != 0 )
{
*(_QWORD *)(a1 + 24) = 0LL;
return 1;
}
else
{
*(_QWORD *)(a1 + 24) = *(unsigned int *)(*(_QWORD *)(a1 + 8) + 8LL) + *(_QWORD *)(a1 + 16);
if ( (*(_WORD *)(*(_QWORD *)(a1 + 8) + 18LL) & 8) != 0 )
{
v3 = *(unsigned __int8 *)(*(_QWORD *)(a1 + 8) + 26LL);
if ( v3 == 1 )
v2 = **(unsigned __int8 **)(a1 + 24);
else
v2 = **(unsigned __int16 **)(a1 + 24);
*(_DWORD *)(a1 + 4) = v2;
*(_QWORD *)(a1 + 24) += v3;
return 1;
}
else
{
if ( (*(_WORD *)(*(_QWORD *)(a1 + 8) + 18LL) & 0x20) != 0 )
{
*(_DWORD *)(a1 + 4) = mi_calc_blob_length(
*(unsigned __int8 *)(*(_QWORD *)(a1 + 8) + 26LL),
*(unsigned __int8 **)(a1 + 24));
*(_QWORD *)(a1 + 24) = *(_QWORD *)(*(_QWORD *)(a1 + 24) + *(unsigned __int8 *)(*(_QWORD *)(a1 + 8) + 26LL));
}
else
{
*(_DWORD *)(a1 + 4) = *(unsigned __int16 *)(*(_QWORD *)(a1 + 8) + 20LL);
}
return 1;
}
}
}
else
{
return 1;
}
}
else
{
return 0;
}
}
| _mi_ft_segiterator:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x20
MOV qword ptr [RBP + -0x10],RDI
MOV RAX,qword ptr [RBP + -0x10]
CMP dword ptr [RAX],0x0
JNZ 0x00163ce3
JMP 0x00163cd7
LAB_00163cd7:
MOV dword ptr [RBP + -0x4],0x0
JMP 0x00163e72
LAB_00163ce3:
MOV RAX,qword ptr [RBP + -0x10]
MOV ECX,dword ptr [RAX]
ADD ECX,-0x1
MOV dword ptr [RAX],ECX
MOV RAX,qword ptr [RBP + -0x10]
CMP qword ptr [RAX + 0x8],0x0
JNZ 0x00163d07
JMP 0x00163cfb
LAB_00163cfb:
MOV dword ptr [RBP + -0x4],0x1
JMP 0x00163e72
LAB_00163d07:
MOV RAX,qword ptr [RBP + -0x10]
MOV RCX,qword ptr [RAX + 0x8]
ADD RCX,-0x20
MOV qword ptr [RAX + 0x8],RCX
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX + 0x8]
MOVZX EAX,byte ptr [RAX + 0x19]
CMP EAX,0x0
JZ 0x00163d6a
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX + 0x10]
MOV RCX,qword ptr [RBP + -0x10]
MOV RCX,qword ptr [RCX + 0x8]
MOV ECX,dword ptr [RCX + 0xc]
MOVZX EAX,byte ptr [RAX + RCX*0x1]
MOV RCX,qword ptr [RBP + -0x10]
MOV RCX,qword ptr [RCX + 0x8]
MOVZX ECX,byte ptr [RCX + 0x19]
AND EAX,ECX
CMP EAX,0x0
JZ 0x00163d6a
MOV RAX,qword ptr [RBP + -0x10]
MOV qword ptr [RAX + 0x18],0x0
MOV dword ptr [RBP + -0x4],0x1
JMP 0x00163e72
LAB_00163d6a:
MOV RAX,qword ptr [RBP + -0x10]
MOV RCX,qword ptr [RAX + 0x10]
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX + 0x8]
MOV EAX,dword ptr [RAX + 0x8]
ADD RCX,RAX
MOV RAX,qword ptr [RBP + -0x10]
MOV qword ptr [RAX + 0x18],RCX
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX + 0x8]
MOVZX EAX,word ptr [RAX + 0x12]
AND EAX,0x8
CMP EAX,0x0
JZ 0x00163df6
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX + 0x8]
MOVZX EAX,byte ptr [RAX + 0x1a]
MOV dword ptr [RBP + -0x14],EAX
CMP dword ptr [RBP + -0x14],0x1
JNZ 0x00163dc1
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX + 0x18]
MOVZX EAX,byte ptr [RAX]
MOV dword ptr [RBP + -0x18],EAX
JMP 0x00163dcf
LAB_00163dc1:
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX + 0x18]
MOVZX EAX,word ptr [RAX]
MOV dword ptr [RBP + -0x18],EAX
LAB_00163dcf:
MOV ECX,dword ptr [RBP + -0x18]
MOV RAX,qword ptr [RBP + -0x10]
MOV dword ptr [RAX + 0x4],ECX
MOV EDX,dword ptr [RBP + -0x14]
MOV RAX,qword ptr [RBP + -0x10]
MOV RCX,qword ptr [RAX + 0x18]
MOV EDX,EDX
ADD RCX,RDX
MOV qword ptr [RAX + 0x18],RCX
MOV dword ptr [RBP + -0x4],0x1
JMP 0x00163e72
LAB_00163df6:
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX + 0x8]
MOVZX EAX,word ptr [RAX + 0x12]
AND EAX,0x20
CMP EAX,0x0
JZ 0x00163e58
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX + 0x8]
MOVZX EDI,byte ptr [RAX + 0x1a]
MOV RAX,qword ptr [RBP + -0x10]
MOV RSI,qword ptr [RAX + 0x18]
CALL 0x00137390
MOV ECX,EAX
MOV RAX,qword ptr [RBP + -0x10]
MOV dword ptr [RAX + 0x4],ECX
MOV RAX,qword ptr [RBP + -0x10]
MOV RCX,qword ptr [RBP + -0x10]
MOV RCX,qword ptr [RCX + 0x18]
MOV RDX,qword ptr [RBP + -0x10]
MOV RDX,qword ptr [RDX + 0x8]
MOVZX EDX,byte ptr [RDX + 0x1a]
MOVSXD RDX,EDX
MOV RCX,qword ptr [RCX + RDX*0x1]
MOV qword ptr [RAX + 0x18],RCX
MOV dword ptr [RBP + -0x4],0x1
JMP 0x00163e72
LAB_00163e58:
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX + 0x8]
MOVZX ECX,word ptr [RAX + 0x14]
MOV RAX,qword ptr [RBP + -0x10]
MOV dword ptr [RAX + 0x4],ECX
MOV dword ptr [RBP + -0x4],0x1
LAB_00163e72:
MOV EAX,dword ptr [RBP + -0x4]
ADD RSP,0x20
POP RBP
RET
|
int4 _mi_ft_segiterator(int *param_1)
{
byte bVar1;
int iVar2;
uint local_20;
int4 local_c;
if (*param_1 == 0) {
local_c = 0;
}
else {
*param_1 = *param_1 + -1;
if (*(long *)(param_1 + 2) == 0) {
local_c = 1;
}
else {
*(long *)(param_1 + 2) = *(long *)(param_1 + 2) + -0x20;
if ((*(char *)(*(long *)(param_1 + 2) + 0x19) == '\0') ||
((*(byte *)(*(long *)(param_1 + 4) + (ulong)*(uint *)(*(long *)(param_1 + 2) + 0xc)) &
*(byte *)(*(long *)(param_1 + 2) + 0x19)) == 0)) {
*(ulong *)(param_1 + 6) =
*(long *)(param_1 + 4) + (ulong)*(uint *)(*(long *)(param_1 + 2) + 8);
if ((*(ushort *)(*(long *)(param_1 + 2) + 0x12) & 8) == 0) {
if ((*(ushort *)(*(long *)(param_1 + 2) + 0x12) & 0x20) == 0) {
param_1[1] = (uint)*(ushort *)(*(long *)(param_1 + 2) + 0x14);
local_c = 1;
}
else {
iVar2 = _mi_calc_blob_length
(*(int1 *)(*(long *)(param_1 + 2) + 0x1a),
*(int8 *)(param_1 + 6));
param_1[1] = iVar2;
*(int8 *)(param_1 + 6) =
*(int8 *)
(*(long *)(param_1 + 6) +
(long)(int)(uint)*(byte *)(*(long *)(param_1 + 2) + 0x1a));
local_c = 1;
}
}
else {
bVar1 = *(byte *)(*(long *)(param_1 + 2) + 0x1a);
if (bVar1 == 1) {
local_20 = (uint)**(byte **)(param_1 + 6);
}
else {
local_20 = (uint)**(ushort **)(param_1 + 6);
}
param_1[1] = local_20;
*(ulong *)(param_1 + 6) = *(long *)(param_1 + 6) + (ulong)(uint)bVar1;
local_c = 1;
}
}
else {
param_1[6] = 0;
param_1[7] = 0;
local_c = 1;
}
}
}
return local_c;
}
| |
42,273 | common_log_main() | monkey531[P]llama/common/log.cpp | struct common_log * common_log_main() {
static struct common_log log;
return &log;
} | O1 | cpp | common_log_main():
pushq %rbx
movb 0x53682(%rip), %al # 0xf02e0
testb %al, %al
je 0x9cc6b
leaq 0x535a7(%rip), %rax # 0xf0210
popq %rbx
retq
leaq 0x5366e(%rip), %rdi # 0xf02e0
callq 0x19c30
testl %eax, %eax
je 0x9cc62
leaq 0x5358e(%rip), %rdi # 0xf0210
movl $0x100, %esi # imm = 0x100
callq 0x9d398
leaq 0x151(%rip), %rdi # 0x9cde4
leaq 0x53576(%rip), %rsi # 0xf0210
leaq 0x52a27(%rip), %rdx # 0xef6c8
callq 0x195e0
leaq 0x53633(%rip), %rdi # 0xf02e0
callq 0x19460
jmp 0x9cc62
movq %rax, %rbx
leaq 0x53622(%rip), %rdi # 0xf02e0
callq 0x19450
movq %rbx, %rdi
callq 0x19be0
| _Z15common_log_mainv:
push rbx
mov al, cs:_ZGVZ15common_log_mainvE3log; `guard variable for'common_log_main(void)::log
test al, al
jz short loc_9CC6B
loc_9CC62:
lea rax, _ZZ15common_log_mainvE3log; common_log_main(void)::log
pop rbx
retn
loc_9CC6B:
lea rdi, _ZGVZ15common_log_mainvE3log; __guard *
call ___cxa_guard_acquire
test eax, eax
jz short loc_9CC62
lea rdi, _ZZ15common_log_mainvE3log; this
mov esi, 100h; unsigned __int64
call _ZN10common_logC2Em; common_log::common_log(ulong)
lea rdi, _ZN10common_logD2Ev; lpfunc
lea rsi, _ZZ15common_log_mainvE3log; obj
lea rdx, __dso_handle; lpdso_handle
call ___cxa_atexit
lea rdi, _ZGVZ15common_log_mainvE3log; __guard *
call ___cxa_guard_release
jmp short loc_9CC62
mov rbx, rax
lea rdi, _ZGVZ15common_log_mainvE3log; __guard *
call ___cxa_guard_abort
mov rdi, rbx
call __Unwind_Resume
| void *common_log_main(void)
{
if ( !(_BYTE)`guard variable for'common_log_main(void)::log
&& __cxa_guard_acquire(&`guard variable for'common_log_main(void)::log) )
{
common_log::common_log((common_log *)&common_log_main(void)::log, 0x100uLL);
__cxa_atexit(common_log::~common_log, &common_log_main(void)::log, &_dso_handle);
__cxa_guard_release(&`guard variable for'common_log_main(void)::log);
}
return &common_log_main(void)::log;
}
| common_log_main:
PUSH RBX
MOV AL,byte ptr [0x001f02e0]
TEST AL,AL
JZ 0x0019cc6b
LAB_0019cc62:
LEA RAX,[0x1f0210]
POP RBX
RET
LAB_0019cc6b:
LEA RDI,[0x1f02e0]
CALL 0x00119c30
TEST EAX,EAX
JZ 0x0019cc62
LAB_0019cc7b:
LEA RDI,[0x1f0210]
MOV ESI,0x100
CALL 0x0019d398
LAB_0019cc8c:
LEA RDI,[0x19cde4]
LEA RSI,[0x1f0210]
LEA RDX,[0x1ef6c8]
CALL 0x001195e0
LEA RDI,[0x1f02e0]
CALL 0x00119460
JMP 0x0019cc62
|
/* WARNING: Unknown calling convention -- yet parameter storage is locked */
/* common_log_main() */
int1 * common_log_main(void)
{
int iVar1;
if (common_log_main()::log == '\0') {
iVar1 = __cxa_guard_acquire(&common_log_main()::log);
if (iVar1 != 0) {
/* try { // try from 0019cc7b to 0019cc8b has its CatchHandler @ 0019ccb4 */
common_log::common_log((common_log *)common_log_main()::log,0x100);
__cxa_atexit(common_log::~common_log,common_log_main()::log,&__dso_handle);
__cxa_guard_release(&common_log_main()::log);
}
}
return common_log_main()::log;
}
| |
42,274 | common_params_handle_model_default(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&) | monkey531[P]llama/common/arg.cpp | static void common_params_handle_model_default(
std::string & model,
const std::string & model_url,
std::string & hf_repo,
std::string & hf_file,
const std::string & hf_token,
const std::string & model_default) {
if (!hf_repo.empty()) {
// short-hand to avoid specifying --hf-file -> default it to --model
if (hf_file.empty()) {
if (model.empty()) {
auto auto_detected = common_get_hf_file(hf_repo, hf_token);
if (auto_detected.first.empty() || auto_detected.second.empty()) {
exit(1); // built without CURL, error message already printed
}
hf_repo = auto_detected.first;
hf_file = auto_detected.second;
} else {
hf_file = model;
}
}
// make sure model path is present (for caching purposes)
if (model.empty()) {
// this is to avoid different repo having same file name, or same file name in different subdirs
std::string filename = hf_repo + "_" + hf_file;
// to make sure we don't have any slashes in the filename
string_replace_all(filename, "/", "_");
model = fs_get_cache_file(filename);
}
} else if (!model_url.empty()) {
if (model.empty()) {
auto f = string_split<std::string>(model_url, '#').front();
f = string_split<std::string>(f, '?').front();
model = fs_get_cache_file(string_split<std::string>(f, '/').back());
}
} else if (model.empty()) {
model = model_default;
}
} | O0 | cpp | common_params_handle_model_default(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&):
subq $0x1d8, %rsp # imm = 0x1D8
movq %rdi, 0x1d0(%rsp)
movq %rsi, 0x1c8(%rsp)
movq %rdx, 0x1c0(%rsp)
movq %rcx, 0x1b8(%rsp)
movq %r8, 0x1b0(%rsp)
movq %r9, 0x1a8(%rsp)
movq 0x1c0(%rsp), %rdi
callq 0x5a4d0
testb $0x1, %al
jne 0x80eb0
movq 0x1b8(%rsp), %rdi
callq 0x5a4d0
testb $0x1, %al
jne 0x80bb2
jmp 0x80c91
movq 0x1d0(%rsp), %rdi
callq 0x5a4d0
testb $0x1, %al
jne 0x80bc8
jmp 0x80c7a
movq 0x1c0(%rsp), %rsi
movq 0x1b0(%rsp), %rdx
leaq 0x168(%rsp), %rdi
callq 0xefde0
leaq 0x168(%rsp), %rdi
callq 0x5a4d0
testb $0x1, %al
jne 0x80c0d
leaq 0x168(%rsp), %rdi
addq $0x20, %rdi
callq 0x5a4d0
testb $0x1, %al
jne 0x80c0d
jmp 0x80c17
movl $0x1, %edi
callq 0x5ac00
movq 0x1c0(%rsp), %rdi
leaq 0x168(%rsp), %rsi
callq 0x5b3e0
jmp 0x80c2e
leaq 0x188(%rsp), %rsi
movq 0x1b8(%rsp), %rdi
callq 0x5b3e0
jmp 0x80c45
leaq 0x168(%rsp), %rdi
callq 0x926f0
jmp 0x80c8f
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x160(%rsp)
movl %eax, 0x15c(%rsp)
leaq 0x168(%rsp), %rdi
callq 0x926f0
jmp 0x81080
movq 0x1d0(%rsp), %rsi
movq 0x1b8(%rsp), %rdi
callq 0x5b3e0
jmp 0x80c91
movq 0x1d0(%rsp), %rdi
callq 0x5a4d0
testb $0x1, %al
jne 0x80ca7
jmp 0x80eab
movq 0x1c0(%rsp), %rsi
leaq 0x18f63e(%rip), %rdx # 0x2102f4
leaq 0x118(%rsp), %rdi
movq %rdi, 0x18(%rsp)
callq 0x893a0
movq 0x18(%rsp), %rsi
movq 0x1b8(%rsp), %rdx
leaq 0x138(%rsp), %rdi
callq 0x92720
jmp 0x80ce4
leaq 0x118(%rsp), %rdi
callq 0x5b528
leaq 0xf7(%rsp), %rdi
movq %rdi, 0x10(%rsp)
callq 0x5b0b0
movq 0x10(%rsp), %rdx
leaq 0x1949a9(%rip), %rsi # 0x2156b8
leaq 0xf8(%rsp), %rdi
callq 0x629a0
jmp 0x80d1e
leaq 0xcf(%rsp), %rdi
movq %rdi, 0x8(%rsp)
callq 0x5b0b0
movq 0x8(%rsp), %rdx
leaq 0x18f5b8(%rip), %rsi # 0x2102f4
leaq 0xd0(%rsp), %rdi
callq 0x629a0
jmp 0x80d4b
leaq 0x138(%rsp), %rdi
leaq 0xf8(%rsp), %rsi
leaq 0xd0(%rsp), %rdx
callq 0xec020
jmp 0x80d6a
leaq 0xd0(%rsp), %rdi
callq 0x5b528
leaq 0xcf(%rsp), %rdi
callq 0x5b500
leaq 0xf8(%rsp), %rdi
callq 0x5b528
leaq 0xf7(%rsp), %rdi
callq 0x5b500
leaq 0xa8(%rsp), %rdi
leaq 0x138(%rsp), %rsi
callq 0xee0f0
jmp 0x80db5
movq 0x1d0(%rsp), %rdi
leaq 0xa8(%rsp), %rsi
callq 0x5a930
leaq 0xa8(%rsp), %rdi
callq 0x5b528
leaq 0x138(%rsp), %rdi
callq 0x5b528
jmp 0x80eab
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x160(%rsp)
movl %eax, 0x15c(%rsp)
leaq 0x118(%rsp), %rdi
callq 0x5b528
jmp 0x81080
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x160(%rsp)
movl %eax, 0x15c(%rsp)
jmp 0x80e76
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x160(%rsp)
movl %eax, 0x15c(%rsp)
jmp 0x80e5c
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x160(%rsp)
movl %eax, 0x15c(%rsp)
leaq 0xd0(%rsp), %rdi
callq 0x5b528
leaq 0xcf(%rsp), %rdi
callq 0x5b500
leaq 0xf8(%rsp), %rdi
callq 0x5b528
leaq 0xf7(%rsp), %rdi
callq 0x5b500
jmp 0x80e99
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x160(%rsp)
movl %eax, 0x15c(%rsp)
leaq 0x138(%rsp), %rdi
callq 0x5b528
jmp 0x81080
jmp 0x81078
movq 0x1c8(%rsp), %rdi
callq 0x5a4d0
testb $0x1, %al
jne 0x8104c
movq 0x1d0(%rsp), %rdi
callq 0x5a4d0
testb $0x1, %al
jne 0x80edb
jmp 0x8104a
movq 0x1c8(%rsp), %rsi
leaq 0x70(%rsp), %rdi
movq %rdi, (%rsp)
movl $0x23, %edx
callq 0x81090
movq (%rsp), %rdi
callq 0x92770
movq %rax, %rsi
leaq 0x88(%rsp), %rdi
callq 0x5a1f0
jmp 0x80f11
leaq 0x70(%rsp), %rdi
callq 0x62ab0
leaq 0x58(%rsp), %rdi
leaq 0x88(%rsp), %rsi
movl $0x3f, %edx
callq 0x81090
jmp 0x80f34
leaq 0x58(%rsp), %rdi
callq 0x92770
movq %rax, %rsi
leaq 0x88(%rsp), %rdi
callq 0x5b3e0
jmp 0x80f50
leaq 0x58(%rsp), %rdi
callq 0x62ab0
leaq 0x20(%rsp), %rdi
leaq 0x88(%rsp), %rsi
movl $0x2f, %edx
callq 0x81090
jmp 0x80f73
leaq 0x20(%rsp), %rdi
callq 0x927a0
movq %rax, %rsi
leaq 0x38(%rsp), %rdi
callq 0xee0f0
jmp 0x80f8c
movq 0x1d0(%rsp), %rdi
leaq 0x38(%rsp), %rsi
callq 0x5a930
leaq 0x38(%rsp), %rdi
callq 0x5b528
leaq 0x20(%rsp), %rdi
callq 0x62ab0
leaq 0x88(%rsp), %rdi
callq 0x5b528
jmp 0x8104a
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x160(%rsp)
movl %eax, 0x15c(%rsp)
leaq 0x70(%rsp), %rdi
callq 0x62ab0
jmp 0x81080
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x160(%rsp)
movl %eax, 0x15c(%rsp)
jmp 0x8103b
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x160(%rsp)
movl %eax, 0x15c(%rsp)
leaq 0x58(%rsp), %rdi
callq 0x62ab0
jmp 0x8103b
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x160(%rsp)
movl %eax, 0x15c(%rsp)
leaq 0x20(%rsp), %rdi
callq 0x62ab0
leaq 0x88(%rsp), %rdi
callq 0x5b528
jmp 0x81080
jmp 0x81076
movq 0x1d0(%rsp), %rdi
callq 0x5a4d0
testb $0x1, %al
jne 0x8105f
jmp 0x81074
movq 0x1a8(%rsp), %rsi
movq 0x1d0(%rsp), %rdi
callq 0x5b3e0
jmp 0x81076
jmp 0x81078
addq $0x1d8, %rsp # imm = 0x1D8
retq
movq 0x160(%rsp), %rdi
callq 0x5aba0
nopl (%rax)
| _ZL34common_params_handle_model_defaultRNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKS4_S5_S5_S7_S7_:
sub rsp, 1D8h
mov [rsp+1D8h+var_8], rdi
mov [rsp+1D8h+var_10], rsi
mov qword ptr [rsp+1D8h+var_18], rdx
mov [rsp+1D8h+var_20], rcx
mov [rsp+1D8h+var_28], r8
mov [rsp+1D8h+var_30], r9
mov rdi, qword ptr [rsp+1D8h+var_18]
call __ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5emptyEv; std::string::empty(void)
test al, 1
jnz loc_80EB0
mov rdi, [rsp+1D8h+var_20]
call __ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5emptyEv; std::string::empty(void)
test al, 1
jnz short loc_80BB2
jmp loc_80C91
loc_80BB2:
mov rdi, [rsp+1D8h+var_8]
call __ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5emptyEv; std::string::empty(void)
test al, 1
jnz short loc_80BC8
jmp loc_80C7A
loc_80BC8:
mov rsi, qword ptr [rsp+1D8h+var_18]; int
mov rdx, [rsp+1D8h+var_28]; void *
lea rdi, [rsp+1D8h+var_70]; int
call _Z18common_get_hf_fileRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES6_; common_get_hf_file(std::string const&,std::string const&)
lea rdi, [rsp+1D8h+var_70]
call __ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5emptyEv; std::string::empty(void)
test al, 1
jnz short loc_80C0D
lea rdi, [rsp+1D8h+var_70]
add rdi, 20h ; ' '
call __ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5emptyEv; std::string::empty(void)
test al, 1
jnz short loc_80C0D
jmp short loc_80C17
loc_80C0D:
mov edi, 1
call _exit
loc_80C17:
mov rdi, qword ptr [rsp+1D8h+var_18]
lea rsi, [rsp+1D8h+var_70]
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSERKS4_; std::string::operator=(std::string const&)
jmp short $+2
loc_80C2E:
lea rsi, [rsp+1D8h+var_50]
mov rdi, [rsp+1D8h+var_20]
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSERKS4_; std::string::operator=(std::string const&)
jmp short $+2
loc_80C45:
lea rdi, [rsp+1D8h+var_70]
call _ZNSt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES5_ED2Ev; std::pair<std::string,std::string>::~pair()
jmp short loc_80C8F
mov rcx, rax
mov eax, edx
mov [rsp+arg_158], rcx
mov [rsp+arg_154], eax
lea rdi, [rsp+arg_160]
call _ZNSt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES5_ED2Ev; std::pair<std::string,std::string>::~pair()
jmp loc_81080
loc_80C7A:
mov rsi, [rsp+1D8h+var_8]
mov rdi, [rsp+1D8h+var_20]
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSERKS4_; std::string::operator=(std::string const&)
loc_80C8F:
jmp short $+2
loc_80C91:
mov rdi, [rsp+1D8h+var_8]
call __ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5emptyEv; std::string::empty(void)
test al, 1
jnz short loc_80CA7
jmp loc_80EAB
loc_80CA7:
mov rsi, qword ptr [rsp+1D8h+var_18]; int
lea rdx, aCall911+8; int
lea rdi, [rsp+1D8h+var_C0]; int
mov [rsp+1D8h+var_1C0], rdi; int
call _ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EERKS8_PKS5_; std::operator+<char>(std::string const&,char const*)
mov rsi, [rsp+1D8h+var_1C0]
mov rdx, [rsp+1D8h+var_20]
lea rdi, [rsp+1D8h+var_A0]
call _ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEOS8_RKS8_; std::operator+<char>(std::string&&,std::string const&)
jmp short $+2
loc_80CE4:
lea rdi, [rsp+1D8h+var_C0]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string()
lea rdi, [rsp+1D8h+var_E1]
mov qword ptr [rsp+1D8h+var_1C8], rdi; int
call __ZNSaIcEC1Ev; std::allocator<char>::allocator(void)
mov rdx, qword ptr [rsp+1D8h+var_1C8]
lea rsi, asc_2156B7+1; "/"
lea rdi, [rsp+1D8h+var_E1+1]
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_; std::string::basic_string<std::allocator<char>>(char const*,std::allocator<char> const&)
jmp short $+2
loc_80D1E:
lea rdi, [rsp+1D8h+var_109]
mov qword ptr [rsp+1D8h+var_1D0], rdi; int
call __ZNSaIcEC1Ev; std::allocator<char>::allocator(void)
mov rdx, qword ptr [rsp+1D8h+var_1D0]
lea rsi, aCall911+8; "_"
lea rdi, [rsp+1D8h+var_109+1]
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_; std::string::basic_string<std::allocator<char>>(char const*,std::allocator<char> const&)
jmp short $+2
loc_80D4B:
lea rdi, [rsp+1D8h+var_A0]
lea rsi, [rsp+1D8h+var_E1+1]
lea rdx, [rsp+1D8h+var_109+1]
call _Z18string_replace_allRNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKS4_S7_; string_replace_all(std::string &,std::string const&,std::string const&)
jmp short $+2
loc_80D6A:
lea rdi, [rsp+1D8h+var_109+1]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string()
lea rdi, [rsp+1D8h+var_109]
call __ZNSaIcED1Ev; std::allocator<char>::~allocator()
lea rdi, [rsp+1D8h+var_E1+1]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string()
lea rdi, [rsp+1D8h+var_E1]
call __ZNSaIcED1Ev; std::allocator<char>::~allocator()
lea rdi, [rsp+1D8h+var_130]; int
lea rsi, [rsp+1D8h+var_A0]
call _Z17fs_get_cache_fileRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE; fs_get_cache_file(std::string const&)
jmp short $+2
loc_80DB5:
mov rdi, [rsp+1D8h+var_8]
lea rsi, [rsp+1D8h+var_130]
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEOS4_; std::string::operator=(std::string&&)
lea rdi, [rsp+1D8h+var_130]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string()
lea rdi, [rsp+1D8h+var_A0]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string()
jmp loc_80EAB
mov rcx, rax
mov eax, edx
mov [rsp+arg_158], rcx
mov [rsp+arg_154], eax
lea rdi, [rsp+arg_110]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string()
jmp loc_81080
mov rcx, rax
mov eax, edx
mov [rsp+arg_158], rcx
mov [rsp+arg_154], eax
jmp short loc_80E76
mov rcx, rax
mov eax, edx
mov [rsp+arg_158], rcx
mov [rsp+arg_154], eax
jmp short loc_80E5C
mov rcx, rax
mov eax, edx
mov [rsp+arg_158], rcx
mov [rsp+arg_154], eax
lea rdi, [rsp+arg_C8]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string()
loc_80E5C:
lea rdi, [rsp+arg_C7]
call __ZNSaIcED1Ev; std::allocator<char>::~allocator()
lea rdi, [rsp+arg_F0]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string()
loc_80E76:
lea rdi, [rsp+arg_EF]
call __ZNSaIcED1Ev; std::allocator<char>::~allocator()
jmp short loc_80E99
mov rcx, rax
mov eax, edx
mov [rsp+arg_158], rcx
mov [rsp+arg_154], eax
loc_80E99:
lea rdi, [rsp+arg_130]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string()
jmp loc_81080
loc_80EAB:
jmp loc_81078
loc_80EB0:
mov rdi, [rsp+1D8h+var_10]
call __ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5emptyEv; std::string::empty(void)
test al, 1
jnz loc_8104C
mov rdi, [rsp+1D8h+var_8]
call __ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5emptyEv; std::string::empty(void)
test al, 1
jnz short loc_80EDB
jmp loc_8104A
loc_80EDB:
mov rsi, [rsp+1D8h+var_10]
lea rdi, [rsp+1D8h+var_168]
mov qword ptr [rsp+1D8h+var_1D8], rdi; int
mov edx, 23h ; '#'
call _ZL12string_splitINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEESt6vectorIT_SaIS7_EERKS5_c; string_split<std::string>(std::string const&,char)
mov rdi, qword ptr [rsp+1D8h+var_1D8]
call _ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE5frontEv; std::vector<std::string>::front(void)
mov rsi, rax
lea rdi, [rsp+1D8h+var_150]
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC1ERKS4_; std::string::basic_string(std::string const&)
jmp short $+2
loc_80F11:
lea rdi, [rsp+1D8h+var_168]
call _ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EED2Ev; std::vector<std::string>::~vector()
lea rdi, [rsp+1D8h+var_180]
lea rsi, [rsp+1D8h+var_150]
mov edx, 3Fh ; '?'
call _ZL12string_splitINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEESt6vectorIT_SaIS7_EERKS5_c; string_split<std::string>(std::string const&,char)
jmp short $+2
loc_80F34:
lea rdi, [rsp+1D8h+var_180]
call _ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE5frontEv; std::vector<std::string>::front(void)
mov rsi, rax
lea rdi, [rsp+1D8h+var_150]
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSERKS4_; std::string::operator=(std::string const&)
jmp short $+2
loc_80F50:
lea rdi, [rsp+1D8h+var_180]
call _ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EED2Ev; std::vector<std::string>::~vector()
lea rdi, [rsp+1D8h+var_1B8]
lea rsi, [rsp+1D8h+var_150]
mov edx, 2Fh ; '/'
call _ZL12string_splitINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEESt6vectorIT_SaIS7_EERKS5_c; string_split<std::string>(std::string const&,char)
jmp short $+2
loc_80F73:
lea rdi, [rsp+1D8h+var_1B8]
call _ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE4backEv; std::vector<std::string>::back(void)
mov rsi, rax
lea rdi, [rsp+1D8h+var_1A0]; int
call _Z17fs_get_cache_fileRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE; fs_get_cache_file(std::string const&)
jmp short $+2
loc_80F8C:
mov rdi, [rsp+1D8h+var_8]
lea rsi, [rsp+1D8h+var_1A0]
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEOS4_; std::string::operator=(std::string&&)
lea rdi, [rsp+1D8h+var_1A0]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string()
lea rdi, [rsp+1D8h+var_1B8]
call _ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EED2Ev; std::vector<std::string>::~vector()
lea rdi, [rsp+1D8h+var_150]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string()
jmp loc_8104A
mov rcx, rax
mov eax, edx
mov [rsp+arg_158], rcx
mov [rsp+arg_154], eax
lea rdi, [rsp+arg_68]
call _ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EED2Ev; std::vector<std::string>::~vector()
jmp loc_81080
mov rcx, rax
mov eax, edx
mov [rsp+arg_158], rcx
mov [rsp+arg_154], eax
jmp short loc_8103B
mov rcx, rax
mov eax, edx
mov [rsp+arg_158], rcx
mov [rsp+arg_154], eax
lea rdi, [rsp+arg_50]
call _ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EED2Ev; std::vector<std::string>::~vector()
jmp short loc_8103B
mov rcx, rax
mov eax, edx
mov [rsp+arg_158], rcx
mov [rsp+arg_154], eax
lea rdi, [rsp+arg_18]
call _ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EED2Ev; std::vector<std::string>::~vector()
loc_8103B:
lea rdi, [rsp+arg_80]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string()
jmp short loc_81080
loc_8104A:
jmp short loc_81076
loc_8104C:
mov rdi, [rsp+1D8h+var_8]
call __ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5emptyEv; std::string::empty(void)
test al, 1
jnz short loc_8105F
jmp short loc_81074
loc_8105F:
mov rsi, [rsp+1D8h+var_30]
mov rdi, [rsp+1D8h+var_8]
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSERKS4_; std::string::operator=(std::string const&)
loc_81074:
jmp short $+2
loc_81076:
jmp short $+2
loc_81078:
add rsp, 1D8h
retn
loc_81080:
mov rdi, [rsp+arg_158]
call __Unwind_Resume
| void common_params_handle_model_default(
long long a1,
long long a2,
long long a3,
long long a4,
void *a5,
long long 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
long long v15; // rax
int v16; // ecx
int v17; // r8d
int v18; // r9d
long long v19; // rax
int v20; // ecx
int v21; // r8d
int v22; // r9d
int v23; // [rsp+0h] [rbp-1D8h]
int v24; // [rsp+0h] [rbp-1D8h]
int v25; // [rsp+0h] [rbp-1D8h]
int v26[2]; // [rsp+0h] [rbp-1D8h]
int v27; // [rsp+0h] [rbp-1D8h]
int v28; // [rsp+0h] [rbp-1D8h]
void *v29; // [rsp+8h] [rbp-1D0h]
int v30; // [rsp+8h] [rbp-1D0h]
int v31; // [rsp+10h] [rbp-1C8h]
int v32; // [rsp+10h] [rbp-1C8h]
int v33; // [rsp+18h] [rbp-1C0h]
long long v34; // [rsp+18h] [rbp-1C0h]
int v35; // [rsp+18h] [rbp-1C0h]
long long v36; // [rsp+20h] [rbp-1B8h] BYREF
char v37; // [rsp+28h] [rbp-1B0h]
int v38; // [rsp+30h] [rbp-1A8h]
int v39; // [rsp+38h] [rbp-1A0h] BYREF
int v40; // [rsp+40h] [rbp-198h]
int v41; // [rsp+48h] [rbp-190h]
long long v42; // [rsp+50h] [rbp-188h]
long long v43; // [rsp+58h] [rbp-180h] BYREF
char v44; // [rsp+60h] [rbp-178h]
long long v45[3]; // [rsp+70h] [rbp-168h] BYREF
_BYTE v46[32]; // [rsp+88h] [rbp-150h] BYREF
int v47[9]; // [rsp+A8h] [rbp-130h] BYREF
char v48; // [rsp+CFh] [rbp-109h] BYREF
_BYTE v49[39]; // [rsp+D0h] [rbp-108h] BYREF
char v50; // [rsp+F7h] [rbp-E1h] BYREF
_BYTE v51[32]; // [rsp+F8h] [rbp-E0h] BYREF
long long v52[4]; // [rsp+118h] [rbp-C0h] BYREF
_BYTE v53[48]; // [rsp+138h] [rbp-A0h] BYREF
int v54[8]; // [rsp+168h] [rbp-70h] BYREF
_BYTE v55[32]; // [rsp+188h] [rbp-50h] BYREF
long long v56; // [rsp+1A8h] [rbp-30h]
void *v57; // [rsp+1B0h] [rbp-28h]
long long v58; // [rsp+1B8h] [rbp-20h]
int v59[2]; // [rsp+1C0h] [rbp-18h]
long long v60; // [rsp+1C8h] [rbp-10h]
long long v61; // [rsp+1D0h] [rbp-8h]
v61 = a1;
v60 = a2;
*(_QWORD *)v59 = a3;
v58 = a4;
v57 = a5;
v56 = a6;
if ( (std::string::empty(a3) & 1) != 0 )
{
if ( (std::string::empty(v60) & 1) != 0 )
{
if ( (std::string::empty(v61) & 1) != 0 )
std::string::operator=(v61, v56);
}
else if ( (std::string::empty(v61) & 1) != 0 )
{
string_split<std::string>((unsigned int)v45, v60, 35, v12, v13, v14, (unsigned int)v45);
v15 = std::vector<std::string>::front(*(_QWORD *)v26);
std::string::basic_string(v46, v15);
std::vector<std::string>::~vector(v45);
string_split<std::string>((unsigned int)&v43, (unsigned int)v46, 63, v16, v17, v18, v26[0]);
v19 = std::vector<std::string>::front(&v43);
std::string::operator=(v46, v19);
std::vector<std::string>::~vector(&v43);
string_split<std::string>((unsigned int)&v36, (unsigned int)v46, 47, v20, v21, v22, v27);
std::vector<std::string>::back(&v36);
fs_get_cache_file((int)&v39, v28, (int)v29, v31, v33, v36, v37, v38, v39, v40, v41, v42, v43, v44);
std::string::operator=(v61, &v39);
std::string::~string(&v39);
std::vector<std::string>::~vector(&v36);
std::string::~string(v46);
}
}
else
{
if ( (std::string::empty(v58) & 1) != 0 )
{
if ( (std::string::empty(v61) & 1) != 0 )
{
common_get_hf_file((int)v54, v59[0], v57);
if ( (std::string::empty(v54) & 1) != 0 || (std::string::empty(v55) & 1) != 0 )
exit(1LL);
std::string::operator=(*(_QWORD *)v59, v54);
std::string::operator=(v58, v55);
std::pair<std::string,std::string>::~pair(v54);
}
else
{
std::string::operator=(v58, v61);
}
}
if ( (std::string::empty(v61) & 1) != 0 )
{
std::operator+<char>((int)v52, v59[0], (int)"_", v6, v7, v8, v23, v29, v31, (long long)v52);
std::operator+<char>(v53, v34, v58);
std::string::~string(v52);
std::allocator<char>::allocator();
std::string::basic_string<std::allocator<char>>((long long)v51, (long long)"/", (long long)&v50);
std::allocator<char>::allocator();
std::string::basic_string<std::allocator<char>>((long long)v49, (long long)"_", (long long)&v48);
string_replace_all(
(unsigned int)v53,
(unsigned int)v51,
(unsigned int)v49,
v9,
v10,
v11,
v24,
(unsigned int)&v48,
(unsigned int)&v50,
v34,
v36,
v37);
std::string::~string(v49);
std::allocator<char>::~allocator(&v48);
std::string::~string(v51);
std::allocator<char>::~allocator(&v50);
fs_get_cache_file((int)v47, v25, v30, v32, v35, v36, v37, v38, v39, v40, v41, v42, v43, v44);
std::string::operator=(v61, v47);
std::string::~string(v47);
std::string::~string(v53);
}
}
}
| common_params_handle_model_default:
SUB RSP,0x1d8
MOV qword ptr [RSP + 0x1d0],RDI
MOV qword ptr [RSP + 0x1c8],RSI
MOV qword ptr [RSP + 0x1c0],RDX
MOV qword ptr [RSP + 0x1b8],RCX
MOV qword ptr [RSP + 0x1b0],R8
MOV qword ptr [RSP + 0x1a8],R9
MOV RDI,qword ptr [RSP + 0x1c0]
CALL 0x0015a4d0
TEST AL,0x1
JNZ 0x00180eb0
MOV RDI,qword ptr [RSP + 0x1b8]
CALL 0x0015a4d0
TEST AL,0x1
JNZ 0x00180bb2
JMP 0x00180c91
LAB_00180bb2:
MOV RDI,qword ptr [RSP + 0x1d0]
CALL 0x0015a4d0
TEST AL,0x1
JNZ 0x00180bc8
JMP 0x00180c7a
LAB_00180bc8:
MOV RSI,qword ptr [RSP + 0x1c0]
MOV RDX,qword ptr [RSP + 0x1b0]
LEA RDI,[RSP + 0x168]
CALL 0x001efde0
LEA RDI,[RSP + 0x168]
CALL 0x0015a4d0
TEST AL,0x1
JNZ 0x00180c0d
LEA RDI,[RSP + 0x168]
ADD RDI,0x20
CALL 0x0015a4d0
TEST AL,0x1
JNZ 0x00180c0d
JMP 0x00180c17
LAB_00180c0d:
MOV EDI,0x1
CALL 0x0015ac00
LAB_00180c17:
MOV RDI,qword ptr [RSP + 0x1c0]
LAB_00180c1f:
LEA RSI,[RSP + 0x168]
CALL 0x0015b3e0
JMP 0x00180c2e
LAB_00180c2e:
LEA RSI,[RSP + 0x188]
MOV RDI,qword ptr [RSP + 0x1b8]
CALL 0x0015b3e0
LAB_00180c43:
JMP 0x00180c45
LAB_00180c45:
LEA RDI,[RSP + 0x168]
CALL 0x001926f0
JMP 0x00180c8f
LAB_00180c7a:
MOV RSI,qword ptr [RSP + 0x1d0]
MOV RDI,qword ptr [RSP + 0x1b8]
CALL 0x0015b3e0
LAB_00180c8f:
JMP 0x00180c91
LAB_00180c91:
MOV RDI,qword ptr [RSP + 0x1d0]
CALL 0x0015a4d0
TEST AL,0x1
JNZ 0x00180ca7
JMP 0x00180eab
LAB_00180ca7:
MOV RSI,qword ptr [RSP + 0x1c0]
LEA RDX,[0x3102f4]
LEA RDI,[RSP + 0x118]
MOV qword ptr [RSP + 0x18],RDI
CALL 0x001893a0
MOV RSI,qword ptr [RSP + 0x18]
MOV RDX,qword ptr [RSP + 0x1b8]
LAB_00180cd5:
LEA RDI,[RSP + 0x138]
CALL 0x00192720
JMP 0x00180ce4
LAB_00180ce4:
LEA RDI,[RSP + 0x118]
CALL 0x0015b528
LEA RDI,[RSP + 0xf7]
MOV qword ptr [RSP + 0x10],RDI
CALL 0x0015b0b0
MOV RDX,qword ptr [RSP + 0x10]
LAB_00180d08:
LEA RSI,[0x3156b8]
LEA RDI,[RSP + 0xf8]
CALL 0x001629a0
JMP 0x00180d1e
LAB_00180d1e:
LEA RDI,[RSP + 0xcf]
MOV qword ptr [RSP + 0x8],RDI
CALL 0x0015b0b0
MOV RDX,qword ptr [RSP + 0x8]
LAB_00180d35:
LEA RSI,[0x3102f4]
LEA RDI,[RSP + 0xd0]
CALL 0x001629a0
JMP 0x00180d4b
LAB_00180d4b:
LEA RDI,[RSP + 0x138]
LEA RSI,[RSP + 0xf8]
LEA RDX,[RSP + 0xd0]
CALL 0x001ec020
JMP 0x00180d6a
LAB_00180d6a:
LEA RDI,[RSP + 0xd0]
CALL 0x0015b528
LEA RDI,[RSP + 0xcf]
CALL 0x0015b500
LEA RDI,[RSP + 0xf8]
CALL 0x0015b528
LEA RDI,[RSP + 0xf7]
CALL 0x0015b500
LAB_00180d9e:
LEA RDI,[RSP + 0xa8]
LEA RSI,[RSP + 0x138]
CALL 0x001ee0f0
LAB_00180db3:
JMP 0x00180db5
LAB_00180db5:
MOV RDI,qword ptr [RSP + 0x1d0]
LEA RSI,[RSP + 0xa8]
CALL 0x0015a930
LEA RDI,[RSP + 0xa8]
CALL 0x0015b528
LEA RDI,[RSP + 0x138]
CALL 0x0015b528
JMP 0x00180eab
LAB_00180eab:
JMP 0x00181078
LAB_00180eb0:
MOV RDI,qword ptr [RSP + 0x1c8]
CALL 0x0015a4d0
TEST AL,0x1
JNZ 0x0018104c
MOV RDI,qword ptr [RSP + 0x1d0]
CALL 0x0015a4d0
TEST AL,0x1
JNZ 0x00180edb
JMP 0x0018104a
LAB_00180edb:
MOV RSI,qword ptr [RSP + 0x1c8]
LEA RDI,[RSP + 0x70]
MOV qword ptr [RSP],RDI
MOV EDX,0x23
CALL 0x00181090
MOV RDI,qword ptr [RSP]
CALL 0x00192770
MOV RSI,RAX
LAB_00180f02:
LEA RDI,[RSP + 0x88]
CALL 0x0015a1f0
JMP 0x00180f11
LAB_00180f11:
LEA RDI,[RSP + 0x70]
CALL 0x00162ab0
LAB_00180f1b:
LEA RDI,[RSP + 0x58]
LEA RSI,[RSP + 0x88]
MOV EDX,0x3f
CALL 0x00181090
JMP 0x00180f34
LAB_00180f34:
LEA RDI,[RSP + 0x58]
CALL 0x00192770
MOV RSI,RAX
LAB_00180f41:
LEA RDI,[RSP + 0x88]
CALL 0x0015b3e0
JMP 0x00180f50
LAB_00180f50:
LEA RDI,[RSP + 0x58]
CALL 0x00162ab0
LAB_00180f5a:
LEA RDI,[RSP + 0x20]
LEA RSI,[RSP + 0x88]
MOV EDX,0x2f
CALL 0x00181090
JMP 0x00180f73
LAB_00180f73:
LEA RDI,[RSP + 0x20]
CALL 0x001927a0
MOV RSI,RAX
LAB_00180f80:
LEA RDI,[RSP + 0x38]
CALL 0x001ee0f0
LAB_00180f8a:
JMP 0x00180f8c
LAB_00180f8c:
MOV RDI,qword ptr [RSP + 0x1d0]
LEA RSI,[RSP + 0x38]
CALL 0x0015a930
LEA RDI,[RSP + 0x38]
CALL 0x0015b528
LEA RDI,[RSP + 0x20]
CALL 0x00162ab0
LEA RDI,[RSP + 0x88]
CALL 0x0015b528
JMP 0x0018104a
LAB_0018104a:
JMP 0x00181076
LAB_0018104c:
MOV RDI,qword ptr [RSP + 0x1d0]
CALL 0x0015a4d0
TEST AL,0x1
JNZ 0x0018105f
JMP 0x00181074
LAB_0018105f:
MOV RSI,qword ptr [RSP + 0x1a8]
MOV RDI,qword ptr [RSP + 0x1d0]
CALL 0x0015b3e0
LAB_00181074:
JMP 0x00181076
LAB_00181076:
JMP 0x00181078
LAB_00181078:
ADD RSP,0x1d8
RET
|
/* common_params_handle_model_default(std::__cxx11::string&, std::__cxx11::string const&,
std::__cxx11::string&, std::__cxx11::string&, std::__cxx11::string const&, std::__cxx11::string
const&) */
void common_params_handle_model_default
(string *param_1,string *param_2,string *param_3,string *param_4,string *param_5,
string *param_6)
{
string *psVar1;
byte bVar2;
string local_1b8 [24];
string local_1a0 [32];
string local_180 [24];
string local_168 [24];
string local_150 [32];
string local_130 [39];
allocator local_109;
string local_108 [39];
allocator local_e1;
string local_e0 [32];
string local_c0 [32];
string local_a0 [48];
string local_70 [32];
string local_50 [32];
string *local_30;
string *local_28;
string *local_20;
string *local_18;
string *local_10;
string *local_8;
local_30 = param_6;
local_28 = param_5;
local_20 = param_4;
local_18 = param_3;
local_10 = param_2;
local_8 = param_1;
bVar2 = std::__cxx11::string::empty();
if ((bVar2 & 1) == 0) {
bVar2 = std::__cxx11::string::empty();
if ((bVar2 & 1) != 0) {
bVar2 = std::__cxx11::string::empty();
if ((bVar2 & 1) == 0) {
std::__cxx11::string::operator=(local_20,local_8);
}
else {
common_get_hf_file(local_70,local_18);
bVar2 = std::__cxx11::string::empty();
if (((bVar2 & 1) != 0) || (bVar2 = std::__cxx11::string::empty(), (bVar2 & 1) != 0)) {
/* WARNING: Subroutine does not return */
exit(1);
}
/* try { // try from 00180c1f to 00180c42 has its CatchHandler @ 00180c54 */
std::__cxx11::string::operator=(local_18,local_70);
std::__cxx11::string::operator=(local_20,local_50);
std::pair<std::__cxx11::string,std::__cxx11::string>::~pair
((pair<std::__cxx11::string,std::__cxx11::string> *)local_70);
}
}
bVar2 = std::__cxx11::string::empty();
if ((bVar2 & 1) != 0) {
std::operator+(local_c0,(char *)local_18);
/* try { // try from 00180cd5 to 00180ce1 has its CatchHandler @ 00180de9 */
std::operator+(local_a0,local_c0);
std::__cxx11::string::~string(local_c0);
std::allocator<char>::allocator();
/* try { // try from 00180d08 to 00180d1b has its CatchHandler @ 00180e0f */
std::__cxx11::string::string<std::allocator<char>>(local_e0,"/",&local_e1);
std::allocator<char>::allocator();
/* try { // try from 00180d35 to 00180d48 has its CatchHandler @ 00180e25 */
std::__cxx11::string::string<std::allocator<char>>(local_108,"_",&local_109);
/* try { // try from 00180d4b to 00180d67 has its CatchHandler @ 00180e3b */
string_replace_all(local_a0,local_e0,local_108);
std::__cxx11::string::~string(local_108);
std::allocator<char>::~allocator((allocator<char> *)&local_109);
std::__cxx11::string::~string(local_e0);
std::allocator<char>::~allocator((allocator<char> *)&local_e1);
/* try { // try from 00180d9e to 00180db2 has its CatchHandler @ 00180e85 */
fs_get_cache_file(local_130);
std::__cxx11::string::operator=(local_8,local_130);
std::__cxx11::string::~string(local_130);
std::__cxx11::string::~string(local_a0);
}
}
else {
bVar2 = std::__cxx11::string::empty();
if ((bVar2 & 1) == 0) {
bVar2 = std::__cxx11::string::empty();
if ((bVar2 & 1) != 0) {
string_split<std::__cxx11::string>(local_168,(char)local_10);
psVar1 = (string *)
std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>::front
((vector<std::__cxx11::string,std::allocator<std::__cxx11::string>> *)
local_168);
/* try { // try from 00180f02 to 00180f0e has its CatchHandler @ 00180fc4 */
std::__cxx11::string::string(local_150,psVar1);
std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>::~vector
((vector<std::__cxx11::string,std::allocator<std::__cxx11::string>> *)local_168);
/* try { // try from 00180f1b to 00180f31 has its CatchHandler @ 00180fe7 */
string_split<std::__cxx11::string>(local_180,(char)local_150);
psVar1 = (string *)
std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>::front
((vector<std::__cxx11::string,std::allocator<std::__cxx11::string>> *)
local_180);
/* try { // try from 00180f41 to 00180f4d has its CatchHandler @ 00180ffd */
std::__cxx11::string::operator=(local_150,psVar1);
std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>::~vector
((vector<std::__cxx11::string,std::allocator<std::__cxx11::string>> *)local_180);
/* try { // try from 00180f5a to 00180f70 has its CatchHandler @ 00180fe7 */
string_split<std::__cxx11::string>(local_1b8,(char)local_150);
std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>::back
((vector<std::__cxx11::string,std::allocator<std::__cxx11::string>> *)local_1b8);
/* try { // try from 00180f80 to 00180f89 has its CatchHandler @ 0018101d */
fs_get_cache_file(local_1a0);
std::__cxx11::string::operator=(local_8,local_1a0);
std::__cxx11::string::~string(local_1a0);
std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>::~vector
((vector<std::__cxx11::string,std::allocator<std::__cxx11::string>> *)local_1b8);
std::__cxx11::string::~string(local_150);
}
}
else {
bVar2 = std::__cxx11::string::empty();
if ((bVar2 & 1) != 0) {
std::__cxx11::string::operator=(local_8,local_30);
}
}
}
return;
}
| |
42,275 | testing::AssertionResult testing::(anonymous namespace)::IsSubstringImpl<char const*>(bool, char const*, char const*, char const* const&, char const* const&) | AlayaLite/build_O0/_deps/googletest-src/googletest/src/gtest.cc | AssertionResult IsSubstringImpl(bool expected_to_be_substring,
const char* needle_expr,
const char* haystack_expr,
const StringType& needle,
const StringType& haystack) {
if (IsSubstringPred(needle, haystack) == expected_to_be_substring)
return AssertionSuccess();
const bool is_wide_string = sizeof(needle[0]) > 1;
const char* const begin_string_quote = is_wide_string ? "L\"" : "\"";
return AssertionFailure()
<< "Value of: " << needle_expr << "\n"
<< " Actual: " << begin_string_quote << needle << "\"\n"
<< "Expected: " << (expected_to_be_substring ? "" : "not ")
<< "a substring of " << haystack_expr << "\n"
<< "Which is: " << begin_string_quote << haystack << "\"";
} | O0 | cpp | testing::AssertionResult testing::(anonymous namespace)::IsSubstringImpl<char const*>(bool, char const*, char const*, char const* const&, char const* const&):
subq $0x108, %rsp # imm = 0x108
movq %rdi, 0x90(%rsp)
movb %sil, %al
movq %rdi, %rsi
movq %rsi, 0x98(%rsp)
movq %rdi, 0x100(%rsp)
andb $0x1, %al
movb %al, 0xff(%rsp)
movq %rdx, 0xf0(%rsp)
movq %rcx, 0xe8(%rsp)
movq %r8, 0xe0(%rsp)
movq %r9, 0xd8(%rsp)
movq 0xe0(%rsp), %rdi
movq 0xd8(%rsp), %rsi
callq 0xdf660
andb $0x1, %al
movzbl %al, %eax
movb 0xff(%rsp), %cl
andb $0x1, %cl
movzbl %cl, %ecx
cmpl %ecx, %eax
jne 0xc3cdb
movq 0x90(%rsp), %rdi
callq 0xb09c0
jmp 0xc3f01
movb $0x0, 0xd7(%rsp)
leaq 0x501c4(%rip), %rax # 0x113eae
movq %rax, 0xc8(%rsp)
leaq 0xb8(%rsp), %rdi
movq %rdi, 0x80(%rsp)
callq 0xb09f0
movq 0x80(%rsp), %rdi
leaq 0x4f5fb(%rip), %rsi # 0x113311
callq 0xf25e0
movq %rax, 0x88(%rsp)
jmp 0xc3d25
movq 0x88(%rsp), %rdi
leaq 0xf0(%rsp), %rsi
callq 0x206a0
movq %rax, 0x78(%rsp)
jmp 0xc3d41
movq 0x78(%rsp), %rdi
leaq 0x4fd26(%rip), %rsi # 0x113a73
callq 0xe63c0
movq %rax, 0x70(%rsp)
jmp 0xc3d59
movq 0x70(%rsp), %rdi
leaq 0x4f5b8(%rip), %rsi # 0x11331d
callq 0xf25e0
movq %rax, 0x68(%rsp)
jmp 0xc3d71
movq 0x68(%rsp), %rdi
leaq 0xc8(%rsp), %rsi
callq 0x206a0
movq %rax, 0x60(%rsp)
jmp 0xc3d8a
movq 0x60(%rsp), %rdi
movq 0xe0(%rsp), %rsi
callq 0x207c0
movq %rax, 0x58(%rsp)
jmp 0xc3da3
movq 0x58(%rsp), %rdi
leaq 0x500e9(%rip), %rsi # 0x113e98
callq 0x20730
movq %rax, 0x50(%rsp)
jmp 0xc3dbb
movq 0x50(%rsp), %rdi
leaq 0x4f562(%rip), %rsi # 0x113329
callq 0xf25e0
movq %rax, 0x48(%rsp)
jmp 0xc3dd3
movq 0x48(%rsp), %rdi
movb 0xff(%rsp), %dl
leaq 0x4fc8e(%rip), %rcx # 0x113a74
leaq 0x51064(%rip), %rax # 0x114e51
testb $0x1, %dl
cmovneq %rcx, %rax
movq %rax, 0xa0(%rsp)
leaq 0xa0(%rsp), %rsi
callq 0x206a0
movq %rax, 0x40(%rsp)
jmp 0xc3e10
movq 0x40(%rsp), %rdi
leaq 0x5103a(%rip), %rsi # 0x114e56
callq 0x101c20
movq %rax, 0x38(%rsp)
jmp 0xc3e28
movq 0x38(%rsp), %rdi
leaq 0xe8(%rsp), %rsi
callq 0x206a0
movq %rax, 0x30(%rsp)
jmp 0xc3e41
movq 0x30(%rsp), %rdi
leaq 0x4fc26(%rip), %rsi # 0x113a73
callq 0xe63c0
movq %rax, 0x28(%rsp)
jmp 0xc3e59
movq 0x28(%rsp), %rdi
leaq 0x4f485(%rip), %rsi # 0x1132ea
callq 0xf25e0
movq %rax, 0x20(%rsp)
jmp 0xc3e71
movq 0x20(%rsp), %rdi
leaq 0xc8(%rsp), %rsi
callq 0x206a0
movq %rax, 0x18(%rsp)
jmp 0xc3e8a
movq 0x18(%rsp), %rdi
movq 0xd8(%rsp), %rsi
callq 0x207c0
movq %rax, 0x10(%rsp)
jmp 0xc3ea3
movq 0x10(%rsp), %rdi
leaq 0x4ffff(%rip), %rsi # 0x113eae
callq 0xe63c0
movq %rax, 0x8(%rsp)
jmp 0xc3ebb
movq 0x8(%rsp), %rsi
movq 0x90(%rsp), %rdi
callq 0xb07c0
jmp 0xc3ecf
leaq 0xb8(%rsp), %rdi
callq 0x1ace0
jmp 0xc3f01
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0xb0(%rsp)
movl %eax, 0xac(%rsp)
leaq 0xb8(%rsp), %rdi
callq 0x1ace0
jmp 0xc3f11
movq 0x98(%rsp), %rax
addq $0x108, %rsp # imm = 0x108
retq
movq 0xb0(%rsp), %rdi
callq 0x14c80
nop
| _ZN7testing12_GLOBAL__N_115IsSubstringImplINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEENS_15AssertionResultEbPKcSA_RKT_SD_:
sub rsp, 108h
mov [rsp+108h+var_78], rdi
mov al, sil
mov rsi, rdi
mov [rsp+108h+var_70], rsi
mov [rsp+108h+var_8], rdi
and al, 1
mov [rsp+108h+var_9], al
mov [rsp+108h+var_18], rdx
mov [rsp+108h+var_20], rcx
mov [rsp+108h+var_28], r8
mov [rsp+108h+var_30], r9
mov rdi, [rsp+108h+var_28]
mov rsi, [rsp+108h+var_30]
call _ZN7testing12_GLOBAL__N_115IsSubstringPredINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEEbRKT_SA_; testing::`anonymous namespace'::IsSubstringPred<std::string>(std::string const&,std::string const&)
and al, 1
movzx eax, al
mov cl, [rsp+108h+var_9]
and cl, 1
movzx ecx, cl
cmp eax, ecx
jnz short loc_C3CDB
mov rdi, [rsp+108h+var_78]; this
call _ZN7testing16AssertionSuccessEv; testing::AssertionSuccess(void)
jmp loc_C3F01
loc_C3CDB:
mov [rsp+108h+var_31], 0
lea rax, aMessage+0Fh; "\""
mov [rsp+108h+var_40], rax
lea rdi, [rsp+108h+var_50]; this
mov [rsp+108h+var_88], rdi
call _ZN7testing16AssertionFailureEv; testing::AssertionFailure(void)
mov rdi, [rsp+108h+var_88]
lea rsi, aValueOf; "Value of: "
call _ZN7testing15AssertionResultlsIA11_cEERS0_RKT_; testing::AssertionResult::operator<<<char [11]>(char [11] const&)
mov [rsp+108h+var_80], rax
jmp short $+2
loc_C3D25:
mov rdi, [rsp+108h+var_80]
lea rsi, [rsp+108h+var_18]
call _ZN7testing15AssertionResultlsIPKcEERS0_RKT_; testing::AssertionResult::operator<<<char const*>(char const* const&)
mov [rsp+108h+var_90], rax
jmp short $+2
loc_C3D41:
mov rdi, [rsp+108h+var_90]
lea rsi, aSFromSSMsTotal+19h; "\n"
call _ZN7testing15AssertionResultlsIA2_cEERS0_RKT_; testing::AssertionResult::operator<<<char [2]>(char [2] const&)
mov [rsp+108h+var_98], rax
jmp short $+2
loc_C3D59:
mov rdi, [rsp+108h+var_98]
lea rsi, aActual_1+1; " Actual: "
call _ZN7testing15AssertionResultlsIA11_cEERS0_RKT_; testing::AssertionResult::operator<<<char [11]>(char [11] const&)
mov [rsp+108h+var_A0], rax
jmp short $+2
loc_C3D71:
mov rdi, [rsp+108h+var_A0]
lea rsi, [rsp+108h+var_40]
call _ZN7testing15AssertionResultlsIPKcEERS0_RKT_; testing::AssertionResult::operator<<<char const*>(char const* const&)
mov [rsp+108h+var_A8], rax
jmp short $+2
loc_C3D8A:
mov rdi, [rsp+108h+var_A8]
mov rsi, [rsp+108h+var_28]
call _ZN7testing15AssertionResultlsINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEERS0_RKT_; testing::AssertionResult::operator<<<std::string>(std::string const&)
mov [rsp+108h+var_B0], rax
jmp short $+2
loc_C3DA3:
mov rdi, [rsp+108h+var_B0]
lea rsi, aType_1+0Dh; "\"\n"
call _ZN7testing15AssertionResultlsIA3_cEERS0_RKT_; testing::AssertionResult::operator<<<char [3]>(char [3] const&)
mov [rsp+108h+var_B8], rax
jmp short $+2
loc_C3DBB:
mov rdi, [rsp+108h+var_B8]
lea rsi, aExpected_1+1; "Expected: "
call _ZN7testing15AssertionResultlsIA11_cEERS0_RKT_; testing::AssertionResult::operator<<<char [11]>(char [11] const&)
mov [rsp+108h+var_C0], rax
jmp short $+2
loc_C3DD3:
mov rdi, [rsp+108h+var_C0]
mov dl, [rsp+108h+var_9]
lea rcx, aSFromSSMsTotal+1Ah; ""
lea rax, aNot; "not "
test dl, 1
cmovnz rax, rcx
mov [rsp+108h+var_68], rax
lea rsi, [rsp+108h+var_68]
call _ZN7testing15AssertionResultlsIPKcEERS0_RKT_; testing::AssertionResult::operator<<<char const*>(char const* const&)
mov [rsp+108h+var_C8], rax
jmp short $+2
loc_C3E10:
mov rdi, [rsp+108h+var_C8]
lea rsi, aASubstringOf; "a substring of "
call _ZN7testing15AssertionResultlsIA16_cEERS0_RKT_; testing::AssertionResult::operator<<<char [16]>(char [16] const&)
mov [rsp+108h+var_D0], rax
jmp short $+2
loc_C3E28:
mov rdi, [rsp+108h+var_D0]
lea rsi, [rsp+108h+var_20]
call _ZN7testing15AssertionResultlsIPKcEERS0_RKT_; testing::AssertionResult::operator<<<char const*>(char const* const&)
mov [rsp+108h+var_D8], rax
jmp short $+2
loc_C3E41:
mov rdi, [rsp+108h+var_D8]
lea rsi, aSFromSSMsTotal+19h; "\n"
call _ZN7testing15AssertionResultlsIA2_cEERS0_RKT_; testing::AssertionResult::operator<<<char [2]>(char [2] const&)
mov [rsp+108h+var_E0], rax
jmp short $+2
loc_C3E59:
mov rdi, [rsp+108h+var_E0]
lea rsi, aWhichIs+5; "Which is: "
call _ZN7testing15AssertionResultlsIA11_cEERS0_RKT_; testing::AssertionResult::operator<<<char [11]>(char [11] const&)
mov [rsp+108h+var_E8], rax
jmp short $+2
loc_C3E71:
mov rdi, [rsp+108h+var_E8]
lea rsi, [rsp+108h+var_40]
call _ZN7testing15AssertionResultlsIPKcEERS0_RKT_; testing::AssertionResult::operator<<<char const*>(char const* const&)
mov [rsp+108h+var_F0], rax
jmp short $+2
loc_C3E8A:
mov rdi, [rsp+108h+var_F0]
mov rsi, [rsp+108h+var_30]
call _ZN7testing15AssertionResultlsINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEERS0_RKT_; testing::AssertionResult::operator<<<std::string>(std::string const&)
mov [rsp+108h+var_F8], rax
jmp short $+2
loc_C3EA3:
mov rdi, [rsp+108h+var_F8]
lea rsi, aMessage+0Fh; "\""
call _ZN7testing15AssertionResultlsIA2_cEERS0_RKT_; testing::AssertionResult::operator<<<char [2]>(char [2] const&)
mov [rsp+108h+var_100], rax
jmp short $+2
loc_C3EBB:
mov rsi, [rsp+108h+var_100]; testing::AssertionResult *
mov rdi, [rsp+108h+var_78]; this
call _ZN7testing15AssertionResultC2ERKS0_; testing::AssertionResult::AssertionResult(testing::AssertionResult const&)
jmp short $+2
loc_C3ECF:
lea rdi, [rsp+108h+var_50]; this
call _ZN7testing15AssertionResultD2Ev; testing::AssertionResult::~AssertionResult()
jmp short loc_C3F01
mov rcx, rax
mov eax, edx
mov [rsp+arg_A8], rcx
mov [rsp+arg_A4], eax
lea rdi, [rsp+arg_B0]; this
call _ZN7testing15AssertionResultD2Ev; testing::AssertionResult::~AssertionResult()
jmp short loc_C3F11
loc_C3F01:
mov rax, [rsp+108h+var_70]
add rsp, 108h
retn
loc_C3F11:
mov rdi, [rsp+arg_A8]
call __Unwind_Resume
| testing * testing::`anonymous namespace'::IsSubstringImpl<std::string>(
testing *a1,
char a2,
long long a3,
long long a4,
long long a5,
long long a6)
{
char v7; // al
long long v8; // rdx
long long v9; // r8
long long v10; // r9
long long v11; // rcx
int v12; // edx
int v13; // ecx
int v14; // r8d
int v15; // r9d
int v16; // edx
int v17; // ecx
int v18; // r8d
int v19; // r9d
int v20; // edx
int v21; // ecx
int v22; // r8d
int v23; // r9d
int v24; // edx
int v25; // ecx
int v26; // r8d
int v27; // r9d
testing::AssertionResult *v28; // rdi
char *v29; // rax
int v30; // edx
int v31; // ecx
int v32; // r8d
int v33; // r9d
int v34; // edx
int v35; // ecx
int v36; // r8d
int v37; // r9d
int v38; // edx
int v39; // ecx
int v40; // r8d
int v41; // r9d
int v42; // edx
int v43; // ecx
int v44; // r8d
int v45; // r9d
testing::AssertionResult *v47; // [rsp+8h] [rbp-100h]
unsigned int v48; // [rsp+10h] [rbp-F8h]
testing::AssertionResult *v49; // [rsp+18h] [rbp-F0h]
testing::AssertionResult *v50; // [rsp+20h] [rbp-E8h]
int v51; // [rsp+28h] [rbp-E0h]
unsigned int v52; // [rsp+30h] [rbp-D8h]
testing::AssertionResult *v53; // [rsp+38h] [rbp-D0h]
unsigned int v54; // [rsp+40h] [rbp-C8h]
unsigned int v55; // [rsp+50h] [rbp-B8h]
testing::AssertionResult *v56; // [rsp+58h] [rbp-B0h]
testing::AssertionResult *v57; // [rsp+60h] [rbp-A8h]
testing::AssertionResult *v58; // [rsp+68h] [rbp-A0h]
int v59; // [rsp+70h] [rbp-98h]
unsigned int v60; // [rsp+78h] [rbp-90h]
testing::AssertionResult *v61; // [rsp+88h] [rbp-80h]
char *v64; // [rsp+A0h] [rbp-68h] BYREF
_BYTE v65[16]; // [rsp+B8h] [rbp-50h] BYREF
char *v66; // [rsp+C8h] [rbp-40h] BYREF
char v67; // [rsp+D7h] [rbp-31h]
long long v68; // [rsp+D8h] [rbp-30h]
long long v69; // [rsp+E0h] [rbp-28h]
long long v70; // [rsp+E8h] [rbp-20h] BYREF
long long v71; // [rsp+F0h] [rbp-18h] BYREF
char v72; // [rsp+FFh] [rbp-9h]
testing *v73; // [rsp+100h] [rbp-8h]
v73 = a1;
v72 = a2 & 1;
v71 = a3;
v70 = a4;
v69 = a5;
v68 = a6;
v7 = testing::`anonymous namespace'::IsSubstringPred<std::string>(a5, a6);
v11 = v72 & 1;
if ( (v7 & 1) == (_DWORD)v11 )
{
testing::AssertionSuccess(a1, a6, v8, v11, v9, v10);
}
else
{
v67 = 0;
v66 = "\"";
testing::AssertionFailure((testing *)v65, a6, v8, v11, v9, v10);
v61 = (testing::AssertionResult *)testing::AssertionResult::operator<<<char [11]>(
(unsigned int)v65,
(unsigned int)"Value of: ",
v12,
v13,
v14,
v15);
v60 = (unsigned int)testing::AssertionResult::operator<<<char const*>(v61, (long long)&v71);
v59 = testing::AssertionResult::operator<<<char [2]>(v60, (unsigned int)"\n", v16, v17, v18, v19);
v58 = (testing::AssertionResult *)testing::AssertionResult::operator<<<char [11]>(
v59,
(unsigned int)" Actual: ",
v20,
v21,
v22,
v23);
v57 = testing::AssertionResult::operator<<<char const*>(v58, (long long)&v66);
v56 = testing::AssertionResult::operator<<<std::string>(v57, v69);
v55 = (unsigned int)testing::AssertionResult::operator<<<char [3]>(v56, (long long)"\"\n");
v28 = (testing::AssertionResult *)testing::AssertionResult::operator<<<char [11]>(
v55,
(unsigned int)"Expected: ",
v24,
v25,
v26,
v27);
v29 = "not ";
if ( (v72 & 1) != 0 )
v29 = "";
v64 = v29;
v54 = (unsigned int)testing::AssertionResult::operator<<<char const*>(v28, (long long)&v64);
v53 = (testing::AssertionResult *)testing::AssertionResult::operator<<<char [16]>(
v54,
(unsigned int)"a substring of ",
v30,
v31,
v32,
v33);
v52 = (unsigned int)testing::AssertionResult::operator<<<char const*>(v53, (long long)&v70);
v51 = testing::AssertionResult::operator<<<char [2]>(v52, (unsigned int)"\n", v34, v35, v36, v37);
v50 = (testing::AssertionResult *)testing::AssertionResult::operator<<<char [11]>(
v51,
(unsigned int)"Which is: ",
v38,
v39,
v40,
v41);
v49 = testing::AssertionResult::operator<<<char const*>(v50, (long long)&v66);
v48 = (unsigned int)testing::AssertionResult::operator<<<std::string>(v49, v68);
v47 = (testing::AssertionResult *)testing::AssertionResult::operator<<<char [2]>(
v48,
(unsigned int)"\"",
v42,
v43,
v44,
v45);
testing::AssertionResult::AssertionResult(a1, v47);
testing::AssertionResult::~AssertionResult((testing::AssertionResult *)v65);
}
return a1;
}
| IsSubstringImpl<std::__cxx11::string>:
SUB RSP,0x108
MOV qword ptr [RSP + 0x90],RDI
MOV AL,SIL
MOV RSI,RDI
MOV qword ptr [RSP + 0x98],RSI
MOV qword ptr [RSP + 0x100],RDI
AND AL,0x1
MOV byte ptr [RSP + 0xff],AL
MOV qword ptr [RSP + 0xf0],RDX
MOV qword ptr [RSP + 0xe8],RCX
MOV qword ptr [RSP + 0xe0],R8
MOV qword ptr [RSP + 0xd8],R9
MOV RDI,qword ptr [RSP + 0xe0]
MOV RSI,qword ptr [RSP + 0xd8]
CALL 0x001df660
AND AL,0x1
MOVZX EAX,AL
MOV CL,byte ptr [RSP + 0xff]
AND CL,0x1
MOVZX ECX,CL
CMP EAX,ECX
JNZ 0x001c3cdb
MOV RDI,qword ptr [RSP + 0x90]
CALL 0x001b09c0
JMP 0x001c3f01
LAB_001c3cdb:
MOV byte ptr [RSP + 0xd7],0x0
LEA RAX,[0x213eae]
MOV qword ptr [RSP + 0xc8],RAX
LEA RDI,[RSP + 0xb8]
MOV qword ptr [RSP + 0x80],RDI
CALL 0x001b09f0
MOV RDI,qword ptr [RSP + 0x80]
LAB_001c3d0f:
LEA RSI,[0x213311]
CALL 0x001f25e0
MOV qword ptr [RSP + 0x88],RAX
JMP 0x001c3d25
LAB_001c3d25:
MOV RDI,qword ptr [RSP + 0x88]
LEA RSI,[RSP + 0xf0]
CALL 0x001206a0
MOV qword ptr [RSP + 0x78],RAX
JMP 0x001c3d41
LAB_001c3d41:
MOV RDI,qword ptr [RSP + 0x78]
LEA RSI,[0x213a73]
CALL 0x001e63c0
MOV qword ptr [RSP + 0x70],RAX
JMP 0x001c3d59
LAB_001c3d59:
MOV RDI,qword ptr [RSP + 0x70]
LEA RSI,[0x21331d]
CALL 0x001f25e0
MOV qword ptr [RSP + 0x68],RAX
JMP 0x001c3d71
LAB_001c3d71:
MOV RDI,qword ptr [RSP + 0x68]
LEA RSI,[RSP + 0xc8]
CALL 0x001206a0
MOV qword ptr [RSP + 0x60],RAX
JMP 0x001c3d8a
LAB_001c3d8a:
MOV RDI,qword ptr [RSP + 0x60]
MOV RSI,qword ptr [RSP + 0xe0]
CALL 0x001207c0
MOV qword ptr [RSP + 0x58],RAX
JMP 0x001c3da3
LAB_001c3da3:
MOV RDI,qword ptr [RSP + 0x58]
LEA RSI,[0x213e98]
CALL 0x00120730
MOV qword ptr [RSP + 0x50],RAX
JMP 0x001c3dbb
LAB_001c3dbb:
MOV RDI,qword ptr [RSP + 0x50]
LEA RSI,[0x213329]
CALL 0x001f25e0
MOV qword ptr [RSP + 0x48],RAX
JMP 0x001c3dd3
LAB_001c3dd3:
MOV RDI,qword ptr [RSP + 0x48]
MOV DL,byte ptr [RSP + 0xff]
LEA RCX,[0x213a74]
LEA RAX,[0x214e51]
TEST DL,0x1
CMOVNZ RAX,RCX
MOV qword ptr [RSP + 0xa0],RAX
LEA RSI,[RSP + 0xa0]
CALL 0x001206a0
MOV qword ptr [RSP + 0x40],RAX
JMP 0x001c3e10
LAB_001c3e10:
MOV RDI,qword ptr [RSP + 0x40]
LEA RSI,[0x214e56]
CALL 0x00201c20
MOV qword ptr [RSP + 0x38],RAX
JMP 0x001c3e28
LAB_001c3e28:
MOV RDI,qword ptr [RSP + 0x38]
LEA RSI,[RSP + 0xe8]
CALL 0x001206a0
MOV qword ptr [RSP + 0x30],RAX
JMP 0x001c3e41
LAB_001c3e41:
MOV RDI,qword ptr [RSP + 0x30]
LEA RSI,[0x213a73]
CALL 0x001e63c0
MOV qword ptr [RSP + 0x28],RAX
JMP 0x001c3e59
LAB_001c3e59:
MOV RDI,qword ptr [RSP + 0x28]
LEA RSI,[0x2132ea]
CALL 0x001f25e0
MOV qword ptr [RSP + 0x20],RAX
JMP 0x001c3e71
LAB_001c3e71:
MOV RDI,qword ptr [RSP + 0x20]
LEA RSI,[RSP + 0xc8]
CALL 0x001206a0
MOV qword ptr [RSP + 0x18],RAX
JMP 0x001c3e8a
LAB_001c3e8a:
MOV RDI,qword ptr [RSP + 0x18]
MOV RSI,qword ptr [RSP + 0xd8]
CALL 0x001207c0
MOV qword ptr [RSP + 0x10],RAX
JMP 0x001c3ea3
LAB_001c3ea3:
MOV RDI,qword ptr [RSP + 0x10]
LEA RSI,[0x213eae]
CALL 0x001e63c0
MOV qword ptr [RSP + 0x8],RAX
JMP 0x001c3ebb
LAB_001c3ebb:
MOV RSI,qword ptr [RSP + 0x8]
MOV RDI,qword ptr [RSP + 0x90]
CALL 0x001b07c0
LAB_001c3ecd:
JMP 0x001c3ecf
LAB_001c3ecf:
LEA RDI,[RSP + 0xb8]
CALL 0x0011ace0
JMP 0x001c3f01
LAB_001c3f01:
MOV RAX,qword ptr [RSP + 0x98]
ADD RSP,0x108
RET
|
/* testing::AssertionResult testing::(anonymous namespace)::IsSubstringImpl<std::__cxx11::string
>(bool, char const*, char const*, std::__cxx11::string const&, std::__cxx11::string const&) */
_anonymous_namespace_ * __thiscall
testing::(anonymous_namespace)::IsSubstringImpl<std::__cxx11::string>
(_anonymous_namespace_ *this,bool param_1,char *param_2,char *param_3,string *param_4,
string *param_5)
{
bool bVar1;
AssertionResult *pAVar2;
char *local_68 [3];
testing local_50 [16];
char *local_40;
int1 local_31;
string *local_30;
string *local_28;
char *local_20;
char *local_18;
byte local_9;
_anonymous_namespace_ *local_8;
local_30 = param_5;
local_28 = param_4;
local_20 = param_3;
local_18 = param_2;
local_9 = param_1;
local_8 = this;
bVar1 = IsSubstringPred<std::__cxx11::string>(param_4,param_5);
if (bVar1 == (bool)(local_9 & 1)) {
AssertionSuccess((testing *)this);
}
else {
local_31 = 0;
local_40 = "\"";
AssertionFailure(local_50);
/* try { // try from 001c3d0f to 001c3ecc has its CatchHandler @ 001c3ede */
pAVar2 = AssertionResult::operator<<((AssertionResult *)local_50,"Value of: ");
pAVar2 = AssertionResult::operator<<(pAVar2,&local_18);
pAVar2 = AssertionResult::operator<<(pAVar2,"\n");
pAVar2 = AssertionResult::operator<<(pAVar2," Actual: ");
pAVar2 = AssertionResult::operator<<(pAVar2,&local_40);
pAVar2 = AssertionResult::operator<<(pAVar2,local_28);
pAVar2 = AssertionResult::operator<<(pAVar2,"\"\n");
pAVar2 = AssertionResult::operator<<(pAVar2,"Expected: ");
local_68[0] = "not ";
if ((local_9 & 1) != 0) {
local_68[0] = "";
}
pAVar2 = AssertionResult::operator<<(pAVar2,local_68);
pAVar2 = AssertionResult::operator<<(pAVar2,"a substring of ");
pAVar2 = AssertionResult::operator<<(pAVar2,&local_20);
pAVar2 = AssertionResult::operator<<(pAVar2,"\n");
pAVar2 = AssertionResult::operator<<(pAVar2,"Which is: ");
pAVar2 = AssertionResult::operator<<(pAVar2,&local_40);
pAVar2 = AssertionResult::operator<<(pAVar2,local_30);
pAVar2 = AssertionResult::operator<<(pAVar2,"\"");
AssertionResult::AssertionResult((AssertionResult *)this,pAVar2);
AssertionResult::~AssertionResult((AssertionResult *)local_50);
}
return this;
}
| |
42,276 | mysql_set_server_option_start_internal | eloqsql/libmariadb/libmariadb/mariadb_async.c | static void
mysql_set_server_option_start_internal(void *d)
{
MK_ASYNC_INTERNAL_BODY(
mysql_set_server_option,
(parms->mysql, parms->option),
parms->mysql,
int,
r_int)
} | O0 | c | mysql_set_server_option_start_internal:
pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movq %rdi, -0x8(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x10(%rbp)
movq -0x10(%rbp), %rax
movq (%rax), %rax
movq 0x480(%rax), %rax
movq 0x28(%rax), %rax
movq %rax, -0x20(%rbp)
movq -0x10(%rbp), %rax
movq (%rax), %rdi
movq -0x10(%rbp), %rax
movl 0x8(%rax), %esi
callq 0x47260
movl %eax, -0x14(%rbp)
movl -0x14(%rbp), %ecx
movq -0x20(%rbp), %rax
movl %ecx, 0x8(%rax)
movq -0x20(%rbp), %rax
movl $0x0, (%rax)
addq $0x20, %rsp
popq %rbp
retq
nopw (%rax,%rax)
| mysql_set_server_option_start_internal:
push rbp
mov rbp, rsp
sub rsp, 20h
mov [rbp+var_8], rdi
mov rax, [rbp+var_8]
mov [rbp+var_10], rax
mov rax, [rbp+var_10]
mov rax, [rax]
mov rax, [rax+480h]
mov rax, [rax+28h]
mov [rbp+var_20], rax
mov rax, [rbp+var_10]
mov rdi, [rax]
mov rax, [rbp+var_10]
mov esi, [rax+8]
call mysql_set_server_option
mov [rbp+var_14], eax
mov ecx, [rbp+var_14]
mov rax, [rbp+var_20]
mov [rax+8], ecx
mov rax, [rbp+var_20]
mov dword ptr [rax], 0
add rsp, 20h
pop rbp
retn
| _DWORD * mysql_set_server_option_start_internal(long long a1)
{
_DWORD *result; // rax
_DWORD *v2; // [rsp+0h] [rbp-20h]
v2 = *(_DWORD **)(*(_QWORD *)(*(_QWORD *)a1 + 1152LL) + 40LL);
v2[2] = mysql_set_server_option(*(_QWORD *)a1, *(_DWORD *)(a1 + 8));
result = v2;
*v2 = 0;
return result;
}
| mysql_set_server_option_start_internal:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x20
MOV qword ptr [RBP + -0x8],RDI
MOV RAX,qword ptr [RBP + -0x8]
MOV qword ptr [RBP + -0x10],RAX
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX]
MOV RAX,qword ptr [RAX + 0x480]
MOV RAX,qword ptr [RAX + 0x28]
MOV qword ptr [RBP + -0x20],RAX
MOV RAX,qword ptr [RBP + -0x10]
MOV RDI,qword ptr [RAX]
MOV RAX,qword ptr [RBP + -0x10]
MOV ESI,dword ptr [RAX + 0x8]
CALL 0x00147260
MOV dword ptr [RBP + -0x14],EAX
MOV ECX,dword ptr [RBP + -0x14]
MOV RAX,qword ptr [RBP + -0x20]
MOV dword ptr [RAX + 0x8],ECX
MOV RAX,qword ptr [RBP + -0x20]
MOV dword ptr [RAX],0x0
ADD RSP,0x20
POP RBP
RET
|
void mysql_set_server_option_start_internal(long *param_1)
{
int4 *puVar1;
int4 uVar2;
puVar1 = *(int4 **)(*(long *)(*param_1 + 0x480) + 0x28);
uVar2 = mysql_set_server_option(*param_1,(int)param_1[1]);
puVar1[2] = uVar2;
*puVar1 = 0;
return;
}
| |
42,277 | ft_linearize | eloqsql/storage/myisam/ft_parser.c | FT_WORD * ft_linearize(TREE *wtree, MEM_ROOT *mem_root)
{
FT_WORD *wlist,*p;
FT_DOCSTAT docstat;
DBUG_ENTER("ft_linearize");
if ((wlist=(FT_WORD *) alloc_root(mem_root, sizeof(FT_WORD)*
(1+wtree->elements_in_tree))))
{
docstat.list=wlist;
docstat.uniq=wtree->elements_in_tree;
docstat.sum=0;
tree_walk(wtree,(tree_walk_action)&walk_and_copy,&docstat,left_root_right);
}
delete_tree(wtree, 0);
if (!wlist)
DBUG_RETURN(NULL);
docstat.list->pos=NULL;
for (p=wlist;p->pos;p++)
{
p->weight=PRENORM_IN_USE;
}
for (p=wlist;p->pos;p++)
{
p->weight/=NORM_IN_USE;
}
DBUG_RETURN(wlist);
} | O3 | c | ft_linearize:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x20, %rsp
movq %rsi, %rax
movq %rdi, %r14
movl 0x20c(%rdi), %ecx
incl %ecx
shlq $0x3, %rcx
leaq (%rcx,%rcx,2), %rsi
movq %rax, %rdi
callq 0x9cc73
movq %rax, %rbx
testq %rax, %rax
je 0x737cc
leaq -0x38(%rbp), %r15
movq %rbx, (%r15)
movl 0x20c(%r14), %eax
movl %eax, 0x8(%r15)
xorl %r12d, %r12d
movq %r12, 0x10(%r15)
leaq 0xa9(%rip), %rsi # 0x737e6
movq %r14, %rdi
movq %r15, %rdx
xorl %ecx, %ecx
callq 0xa52a7
movq %r14, %rdi
xorl %esi, %esi
callq 0xa4742
movq (%r15), %rax
movq %r12, (%rax)
cmpq %r12, (%rbx)
je 0x737d6
movsd -0x28(%rbp), %xmm0
movl -0x30(%rbp), %eax
cvtsi2sd %rax, %xmm1
leaq 0x8(%rbx), %rax
movsd (%rax), %xmm2
divsd %xmm0, %xmm2
mulsd %xmm1, %xmm2
movsd %xmm2, (%rax)
cmpq $0x0, 0x10(%rax)
leaq 0x18(%rax), %rax
jne 0x73770
cmpq $0x0, (%rbx)
je 0x737d6
movl -0x30(%rbp), %eax
xorps %xmm0, %xmm0
cvtsi2sd %rax, %xmm0
mulsd 0x6d80c(%rip), %xmm0 # 0xe0fb0
addsd 0x6d80c(%rip), %xmm0 # 0xe0fb8
movq %rbx, %rax
addq $0x8, %rax
movsd (%rax), %xmm1
divsd %xmm0, %xmm1
movsd %xmm1, (%rax)
cmpq $0x0, 0x10(%rax)
leaq 0x18(%rax), %rax
jne 0x737b3
jmp 0x737d6
movq %r14, %rdi
xorl %esi, %esi
callq 0xa4742
movq %rbx, %rax
addq $0x20, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
| ft_linearize:
push rbp
mov rbp, rsp
push r15
push r14
push r12
push rbx
sub rsp, 20h
mov rax, rsi
mov r14, rdi
mov ecx, [rdi+20Ch]
inc ecx
shl rcx, 3
lea rsi, [rcx+rcx*2]
mov rdi, rax
call alloc_root
mov rbx, rax
test rax, rax
jz loc_737CC
lea r15, [rbp+var_38]
mov [r15], rbx
mov eax, [r14+20Ch]
mov [r15+8], eax
xor r12d, r12d
mov [r15+10h], r12
lea rsi, walk_and_copy_1
mov rdi, r14
mov rdx, r15
xor ecx, ecx
call tree_walk
mov rdi, r14
xor esi, esi
call delete_tree
mov rax, [r15]
mov [rax], r12
cmp [rbx], r12
jz short loc_737D6
movsd xmm0, [rbp+var_28]
mov eax, [rbp+var_30]
cvtsi2sd xmm1, rax
lea rax, [rbx+8]
loc_73770:
movsd xmm2, qword ptr [rax]
divsd xmm2, xmm0
mulsd xmm2, xmm1
movsd qword ptr [rax], xmm2
cmp qword ptr [rax+10h], 0
lea rax, [rax+18h]
jnz short loc_73770
cmp qword ptr [rbx], 0
jz short loc_737D6
mov eax, [rbp+var_30]
xorps xmm0, xmm0
cvtsi2sd xmm0, rax
mulsd xmm0, cs:qword_E0FB0
addsd xmm0, cs:qword_E0FB8
mov rax, rbx
add rax, 8
loc_737B3:
movsd xmm1, qword ptr [rax]
divsd xmm1, xmm0
movsd qword ptr [rax], xmm1
cmp qword ptr [rax+10h], 0
lea rax, [rax+18h]
jnz short loc_737B3
jmp short loc_737D6
loc_737CC:
mov rdi, r14
xor esi, esi
call delete_tree
loc_737D6:
mov rax, rbx
add rsp, 20h
pop rbx
pop r12
pop r14
pop r15
pop rbp
retn
| _QWORD * ft_linearize(long long a1, long long a2)
{
long long v2; // rax
_QWORD *v3; // rbx
double v4; // xmm0_8
double v5; // xmm1_8
double *v6; // rax
bool v7; // zf
double v8; // xmm0_8
double *v9; // rax
_QWORD *v11; // [rsp+8h] [rbp-38h] BYREF
int v12; // [rsp+10h] [rbp-30h]
double v13; // [rsp+18h] [rbp-28h]
v2 = alloc_root(a2, 24LL * (unsigned int)(*(_DWORD *)(a1 + 524) + 1));
v3 = (_QWORD *)v2;
if ( v2 )
{
v11 = (_QWORD *)v2;
v12 = *(_DWORD *)(a1 + 524);
v13 = 0.0;
tree_walk(a1, walk_and_copy_1, &v11, 0LL);
delete_tree(a1, 0LL);
*v11 = 0LL;
if ( *v3 )
{
v4 = v13;
v5 = (double)v12;
v6 = (double *)(v3 + 1);
do
{
*v6 = *v6 / v4 * v5;
v7 = *((_QWORD *)v6 + 2) == 0LL;
v6 += 3;
}
while ( !v7 );
if ( *v3 )
{
v8 = (double)v12 * 0.0115 + 1.0;
v9 = (double *)(v3 + 1);
do
{
*v9 = *v9 / v8;
v7 = *((_QWORD *)v9 + 2) == 0LL;
v9 += 3;
}
while ( !v7 );
}
}
}
else
{
delete_tree(a1, 0LL);
}
return v3;
}
| ft_linearize:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH R12
PUSH RBX
SUB RSP,0x20
MOV RAX,RSI
MOV R14,RDI
MOV ECX,dword ptr [RDI + 0x20c]
INC ECX
SHL RCX,0x3
LEA RSI,[RCX + RCX*0x2]
MOV RDI,RAX
CALL 0x0019cc73
MOV RBX,RAX
TEST RAX,RAX
JZ 0x001737cc
LEA R15,[RBP + -0x38]
MOV qword ptr [R15],RBX
MOV EAX,dword ptr [R14 + 0x20c]
MOV dword ptr [R15 + 0x8],EAX
XOR R12D,R12D
MOV qword ptr [R15 + 0x10],R12
LEA RSI,[0x1737e6]
MOV RDI,R14
MOV RDX,R15
XOR ECX,ECX
CALL 0x001a52a7
MOV RDI,R14
XOR ESI,ESI
CALL 0x001a4742
MOV RAX,qword ptr [R15]
MOV qword ptr [RAX],R12
CMP qword ptr [RBX],R12
JZ 0x001737d6
MOVSD XMM0,qword ptr [RBP + -0x28]
MOV EAX,dword ptr [RBP + -0x30]
CVTSI2SD XMM1,RAX
LEA RAX,[RBX + 0x8]
LAB_00173770:
MOVSD XMM2,qword ptr [RAX]
DIVSD XMM2,XMM0
MULSD XMM2,XMM1
MOVSD qword ptr [RAX],XMM2
CMP qword ptr [RAX + 0x10],0x0
LEA RAX,[RAX + 0x18]
JNZ 0x00173770
CMP qword ptr [RBX],0x0
JZ 0x001737d6
MOV EAX,dword ptr [RBP + -0x30]
XORPS XMM0,XMM0
CVTSI2SD XMM0,RAX
MULSD XMM0,qword ptr [0x001e0fb0]
ADDSD XMM0,qword ptr [0x001e0fb8]
MOV RAX,RBX
ADD RAX,0x8
LAB_001737b3:
MOVSD XMM1,qword ptr [RAX]
DIVSD XMM1,XMM0
MOVSD qword ptr [RAX],XMM1
CMP qword ptr [RAX + 0x10],0x0
LEA RAX,[RAX + 0x18]
JNZ 0x001737b3
JMP 0x001737d6
LAB_001737cc:
MOV RDI,R14
XOR ESI,ESI
CALL 0x001a4742
LAB_001737d6:
MOV RAX,RBX
ADD RSP,0x20
POP RBX
POP R12
POP R14
POP R15
POP RBP
RET
|
/* WARNING: Globals starting with '_' overlap smaller symbols at the same address */
long * ft_linearize(long param_1,int8 param_2)
{
double *pdVar1;
long *plVar2;
double *pdVar3;
double dVar4;
long *local_40;
uint local_38;
double local_30;
plVar2 = (long *)alloc_root(param_2,(ulong)(*(int *)(param_1 + 0x20c) + 1) * 0x18);
if (plVar2 == (long *)0x0) {
delete_tree(param_1,0);
}
else {
local_38 = *(uint *)(param_1 + 0x20c);
local_30 = 0.0;
local_40 = plVar2;
tree_walk(param_1,walk_and_copy,&local_40,0);
delete_tree(param_1,0);
*local_40 = 0;
if (*plVar2 != 0) {
pdVar3 = (double *)(plVar2 + 1);
do {
*pdVar3 = (*pdVar3 / local_30) * (double)local_38;
pdVar1 = pdVar3 + 2;
pdVar3 = pdVar3 + 3;
} while (*pdVar1 != 0.0);
if (*plVar2 != 0) {
dVar4 = (double)local_38 * _DAT_001e0fb0 + DAT_001e0fb8;
pdVar3 = (double *)(plVar2 + 1);
do {
*pdVar3 = *pdVar3 / dVar4;
pdVar1 = pdVar3 + 2;
pdVar3 = pdVar3 + 3;
} while (*pdVar1 != 0.0);
}
}
}
return plVar2;
}
| |
42,278 | 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>&&) | llama.cpp/common/minja/minja.hpp | ForNode(const Location & loc, 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(loc), var_names(var_names), iterable(std::move(iterable)), condition(std::move(condition)), body(std::move(body)), recursive(recursive), else_body(std::move(else_body)) {} | O3 | 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 %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %r9, %r14
movq %r8, %r15
movq %rcx, %r12
movq %rdi, %rbx
leaq 0x5954a(%rip), %rbp # 0xff550
addq $0x10, %rbp
movq %rbp, (%rdi)
movq (%rsi), %rax
movq %rax, 0x8(%rdi)
movq 0x8(%rsi), %rax
movq %rax, 0x10(%rdi)
testq %rax, %rax
je 0xa6036
movq 0x59f68(%rip), %rcx # 0xfff90
cmpb $0x0, (%rcx)
je 0xa6032
incl 0x8(%rax)
jmp 0xa6036
lock
incl 0x8(%rax)
leaq 0x10(%rbx), %r13
movq 0x10(%rsi), %rax
movq %rax, 0x18(%rbx)
leaq 0x5957f(%rip), %rax # 0xff5c8
addq $0x10, %rax
movq %rax, (%rbx)
leaq 0x20(%rbx), %rdi
movq %rdx, %rsi
callq 0x393c6
movq 0x48(%rsp), %rax
movb 0x40(%rsp), %cl
xorl %edx, %edx
movq %rdx, 0x40(%rbx)
movups (%r12), %xmm0
movq %rdx, 0x8(%r12)
movups %xmm0, 0x38(%rbx)
movq %rdx, (%r12)
movq %rdx, 0x50(%rbx)
movups (%r15), %xmm0
movq %rdx, 0x8(%r15)
movups %xmm0, 0x48(%rbx)
movq %rdx, (%r15)
movq %rdx, 0x60(%rbx)
movups (%r14), %xmm0
movq %rdx, 0x8(%r14)
movups %xmm0, 0x58(%rbx)
movq %rdx, (%r14)
movb %cl, 0x68(%rbx)
movq %rdx, 0x78(%rbx)
movups (%rax), %xmm0
movq %rdx, 0x8(%rax)
movups %xmm0, 0x70(%rbx)
movq %rdx, (%rax)
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %r14
movq %rbp, (%rbx)
movq %r13, %rdi
callq 0x34564
movq %r14, %rdi
callq 0x1c7d0
nop
| _ZN5minja7ForNodeC2ERKNS_8LocationEOSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaISA_EEOSt10shared_ptrINS_10ExpressionEESH_OSE_INS_12TemplateNodeEEbSK_:
push rbp
push r15
push r14
push r13
push r12
push rbx
push rax
mov r14, r9
mov r15, r8
mov r12, rcx
mov rbx, rdi
lea rbp, _ZTVN5minja12TemplateNodeE; `vtable for'minja::TemplateNode
add rbp, 10h
mov [rdi], rbp
mov rax, [rsi]
mov [rdi+8], rax
mov rax, [rsi+8]
mov [rdi+10h], rax
test rax, rax
jz short loc_A6036
mov rcx, cs:_ZTISt19_Sp_make_shared_tag; `typeinfo for'std::_Sp_make_shared_tag
cmp byte ptr [rcx], 0
jz short loc_A6032
inc dword ptr [rax+8]
jmp short loc_A6036
loc_A6032:
lock inc dword ptr [rax+8]
loc_A6036:
lea r13, [rbx+10h]
mov rax, [rsi+10h]
mov [rbx+18h], rax
lea rax, _ZTVN5minja7ForNodeE; `vtable for'minja::ForNode
add rax, 10h
mov [rbx], rax
lea rdi, [rbx+20h]
mov rsi, rdx
call _ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EEC2ERKS7_; std::vector<std::string>::vector(std::vector<std::string> const&)
mov rax, [rsp+38h+arg_8]
mov cl, [rsp+38h+arg_0]
xor edx, edx
mov [rbx+40h], rdx
movups xmm0, xmmword ptr [r12]
mov [r12+8], rdx
movups xmmword ptr [rbx+38h], xmm0
mov [r12], rdx
mov [rbx+50h], rdx
movups xmm0, xmmword ptr [r15]
mov [r15+8], rdx
movups xmmword ptr [rbx+48h], xmm0
mov [r15], rdx
mov [rbx+60h], rdx
movups xmm0, xmmword ptr [r14]
mov [r14+8], rdx
movups xmmword ptr [rbx+58h], xmm0
mov [r14], rdx
mov [rbx+68h], cl
mov [rbx+78h], rdx
movups xmm0, xmmword ptr [rax]
mov [rax+8], rdx
movups xmmword ptr [rbx+70h], xmm0
mov [rax], rdx
add rsp, 8
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
mov r14, rax
mov [rbx], rbp
mov rdi, r13
call _ZNSt14__shared_countILN9__gnu_cxx12_Lock_policyE2EED2Ev; std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count()
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)
{
long long v11; // rax
long long result; // rax
__int128 v13; // xmm0
__int128 v14; // xmm0
__int128 v15; // xmm0
__int128 v16; // xmm0
*(_QWORD *)a1 = &`vtable for'minja::TemplateNode + 2;
*(_QWORD *)(a1 + 8) = *a2;
v11 = a2[1];
*(_QWORD *)(a1 + 16) = v11;
if ( v11 )
{
if ( _libc_single_threaded )
++*(_DWORD *)(v11 + 8);
else
_InterlockedIncrement((volatile signed __int32 *)(v11 + 8));
}
*(_QWORD *)(a1 + 24) = a2[2];
*(_QWORD *)a1 = &`vtable for'minja::ForNode + 2;
std::vector<std::string>::vector(a1 + 32, a3);
result = (long long)a8;
*(_QWORD *)(a1 + 64) = 0LL;
v13 = *a4;
*((_QWORD *)a4 + 1) = 0LL;
*(_OWORD *)(a1 + 56) = v13;
*(_QWORD *)a4 = 0LL;
*(_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 RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
PUSH RAX
MOV R14,R9
MOV R15,R8
MOV R12,RCX
MOV RBX,RDI
LEA RBP,[0x1ff550]
ADD RBP,0x10
MOV qword ptr [RDI],RBP
MOV RAX,qword ptr [RSI]
MOV qword ptr [RDI + 0x8],RAX
MOV RAX,qword ptr [RSI + 0x8]
MOV qword ptr [RDI + 0x10],RAX
TEST RAX,RAX
JZ 0x001a6036
MOV RCX,qword ptr [0x001fff90]
CMP byte ptr [RCX],0x0
JZ 0x001a6032
INC dword ptr [RAX + 0x8]
JMP 0x001a6036
LAB_001a6032:
INC.LOCK dword ptr [RAX + 0x8]
LAB_001a6036:
LEA R13,[RBX + 0x10]
MOV RAX,qword ptr [RSI + 0x10]
MOV qword ptr [RBX + 0x18],RAX
LEA RAX,[0x1ff5c8]
ADD RAX,0x10
MOV qword ptr [RBX],RAX
LEA RDI,[RBX + 0x20]
LAB_001a6054:
MOV RSI,RDX
CALL 0x001393c6
LAB_001a605c:
MOV RAX,qword ptr [RSP + 0x48]
MOV CL,byte ptr [RSP + 0x40]
XOR EDX,EDX
MOV qword ptr [RBX + 0x40],RDX
MOVUPS XMM0,xmmword ptr [R12]
MOV qword ptr [R12 + 0x8],RDX
MOVUPS xmmword ptr [RBX + 0x38],XMM0
MOV qword ptr [R12],RDX
MOV qword ptr [RBX + 0x50],RDX
MOVUPS XMM0,xmmword ptr [R15]
MOV qword ptr [R15 + 0x8],RDX
MOVUPS xmmword ptr [RBX + 0x48],XMM0
MOV qword ptr [R15],RDX
MOV qword ptr [RBX + 0x60],RDX
MOVUPS XMM0,xmmword ptr [R14]
MOV qword ptr [R14 + 0x8],RDX
MOVUPS xmmword ptr [RBX + 0x58],XMM0
MOV qword ptr [R14],RDX
MOV byte ptr [RBX + 0x68],CL
MOV qword ptr [RBX + 0x78],RDX
MOVUPS XMM0,xmmword ptr [RAX]
MOV qword ptr [RAX + 0x8],RDX
MOVUPS xmmword ptr [RBX + 0x70],XMM0
MOV qword ptr [RAX],RDX
ADD RSP,0x8
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
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)
{
long lVar1;
int8 uVar2;
*(int ***)this = &PTR___cxa_pure_virtual_001ff560;
*(int8 *)(this + 8) = *(int8 *)param_1;
lVar1 = *(long *)(param_1 + 8);
*(long *)(this + 0x10) = lVar1;
if (lVar1 != 0) {
if (*PTR___libc_single_threaded_001fff90 == '\0') {
LOCK();
*(int *)(lVar1 + 8) = *(int *)(lVar1 + 8) + 1;
UNLOCK();
}
else {
*(int *)(lVar1 + 8) = *(int *)(lVar1 + 8) + 1;
}
}
*(int8 *)(this + 0x18) = *(int8 *)(param_1 + 0x10);
*(int ***)this = &PTR_do_render_001ff5d8;
/* try { // try from 001a6054 to 001a605b has its CatchHandler @ 001a60c7 */
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;
uVar2 = *(int8 *)(param_3 + 8);
*(int8 *)(param_3 + 8) = 0;
*(int8 *)(this + 0x38) = *(int8 *)param_3;
*(int8 *)(this + 0x40) = uVar2;
*(int8 *)param_3 = 0;
*(int8 *)(this + 0x50) = 0;
uVar2 = *(int8 *)(param_4 + 8);
*(int8 *)(param_4 + 8) = 0;
*(int8 *)(this + 0x48) = *(int8 *)param_4;
*(int8 *)(this + 0x50) = uVar2;
*(int8 *)param_4 = 0;
*(int8 *)(this + 0x60) = 0;
uVar2 = *(int8 *)(param_5 + 8);
*(int8 *)(param_5 + 8) = 0;
*(int8 *)(this + 0x58) = *(int8 *)param_5;
*(int8 *)(this + 0x60) = uVar2;
*(int8 *)param_5 = 0;
this[0x68] = (ForNode)param_6;
*(int8 *)(this + 0x78) = 0;
uVar2 = *(int8 *)(param_7 + 8);
*(int8 *)(param_7 + 8) = 0;
*(int8 *)(this + 0x70) = *(int8 *)param_7;
*(int8 *)(this + 0x78) = uVar2;
*(int8 *)param_7 = 0;
return;
}
| |
42,279 | lunasvg::RuleData::isLessThan(lunasvg::RuleData const&) const | dmazzella[P]pylunasvg/lunasvg/source/svgparser.cpp | bool isLessThan(const RuleData& rule) const { return std::tie(m_specificity, m_position) < std::tie(rule.m_specificity, rule.m_position); } | O2 | cpp | lunasvg::RuleData::isLessThan(lunasvg::RuleData const&) const:
subq $0x28, %rsp
leaq 0x30(%rdi), %rcx
addq $0x38, %rdi
leaq 0x18(%rsp), %rax
movq %rdi, (%rax)
movq %rcx, 0x8(%rax)
leaq 0x30(%rsi), %rdx
addq $0x38, %rsi
leaq 0x8(%rsp), %rcx
movq %rsi, (%rcx)
movq %rdx, 0x8(%rcx)
movq %rax, %rdi
movq %rcx, %rsi
callq 0x1bb94
addq $0x28, %rsp
retq
| _ZNK7lunasvg8RuleData10isLessThanERKS0_:
sub rsp, 28h
lea rcx, [rdi+30h]
add rdi, 38h ; '8'
lea rax, [rsp+28h+var_10]
mov [rax], rdi
mov [rax+8], rcx
lea rdx, [rsi+30h]
add rsi, 38h ; '8'
lea rcx, [rsp+28h+var_20]
mov [rcx], rsi
mov [rcx+8], rdx
mov rdi, rax
mov rsi, rcx
call _ZNSt15__tuple_compareISt5tupleIJRKmS2_EES3_Lm0ELm2EE6__lessERKS3_S6_; std::__tuple_compare<std::tuple<ulong const&,ulong const&>,std::tuple<ulong const&,ulong const&>,0ul,2ul>::__less(std::tuple<ulong const&,ulong const&> const&,std::tuple<ulong const&,ulong const&> const&)
add rsp, 28h
retn
| long long lunasvg::RuleData::isLessThan(lunasvg::RuleData *this, const lunasvg::RuleData *a2)
{
_QWORD v3[2]; // [rsp+8h] [rbp-20h] BYREF
_QWORD v4[2]; // [rsp+18h] [rbp-10h] BYREF
v4[0] = (char *)this + 56;
v4[1] = (char *)this + 48;
v3[0] = (char *)a2 + 56;
v3[1] = (char *)a2 + 48;
return std::__tuple_compare<std::tuple<unsigned long const&,unsigned long const&>,std::tuple<unsigned long const&,unsigned long const&>,0ul,2ul>::__less(
v4,
v3);
}
| isLessThan:
SUB RSP,0x28
LEA RCX,[RDI + 0x30]
ADD RDI,0x38
LEA RAX,[RSP + 0x18]
MOV qword ptr [RAX],RDI
MOV qword ptr [RAX + 0x8],RCX
LEA RDX,[RSI + 0x30]
ADD RSI,0x38
LEA RCX,[RSP + 0x8]
MOV qword ptr [RCX],RSI
MOV qword ptr [RCX + 0x8],RDX
MOV RDI,RAX
MOV RSI,RCX
CALL 0x0011bb94
ADD RSP,0x28
RET
|
/* lunasvg::RuleData::isLessThan(lunasvg::RuleData const&) const */
void __thiscall lunasvg::RuleData::isLessThan(RuleData *this,RuleData *param_1)
{
RuleData *local_20;
RuleData *local_18;
RuleData *local_10;
RuleData *local_8;
local_8 = this + 0x30;
local_10 = this + 0x38;
local_18 = param_1 + 0x30;
local_20 = param_1 + 0x38;
std::
__tuple_compare<std::tuple<unsigned_long_const&,unsigned_long_const&>,std::tuple<unsigned_long_const&,unsigned_long_const&>,0ul,2ul>
::__less((tuple *)&local_10,(tuple *)&local_20);
return;
}
| |
42,280 | ma_get_hash_keyval | eloqsql/libmariadb/libmariadb/mariadb_lib.c | uchar *ma_get_hash_keyval(const uchar *hash_entry,
unsigned int *length,
my_bool not_used __attribute__((unused)))
{
/* Hash entry has the following format:
Offset: 0 key (\0 terminated)
key_length + 1 value (\0 terminated)
*/
uchar *p= (uchar *)hash_entry;
size_t len= strlen((char *)p);
*length= (unsigned int)len;
return p;
} | O3 | c | ma_get_hash_keyval:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
movq %rsi, %rbx
movq %rdi, %r14
callq 0x131c0
movl %eax, (%rbx)
movq %r14, %rax
popq %rbx
popq %r14
popq %rbp
retq
| ma_get_hash_keyval:
push rbp
mov rbp, rsp
push r14
push rbx
mov rbx, rsi
mov r14, rdi
call _strlen
mov [rbx], eax
mov rax, r14
pop rbx
pop r14
pop rbp
retn
| long long ma_get_hash_keyval(long long a1, _DWORD *a2)
{
*a2 = strlen(a1);
return a1;
}
| ma_get_hash_keyval:
PUSH RBP
MOV RBP,RSP
PUSH R14
PUSH RBX
MOV RBX,RSI
MOV R14,RDI
CALL 0x001131c0
MOV dword ptr [RBX],EAX
MOV RAX,R14
POP RBX
POP R14
POP RBP
RET
|
char * ma_get_hash_keyval(char *param_1,int4 *param_2)
{
size_t sVar1;
sVar1 = strlen(param_1);
*param_2 = (int)sVar1;
return param_1;
}
| |
42,281 | mysql_real_query_start_internal | eloqsql/libmariadb/libmariadb/mariadb_async.c | static void
mysql_real_query_start_internal(void *d)
{
MK_ASYNC_INTERNAL_BODY(
mysql_real_query,
(parms->mysql, parms->stmt_str, parms->length),
parms->mysql,
int,
r_int)
} | O3 | c | mysql_real_query_start_internal:
pushq %rbp
movq %rsp, %rbp
pushq %rbx
pushq %rax
movq (%rdi), %rax
movq 0x8(%rdi), %rsi
movq 0x480(%rax), %rcx
movq 0x28(%rcx), %rbx
movq 0x10(%rdi), %rdx
movq %rax, %rdi
callq 0x1c5ae
movl %eax, 0x8(%rbx)
movl $0x0, (%rbx)
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
| mysql_real_query_start_internal:
push rbp
mov rbp, rsp
push rbx
push rax
mov rax, [rdi]
mov rsi, [rdi+8]
mov rcx, [rax+480h]
mov rbx, [rcx+28h]
mov rdx, [rdi+10h]
mov rdi, rax
call mysql_real_query
mov [rbx+8], eax
mov dword ptr [rbx], 0
add rsp, 8
pop rbx
pop rbp
retn
| long long mysql_real_query_start_internal(long long *a1)
{
_DWORD *v1; // rbx
long long result; // rax
v1 = *(_DWORD **)(*(_QWORD *)(*a1 + 1152) + 40LL);
result = mysql_real_query(*a1, a1[1], a1[2]);
v1[2] = result;
*v1 = 0;
return result;
}
| mysql_real_query_start_internal:
PUSH RBP
MOV RBP,RSP
PUSH RBX
PUSH RAX
MOV RAX,qword ptr [RDI]
MOV RSI,qword ptr [RDI + 0x8]
MOV RCX,qword ptr [RAX + 0x480]
MOV RBX,qword ptr [RCX + 0x28]
MOV RDX,qword ptr [RDI + 0x10]
MOV RDI,RAX
CALL 0x0011c5ae
MOV dword ptr [RBX + 0x8],EAX
MOV dword ptr [RBX],0x0
ADD RSP,0x8
POP RBX
POP RBP
RET
|
void mysql_real_query_start_internal(long *param_1)
{
int4 *puVar1;
int4 uVar2;
puVar1 = *(int4 **)(*(long *)(*param_1 + 0x480) + 0x28);
uVar2 = mysql_real_query(*param_1,param_1[1],param_1[2]);
puVar1[2] = uVar2;
*puVar1 = 0;
return;
}
| |
42,282 | send_change_user_packet | eloqsql/libmariadb/plugins/auth/my_auth.c | static int send_change_user_packet(MCPVIO_EXT *mpvio,
const uchar *data, int data_len)
{
MYSQL *mysql= mpvio->mysql;
char *buff, *end;
int res= 1;
size_t conn_attr_len= (mysql->options.extension) ?
mysql->options.extension->connect_attrs_len : 0;
buff= malloc(USERNAME_LENGTH+1 + data_len+1 + NAME_LEN+1 + 2 + NAME_LEN+1 + 9 + conn_attr_len);
end= ma_strmake(buff, mysql->user, USERNAME_LENGTH) + 1;
if (!data_len)
*end++= 0;
else
{
if (mysql->client_flag & CLIENT_SECURE_CONNECTION)
{
DBUG_ASSERT(data_len <= 255);
if (data_len > 255)
{
my_set_error(mysql, CR_MALFORMED_PACKET, SQLSTATE_UNKNOWN, 0);
goto error;
}
*end++= data_len;
}
else
{
DBUG_ASSERT(data_len == SCRAMBLE_LENGTH_323 + 1);
DBUG_ASSERT(data[SCRAMBLE_LENGTH_323] == 0);
}
memcpy(end, data, data_len);
end+= data_len;
}
end= ma_strmake(end, mpvio->db ? mpvio->db : "", NAME_LEN) + 1;
if (mysql->server_capabilities & CLIENT_PROTOCOL_41)
{
int2store(end, (ushort) mysql->charset->nr);
end+= 2;
}
if (mysql->server_capabilities & CLIENT_PLUGIN_AUTH)
end= ma_strmake(end, mpvio->plugin->name, NAME_LEN) + 1;
end= ma_send_connect_attr(mysql, (unsigned char *)end);
res= ma_simple_command(mysql, COM_CHANGE_USER,
buff, (ulong)(end-buff), 1, NULL);
error:
free(buff);
return res;
} | O0 | c | send_change_user_packet:
pushq %rbp
movq %rsp, %rbp
subq $0x60, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movl %edx, -0x14(%rbp)
movq -0x8(%rbp), %rax
movq 0x18(%rax), %rax
movq %rax, -0x20(%rbp)
movl $0x1, -0x34(%rbp)
movq -0x20(%rbp), %rax
cmpq $0x0, 0x480(%rax)
je 0x5a809
movq -0x20(%rbp), %rax
movq 0x480(%rax), %rax
movq 0x78(%rax), %rax
movq %rax, -0x50(%rbp)
jmp 0x5a811
xorl %eax, %eax
movq %rax, -0x50(%rbp)
jmp 0x5a811
movq -0x50(%rbp), %rax
movq %rax, -0x40(%rbp)
movl -0x14(%rbp), %eax
addl $0x201, %eax # imm = 0x201
addl $0x1, %eax
addl $0x100, %eax # imm = 0x100
addl $0x1, %eax
addl $0x2, %eax
addl $0x100, %eax # imm = 0x100
addl $0x1, %eax
addl $0x9, %eax
movslq %eax, %rdi
addq -0x40(%rbp), %rdi
callq 0x145c0
movq %rax, -0x28(%rbp)
movq -0x28(%rbp), %rdi
movq -0x20(%rbp), %rax
movq 0x2b8(%rax), %rsi
movl $0x200, %edx # imm = 0x200
callq 0x4c650
addq $0x1, %rax
movq %rax, -0x30(%rbp)
cmpl $0x0, -0x14(%rbp)
jne 0x5a885
movq -0x30(%rbp), %rax
movq %rax, %rcx
addq $0x1, %rcx
movq %rcx, -0x30(%rbp)
movb $0x0, (%rax)
jmp 0x5a904
movq -0x20(%rbp), %rax
movq 0x368(%rax), %rax
andq $0x8000, %rax # imm = 0x8000
cmpq $0x0, %rax
je 0x5a8e0
cmpl $0xff, -0x14(%rbp)
jle 0x5a8c8
movq -0x20(%rbp), %rdi
leaq 0x265f0(%rip), %rax # 0x80ea0
movq (%rax), %rdx
movl $0x7eb, %esi # imm = 0x7EB
xorl %eax, %eax
movl %eax, %ecx
movb $0x0, %al
callq 0x307d0
jmp 0x5aa13
movl -0x14(%rbp), %eax
movb %al, %cl
movq -0x30(%rbp), %rax
movq %rax, %rdx
addq $0x1, %rdx
movq %rdx, -0x30(%rbp)
movb %cl, (%rax)
jmp 0x5a8e2
jmp 0x5a8e2
movq -0x30(%rbp), %rdi
movq -0x10(%rbp), %rsi
movslq -0x14(%rbp), %rdx
callq 0x14370
movl -0x14(%rbp), %ecx
movq -0x30(%rbp), %rax
movslq %ecx, %rcx
addq %rcx, %rax
movq %rax, -0x30(%rbp)
movq -0x30(%rbp), %rax
movq %rax, -0x58(%rbp)
movq -0x8(%rbp), %rax
cmpq $0x0, 0x28(%rax)
je 0x5a925
movq -0x8(%rbp), %rax
movq 0x28(%rax), %rax
movq %rax, -0x60(%rbp)
jmp 0x5a932
leaq 0xba44(%rip), %rax # 0x66370
movq %rax, -0x60(%rbp)
jmp 0x5a932
movq -0x58(%rbp), %rdi
movq -0x60(%rbp), %rsi
movl $0x100, %edx # imm = 0x100
callq 0x4c650
addq $0x1, %rax
movq %rax, -0x30(%rbp)
movq -0x20(%rbp), %rax
movq 0x370(%rax), %rax
andq $0x200, %rax # imm = 0x200
cmpq $0x0, %rax
je 0x5a99e
jmp 0x5a965
movq -0x20(%rbp), %rax
movq 0x2f0(%rax), %rax
movl (%rax), %eax
movzwl %ax, %eax
movl %eax, -0x44(%rbp)
movl -0x44(%rbp), %eax
movb %al, %cl
movq -0x30(%rbp), %rax
movb %cl, (%rax)
movl -0x44(%rbp), %eax
shrl $0x8, %eax
movb %al, %cl
movq -0x30(%rbp), %rax
movb %cl, 0x1(%rax)
movq -0x30(%rbp), %rax
addq $0x2, %rax
movq %rax, -0x30(%rbp)
movq -0x20(%rbp), %rax
movq 0x370(%rax), %rax
andq $0x80000, %rax # imm = 0x80000
cmpq $0x0, %rax
je 0x5a9d7
movq -0x30(%rbp), %rdi
movq -0x8(%rbp), %rax
movq 0x20(%rax), %rax
movq 0x8(%rax), %rsi
movl $0x100, %edx # imm = 0x100
callq 0x4c650
addq $0x1, %rax
movq %rax, -0x30(%rbp)
movq -0x20(%rbp), %rdi
movq -0x30(%rbp), %rsi
callq 0x35470
movq %rax, -0x30(%rbp)
movq -0x20(%rbp), %rdi
movq -0x28(%rbp), %rdx
movq -0x30(%rbp), %rcx
movq -0x28(%rbp), %rax
subq %rax, %rcx
movl $0x11, %esi
movl $0x1, %r8d
xorl %eax, %eax
movl %eax, %r9d
callq 0x31620
movl %eax, -0x34(%rbp)
movq -0x28(%rbp), %rdi
callq 0x14530
movl -0x34(%rbp), %eax
addq $0x60, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
| send_change_user_packet:
push rbp
mov rbp, rsp
sub rsp, 60h
mov [rbp+var_8], rdi
mov [rbp+var_10], rsi
mov [rbp+var_14], edx
mov rax, [rbp+var_8]
mov rax, [rax+18h]
mov [rbp+var_20], rax
mov [rbp+var_34], 1
mov rax, [rbp+var_20]
cmp qword ptr [rax+480h], 0
jz short loc_5A809
mov rax, [rbp+var_20]
mov rax, [rax+480h]
mov rax, [rax+78h]
mov [rbp+var_50], rax
jmp short loc_5A811
loc_5A809:
xor eax, eax
mov [rbp+var_50], rax
jmp short $+2
loc_5A811:
mov rax, [rbp+var_50]
mov [rbp+var_40], rax
mov eax, [rbp+var_14]
add eax, 201h
add eax, 1
add eax, 100h
add eax, 1
add eax, 2
add eax, 100h
add eax, 1
add eax, 9
movsxd rdi, eax
add rdi, [rbp+var_40]
call _malloc
mov [rbp+var_28], rax
mov rdi, [rbp+var_28]
mov rax, [rbp+var_20]
mov rsi, [rax+2B8h]
mov edx, 200h
call ma_strmake
add rax, 1
mov [rbp+var_30], rax
cmp [rbp+var_14], 0
jnz short loc_5A885
mov rax, [rbp+var_30]
mov rcx, rax
add rcx, 1
mov [rbp+var_30], rcx
mov byte ptr [rax], 0
jmp short loc_5A904
loc_5A885:
mov rax, [rbp+var_20]
mov rax, [rax+368h]
and rax, 8000h
cmp rax, 0
jz short loc_5A8E0
cmp [rbp+var_14], 0FFh
jle short loc_5A8C8
mov rdi, [rbp+var_20]
lea rax, SQLSTATE_UNKNOWN
mov rdx, [rax]
mov esi, 7EBh
xor eax, eax
mov ecx, eax
mov al, 0
call my_set_error
jmp loc_5AA13
loc_5A8C8:
mov eax, [rbp+var_14]
mov cl, al
mov rax, [rbp+var_30]
mov rdx, rax
add rdx, 1
mov [rbp+var_30], rdx
mov [rax], cl
jmp short loc_5A8E2
loc_5A8E0:
jmp short $+2
loc_5A8E2:
mov rdi, [rbp+var_30]
mov rsi, [rbp+var_10]
movsxd rdx, [rbp+var_14]
call _memcpy
mov ecx, [rbp+var_14]
mov rax, [rbp+var_30]
movsxd rcx, ecx
add rax, rcx
mov [rbp+var_30], rax
loc_5A904:
mov rax, [rbp+var_30]
mov [rbp+var_58], rax
mov rax, [rbp+var_8]
cmp qword ptr [rax+28h], 0
jz short loc_5A925
mov rax, [rbp+var_8]
mov rax, [rax+28h]
mov [rbp+var_60], rax
jmp short loc_5A932
loc_5A925:
lea rax, a12+4; ""
mov [rbp+var_60], rax
jmp short $+2
loc_5A932:
mov rdi, [rbp+var_58]
mov rsi, [rbp+var_60]
mov edx, 100h
call ma_strmake
add rax, 1
mov [rbp+var_30], rax
mov rax, [rbp+var_20]
mov rax, [rax+370h]
and rax, 200h
cmp rax, 0
jz short loc_5A99E
jmp short $+2
loc_5A965:
mov rax, [rbp+var_20]
mov rax, [rax+2F0h]
mov eax, [rax]
movzx eax, ax
mov [rbp+var_44], eax
mov eax, [rbp+var_44]
mov cl, al
mov rax, [rbp+var_30]
mov [rax], cl
mov eax, [rbp+var_44]
shr eax, 8
mov cl, al
mov rax, [rbp+var_30]
mov [rax+1], cl
mov rax, [rbp+var_30]
add rax, 2
mov [rbp+var_30], rax
loc_5A99E:
mov rax, [rbp+var_20]
mov rax, [rax+370h]
and rax, 80000h
cmp rax, 0
jz short loc_5A9D7
mov rdi, [rbp+var_30]
mov rax, [rbp+var_8]
mov rax, [rax+20h]
mov rsi, [rax+8]
mov edx, 100h
call ma_strmake
add rax, 1
mov [rbp+var_30], rax
loc_5A9D7:
mov rdi, [rbp+var_20]
mov rsi, [rbp+var_30]
call ma_send_connect_attr
mov [rbp+var_30], rax
mov rdi, [rbp+var_20]
mov rdx, [rbp+var_28]
mov rcx, [rbp+var_30]
mov rax, [rbp+var_28]
sub rcx, rax
mov esi, 11h
mov r8d, 1
xor eax, eax
mov r9d, eax
call ma_simple_command
mov [rbp+var_34], eax
loc_5AA13:
mov rdi, [rbp+var_28]
call _free
mov eax, [rbp+var_34]
add rsp, 60h
pop rbp
retn
| long long send_change_user_packet(long long a1, long long a2, int a3)
{
_BYTE *v3; // rax
_BYTE *v4; // rax
_BYTE *v5; // rax
long long v7; // [rsp+10h] [rbp-50h]
__int16 v8; // [rsp+1Ch] [rbp-44h]
unsigned int v9; // [rsp+2Ch] [rbp-34h]
_BYTE *v10; // [rsp+30h] [rbp-30h]
_BYTE *v11; // [rsp+30h] [rbp-30h]
_BYTE *v12; // [rsp+30h] [rbp-30h]
long long v13; // [rsp+30h] [rbp-30h]
_BYTE *v14; // [rsp+38h] [rbp-28h]
long long v15; // [rsp+40h] [rbp-20h]
v15 = *(_QWORD *)(a1 + 24);
v9 = 1;
if ( *(_QWORD *)(v15 + 1152) )
v7 = *(_QWORD *)(*(_QWORD *)(v15 + 1152) + 120LL);
else
v7 = 0LL;
v14 = (_BYTE *)malloc(v7 + a3 + 1039);
v10 = ma_strmake(v14, *(_BYTE **)(v15 + 696), 512LL) + 1;
if ( a3 )
{
if ( (*(_QWORD *)(v15 + 872) & 0x8000LL) != 0 )
{
if ( a3 > 255 )
{
my_set_error(v15, 0x7EBu, (long long)SQLSTATE_UNKNOWN, 0LL);
goto LABEL_19;
}
v4 = v10++;
*v4 = a3;
}
memcpy(v10, a2, a3);
v11 = &v10[a3];
}
else
{
v3 = v10;
v11 = v10 + 1;
*v3 = 0;
}
if ( *(_QWORD *)(a1 + 40) )
v5 = ma_strmake(v11, *(_BYTE **)(a1 + 40), 256LL);
else
v5 = ma_strmake(v11, "", 256LL);
v12 = v5 + 1;
if ( (*(_QWORD *)(v15 + 880) & 0x200LL) != 0 )
{
v8 = **(_DWORD **)(v15 + 752);
*v12 = **(_DWORD **)(v15 + 752);
v5[2] = HIBYTE(v8);
v12 = v5 + 3;
}
if ( (*(_QWORD *)(v15 + 880) & 0x80000LL) != 0 )
v12 = ma_strmake(v12, *(_BYTE **)(*(_QWORD *)(a1 + 32) + 8LL), 256LL) + 1;
v13 = ma_send_connect_attr(v15, (long long)v12);
v9 = ma_simple_command(v15, 0x11u, (long long)v14, v13 - (_QWORD)v14, 1, 0LL);
LABEL_19:
free(v14);
return v9;
}
| send_change_user_packet:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x60
MOV qword ptr [RBP + -0x8],RDI
MOV qword ptr [RBP + -0x10],RSI
MOV dword ptr [RBP + -0x14],EDX
MOV RAX,qword ptr [RBP + -0x8]
MOV RAX,qword ptr [RAX + 0x18]
MOV qword ptr [RBP + -0x20],RAX
MOV dword ptr [RBP + -0x34],0x1
MOV RAX,qword ptr [RBP + -0x20]
CMP qword ptr [RAX + 0x480],0x0
JZ 0x0015a809
MOV RAX,qword ptr [RBP + -0x20]
MOV RAX,qword ptr [RAX + 0x480]
MOV RAX,qword ptr [RAX + 0x78]
MOV qword ptr [RBP + -0x50],RAX
JMP 0x0015a811
LAB_0015a809:
XOR EAX,EAX
MOV qword ptr [RBP + -0x50],RAX
JMP 0x0015a811
LAB_0015a811:
MOV RAX,qword ptr [RBP + -0x50]
MOV qword ptr [RBP + -0x40],RAX
MOV EAX,dword ptr [RBP + -0x14]
ADD EAX,0x201
ADD EAX,0x1
ADD EAX,0x100
ADD EAX,0x1
ADD EAX,0x2
ADD EAX,0x100
ADD EAX,0x1
ADD EAX,0x9
MOVSXD RDI,EAX
ADD RDI,qword ptr [RBP + -0x40]
CALL 0x001145c0
MOV qword ptr [RBP + -0x28],RAX
MOV RDI,qword ptr [RBP + -0x28]
MOV RAX,qword ptr [RBP + -0x20]
MOV RSI,qword ptr [RAX + 0x2b8]
MOV EDX,0x200
CALL 0x0014c650
ADD RAX,0x1
MOV qword ptr [RBP + -0x30],RAX
CMP dword ptr [RBP + -0x14],0x0
JNZ 0x0015a885
MOV RAX,qword ptr [RBP + -0x30]
MOV RCX,RAX
ADD RCX,0x1
MOV qword ptr [RBP + -0x30],RCX
MOV byte ptr [RAX],0x0
JMP 0x0015a904
LAB_0015a885:
MOV RAX,qword ptr [RBP + -0x20]
MOV RAX,qword ptr [RAX + 0x368]
AND RAX,0x8000
CMP RAX,0x0
JZ 0x0015a8e0
CMP dword ptr [RBP + -0x14],0xff
JLE 0x0015a8c8
MOV RDI,qword ptr [RBP + -0x20]
LEA RAX,[0x180ea0]
MOV RDX,qword ptr [RAX]
MOV ESI,0x7eb
XOR EAX,EAX
MOV ECX,EAX
MOV AL,0x0
CALL 0x001307d0
JMP 0x0015aa13
LAB_0015a8c8:
MOV EAX,dword ptr [RBP + -0x14]
MOV CL,AL
MOV RAX,qword ptr [RBP + -0x30]
MOV RDX,RAX
ADD RDX,0x1
MOV qword ptr [RBP + -0x30],RDX
MOV byte ptr [RAX],CL
JMP 0x0015a8e2
LAB_0015a8e0:
JMP 0x0015a8e2
LAB_0015a8e2:
MOV RDI,qword ptr [RBP + -0x30]
MOV RSI,qword ptr [RBP + -0x10]
MOVSXD RDX,dword ptr [RBP + -0x14]
CALL 0x00114370
MOV ECX,dword ptr [RBP + -0x14]
MOV RAX,qword ptr [RBP + -0x30]
MOVSXD RCX,ECX
ADD RAX,RCX
MOV qword ptr [RBP + -0x30],RAX
LAB_0015a904:
MOV RAX,qword ptr [RBP + -0x30]
MOV qword ptr [RBP + -0x58],RAX
MOV RAX,qword ptr [RBP + -0x8]
CMP qword ptr [RAX + 0x28],0x0
JZ 0x0015a925
MOV RAX,qword ptr [RBP + -0x8]
MOV RAX,qword ptr [RAX + 0x28]
MOV qword ptr [RBP + -0x60],RAX
JMP 0x0015a932
LAB_0015a925:
LEA RAX,[0x166370]
MOV qword ptr [RBP + -0x60],RAX
JMP 0x0015a932
LAB_0015a932:
MOV RDI,qword ptr [RBP + -0x58]
MOV RSI,qword ptr [RBP + -0x60]
MOV EDX,0x100
CALL 0x0014c650
ADD RAX,0x1
MOV qword ptr [RBP + -0x30],RAX
MOV RAX,qword ptr [RBP + -0x20]
MOV RAX,qword ptr [RAX + 0x370]
AND RAX,0x200
CMP RAX,0x0
JZ 0x0015a99e
JMP 0x0015a965
LAB_0015a965:
MOV RAX,qword ptr [RBP + -0x20]
MOV RAX,qword ptr [RAX + 0x2f0]
MOV EAX,dword ptr [RAX]
MOVZX EAX,AX
MOV dword ptr [RBP + -0x44],EAX
MOV EAX,dword ptr [RBP + -0x44]
MOV CL,AL
MOV RAX,qword ptr [RBP + -0x30]
MOV byte ptr [RAX],CL
MOV EAX,dword ptr [RBP + -0x44]
SHR EAX,0x8
MOV CL,AL
MOV RAX,qword ptr [RBP + -0x30]
MOV byte ptr [RAX + 0x1],CL
MOV RAX,qword ptr [RBP + -0x30]
ADD RAX,0x2
MOV qword ptr [RBP + -0x30],RAX
LAB_0015a99e:
MOV RAX,qword ptr [RBP + -0x20]
MOV RAX,qword ptr [RAX + 0x370]
AND RAX,0x80000
CMP RAX,0x0
JZ 0x0015a9d7
MOV RDI,qword ptr [RBP + -0x30]
MOV RAX,qword ptr [RBP + -0x8]
MOV RAX,qword ptr [RAX + 0x20]
MOV RSI,qword ptr [RAX + 0x8]
MOV EDX,0x100
CALL 0x0014c650
ADD RAX,0x1
MOV qword ptr [RBP + -0x30],RAX
LAB_0015a9d7:
MOV RDI,qword ptr [RBP + -0x20]
MOV RSI,qword ptr [RBP + -0x30]
CALL 0x00135470
MOV qword ptr [RBP + -0x30],RAX
MOV RDI,qword ptr [RBP + -0x20]
MOV RDX,qword ptr [RBP + -0x28]
MOV RCX,qword ptr [RBP + -0x30]
MOV RAX,qword ptr [RBP + -0x28]
SUB RCX,RAX
MOV ESI,0x11
MOV R8D,0x1
XOR EAX,EAX
MOV R9D,EAX
CALL 0x00131620
MOV dword ptr [RBP + -0x34],EAX
LAB_0015aa13:
MOV RDI,qword ptr [RBP + -0x28]
CALL 0x00114530
MOV EAX,dword ptr [RBP + -0x34]
ADD RSP,0x60
POP RBP
RET
|
int4 send_change_user_packet(long param_1,void *param_2,int param_3)
{
long lVar1;
uint uVar2;
void *__ptr;
long lVar3;
int *local_68;
long local_58;
int4 local_3c;
int1 *local_38;
lVar1 = *(long *)(param_1 + 0x18);
local_3c = 1;
if (*(long *)(lVar1 + 0x480) == 0) {
local_58 = 0;
}
else {
local_58 = *(long *)(*(long *)(lVar1 + 0x480) + 0x78);
}
__ptr = malloc((param_3 + 0x40f) + local_58);
lVar3 = ma_strmake(__ptr,*(int8 *)(lVar1 + 0x2b8),0x200);
local_38 = (int1 *)(lVar3 + 1);
if (param_3 == 0) {
*local_38 = 0;
local_38 = (int1 *)(lVar3 + 2);
}
else {
if ((*(ulong *)(lVar1 + 0x368) & 0x8000) != 0) {
if (0xff < param_3) {
my_set_error(lVar1,0x7eb,SQLSTATE_UNKNOWN,0);
goto LAB_0015aa13;
}
*local_38 = (char)param_3;
local_38 = (int1 *)(lVar3 + 2);
}
memcpy(local_38,param_2,(long)param_3);
local_38 = local_38 + param_3;
}
if (*(long *)(param_1 + 0x28) == 0) {
local_68 = &DAT_00166370;
}
else {
local_68 = *(int **)(param_1 + 0x28);
}
lVar3 = ma_strmake(local_38,local_68,0x100);
local_38 = (int1 *)(lVar3 + 1);
if ((*(ulong *)(lVar1 + 0x370) & 0x200) != 0) {
uVar2 = **(uint **)(lVar1 + 0x2f0) & 0xffff;
*local_38 = (char)uVar2;
*(char *)(lVar3 + 2) = (char)(uVar2 >> 8);
local_38 = (int1 *)(lVar3 + 3);
}
if ((*(ulong *)(lVar1 + 0x370) & 0x80000) != 0) {
lVar3 = ma_strmake(local_38,*(int8 *)(*(long *)(param_1 + 0x20) + 8),0x100);
local_38 = (int1 *)(lVar3 + 1);
}
lVar3 = ma_send_connect_attr(lVar1,local_38);
local_3c = ma_simple_command(lVar1,0x11,__ptr,lVar3 - (long)__ptr,1,0);
LAB_0015aa13:
free(__ptr);
return local_3c;
}
| |
42,283 | init_default_directories | eloqsql/mysys/my_default.c | static const char **init_default_directories(MEM_ROOT *alloc)
{
const char **dirs;
char *env;
int errors= 0;
DBUG_ENTER("init_default_directories");
dirs= (const char **)alloc_root(alloc, DEFAULT_DIRS_SIZE * sizeof(char *));
if (dirs == NULL)
DBUG_RETURN(NULL);
bzero((char *) dirs, DEFAULT_DIRS_SIZE * sizeof(char *));
#ifdef _WIN32
{
char fname_buffer[FN_REFLEN];
if (GetSystemWindowsDirectory(fname_buffer, sizeof(fname_buffer)))
errors += add_directory(alloc, fname_buffer, dirs);
if (GetWindowsDirectory(fname_buffer, sizeof(fname_buffer)))
errors += add_directory(alloc, fname_buffer, dirs);
errors += add_directory(alloc, "C:/", dirs);
if (my_get_module_parent(fname_buffer, sizeof(fname_buffer)) != NULL)
{
errors += add_directory(alloc, fname_buffer, dirs);
strcat_s(fname_buffer, sizeof(fname_buffer), "/data");
errors += add_directory(alloc, fname_buffer, dirs);
}
}
#else
#if defined(DEFAULT_SYSCONFDIR)
if (DEFAULT_SYSCONFDIR[0])
errors += add_directory(alloc, DEFAULT_SYSCONFDIR, dirs);
#else
errors += add_directory(alloc, "/etc/", dirs);
errors += add_directory(alloc, "/etc/mysql/", dirs);
#endif /* DEFAULT_SYSCONFDIR */
#endif
/*
If value of $MARIADB_HOME environment variable name is NULL, check
for $MYSQL_HOME
*/
if ((env= getenv("MARIADB_HOME")))
errors += add_directory(alloc, env, dirs);
else
{
if ((env= getenv("MYSQL_HOME")))
errors += add_directory(alloc, env, dirs);
}
/* Placeholder for --defaults-extra-file=<path> */
errors += add_directory(alloc, "", dirs);
#if !defined(_WIN32)
errors += add_directory(alloc, "~/", dirs);
#endif
DBUG_RETURN(errors > 0 ? NULL : dirs);
} | O0 | c | init_default_directories:
pushq %rbp
movq %rsp, %rbp
subq $0x30, %rsp
movq %rdi, -0x10(%rbp)
movl $0x0, -0x24(%rbp)
movq -0x10(%rbp), %rdi
movl $0x40, %esi
callq 0x35b50
movq %rax, -0x18(%rbp)
cmpq $0x0, -0x18(%rbp)
jne 0x30d5b
jmp 0x30d4e
movq $0x0, -0x8(%rbp)
jmp 0x30e4f
movq -0x18(%rbp), %rdi
xorl %esi, %esi
movl $0x40, %edx
callq 0x24180
movq -0x10(%rbp), %rdi
movq -0x18(%rbp), %rdx
leaq 0x50aa7(%rip), %rsi # 0x81821
callq 0x32a60
addl -0x24(%rbp), %eax
movl %eax, -0x24(%rbp)
movq -0x10(%rbp), %rdi
movq -0x18(%rbp), %rdx
leaq 0x50a93(%rip), %rsi # 0x81827
callq 0x32a60
addl -0x24(%rbp), %eax
movl %eax, -0x24(%rbp)
leaq 0x50a8d(%rip), %rdi # 0x81833
callq 0x243a0
movq %rax, -0x20(%rbp)
cmpq $0x0, %rax
je 0x30dce
movq -0x10(%rbp), %rdi
movq -0x20(%rbp), %rsi
movq -0x18(%rbp), %rdx
callq 0x32a60
addl -0x24(%rbp), %eax
movl %eax, -0x24(%rbp)
jmp 0x30dfd
leaq 0x50a6b(%rip), %rdi # 0x81840
callq 0x243a0
movq %rax, -0x20(%rbp)
cmpq $0x0, %rax
je 0x30dfb
movq -0x10(%rbp), %rdi
movq -0x20(%rbp), %rsi
movq -0x18(%rbp), %rdx
callq 0x32a60
addl -0x24(%rbp), %eax
movl %eax, -0x24(%rbp)
jmp 0x30dfd
movq -0x10(%rbp), %rdi
movq -0x18(%rbp), %rdx
leaq 0x4f36f(%rip), %rsi # 0x8017b
callq 0x32a60
addl -0x24(%rbp), %eax
movl %eax, -0x24(%rbp)
movq -0x10(%rbp), %rdi
movq -0x18(%rbp), %rdx
leaq 0x50a25(%rip), %rsi # 0x8184b
callq 0x32a60
addl -0x24(%rbp), %eax
movl %eax, -0x24(%rbp)
cmpl $0x0, -0x24(%rbp)
jle 0x30e3f
xorl %eax, %eax
movq %rax, -0x30(%rbp)
jmp 0x30e47
movq -0x18(%rbp), %rax
movq %rax, -0x30(%rbp)
movq -0x30(%rbp), %rax
movq %rax, -0x8(%rbp)
movq -0x8(%rbp), %rax
addq $0x30, %rsp
popq %rbp
retq
nopl (%rax)
| init_default_directories:
push rbp
mov rbp, rsp
sub rsp, 30h
mov [rbp+var_10], rdi
mov [rbp+var_24], 0
mov rdi, [rbp+var_10]
mov esi, 40h ; '@'
call alloc_root
mov [rbp+var_18], rax
cmp [rbp+var_18], 0
jnz short loc_30D5B
jmp short $+2
loc_30D4E:
mov [rbp+var_8], 0
jmp loc_30E4F
loc_30D5B:
mov rdi, [rbp+var_18]
xor esi, esi
mov edx, 40h ; '@'
call _memset
mov rdi, [rbp+var_10]
mov rdx, [rbp+var_18]
lea rsi, aEtc; "/etc/"
call add_directory
add eax, [rbp+var_24]
mov [rbp+var_24], eax
mov rdi, [rbp+var_10]
mov rdx, [rbp+var_18]
lea rsi, aEtcMysql; "/etc/mysql/"
call add_directory
add eax, [rbp+var_24]
mov [rbp+var_24], eax
lea rdi, aMariadbHome; "MARIADB_HOME"
call _getenv
mov [rbp+var_20], rax
cmp rax, 0
jz short loc_30DCE
mov rdi, [rbp+var_10]
mov rsi, [rbp+var_20]
mov rdx, [rbp+var_18]
call add_directory
add eax, [rbp+var_24]
mov [rbp+var_24], eax
jmp short loc_30DFD
loc_30DCE:
lea rdi, aMysqlHome; "MYSQL_HOME"
call _getenv
mov [rbp+var_20], rax
cmp rax, 0
jz short loc_30DFB
mov rdi, [rbp+var_10]
mov rsi, [rbp+var_20]
mov rdx, [rbp+var_18]
call add_directory
add eax, [rbp+var_24]
mov [rbp+var_24], eax
loc_30DFB:
jmp short $+2
loc_30DFD:
mov rdi, [rbp+var_10]
mov rdx, [rbp+var_18]
lea rsi, aResolveNumeric+31h; ""
call add_directory
add eax, [rbp+var_24]
mov [rbp+var_24], eax
mov rdi, [rbp+var_10]
mov rdx, [rbp+var_18]
lea rsi, asc_8184B; "~/"
call add_directory
add eax, [rbp+var_24]
mov [rbp+var_24], eax
cmp [rbp+var_24], 0
jle short loc_30E3F
xor eax, eax
mov [rbp+var_30], rax
jmp short loc_30E47
loc_30E3F:
mov rax, [rbp+var_18]
mov [rbp+var_30], rax
loc_30E47:
mov rax, [rbp+var_30]
mov [rbp+var_8], rax
loc_30E4F:
mov rax, [rbp+var_8]
add rsp, 30h
pop rbp
retn
| long long init_default_directories(long long a1)
{
int v3; // [rsp+Ch] [rbp-24h]
int v4; // [rsp+Ch] [rbp-24h]
int v5; // [rsp+Ch] [rbp-24h]
long long v6; // [rsp+10h] [rbp-20h]
long long v7; // [rsp+18h] [rbp-18h]
v7 = alloc_root(a1, 64LL);
if ( !v7 )
return 0LL;
memset(v7, 0LL, 64LL);
v3 = add_directory(a1, "/etc/", v7);
v4 = v3 + add_directory(a1, "/etc/mysql/", v7);
v6 = getenv("MARIADB_HOME");
if ( v6 || (v6 = getenv("MYSQL_HOME")) != 0 )
v4 += add_directory(a1, v6, v7);
v5 = v4 + add_directory(a1, "", v7);
if ( (int)(v5 + add_directory(a1, "~/", v7)) <= 0 )
return v7;
else
return 0LL;
}
| init_default_directories:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x30
MOV qword ptr [RBP + -0x10],RDI
MOV dword ptr [RBP + -0x24],0x0
MOV RDI,qword ptr [RBP + -0x10]
MOV ESI,0x40
CALL 0x00135b50
MOV qword ptr [RBP + -0x18],RAX
CMP qword ptr [RBP + -0x18],0x0
JNZ 0x00130d5b
JMP 0x00130d4e
LAB_00130d4e:
MOV qword ptr [RBP + -0x8],0x0
JMP 0x00130e4f
LAB_00130d5b:
MOV RDI,qword ptr [RBP + -0x18]
XOR ESI,ESI
MOV EDX,0x40
CALL 0x00124180
MOV RDI,qword ptr [RBP + -0x10]
MOV RDX,qword ptr [RBP + -0x18]
LEA RSI,[0x181821]
CALL 0x00132a60
ADD EAX,dword ptr [RBP + -0x24]
MOV dword ptr [RBP + -0x24],EAX
MOV RDI,qword ptr [RBP + -0x10]
MOV RDX,qword ptr [RBP + -0x18]
LEA RSI,[0x181827]
CALL 0x00132a60
ADD EAX,dword ptr [RBP + -0x24]
MOV dword ptr [RBP + -0x24],EAX
LEA RDI,[0x181833]
CALL 0x001243a0
MOV qword ptr [RBP + -0x20],RAX
CMP RAX,0x0
JZ 0x00130dce
MOV RDI,qword ptr [RBP + -0x10]
MOV RSI,qword ptr [RBP + -0x20]
MOV RDX,qword ptr [RBP + -0x18]
CALL 0x00132a60
ADD EAX,dword ptr [RBP + -0x24]
MOV dword ptr [RBP + -0x24],EAX
JMP 0x00130dfd
LAB_00130dce:
LEA RDI,[0x181840]
CALL 0x001243a0
MOV qword ptr [RBP + -0x20],RAX
CMP RAX,0x0
JZ 0x00130dfb
MOV RDI,qword ptr [RBP + -0x10]
MOV RSI,qword ptr [RBP + -0x20]
MOV RDX,qword ptr [RBP + -0x18]
CALL 0x00132a60
ADD EAX,dword ptr [RBP + -0x24]
MOV dword ptr [RBP + -0x24],EAX
LAB_00130dfb:
JMP 0x00130dfd
LAB_00130dfd:
MOV RDI,qword ptr [RBP + -0x10]
MOV RDX,qword ptr [RBP + -0x18]
LEA RSI,[0x18017b]
CALL 0x00132a60
ADD EAX,dword ptr [RBP + -0x24]
MOV dword ptr [RBP + -0x24],EAX
MOV RDI,qword ptr [RBP + -0x10]
MOV RDX,qword ptr [RBP + -0x18]
LEA RSI,[0x18184b]
CALL 0x00132a60
ADD EAX,dword ptr [RBP + -0x24]
MOV dword ptr [RBP + -0x24],EAX
CMP dword ptr [RBP + -0x24],0x0
JLE 0x00130e3f
XOR EAX,EAX
MOV qword ptr [RBP + -0x30],RAX
JMP 0x00130e47
LAB_00130e3f:
MOV RAX,qword ptr [RBP + -0x18]
MOV qword ptr [RBP + -0x30],RAX
LAB_00130e47:
MOV RAX,qword ptr [RBP + -0x30]
MOV qword ptr [RBP + -0x8],RAX
LAB_00130e4f:
MOV RAX,qword ptr [RBP + -0x8]
ADD RSP,0x30
POP RBP
RET
|
void * init_default_directories(int8 param_1)
{
int iVar1;
int iVar2;
char *pcVar3;
void *local_38;
int local_2c;
void *local_10;
local_38 = (void *)alloc_root(param_1);
if (local_38 == (void *)0x0) {
local_10 = (void *)0x0;
}
else {
memset(local_38,0,0x40);
iVar1 = add_directory(param_1,"/etc/",local_38);
local_2c = add_directory(param_1,"/etc/mysql/",local_38);
local_2c = local_2c + iVar1;
pcVar3 = getenv("MARIADB_HOME");
if (pcVar3 == (char *)0x0) {
pcVar3 = getenv("MYSQL_HOME");
if (pcVar3 != (char *)0x0) {
iVar1 = add_directory(param_1,pcVar3,local_38);
local_2c = iVar1 + local_2c;
}
}
else {
iVar1 = add_directory(param_1,pcVar3,local_38);
local_2c = iVar1 + local_2c;
}
iVar1 = add_directory(param_1,"",local_38);
iVar2 = add_directory(param_1,&DAT_0018184b,local_38);
if (0 < iVar2 + iVar1 + local_2c) {
local_38 = (void *)0x0;
}
local_10 = local_38;
}
return local_10;
}
| |
42,284 | fmt::v10::detail::dragonbox::decimal_fp<double> fmt::v10::detail::dragonbox::to_decimal<double>(double) | aimrt_mujoco_sim/_deps/fmt-src/include/fmt/format-inl.h | auto to_decimal(T x) noexcept -> decimal_fp<T> {
// Step 1: integer promotion & Schubfach multiplier calculation.
using carrier_uint = typename float_info<T>::carrier_uint;
using cache_entry_type = typename cache_accessor<T>::cache_entry_type;
auto br = bit_cast<carrier_uint>(x);
// Extract significand bits and exponent bits.
const carrier_uint significand_mask =
(static_cast<carrier_uint>(1) << num_significand_bits<T>()) - 1;
carrier_uint significand = (br & significand_mask);
int exponent =
static_cast<int>((br & exponent_mask<T>()) >> num_significand_bits<T>());
if (exponent != 0) { // Check if normal.
exponent -= exponent_bias<T>() + num_significand_bits<T>();
// Shorter interval case; proceed like Schubfach.
// In fact, when exponent == 1 and significand == 0, the interval is
// regular. However, it can be shown that the end-results are anyway same.
if (significand == 0) return shorter_interval_case<T>(exponent);
significand |= (static_cast<carrier_uint>(1) << num_significand_bits<T>());
} else {
// Subnormal case; the interval is always regular.
if (significand == 0) return {0, 0};
exponent =
std::numeric_limits<T>::min_exponent - num_significand_bits<T>() - 1;
}
const bool include_left_endpoint = (significand % 2 == 0);
const bool include_right_endpoint = include_left_endpoint;
// Compute k and beta.
const int minus_k = floor_log10_pow2(exponent) - float_info<T>::kappa;
const cache_entry_type cache = cache_accessor<T>::get_cached_power(-minus_k);
const int beta = exponent + floor_log2_pow10(-minus_k);
// Compute zi and deltai.
// 10^kappa <= deltai < 10^(kappa + 1)
const uint32_t deltai = cache_accessor<T>::compute_delta(cache, beta);
const carrier_uint two_fc = significand << 1;
// For the case of binary32, the result of integer check is not correct for
// 29711844 * 2^-82
// = 6.1442653300000000008655037797566933477355632930994033813476... * 10^-18
// and 29711844 * 2^-81
// = 1.2288530660000000001731007559513386695471126586198806762695... * 10^-17,
// and they are the unique counterexamples. However, since 29711844 is even,
// this does not cause any problem for the endpoints calculations; it can only
// cause a problem when we need to perform integer check for the center.
// Fortunately, with these inputs, that branch is never executed, so we are
// fine.
const typename cache_accessor<T>::compute_mul_result z_mul =
cache_accessor<T>::compute_mul((two_fc | 1) << beta, cache);
// Step 2: Try larger divisor; remove trailing zeros if necessary.
// Using an upper bound on zi, we might be able to optimize the division
// better than the compiler; we are computing zi / big_divisor here.
decimal_fp<T> ret_value;
ret_value.significand = divide_by_10_to_kappa_plus_1(z_mul.result);
uint32_t r = static_cast<uint32_t>(z_mul.result - float_info<T>::big_divisor *
ret_value.significand);
if (r < deltai) {
// Exclude the right endpoint if necessary.
if (r == 0 && (z_mul.is_integer & !include_right_endpoint)) {
--ret_value.significand;
r = float_info<T>::big_divisor;
goto small_divisor_case_label;
}
} else if (r > deltai) {
goto small_divisor_case_label;
} else {
// r == deltai; compare fractional parts.
const typename cache_accessor<T>::compute_mul_parity_result x_mul =
cache_accessor<T>::compute_mul_parity(two_fc - 1, cache, beta);
if (!(x_mul.parity | (x_mul.is_integer & include_left_endpoint)))
goto small_divisor_case_label;
}
ret_value.exponent = minus_k + float_info<T>::kappa + 1;
// We may need to remove trailing zeros.
ret_value.exponent += remove_trailing_zeros(ret_value.significand);
return ret_value;
// Step 3: Find the significand with the smaller divisor.
small_divisor_case_label:
ret_value.significand *= 10;
ret_value.exponent = minus_k + float_info<T>::kappa;
uint32_t dist = r - (deltai / 2) + (float_info<T>::small_divisor / 2);
const bool approx_y_parity =
((dist ^ (float_info<T>::small_divisor / 2)) & 1) != 0;
// Is dist divisible by 10^kappa?
const bool divisible_by_small_divisor =
check_divisibility_and_divide_by_pow10<float_info<T>::kappa>(dist);
// Add dist / 10^kappa to the significand.
ret_value.significand += dist;
if (!divisible_by_small_divisor) return ret_value;
// Check z^(f) >= epsilon^(f).
// We have either yi == zi - epsiloni or yi == (zi - epsiloni) - 1,
// where yi == zi - epsiloni if and only if z^(f) >= epsilon^(f).
// Since there are only 2 possibilities, we only need to care about the
// parity. Also, zi and r should have the same parity since the divisor
// is an even number.
const auto y_mul = cache_accessor<T>::compute_mul_parity(two_fc, cache, beta);
// If z^(f) >= epsilon^(f), we might have a tie when z^(f) == epsilon^(f),
// or equivalently, when y is an integer.
if (y_mul.parity != approx_y_parity)
--ret_value.significand;
else if (y_mul.is_integer & (ret_value.significand % 2 != 0))
--ret_value.significand;
return ret_value;
} | O3 | c | fmt::v10::detail::dragonbox::decimal_fp<double> fmt::v10::detail::dragonbox::to_decimal<double>(double):
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movabsq $0xfffffffffffff, %rax # imm = 0xFFFFFFFFFFFFF
movq %xmm0, %r15
movq %r15, %r14
andq %rax, %r14
shrq $0x34, %r15
andl $0x7ff, %r15d # imm = 0x7FF
je 0x9eae6
addl $0xfffffbcd, %r15d # imm = 0xFFFFFBCD
testq %r14, %r14
je 0x9ec90
addq %rax, %r14
incq %r14
jmp 0x9eaf5
movl $0xfffffbce, %r15d # imm = 0xFFFFFBCE
testq %r14, %r14
je 0x9ed7f
imull $0x4d105, %r15d, %ebx # imm = 0x4D105
sarl $0x14, %ebx
movl $0x2, %ebp
subl %ebx, %ebp
movl %ebp, %edi
callq 0x9ee68
movq %rdx, %r8
imull $0x1a934f, %ebp, %edi # imm = 0x1A934F
sarl $0x13, %edi
addl %r15d, %edi
movl %edi, %ecx
notb %cl
movq %rdx, %r12
shrq %cl, %r12
movq %rax, %r9
leaq (%r14,%r14), %r15
leaq 0x1(,%r14,2), %rsi
movl %edi, %ecx
shlq %cl, %rsi
movq %rsi, %rax
mulq %rdx
movq %rdx, %r10
movq %rax, %r11
movq %rsi, %rax
mulq %r9
movq %rdx, %rcx
addq %r11, %rcx
adcq $0x0, %r10
movabsq $0x20c49ba5e353f7cf, %rdx # imm = 0x20C49BA5E353F7CF
movq %r10, %rax
mulq %rdx
movq %rdx, %rsi
shrq $0x7, %rsi
imull $0xfffffc18, %esi, %eax # imm = 0xFFFFFC18
addl %eax, %r10d
cmpl %r10d, %r12d
jbe 0x9eb99
testl %r10d, %r10d
jne 0x9ebdf
testq %rcx, %rcx
jne 0x9ebdf
andl $0x1, %r14d
je 0x9ebdf
decq %rsi
movl $0x3e8, %r10d # imm = 0x3E8
jmp 0x9ec2e
jb 0x9ec2e
leaq -0x1(%r15), %rcx
movq %r8, %r11
imulq %rcx, %r11
movq %r9, %rax
mulq %rcx
addq %r11, %rdx
movb $0x40, %cl
subb %dil, %cl
movzbl %cl, %ecx
xorl %r11d, %r11d
btq %rcx, %rdx
setb %r11b
movl %edi, %ecx
shldq %cl, %rax, %rdx
xorl %eax, %eax
testq %rdx, %rdx
sete %al
notl %r14d
andl %r14d, %eax
orl %r11d, %eax
je 0x9ec2e
movabsq $-0x543388ee7b9e3103, %rcx # imm = 0xABCC77118461CEFD
movq %rsi, %rax
mulq %rcx
incl %ebx
testl $0x3ffffff, %edx # imm = 0x3FFFFFF
sete %dil
cmpq %rcx, %rax
setb %al
testb %dil, %al
je 0x9ed2c
shrq $0x1a, %rdx
movl $0x6, %eax
movl %edx, %ecx
imull $0xc28f5c29, %edx, %edx # imm = 0xC28F5C29
roll $0x1e, %edx
addl $0x2, %eax
cmpl $0x28f5c29, %edx # imm = 0x28F5C29
jb 0x9ec13
jmp 0x9edcb
leaq (%rsi,%rsi,4), %rax
shrl %r12d
subl %r12d, %r10d
imull $0x290, %r10d, %r11d # imm = 0x290
addl $0x8020, %r11d # imm = 0x8020
movzwl %r11w, %ecx
shrl $0x10, %r11d
leaq (%r11,%rax,2), %rsi
cmpl $0x28f, %ecx # imm = 0x28F
ja 0x9ede1
imulq %r15, %r8
movq %r9, %rax
mulq %r15
addq %r8, %rdx
movl $0x40, %r8d
subl %edi, %r8d
btq %r8, %rdx
setb %cl
andb $0x1, %r10b
cmpb %r10b, %cl
je 0x9edef
decq %rsi
jmp 0x9ede1
imull $0x9a209, %r15d, %ebx # imm = 0x9A209
addl $0xfffc01e1, %ebx # imm = 0xFFFC01E1
sarl $0x15, %ebx
movl %ebx, %edi
negl %edi
imull $0xffe56cb1, %ebx, %ebp # imm = 0xFFE56CB1
sarl $0x13, %ebp
addl %r15d, %ebp
callq 0x9ee68
movq %rdx, %rdi
movq %rdx, %rax
shrq $0x36, %rax
subq %rax, %rdx
movb $0xb, %cl
subb %bpl, %cl
shrq %cl, %rdx
movq %rdi, %rax
shrq $0x35, %rax
addq %rdi, %rax
shrq %cl, %rax
movl %r15d, %ecx
andl $-0x2, %ecx
xorl %r8d, %r8d
cmpl $0x2, %ecx
setne %r8b
addq %rdx, %r8
movabsq $-0x3333333333333333, %rsi # imm = 0xCCCCCCCCCCCCCCCD
mulq %rsi
movq %rdx, %rcx
shrq $0x3, %rcx
leaq (%rcx,%rcx), %rax
leaq (%rax,%rax,4), %rax
cmpq %r8, %rax
jae 0x9ed85
movb $0xa, %cl
subb %bpl, %cl
shrq %cl, %rdi
incq %rdi
shrq %rdi
cmpl $-0x4d, %r15d
jne 0x9ee10
andq $-0x2, %rdi
jmp 0x9ee17
movabsq $-0x70a3d70a3d70a3d7, %rdx # imm = 0x8F5C28F5C28F5C29
movl $0xfffffffe, %eax # imm = 0xFFFFFFFE
movabsq $0x28f5c28f5c28f5c, %rdi # imm = 0x28F5C28F5C28F5C
movq %rsi, %rcx
imulq %rdx, %rsi
shrdq $0x2, %rcx, %rsi
addl $0x2, %eax
cmpq %rdi, %rsi
jbe 0x9ed45
movabsq $-0x3333333333333333, %rsi # imm = 0xCCCCCCCCCCCCCCCD
imulq %rcx, %rsi
shrdq $0x1, %rcx, %rsi
movabsq $0x199999999999999a, %rdx # imm = 0x199999999999999A
cmpq %rdx, %rsi
cmovaeq %rcx, %rsi
jmp 0x9eddc
xorl %ebx, %ebx
xorl %esi, %esi
jmp 0x9ede1
movabsq $-0x543388ee7b9e3103, %rdi # imm = 0xABCC77118461CEFD
movq %rcx, %rax
mulq %rdi
incl %ebx
testl $0x3ffffff, %edx # imm = 0x3FFFFFF
sete %r8b
cmpq %rdi, %rax
setb %al
testb %r8b, %al
je 0x9ee1c
shrq $0x1a, %rdx
movl $0x6, %eax
movl %edx, %ecx
imull $0xc28f5c29, %edx, %edx # imm = 0xC28F5C29
roll $0x1e, %edx
addl $0x2, %eax
cmpl $0x28f5c29, %edx # imm = 0x28F5C29
jb 0x9edb5
imull $0xcccccccd, %ecx, %esi # imm = 0xCCCCCCCD
rorl %esi
cmpl $0x1999999a, %esi # imm = 0x1999999A
cmovael %ecx, %esi
adcl $0x0, %eax
addl %eax, %ebx
movq %rsi, %rax
movl %ebx, %edx
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
movl %edi, %ecx
shlq %cl, %rdx
movl %r8d, %ecx
shrq %cl, %rax
orq %rdx, %rax
sete %al
andl $0x1, %r11d
andb %al, %r11b
movzbl %r11b, %eax
subq %rax, %rsi
jmp 0x9ede1
cmpq %r8, %rdi
adcq $0x0, %rdi
movq %rdi, %rsi
jmp 0x9ede1
movabsq $-0x70a3d70a3d70a3d7, %rdi # imm = 0x8F5C28F5C28F5C29
movl $0xfffffffe, %eax # imm = 0xFFFFFFFE
movabsq $0x28f5c28f5c28f5c, %r8 # imm = 0x28F5C28F5C28F5C
movq %rcx, %rdx
imulq %rdi, %rcx
shrdq $0x2, %rdx, %rcx
addl $0x2, %eax
cmpq %r8, %rcx
jbe 0x9ee35
imulq %rdx, %rsi
shrdq $0x1, %rdx, %rsi
movabsq $0x199999999999999a, %rcx # imm = 0x199999999999999A
cmpq %rcx, %rsi
cmovaeq %rdx, %rsi
jmp 0x9eddc
| _ZN3fmt3v106detail9dragonbox10to_decimalIdEENS2_10decimal_fpIT_EES5_:
push rbp
push r15
push r14
push r12
push rbx
mov rax, 0FFFFFFFFFFFFFh
movq r15, xmm0
mov r14, r15
and r14, rax
shr r15, 34h
and r15d, 7FFh
jz short loc_9EAE6
add r15d, 0FFFFFBCDh
test r14, r14
jz loc_9EC90
add r14, rax
inc r14
jmp short loc_9EAF5
loc_9EAE6:
mov r15d, 0FFFFFBCEh
test r14, r14
jz loc_9ED7F
loc_9EAF5:
imul ebx, r15d, 4D105h
sar ebx, 14h
mov ebp, 2
sub ebp, ebx
mov edi, ebp
call _ZN3fmt3v106detail9dragonbox14cache_accessorIdE16get_cached_powerEi; fmt::v10::detail::dragonbox::cache_accessor<double>::get_cached_power(int)
mov r8, rdx
imul edi, ebp, 1A934Fh
sar edi, 13h
add edi, r15d
mov ecx, edi
not cl
mov r12, rdx
shr r12, cl
mov r9, rax
lea r15, [r14+r14]
lea rsi, ds:1[r14*2]
mov ecx, edi
shl rsi, cl
mov rax, rsi
mul rdx
mov r10, rdx
mov r11, rax
mov rax, rsi
mul r9
mov rcx, rdx
add rcx, r11
adc r10, 0
mov rdx, 20C49BA5E353F7CFh
mov rax, r10
mul rdx
mov rsi, rdx
shr rsi, 7
imul eax, esi, 0FFFFFC18h
add r10d, eax
cmp r12d, r10d
jbe short loc_9EB99
test r10d, r10d
jnz short loc_9EBDF
test rcx, rcx
jnz short loc_9EBDF
and r14d, 1
jz short loc_9EBDF
dec rsi
mov r10d, 3E8h
jmp loc_9EC2E
loc_9EB99:
jb loc_9EC2E
lea rcx, [r15-1]
mov r11, r8
imul r11, rcx
mov rax, r9
mul rcx
add rdx, r11
mov cl, 40h ; '@'
sub cl, dil
movzx ecx, cl
xor r11d, r11d
bt rdx, rcx
setb r11b
mov ecx, edi
shld rdx, rax, cl
xor eax, eax
test rdx, rdx
setz al
not r14d
and eax, r14d
or eax, r11d
jz short loc_9EC2E
loc_9EBDF:
mov rcx, 0ABCC77118461CEFDh
mov rax, rsi
mul rcx
inc ebx
test edx, 3FFFFFFh
setz dil
cmp rax, rcx
setb al
test al, dil
jz loc_9ED2C
shr rdx, 1Ah
mov eax, 6
loc_9EC13:
mov ecx, edx
imul edx, 0C28F5C29h
rol edx, 1Eh
add eax, 2
cmp edx, 28F5C29h
jb short loc_9EC13
jmp loc_9EDCB
loc_9EC2E:
lea rax, [rsi+rsi*4]
shr r12d, 1
sub r10d, r12d
imul r11d, r10d, 290h
add r11d, 8020h
movzx ecx, r11w
shr r11d, 10h
lea rsi, [r11+rax*2]
cmp ecx, 28Fh
ja loc_9EDE1
imul r8, r15
mov rax, r9
mul r15
add rdx, r8
mov r8d, 40h ; '@'
sub r8d, edi
bt rdx, r8
setb cl
and r10b, 1
cmp cl, r10b
jz loc_9EDEF
dec rsi
jmp loc_9EDE1
loc_9EC90:
imul ebx, r15d, 9A209h
add ebx, 0FFFC01E1h
sar ebx, 15h
mov edi, ebx
neg edi
imul ebp, ebx, 0FFE56CB1h
sar ebp, 13h
add ebp, r15d
call _ZN3fmt3v106detail9dragonbox14cache_accessorIdE16get_cached_powerEi; fmt::v10::detail::dragonbox::cache_accessor<double>::get_cached_power(int)
mov rdi, rdx
mov rax, rdx
shr rax, 36h
sub rdx, rax
mov cl, 0Bh
sub cl, bpl
shr rdx, cl
mov rax, rdi
shr rax, 35h
add rax, rdi
shr rax, cl
mov ecx, r15d
and ecx, 0FFFFFFFEh
xor r8d, r8d
cmp ecx, 2
setnz r8b
add r8, rdx
mov rsi, 0CCCCCCCCCCCCCCCDh
mul rsi
mov rcx, rdx
shr rcx, 3
lea rax, [rcx+rcx]
lea rax, [rax+rax*4]
cmp rax, r8
jnb short loc_9ED85
mov cl, 0Ah
sub cl, bpl
shr rdi, cl
inc rdi
shr rdi, 1
cmp r15d, 0FFFFFFB3h
jnz loc_9EE10
and rdi, 0FFFFFFFFFFFFFFFEh
jmp loc_9EE17
loc_9ED2C:
mov rdx, 8F5C28F5C28F5C29h
mov eax, 0FFFFFFFEh
mov rdi, 28F5C28F5C28F5Ch
loc_9ED45:
mov rcx, rsi
imul rsi, rdx
shrd rsi, rcx, 2
add eax, 2
cmp rsi, rdi
jbe short loc_9ED45
mov rsi, 0CCCCCCCCCCCCCCCDh
imul rsi, rcx
shrd rsi, rcx, 1
mov rdx, 199999999999999Ah
cmp rsi, rdx
cmovnb rsi, rcx
jmp short loc_9EDDC
loc_9ED7F:
xor ebx, ebx
xor esi, esi
jmp short loc_9EDE1
loc_9ED85:
mov rdi, 0ABCC77118461CEFDh
mov rax, rcx
mul rdi
inc ebx
test edx, 3FFFFFFh
setz r8b
cmp rax, rdi
setb al
test al, r8b
jz short loc_9EE1C
shr rdx, 1Ah
mov eax, 6
loc_9EDB5:
mov ecx, edx
imul edx, 0C28F5C29h
rol edx, 1Eh
add eax, 2
cmp edx, 28F5C29h
jb short loc_9EDB5
loc_9EDCB:
imul esi, ecx, 0CCCCCCCDh
ror esi, 1
cmp esi, 1999999Ah
cmovnb esi, ecx
loc_9EDDC:
adc eax, 0
add ebx, eax
loc_9EDE1:
mov rax, rsi
mov edx, ebx
pop rbx
pop r12
pop r14
pop r15
pop rbp
retn
loc_9EDEF:
mov ecx, edi
shl rdx, cl
mov ecx, r8d
shr rax, cl
or rax, rdx
setz al
and r11d, 1
and r11b, al
movzx eax, r11b
sub rsi, rax
jmp short loc_9EDE1
loc_9EE10:
cmp rdi, r8
adc rdi, 0
loc_9EE17:
mov rsi, rdi
jmp short loc_9EDE1
loc_9EE1C:
mov rdi, 8F5C28F5C28F5C29h
mov eax, 0FFFFFFFEh
mov r8, 28F5C28F5C28F5Ch
loc_9EE35:
mov rdx, rcx
imul rcx, rdi
shrd rcx, rdx, 2
add eax, 2
cmp rcx, r8
jbe short loc_9EE35
imul rsi, rdx
shrd rsi, rdx, 1
mov rcx, 199999999999999Ah
cmp rsi, rcx
cmovnb rsi, rdx
jmp loc_9EDDC
| unsigned long long fmt::v10::detail::dragonbox::to_decimal<double>(double a1)
{
long long v1; // r14
int v2; // r15d
int v3; // ebx
__int128 v4; // rax
unsigned long long v5; // r8
int v6; // edi
long long v7; // r12
unsigned long long v8; // r9
long long v9; // r15
unsigned long long v10; // r10
unsigned long long v11; // rsi
unsigned int v12; // r10d
__int128 v13; // rax
unsigned long long v14; // rdx
int v15; // eax
unsigned int v16; // ecx
unsigned int v17; // r10d
unsigned long long v18; // rsi
unsigned __int128 v19; // rax
int v20; // ebx
unsigned long long v21; // rdx
unsigned long long v22; // r8
unsigned long long v23; // rcx
unsigned long long v24; // rdi
int v26; // eax
unsigned long long v27; // rcx
__int128 v28; // rt0
__int128 v29; // rt0
unsigned long long v30; // rdx
int v31; // eax
int v33; // eax
unsigned long long v34; // rdx
__int128 v35; // rt0
__int128 v36; // rt0
v1 = *(_QWORD *)&a1 & 0xFFFFFFFFFFFFFLL;
if ( ((*(_QWORD *)&a1 >> 52) & 0x7FF) == 0 )
{
v2 = -1074;
if ( !v1 )
return 0LL;
goto LABEL_5;
}
v2 = ((*(_QWORD *)&a1 >> 52) & 0x7FF) - 1075;
if ( v1 )
{
v1 += 0x10000000000000LL;
LABEL_5:
v3 = (315653 * v2) >> 20;
*(_QWORD *)&v4 = fmt::v10::detail::dragonbox::cache_accessor<double>::get_cached_power((unsigned int)(2 - v3));
v5 = *((_QWORD *)&v4 + 1);
v6 = v2 + ((1741647 * (2 - v3)) >> 19);
v7 = *((_QWORD *)&v4 + 1) >> ~((unsigned __int8)v2 + (unsigned __int8)((1741647 * (2 - v3)) >> 19));
v8 = v4;
v9 = 2 * v1;
v10 = (*((unsigned long long *)&v4 + 1) * (unsigned __int128)(unsigned long long)((2 * v1 + 1) << v6)
+ (((unsigned long long)v4 * (unsigned __int128)(unsigned long long)((2 * v1 + 1) << v6)) >> 64)) >> 64;
v11 = (unsigned long long)((0x20C49BA5E353F7CFLL * (unsigned __int128)v10) >> 64) >> 7;
v12 = -1000 * v11 + v10;
if ( (unsigned int)v7 <= v12 )
{
if ( (unsigned int)v7 < v12
|| (v13 = v4 * (unsigned long long)(v9 - 1),
!(_bittest64((_QWORD *)&v13 + 1, (unsigned __int8)(64 - v6)) | ~(_DWORD)v1 & (((unsigned long long)((__PAIR128__(v5, v8) * (unsigned long long)(v9 - 1)) >> 64 << v6) | ((v8 * (v9 - 1)) >> (64 - (unsigned __int8)v6))) == 0))) )
{
LABEL_16:
v17 = v12 - ((unsigned int)v7 >> 1);
v18 = ((656 * v17 + 32800) >> 16) + 10 * v11;
if ( (unsigned __int16)(656 * v17 - 32736) <= 0x28Fu )
{
v19 = __PAIR128__(v5, v8) * (unsigned long long)v9;
if ( _bittest64((_QWORD *)&v19 + 1, (unsigned int)(64 - v6)) == (v17 & 1) )
v18 -= (((*((_QWORD *)&v19 + 1) << v6) | ((unsigned long long)v19 >> (64 - (unsigned __int8)v6))) == 0) & (unsigned __int8)(((656 * v17 + 32800) >> 16) & 1);
else
--v18;
}
return v18;
}
}
else if ( !v12 && is_mul_ok(v4, (2 * v1 + 1) << v6) && (v1 & 1) != 0 )
{
--v11;
v12 = 1000;
goto LABEL_16;
}
if ( (((0xABCC77118461CEFDLL * (unsigned __int128)v11) >> 64) & 0x3FFFFFF) == 0
&& 0xABCC77118461CEFDLL * v11 < 0xABCC77118461CEFDLL )
{
v14 = v11 / 0x5F5E100;
v15 = 6;
do
{
v16 = v14;
LODWORD(v14) = __ROL4__(-1030792151 * v14, 30);
v15 += 2;
}
while ( (unsigned int)v14 < 0x28F5C29 );
goto LABEL_31;
}
v26 = -2;
do
{
v27 = v11;
*(_QWORD *)&v28 = 0x8F5C28F5C28F5C29LL * v11;
*((_QWORD *)&v28 + 1) = v11;
v11 = v28 >> 2;
v26 += 2;
}
while ( v11 <= 0x28F5C28F5C28F5CLL );
*(_QWORD *)&v29 = 0xCCCCCCCCCCCCCCCDLL * v27;
*((_QWORD *)&v29 + 1) = v27;
v18 = v29 >> 1;
if ( v18 >= 0x199999999999999ALL )
return v27;
return v18;
}
v20 = (631305 * v2 - 261663) >> 21;
fmt::v10::detail::dragonbox::cache_accessor<double>::get_cached_power((unsigned int)-v20);
v22 = ((v21 - (v21 >> 54)) >> (11 - ((unsigned __int8)(*(_QWORD *)&a1 >> 52) - 51 + ((-1741647 * v20) >> 19))))
+ (((((*(_QWORD *)&a1 >> 52) & 0x7FF) - 1075) & 0xFFFFFFFE) != 2);
v23 = ((v21 + (v21 >> 53)) >> (11 - ((unsigned __int8)(*(_QWORD *)&a1 >> 52) - 51 + ((-1741647 * v20) >> 19)))) / 0xA;
if ( 10 * v23 < v22 )
{
v24 = ((v21 >> (10 - ((unsigned __int8)(*(_QWORD *)&a1 >> 52) - 51 + ((-1741647 * v20) >> 19)))) + 1) >> 1;
if ( ((*(_QWORD *)&a1 >> 52) & 0x7FF) == 0x3E6 )
return v24 & 0xFFFFFFFFFFFFFFFELL;
else
return (v24 < v22) + v24;
}
if ( (((0xABCC77118461CEFDLL * (unsigned __int128)v23) >> 64) & 0x3FFFFFF) == 0
&& 0xABCC77118461CEFDLL * v23 < 0xABCC77118461CEFDLL )
{
v30 = v23 / 0x5F5E100;
v31 = 6;
do
{
v16 = v30;
LODWORD(v30) = __ROL4__(-1030792151 * v30, 30);
v31 += 2;
}
while ( (unsigned int)v30 < 0x28F5C29 );
LABEL_31:
v18 = (unsigned int)__ROR4__(-858993459 * v16, 1);
if ( (unsigned int)v18 >= 0x1999999A )
return v16;
return v18;
}
v33 = -2;
do
{
v34 = v23;
*(_QWORD *)&v35 = 0x8F5C28F5C28F5C29LL * v23;
*((_QWORD *)&v35 + 1) = v23;
v23 = v35 >> 2;
v33 += 2;
}
while ( v23 <= 0x28F5C28F5C28F5CLL );
*(_QWORD *)&v36 = 0xCCCCCCCCCCCCCCCDLL * v34;
*((_QWORD *)&v36 + 1) = v34;
v18 = v36 >> 1;
if ( v18 >= 0x199999999999999ALL )
return v34;
return v18;
}
| to_decimal<double>:
PUSH RBP
PUSH R15
PUSH R14
PUSH R12
PUSH RBX
MOV RAX,0xfffffffffffff
MOVQ R15,XMM0
MOV R14,R15
AND R14,RAX
SHR R15,0x34
AND R15D,0x7ff
JZ 0x0019eae6
ADD R15D,0xfffffbcd
TEST R14,R14
JZ 0x0019ec90
ADD R14,RAX
INC R14
JMP 0x0019eaf5
LAB_0019eae6:
MOV R15D,0xfffffbce
TEST R14,R14
JZ 0x0019ed7f
LAB_0019eaf5:
IMUL EBX,R15D,0x4d105
SAR EBX,0x14
MOV EBP,0x2
SUB EBP,EBX
MOV EDI,EBP
CALL 0x0019ee68
MOV R8,RDX
IMUL EDI,EBP,0x1a934f
SAR EDI,0x13
ADD EDI,R15D
MOV ECX,EDI
NOT CL
MOV R12,RDX
SHR R12,CL
MOV R9,RAX
LEA R15,[R14 + R14*0x1]
LEA RSI,[0x1 + R14*0x2]
MOV ECX,EDI
SHL RSI,CL
MOV RAX,RSI
MUL RDX
MOV R10,RDX
MOV R11,RAX
MOV RAX,RSI
MUL R9
MOV RCX,RDX
ADD RCX,R11
ADC R10,0x0
MOV RDX,0x20c49ba5e353f7cf
MOV RAX,R10
MUL RDX
MOV RSI,RDX
SHR RSI,0x7
IMUL EAX,ESI,-0x3e8
ADD R10D,EAX
CMP R12D,R10D
JBE 0x0019eb99
TEST R10D,R10D
JNZ 0x0019ebdf
TEST RCX,RCX
JNZ 0x0019ebdf
AND R14D,0x1
JZ 0x0019ebdf
DEC RSI
MOV R10D,0x3e8
JMP 0x0019ec2e
LAB_0019eb99:
JC 0x0019ec2e
LEA RCX,[R15 + -0x1]
MOV R11,R8
IMUL R11,RCX
MOV RAX,R9
MUL RCX
ADD RDX,R11
MOV CL,0x40
SUB CL,DIL
MOVZX ECX,CL
XOR R11D,R11D
BT RDX,RCX
SETC R11B
MOV ECX,EDI
SHLD RDX,RAX,CL
XOR EAX,EAX
TEST RDX,RDX
SETZ AL
NOT R14D
AND EAX,R14D
OR EAX,R11D
JZ 0x0019ec2e
LAB_0019ebdf:
MOV RCX,-0x543388ee7b9e3103
MOV RAX,RSI
MUL RCX
INC EBX
TEST EDX,0x3ffffff
SETZ DIL
CMP RAX,RCX
SETC AL
TEST AL,DIL
JZ 0x0019ed2c
SHR RDX,0x1a
MOV EAX,0x6
LAB_0019ec13:
MOV ECX,EDX
IMUL EDX,EDX,-0x3d70a3d7
ROL EDX,0x1e
ADD EAX,0x2
CMP EDX,0x28f5c29
JC 0x0019ec13
JMP 0x0019edcb
LAB_0019ec2e:
LEA RAX,[RSI + RSI*0x4]
SHR R12D,0x1
SUB R10D,R12D
IMUL R11D,R10D,0x290
ADD R11D,0x8020
MOVZX ECX,R11W
SHR R11D,0x10
LEA RSI,[R11 + RAX*0x2]
CMP ECX,0x28f
JA 0x0019ede1
IMUL R8,R15
MOV RAX,R9
MUL R15
ADD RDX,R8
MOV R8D,0x40
SUB R8D,EDI
BT RDX,R8
SETC CL
AND R10B,0x1
CMP CL,R10B
JZ 0x0019edef
DEC RSI
JMP 0x0019ede1
LAB_0019ec90:
IMUL EBX,R15D,0x9a209
ADD EBX,0xfffc01e1
SAR EBX,0x15
MOV EDI,EBX
NEG EDI
IMUL EBP,EBX,-0x1a934f
SAR EBP,0x13
ADD EBP,R15D
CALL 0x0019ee68
MOV RDI,RDX
MOV RAX,RDX
SHR RAX,0x36
SUB RDX,RAX
MOV CL,0xb
SUB CL,BPL
SHR RDX,CL
MOV RAX,RDI
SHR RAX,0x35
ADD RAX,RDI
SHR RAX,CL
MOV ECX,R15D
AND ECX,0xfffffffe
XOR R8D,R8D
CMP ECX,0x2
SETNZ R8B
ADD R8,RDX
MOV RSI,-0x3333333333333333
MUL RSI
MOV RCX,RDX
SHR RCX,0x3
LEA RAX,[RCX + RCX*0x1]
LEA RAX,[RAX + RAX*0x4]
CMP RAX,R8
JNC 0x0019ed85
MOV CL,0xa
SUB CL,BPL
SHR RDI,CL
INC RDI
SHR RDI,0x1
CMP R15D,-0x4d
JNZ 0x0019ee10
AND RDI,-0x2
JMP 0x0019ee17
LAB_0019ed2c:
MOV RDX,-0x70a3d70a3d70a3d7
MOV EAX,0xfffffffe
MOV RDI,0x28f5c28f5c28f5c
LAB_0019ed45:
MOV RCX,RSI
IMUL RSI,RDX
SHRD RSI,RCX,0x2
ADD EAX,0x2
CMP RSI,RDI
JBE 0x0019ed45
MOV RSI,-0x3333333333333333
IMUL RSI,RCX
SHRD RSI,RCX,0x1
MOV RDX,0x199999999999999a
CMP RSI,RDX
CMOVNC RSI,RCX
JMP 0x0019eddc
LAB_0019ed7f:
XOR EBX,EBX
XOR ESI,ESI
JMP 0x0019ede1
LAB_0019ed85:
MOV RDI,-0x543388ee7b9e3103
MOV RAX,RCX
MUL RDI
INC EBX
TEST EDX,0x3ffffff
SETZ R8B
CMP RAX,RDI
SETC AL
TEST AL,R8B
JZ 0x0019ee1c
SHR RDX,0x1a
MOV EAX,0x6
LAB_0019edb5:
MOV ECX,EDX
IMUL EDX,EDX,-0x3d70a3d7
ROL EDX,0x1e
ADD EAX,0x2
CMP EDX,0x28f5c29
JC 0x0019edb5
LAB_0019edcb:
IMUL ESI,ECX,-0x33333333
ROR ESI,0x1
CMP ESI,0x1999999a
CMOVNC ESI,ECX
LAB_0019eddc:
ADC EAX,0x0
ADD EBX,EAX
LAB_0019ede1:
MOV RAX,RSI
MOV EDX,EBX
POP RBX
POP R12
POP R14
POP R15
POP RBP
RET
LAB_0019edef:
MOV ECX,EDI
SHL RDX,CL
MOV ECX,R8D
SHR RAX,CL
OR RAX,RDX
SETZ AL
AND R11D,0x1
AND R11B,AL
MOVZX EAX,R11B
SUB RSI,RAX
JMP 0x0019ede1
LAB_0019ee10:
CMP RDI,R8
ADC RDI,0x0
LAB_0019ee17:
MOV RSI,RDI
JMP 0x0019ede1
LAB_0019ee1c:
MOV RDI,-0x70a3d70a3d70a3d7
MOV EAX,0xfffffffe
MOV R8,0x28f5c28f5c28f5c
LAB_0019ee35:
MOV RDX,RCX
IMUL RCX,RDI
SHRD RCX,RDX,0x2
ADD EAX,0x2
CMP RCX,R8
JBE 0x0019ee35
IMUL RSI,RDX
SHRD RSI,RDX,0x1
MOV RCX,0x199999999999999a
CMP RSI,RCX
CMOVNC RSI,RDX
JMP 0x0019eddc
|
/* fmt::v10::detail::dragonbox::decimal_fp<double>
fmt::v10::detail::dragonbox::to_decimal<double>(double) */
int1 [16] fmt::v10::detail::dragonbox::to_decimal<double>(double param_1)
{
int1 auVar1 [16];
int1 auVar2 [16];
int1 auVar3 [16];
int1 auVar4 [16];
int1 auVar5 [16];
int1 auVar6 [16];
int1 auVar7 [16];
int1 auVar8 [16];
int1 auVar9 [16];
int1 auVar10 [16];
int1 auVar11 [16];
byte bVar13;
ulong uVar15;
ulong uVar16;
ulong extraout_RDX;
int iVar17;
char cVar18;
ulong uVar19;
int iVar20;
uint uVar21;
int iVar22;
ulong uVar23;
uint uVar24;
bool bVar25;
int1 auVar26 [16];
int1 auVar27 [16];
ulong uVar12;
ulong uVar14;
uVar23 = (ulong)param_1 & 0xfffffffffffff;
uVar24 = (uint)((ulong)param_1 >> 0x34) & 0x7ff;
if (uVar24 == 0) {
uVar24 = 0xfffffbce;
if (uVar23 == 0) {
iVar17 = 0;
uVar23 = 0;
goto LAB_0019ede1;
}
LAB_0019eaf5:
iVar17 = (int)(uVar24 * 0x4d105) >> 0x14;
auVar26 = cache_accessor<double>::get_cached_power(2 - iVar17);
uVar14 = auVar26._8_8_;
uVar12 = auVar26._0_8_;
iVar20 = ((2 - iVar17) * 0x1a934f >> 0x13) + uVar24;
bVar13 = (byte)iVar20;
uVar16 = uVar23 * 2;
uVar19 = uVar23 * 2 + 1 << (bVar13 & 0x3f);
auVar26._8_8_ = 0;
auVar26._0_8_ = uVar19;
auVar7._8_8_ = 0;
auVar7._0_8_ = uVar14;
auVar1._8_8_ = 0;
auVar1._0_8_ = uVar19;
auVar8._8_8_ = 0;
auVar8._0_8_ = uVar12;
auVar11._8_8_ = 0;
auVar11._0_8_ = SUB168(auVar1 * auVar8,8);
auVar11 = auVar26 * auVar7 + auVar11;
auVar2._8_8_ = 0;
auVar2._0_8_ = auVar11._8_8_;
uVar19 = SUB168(auVar2 * ZEXT816(0x20c49ba5e353f7cf),8) >> 7;
uVar24 = auVar11._8_4_ + (int)uVar19 * -1000;
uVar21 = (uint)(uVar14 >> (~bVar13 & 0x3f));
if (uVar24 < uVar21) {
if ((uVar24 != 0) || ((auVar11._0_8_ != 0 || ((uVar23 & 1) == 0)))) {
LAB_0019ebdf:
auVar4._8_8_ = 0;
auVar4._0_8_ = uVar19;
iVar17 = iVar17 + 1;
if (SUB168(auVar4 * ZEXT816(0xabcc77118461cefd),0) < 0xabcc77118461cefd &&
(auVar4 * ZEXT816(0xabcc77118461cefd) & (int1 [16])0x3ffffff) ==
(int1 [16])0x0) {
uVar19 = uVar19 / 100000000;
iVar20 = 6;
do {
uVar24 = (uint)uVar19;
uVar21 = uVar24 * 0x40000000 | uVar24 * -0x3d70a3d7 >> 2;
uVar19 = (ulong)uVar21;
iVar20 = iVar20 + 2;
} while (uVar21 < 0x28f5c29);
goto LAB_0019edcb;
}
iVar20 = -2;
do {
uVar16 = uVar19;
uVar19 = uVar16 * -0x70a3d70a3d70a3d7 >> 2 | uVar16 << 0x3e;
iVar20 = iVar20 + 2;
} while (uVar19 < 0x28f5c28f5c28f5d);
uVar23 = uVar16 * -0x3333333333333333 >> 1 | uVar16 << 0x3f;
bVar25 = uVar23 < 0x199999999999999a;
if (!bVar25) {
uVar23 = uVar16;
}
goto LAB_0019eddc;
}
uVar19 = uVar19 - 1;
uVar24 = 1000;
}
else if ((uVar24 <= uVar21) &&
(auVar3._8_8_ = 0, auVar3._0_8_ = uVar12, auVar9._8_8_ = 0, auVar9._0_8_ = uVar16 - 1,
uVar15 = SUB168(auVar3 * auVar9,8) + uVar14 * (uVar16 - 1),
((uint)(uVar15 << (bVar13 & 0x3f) == 0 &&
SUB168(auVar3 * auVar9,0) >> 0x40 - (bVar13 & 0x3f) == 0) & ~(uint)uVar23) != 0
|| (uVar15 >> ((ulong)(byte)(0x40 - bVar13) & 0x3f) & 1) != 0)) goto LAB_0019ebdf;
iVar22 = uVar24 - (uVar21 >> 1);
uVar24 = iVar22 * 0x290 + 0x8020;
uVar23 = (ulong)(uVar24 >> 0x10) + uVar19 * 10;
if ((uVar24 & 0xffff) < 0x290) {
auVar5._8_8_ = 0;
auVar5._0_8_ = uVar12;
auVar10._8_8_ = 0;
auVar10._0_8_ = uVar16;
uVar16 = SUB168(auVar5 * auVar10,8) + uVar14 * uVar16;
uVar21 = 0x40 - iVar20;
if (((uVar16 >> ((ulong)uVar21 & 0x3f) & 1) != 0) == (bool)((byte)iVar22 & 1)) {
uVar23 = uVar23 - ((byte)(uVar24 >> 0x10) & 1 &
(SUB168(auVar5 * auVar10,0) >> ((byte)uVar21 & 0x3f) == 0 &&
uVar16 << (bVar13 & 0x3f) == 0));
}
else {
uVar23 = uVar23 - 1;
}
}
}
else {
uVar24 = uVar24 - 0x433;
if (uVar23 != 0) {
uVar23 = uVar23 + 0x10000000000000;
goto LAB_0019eaf5;
}
iVar17 = (int)(uVar24 * 0x9a209 + -0x3fe1f) >> 0x15;
cVar18 = (char)(iVar17 * -0x1a934f >> 0x13) + (char)uVar24;
cache_accessor<double>::get_cached_power(-iVar17);
bVar13 = 0xb - cVar18;
uVar16 = (ulong)((uVar24 & 0xfffffffe) != 2) +
(extraout_RDX - (extraout_RDX >> 0x36) >> (bVar13 & 0x3f));
uVar23 = ((extraout_RDX >> 0x35) + extraout_RDX >> (bVar13 & 0x3f)) / 10;
if (uVar23 * 10 < uVar16) {
uVar23 = (extraout_RDX >> (10U - cVar18 & 0x3f)) + 1 >> 1;
if (uVar24 == 0xffffffb3) {
uVar23 = uVar23 & 0xfffffffffffffffe;
}
else {
uVar23 = uVar23 + (uVar23 < uVar16);
}
goto LAB_0019ede1;
}
auVar6._8_8_ = 0;
auVar6._0_8_ = uVar23;
iVar17 = iVar17 + 1;
if (SUB168(auVar6 * ZEXT816(0xabcc77118461cefd),0) < 0xabcc77118461cefd &&
(auVar6 * ZEXT816(0xabcc77118461cefd) & (int1 [16])0x3ffffff) ==
(int1 [16])0x0) {
uVar23 = uVar23 / 100000000;
iVar20 = 6;
do {
uVar24 = (uint)uVar23;
uVar21 = uVar24 * 0x40000000 | uVar24 * -0x3d70a3d7 >> 2;
uVar23 = (ulong)uVar21;
iVar20 = iVar20 + 2;
} while (uVar21 < 0x28f5c29);
LAB_0019edcb:
uVar21 = uVar24 * -0x33333333 >> 1 | (uint)((uVar24 * -0x33333333 & 1) != 0) << 0x1f;
bVar25 = uVar21 < 0x1999999a;
uVar23 = (ulong)uVar21;
if (!bVar25) {
uVar23 = (ulong)uVar24;
}
}
else {
iVar20 = -2;
do {
uVar16 = uVar23;
uVar23 = uVar16 * -0x70a3d70a3d70a3d7 >> 2 | uVar16 << 0x3e;
iVar20 = iVar20 + 2;
} while (uVar23 < 0x28f5c28f5c28f5d);
uVar23 = uVar16 * -0x3333333333333333 >> 1 | uVar16 << 0x3f;
bVar25 = uVar23 < 0x199999999999999a;
if (!bVar25) {
uVar23 = uVar16;
}
}
LAB_0019eddc:
iVar17 = iVar17 + iVar20 + (uint)bVar25;
}
LAB_0019ede1:
auVar27._8_4_ = iVar17;
auVar27._0_8_ = uVar23;
auVar27._12_4_ = 0;
return auVar27;
}
| |
42,285 | make_utf32_iter | memononen[P]budouxc/src/budoux.c | utf_iter_t make_utf32_iter(const uint32_t* buf, int32_t buf_len)
{
const int32_t is_empty = !buf || buf[0] == '\0' || buf_len == 0;
return (utf_iter_t) {
.buf = buf,
.buf_len = buf_len < 0 ? INT32_MAX : buf_len,
.pos = 0,
.done = 0,
.get = is_empty ? &get_empty : &get_utf32,
};
} | O3 | c | make_utf32_iter:
movq %rdi, %rax
leaq -0x147(%rip), %rcx # 0x2414
testq %rsi, %rsi
je 0x2579
cmpl $0x0, (%rsi)
je 0x2579
testl %edx, %edx
leaq -0x15a(%rip), %rdi # 0x2414
leaq 0x28(%rip), %rcx # 0x259d
cmoveq %rdi, %rcx
movq %rcx, (%rax)
movq %rsi, 0x8(%rax)
movl $0x7fffffff, %ecx # imm = 0x7FFFFFFF
cmpl %ecx, %edx
cmovbl %edx, %ecx
movl %ecx, 0x10(%rax)
movq $0x0, 0x14(%rax)
movl $0x0, 0x1c(%rax)
retq
| make_utf32_iter:
mov rax, rdi
lea rcx, get_empty
test rsi, rsi
jz short loc_2579
cmp dword ptr [rsi], 0
jz short loc_2579
test edx, edx
lea rdi, get_empty
lea rcx, get_utf32
cmovz rcx, rdi
loc_2579:
mov [rax], rcx
mov [rax+8], rsi
mov ecx, 7FFFFFFFh
cmp edx, ecx
cmovb ecx, edx
mov [rax+10h], ecx
mov qword ptr [rax+14h], 0
mov dword ptr [rax+1Ch], 0
retn
| long long make_utf32_iter(long long a1, _DWORD *a2, unsigned int a3)
{
long long result; // rax
long long ( *v4)(long long); // rcx
int v5; // ecx
result = a1;
v4 = get_empty;
if ( a2 )
{
if ( *a2 )
{
v4 = (long long ( *)(long long))get_utf32;
if ( !a3 )
v4 = get_empty;
}
}
*(_QWORD *)a1 = v4;
*(_QWORD *)(a1 + 8) = a2;
v5 = 0x7FFFFFFF;
if ( a3 < 0x7FFFFFFF )
v5 = a3;
*(_DWORD *)(a1 + 16) = v5;
*(_QWORD *)(a1 + 20) = 0LL;
*(_DWORD *)(a1 + 28) = 0;
return result;
}
| make_utf32_iter:
MOV RAX,RDI
LEA RCX,[0x102414]
TEST RSI,RSI
JZ 0x00102579
CMP dword ptr [RSI],0x0
JZ 0x00102579
TEST EDX,EDX
LEA RDI,[0x102414]
LEA RCX,[0x10259d]
CMOVZ RCX,RDI
LAB_00102579:
MOV qword ptr [RAX],RCX
MOV qword ptr [RAX + 0x8],RSI
MOV ECX,0x7fffffff
CMP EDX,ECX
CMOVC ECX,EDX
MOV dword ptr [RAX + 0x10],ECX
MOV qword ptr [RAX + 0x14],0x0
MOV dword ptr [RAX + 0x1c],0x0
RET
|
void make_utf32_iter(int8 *param_1,int *param_2,uint param_3)
{
uint uVar1;
code *pcVar2;
pcVar2 = get_empty;
if (((param_2 != (int *)0x0) && (*param_2 != 0)) && (pcVar2 = get_utf32, param_3 == 0)) {
pcVar2 = get_empty;
}
*param_1 = pcVar2;
param_1[1] = param_2;
uVar1 = 0x7fffffff;
if (param_3 < 0x7fffffff) {
uVar1 = param_3;
}
*(uint *)(param_1 + 2) = uVar1;
*(int8 *)((long)param_1 + 0x14) = 0;
*(int4 *)((long)param_1 + 0x1c) = 0;
return;
}
| |
42,286 | kv_cache_type_from_str(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&) | llama.cpp/common/arg.cpp | static ggml_type kv_cache_type_from_str(const std::string & s) {
for (const auto & type : kv_cache_types) {
if (ggml_type_name(type) == s) {
return type;
}
}
throw std::runtime_error("Unsupported cache type: " + s);
} | O3 | cpp | kv_cache_type_from_str(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&):
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x28, %rsp
movq %rdi, %r14
movq 0x105786(%rip), %rbx # 0x165ef8
movq 0x105787(%rip), %r15 # 0x165f00
cmpq %r15, %rbx
je 0x607a7
movl (%rbx), %edi
callq 0x22310
movq %r14, %rdi
movq %rax, %rsi
callq 0x21f60
testl %eax, %eax
je 0x6079a
addq $0x4, %rbx
jmp 0x60779
movl (%rbx), %eax
addq $0x28, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
movl $0x10, %edi
callq 0x21630
movq %rax, %rbx
leaq 0xbcb41(%rip), %rsi # 0x11d2fc
leaq 0x8(%rsp), %rdi
movq %r14, %rdx
callq 0x64af5
movb $0x1, %bpl
leaq 0x8(%rsp), %rsi
movq %rbx, %rdi
callq 0x21450
xorl %ebp, %ebp
movq 0x1047df(%rip), %rsi # 0x164fc0
movq 0x104790(%rip), %rdx # 0x164f78
movq %rbx, %rdi
callq 0x21a50
movq %rax, %r14
leaq 0x18(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x6080e
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x21170
testb %bpl, %bpl
jne 0x60818
jmp 0x60820
movq %rax, %r14
movq %rbx, %rdi
callq 0x21f00
movq %r14, %rdi
callq 0x21af0
| _ZL22kv_cache_type_from_strRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE:
push rbp
push r15
push r14
push rbx
sub rsp, 28h
mov r14, rdi
mov rbx, cs:_ZL14kv_cache_types; kv_cache_types
mov r15, cs:qword_165F00
loc_60779:
cmp rbx, r15
jz short loc_607A7
mov edi, [rbx]
call _ggml_type_name
mov rdi, r14
mov rsi, rax
call __ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE7compareEPKc; std::string::compare(char const*)
test eax, eax
jz short loc_6079A
add rbx, 4
jmp short loc_60779
loc_6079A:
mov eax, [rbx]
add rsp, 28h
pop rbx
pop r14
pop r15
pop rbp
retn
loc_607A7:
mov edi, 10h; thrown_size
call ___cxa_allocate_exception
mov rbx, rax
lea rsi, aUnsupportedCac; "Unsupported cache type: "
lea rdi, [rsp+48h+var_40]
mov rdx, r14
call _ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_RKS8_; std::operator+<char>(char const*,std::string const&)
mov bpl, 1
lea rsi, [rsp+48h+var_40]
mov rdi, rbx
call __ZNSt13runtime_errorC1ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE; std::runtime_error::runtime_error(std::string const&)
xor ebp, ebp
mov rsi, cs:_ZTISt13runtime_error_ptr; lptinfo
mov rdx, cs:_ZNSt13runtime_errorD1Ev_ptr; void (*)(void *)
mov rdi, rbx; void *
call ___cxa_throw
mov r14, rax
lea rax, [rsp+48h+var_30]
mov rdi, [rax-10h]; void *
cmp rdi, rax
jz short loc_6080E
mov rsi, [rsp+48h+var_30]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_6080E:
test bpl, bpl
jnz short loc_60818
jmp short loc_60820
mov r14, rax
loc_60818:
mov rdi, rbx; void *
call ___cxa_free_exception
loc_60820:
mov rdi, r14
call __Unwind_Resume
| long long kv_cache_type_from_str(long long a1)
{
unsigned int *v1; // rbx
long long v2; // r15
long long v3; // rax
void *exception; // rbx
_BYTE v6[16]; // [rsp+8h] [rbp-40h] BYREF
v1 = (unsigned int *)kv_cache_types;
v2 = qword_165F00;
while ( 1 )
{
if ( v1 == (unsigned int *)v2 )
{
exception = __cxa_allocate_exception(0x10uLL);
std::operator+<char>(v6, "Unsupported cache type: ", a1);
std::runtime_error::runtime_error(exception, v6);
__cxa_throw(
exception,
(struct type_info *)&`typeinfo for'std::runtime_error,
(void (*)(void *))&std::runtime_error::~runtime_error);
}
v3 = ggml_type_name(*v1);
if ( !(unsigned int)std::string::compare(a1, v3) )
break;
++v1;
}
return *v1;
}
| kv_cache_type_from_str:
PUSH RBP
PUSH R15
PUSH R14
PUSH RBX
SUB RSP,0x28
MOV R14,RDI
MOV RBX,qword ptr [0x00265ef8]
MOV R15,qword ptr [0x00265f00]
LAB_00160779:
CMP RBX,R15
JZ 0x001607a7
MOV EDI,dword ptr [RBX]
CALL 0x00122310
MOV RDI,R14
MOV RSI,RAX
CALL 0x00121f60
TEST EAX,EAX
JZ 0x0016079a
ADD RBX,0x4
JMP 0x00160779
LAB_0016079a:
MOV EAX,dword ptr [RBX]
ADD RSP,0x28
POP RBX
POP R14
POP R15
POP RBP
RET
LAB_001607a7:
MOV EDI,0x10
CALL 0x00121630
MOV RBX,RAX
LAB_001607b4:
LEA RSI,[0x21d2fc]
LEA RDI,[RSP + 0x8]
MOV RDX,R14
CALL 0x00164af5
MOV BPL,0x1
LAB_001607cb:
LEA RSI,[RSP + 0x8]
MOV RDI,RBX
CALL 0x00121450
XOR EBP,EBP
MOV RSI,qword ptr [0x00264fc0]
MOV RDX,qword ptr [0x00264f78]
MOV RDI,RBX
CALL 0x00121a50
|
/* kv_cache_type_from_str(std::__cxx11::string const&) */
int4 kv_cache_type_from_str(string *param_1)
{
int4 *puVar1;
int iVar2;
runtime_error *this;
int4 *puVar3;
string local_40 [32];
puVar1 = DAT_00265f00;
puVar3 = kv_cache_types;
while( true ) {
if (puVar3 == puVar1) {
this = (runtime_error *)__cxa_allocate_exception(0x10);
/* try { // try from 001607b4 to 001607c7 has its CatchHandler @ 00160815 */
std::operator+((char *)local_40,(string *)"Unsupported cache type: ");
/* try { // try from 001607cb to 001607ef has its CatchHandler @ 001607f0 */
std::runtime_error::runtime_error(this,local_40);
/* WARNING: Subroutine does not return */
__cxa_throw(this,PTR_typeinfo_00264fc0,PTR__runtime_error_00264f78);
}
ggml_type_name(*puVar3);
iVar2 = std::__cxx11::string::compare((char *)param_1);
if (iVar2 == 0) break;
puVar3 = puVar3 + 1;
}
return *puVar3;
}
| |
42,287 | my_wildcmp_uca_impl | eloqsql/strings/ctype-uca.c | static
int my_wildcmp_uca_impl(CHARSET_INFO *cs,
const char *str,const char *str_end,
const char *wildstr,const char *wildend,
int escape, int w_one, int w_many, int recurse_level)
{
int result= -1; /* Not found, using wildcards */
my_wc_t s_wc, w_wc;
int scan;
my_charset_conv_mb_wc mb_wc= cs->cset->mb_wc;
if (my_string_stack_guard && my_string_stack_guard(recurse_level))
return 1;
while (wildstr != wildend)
{
while (1)
{
my_bool escaped= 0;
if ((scan= mb_wc(cs, &w_wc, (const uchar*)wildstr,
(const uchar*)wildend)) <= 0)
return 1;
if (w_wc == (my_wc_t) w_many)
{
result= 1; /* Found an anchor char */
break;
}
wildstr+= scan;
if (w_wc == (my_wc_t) escape && wildstr < wildend)
{
if ((scan= mb_wc(cs, &w_wc, (const uchar*)wildstr,
(const uchar*)wildend)) <= 0)
return 1;
wildstr+= scan;
escaped= 1;
}
if ((scan= mb_wc(cs, &s_wc, (const uchar*)str,
(const uchar*)str_end)) <= 0)
return 1;
str+= scan;
if (!escaped && w_wc == (my_wc_t) w_one)
{
result= 1; /* Found an anchor char */
}
else
{
if (my_uca_charcmp(cs,s_wc,w_wc))
return 1; /* No match */
}
if (wildstr == wildend)
return (str != str_end); /* Match if both are at end */
}
if (w_wc == (my_wc_t) w_many)
{ /* Found w_many */
/* Remove any '%' and '_' from the wild search string */
for ( ; wildstr != wildend ; )
{
if ((scan= mb_wc(cs, &w_wc, (const uchar*)wildstr,
(const uchar*)wildend)) <= 0)
return 1;
if (w_wc == (my_wc_t) w_many)
{
wildstr+= scan;
continue;
}
if (w_wc == (my_wc_t) w_one)
{
wildstr+= scan;
if ((scan= mb_wc(cs, &s_wc, (const uchar*)str,
(const uchar*)str_end)) <= 0)
return 1;
str+= scan;
continue;
}
break; /* Not a wild character */
}
if (wildstr == wildend)
return 0; /* Ok if w_many is last */
if (str == str_end)
return -1;
if ((scan= mb_wc(cs, &w_wc, (const uchar*)wildstr,
(const uchar*)wildend)) <= 0)
return 1;
wildstr+= scan;
if (w_wc == (my_wc_t) escape)
{
if (wildstr < wildend)
{
if ((scan= mb_wc(cs, &w_wc, (const uchar*)wildstr,
(const uchar*)wildend)) <= 0)
return 1;
wildstr+= scan;
}
}
while (1)
{
/* Skip until the first character from wildstr is found */
while (str != str_end)
{
if ((scan= mb_wc(cs, &s_wc, (const uchar*)str,
(const uchar*)str_end)) <= 0)
return 1;
if (!my_uca_charcmp(cs,s_wc,w_wc))
break;
str+= scan;
}
if (str == str_end)
return -1;
str+= scan;
result= my_wildcmp_uca_impl(cs, str, str_end, wildstr, wildend,
escape, w_one, w_many,
recurse_level + 1);
if (result <= 0)
return result;
}
}
}
return (str != str_end ? 1 : 0);
} | O3 | c | my_wildcmp_uca_impl:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x58, %rsp
movl %r9d, -0x54(%rbp)
movq %r8, %r12
movq %rcx, %r13
movq %rdx, -0x40(%rbp)
movq %rsi, -0x30(%rbp)
movq %rdi, %r15
movl 0x20(%rbp), %eax
movq %rax, -0x60(%rbp)
movq 0xb8(%rdi), %rax
movq 0x28(%rax), %r14
leaq 0xb5475f(%rip), %rax # 0xc15398
movq (%rax), %rax
testq %rax, %rax
je 0xc0c53
movl 0x20(%rbp), %edi
callq *%rax
movl $0x1, %ebx
testl %eax, %eax
jne 0xc0ed0
cmpq %r12, %r13
je 0xc0d54
movl 0x18(%rbp), %eax
movl 0x10(%rbp), %ecx
cltq
movq %rax, -0x78(%rbp)
movslq -0x54(%rbp), %rax
movq %rax, -0x70(%rbp)
movslq %ecx, %rax
movq %rax, -0x68(%rbp)
movq %r14, -0x48(%rbp)
movq %r15, %rdi
leaq -0x38(%rbp), %rsi
movq %r13, %rdx
movq %r12, %rcx
callq *%r14
testl %eax, %eax
jle 0xc0ecb
movq -0x38(%rbp), %rcx
cmpq -0x78(%rbp), %rcx
je 0xc0d66
movl %eax, %eax
addq %rax, %r13
cmpq -0x70(%rbp), %rcx
jne 0xc0d02
cmpq %r12, %r13
jae 0xc0d02
movq %r15, %rdi
leaq -0x38(%rbp), %rsi
movq %r13, %rdx
movq %r12, %rcx
callq *%r14
testl %eax, %eax
jle 0xc0ecb
movl %eax, %ebx
movq %r15, %rdi
leaq -0x50(%rbp), %rsi
movq %r14, %rax
movq -0x30(%rbp), %r14
movq %r14, %rdx
movq -0x40(%rbp), %rcx
callq *%rax
testl %eax, %eax
jle 0xc0ecb
movl %ebx, %ecx
addq %rcx, %r13
movl %eax, %eax
addq %rax, %r14
movq %r14, -0x30(%rbp)
movq -0x38(%rbp), %rdx
movq -0x48(%rbp), %r14
jmp 0xc0d32
movq %r15, %rdi
leaq -0x50(%rbp), %rsi
movq -0x30(%rbp), %rbx
movq %rbx, %rdx
movq -0x40(%rbp), %rcx
callq *%r14
testl %eax, %eax
jle 0xc0ecb
movl %eax, %eax
addq %rax, %rbx
movq %rbx, -0x30(%rbp)
movq -0x38(%rbp), %rdx
cmpq -0x68(%rbp), %rdx
je 0xc0d4b
movq -0x50(%rbp), %rsi
movq %r15, %rdi
callq 0xc56f0
movl $0x1, %ebx
testl %eax, %eax
jne 0xc0ed0
cmpq %r12, %r13
jne 0xc0c7b
xorl %ebx, %ebx
movq -0x40(%rbp), %rax
cmpq %rax, -0x30(%rbp)
setne %bl
jmp 0xc0ed0
xorl %ebx, %ebx
cmpq %r12, %r13
je 0xc0ed0
movq %r15, %rdi
leaq -0x38(%rbp), %rsi
movq %r13, %rdx
movq %r12, %rcx
callq *%r14
testl %eax, %eax
jle 0xc0ecb
movl %eax, %r14d
movq -0x38(%rbp), %rax
cmpq -0x78(%rbp), %rax
jne 0xc0daa
movl %r14d, %eax
addq %rax, %r13
cmpq %r12, %r13
movq -0x48(%rbp), %r14
jne 0xc0d71
jmp 0xc0ed0
cmpq -0x68(%rbp), %rax
jne 0xc0dd8
movq %r15, %rdi
leaq -0x50(%rbp), %rsi
movq -0x30(%rbp), %rdx
movq -0x40(%rbp), %rcx
callq *-0x48(%rbp)
testl %eax, %eax
jle 0xc0ecb
movl %r14d, %ecx
addq %rcx, %r13
movl %eax, %eax
addq %rax, -0x30(%rbp)
jmp 0xc0d9c
movq -0x40(%rbp), %rax
cmpq %rax, -0x30(%rbp)
je 0xc0ee1
leaq -0x38(%rbp), %rsi
movq %r15, %rdi
movq %r13, %rdx
movq %r12, %rcx
movq -0x48(%rbp), %r14
callq *%r14
testl %eax, %eax
jle 0xc0ecb
movl %eax, %eax
addq %rax, %r13
movq -0x70(%rbp), %rax
cmpq %rax, -0x38(%rbp)
jne 0xc0e33
cmpq %r12, %r13
jae 0xc0e33
leaq -0x38(%rbp), %rsi
movq %r15, %rdi
movq %r13, %rdx
movq %r12, %rcx
callq *%r14
testl %eax, %eax
jle 0xc0ecb
movl %eax, %eax
addq %rax, %r13
movq -0x60(%rbp), %rax
incl %eax
movq %rax, -0x60(%rbp)
movq -0x30(%rbp), %rbx
movq -0x40(%rbp), %rcx
cmpq %rcx, %rbx
je 0xc0ee1
movq %r15, %rdi
leaq -0x50(%rbp), %rsi
movq %rbx, %rdx
callq *%r14
testl %eax, %eax
jle 0xc0ecb
movl %eax, %r14d
movq -0x50(%rbp), %rsi
movq -0x38(%rbp), %rdx
movq %r15, %rdi
callq 0xc56f0
movl %r14d, %ecx
addq %rcx, %rbx
testl %eax, %eax
je 0xc0e8b
movq -0x40(%rbp), %rcx
cmpq %rcx, %rbx
movq -0x48(%rbp), %r14
jne 0xc0e4e
jmp 0xc0ee1
subq $0x8, %rsp
movq %r15, %rdi
movq %rbx, -0x30(%rbp)
movq %rbx, %rsi
movq -0x40(%rbp), %rdx
movq %r13, %rcx
movq %r12, %r8
movl -0x54(%rbp), %r9d
pushq -0x60(%rbp)
movl 0x18(%rbp), %eax
pushq %rax
movl 0x10(%rbp), %eax
pushq %rax
callq 0xc0bfa
addq $0x20, %rsp
movl %eax, %ebx
testl %eax, %eax
movq -0x48(%rbp), %r14
jg 0xc0e3d
jmp 0xc0ed0
movl $0x1, %ebx
movl %ebx, %eax
addq $0x58, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movl $0xffffffff, %ebx # imm = 0xFFFFFFFF
jmp 0xc0ed0
| my_wildcmp_uca_impl:
push rbp
mov rbp, rsp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 58h
mov [rbp+var_54], r9d
mov r12, r8
mov r13, rcx
mov [rbp+var_40], rdx
mov [rbp+var_30], rsi
mov r15, rdi
mov eax, [rbp+arg_10]
mov [rbp+var_60], rax
mov rax, [rdi+0B8h]
mov r14, [rax+28h]
lea rax, my_string_stack_guard
mov rax, [rax]
test rax, rax
jz short loc_C0C53
mov edi, [rbp+arg_10]
call rax
mov ebx, 1
test eax, eax
jnz loc_C0ED0
loc_C0C53:
cmp r13, r12
jz loc_C0D54
mov eax, [rbp+arg_8]
mov ecx, [rbp+arg_0]
cdqe
mov [rbp+var_78], rax
movsxd rax, [rbp+var_54]
mov [rbp+var_70], rax
movsxd rax, ecx
mov [rbp+var_68], rax
mov [rbp+var_48], r14
loc_C0C7B:
mov rdi, r15
lea rsi, [rbp+var_38]
mov rdx, r13
mov rcx, r12
call r14
test eax, eax
jle loc_C0ECB
mov rcx, [rbp+var_38]
cmp rcx, [rbp+var_78]
jz loc_C0D66
mov eax, eax
add r13, rax
cmp rcx, [rbp+var_70]
jnz short loc_C0D02
cmp r13, r12
jnb short loc_C0D02
mov rdi, r15
lea rsi, [rbp+var_38]
mov rdx, r13
mov rcx, r12
call r14
test eax, eax
jle loc_C0ECB
mov ebx, eax
mov rdi, r15
lea rsi, [rbp+var_50]
mov rax, r14
mov r14, [rbp+var_30]
mov rdx, r14
mov rcx, [rbp+var_40]
call rax
test eax, eax
jle loc_C0ECB
mov ecx, ebx
add r13, rcx
mov eax, eax
add r14, rax
mov [rbp+var_30], r14
mov rdx, [rbp+var_38]
mov r14, [rbp+var_48]
jmp short loc_C0D32
loc_C0D02:
mov rdi, r15
lea rsi, [rbp+var_50]
mov rbx, [rbp+var_30]
mov rdx, rbx
mov rcx, [rbp+var_40]
call r14
test eax, eax
jle loc_C0ECB
mov eax, eax
add rbx, rax
mov [rbp+var_30], rbx
mov rdx, [rbp+var_38]
cmp rdx, [rbp+var_68]
jz short loc_C0D4B
loc_C0D32:
mov rsi, [rbp+var_50]
mov rdi, r15
call my_uca_charcmp
mov ebx, 1
test eax, eax
jnz loc_C0ED0
loc_C0D4B:
cmp r13, r12
jnz loc_C0C7B
loc_C0D54:
xor ebx, ebx
mov rax, [rbp+var_40]
cmp [rbp+var_30], rax
setnz bl
jmp loc_C0ED0
loc_C0D66:
xor ebx, ebx
cmp r13, r12
jz loc_C0ED0
loc_C0D71:
mov rdi, r15
lea rsi, [rbp+var_38]
mov rdx, r13
mov rcx, r12
call r14
test eax, eax
jle loc_C0ECB
mov r14d, eax
mov rax, [rbp+var_38]
cmp rax, [rbp+var_78]
jnz short loc_C0DAA
mov eax, r14d
add r13, rax
loc_C0D9C:
cmp r13, r12
mov r14, [rbp+var_48]
jnz short loc_C0D71
jmp loc_C0ED0
loc_C0DAA:
cmp rax, [rbp+var_68]
jnz short loc_C0DD8
mov rdi, r15
lea rsi, [rbp+var_50]
mov rdx, [rbp+var_30]
mov rcx, [rbp+var_40]
call [rbp+var_48]
test eax, eax
jle loc_C0ECB
mov ecx, r14d
add r13, rcx
mov eax, eax
add [rbp+var_30], rax
jmp short loc_C0D9C
loc_C0DD8:
mov rax, [rbp+var_40]
cmp [rbp+var_30], rax
jz loc_C0EE1
lea rsi, [rbp+var_38]
mov rdi, r15
mov rdx, r13
mov rcx, r12
mov r14, [rbp+var_48]
call r14
test eax, eax
jle loc_C0ECB
mov eax, eax
add r13, rax
mov rax, [rbp+var_70]
cmp [rbp+var_38], rax
jnz short loc_C0E33
cmp r13, r12
jnb short loc_C0E33
lea rsi, [rbp+var_38]
mov rdi, r15
mov rdx, r13
mov rcx, r12
call r14
test eax, eax
jle loc_C0ECB
mov eax, eax
add r13, rax
loc_C0E33:
mov rax, [rbp+var_60]
inc eax
mov [rbp+var_60], rax
loc_C0E3D:
mov rbx, [rbp+var_30]
mov rcx, [rbp+var_40]
cmp rbx, rcx
jz loc_C0EE1
loc_C0E4E:
mov rdi, r15
lea rsi, [rbp+var_50]
mov rdx, rbx
call r14
test eax, eax
jle short loc_C0ECB
mov r14d, eax
mov rsi, [rbp+var_50]
mov rdx, [rbp+var_38]
mov rdi, r15
call my_uca_charcmp
mov ecx, r14d
add rbx, rcx
test eax, eax
jz short loc_C0E8B
mov rcx, [rbp+var_40]
cmp rbx, rcx
mov r14, [rbp+var_48]
jnz short loc_C0E4E
jmp short loc_C0EE1
loc_C0E8B:
sub rsp, 8
mov rdi, r15
mov [rbp+var_30], rbx
mov rsi, rbx
mov rdx, [rbp+var_40]
mov rcx, r13
mov r8, r12
mov r9d, [rbp+var_54]
push [rbp+var_60]
mov eax, [rbp+arg_8]
push rax
mov eax, [rbp+arg_0]
push rax
call my_wildcmp_uca_impl
add rsp, 20h
mov ebx, eax
test eax, eax
mov r14, [rbp+var_48]
jg loc_C0E3D
jmp short loc_C0ED0
loc_C0ECB:
mov ebx, 1
loc_C0ED0:
mov eax, ebx
add rsp, 58h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
loc_C0EE1:
mov ebx, 0FFFFFFFFh
jmp short loc_C0ED0
| long long my_wildcmp_uca_impl(
long long a1,
long long a2,
long long a3,
unsigned long long a4,
unsigned long long a5,
int a6,
int a7,
int a8,
unsigned int a9)
{
long long ( *v11)(long long, long long *, unsigned long long, unsigned long long); // r14
unsigned int v12; // ebx
int v13; // eax
int v14; // eax
unsigned int v15; // ebx
long long ( *v16)(long long, long long *, long long, long long); // rax
long long v17; // r14
int v18; // eax
long long v19; // rdx
long long v20; // rbx
int v21; // eax
int v22; // eax
unsigned int v23; // r14d
int v24; // eax
long long ( *v25)(long long, long long *, unsigned long long, unsigned long long); // r14
int v26; // eax
unsigned long long v27; // r13
int v28; // eax
long long v29; // rbx
int v30; // eax
long long v33; // [rsp+30h] [rbp-50h] BYREF
long long ( *v34)(long long, long long *, unsigned long long, unsigned long long); // [rsp+38h] [rbp-48h]
long long v35; // [rsp+40h] [rbp-40h]
long long v36; // [rsp+48h] [rbp-38h] BYREF
long long v37; // [rsp+50h] [rbp-30h]
v35 = a3;
v37 = a2;
v11 = *(long long ( **)(long long, long long *, unsigned long long, unsigned long long))(*(_QWORD *)(a1 + 184) + 40LL);
if ( !my_string_stack_guard || (v12 = 1, !(unsigned int)my_string_stack_guard(a9)) )
{
if ( a4 != a5 )
{
v34 = v11;
while ( 1 )
{
v13 = v11(a1, &v36, a4, a5);
if ( v13 <= 0 )
return 1;
if ( v36 == a8 )
{
v12 = 0;
if ( a4 == a5 )
return v12;
while ( 1 )
{
v22 = v11(a1, &v36, a4, a5);
if ( v22 <= 0 )
return 1;
v23 = v22;
if ( v36 == a8 )
{
a4 += (unsigned int)v22;
}
else
{
if ( v36 != a7 )
{
if ( v37 == v35 )
return (unsigned int)-1;
v25 = v34;
v26 = v34(a1, &v36, a4, a5);
if ( v26 <= 0 )
return 1;
v27 = (unsigned int)v26 + a4;
if ( v36 == a6 && v27 < a5 )
{
v28 = v25(a1, &v36, v27, a5);
if ( v28 <= 0 )
return 1;
LODWORD(v27) = v28 + v27;
}
LABEL_32:
v29 = v37;
if ( v37 == v35 )
return (unsigned int)-1;
while ( 1 )
{
v30 = ((long long ( *)(long long, long long *, long long))v25)(a1, &v33, v29);
if ( v30 <= 0 )
return 1;
v29 += (unsigned int)v30;
if ( !(unsigned int)my_uca_charcmp(a1, v33, v36) )
{
v37 = v29;
v12 = my_wildcmp_uca_impl(a1, v29, v35, v27, a5, a6, a7, a8, a9 + 1);
v25 = v34;
if ( (int)v12 > 0 )
goto LABEL_32;
return v12;
}
v25 = v34;
if ( v29 == v35 )
return (unsigned int)-1;
}
}
v24 = v34(a1, &v33, v37, v35);
if ( v24 <= 0 )
return 1;
a4 += v23;
v37 += (unsigned int)v24;
}
v11 = v34;
if ( a4 == a5 )
return v12;
}
}
a4 += (unsigned int)v13;
if ( v36 == a6 && a4 < a5 )
break;
v20 = v37;
v21 = v11(a1, &v33, v37, v35);
if ( v21 <= 0 )
return 1;
v37 = (unsigned int)v21 + v20;
v19 = v36;
if ( v36 != a7 )
goto LABEL_14;
LABEL_15:
if ( a4 == a5 )
return v37 != v35;
}
v14 = v11(a1, &v36, a4, a5);
if ( v14 <= 0 )
return 1;
v15 = v14;
v16 = (long long ( *)(long long, long long *, long long, long long))v11;
v17 = v37;
v18 = v16(a1, &v33, v37, v35);
if ( v18 <= 0 )
return 1;
a4 += v15;
v37 = (unsigned int)v18 + v17;
v19 = v36;
v11 = v34;
LABEL_14:
v12 = 1;
if ( (unsigned int)my_uca_charcmp(a1, v33, v19) )
return v12;
goto LABEL_15;
}
return v37 != v35;
}
return v12;
}
| my_wildcmp_uca_impl:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x58
MOV dword ptr [RBP + -0x54],R9D
MOV R12,R8
MOV R13,RCX
MOV qword ptr [RBP + -0x40],RDX
MOV qword ptr [RBP + -0x30],RSI
MOV R15,RDI
MOV EAX,dword ptr [RBP + 0x20]
MOV qword ptr [RBP + -0x60],RAX
MOV RAX,qword ptr [RDI + 0xb8]
MOV R14,qword ptr [RAX + 0x28]
LEA RAX,[0xd15398]
MOV RAX,qword ptr [RAX]
TEST RAX,RAX
JZ 0x001c0c53
MOV EDI,dword ptr [RBP + 0x20]
CALL RAX
MOV EBX,0x1
TEST EAX,EAX
JNZ 0x001c0ed0
LAB_001c0c53:
CMP R13,R12
JZ 0x001c0d54
MOV EAX,dword ptr [RBP + 0x18]
MOV ECX,dword ptr [RBP + 0x10]
CDQE
MOV qword ptr [RBP + -0x78],RAX
MOVSXD RAX,dword ptr [RBP + -0x54]
MOV qword ptr [RBP + -0x70],RAX
MOVSXD RAX,ECX
MOV qword ptr [RBP + -0x68],RAX
MOV qword ptr [RBP + -0x48],R14
LAB_001c0c7b:
MOV RDI,R15
LEA RSI,[RBP + -0x38]
MOV RDX,R13
MOV RCX,R12
CALL R14
TEST EAX,EAX
JLE 0x001c0ecb
MOV RCX,qword ptr [RBP + -0x38]
CMP RCX,qword ptr [RBP + -0x78]
JZ 0x001c0d66
MOV EAX,EAX
ADD R13,RAX
CMP RCX,qword ptr [RBP + -0x70]
JNZ 0x001c0d02
CMP R13,R12
JNC 0x001c0d02
MOV RDI,R15
LEA RSI,[RBP + -0x38]
MOV RDX,R13
MOV RCX,R12
CALL R14
TEST EAX,EAX
JLE 0x001c0ecb
MOV EBX,EAX
MOV RDI,R15
LEA RSI,[RBP + -0x50]
MOV RAX,R14
MOV R14,qword ptr [RBP + -0x30]
MOV RDX,R14
MOV RCX,qword ptr [RBP + -0x40]
CALL RAX
TEST EAX,EAX
JLE 0x001c0ecb
MOV ECX,EBX
ADD R13,RCX
MOV EAX,EAX
ADD R14,RAX
MOV qword ptr [RBP + -0x30],R14
MOV RDX,qword ptr [RBP + -0x38]
MOV R14,qword ptr [RBP + -0x48]
JMP 0x001c0d32
LAB_001c0d02:
MOV RDI,R15
LEA RSI,[RBP + -0x50]
MOV RBX,qword ptr [RBP + -0x30]
MOV RDX,RBX
MOV RCX,qword ptr [RBP + -0x40]
CALL R14
TEST EAX,EAX
JLE 0x001c0ecb
MOV EAX,EAX
ADD RBX,RAX
MOV qword ptr [RBP + -0x30],RBX
MOV RDX,qword ptr [RBP + -0x38]
CMP RDX,qword ptr [RBP + -0x68]
JZ 0x001c0d4b
LAB_001c0d32:
MOV RSI,qword ptr [RBP + -0x50]
MOV RDI,R15
CALL 0x001c56f0
MOV EBX,0x1
TEST EAX,EAX
JNZ 0x001c0ed0
LAB_001c0d4b:
CMP R13,R12
JNZ 0x001c0c7b
LAB_001c0d54:
XOR EBX,EBX
MOV RAX,qword ptr [RBP + -0x40]
CMP qword ptr [RBP + -0x30],RAX
SETNZ BL
JMP 0x001c0ed0
LAB_001c0d66:
XOR EBX,EBX
CMP R13,R12
JZ 0x001c0ed0
LAB_001c0d71:
MOV RDI,R15
LEA RSI,[RBP + -0x38]
MOV RDX,R13
MOV RCX,R12
CALL R14
TEST EAX,EAX
JLE 0x001c0ecb
MOV R14D,EAX
MOV RAX,qword ptr [RBP + -0x38]
CMP RAX,qword ptr [RBP + -0x78]
JNZ 0x001c0daa
MOV EAX,R14D
ADD R13,RAX
LAB_001c0d9c:
CMP R13,R12
MOV R14,qword ptr [RBP + -0x48]
JNZ 0x001c0d71
JMP 0x001c0ed0
LAB_001c0daa:
CMP RAX,qword ptr [RBP + -0x68]
JNZ 0x001c0dd8
MOV RDI,R15
LEA RSI,[RBP + -0x50]
MOV RDX,qword ptr [RBP + -0x30]
MOV RCX,qword ptr [RBP + -0x40]
CALL qword ptr [RBP + -0x48]
TEST EAX,EAX
JLE 0x001c0ecb
MOV ECX,R14D
ADD R13,RCX
MOV EAX,EAX
ADD qword ptr [RBP + -0x30],RAX
JMP 0x001c0d9c
LAB_001c0dd8:
MOV RAX,qword ptr [RBP + -0x40]
CMP qword ptr [RBP + -0x30],RAX
JZ 0x001c0ee1
LEA RSI,[RBP + -0x38]
MOV RDI,R15
MOV RDX,R13
MOV RCX,R12
MOV R14,qword ptr [RBP + -0x48]
CALL R14
TEST EAX,EAX
JLE 0x001c0ecb
MOV EAX,EAX
ADD R13,RAX
MOV RAX,qword ptr [RBP + -0x70]
CMP qword ptr [RBP + -0x38],RAX
JNZ 0x001c0e33
CMP R13,R12
JNC 0x001c0e33
LEA RSI,[RBP + -0x38]
MOV RDI,R15
MOV RDX,R13
MOV RCX,R12
CALL R14
TEST EAX,EAX
JLE 0x001c0ecb
MOV EAX,EAX
ADD R13,RAX
LAB_001c0e33:
MOV RAX,qword ptr [RBP + -0x60]
INC EAX
MOV qword ptr [RBP + -0x60],RAX
LAB_001c0e3d:
MOV RBX,qword ptr [RBP + -0x30]
MOV RCX,qword ptr [RBP + -0x40]
CMP RBX,RCX
JZ 0x001c0ee1
LAB_001c0e4e:
MOV RDI,R15
LEA RSI,[RBP + -0x50]
MOV RDX,RBX
CALL R14
TEST EAX,EAX
JLE 0x001c0ecb
MOV R14D,EAX
MOV RSI,qword ptr [RBP + -0x50]
MOV RDX,qword ptr [RBP + -0x38]
MOV RDI,R15
CALL 0x001c56f0
MOV ECX,R14D
ADD RBX,RCX
TEST EAX,EAX
JZ 0x001c0e8b
MOV RCX,qword ptr [RBP + -0x40]
CMP RBX,RCX
MOV R14,qword ptr [RBP + -0x48]
JNZ 0x001c0e4e
JMP 0x001c0ee1
LAB_001c0e8b:
SUB RSP,0x8
MOV RDI,R15
MOV qword ptr [RBP + -0x30],RBX
MOV RSI,RBX
MOV RDX,qword ptr [RBP + -0x40]
MOV RCX,R13
MOV R8,R12
MOV R9D,dword ptr [RBP + -0x54]
PUSH qword ptr [RBP + -0x60]
MOV EAX,dword ptr [RBP + 0x18]
PUSH RAX
MOV EAX,dword ptr [RBP + 0x10]
PUSH RAX
CALL 0x001c0bfa
ADD RSP,0x20
MOV EBX,EAX
TEST EAX,EAX
MOV R14,qword ptr [RBP + -0x48]
JG 0x001c0e3d
JMP 0x001c0ed0
LAB_001c0ecb:
MOV EBX,0x1
LAB_001c0ed0:
MOV EAX,EBX
ADD RSP,0x58
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
LAB_001c0ee1:
MOV EBX,0xffffffff
JMP 0x001c0ed0
|
uint my_wildcmp_uca_impl(long param_1,long param_2,long param_3,ulong param_4,ulong param_5,
int param_6,int param_7,int param_8,int param_9)
{
int iVar1;
uint uVar2;
uint uVar3;
long lVar4;
code *pcVar5;
int8 local_58;
code *local_50;
long local_48;
long local_40;
long local_38;
pcVar5 = *(code **)(*(long *)(param_1 + 0xb8) + 0x28);
local_48 = param_3;
local_38 = param_2;
if ((my_string_stack_guard != (code *)0x0) &&
(iVar1 = (*my_string_stack_guard)(param_9), iVar1 != 0)) {
return 1;
}
if (param_4 != param_5) {
local_50 = pcVar5;
do {
uVar2 = (*pcVar5)(param_1,&local_40,param_4,param_5);
lVar4 = local_38;
if ((int)uVar2 < 1) {
return 1;
}
if (local_40 == param_8) {
do {
if (param_4 == param_5) {
return 0;
}
uVar2 = (*pcVar5)(param_1,&local_40,param_4,param_5);
pcVar5 = local_50;
if ((int)uVar2 < 1) {
return 1;
}
if (local_40 != param_8) {
if (local_40 != param_7) {
if (local_38 == local_48) {
return 0xffffffff;
}
uVar2 = (*local_50)(param_1,&local_40,param_4,param_5);
if (0 < (int)uVar2) {
param_4 = param_4 + uVar2;
if ((local_40 == param_6) && (param_4 < param_5)) {
uVar2 = (*pcVar5)(param_1,&local_40,param_4,param_5);
if ((int)uVar2 < 1) {
return 1;
}
param_4 = param_4 + uVar2;
}
do {
lVar4 = local_38;
if (local_38 == local_48) {
return 0xffffffff;
}
while( true ) {
uVar2 = (*pcVar5)(param_1,&local_58,lVar4);
if ((int)uVar2 < 1) {
return 1;
}
iVar1 = my_uca_charcmp(param_1,local_58,local_40);
lVar4 = lVar4 + (ulong)uVar2;
if (iVar1 == 0) break;
pcVar5 = local_50;
if (lVar4 == local_48) {
return 0xffffffff;
}
}
local_38 = lVar4;
uVar2 = my_wildcmp_uca_impl(param_1,lVar4,local_48,param_4,param_5,param_6,param_7
,param_8,param_9 + 1);
pcVar5 = local_50;
if ((int)uVar2 < 1) {
return uVar2;
}
} while( true );
}
return 1;
}
uVar3 = (*local_50)(param_1,&local_58,local_38,local_48);
if ((int)uVar3 < 1) {
return 1;
}
local_38 = local_38 + (ulong)uVar3;
}
param_4 = param_4 + uVar2;
pcVar5 = local_50;
} while( true );
}
param_4 = param_4 + uVar2;
if ((local_40 == param_6) && (param_4 < param_5)) {
uVar2 = (*pcVar5)(param_1,&local_40,param_4,param_5);
lVar4 = local_38;
if ((int)uVar2 < 1) {
return 1;
}
uVar3 = (*pcVar5)(param_1,&local_58,local_38,local_48);
if ((int)uVar3 < 1) {
return 1;
}
param_4 = param_4 + uVar2;
local_38 = lVar4 + (ulong)uVar3;
pcVar5 = local_50;
LAB_001c0d32:
iVar1 = my_uca_charcmp(param_1,local_58,local_40);
if (iVar1 != 0) {
return 1;
}
}
else {
uVar2 = (*pcVar5)(param_1,&local_58,local_38,local_48);
if ((int)uVar2 < 1) {
return 1;
}
local_38 = lVar4 + (ulong)uVar2;
if (local_40 != param_7) goto LAB_001c0d32;
}
} while (param_4 != param_5);
}
return (uint)(local_38 != local_48);
}
| |
42,288 | gguf_writer::write(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&) const | monkey531[P]llama/ggml/src/gguf.cpp | void write(const std::string & val) const {
{
const uint64_t n = val.length();
write(n);
}
for (size_t i = 0; i < val.length(); ++i) {
buf.push_back(reinterpret_cast<const int8_t *>(val.data())[i]);
}
} | O2 | cpp | gguf_writer::write(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&) const:
pushq %r15
pushq %r14
pushq %rbx
subq $0x10, %rsp
movq %rsi, %rbx
movq %rdi, %r14
movq 0x8(%rsi), %rax
leaq 0x8(%rsp), %rsi
movq %rax, (%rsi)
callq 0x1c810
xorl %r15d, %r15d
cmpq 0x8(%rbx), %r15
jae 0x42b80
movq (%r14), %rdi
movq (%rbx), %rsi
addq %r15, %rsi
callq 0x1c960
incq %r15
jmp 0x42b67
addq $0x10, %rsp
popq %rbx
popq %r14
popq %r15
retq
| _ZNK11gguf_writer5writeERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE:
push r15
push r14
push rbx
sub rsp, 10h
mov rbx, rsi
mov r14, rdi
mov rax, [rsi+8]
lea rsi, [rsp+28h+var_20]
mov [rsi], rax
call __ZNK11gguf_writer5writeImEEvRKT_; gguf_writer::write<ulong>(ulong const&)
xor r15d, r15d
loc_42B67:
cmp r15, [rbx+8]
jnb short loc_42B80
mov rdi, [r14]
mov rsi, [rbx]
add rsi, r15
call __ZNSt6vectorIaSaIaEE9push_backERKa; std::vector<signed char>::push_back(signed char const&)
inc r15
jmp short loc_42B67
loc_42B80:
add rsp, 10h
pop rbx
pop r14
pop r15
retn
| long long gguf_writer::write(_QWORD *a1, _QWORD *a2)
{
long long result; // rax
long long v3; // rdx
unsigned long long i; // r15
_QWORD v5[4]; // [rsp+8h] [rbp-20h] BYREF
v5[0] = a2[1];
result = gguf_writer::write<unsigned long>(a1, v5);
for ( i = 0LL; i < a2[1]; ++i )
result = std::vector<signed char>::push_back(*a1, i + *a2, v3);
return result;
}
| write:
PUSH R15
PUSH R14
PUSH RBX
SUB RSP,0x10
MOV RBX,RSI
MOV R14,RDI
MOV RAX,qword ptr [RSI + 0x8]
LEA RSI,[RSP + 0x8]
MOV qword ptr [RSI],RAX
CALL 0x0011c810
XOR R15D,R15D
LAB_00142b67:
CMP R15,qword ptr [RBX + 0x8]
JNC 0x00142b80
MOV RDI,qword ptr [R14]
MOV RSI,qword ptr [RBX]
ADD RSI,R15
CALL 0x0011c960
INC R15
JMP 0x00142b67
LAB_00142b80:
ADD RSP,0x10
POP RBX
POP R14
POP R15
RET
|
/* gguf_writer::write(std::__cxx11::string const&) const */
void __thiscall gguf_writer::write(gguf_writer *this,string *param_1)
{
ulong uVar1;
ulong local_20;
local_20 = *(ulong *)(param_1 + 8);
write<unsigned_long>(this,&local_20);
for (uVar1 = 0; uVar1 < *(ulong *)(param_1 + 8); uVar1 = uVar1 + 1) {
std::vector<signed_char,std::allocator<signed_char>>::push_back
(*(vector<signed_char,std::allocator<signed_char>> **)this,
(signed *)(*(long *)param_1 + uVar1));
}
return;
}
| |
42,289 | testing::internal::FilePath::CalculateRootLength() const | AlayaLite/build_O0/_deps/googletest-src/googletest/src/gtest-filepath.cc | size_t FilePath::CalculateRootLength() const {
const auto& path = pathname_;
auto s = path.begin();
auto end = path.end();
#ifdef GTEST_OS_WINDOWS
if (end - s >= 2 && s[1] == ':' && (end - s == 2 || IsPathSeparator(s[2])) &&
(('A' <= s[0] && s[0] <= 'Z') || ('a' <= s[0] && s[0] <= 'z'))) {
// A typical absolute path like "C:\Windows" or "D:"
s += 2;
if (s != end) {
++s;
}
} else if (end - s >= 3 && IsPathSeparator(*s) && IsPathSeparator(*(s + 1)) &&
!IsPathSeparator(*(s + 2))) {
// Move past the "\\" prefix in a UNC path like "\\Server\Share\Folder"
s += 2;
// Skip 2 components and their following separators ("Server\" and "Share\")
for (int i = 0; i < 2; ++i) {
while (s != end) {
bool stop = IsPathSeparator(*s);
++s;
if (stop) {
break;
}
}
}
} else if (s != end && IsPathSeparator(*s)) {
// A drive-rooted path like "\Windows"
++s;
}
#else
if (s != end && IsPathSeparator(*s)) {
++s;
}
#endif
return static_cast<size_t>(s - path.begin());
} | O0 | cpp | testing::internal::FilePath::CalculateRootLength() const:
subq $0x28, %rsp
movq %rdi, 0x20(%rsp)
movq 0x20(%rsp), %rax
movq %rax, 0x18(%rsp)
movq 0x18(%rsp), %rdi
callq 0x7e390
movq %rax, 0x10(%rsp)
movq 0x18(%rsp), %rdi
callq 0x7e2f0
movq %rax, 0x8(%rsp)
leaq 0x10(%rsp), %rdi
leaq 0x8(%rsp), %rsi
callq 0x7e240
xorb $-0x1, %al
testb $0x1, %al
jne 0xf7818
jmp 0xf783a
leaq 0x10(%rsp), %rdi
callq 0x7e280
movsbl (%rax), %edi
callq 0xf7860
testb $0x1, %al
jne 0xf7830
jmp 0xf783a
leaq 0x10(%rsp), %rdi
callq 0x7e290
movq 0x18(%rsp), %rdi
callq 0x7e390
movq %rax, (%rsp)
leaq 0x10(%rsp), %rdi
movq %rsp, %rsi
callq 0x124370
addq $0x28, %rsp
retq
nopw (%rax,%rax)
| _ZNK7testing8internal8FilePath19CalculateRootLengthEv:
sub rsp, 28h
mov [rsp+28h+var_8], rdi
mov rax, [rsp+28h+var_8]
mov [rsp+28h+var_10], rax
mov rdi, [rsp+28h+var_10]
call _ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5beginEv; std::string::begin(void)
mov [rsp+28h+var_18], rax
mov rdi, [rsp+28h+var_10]
call _ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE3endEv; std::string::end(void)
mov qword ptr [rsp+28h+var_20], rax
lea rdi, [rsp+28h+var_18]
lea rsi, [rsp+28h+var_20]; char
call _ZN9__gnu_cxxeqIPKcNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEEbRKNS_17__normal_iteratorIT_T0_EESE_QrqXeqcldtfp_4baseEcldtfp0_4baseERSt14convertible_toIbEE
xor al, 0FFh
test al, 1
jnz short loc_F7818
jmp short loc_F783A
loc_F7818:
lea rdi, [rsp+28h+var_18]
call _ZNK9__gnu_cxx17__normal_iteratorIPKcNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEdeEv; __gnu_cxx::__normal_iterator<char const*,std::string>::operator*(void)
movsx edi, byte ptr [rax]; this
call _ZN7testing8internalL15IsPathSeparatorEc; testing::internal::IsPathSeparator(char)
test al, 1
jnz short loc_F7830
jmp short loc_F783A
loc_F7830:
lea rdi, [rsp+28h+var_18]
call _ZN9__gnu_cxx17__normal_iteratorIPKcNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEppEv; __gnu_cxx::__normal_iterator<char const*,std::string>::operator++(void)
loc_F783A:
mov rdi, [rsp+28h+var_10]
call _ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5beginEv; std::string::begin(void)
mov [rsp+28h+var_28], rax
lea rdi, [rsp+28h+var_18]
mov rsi, rsp
call _ZN9__gnu_cxxmiIPKcNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEENS_17__normal_iteratorIT_T0_E15difference_typeERKSC_SF_; __gnu_cxx::operator-<char const*,std::string>(__gnu_cxx::__normal_iterator<char const*,std::string> const&,__gnu_cxx::__normal_iterator<char const*,std::string> const&)
add rsp, 28h
retn
| long long testing::internal::FilePath::CalculateRootLength(testing::internal::FilePath *this)
{
char *v1; // rax
long long v3; // [rsp+0h] [rbp-28h] BYREF
char v4[8]; // [rsp+8h] [rbp-20h] BYREF
long long v5; // [rsp+10h] [rbp-18h] BYREF
testing::internal::FilePath *v6; // [rsp+18h] [rbp-10h]
testing::internal::FilePath *v7; // [rsp+20h] [rbp-8h]
v7 = this;
v6 = this;
v5 = std::string::begin((long long)this);
*(_QWORD *)v4 = std::string::end((long long)this);
if ( !__gnu_cxx::operator==<char const*,std::string>((long long)&v5, (long long)v4) )
{
v1 = (char *)__gnu_cxx::__normal_iterator<char const*,std::string>::operator*((long long)&v5);
if ( (testing::internal::IsPathSeparator((testing::internal *)(unsigned int)*v1, (char)v4) & 1) != 0 )
__gnu_cxx::__normal_iterator<char const*,std::string>::operator++(&v5);
}
v3 = std::string::begin((long long)v6);
return __gnu_cxx::operator-<char const*,std::string>(&v5, &v3);
}
| CalculateRootLength:
SUB RSP,0x28
MOV qword ptr [RSP + 0x20],RDI
MOV RAX,qword ptr [RSP + 0x20]
MOV qword ptr [RSP + 0x18],RAX
MOV RDI,qword ptr [RSP + 0x18]
CALL 0x0017e390
MOV qword ptr [RSP + 0x10],RAX
MOV RDI,qword ptr [RSP + 0x18]
CALL 0x0017e2f0
MOV qword ptr [RSP + 0x8],RAX
LEA RDI,[RSP + 0x10]
LEA RSI,[RSP + 0x8]
CALL 0x0017e240
XOR AL,0xff
TEST AL,0x1
JNZ 0x001f7818
JMP 0x001f783a
LAB_001f7818:
LEA RDI,[RSP + 0x10]
CALL 0x0017e280
MOVSX EDI,byte ptr [RAX]
CALL 0x001f7860
TEST AL,0x1
JNZ 0x001f7830
JMP 0x001f783a
LAB_001f7830:
LEA RDI,[RSP + 0x10]
CALL 0x0017e290
LAB_001f783a:
MOV RDI,qword ptr [RSP + 0x18]
CALL 0x0017e390
MOV qword ptr [RSP],RAX
LEA RDI,[RSP + 0x10]
MOV RSI,RSP
CALL 0x00224370
ADD RSP,0x28
RET
|
/* testing::internal::FilePath::CalculateRootLength() const */
void __thiscall testing::internal::FilePath::CalculateRootLength(FilePath *this)
{
byte bVar1;
char *pcVar2;
ulong uVar3;
int8 local_28;
int8 local_20;
int8 local_18;
string *local_10;
FilePath *local_8;
local_10 = (string *)this;
local_8 = this;
local_18 = std::__cxx11::string::begin((string *)this);
local_20 = std::__cxx11::string::end(local_10);
bVar1 = _ZN9__gnu_cxxeqIPKcNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEEbRKNS_17__normal_iteratorIT_T0_EESE_QrqXeqcldtfp_4baseEcldtfp0_4baseERSt14convertible_toIbEE
(&local_18,&local_20);
if (((bVar1 ^ 0xff) & 1) != 0) {
pcVar2 = (char *)__gnu_cxx::__normal_iterator<char_const*,std::__cxx11::string>::operator*
((__normal_iterator<char_const*,std::__cxx11::string> *)&local_18);
uVar3 = IsPathSeparator(*pcVar2);
if ((uVar3 & 1) != 0) {
__gnu_cxx::__normal_iterator<char_const*,std::__cxx11::string>::operator++
((__normal_iterator<char_const*,std::__cxx11::string> *)&local_18);
}
}
local_28 = std::__cxx11::string::begin(local_10);
__gnu_cxx::operator-((__normal_iterator *)&local_18,(__normal_iterator *)&local_28);
return;
}
| |
42,290 | initialize_bucket(st_lf_hash*, LF_SLIST**, unsigned int, LF_PINS*) | eloqsql/mysys/lf_hash.cc | static int initialize_bucket(LF_HASH *hash, LF_SLIST **node,
uint bucket, LF_PINS *pins)
{
uint parent= my_clear_highest_bit(bucket);
LF_SLIST *dummy= (LF_SLIST *)my_malloc(key_memory_lf_slist,
sizeof(LF_SLIST), MYF(MY_WME));
LF_SLIST **tmp= 0, *cur;
LF_SLIST **el= (LF_SLIST **)lf_dynarray_lvalue(&hash->array, parent);
if (unlikely(!el || !dummy))
return -1;
if (*el == NULL && bucket &&
unlikely(initialize_bucket(hash, el, parent, pins)))
{
my_free(dummy);
return -1;
}
dummy->hashnr= my_reverse_bits(bucket) | 0; /* dummy node */
dummy->key= dummy_key;
dummy->keylen= 0;
if ((cur= l_insert(el, hash->charset, dummy, pins, LF_HASH_UNIQUE)))
{
my_free(dummy);
dummy= cur;
}
my_atomic_casptr((void **)node, (void **)(char*) &tmp, dummy);
/*
note that if the CAS above failed (after l_insert() succeeded),
it would mean that some other thread has executed l_insert() for
the same dummy node, its l_insert() failed, it picked up our
dummy node (in "dummy= cur") and executed the same CAS as above.
Which means that even if CAS above failed we don't need to retry,
and we should not free(dummy) - there's no memory leak here
*/
return 0;
} | O0 | cpp | initialize_bucket(st_lf_hash*, LF_SLIST**, unsigned int, LF_PINS*):
pushq %rbp
movq %rsp, %rbp
subq $0x70, %rsp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movl %edx, -0x1c(%rbp)
movq %rcx, -0x28(%rbp)
movl -0x1c(%rbp), %edi
callq 0x5cfc0
movl %eax, -0x2c(%rbp)
leaq 0x3b20eb(%rip), %rax # 0x40ec44
movl (%rax), %edi
movl $0x20, %esi
movl $0x10, %edx
callq 0x58d60
movq %rax, -0x38(%rbp)
movq $0x0, -0x40(%rbp)
movq -0x10(%rbp), %rdi
movl -0x2c(%rbp), %esi
callq 0x5c0f0
movq %rax, -0x50(%rbp)
movb $0x1, %al
cmpq $0x0, -0x50(%rbp)
movb %al, -0x5a(%rbp)
je 0x5cb9f
cmpq $0x0, -0x38(%rbp)
setne %al
xorb $-0x1, %al
movb %al, -0x5a(%rbp)
movb -0x5a(%rbp), %al
andb $0x1, %al
movzbl %al, %eax
cmpl $0x0, %eax
je 0x5cbb8
movl $0xffffffff, -0x4(%rbp) # imm = 0xFFFFFFFF
jmp 0x5cca3
movq -0x50(%rbp), %rax
cmpq $0x0, (%rax)
jne 0x5cbf6
cmpl $0x0, -0x1c(%rbp)
je 0x5cbf6
movq -0x10(%rbp), %rdi
movq -0x50(%rbp), %rsi
movl -0x2c(%rbp), %edx
movq -0x28(%rbp), %rcx
callq 0x5cb30
cmpl $0x0, %eax
je 0x5cbf6
movq -0x38(%rbp), %rdi
callq 0x590e0
movl $0xffffffff, -0x4(%rbp) # imm = 0xFFFFFFFF
jmp 0x5cca3
movl -0x1c(%rbp), %edi
callq 0x5ccb0
movl %eax, %ecx
orl $0x0, %ecx
movq -0x38(%rbp), %rax
movl %ecx, 0x18(%rax)
movq 0x1b72cf(%rip), %rcx # 0x213ee0
movq -0x38(%rbp), %rax
movq %rcx, 0x8(%rax)
movq -0x38(%rbp), %rax
movq $0x0, 0x10(%rax)
movq -0x50(%rbp), %rdi
movq -0x10(%rbp), %rax
movq 0xa8(%rax), %rsi
movq -0x38(%rbp), %rdx
movq -0x28(%rbp), %rcx
movl $0x1, %r8d
callq 0x5cd30
movq %rax, -0x48(%rbp)
cmpq $0x0, %rax
je 0x5cc62
movq -0x38(%rbp), %rdi
callq 0x590e0
movq -0x48(%rbp), %rax
movq %rax, -0x38(%rbp)
movq -0x18(%rbp), %rcx
movq -0x38(%rbp), %rax
movq %rax, -0x58(%rbp)
movq -0x40(%rbp), %rax
movq -0x58(%rbp), %rdx
lock
cmpxchgq %rdx, (%rcx)
movq %rax, %rcx
sete %al
movb %al, -0x69(%rbp)
movq %rcx, -0x68(%rbp)
testb $0x1, %al
jne 0x5cc94
movq -0x68(%rbp), %rax
movq %rax, -0x40(%rbp)
movb -0x69(%rbp), %al
andb $0x1, %al
movb %al, -0x59(%rbp)
movl $0x0, -0x4(%rbp)
movl -0x4(%rbp), %eax
addq $0x70, %rsp
popq %rbp
retq
nopl (%rax)
| _ZL17initialize_bucketP10st_lf_hashPP8LF_SLISTjP7LF_PINS:
push rbp
mov rbp, rsp
sub rsp, 70h
mov [rbp+var_10], rdi
mov [rbp+var_18], rsi
mov [rbp+var_1C], edx
mov [rbp+var_28], rcx
mov edi, [rbp+var_1C]; unsigned int
call _ZL20my_clear_highest_bitj; my_clear_highest_bit(uint)
mov [rbp+var_2C], eax
lea rax, key_memory_lf_slist
mov edi, [rax]
mov esi, 20h ; ' '
mov edx, 10h
call my_malloc
mov [rbp+var_38], rax
mov [rbp+var_40], 0
mov rdi, [rbp+var_10]
mov esi, [rbp+var_2C]
call lf_dynarray_lvalue
mov [rbp+var_50], rax
mov al, 1
cmp [rbp+var_50], 0
mov [rbp+var_5A], al
jz short loc_5CB9F
cmp [rbp+var_38], 0
setnz al
xor al, 0FFh
mov [rbp+var_5A], al
loc_5CB9F:
mov al, [rbp+var_5A]
and al, 1
movzx eax, al
cmp eax, 0
jz short loc_5CBB8
mov [rbp+var_4], 0FFFFFFFFh
jmp loc_5CCA3
loc_5CBB8:
mov rax, [rbp+var_50]
cmp qword ptr [rax], 0
jnz short loc_5CBF6
cmp [rbp+var_1C], 0
jz short loc_5CBF6
mov rdi, [rbp+var_10]
mov rsi, [rbp+var_50]
mov edx, [rbp+var_2C]
mov rcx, [rbp+var_28]
call _ZL17initialize_bucketP10st_lf_hashPP8LF_SLISTjP7LF_PINS; initialize_bucket(st_lf_hash *,LF_SLIST **,uint,LF_PINS *)
cmp eax, 0
jz short loc_5CBF6
mov rdi, [rbp+var_38]
call my_free
mov [rbp+var_4], 0FFFFFFFFh
jmp loc_5CCA3
loc_5CBF6:
mov edi, [rbp+var_1C]; unsigned int
call _ZL15my_reverse_bitsj; my_reverse_bits(uint)
mov ecx, eax
or ecx, 0
mov rax, [rbp+var_38]
mov [rax+18h], ecx
mov rcx, cs:_ZL9dummy_key; dummy_key
mov rax, [rbp+var_38]
mov [rax+8], rcx
mov rax, [rbp+var_38]
mov qword ptr [rax+10h], 0
mov rdi, [rbp+var_50]
mov rax, [rbp+var_10]
mov rsi, [rax+0A8h]
mov rdx, [rbp+var_38]
mov rcx, [rbp+var_28]
mov r8d, 1
call _ZL8l_insertPP8LF_SLISTPK15charset_info_stS0_P7LF_PINSj; l_insert(LF_SLIST **,charset_info_st const*,LF_SLIST *,LF_PINS *,uint)
mov [rbp+var_48], rax
cmp rax, 0
jz short loc_5CC62
mov rdi, [rbp+var_38]
call my_free
mov rax, [rbp+var_48]
mov [rbp+var_38], rax
loc_5CC62:
mov rcx, [rbp+var_18]
mov rax, [rbp+var_38]
mov [rbp+var_58], rax
mov rax, [rbp+var_40]
mov rdx, [rbp+var_58]
lock cmpxchg [rcx], rdx
mov rcx, rax
setz al
mov [rbp+var_69], al
mov [rbp+var_68], rcx
test al, 1
jnz short loc_5CC94
mov rax, [rbp+var_68]
mov [rbp+var_40], rax
loc_5CC94:
mov al, [rbp+var_69]
and al, 1
mov [rbp+var_59], al
mov [rbp+var_4], 0
loc_5CCA3:
mov eax, [rbp+var_4]
add rsp, 70h
pop rbp
retn
| long long initialize_bucket(long long a1, volatile signed long long *a2, unsigned int a3, long long a4)
{
char v5; // [rsp+16h] [rbp-5Ah]
_QWORD *v6; // [rsp+20h] [rbp-50h]
long long v7; // [rsp+28h] [rbp-48h]
long long v8; // [rsp+38h] [rbp-38h]
unsigned int v9; // [rsp+44h] [rbp-2Ch]
v9 = my_clear_highest_bit(a3);
v8 = my_malloc(key_memory_lf_slist, 0x20uLL, 16);
v6 = (_QWORD *)lf_dynarray_lvalue(a1, v9);
v5 = 1;
if ( v6 )
v5 = ~(v8 != 0);
if ( (v5 & 1) != 0 )
{
return (unsigned int)-1;
}
else if ( !*v6 && a3 && (unsigned int)initialize_bucket(a1, v6, v9, a4) )
{
my_free(v8);
return (unsigned int)-1;
}
else
{
*(_DWORD *)(v8 + 24) = my_reverse_bits(a3);
*(_QWORD *)(v8 + 8) = dummy_key;
*(_QWORD *)(v8 + 16) = 0LL;
v7 = l_insert(v6, *(_QWORD *)(a1 + 168), v8, a4, 1LL);
if ( v7 )
{
my_free(v8);
v8 = v7;
}
_InterlockedCompareExchange64(a2, v8, 0LL);
return 0;
}
}
| initialize_bucket:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x70
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 EDI,dword ptr [RBP + -0x1c]
CALL 0x0015cfc0
MOV dword ptr [RBP + -0x2c],EAX
LEA RAX,[0x50ec44]
MOV EDI,dword ptr [RAX]
MOV ESI,0x20
MOV EDX,0x10
CALL 0x00158d60
MOV qword ptr [RBP + -0x38],RAX
MOV qword ptr [RBP + -0x40],0x0
MOV RDI,qword ptr [RBP + -0x10]
MOV ESI,dword ptr [RBP + -0x2c]
CALL 0x0015c0f0
MOV qword ptr [RBP + -0x50],RAX
MOV AL,0x1
CMP qword ptr [RBP + -0x50],0x0
MOV byte ptr [RBP + -0x5a],AL
JZ 0x0015cb9f
CMP qword ptr [RBP + -0x38],0x0
SETNZ AL
XOR AL,0xff
MOV byte ptr [RBP + -0x5a],AL
LAB_0015cb9f:
MOV AL,byte ptr [RBP + -0x5a]
AND AL,0x1
MOVZX EAX,AL
CMP EAX,0x0
JZ 0x0015cbb8
MOV dword ptr [RBP + -0x4],0xffffffff
JMP 0x0015cca3
LAB_0015cbb8:
MOV RAX,qword ptr [RBP + -0x50]
CMP qword ptr [RAX],0x0
JNZ 0x0015cbf6
CMP dword ptr [RBP + -0x1c],0x0
JZ 0x0015cbf6
MOV RDI,qword ptr [RBP + -0x10]
MOV RSI,qword ptr [RBP + -0x50]
MOV EDX,dword ptr [RBP + -0x2c]
MOV RCX,qword ptr [RBP + -0x28]
CALL 0x0015cb30
CMP EAX,0x0
JZ 0x0015cbf6
MOV RDI,qword ptr [RBP + -0x38]
CALL 0x001590e0
MOV dword ptr [RBP + -0x4],0xffffffff
JMP 0x0015cca3
LAB_0015cbf6:
MOV EDI,dword ptr [RBP + -0x1c]
CALL 0x0015ccb0
MOV ECX,EAX
OR ECX,0x0
MOV RAX,qword ptr [RBP + -0x38]
MOV dword ptr [RAX + 0x18],ECX
MOV RCX,qword ptr [0x00313ee0]
MOV RAX,qword ptr [RBP + -0x38]
MOV qword ptr [RAX + 0x8],RCX
MOV RAX,qword ptr [RBP + -0x38]
MOV qword ptr [RAX + 0x10],0x0
MOV RDI,qword ptr [RBP + -0x50]
MOV RAX,qword ptr [RBP + -0x10]
MOV RSI,qword ptr [RAX + 0xa8]
MOV RDX,qword ptr [RBP + -0x38]
MOV RCX,qword ptr [RBP + -0x28]
MOV R8D,0x1
CALL 0x0015cd30
MOV qword ptr [RBP + -0x48],RAX
CMP RAX,0x0
JZ 0x0015cc62
MOV RDI,qword ptr [RBP + -0x38]
CALL 0x001590e0
MOV RAX,qword ptr [RBP + -0x48]
MOV qword ptr [RBP + -0x38],RAX
LAB_0015cc62:
MOV RCX,qword ptr [RBP + -0x18]
MOV RAX,qword ptr [RBP + -0x38]
MOV qword ptr [RBP + -0x58],RAX
MOV RAX,qword ptr [RBP + -0x40]
MOV RDX,qword ptr [RBP + -0x58]
CMPXCHG.LOCK qword ptr [RCX],RDX
MOV RCX,RAX
SETZ AL
MOV byte ptr [RBP + -0x69],AL
MOV qword ptr [RBP + -0x68],RCX
TEST AL,0x1
JNZ 0x0015cc94
MOV RAX,qword ptr [RBP + -0x68]
MOV qword ptr [RBP + -0x40],RAX
LAB_0015cc94:
MOV AL,byte ptr [RBP + -0x69]
AND AL,0x1
MOV byte ptr [RBP + -0x59],AL
MOV dword ptr [RBP + -0x4],0x0
LAB_0015cca3:
MOV EAX,dword ptr [RBP + -0x4]
ADD RSP,0x70
POP RBP
RET
|
/* initialize_bucket(st_lf_hash*, LF_SLIST**, unsigned int, LF_PINS*) */
int4 initialize_bucket(st_lf_hash *param_1,LF_SLIST **param_2,uint param_3,LF_PINS *param_4)
{
uint uVar1;
int iVar2;
int4 uVar3;
LF_SLIST **ppLVar4;
LF_SLIST *pLVar5;
LF_SLIST *local_40;
int4 local_c;
uVar1 = my_clear_highest_bit(param_3);
local_40 = (LF_SLIST *)my_malloc(key_memory_lf_slist,0x20,0x10);
ppLVar4 = (LF_SLIST **)lf_dynarray_lvalue(param_1,uVar1);
if (ppLVar4 == (LF_SLIST **)0x0 || local_40 == (LF_SLIST *)0x0) {
local_c = 0xffffffff;
}
else if (((*ppLVar4 == (LF_SLIST *)0x0) && (param_3 != 0)) &&
(iVar2 = initialize_bucket(param_1,ppLVar4,uVar1,param_4), iVar2 != 0)) {
my_free(local_40);
local_c = 0xffffffff;
}
else {
uVar3 = my_reverse_bits(param_3);
*(int4 *)(local_40 + 0x18) = uVar3;
*(int **)(local_40 + 8) = dummy_key;
*(int8 *)(local_40 + 0x10) = 0;
pLVar5 = (LF_SLIST *)l_insert(ppLVar4,*(charset_info_st **)(param_1 + 0xa8),local_40,param_4,1);
if (pLVar5 != (LF_SLIST *)0x0) {
my_free(local_40);
local_40 = pLVar5;
}
LOCK();
if (*param_2 == (LF_SLIST *)0x0) {
*param_2 = local_40;
}
UNLOCK();
local_c = 0;
}
return local_c;
}
| |
42,291 | nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>::operator=(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>) | monkey531[P]llama/common/json.hpp | basic_json& operator=(basic_json other) noexcept (
std::is_nothrow_move_constructible<value_t>::value&&
std::is_nothrow_move_assignable<value_t>::value&&
std::is_nothrow_move_constructible<json_value>::value&&
std::is_nothrow_move_assignable<json_value>::value&&
std::is_nothrow_move_assignable<json_base_class_t>::value
)
{
// check that passed value is valid
other.assert_invariant();
using std::swap;
swap(m_data.m_type, other.m_data.m_type);
swap(m_data.m_value, other.m_data.m_value);
json_base_class_t::operator=(std::move(other));
set_parents();
assert_invariant();
return *this;
} | O3 | cpp | nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>::operator=(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>):
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %rbx
movq %rdi, %r14
movq %rsi, %rdi
movl $0x1, %esi
callq 0x5b2d4
movb (%r14), %al
movb (%rbx), %cl
movb %cl, (%r14)
movb %al, (%rbx)
movq 0x8(%r14), %rax
movq 0x8(%rbx), %rcx
movq %rcx, 0x8(%r14)
movq %rax, 0x8(%rbx)
movq %r14, %rdi
movl $0x1, %esi
callq 0x5b2d4
movq %r14, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
nop
| _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEaSESD_:
push r14
push rbx
push rax
mov rbx, rsi
mov r14, rdi
mov rdi, rsi
mov esi, 1
call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE16assert_invariantEb; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::assert_invariant(bool)
mov al, [r14]
mov cl, [rbx]
mov [r14], cl
mov [rbx], al
mov rax, [r14+8]
mov rcx, [rbx+8]
mov [r14+8], rcx
mov [rbx+8], rax
mov rdi, r14
mov esi, 1
call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE16assert_invariantEb; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::assert_invariant(bool)
mov rax, r14
add rsp, 8
pop rbx
pop r14
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>::operator=(
long long a1,
long long a2)
{
char v2; // al
long long v3; // rax
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::assert_invariant((char *)a2);
v2 = *(_BYTE *)a1;
*(_BYTE *)a1 = *(_BYTE *)a2;
*(_BYTE *)a2 = v2;
v3 = *(_QWORD *)(a1 + 8);
*(_QWORD *)(a1 + 8) = *(_QWORD *)(a2 + 8);
*(_QWORD *)(a2 + 8) = v3;
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::assert_invariant((char *)a1);
return a1;
}
| operator=:
PUSH R14
PUSH RBX
PUSH RAX
MOV RBX,RSI
MOV R14,RDI
MOV RDI,RSI
MOV ESI,0x1
CALL 0x0015b2d4
MOV AL,byte ptr [R14]
MOV CL,byte ptr [RBX]
MOV byte ptr [R14],CL
MOV byte ptr [RBX],AL
MOV RAX,qword ptr [R14 + 0x8]
MOV RCX,qword ptr [RBX + 0x8]
MOV qword ptr [R14 + 0x8],RCX
MOV qword ptr [RBX + 0x8],RAX
MOV RDI,R14
MOV ESI,0x1
CALL 0x0015b2d4
MOV RAX,R14
ADD RSP,0x8
POP RBX
POP R14
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>::TEMPNAMEPLACEHOLDERVALUE(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,
std::vector, std::__cxx11::string, 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<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
* __thiscall
nlohmann::json_abi_v3_11_3::
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::operator=(basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
*this,basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
*param_2)
{
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,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;
int8 uVar2;
assert_invariant(SUB81(param_2,0));
bVar1 = *this;
*this = *param_2;
*param_2 = bVar1;
uVar2 = *(int8 *)(this + 8);
*(int8 *)(this + 8) = *(int8 *)(param_2 + 8);
*(int8 *)(param_2 + 8) = uVar2;
assert_invariant(SUB81(this,0));
return this;
}
| |
42,292 | table_status_by_user::make_row(PFS_user*, Status_variable const*) | eloqsql/storage/perfschema/table_status_by_user.cc | void table_status_by_user
::make_row(PFS_user *user, const Status_variable *status_var)
{
pfs_optimistic_state lock;
m_row_exists= false;
user->m_lock.begin_optimistic_lock(&lock);
if (m_row.m_user.make_row(user))
return;
m_row.m_variable_name.make_row(status_var->m_name, status_var->m_name_length);
m_row.m_variable_value.make_row(status_var);
if (!user->m_lock.end_optimistic_lock(&lock))
return;
m_row_exists= true;
} | O0 | cpp | table_status_by_user::make_row(PFS_user*, Status_variable const*):
pushq %rbp
movq %rsp, %rbp
subq $0x30, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x28(%rbp)
movb $0x0, 0x6b8(%rax)
movq -0x10(%rbp), %rdi
addq $0x7e0, %rdi # imm = 0x7E0
leaq -0x1c(%rbp), %rsi
callq 0xf8a9b0
movq -0x28(%rbp), %rdi
addq $0xd8, %rdi
movq -0x10(%rbp), %rsi
callq 0xfa2630
cmpl $0x0, %eax
je 0xfaca92
jmp 0xfacaf8
movq -0x28(%rbp), %rdi
addq $0xd8, %rdi
addq $0x184, %rdi # imm = 0x184
movq -0x18(%rbp), %rax
movq (%rax), %rsi
movq -0x18(%rbp), %rax
movq 0x8(%rax), %rdx
callq 0xfa4180
movq -0x28(%rbp), %rdi
addq $0xd8, %rdi
addq $0x1d0, %rdi # imm = 0x1D0
movq -0x18(%rbp), %rsi
callq 0xfa41f0
movq -0x10(%rbp), %rdi
addq $0x7e0, %rdi # imm = 0x7E0
leaq -0x1c(%rbp), %rsi
callq 0xf8a9e0
testb $0x1, %al
jne 0xfacaed
jmp 0xfacaf8
movq -0x28(%rbp), %rax
movb $0x1, 0x6b8(%rax)
addq $0x30, %rsp
popq %rbp
retq
nop
| _ZN20table_status_by_user8make_rowEP8PFS_userPK15Status_variable:
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 [rbp+var_28], rax
mov byte ptr [rax+6B8h], 0
mov rdi, [rbp+var_10]
add rdi, 7E0h
lea rsi, [rbp+var_1C]
call _ZN8pfs_lock21begin_optimistic_lockEP20pfs_optimistic_state; pfs_lock::begin_optimistic_lock(pfs_optimistic_state *)
mov rdi, [rbp+var_28]
add rdi, 0D8h; this
mov rsi, [rbp+var_10]; PFS_user *
call _ZN12PFS_user_row8make_rowEP8PFS_user; PFS_user_row::make_row(PFS_user *)
cmp eax, 0
jz short loc_FACA92
jmp short loc_FACAF8
loc_FACA92:
mov rdi, [rbp+var_28]
add rdi, 0D8h
add rdi, 184h; this
mov rax, [rbp+var_18]
mov rsi, [rax]; char *
mov rax, [rbp+var_18]
mov rdx, [rax+8]; unsigned __int64
call _ZN21PFS_variable_name_row8make_rowEPKcm; PFS_variable_name_row::make_row(char const*,ulong)
mov rdi, [rbp+var_28]
add rdi, 0D8h
add rdi, 1D0h; this
mov rsi, [rbp+var_18]; Status_variable *
call _ZN22PFS_variable_value_row8make_rowEPK15Status_variable; PFS_variable_value_row::make_row(Status_variable const*)
mov rdi, [rbp+var_10]
add rdi, 7E0h
lea rsi, [rbp+var_1C]
call _ZN8pfs_lock19end_optimistic_lockEPK20pfs_optimistic_state; pfs_lock::end_optimistic_lock(pfs_optimistic_state const*)
test al, 1
jnz short loc_FACAED
jmp short loc_FACAF8
loc_FACAED:
mov rax, [rbp+var_28]
mov byte ptr [rax+6B8h], 1
loc_FACAF8:
add rsp, 30h
pop rbp
retn
| char table_status_by_user::make_row(table_status_by_user *this, PFS_user *a2, const Status_variable *a3)
{
int row; // eax
unsigned int v5; // [rsp+14h] [rbp-1Ch] BYREF
Status_variable *v6; // [rsp+18h] [rbp-18h]
PFS_user *v7; // [rsp+20h] [rbp-10h]
table_status_by_user *v8; // [rsp+28h] [rbp-8h]
v8 = this;
v7 = a2;
v6 = a3;
*((_BYTE *)this + 1720) = 0;
pfs_lock::begin_optimistic_lock((PFS_user *)((char *)v7 + 2016), &v5);
row = PFS_user_row::make_row((table_status_by_user *)((char *)this + 216), v7);
if ( !row )
{
PFS_variable_name_row::make_row(
(table_status_by_user *)((char *)this + 604),
*(const char **)v6,
*((_QWORD *)v6 + 1));
PFS_variable_value_row::make_row((table_status_by_user *)((char *)this + 680), v6);
LOBYTE(row) = pfs_lock::end_optimistic_lock((PFS_user *)((char *)v7 + 2016), &v5);
if ( (row & 1) != 0 )
{
LOBYTE(row) = (_BYTE)this;
*((_BYTE *)this + 1720) = 1;
}
}
return row;
}
| default_trnman_end_trans_hook:
PUSH RBP
MOV RBP,RSP
MOV AL,DL
MOV CL,SIL
MOV qword ptr [RBP + -0x8],RDI
MOV byte ptr [RBP + -0x9],CL
MOV byte ptr [RBP + -0xa],AL
XOR EAX,EAX
POP RBP
RET
|
int8 default_trnman_end_trans_hook(void)
{
return 0;
}
| |
42,293 | table_status_by_user::make_row(PFS_user*, Status_variable const*) | eloqsql/storage/perfschema/table_status_by_user.cc | void table_status_by_user
::make_row(PFS_user *user, const Status_variable *status_var)
{
pfs_optimistic_state lock;
m_row_exists= false;
user->m_lock.begin_optimistic_lock(&lock);
if (m_row.m_user.make_row(user))
return;
m_row.m_variable_name.make_row(status_var->m_name, status_var->m_name_length);
m_row.m_variable_value.make_row(status_var);
if (!user->m_lock.end_optimistic_lock(&lock))
return;
m_row_exists= true;
} | O3 | cpp | table_status_by_user::make_row(PFS_user*, Status_variable const*):
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movq %rdx, %r15
movq %rsi, %r14
movq %rdi, %rbx
movb $0x0, 0x6b8(%rdi)
movl 0x7e0(%rsi), %r12d
addq $0xd8, %rdi
callq 0xb17b42
testl %eax, %eax
jne 0xb1cd26
leaq 0x25c(%rbx), %rdi
movq (%r15), %rsi
movq 0x8(%r15), %rdx
callq 0xb1888e
leaq 0x2a8(%rbx), %rdi
movq %r15, %rsi
callq 0xb188c2
movl %r12d, %eax
andl $0x3, %eax
cmpl $0x2, %eax
jne 0xb1cd26
movl 0x7e0(%r14), %eax
cmpl %eax, %r12d
jne 0xb1cd26
movb $0x1, 0x6b8(%rbx)
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
nop
| _ZN20table_status_by_user8make_rowEP8PFS_userPK15Status_variable:
push rbp
mov rbp, rsp
push r15
push r14
push r12
push rbx
mov r15, rdx
mov r14, rsi
mov rbx, rdi
mov byte ptr [rdi+6B8h], 0
mov r12d, [rsi+7E0h]
add rdi, 0D8h; this
call _ZN12PFS_user_row8make_rowEP8PFS_user; PFS_user_row::make_row(PFS_user *)
test eax, eax
jnz short loc_B1CD26
lea rdi, [rbx+25Ch]; this
mov rsi, [r15]; char *
mov rdx, [r15+8]; unsigned __int64
call _ZN21PFS_variable_name_row8make_rowEPKcm; PFS_variable_name_row::make_row(char const*,ulong)
lea rdi, [rbx+2A8h]
mov rsi, r15
call _ZN22PFS_variable_value_row8make_rowEPK15Status_variable; PFS_variable_value_row::make_row(Status_variable const*)
mov eax, r12d
and eax, 3
cmp eax, 2
jnz short loc_B1CD26
mov eax, [r14+7E0h]
cmp r12d, eax
jnz short loc_B1CD26
mov byte ptr [rbx+6B8h], 1
loc_B1CD26:
pop rbx
pop r12
pop r14
pop r15
pop rbp
retn
| long long table_status_by_user::make_row(_BYTE *a1, PFS_user *a2, long long a3)
{
int v4; // r12d
long long result; // rax
a1[1720] = 0;
v4 = *((_DWORD *)a2 + 504);
result = PFS_user_row::make_row((PFS_user_row *)(a1 + 216), a2);
if ( !(_DWORD)result )
{
PFS_variable_name_row::make_row((PFS_variable_name_row *)(a1 + 604), *(const char **)a3, *(_QWORD *)(a3 + 8));
PFS_variable_value_row::make_row((long long)(a1 + 680), a3);
result = v4 & 3;
if ( (_DWORD)result == 2 )
{
result = *((unsigned int *)a2 + 504);
if ( v4 == (_DWORD)result )
a1[1720] = 1;
}
}
return result;
}
| |||
42,294 | nlohmann::json_abi_v3_11_3::basic_json<std::map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>* nlohmann::json_abi_v3_11_3::detail::json_sax_dom_parser<nlohmann::json_abi_v3_11_3::basic_json<std::map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>, nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>>>::handle_value<double&>(double&) | 11AgReS1SoR11[P]Graph/Common/FiguresStorage/src/json.hpp | JSON_HEDLEY_RETURNS_NON_NULL
BasicJsonType* handle_value(Value&& v)
{
if (ref_stack.empty())
{
root = BasicJsonType(std::forward<Value>(v));
#if JSON_DIAGNOSTIC_POSITIONS
handle_diagnostic_positions_for_json_value(root);
#endif
return &root;
}
JSON_ASSERT(ref_stack.back()->is_array() || ref_stack.back()->is_object());
if (ref_stack.back()->is_array())
{
ref_stack.back()->m_data.m_value.array->emplace_back(std::forward<Value>(v));
#if JSON_DIAGNOSTIC_POSITIONS
handle_diagnostic_positions_for_json_value(ref_stack.back()->m_data.m_value.array->back());
#endif
return &(ref_stack.back()->m_data.m_value.array->back());
}
JSON_ASSERT(ref_stack.back()->is_object());
JSON_ASSERT(object_element);
*object_element = BasicJsonType(std::forward<Value>(v));
#if JSON_DIAGNOSTIC_POSITIONS
handle_diagnostic_positions_for_json_value(*object_element);
#endif
return object_element;
} | O0 | cpp | nlohmann::json_abi_v3_11_3::basic_json<std::map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>* nlohmann::json_abi_v3_11_3::detail::json_sax_dom_parser<nlohmann::json_abi_v3_11_3::basic_json<std::map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>, nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>>>::handle_value<double&>(double&):
pushq %rbp
movq %rsp, %rbp
subq $0x50, %rsp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movq -0x10(%rbp), %rdi
movq %rdi, -0x40(%rbp)
addq $0x8, %rdi
callq 0x60af0
testb $0x1, %al
jne 0x8a3d7
jmp 0x8a40d
movq -0x18(%rbp), %rsi
leaq -0x28(%rbp), %rdi
callq 0x5ca90
movq -0x40(%rbp), %rax
movq (%rax), %rdi
leaq -0x28(%rbp), %rsi
callq 0x5c770
leaq -0x28(%rbp), %rdi
callq 0x5fdc0
movq -0x40(%rbp), %rax
movq (%rax), %rax
movq %rax, -0x8(%rbp)
jmp 0x8a565
movq -0x40(%rbp), %rdi
addq $0x8, %rdi
callq 0x60240
movq (%rax), %rdi
callq 0x5dd70
movb %al, %cl
movb $0x1, %al
testb $0x1, %cl
movb %al, -0x41(%rbp)
jne 0x8a446
movq -0x40(%rbp), %rdi
addq $0x8, %rdi
callq 0x60240
movq (%rax), %rdi
callq 0x5d880
movb %al, -0x41(%rbp)
movb -0x41(%rbp), %al
testb $0x1, %al
jne 0x8a44f
jmp 0x8a451
jmp 0x8a470
leaq 0x5856(%rip), %rdi # 0x8fcae
leaq 0x2aa4(%rip), %rsi # 0x8cf03
movl $0x237c, %edx # imm = 0x237C
leaq 0x802d(%rip), %rcx # 0x92498
callq 0x5d1f0
movq -0x40(%rbp), %rdi
addq $0x8, %rdi
callq 0x60240
movq (%rax), %rdi
callq 0x5dd70
testb $0x1, %al
jne 0x8a48b
jmp 0x8a4ca
movq -0x40(%rbp), %rdi
addq $0x8, %rdi
callq 0x60240
movq (%rax), %rax
movq 0x8(%rax), %rdi
movq -0x18(%rbp), %rsi
callq 0x5d310
movq -0x40(%rbp), %rdi
addq $0x8, %rdi
callq 0x60240
movq (%rax), %rax
movq 0x8(%rax), %rdi
callq 0x5bd30
movq %rax, -0x8(%rbp)
jmp 0x8a565
movq -0x40(%rbp), %rdi
addq $0x8, %rdi
callq 0x60240
movq (%rax), %rdi
callq 0x5d880
testb $0x1, %al
jne 0x8a4e5
jmp 0x8a4e7
jmp 0x8a506
leaq 0x57e0(%rip), %rdi # 0x8fcce
leaq 0x2a0e(%rip), %rsi # 0x8cf03
movl $0x2389, %edx # imm = 0x2389
leaq 0x7f97(%rip), %rcx # 0x92498
callq 0x5d1f0
movq -0x40(%rbp), %rax
cmpq $0x0, 0x20(%rax)
je 0x8a513
jmp 0x8a532
leaq 0x57ea(%rip), %rdi # 0x8fd04
leaq 0x29e2(%rip), %rsi # 0x8cf03
movl $0x238a, %edx # imm = 0x238A
leaq 0x7f6b(%rip), %rcx # 0x92498
callq 0x5d1f0
movq -0x18(%rbp), %rsi
leaq -0x38(%rbp), %rdi
callq 0x5ca90
movq -0x40(%rbp), %rax
movq 0x20(%rax), %rdi
leaq -0x38(%rbp), %rsi
callq 0x5c770
leaq -0x38(%rbp), %rdi
callq 0x5fdc0
movq -0x40(%rbp), %rax
movq 0x20(%rax), %rax
movq %rax, -0x8(%rbp)
movq -0x8(%rbp), %rax
addq $0x50, %rsp
popq %rbp
retq
nop
| _ZN8nlohmann16json_abi_v3_11_36detail19json_sax_dom_parserINS0_10basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEENS1_22iterator_input_adapterIN9__gnu_cxx17__normal_iteratorIPKcSB_EEEEE12handle_valueIRmEEPSF_OT_:
push rbp
mov rbp, rsp
sub rsp, 50h
mov [rbp+var_10], rdi
mov [rbp+var_18], rsi
mov rdi, [rbp+var_10]
mov [rbp+var_40], rdi
add rdi, 8
call __ZNKSt6vectorIPN8nlohmann16json_abi_v3_11_310basic_jsonISt3mapS_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES_IhSaIhEEvEESaISE_EE5emptyEv; std::vector<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> *,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> *>>::empty(void)
test al, 1
jnz short loc_8A3D7
jmp short loc_8A40D
loc_8A3D7:
mov rsi, [rbp+var_18]
lea rdi, [rbp+var_28]
call __ZN8nlohmann16json_abi_v3_11_310basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEC2IRmmTnNSt9enable_ifIXaantsr6detail13is_basic_jsonIT0_EE5valuesr6detail18is_compatible_typeISD_SH_EE5valueEiE4typeELi0EEEOT_
mov rax, [rbp+var_40]
mov rdi, [rax]
lea rsi, [rbp+var_28]
call __ZN8nlohmann16json_abi_v3_11_310basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEaSESD_; nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::operator=(nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>)
lea rdi, [rbp+var_28]
call __ZN8nlohmann16json_abi_v3_11_310basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvED2Ev; nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::~basic_json()
mov rax, [rbp+var_40]
mov rax, [rax]
mov [rbp+var_8], rax
jmp loc_8A565
loc_8A40D:
mov rdi, [rbp+var_40]
add rdi, 8
call __ZNSt6vectorIPN8nlohmann16json_abi_v3_11_310basic_jsonISt3mapS_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES_IhSaIhEEvEESaISE_EE4backEv; std::vector<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> *,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> *>>::back(void)
mov rdi, [rax]
call __ZNK8nlohmann16json_abi_v3_11_310basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE8is_arrayEv; nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::is_array(void)
mov cl, al
mov al, 1
test cl, 1
mov [rbp+var_41], al
jnz short loc_8A446
mov rdi, [rbp+var_40]
add rdi, 8
call __ZNSt6vectorIPN8nlohmann16json_abi_v3_11_310basic_jsonISt3mapS_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES_IhSaIhEEvEESaISE_EE4backEv; std::vector<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> *,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> *>>::back(void)
mov rdi, [rax]
call __ZNK8nlohmann16json_abi_v3_11_310basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE9is_objectEv; nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::is_object(void)
mov [rbp+var_41], al
loc_8A446:
mov al, [rbp+var_41]
test al, 1
jnz short loc_8A44F
jmp short loc_8A451
loc_8A44F:
jmp short loc_8A470
loc_8A451:
lea rdi, aRefStackBackIs; "ref_stack.back()->is_array() || ref_sta"...
lea rsi, aWorkspaceLlm4b_0; "/workspace/llm4binary/github/2025_star3"...
mov edx, 237Ch
lea rcx, aBasicjsontypeN_5; "BasicJsonType *nlohmann::detail::json_s"...
call ___assert_fail
loc_8A470:
mov rdi, [rbp+var_40]
add rdi, 8
call __ZNSt6vectorIPN8nlohmann16json_abi_v3_11_310basic_jsonISt3mapS_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES_IhSaIhEEvEESaISE_EE4backEv; std::vector<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> *,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> *>>::back(void)
mov rdi, [rax]
call __ZNK8nlohmann16json_abi_v3_11_310basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE8is_arrayEv; nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::is_array(void)
test al, 1
jnz short loc_8A48B
jmp short loc_8A4CA
loc_8A48B:
mov rdi, [rbp+var_40]
add rdi, 8
call __ZNSt6vectorIPN8nlohmann16json_abi_v3_11_310basic_jsonISt3mapS_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES_IhSaIhEEvEESaISE_EE4backEv; std::vector<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> *,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> *>>::back(void)
mov rax, [rax]
mov rdi, [rax+8]
mov rsi, [rbp+var_18]
call __ZNSt6vectorIN8nlohmann16json_abi_v3_11_310basic_jsonISt3mapS_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES_IhSaIhEEvEESaISD_EE12emplace_backIJRmEEERSD_DpOT_; std::vector<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>::emplace_back<ulong &>(ulong &)
mov rdi, [rbp+var_40]
add rdi, 8
call __ZNSt6vectorIPN8nlohmann16json_abi_v3_11_310basic_jsonISt3mapS_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES_IhSaIhEEvEESaISE_EE4backEv; std::vector<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> *,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> *>>::back(void)
mov rax, [rax]
mov rdi, [rax+8]
call __ZNSt6vectorIN8nlohmann16json_abi_v3_11_310basic_jsonISt3mapS_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES_IhSaIhEEvEESaISD_EE4backEv; std::vector<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>::back(void)
mov [rbp+var_8], rax
jmp loc_8A565
loc_8A4CA:
mov rdi, [rbp+var_40]
add rdi, 8
call __ZNSt6vectorIPN8nlohmann16json_abi_v3_11_310basic_jsonISt3mapS_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES_IhSaIhEEvEESaISE_EE4backEv; std::vector<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> *,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> *>>::back(void)
mov rdi, [rax]
call __ZNK8nlohmann16json_abi_v3_11_310basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE9is_objectEv; nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::is_object(void)
test al, 1
jnz short loc_8A4E5
jmp short loc_8A4E7
loc_8A4E5:
jmp short loc_8A506
loc_8A4E7:
lea rdi, aRefStackBackIs+20h; "ref_stack.back()->is_object()"
lea rsi, aWorkspaceLlm4b_0; "/workspace/llm4binary/github/2025_star3"...
mov edx, 2389h
lea rcx, aBasicjsontypeN_5; "BasicJsonType *nlohmann::detail::json_s"...
call ___assert_fail
loc_8A506:
mov rax, [rbp+var_40]
cmp qword ptr [rax+20h], 0
jz short loc_8A513
jmp short loc_8A532
loc_8A513:
lea rdi, aObjectElement; "object_element"
lea rsi, aWorkspaceLlm4b_0; "/workspace/llm4binary/github/2025_star3"...
mov edx, 238Ah
lea rcx, aBasicjsontypeN_5; "BasicJsonType *nlohmann::detail::json_s"...
call ___assert_fail
loc_8A532:
mov rsi, [rbp+var_18]
lea rdi, [rbp+var_38]
call __ZN8nlohmann16json_abi_v3_11_310basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEC2IRmmTnNSt9enable_ifIXaantsr6detail13is_basic_jsonIT0_EE5valuesr6detail18is_compatible_typeISD_SH_EE5valueEiE4typeELi0EEEOT_
mov rax, [rbp+var_40]
mov rdi, [rax+20h]
lea rsi, [rbp+var_38]
call __ZN8nlohmann16json_abi_v3_11_310basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEaSESD_; nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::operator=(nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>)
lea rdi, [rbp+var_38]
call __ZN8nlohmann16json_abi_v3_11_310basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvED2Ev; nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::~basic_json()
mov rax, [rbp+var_40]
mov rax, [rax+20h]
mov [rbp+var_8], rax
loc_8A565:
mov rax, [rbp+var_8]
add rsp, 50h
pop rbp
retn
| long long nlohmann::json_abi_v3_11_3::detail::json_sax_dom_parser<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>>::handle_value<unsigned long &>(
_QWORD *a1,
long long a2)
{
_QWORD *v2; // rax
_QWORD *v3; // rax
_QWORD *v4; // rax
char is_array; // al
long long v6; // rax
long long v7; // rax
_QWORD *v8; // rax
char is_object; // [rsp+Fh] [rbp-41h]
_BYTE v11[16]; // [rsp+18h] [rbp-38h] BYREF
_BYTE v12[16]; // [rsp+28h] [rbp-28h] BYREF
long long v13; // [rsp+38h] [rbp-18h]
_QWORD *v14; // [rsp+40h] [rbp-10h]
v14 = a1;
v13 = a2;
if ( (std::vector<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> *,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> *>>::empty(a1 + 1) & 1) != 0 )
{
_ZN8nlohmann16json_abi_v3_11_310basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEC2IRmmTnNSt9enable_ifIXaantsr6detail13is_basic_jsonIT0_EE5valuesr6detail18is_compatible_typeISD_SH_EE5valueEiE4typeELi0EEEOT_(
v12,
v13);
nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::operator=(
*a1,
v12);
nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::~basic_json(v12);
return *a1;
}
else
{
v2 = (_QWORD *)std::vector<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> *,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> *>>::back(a1 + 1);
is_object = 1;
if ( (nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::is_array(*v2) & 1) == 0 )
{
v3 = (_QWORD *)std::vector<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> *,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> *>>::back(a1 + 1);
is_object = nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::is_object(*v3);
}
if ( (is_object & 1) == 0 )
__assert_fail(
"ref_stack.back()->is_array() || ref_stack.back()->is_object()",
"/workspace/llm4binary/github/2025_star3/11AgReS1SoR11[P]Graph/Common/FiguresStorage/src/json.hpp",
9084LL,
"BasicJsonType *nlohmann::detail::json_sax_dom_parser<nlohmann::basic_json<>, nlohmann::detail::iterator_input_ad"
"apter<__gnu_cxx::__normal_iterator<const char *, std::basic_string<char>>>>::handle_value(Value &&) [BasicJsonTy"
"pe = nlohmann::basic_json<>, InputAdapterType = nlohmann::detail::iterator_input_adapter<__gnu_cxx::__normal_ite"
"rator<const char *, std::basic_string<char>>>, Value = unsigned long &]");
v4 = (_QWORD *)std::vector<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> *,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> *>>::back(a1 + 1);
is_array = nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::is_array(*v4);
if ( (is_array & 1) != 0 )
{
v6 = std::vector<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> *,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> *>>::back(a1 + 1);
std::vector<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>::emplace_back<unsigned long &>(
*(_QWORD *)(*(_QWORD *)v6 + 8LL),
v13);
v7 = std::vector<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> *,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> *>>::back(a1 + 1);
return std::vector<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>::back(*(_QWORD *)(*(_QWORD *)v7 + 8LL));
}
else
{
v8 = (_QWORD *)std::vector<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> *,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> *>>::back(a1 + 1);
if ( (nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::is_object(*v8) & 1) == 0 )
__assert_fail(
"ref_stack.back()->is_object()",
"/workspace/llm4binary/github/2025_star3/11AgReS1SoR11[P]Graph/Common/FiguresStorage/src/json.hpp",
9097LL,
"BasicJsonType *nlohmann::detail::json_sax_dom_parser<nlohmann::basic_json<>, nlohmann::detail::iterator_input_"
"adapter<__gnu_cxx::__normal_iterator<const char *, std::basic_string<char>>>>::handle_value(Value &&) [BasicJs"
"onType = nlohmann::basic_json<>, InputAdapterType = nlohmann::detail::iterator_input_adapter<__gnu_cxx::__norm"
"al_iterator<const char *, std::basic_string<char>>>, Value = unsigned long &]");
if ( !a1[4] )
__assert_fail(
"object_element",
"/workspace/llm4binary/github/2025_star3/11AgReS1SoR11[P]Graph/Common/FiguresStorage/src/json.hpp",
9098LL,
"BasicJsonType *nlohmann::detail::json_sax_dom_parser<nlohmann::basic_json<>, nlohmann::detail::iterator_input_"
"adapter<__gnu_cxx::__normal_iterator<const char *, std::basic_string<char>>>>::handle_value(Value &&) [BasicJs"
"onType = nlohmann::basic_json<>, InputAdapterType = nlohmann::detail::iterator_input_adapter<__gnu_cxx::__norm"
"al_iterator<const char *, std::basic_string<char>>>, Value = unsigned long &]");
_ZN8nlohmann16json_abi_v3_11_310basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEC2IRmmTnNSt9enable_ifIXaantsr6detail13is_basic_jsonIT0_EE5valuesr6detail18is_compatible_typeISD_SH_EE5valueEiE4typeELi0EEEOT_(
v11,
v13);
nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::operator=(
a1[4],
v11);
nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::~basic_json(v11);
return a1[4];
}
}
}
| handle_value<unsigned_long&>:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x50
MOV qword ptr [RBP + -0x10],RDI
MOV qword ptr [RBP + -0x18],RSI
MOV RDI,qword ptr [RBP + -0x10]
MOV qword ptr [RBP + -0x40],RDI
ADD RDI,0x8
CALL 0x00160af0
TEST AL,0x1
JNZ 0x0018a3d7
JMP 0x0018a40d
LAB_0018a3d7:
MOV RSI,qword ptr [RBP + -0x18]
LEA RDI,[RBP + -0x28]
CALL 0x0015ca90
MOV RAX,qword ptr [RBP + -0x40]
MOV RDI,qword ptr [RAX]
LEA RSI,[RBP + -0x28]
CALL 0x0015c770
LEA RDI,[RBP + -0x28]
CALL 0x0015fdc0
MOV RAX,qword ptr [RBP + -0x40]
MOV RAX,qword ptr [RAX]
MOV qword ptr [RBP + -0x8],RAX
JMP 0x0018a565
LAB_0018a40d:
MOV RDI,qword ptr [RBP + -0x40]
ADD RDI,0x8
CALL 0x00160240
MOV RDI,qword ptr [RAX]
CALL 0x0015dd70
MOV CL,AL
MOV AL,0x1
TEST CL,0x1
MOV byte ptr [RBP + -0x41],AL
JNZ 0x0018a446
MOV RDI,qword ptr [RBP + -0x40]
ADD RDI,0x8
CALL 0x00160240
MOV RDI,qword ptr [RAX]
CALL 0x0015d880
MOV byte ptr [RBP + -0x41],AL
LAB_0018a446:
MOV AL,byte ptr [RBP + -0x41]
TEST AL,0x1
JNZ 0x0018a44f
JMP 0x0018a451
LAB_0018a44f:
JMP 0x0018a470
LAB_0018a451:
LEA RDI,[0x18fcae]
LEA RSI,[0x18cf03]
MOV EDX,0x237c
LEA RCX,[0x192498]
CALL 0x0015d1f0
LAB_0018a470:
MOV RDI,qword ptr [RBP + -0x40]
ADD RDI,0x8
CALL 0x00160240
MOV RDI,qword ptr [RAX]
CALL 0x0015dd70
TEST AL,0x1
JNZ 0x0018a48b
JMP 0x0018a4ca
LAB_0018a48b:
MOV RDI,qword ptr [RBP + -0x40]
ADD RDI,0x8
CALL 0x00160240
MOV RAX,qword ptr [RAX]
MOV RDI,qword ptr [RAX + 0x8]
MOV RSI,qword ptr [RBP + -0x18]
CALL 0x0015d310
MOV RDI,qword ptr [RBP + -0x40]
ADD RDI,0x8
CALL 0x00160240
MOV RAX,qword ptr [RAX]
MOV RDI,qword ptr [RAX + 0x8]
CALL 0x0015bd30
MOV qword ptr [RBP + -0x8],RAX
JMP 0x0018a565
LAB_0018a4ca:
MOV RDI,qword ptr [RBP + -0x40]
ADD RDI,0x8
CALL 0x00160240
MOV RDI,qword ptr [RAX]
CALL 0x0015d880
TEST AL,0x1
JNZ 0x0018a4e5
JMP 0x0018a4e7
LAB_0018a4e5:
JMP 0x0018a506
LAB_0018a4e7:
LEA RDI,[0x18fcce]
LEA RSI,[0x18cf03]
MOV EDX,0x2389
LEA RCX,[0x192498]
CALL 0x0015d1f0
LAB_0018a506:
MOV RAX,qword ptr [RBP + -0x40]
CMP qword ptr [RAX + 0x20],0x0
JZ 0x0018a513
JMP 0x0018a532
LAB_0018a513:
LEA RDI,[0x18fd04]
LEA RSI,[0x18cf03]
MOV EDX,0x238a
LEA RCX,[0x192498]
CALL 0x0015d1f0
LAB_0018a532:
MOV RSI,qword ptr [RBP + -0x18]
LEA RDI,[RBP + -0x38]
CALL 0x0015ca90
MOV RAX,qword ptr [RBP + -0x40]
MOV RDI,qword ptr [RAX + 0x20]
LEA RSI,[RBP + -0x38]
CALL 0x0015c770
LEA RDI,[RBP + -0x38]
CALL 0x0015fdc0
MOV RAX,qword ptr [RBP + -0x40]
MOV RAX,qword ptr [RAX + 0x20]
MOV qword ptr [RBP + -0x8],RAX
LAB_0018a565:
MOV RAX,qword ptr [RBP + -0x8]
ADD RSP,0x50
POP RBP
RET
|
/* nlohmann::json_abi_v3_11_3::basic_json<std::map, std::vector, std::__cxx11::string, bool, long,
unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer,
std::vector<unsigned char, std::allocator<unsigned char> >, void>*
nlohmann::json_abi_v3_11_3::detail::json_sax_dom_parser<nlohmann::json_abi_v3_11_3::basic_json<std::map,
std::vector, std::__cxx11::string, bool, long, unsigned long, double, std::allocator,
nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned
char> >, void>,
nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char
const*, std::__cxx11::string > > >::handle_value<unsigned long&>(unsigned long&) */
basic_json * __thiscall
nlohmann::json_abi_v3_11_3::detail::
json_sax_dom_parser<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char_const*,std::__cxx11::string>>>
::handle_value<unsigned_long&>
(json_sax_dom_parser<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char_const*,std::__cxx11::string>>>
*this,ulong *param_1)
{
byte bVar1;
ulong uVar2;
int8 *puVar3;
long *plVar4;
byte local_49;
basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
local_40 [16];
basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
local_30 [16];
ulong *local_20;
json_sax_dom_parser<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char_const*,std::__cxx11::string>>>
*local_18;
basic_json *local_10;
local_20 = param_1;
local_18 = this;
uVar2 = std::
vector<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*>>
::empty((vector<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*>>
*)(this + 8));
if ((uVar2 & 1) == 0) {
puVar3 = (int8 *)
std::
vector<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*>>
::back((vector<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*>>
*)(this + 8));
bVar1 = basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::is_array((basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
*)*puVar3);
local_49 = 1;
if ((bVar1 & 1) == 0) {
puVar3 = (int8 *)
std::
vector<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*>>
::back((vector<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*>>
*)(this + 8));
local_49 = basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::is_object((basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
*)*puVar3);
}
if ((local_49 & 1) == 0) {
/* WARNING: Subroutine does not return */
__assert_fail("ref_stack.back()->is_array() || ref_stack.back()->is_object()",
"/workspace/llm4binary/github/2025_star3/11AgReS1SoR11[P]Graph/Common/FiguresStorage/src/json.hpp"
,0x237c,
"BasicJsonType *nlohmann::detail::json_sax_dom_parser<nlohmann::basic_json<>, nlohmann::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<const char *, std::basic_string<char>>>>::handle_value(Value &&) [BasicJsonType = nlohmann::basic_json<>, InputAdapterType = nlohmann::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<const char *, std::basic_string<char>>>, Value = unsigned long &]"
);
}
puVar3 = (int8 *)
std::
vector<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*>>
::back((vector<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*>>
*)(this + 8));
uVar2 = basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::is_array((basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
*)*puVar3);
if ((uVar2 & 1) == 0) {
puVar3 = (int8 *)
std::
vector<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*>>
::back((vector<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*>>
*)(this + 8));
uVar2 = basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::is_object((basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
*)*puVar3);
if ((uVar2 & 1) == 0) {
/* WARNING: Subroutine does not return */
__assert_fail("ref_stack.back()->is_object()",
"/workspace/llm4binary/github/2025_star3/11AgReS1SoR11[P]Graph/Common/FiguresStorage/src/json.hpp"
,0x2389,
"BasicJsonType *nlohmann::detail::json_sax_dom_parser<nlohmann::basic_json<>, nlohmann::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<const char *, std::basic_string<char>>>>::handle_value(Value &&) [BasicJsonType = nlohmann::basic_json<>, InputAdapterType = nlohmann::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<const char *, std::basic_string<char>>>, Value = unsigned long &]"
);
}
if (*(long *)(this + 0x20) == 0) {
/* WARNING: Subroutine does not return */
__assert_fail("object_element",
"/workspace/llm4binary/github/2025_star3/11AgReS1SoR11[P]Graph/Common/FiguresStorage/src/json.hpp"
,0x238a,
"BasicJsonType *nlohmann::detail::json_sax_dom_parser<nlohmann::basic_json<>, nlohmann::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<const char *, std::basic_string<char>>>>::handle_value(Value &&) [BasicJsonType = nlohmann::basic_json<>, InputAdapterType = nlohmann::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<const char *, std::basic_string<char>>>, Value = unsigned long &]"
);
}
_ZN8nlohmann16json_abi_v3_11_310basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEC2IRmmTnNSt9enable_ifIXaantsr6detail13is_basic_jsonIT0_EE5valuesr6detail18is_compatible_typeISD_SH_EE5valueEiE4typeELi0EEEOT_
(local_40,local_20);
basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::operator=(*(basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
**)(this + 0x20),local_40);
basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::~basic_json(local_40);
local_10 = *(basic_json **)(this + 0x20);
}
else {
plVar4 = (long *)std::
vector<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*>>
::back((vector<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*>>
*)(this + 8));
std::
vector<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>
::emplace_back<unsigned_long&>
(*(vector<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>
**)(*plVar4 + 8),local_20);
plVar4 = (long *)std::
vector<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*>>
::back((vector<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*>>
*)(this + 8));
local_10 = (basic_json *)
std::
vector<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>
::back(*(vector<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>
**)(*plVar4 + 8));
}
}
else {
_ZN8nlohmann16json_abi_v3_11_310basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEC2IRmmTnNSt9enable_ifIXaantsr6detail13is_basic_jsonIT0_EE5valuesr6detail18is_compatible_typeISD_SH_EE5valueEiE4typeELi0EEEOT_
(local_30,local_20);
basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::operator=(*(basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
**)this,local_30);
basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::~basic_json(local_30);
local_10 = *(basic_json **)this;
}
return local_10;
}
| |
42,295 | nlohmann::json_abi_v3_11_3::basic_json<std::map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>* nlohmann::json_abi_v3_11_3::detail::json_sax_dom_parser<nlohmann::json_abi_v3_11_3::basic_json<std::map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>, nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>>>::handle_value<double&>(double&) | 11AgReS1SoR11[P]Graph/Common/FiguresStorage/src/json.hpp | JSON_HEDLEY_RETURNS_NON_NULL
BasicJsonType* handle_value(Value&& v)
{
if (ref_stack.empty())
{
root = BasicJsonType(std::forward<Value>(v));
#if JSON_DIAGNOSTIC_POSITIONS
handle_diagnostic_positions_for_json_value(root);
#endif
return &root;
}
JSON_ASSERT(ref_stack.back()->is_array() || ref_stack.back()->is_object());
if (ref_stack.back()->is_array())
{
ref_stack.back()->m_data.m_value.array->emplace_back(std::forward<Value>(v));
#if JSON_DIAGNOSTIC_POSITIONS
handle_diagnostic_positions_for_json_value(ref_stack.back()->m_data.m_value.array->back());
#endif
return &(ref_stack.back()->m_data.m_value.array->back());
}
JSON_ASSERT(ref_stack.back()->is_object());
JSON_ASSERT(object_element);
*object_element = BasicJsonType(std::forward<Value>(v));
#if JSON_DIAGNOSTIC_POSITIONS
handle_diagnostic_positions_for_json_value(*object_element);
#endif
return object_element;
} | O1 | cpp | nlohmann::json_abi_v3_11_3::basic_json<std::map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>* nlohmann::json_abi_v3_11_3::detail::json_sax_dom_parser<nlohmann::json_abi_v3_11_3::basic_json<std::map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>, nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>>>::handle_value<double&>(double&):
pushq %r14
pushq %rbx
subq $0x28, %rsp
movq %rdi, %rbx
movq 0x10(%rdi), %rax
cmpq %rax, 0x8(%rdi)
je 0x2086d
movq -0x8(%rax), %rax
movzbl (%rax), %ecx
cmpl $0x1, %ecx
je 0x208b3
cmpl $0x2, %ecx
jne 0x20906
movq 0x8(%rax), %rdi
callq 0x110a0
movq 0x10(%rbx), %rax
movq -0x8(%rax), %rax
movq 0x8(%rax), %rax
movq 0x8(%rax), %rax
addq $-0x10, %rax
jmp 0x208fe
xorps %xmm0, %xmm0
leaq 0x10(%rsp), %r14
movaps %xmm0, (%r14)
movq (%rsi), %rsi
movq %r14, %rdi
callq 0x11940
movq %r14, %rdi
movl $0x1, %esi
callq 0x11430
movq (%rbx), %rdi
movq %r14, %rsi
callq 0x11490
movq %r14, %rdi
xorl %esi, %esi
callq 0x11430
movq %r14, %rdi
callq 0x11e50
movq (%rbx), %rax
jmp 0x208fe
cmpq $0x0, 0x20(%rbx)
je 0x20925
xorps %xmm0, %xmm0
movq %rsp, %r14
movaps %xmm0, (%r14)
movq (%rsi), %rsi
movq %r14, %rdi
callq 0x11940
movq %r14, %rdi
movl $0x1, %esi
callq 0x11430
movq 0x20(%rbx), %rdi
movq %r14, %rsi
callq 0x11490
movq %r14, %rdi
xorl %esi, %esi
callq 0x11430
movq %r14, %rdi
callq 0x11e50
movq 0x20(%rbx), %rax
addq $0x28, %rsp
popq %rbx
popq %r14
retq
leaq 0x4364(%rip), %rdi # 0x24c71
leaq 0x1f63(%rip), %rsi # 0x22877
leaq 0x6011(%rip), %rcx # 0x2692c
movl $0x237c, %edx # imm = 0x237C
callq 0x11620
leaq 0x439b(%rip), %rdi # 0x24cc7
leaq 0x1f44(%rip), %rsi # 0x22877
leaq 0x5ff2(%rip), %rcx # 0x2692c
movl $0x238a, %edx # imm = 0x238A
callq 0x11620
| _ZN8nlohmann16json_abi_v3_11_36detail19json_sax_dom_parserINS0_10basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEENS1_22iterator_input_adapterIN9__gnu_cxx17__normal_iteratorIPKcSB_EEEEE12handle_valueIRlEEPSF_OT_:
push r14
push rbx
sub rsp, 28h
mov rbx, rdi
mov rax, [rdi+10h]
cmp [rdi+8], rax
jz short loc_2086D
mov rax, [rax-8]
movzx ecx, byte ptr [rax]
cmp ecx, 1
jz short loc_208B3
cmp ecx, 2
jnz loc_20906
mov rdi, [rax+8]
call __ZNSt6vectorIN8nlohmann16json_abi_v3_11_310basic_jsonISt3mapS_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES_IhSaIhEEvEESaISD_EE12emplace_backIJRlEEERSD_DpOT_; std::vector<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>::emplace_back<long &>(long &)
mov rax, [rbx+10h]
mov rax, [rax-8]
mov rax, [rax+8]
mov rax, [rax+8]
add rax, 0FFFFFFFFFFFFFFF0h
jmp loc_208FE
loc_2086D:
xorps xmm0, xmm0
lea r14, [rsp+38h+var_28]
movaps xmmword ptr [r14], xmm0
mov rsi, [rsi]
mov rdi, r14
call __ZN8nlohmann16json_abi_v3_11_36detail20external_constructorILNS1_7value_tE5EE9constructINS0_10basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES8_IhSaIhEEvEEEEvRT_NSJ_16number_integer_tE; nlohmann::json_abi_v3_11_3::detail::external_constructor<(nlohmann::json_abi_v3_11_3::detail::value_t)5>::construct<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>(nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> &,nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::number_integer_t)
mov rdi, r14
mov esi, 1
call __ZNK8nlohmann16json_abi_v3_11_310basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE16assert_invariantEb; nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::assert_invariant(bool)
mov rdi, [rbx]
mov rsi, r14
call __ZN8nlohmann16json_abi_v3_11_310basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEaSESD_; nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::operator=(nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>)
mov rdi, r14
xor esi, esi
call __ZNK8nlohmann16json_abi_v3_11_310basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE16assert_invariantEb; nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::assert_invariant(bool)
mov rdi, r14
call __ZN8nlohmann16json_abi_v3_11_310basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE4dataD2Ev; nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::data::~data()
mov rax, [rbx]
jmp short loc_208FE
loc_208B3:
cmp qword ptr [rbx+20h], 0
jz short loc_20925
xorps xmm0, xmm0
mov r14, rsp
movaps xmmword ptr [r14], xmm0
mov rsi, [rsi]
mov rdi, r14
call __ZN8nlohmann16json_abi_v3_11_36detail20external_constructorILNS1_7value_tE5EE9constructINS0_10basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES8_IhSaIhEEvEEEEvRT_NSJ_16number_integer_tE; nlohmann::json_abi_v3_11_3::detail::external_constructor<(nlohmann::json_abi_v3_11_3::detail::value_t)5>::construct<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>(nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> &,nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::number_integer_t)
mov rdi, r14
mov esi, 1
call __ZNK8nlohmann16json_abi_v3_11_310basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE16assert_invariantEb; nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::assert_invariant(bool)
mov rdi, [rbx+20h]
mov rsi, r14
call __ZN8nlohmann16json_abi_v3_11_310basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEaSESD_; nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::operator=(nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>)
mov rdi, r14
xor esi, esi
call __ZNK8nlohmann16json_abi_v3_11_310basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE16assert_invariantEb; nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::assert_invariant(bool)
mov rdi, r14
call __ZN8nlohmann16json_abi_v3_11_310basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE4dataD2Ev; nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::data::~data()
mov rax, [rbx+20h]
loc_208FE:
add rsp, 28h
pop rbx
pop r14
retn
loc_20906:
lea rdi, aRefStackBackIs; "ref_stack.back()->is_array() || ref_sta"...
lea rsi, aWorkspaceLlm4b_0; "/workspace/llm4binary/github/2025_star3"...
lea rcx, aBasicjsontypeN_3; "BasicJsonType *nlohmann::detail::json_s"...
mov edx, 237Ch
call ___assert_fail
loc_20925:
lea rdi, aObjectElement; "object_element"
lea rsi, aWorkspaceLlm4b_0; "/workspace/llm4binary/github/2025_star3"...
lea rcx, aBasicjsontypeN_3; "BasicJsonType *nlohmann::detail::json_s"...
mov edx, 238Ah
call ___assert_fail
| long long nlohmann::json_abi_v3_11_3::detail::json_sax_dom_parser<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>>::handle_value<long &>(
_QWORD *a1,
_QWORD *a2)
{
long long v2; // rax
unsigned __int8 *v3; // rax
int v4; // ecx
__int128 v6; // [rsp+0h] [rbp-38h] BYREF
_OWORD v7[2]; // [rsp+10h] [rbp-28h] BYREF
v2 = a1[2];
if ( a1[1] == v2 )
{
v7[0] = 0LL;
nlohmann::json_abi_v3_11_3::detail::external_constructor<(nlohmann::json_abi_v3_11_3::detail::value_t)5>::construct<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>(
v7,
*a2);
nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::assert_invariant(
v7,
1LL);
nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::operator=(
*a1,
v7);
nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::assert_invariant(
v7,
0LL);
nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::data::~data(v7);
return *a1;
}
else
{
v3 = *(unsigned __int8 **)(v2 - 8);
v4 = *v3;
if ( v4 == 1 )
{
if ( !a1[4] )
__assert_fail(
"object_element",
"/workspace/llm4binary/github/2025_star3/11AgReS1SoR11[P]Graph/Common/FiguresStorage/src/json.hpp",
9098LL,
"BasicJsonType *nlohmann::detail::json_sax_dom_parser<nlohmann::basic_json<>, nlohmann::detail::iterator_input_"
"adapter<__gnu_cxx::__normal_iterator<const char *, std::basic_string<char>>>>::handle_value(Value &&) [BasicJs"
"onType = nlohmann::basic_json<>, InputAdapterType = nlohmann::detail::iterator_input_adapter<__gnu_cxx::__norm"
"al_iterator<const char *, std::basic_string<char>>>, Value = long &]");
v6 = 0LL;
nlohmann::json_abi_v3_11_3::detail::external_constructor<(nlohmann::json_abi_v3_11_3::detail::value_t)5>::construct<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>(
&v6,
*a2);
nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::assert_invariant(
&v6,
1LL);
nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::operator=(
a1[4],
&v6);
nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::assert_invariant(
&v6,
0LL);
nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::data::~data(&v6);
return a1[4];
}
else
{
if ( v4 != 2 )
__assert_fail(
"ref_stack.back()->is_array() || ref_stack.back()->is_object()",
"/workspace/llm4binary/github/2025_star3/11AgReS1SoR11[P]Graph/Common/FiguresStorage/src/json.hpp",
9084LL,
"BasicJsonType *nlohmann::detail::json_sax_dom_parser<nlohmann::basic_json<>, nlohmann::detail::iterator_input_"
"adapter<__gnu_cxx::__normal_iterator<const char *, std::basic_string<char>>>>::handle_value(Value &&) [BasicJs"
"onType = nlohmann::basic_json<>, InputAdapterType = nlohmann::detail::iterator_input_adapter<__gnu_cxx::__norm"
"al_iterator<const char *, std::basic_string<char>>>, Value = long &]");
std::vector<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>::emplace_back<long &>(*((_QWORD *)v3 + 1));
return *(_QWORD *)(*(_QWORD *)(*(_QWORD *)(a1[2] - 8LL) + 8LL) + 8LL) - 16LL;
}
}
}
| handle_value<long&>:
PUSH R14
PUSH RBX
SUB RSP,0x28
MOV RBX,RDI
MOV RAX,qword ptr [RDI + 0x10]
CMP qword ptr [RDI + 0x8],RAX
JZ 0x0012086d
MOV RAX,qword ptr [RAX + -0x8]
MOVZX ECX,byte ptr [RAX]
CMP ECX,0x1
JZ 0x001208b3
CMP ECX,0x2
JNZ 0x00120906
MOV RDI,qword ptr [RAX + 0x8]
CALL 0x001110a0
MOV RAX,qword ptr [RBX + 0x10]
MOV RAX,qword ptr [RAX + -0x8]
MOV RAX,qword ptr [RAX + 0x8]
MOV RAX,qword ptr [RAX + 0x8]
ADD RAX,-0x10
JMP 0x001208fe
LAB_0012086d:
XORPS XMM0,XMM0
LEA R14,[RSP + 0x10]
MOVAPS xmmword ptr [R14],XMM0
MOV RSI,qword ptr [RSI]
MOV RDI,R14
CALL 0x00111940
MOV RDI,R14
MOV ESI,0x1
CALL 0x00111430
MOV RDI,qword ptr [RBX]
MOV RSI,R14
CALL 0x00111490
MOV RDI,R14
XOR ESI,ESI
CALL 0x00111430
MOV RDI,R14
CALL 0x00111e50
MOV RAX,qword ptr [RBX]
JMP 0x001208fe
LAB_001208b3:
CMP qword ptr [RBX + 0x20],0x0
JZ 0x00120925
XORPS XMM0,XMM0
MOV R14,RSP
MOVAPS xmmword ptr [R14],XMM0
MOV RSI,qword ptr [RSI]
MOV RDI,R14
CALL 0x00111940
MOV RDI,R14
MOV ESI,0x1
CALL 0x00111430
MOV RDI,qword ptr [RBX + 0x20]
MOV RSI,R14
CALL 0x00111490
MOV RDI,R14
XOR ESI,ESI
CALL 0x00111430
MOV RDI,R14
CALL 0x00111e50
MOV RAX,qword ptr [RBX + 0x20]
LAB_001208fe:
ADD RSP,0x28
POP RBX
POP R14
RET
LAB_00120906:
LEA RDI,[0x124c71]
LEA RSI,[0x122877]
LEA RCX,[0x12692c]
MOV EDX,0x237c
CALL 0x00111620
LAB_00120925:
LEA RDI,[0x124cc7]
LEA RSI,[0x122877]
LEA RCX,[0x12692c]
MOV EDX,0x238a
CALL 0x00111620
|
/* nlohmann::json_abi_v3_11_3::basic_json<std::map, std::vector, std::__cxx11::string, bool, long,
unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer,
std::vector<unsigned char, std::allocator<unsigned char> >, void>*
nlohmann::json_abi_v3_11_3::detail::json_sax_dom_parser<nlohmann::json_abi_v3_11_3::basic_json<std::map,
std::vector, std::__cxx11::string, bool, long, unsigned long, double, std::allocator,
nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned
char> >, void>,
nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char
const*, std::__cxx11::string > > >::handle_value<long&>(long&) */
basic_json * __thiscall
nlohmann::json_abi_v3_11_3::detail::
json_sax_dom_parser<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char_const*,std::__cxx11::string>>>
::handle_value<long&>
(json_sax_dom_parser<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char_const*,std::__cxx11::string>>>
*this,long *param_1)
{
char cVar1;
char *pcVar2;
basic_json *pbVar3;
bool bVar4;
int8 local_38;
int8 uStack_30;
int8 local_28;
int8 uStack_20;
if (*(long *)(this + 8) == *(long *)(this + 0x10)) {
local_28 = 0;
uStack_20 = 0;
external_constructor<(nlohmann::json_abi_v3_11_3::detail::value_t)5>::
construct<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>
((data *)&local_28,*param_1);
bVar4 = SUB81((data *)&local_28,0);
basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::assert_invariant(bVar4);
basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::operator=(*(basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
**)this,(data *)&local_28);
basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::assert_invariant(bVar4);
basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::data::~data((data *)&local_28);
pbVar3 = *(basic_json **)this;
}
else {
pcVar2 = *(char **)(*(long *)(this + 0x10) + -8);
cVar1 = *pcVar2;
if (cVar1 == '\x01') {
if (*(long *)(this + 0x20) == 0) {
/* WARNING: Subroutine does not return */
__assert_fail("object_element",
"/workspace/llm4binary/github/2025_star3/11AgReS1SoR11[P]Graph/Common/FiguresStorage/src/json.hpp"
,0x238a,
"BasicJsonType *nlohmann::detail::json_sax_dom_parser<nlohmann::basic_json<>, nlohmann::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<const char *, std::basic_string<char>>>>::handle_value(Value &&) [BasicJsonType = nlohmann::basic_json<>, InputAdapterType = nlohmann::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<const char *, std::basic_string<char>>>, Value = long &]"
);
}
local_38 = 0;
uStack_30 = 0;
external_constructor<(nlohmann::json_abi_v3_11_3::detail::value_t)5>::
construct<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>
(&local_38,*param_1);
basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::assert_invariant(SUB81(&local_38,0));
basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::operator=(*(basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
**)(this + 0x20),&local_38);
basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::assert_invariant(SUB81(&local_38,0));
basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::data::~data((data *)&local_38);
pbVar3 = *(basic_json **)(this + 0x20);
}
else {
if (cVar1 != '\x02') {
/* WARNING: Subroutine does not return */
__assert_fail("ref_stack.back()->is_array() || ref_stack.back()->is_object()",
"/workspace/llm4binary/github/2025_star3/11AgReS1SoR11[P]Graph/Common/FiguresStorage/src/json.hpp"
,0x237c,
"BasicJsonType *nlohmann::detail::json_sax_dom_parser<nlohmann::basic_json<>, nlohmann::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<const char *, std::basic_string<char>>>>::handle_value(Value &&) [BasicJsonType = nlohmann::basic_json<>, InputAdapterType = nlohmann::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<const char *, std::basic_string<char>>>, Value = long &]"
);
}
std::
vector<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>
::emplace_back<long&>
(*(vector<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>
**)(pcVar2 + 8),param_1);
pbVar3 = (basic_json *)
(*(long *)(*(long *)(*(long *)(*(long *)(this + 0x10) + -8) + 8) + 8) + -0x10);
}
}
return pbVar3;
}
| |
42,296 | nlohmann::json_abi_v3_11_3::basic_json<std::map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>* nlohmann::json_abi_v3_11_3::detail::json_sax_dom_parser<nlohmann::json_abi_v3_11_3::basic_json<std::map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>, nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>>>::handle_value<double&>(double&) | 11AgReS1SoR11[P]Graph/Common/FiguresStorage/src/json.hpp | JSON_HEDLEY_RETURNS_NON_NULL
BasicJsonType* handle_value(Value&& v)
{
if (ref_stack.empty())
{
root = BasicJsonType(std::forward<Value>(v));
#if JSON_DIAGNOSTIC_POSITIONS
handle_diagnostic_positions_for_json_value(root);
#endif
return &root;
}
JSON_ASSERT(ref_stack.back()->is_array() || ref_stack.back()->is_object());
if (ref_stack.back()->is_array())
{
ref_stack.back()->m_data.m_value.array->emplace_back(std::forward<Value>(v));
#if JSON_DIAGNOSTIC_POSITIONS
handle_diagnostic_positions_for_json_value(ref_stack.back()->m_data.m_value.array->back());
#endif
return &(ref_stack.back()->m_data.m_value.array->back());
}
JSON_ASSERT(ref_stack.back()->is_object());
JSON_ASSERT(object_element);
*object_element = BasicJsonType(std::forward<Value>(v));
#if JSON_DIAGNOSTIC_POSITIONS
handle_diagnostic_positions_for_json_value(*object_element);
#endif
return object_element;
} | O2 | cpp | nlohmann::json_abi_v3_11_3::basic_json<std::map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>* nlohmann::json_abi_v3_11_3::detail::json_sax_dom_parser<nlohmann::json_abi_v3_11_3::basic_json<std::map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>, nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>>>::handle_value<double&>(double&):
pushq %r14
pushq %rbx
subq $0x28, %rsp
movq %rdi, %rbx
movq 0x10(%rdi), %rax
cmpq %rax, 0x8(%rdi)
je 0x29ff6
movq -0x8(%rax), %rax
movzbl (%rax), %ecx
cmpl $0x1, %ecx
je 0x2a01b
cmpl $0x2, %ecx
jne 0x2a04f
movq 0x8(%rax), %rdi
callq 0x1d020
movq 0x10(%rbx), %rax
movq -0x8(%rax), %rax
movq 0x8(%rax), %rax
movq 0x8(%rax), %rax
addq $-0x10, %rax
jmp 0x2a047
leaq 0x18(%rsp), %r14
movq %r14, %rdi
callq 0x1d750
movq (%rbx), %rdi
movq %r14, %rsi
callq 0x1c7e0
movq %r14, %rdi
callq 0x1d7b0
movq (%rbx), %rax
jmp 0x2a047
cmpq $0x0, 0x20(%rbx)
je 0x2a06e
leaq 0x8(%rsp), %r14
movq %r14, %rdi
callq 0x1d750
movq 0x20(%rbx), %rdi
movq %r14, %rsi
callq 0x1c7e0
movq %r14, %rdi
callq 0x1d7b0
movq 0x20(%rbx), %rax
addq $0x28, %rsp
popq %rbx
popq %r14
retq
leaq 0x3f96(%rip), %rdi # 0x2dfec
leaq 0x180a(%rip), %rsi # 0x2b867
leaq 0x591d(%rip), %rcx # 0x2f981
movl $0x237c, %edx # imm = 0x237C
callq 0x1cb30
leaq 0x3fcd(%rip), %rdi # 0x2e042
leaq 0x17eb(%rip), %rsi # 0x2b867
leaq 0x58fe(%rip), %rcx # 0x2f981
movl $0x238a, %edx # imm = 0x238A
callq 0x1cb30
nop
| _ZN8nlohmann16json_abi_v3_11_36detail19json_sax_dom_parserINS0_10basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEENS1_22iterator_input_adapterIN9__gnu_cxx17__normal_iteratorIPKcSB_EEEEE12handle_valueIRbEEPSF_OT_:
push r14
push rbx
sub rsp, 28h
mov rbx, rdi
mov rax, [rdi+10h]
cmp [rdi+8], rax
jz short loc_29FF6
mov rax, [rax-8]
movzx ecx, byte ptr [rax]
cmp ecx, 1
jz short loc_2A01B
cmp ecx, 2
jnz short loc_2A04F
mov rdi, [rax+8]
call __ZNSt6vectorIN8nlohmann16json_abi_v3_11_310basic_jsonISt3mapS_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES_IhSaIhEEvEESaISD_EE12emplace_backIJRbEEERSD_DpOT_; std::vector<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>::emplace_back<bool &>(bool &)
mov rax, [rbx+10h]
mov rax, [rax-8]
mov rax, [rax+8]
mov rax, [rax+8]
add rax, 0FFFFFFFFFFFFFFF0h
jmp short loc_2A047
loc_29FF6:
lea r14, [rsp+38h+var_20]
mov rdi, r14
call __ZN8nlohmann16json_abi_v3_11_310basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEC2IRbbTnNSt9enable_ifIXaantsr6detail13is_basic_jsonIT0_EE5valuesr6detail18is_compatible_typeISD_SH_EE5valueEiE4typeELi0EEEOT_
mov rdi, [rbx]
mov rsi, r14
call __ZN8nlohmann16json_abi_v3_11_310basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEaSESD_; nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::operator=(nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>)
mov rdi, r14
call __ZN8nlohmann16json_abi_v3_11_310basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvED2Ev; nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::~basic_json()
mov rax, [rbx]
jmp short loc_2A047
loc_2A01B:
cmp qword ptr [rbx+20h], 0
jz short loc_2A06E
lea r14, [rsp+38h+var_30]
mov rdi, r14
call __ZN8nlohmann16json_abi_v3_11_310basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEC2IRbbTnNSt9enable_ifIXaantsr6detail13is_basic_jsonIT0_EE5valuesr6detail18is_compatible_typeISD_SH_EE5valueEiE4typeELi0EEEOT_
mov rdi, [rbx+20h]
mov rsi, r14
call __ZN8nlohmann16json_abi_v3_11_310basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEaSESD_; nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::operator=(nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>)
mov rdi, r14
call __ZN8nlohmann16json_abi_v3_11_310basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvED2Ev; nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::~basic_json()
mov rax, [rbx+20h]
loc_2A047:
add rsp, 28h
pop rbx
pop r14
retn
loc_2A04F:
lea rdi, aRefStackBackIs; "ref_stack.back()->is_array() || ref_sta"...
lea rsi, aWorkspaceLlm4b_0; "/workspace/llm4binary/github/2025_star3"...
lea rcx, aBasicjsontypeN_1; "BasicJsonType *nlohmann::detail::json_s"...
mov edx, 237Ch
call ___assert_fail
loc_2A06E:
lea rdi, aObjectElement; "object_element"
lea rsi, aWorkspaceLlm4b_0; "/workspace/llm4binary/github/2025_star3"...
lea rcx, aBasicjsontypeN_1; "BasicJsonType *nlohmann::detail::json_s"...
mov edx, 238Ah
call ___assert_fail
| long long nlohmann::json_abi_v3_11_3::detail::json_sax_dom_parser<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>>::handle_value<bool &>(
_QWORD *a1,
long long a2)
{
long long v2; // rax
unsigned __int8 *v3; // rax
int v4; // ecx
_BYTE v6[16]; // [rsp+8h] [rbp-30h] BYREF
_BYTE v7[32]; // [rsp+18h] [rbp-20h] BYREF
v2 = a1[2];
if ( a1[1] == v2 )
{
_ZN8nlohmann16json_abi_v3_11_310basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEC2IRbbTnNSt9enable_ifIXaantsr6detail13is_basic_jsonIT0_EE5valuesr6detail18is_compatible_typeISD_SH_EE5valueEiE4typeELi0EEEOT_(
v7,
a2);
nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::operator=(
*a1,
v7);
nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::~basic_json(v7);
return *a1;
}
else
{
v3 = *(unsigned __int8 **)(v2 - 8);
v4 = *v3;
if ( v4 == 1 )
{
if ( !a1[4] )
__assert_fail(
"object_element",
"/workspace/llm4binary/github/2025_star3/11AgReS1SoR11[P]Graph/Common/FiguresStorage/src/json.hpp",
9098LL,
"BasicJsonType *nlohmann::detail::json_sax_dom_parser<nlohmann::basic_json<>, nlohmann::detail::iterator_input_"
"adapter<__gnu_cxx::__normal_iterator<const char *, std::basic_string<char>>>>::handle_value(Value &&) [BasicJs"
"onType = nlohmann::basic_json<>, InputAdapterType = nlohmann::detail::iterator_input_adapter<__gnu_cxx::__norm"
"al_iterator<const char *, std::basic_string<char>>>, Value = bool &]");
_ZN8nlohmann16json_abi_v3_11_310basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEC2IRbbTnNSt9enable_ifIXaantsr6detail13is_basic_jsonIT0_EE5valuesr6detail18is_compatible_typeISD_SH_EE5valueEiE4typeELi0EEEOT_(
v6,
a2);
nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::operator=(
a1[4],
v6);
nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::~basic_json(v6);
return a1[4];
}
else
{
if ( v4 != 2 )
__assert_fail(
"ref_stack.back()->is_array() || ref_stack.back()->is_object()",
"/workspace/llm4binary/github/2025_star3/11AgReS1SoR11[P]Graph/Common/FiguresStorage/src/json.hpp",
9084LL,
"BasicJsonType *nlohmann::detail::json_sax_dom_parser<nlohmann::basic_json<>, nlohmann::detail::iterator_input_"
"adapter<__gnu_cxx::__normal_iterator<const char *, std::basic_string<char>>>>::handle_value(Value &&) [BasicJs"
"onType = nlohmann::basic_json<>, InputAdapterType = nlohmann::detail::iterator_input_adapter<__gnu_cxx::__norm"
"al_iterator<const char *, std::basic_string<char>>>, Value = bool &]");
std::vector<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>::emplace_back<bool &>(*((_QWORD *)v3 + 1));
return *(_QWORD *)(*(_QWORD *)(*(_QWORD *)(a1[2] - 8LL) + 8LL) + 8LL) - 16LL;
}
}
}
| handle_value<bool&>:
PUSH R14
PUSH RBX
SUB RSP,0x28
MOV RBX,RDI
MOV RAX,qword ptr [RDI + 0x10]
CMP qword ptr [RDI + 0x8],RAX
JZ 0x00129ff6
MOV RAX,qword ptr [RAX + -0x8]
MOVZX ECX,byte ptr [RAX]
CMP ECX,0x1
JZ 0x0012a01b
CMP ECX,0x2
JNZ 0x0012a04f
MOV RDI,qword ptr [RAX + 0x8]
CALL 0x0011d020
MOV RAX,qword ptr [RBX + 0x10]
MOV RAX,qword ptr [RAX + -0x8]
MOV RAX,qword ptr [RAX + 0x8]
MOV RAX,qword ptr [RAX + 0x8]
ADD RAX,-0x10
JMP 0x0012a047
LAB_00129ff6:
LEA R14,[RSP + 0x18]
MOV RDI,R14
CALL 0x0011d750
MOV RDI,qword ptr [RBX]
MOV RSI,R14
CALL 0x0011c7e0
MOV RDI,R14
CALL 0x0011d7b0
MOV RAX,qword ptr [RBX]
JMP 0x0012a047
LAB_0012a01b:
CMP qword ptr [RBX + 0x20],0x0
JZ 0x0012a06e
LEA R14,[RSP + 0x8]
MOV RDI,R14
CALL 0x0011d750
MOV RDI,qword ptr [RBX + 0x20]
MOV RSI,R14
CALL 0x0011c7e0
MOV RDI,R14
CALL 0x0011d7b0
MOV RAX,qword ptr [RBX + 0x20]
LAB_0012a047:
ADD RSP,0x28
POP RBX
POP R14
RET
LAB_0012a04f:
LEA RDI,[0x12dfec]
LEA RSI,[0x12b867]
LEA RCX,[0x12f981]
MOV EDX,0x237c
CALL 0x0011cb30
LAB_0012a06e:
LEA RDI,[0x12e042]
LEA RSI,[0x12b867]
LEA RCX,[0x12f981]
MOV EDX,0x238a
CALL 0x0011cb30
|
/* nlohmann::json_abi_v3_11_3::basic_json<std::map, std::vector, std::__cxx11::string, bool, long,
unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer,
std::vector<unsigned char, std::allocator<unsigned char> >, void>*
nlohmann::json_abi_v3_11_3::detail::json_sax_dom_parser<nlohmann::json_abi_v3_11_3::basic_json<std::map,
std::vector, std::__cxx11::string, bool, long, unsigned long, double, std::allocator,
nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned
char> >, void>,
nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char
const*, std::__cxx11::string > > >::handle_value<bool&>(bool&) */
basic_json * __thiscall
nlohmann::json_abi_v3_11_3::detail::
json_sax_dom_parser<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char_const*,std::__cxx11::string>>>
::handle_value<bool&>
(json_sax_dom_parser<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char_const*,std::__cxx11::string>>>
*this,bool *param_1)
{
char cVar1;
char *pcVar2;
basic_json *pbVar3;
basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
local_30 [16];
basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
local_20 [16];
if (*(long *)(this + 8) == *(long *)(this + 0x10)) {
_ZN8nlohmann16json_abi_v3_11_310basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEC2IRbbTnNSt9enable_ifIXaantsr6detail13is_basic_jsonIT0_EE5valuesr6detail18is_compatible_typeISD_SH_EE5valueEiE4typeELi0EEEOT_
(local_20);
basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::operator=(*(basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
**)this,local_20);
basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::~basic_json(local_20);
pbVar3 = *(basic_json **)this;
}
else {
pcVar2 = *(char **)(*(long *)(this + 0x10) + -8);
cVar1 = *pcVar2;
if (cVar1 == '\x01') {
if (*(long *)(this + 0x20) == 0) {
/* WARNING: Subroutine does not return */
__assert_fail("object_element",
"/workspace/llm4binary/github/2025_star3/11AgReS1SoR11[P]Graph/Common/FiguresStorage/src/json.hpp"
,0x238a,
"BasicJsonType *nlohmann::detail::json_sax_dom_parser<nlohmann::basic_json<>, nlohmann::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<const char *, std::basic_string<char>>>>::handle_value(Value &&) [BasicJsonType = nlohmann::basic_json<>, InputAdapterType = nlohmann::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<const char *, std::basic_string<char>>>, Value = bool &]"
);
}
_ZN8nlohmann16json_abi_v3_11_310basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEC2IRbbTnNSt9enable_ifIXaantsr6detail13is_basic_jsonIT0_EE5valuesr6detail18is_compatible_typeISD_SH_EE5valueEiE4typeELi0EEEOT_
(local_30);
basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::operator=(*(basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
**)(this + 0x20),local_30);
basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::~basic_json(local_30);
pbVar3 = *(basic_json **)(this + 0x20);
}
else {
if (cVar1 != '\x02') {
/* WARNING: Subroutine does not return */
__assert_fail("ref_stack.back()->is_array() || ref_stack.back()->is_object()",
"/workspace/llm4binary/github/2025_star3/11AgReS1SoR11[P]Graph/Common/FiguresStorage/src/json.hpp"
,0x237c,
"BasicJsonType *nlohmann::detail::json_sax_dom_parser<nlohmann::basic_json<>, nlohmann::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<const char *, std::basic_string<char>>>>::handle_value(Value &&) [BasicJsonType = nlohmann::basic_json<>, InputAdapterType = nlohmann::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<const char *, std::basic_string<char>>>, Value = bool &]"
);
}
std::
vector<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>
::emplace_back<bool&>
(*(vector<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>
**)(pcVar2 + 8),param_1);
pbVar3 = (basic_json *)
(*(long *)(*(long *)(*(long *)(*(long *)(this + 0x10) + -8) + 8) + 8) + -0x10);
}
}
return pbVar3;
}
| |
42,297 | nlohmann::json_abi_v3_11_3::basic_json<std::map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>* nlohmann::json_abi_v3_11_3::detail::json_sax_dom_parser<nlohmann::json_abi_v3_11_3::basic_json<std::map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>, nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>>>::handle_value<double&>(double&) | 11AgReS1SoR11[P]Graph/Common/FiguresStorage/src/json.hpp | JSON_HEDLEY_RETURNS_NON_NULL
BasicJsonType* handle_value(Value&& v)
{
if (ref_stack.empty())
{
root = BasicJsonType(std::forward<Value>(v));
#if JSON_DIAGNOSTIC_POSITIONS
handle_diagnostic_positions_for_json_value(root);
#endif
return &root;
}
JSON_ASSERT(ref_stack.back()->is_array() || ref_stack.back()->is_object());
if (ref_stack.back()->is_array())
{
ref_stack.back()->m_data.m_value.array->emplace_back(std::forward<Value>(v));
#if JSON_DIAGNOSTIC_POSITIONS
handle_diagnostic_positions_for_json_value(ref_stack.back()->m_data.m_value.array->back());
#endif
return &(ref_stack.back()->m_data.m_value.array->back());
}
JSON_ASSERT(ref_stack.back()->is_object());
JSON_ASSERT(object_element);
*object_element = BasicJsonType(std::forward<Value>(v));
#if JSON_DIAGNOSTIC_POSITIONS
handle_diagnostic_positions_for_json_value(*object_element);
#endif
return object_element;
} | O3 | cpp | nlohmann::json_abi_v3_11_3::basic_json<std::map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>* nlohmann::json_abi_v3_11_3::detail::json_sax_dom_parser<nlohmann::json_abi_v3_11_3::basic_json<std::map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>, nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>>>::handle_value<double&>(double&):
pushq %r14
pushq %rbx
subq $0x28, %rsp
movq %rdi, %rbx
movq 0x10(%rdi), %rax
cmpq %rax, 0x8(%rdi)
je 0x204f5
movq -0x8(%rax), %rax
movzbl (%rax), %ecx
cmpl $0x1, %ecx
je 0x2053b
cmpl $0x2, %ecx
jne 0x2058e
movq 0x8(%rax), %rdi
callq 0x110a0
movq 0x10(%rbx), %rax
movq -0x8(%rax), %rax
movq 0x8(%rax), %rax
movq 0x8(%rax), %rax
addq $-0x10, %rax
jmp 0x20586
xorps %xmm0, %xmm0
leaq 0x10(%rsp), %r14
movaps %xmm0, (%r14)
movq (%rsi), %rsi
movq %r14, %rdi
callq 0x11930
movq %r14, %rdi
movl $0x1, %esi
callq 0x11430
movq (%rbx), %rdi
movq %r14, %rsi
callq 0x11490
movq %r14, %rdi
xorl %esi, %esi
callq 0x11430
movq %r14, %rdi
callq 0x11e20
movq (%rbx), %rax
jmp 0x20586
cmpq $0x0, 0x20(%rbx)
je 0x205ad
xorps %xmm0, %xmm0
movq %rsp, %r14
movaps %xmm0, (%r14)
movq (%rsi), %rsi
movq %r14, %rdi
callq 0x11930
movq %r14, %rdi
movl $0x1, %esi
callq 0x11430
movq 0x20(%rbx), %rdi
movq %r14, %rsi
callq 0x11490
movq %r14, %rdi
xorl %esi, %esi
callq 0x11430
movq %r14, %rdi
callq 0x11e20
movq 0x20(%rbx), %rax
addq $0x28, %rsp
popq %rbx
popq %r14
retq
leaq 0x36dc(%rip), %rdi # 0x23c71
leaq 0x12db(%rip), %rsi # 0x21877
leaq 0x5389(%rip), %rcx # 0x2592c
movl $0x237c, %edx # imm = 0x237C
callq 0x11610
leaq 0x3713(%rip), %rdi # 0x23cc7
leaq 0x12bc(%rip), %rsi # 0x21877
leaq 0x536a(%rip), %rcx # 0x2592c
movl $0x238a, %edx # imm = 0x238A
callq 0x11610
| _ZN8nlohmann16json_abi_v3_11_36detail19json_sax_dom_parserINS0_10basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEENS1_22iterator_input_adapterIN9__gnu_cxx17__normal_iteratorIPKcSB_EEEEE12handle_valueIRlEEPSF_OT_:
push r14
push rbx
sub rsp, 28h
mov rbx, rdi
mov rax, [rdi+10h]
cmp [rdi+8], rax
jz short loc_204F5
mov rax, [rax-8]
movzx ecx, byte ptr [rax]
cmp ecx, 1
jz short loc_2053B
cmp ecx, 2
jnz loc_2058E
mov rdi, [rax+8]
call __ZNSt6vectorIN8nlohmann16json_abi_v3_11_310basic_jsonISt3mapS_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES_IhSaIhEEvEESaISD_EE12emplace_backIJRlEEERSD_DpOT_; std::vector<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>::emplace_back<long &>(long &)
mov rax, [rbx+10h]
mov rax, [rax-8]
mov rax, [rax+8]
mov rax, [rax+8]
add rax, 0FFFFFFFFFFFFFFF0h
jmp loc_20586
loc_204F5:
xorps xmm0, xmm0
lea r14, [rsp+38h+var_28]
movaps xmmword ptr [r14], xmm0
mov rsi, [rsi]
mov rdi, r14
call __ZN8nlohmann16json_abi_v3_11_36detail20external_constructorILNS1_7value_tE5EE9constructINS0_10basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES8_IhSaIhEEvEEEEvRT_NSJ_16number_integer_tE; nlohmann::json_abi_v3_11_3::detail::external_constructor<(nlohmann::json_abi_v3_11_3::detail::value_t)5>::construct<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>(nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> &,nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::number_integer_t)
mov rdi, r14
mov esi, 1
call __ZNK8nlohmann16json_abi_v3_11_310basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE16assert_invariantEb; nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::assert_invariant(bool)
mov rdi, [rbx]
mov rsi, r14
call __ZN8nlohmann16json_abi_v3_11_310basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEaSESD_; nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::operator=(nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>)
mov rdi, r14
xor esi, esi
call __ZNK8nlohmann16json_abi_v3_11_310basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE16assert_invariantEb; nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::assert_invariant(bool)
mov rdi, r14
call __ZN8nlohmann16json_abi_v3_11_310basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE4dataD2Ev; nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::data::~data()
mov rax, [rbx]
jmp short loc_20586
loc_2053B:
cmp qword ptr [rbx+20h], 0
jz short loc_205AD
xorps xmm0, xmm0
mov r14, rsp
movaps xmmword ptr [r14], xmm0
mov rsi, [rsi]
mov rdi, r14
call __ZN8nlohmann16json_abi_v3_11_36detail20external_constructorILNS1_7value_tE5EE9constructINS0_10basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES8_IhSaIhEEvEEEEvRT_NSJ_16number_integer_tE; nlohmann::json_abi_v3_11_3::detail::external_constructor<(nlohmann::json_abi_v3_11_3::detail::value_t)5>::construct<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>(nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> &,nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::number_integer_t)
mov rdi, r14
mov esi, 1
call __ZNK8nlohmann16json_abi_v3_11_310basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE16assert_invariantEb; nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::assert_invariant(bool)
mov rdi, [rbx+20h]
mov rsi, r14
call __ZN8nlohmann16json_abi_v3_11_310basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEaSESD_; nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::operator=(nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>)
mov rdi, r14
xor esi, esi
call __ZNK8nlohmann16json_abi_v3_11_310basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE16assert_invariantEb; nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::assert_invariant(bool)
mov rdi, r14
call __ZN8nlohmann16json_abi_v3_11_310basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE4dataD2Ev; nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::data::~data()
mov rax, [rbx+20h]
loc_20586:
add rsp, 28h
pop rbx
pop r14
retn
loc_2058E:
lea rdi, aRefStackBackIs; "ref_stack.back()->is_array() || ref_sta"...
lea rsi, aWorkspaceLlm4b_0; "/workspace/llm4binary/github/2025_star3"...
lea rcx, aBasicjsontypeN_3; "BasicJsonType *nlohmann::detail::json_s"...
mov edx, 237Ch
call ___assert_fail
loc_205AD:
lea rdi, aObjectElement; "object_element"
lea rsi, aWorkspaceLlm4b_0; "/workspace/llm4binary/github/2025_star3"...
lea rcx, aBasicjsontypeN_3; "BasicJsonType *nlohmann::detail::json_s"...
mov edx, 238Ah
call ___assert_fail
| long long nlohmann::json_abi_v3_11_3::detail::json_sax_dom_parser<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>>::handle_value<long &>(
_QWORD *a1,
_QWORD *a2)
{
long long v2; // rax
unsigned __int8 *v3; // rax
int v4; // ecx
__int128 v6; // [rsp+0h] [rbp-38h] BYREF
_OWORD v7[2]; // [rsp+10h] [rbp-28h] BYREF
v2 = a1[2];
if ( a1[1] == v2 )
{
v7[0] = 0LL;
nlohmann::json_abi_v3_11_3::detail::external_constructor<(nlohmann::json_abi_v3_11_3::detail::value_t)5>::construct<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>(
v7,
*a2);
nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::assert_invariant(
v7,
1LL);
nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::operator=(
*a1,
v7);
nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::assert_invariant(
v7,
0LL);
nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::data::~data(v7);
return *a1;
}
else
{
v3 = *(unsigned __int8 **)(v2 - 8);
v4 = *v3;
if ( v4 == 1 )
{
if ( !a1[4] )
__assert_fail(
"object_element",
"/workspace/llm4binary/github/2025_star3/11AgReS1SoR11[P]Graph/Common/FiguresStorage/src/json.hpp",
9098LL,
"BasicJsonType *nlohmann::detail::json_sax_dom_parser<nlohmann::basic_json<>, nlohmann::detail::iterator_input_"
"adapter<__gnu_cxx::__normal_iterator<const char *, std::basic_string<char>>>>::handle_value(Value &&) [BasicJs"
"onType = nlohmann::basic_json<>, InputAdapterType = nlohmann::detail::iterator_input_adapter<__gnu_cxx::__norm"
"al_iterator<const char *, std::basic_string<char>>>, Value = long &]");
v6 = 0LL;
nlohmann::json_abi_v3_11_3::detail::external_constructor<(nlohmann::json_abi_v3_11_3::detail::value_t)5>::construct<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>(
&v6,
*a2);
nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::assert_invariant(
&v6,
1LL);
nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::operator=(
a1[4],
&v6);
nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::assert_invariant(
&v6,
0LL);
nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::data::~data(&v6);
return a1[4];
}
else
{
if ( v4 != 2 )
__assert_fail(
"ref_stack.back()->is_array() || ref_stack.back()->is_object()",
"/workspace/llm4binary/github/2025_star3/11AgReS1SoR11[P]Graph/Common/FiguresStorage/src/json.hpp",
9084LL,
"BasicJsonType *nlohmann::detail::json_sax_dom_parser<nlohmann::basic_json<>, nlohmann::detail::iterator_input_"
"adapter<__gnu_cxx::__normal_iterator<const char *, std::basic_string<char>>>>::handle_value(Value &&) [BasicJs"
"onType = nlohmann::basic_json<>, InputAdapterType = nlohmann::detail::iterator_input_adapter<__gnu_cxx::__norm"
"al_iterator<const char *, std::basic_string<char>>>, Value = long &]");
std::vector<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>::emplace_back<long &>(*((_QWORD *)v3 + 1));
return *(_QWORD *)(*(_QWORD *)(*(_QWORD *)(a1[2] - 8LL) + 8LL) + 8LL) - 16LL;
}
}
}
| handle_value<long&>:
PUSH R14
PUSH RBX
SUB RSP,0x28
MOV RBX,RDI
MOV RAX,qword ptr [RDI + 0x10]
CMP qword ptr [RDI + 0x8],RAX
JZ 0x001204f5
MOV RAX,qword ptr [RAX + -0x8]
MOVZX ECX,byte ptr [RAX]
CMP ECX,0x1
JZ 0x0012053b
CMP ECX,0x2
JNZ 0x0012058e
MOV RDI,qword ptr [RAX + 0x8]
CALL 0x001110a0
MOV RAX,qword ptr [RBX + 0x10]
MOV RAX,qword ptr [RAX + -0x8]
MOV RAX,qword ptr [RAX + 0x8]
MOV RAX,qword ptr [RAX + 0x8]
ADD RAX,-0x10
JMP 0x00120586
LAB_001204f5:
XORPS XMM0,XMM0
LEA R14,[RSP + 0x10]
MOVAPS xmmword ptr [R14],XMM0
MOV RSI,qword ptr [RSI]
MOV RDI,R14
CALL 0x00111930
MOV RDI,R14
MOV ESI,0x1
CALL 0x00111430
MOV RDI,qword ptr [RBX]
MOV RSI,R14
CALL 0x00111490
MOV RDI,R14
XOR ESI,ESI
CALL 0x00111430
MOV RDI,R14
CALL 0x00111e20
MOV RAX,qword ptr [RBX]
JMP 0x00120586
LAB_0012053b:
CMP qword ptr [RBX + 0x20],0x0
JZ 0x001205ad
XORPS XMM0,XMM0
MOV R14,RSP
MOVAPS xmmword ptr [R14],XMM0
MOV RSI,qword ptr [RSI]
MOV RDI,R14
CALL 0x00111930
MOV RDI,R14
MOV ESI,0x1
CALL 0x00111430
MOV RDI,qword ptr [RBX + 0x20]
MOV RSI,R14
CALL 0x00111490
MOV RDI,R14
XOR ESI,ESI
CALL 0x00111430
MOV RDI,R14
CALL 0x00111e20
MOV RAX,qword ptr [RBX + 0x20]
LAB_00120586:
ADD RSP,0x28
POP RBX
POP R14
RET
LAB_0012058e:
LEA RDI,[0x123c71]
LEA RSI,[0x121877]
LEA RCX,[0x12592c]
MOV EDX,0x237c
CALL 0x00111610
LAB_001205ad:
LEA RDI,[0x123cc7]
LEA RSI,[0x121877]
LEA RCX,[0x12592c]
MOV EDX,0x238a
CALL 0x00111610
|
/* nlohmann::json_abi_v3_11_3::basic_json<std::map, std::vector, std::__cxx11::string, bool, long,
unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer,
std::vector<unsigned char, std::allocator<unsigned char> >, void>*
nlohmann::json_abi_v3_11_3::detail::json_sax_dom_parser<nlohmann::json_abi_v3_11_3::basic_json<std::map,
std::vector, std::__cxx11::string, bool, long, unsigned long, double, std::allocator,
nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned
char> >, void>,
nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char
const*, std::__cxx11::string > > >::handle_value<long&>(long&) */
basic_json * __thiscall
nlohmann::json_abi_v3_11_3::detail::
json_sax_dom_parser<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char_const*,std::__cxx11::string>>>
::handle_value<long&>
(json_sax_dom_parser<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char_const*,std::__cxx11::string>>>
*this,long *param_1)
{
char cVar1;
char *pcVar2;
basic_json *pbVar3;
bool bVar4;
int8 local_38;
int8 uStack_30;
int8 local_28;
int8 uStack_20;
if (*(long *)(this + 8) == *(long *)(this + 0x10)) {
local_28 = 0;
uStack_20 = 0;
external_constructor<(nlohmann::json_abi_v3_11_3::detail::value_t)5>::
construct<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>
((data *)&local_28,*param_1);
bVar4 = SUB81((data *)&local_28,0);
basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::assert_invariant(bVar4);
basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::operator=(*(basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
**)this,(data *)&local_28);
basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::assert_invariant(bVar4);
basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::data::~data((data *)&local_28);
pbVar3 = *(basic_json **)this;
}
else {
pcVar2 = *(char **)(*(long *)(this + 0x10) + -8);
cVar1 = *pcVar2;
if (cVar1 == '\x01') {
if (*(long *)(this + 0x20) == 0) {
/* WARNING: Subroutine does not return */
__assert_fail("object_element",
"/workspace/llm4binary/github/2025_star3/11AgReS1SoR11[P]Graph/Common/FiguresStorage/src/json.hpp"
,0x238a,
"BasicJsonType *nlohmann::detail::json_sax_dom_parser<nlohmann::basic_json<>, nlohmann::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<const char *, std::basic_string<char>>>>::handle_value(Value &&) [BasicJsonType = nlohmann::basic_json<>, InputAdapterType = nlohmann::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<const char *, std::basic_string<char>>>, Value = long &]"
);
}
local_38 = 0;
uStack_30 = 0;
external_constructor<(nlohmann::json_abi_v3_11_3::detail::value_t)5>::
construct<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>
(&local_38,*param_1);
basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::assert_invariant(SUB81(&local_38,0));
basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::operator=(*(basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
**)(this + 0x20),&local_38);
basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::assert_invariant(SUB81(&local_38,0));
basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::data::~data((data *)&local_38);
pbVar3 = *(basic_json **)(this + 0x20);
}
else {
if (cVar1 != '\x02') {
/* WARNING: Subroutine does not return */
__assert_fail("ref_stack.back()->is_array() || ref_stack.back()->is_object()",
"/workspace/llm4binary/github/2025_star3/11AgReS1SoR11[P]Graph/Common/FiguresStorage/src/json.hpp"
,0x237c,
"BasicJsonType *nlohmann::detail::json_sax_dom_parser<nlohmann::basic_json<>, nlohmann::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<const char *, std::basic_string<char>>>>::handle_value(Value &&) [BasicJsonType = nlohmann::basic_json<>, InputAdapterType = nlohmann::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<const char *, std::basic_string<char>>>, Value = long &]"
);
}
std::
vector<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>
::emplace_back<long&>
(*(vector<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>
**)(pcVar2 + 8),param_1);
pbVar3 = (basic_json *)
(*(long *)(*(long *)(*(long *)(*(long *)(this + 0x10) + -8) + 8) + 8) + -0x10);
}
}
return pbVar3;
}
| |
42,298 | allocate_dynamic | eloqsql/mysys/array.c | my_bool allocate_dynamic(DYNAMIC_ARRAY *array, uint max_elements)
{
DBUG_ENTER("allocate_dynamic");
if (max_elements >= array->max_element)
{
uint size;
uchar *new_ptr;
size= (max_elements + array->alloc_increment)/array->alloc_increment;
size*= array->alloc_increment;
if (array->malloc_flags & MY_INIT_BUFFER_USED)
{
/*
In this senerio, the buffer is statically preallocated,
so we have to create an all-new malloc since we overflowed
*/
if (!(new_ptr= (uchar *) my_malloc(array->m_psi_key, size *
array->size_of_element,
MYF(array->malloc_flags | MY_WME))))
DBUG_RETURN(0);
memcpy(new_ptr, array->buffer,
array->elements * array->size_of_element);
array->malloc_flags&= ~MY_INIT_BUFFER_USED;
}
else if (!(new_ptr= (uchar*) my_realloc(array->m_psi_key,
array->buffer,size *
array->size_of_element,
MYF(MY_WME | MY_ALLOW_ZERO_PTR |
array->malloc_flags))))
DBUG_RETURN(TRUE);
array->buffer= new_ptr;
array->max_element= size;
}
DBUG_RETURN(FALSE);
} | O0 | c | allocate_dynamic:
pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movq %rdi, -0x10(%rbp)
movl %esi, -0x14(%rbp)
movl -0x14(%rbp), %eax
movq -0x10(%rbp), %rcx
cmpl 0xc(%rcx), %eax
jb 0xda725
movl -0x14(%rbp), %eax
movq -0x10(%rbp), %rcx
addl 0x10(%rcx), %eax
movq -0x10(%rbp), %rcx
xorl %edx, %edx
divl 0x10(%rcx)
movl %eax, -0x18(%rbp)
movq -0x10(%rbp), %rax
movl 0x10(%rax), %eax
imull -0x18(%rbp), %eax
movl %eax, -0x18(%rbp)
movq -0x10(%rbp), %rax
movq 0x20(%rax), %rax
andq $0x100, %rax # imm = 0x100
cmpq $0x0, %rax
je 0xda6ce
movq -0x10(%rbp), %rax
movl 0x18(%rax), %edi
movl -0x18(%rbp), %eax
movq -0x10(%rbp), %rcx
imull 0x14(%rcx), %eax
movl %eax, %eax
movl %eax, %esi
movq -0x10(%rbp), %rax
movq 0x20(%rax), %rdx
orq $0x10, %rdx
callq 0xf3210
movq %rax, -0x20(%rbp)
cmpq $0x0, %rax
jne 0xda693
jmp 0xda68a
movb $0x0, -0x1(%rbp)
jmp 0xda72b
movq -0x20(%rbp), %rdi
movq -0x10(%rbp), %rax
movq (%rax), %rsi
movq -0x10(%rbp), %rax
movl 0x8(%rax), %eax
movq -0x10(%rbp), %rcx
imull 0x14(%rcx), %eax
movl %eax, %eax
movl %eax, %edx
callq 0x2a090
movq -0x10(%rbp), %rax
movabsq $0xfffffeff, %rcx # imm = 0xFFFFFEFF
andq 0x20(%rax), %rcx
movq %rcx, 0x20(%rax)
jmp 0xda710
movq -0x10(%rbp), %rax
movl 0x18(%rax), %edi
movq -0x10(%rbp), %rax
movq (%rax), %rsi
movl -0x18(%rbp), %eax
movq -0x10(%rbp), %rcx
imull 0x14(%rcx), %eax
movl %eax, %eax
movl %eax, %edx
movq -0x10(%rbp), %rax
movq 0x20(%rax), %rcx
orq $0x50, %rcx
callq 0xf33e0
movq %rax, -0x20(%rbp)
cmpq $0x0, %rax
jne 0xda70e
jmp 0xda708
movb $0x1, -0x1(%rbp)
jmp 0xda72b
jmp 0xda710
movq -0x20(%rbp), %rcx
movq -0x10(%rbp), %rax
movq %rcx, (%rax)
movl -0x18(%rbp), %ecx
movq -0x10(%rbp), %rax
movl %ecx, 0xc(%rax)
jmp 0xda727
movb $0x0, -0x1(%rbp)
movb -0x1(%rbp), %al
addq $0x20, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
| allocate_dynamic:
push rbp
mov rbp, rsp
sub rsp, 20h
mov [rbp+var_10], rdi
mov [rbp+var_14], esi
mov eax, [rbp+var_14]
mov rcx, [rbp+var_10]
cmp eax, [rcx+0Ch]
jb loc_DA725
mov eax, [rbp+var_14]
mov rcx, [rbp+var_10]
add eax, [rcx+10h]
mov rcx, [rbp+var_10]
xor edx, edx
div dword ptr [rcx+10h]
mov [rbp+var_18], eax
mov rax, [rbp+var_10]
mov eax, [rax+10h]
imul eax, [rbp+var_18]
mov [rbp+var_18], eax
mov rax, [rbp+var_10]
mov rax, [rax+20h]
and rax, 100h
cmp rax, 0
jz short loc_DA6CE
mov rax, [rbp+var_10]
mov edi, [rax+18h]
mov eax, [rbp+var_18]
mov rcx, [rbp+var_10]
imul eax, [rcx+14h]
mov eax, eax
mov esi, eax
mov rax, [rbp+var_10]
mov rdx, [rax+20h]
or rdx, 10h
call my_malloc
mov [rbp+var_20], rax
cmp rax, 0
jnz short loc_DA693
jmp short $+2
loc_DA68A:
mov [rbp+var_1], 0
jmp loc_DA72B
loc_DA693:
mov rdi, [rbp+var_20]
mov rax, [rbp+var_10]
mov rsi, [rax]
mov rax, [rbp+var_10]
mov eax, [rax+8]
mov rcx, [rbp+var_10]
imul eax, [rcx+14h]
mov eax, eax
mov edx, eax
call _memcpy
mov rax, [rbp+var_10]
mov rcx, 0FFFFFEFFh
and rcx, [rax+20h]
mov [rax+20h], rcx
jmp short loc_DA710
loc_DA6CE:
mov rax, [rbp+var_10]
mov edi, [rax+18h]
mov rax, [rbp+var_10]
mov rsi, [rax]
mov eax, [rbp+var_18]
mov rcx, [rbp+var_10]
imul eax, [rcx+14h]
mov eax, eax
mov edx, eax
mov rax, [rbp+var_10]
mov rcx, [rax+20h]
or rcx, 50h
call my_realloc
mov [rbp+var_20], rax
cmp rax, 0
jnz short loc_DA70E
jmp short $+2
loc_DA708:
mov [rbp+var_1], 1
jmp short loc_DA72B
loc_DA70E:
jmp short $+2
loc_DA710:
mov rcx, [rbp+var_20]
mov rax, [rbp+var_10]
mov [rax], rcx
mov ecx, [rbp+var_18]
mov rax, [rbp+var_10]
mov [rax+0Ch], ecx
loc_DA725:
jmp short $+2
loc_DA727:
mov [rbp+var_1], 0
loc_DA72B:
mov al, [rbp+var_1]
add rsp, 20h
pop rbp
retn
| char allocate_dynamic(long long a1, unsigned int a2)
{
long long v3; // [rsp+0h] [rbp-20h]
unsigned int v4; // [rsp+8h] [rbp-18h]
if ( a2 < *(_DWORD *)(a1 + 12) )
return 0;
v4 = (*(_DWORD *)(a1 + 16) + a2) / *(_DWORD *)(a1 + 16) * *(_DWORD *)(a1 + 16);
if ( (*(_QWORD *)(a1 + 32) & 0x100LL) == 0 )
{
v3 = my_realloc(*(unsigned int *)(a1 + 24), *(_QWORD *)a1, *(_DWORD *)(a1 + 20) * v4, *(_QWORD *)(a1 + 32) | 0x50LL);
if ( !v3 )
return 1;
goto LABEL_8;
}
v3 = my_malloc(*(unsigned int *)(a1 + 24), *(_DWORD *)(a1 + 20) * v4, *(_QWORD *)(a1 + 32) | 0x10LL);
if ( v3 )
{
memcpy(v3, *(_QWORD *)a1, (unsigned int)(*(_DWORD *)(a1 + 20) * *(_DWORD *)(a1 + 8)));
*(_QWORD *)(a1 + 32) &= 0xFFFFFEFFuLL;
LABEL_8:
*(_QWORD *)a1 = v3;
*(_DWORD *)(a1 + 12) = v4;
return 0;
}
return 0;
}
| allocate_dynamic:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x20
MOV qword ptr [RBP + -0x10],RDI
MOV dword ptr [RBP + -0x14],ESI
MOV EAX,dword ptr [RBP + -0x14]
MOV RCX,qword ptr [RBP + -0x10]
CMP EAX,dword ptr [RCX + 0xc]
JC 0x001da725
MOV EAX,dword ptr [RBP + -0x14]
MOV RCX,qword ptr [RBP + -0x10]
ADD EAX,dword ptr [RCX + 0x10]
MOV RCX,qword ptr [RBP + -0x10]
XOR EDX,EDX
DIV dword ptr [RCX + 0x10]
MOV dword ptr [RBP + -0x18],EAX
MOV RAX,qword ptr [RBP + -0x10]
MOV EAX,dword ptr [RAX + 0x10]
IMUL EAX,dword ptr [RBP + -0x18]
MOV dword ptr [RBP + -0x18],EAX
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX + 0x20]
AND RAX,0x100
CMP RAX,0x0
JZ 0x001da6ce
MOV RAX,qword ptr [RBP + -0x10]
MOV EDI,dword ptr [RAX + 0x18]
MOV EAX,dword ptr [RBP + -0x18]
MOV RCX,qword ptr [RBP + -0x10]
IMUL EAX,dword ptr [RCX + 0x14]
MOV EAX,EAX
MOV ESI,EAX
MOV RAX,qword ptr [RBP + -0x10]
MOV RDX,qword ptr [RAX + 0x20]
OR RDX,0x10
CALL 0x001f3210
MOV qword ptr [RBP + -0x20],RAX
CMP RAX,0x0
JNZ 0x001da693
JMP 0x001da68a
LAB_001da68a:
MOV byte ptr [RBP + -0x1],0x0
JMP 0x001da72b
LAB_001da693:
MOV RDI,qword ptr [RBP + -0x20]
MOV RAX,qword ptr [RBP + -0x10]
MOV RSI,qword ptr [RAX]
MOV RAX,qword ptr [RBP + -0x10]
MOV EAX,dword ptr [RAX + 0x8]
MOV RCX,qword ptr [RBP + -0x10]
IMUL EAX,dword ptr [RCX + 0x14]
MOV EAX,EAX
MOV EDX,EAX
CALL 0x0012a090
MOV RAX,qword ptr [RBP + -0x10]
MOV RCX,0xfffffeff
AND RCX,qword ptr [RAX + 0x20]
MOV qword ptr [RAX + 0x20],RCX
JMP 0x001da710
LAB_001da6ce:
MOV RAX,qword ptr [RBP + -0x10]
MOV EDI,dword ptr [RAX + 0x18]
MOV RAX,qword ptr [RBP + -0x10]
MOV RSI,qword ptr [RAX]
MOV EAX,dword ptr [RBP + -0x18]
MOV RCX,qword ptr [RBP + -0x10]
IMUL EAX,dword ptr [RCX + 0x14]
MOV EAX,EAX
MOV EDX,EAX
MOV RAX,qword ptr [RBP + -0x10]
MOV RCX,qword ptr [RAX + 0x20]
OR RCX,0x50
CALL 0x001f33e0
MOV qword ptr [RBP + -0x20],RAX
CMP RAX,0x0
JNZ 0x001da70e
JMP 0x001da708
LAB_001da708:
MOV byte ptr [RBP + -0x1],0x1
JMP 0x001da72b
LAB_001da70e:
JMP 0x001da710
LAB_001da710:
MOV RCX,qword ptr [RBP + -0x20]
MOV RAX,qword ptr [RBP + -0x10]
MOV qword ptr [RAX],RCX
MOV ECX,dword ptr [RBP + -0x18]
MOV RAX,qword ptr [RBP + -0x10]
MOV dword ptr [RAX + 0xc],ECX
LAB_001da725:
JMP 0x001da727
LAB_001da727:
MOV byte ptr [RBP + -0x1],0x0
LAB_001da72b:
MOV AL,byte ptr [RBP + -0x1]
ADD RSP,0x20
POP RBP
RET
|
int1 allocate_dynamic(int8 *param_1,uint param_2)
{
int iVar1;
void *local_28;
if (*(uint *)((long)param_1 + 0xc) <= param_2) {
iVar1 = *(int *)(param_1 + 2) * ((param_2 + *(int *)(param_1 + 2)) / *(uint *)(param_1 + 2));
if ((param_1[4] & 0x100) == 0) {
local_28 = (void *)my_realloc(*(int4 *)(param_1 + 3),*param_1,
iVar1 * *(int *)((long)param_1 + 0x14),param_1[4] | 0x50);
if (local_28 == (void *)0x0) {
return 1;
}
}
else {
local_28 = (void *)my_malloc(*(int4 *)(param_1 + 3),
iVar1 * *(int *)((long)param_1 + 0x14),param_1[4] | 0x10);
if (local_28 == (void *)0x0) {
return 0;
}
memcpy(local_28,(void *)*param_1,
(ulong)(uint)(*(int *)(param_1 + 1) * *(int *)((long)param_1 + 0x14)));
param_1[4] = param_1[4] & 0xfffffeff;
}
*param_1 = local_28;
*(int *)((long)param_1 + 0xc) = iVar1;
}
return 0;
}
| |
42,299 | bf_mul_log2_radix | bluesky950520[P]quickjs/libbf.c | slimb_t bf_mul_log2_radix(slimb_t a1, unsigned int radix, int is_inv,
int is_ceil1)
{
int is_neg;
limb_t a;
BOOL is_ceil;
is_ceil = is_ceil1;
a = a1;
if (a1 < 0) {
a = -a;
is_neg = 1;
} else {
is_neg = 0;
}
is_ceil ^= is_neg;
if ((radix & (radix - 1)) == 0) {
int radix_bits;
/* radix is a power of two */
radix_bits = ceil_log2(radix);
if (is_inv) {
if (is_ceil)
a += radix_bits - 1;
a = a / radix_bits;
} else {
a = a * radix_bits;
}
} else {
const uint32_t *tab;
limb_t b0, b1;
dlimb_t t;
if (is_inv) {
tab = inv_log2_radix[radix - 2];
#if LIMB_BITS == 32
b1 = tab[0];
b0 = tab[1];
#else
b1 = ((limb_t)tab[0] << 32) | tab[1];
b0 = (limb_t)tab[2] << 32;
#endif
t = (dlimb_t)b0 * (dlimb_t)a;
t = (dlimb_t)b1 * (dlimb_t)a + (t >> LIMB_BITS);
a = t >> (LIMB_BITS - 1);
} else {
b0 = log2_radix[radix - 2];
t = (dlimb_t)b0 * (dlimb_t)a;
a = t >> (LIMB_BITS - 3);
}
/* a = floor(result) and 'result' cannot be an integer */
a += is_ceil;
}
if (is_neg)
a = -a;
return a;
} | O1 | c | bf_mul_log2_radix:
movq %rdi, %r8
negq %r8
cmovsq %rdi, %r8
movq %rdi, %r9
shrq $0x3f, %r9
leal -0x1(%rsi), %eax
testl %eax, %esi
jne 0x88df9
movl %esi, %eax
decq %rax
je 0x88e3e
bsrq %rax, %r10
xorq $0x3f, %r10
jmp 0x88e44
xorl %ecx, %r9d
addl $-0x2, %esi
testl %edx, %edx
je 0x88e79
leaq (%rsi,%rsi,2), %rax
leaq 0x184d2(%rip), %rdx # 0xa12e0
movl (%rdx,%rax,4), %esi
movl 0x4(%rdx,%rax,4), %ecx
shlq $0x20, %rsi
orq %rsi, %rcx
movl 0x8(%rdx,%rax,4), %eax
shlq $0x20, %rax
mulq %r8
movq %rdx, %rsi
movq %rcx, %rax
mulq %r8
addq %rsi, %rax
adcq $0x0, %rdx
shldq $0x1, %rax, %rdx
jmp 0x88e8c
movl $0x40, %r10d
movl $0x40, %eax
subl %r10d, %eax
xorl %r10d, %r10d
cmpl $0x2, %esi
cmovbl %r10d, %eax
testl %edx, %edx
je 0x88e94
leal -0x1(%rax), %edx
cmpl %ecx, %r9d
cmovel %r10d, %edx
movslq %edx, %rcx
addq %rcx, %r8
movl %eax, %ecx
movq %r8, %rax
xorl %edx, %edx
divq %rcx
movq %rax, %r8
jmp 0x88e9a
leaq 0x18610(%rip), %rcx # 0xa1490
movq %r8, %rax
mulq (%rcx,%rsi,8)
shldq $0x3, %rax, %rdx
movslq %r9d, %r8
addq %rdx, %r8
jmp 0x88e9a
movl %eax, %eax
imulq %rax, %r8
movq %r8, %rax
negq %rax
testq %rdi, %rdi
cmovnsq %r8, %rax
retq
| bf_mul_log2_radix:
mov r8, rdi
neg r8
cmovs r8, rdi
mov r9, rdi
shr r9, 3Fh
lea eax, [rsi-1]
test esi, eax
jnz short loc_88DF9
mov eax, esi
dec rax
jz short loc_88E3E
bsr r10, rax
xor r10, 3Fh
jmp short loc_88E44
loc_88DF9:
xor r9d, ecx
add esi, 0FFFFFFFEh
test edx, edx
jz short loc_88E79
lea rax, [rsi+rsi*2]
lea rdx, inv_log2_radix
mov esi, [rdx+rax*4]
mov ecx, [rdx+rax*4+4]
shl rsi, 20h
or rcx, rsi
mov eax, [rdx+rax*4+8]
shl rax, 20h
mul r8
mov rsi, rdx
mov rax, rcx
mul r8
add rax, rsi
adc rdx, 0
shld rdx, rax, 1
jmp short loc_88E8C
loc_88E3E:
mov r10d, 40h ; '@'
loc_88E44:
mov eax, 40h ; '@'
sub eax, r10d
xor r10d, r10d
cmp esi, 2
cmovb eax, r10d
test edx, edx
jz short loc_88E94
lea edx, [rax-1]
cmp r9d, ecx
cmovz edx, r10d
movsxd rcx, edx
add r8, rcx
mov ecx, eax
mov rax, r8
xor edx, edx
div rcx
mov r8, rax
jmp short loc_88E9A
loc_88E79:
lea rcx, log2_radix
mov rax, r8
mul qword ptr [rcx+rsi*8]
shld rdx, rax, 3
loc_88E8C:
movsxd r8, r9d
add r8, rdx
jmp short loc_88E9A
loc_88E94:
mov eax, eax
imul r8, rax
loc_88E9A:
mov rax, r8
neg rax
test rdi, rdi
cmovns rax, r8
retn
| unsigned long long bf_mul_log2_radix(long long a1, unsigned int a2, int a3, int a4)
{
long long v4; // r8
unsigned long long v5; // r9
unsigned long long v6; // r10
int v7; // r10d
int v8; // r9d
long long v9; // rsi
long long v10; // rdx
unsigned int v11; // eax
signed int v12; // edx
unsigned long long v13; // r8
unsigned long long result; // rax
v4 = -a1;
if ( a1 > 0 )
v4 = a1;
v5 = (unsigned long long)a1 >> 63;
if ( ((a2 - 1) & a2) != 0 )
{
v8 = a4 ^ v5;
v9 = a2 - 2;
if ( a3 )
v10 = (__int128)((((unsigned long long)v4 * (unsigned __int128)((unsigned long long)inv_log2_radix[3 * v9 + 2] << 32)) >> 64)
+ (unsigned long long)v4
* (unsigned __int128)(((unsigned long long)inv_log2_radix[3 * v9] << 32) | inv_log2_radix[3 * v9 + 1])) >> 63;
else
v10 = (__int128)(log2_radix[v9] * (unsigned __int128)(unsigned long long)v4) >> 61;
v13 = v10 + v8;
}
else
{
if ( a2 == 1LL )
{
v7 = 64;
}
else
{
_BitScanReverse64(&v6, a2 - 1LL);
v7 = v6 ^ 0x3F;
}
v11 = 64 - v7;
if ( a2 < 2 )
v11 = 0;
if ( a3 )
{
v12 = v11 - 1;
if ( (_DWORD)v5 == a4 )
v12 = 0;
v13 = (v12 + v4) / (unsigned long long)v11;
}
else
{
v13 = v11 * v4;
}
}
result = -(long long)v13;
if ( a1 >= 0 )
return v13;
return result;
}
| bf_mul_log2_radix:
MOV R8,RDI
NEG R8
CMOVS R8,RDI
MOV R9,RDI
SHR R9,0x3f
LEA EAX,[RSI + -0x1]
TEST ESI,EAX
JNZ 0x00188df9
MOV EAX,ESI
DEC RAX
JZ 0x00188e3e
BSR R10,RAX
XOR R10,0x3f
JMP 0x00188e44
LAB_00188df9:
XOR R9D,ECX
ADD ESI,-0x2
TEST EDX,EDX
JZ 0x00188e79
LEA RAX,[RSI + RSI*0x2]
LEA RDX,[0x1a12e0]
MOV ESI,dword ptr [RDX + RAX*0x4]
MOV ECX,dword ptr [RDX + RAX*0x4 + 0x4]
SHL RSI,0x20
OR RCX,RSI
MOV EAX,dword ptr [RDX + RAX*0x4 + 0x8]
SHL RAX,0x20
MUL R8
MOV RSI,RDX
MOV RAX,RCX
MUL R8
ADD RAX,RSI
ADC RDX,0x0
SHLD RDX,RAX,0x1
JMP 0x00188e8c
LAB_00188e3e:
MOV R10D,0x40
LAB_00188e44:
MOV EAX,0x40
SUB EAX,R10D
XOR R10D,R10D
CMP ESI,0x2
CMOVC EAX,R10D
TEST EDX,EDX
JZ 0x00188e94
LEA EDX,[RAX + -0x1]
CMP R9D,ECX
CMOVZ EDX,R10D
MOVSXD RCX,EDX
ADD R8,RCX
MOV ECX,EAX
MOV RAX,R8
XOR EDX,EDX
DIV RCX
MOV R8,RAX
JMP 0x00188e9a
LAB_00188e79:
LEA RCX,[0x1a1490]
MOV RAX,R8
MUL qword ptr [RCX + RSI*0x8]
SHLD RDX,RAX,0x3
LAB_00188e8c:
MOVSXD R8,R9D
ADD R8,RDX
JMP 0x00188e9a
LAB_00188e94:
MOV EAX,EAX
IMUL R8,RAX
LAB_00188e9a:
MOV RAX,R8
NEG RAX
TEST RDI,RDI
CMOVNS RAX,R8
RET
|
ulong bf_mul_log2_radix(ulong param_1,uint param_2,int param_3,uint param_4)
{
long lVar1;
int1 auVar2 [16];
int1 auVar3 [16];
int1 auVar4 [16];
int1 auVar5 [16];
int1 auVar6 [16];
int1 auVar7 [16];
ulong uVar8;
ulong uVar9;
int iVar10;
uint uVar11;
uint uVar12;
uVar9 = -param_1;
if (0 < (long)param_1) {
uVar9 = param_1;
}
uVar11 = -(int)((long)param_1 >> 0x3f);
if ((param_2 & param_2 - 1) == 0) {
uVar8 = (ulong)param_2 - 1;
if (uVar8 == 0) {
uVar12 = 0x40;
}
else {
lVar1 = 0x3f;
if (uVar8 != 0) {
for (; uVar8 >> lVar1 == 0; lVar1 = lVar1 + -1) {
}
}
uVar12 = (uint)lVar1 ^ 0x3f;
}
uVar12 = 0x40 - uVar12;
if (param_2 < 2) {
uVar12 = 0;
}
if (param_3 == 0) {
uVar9 = uVar9 * uVar12;
}
else {
iVar10 = uVar12 - 1;
if (uVar11 == param_4) {
iVar10 = 0;
}
uVar9 = (uVar9 + (long)iVar10) / (ulong)uVar12;
}
}
else {
uVar8 = (ulong)(param_2 - 2);
if (param_3 == 0) {
auVar3._8_8_ = 0;
auVar3._0_8_ = uVar9;
auVar6._8_8_ = 0;
auVar6._0_8_ = *(ulong *)(log2_radix + uVar8 * 8);
uVar9 = SUB168(auVar3 * auVar6,8) << 3 | SUB168(auVar3 * auVar6,0) >> 0x3d;
}
else {
auVar2._4_4_ = *(int4 *)(inv_log2_radix + uVar8 * 0xc);
auVar2._0_4_ = *(int4 *)(inv_log2_radix + uVar8 * 0xc + 4);
auVar4._8_8_ = 0;
auVar4._0_8_ = uVar9;
auVar7._8_8_ = 0;
auVar7._0_8_ = SUB168((ZEXT416(*(uint *)(inv_log2_radix + uVar8 * 0xc + 8)) << 0x20) * auVar4,
8);
auVar2._8_8_ = 0;
auVar5._8_8_ = 0;
auVar5._0_8_ = uVar9;
auVar7 = auVar2 * auVar5 + auVar7;
uVar9 = auVar7._8_8_ << 1 | auVar7._0_8_ >> 0x3f;
}
uVar9 = (long)(int)(uVar11 ^ param_4) + uVar9;
}
uVar8 = -uVar9;
if (-1 < (long)param_1) {
uVar8 = uVar9;
}
return uVar8;
}
|
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.