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,600 | nglog::TruncateStdoutStderr() | ng-log[P]ng-log/src/logging.cc | void TruncateStdoutStderr() {
#ifdef HAVE_UNISTD_H
uint64 limit = MaxLogSize() << 20U;
uint64 keep = 1U << 20U;
TruncateLogFile("/proc/self/fd/1", limit, keep);
TruncateLogFile("/proc/self/fd/2", limit, keep);
#else
LOG(ERROR) << "No log truncation support.";
#endif
} | O0 | cpp | nglog::TruncateStdoutStderr():
pushq %rbp
movq %rsp, %rbp
subq $0x10, %rsp
callq 0x18380
shll $0x14, %eax
movl %eax, %eax
movq %rax, -0x8(%rbp)
movq $0x100000, -0x10(%rbp) # imm = 0x100000
movq -0x8(%rbp), %rsi
movq -0x10(%rbp), %rdx
leaq 0x39842(%rip), %rdi # 0x51b9f
callq 0x179d0
movq -0x8(%rbp), %rsi
movq -0x10(%rbp), %rdx
leaq 0x3983e(%rip), %rdi # 0x51baf
callq 0x179d0
addq $0x10, %rsp
popq %rbp
retq
nopl (%rax)
| _ZN5nglog20TruncateStdoutStderrEv:
push rbp
mov rbp, rsp
sub rsp, 10h
call _ZN5nglogL10MaxLogSizeEv; nglog::MaxLogSize(void)
shl eax, 14h
mov eax, eax
mov [rbp+var_8], rax
mov [rbp+var_10], 100000h
mov rsi, [rbp+var_8]; char *
mov rdx, [rbp+var_10]; unsigned __int64
lea rdi, aProcSelfFd1; "/proc/self/fd/1"
call _ZN5nglog15TruncateLogFileEPKcmm; nglog::TruncateLogFile(char const*,ulong,ulong)
mov rsi, [rbp+var_8]; char *
mov rdx, [rbp+var_10]; unsigned __int64
lea rdi, aProcSelfFd2; "/proc/self/fd/2"
call _ZN5nglog15TruncateLogFileEPKcmm; nglog::TruncateLogFile(char const*,ulong,ulong)
add rsp, 10h
pop rbp
retn
| void nglog::TruncateStdoutStderr(nglog *this)
{
char *v1; // [rsp+8h] [rbp-8h]
v1 = (char *)((unsigned int)nglog::MaxLogSize(this) << 20);
nglog::TruncateLogFile((nglog *)"/proc/self/fd/1", v1, 0x100000LL);
nglog::TruncateLogFile((nglog *)"/proc/self/fd/2", v1, 0x100000LL);
}
| TruncateStdoutStderr:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x10
CALL 0x00118380
SHL EAX,0x14
MOV EAX,EAX
MOV qword ptr [RBP + -0x8],RAX
MOV qword ptr [RBP + -0x10],0x100000
MOV RSI,qword ptr [RBP + -0x8]
MOV RDX,qword ptr [RBP + -0x10]
LEA RDI,[0x151b9f]
CALL 0x001179d0
MOV RSI,qword ptr [RBP + -0x8]
MOV RDX,qword ptr [RBP + -0x10]
LEA RDI,[0x151baf]
CALL 0x001179d0
ADD RSP,0x10
POP RBP
RET
|
/* nglog::TruncateStdoutStderr() */
void nglog::TruncateStdoutStderr(void)
{
int iVar1;
iVar1 = MaxLogSize();
TruncateLogFile("/proc/self/fd/1",(ulong)(uint)(iVar1 << 0x14),0x100000);
TruncateLogFile("/proc/self/fd/2",(ulong)(uint)(iVar1 << 0x14),0x100000);
return;
}
| |
42,601 | inline_mysql_cond_init | eloqsql/include/mysql/psi/mysql_thread.h | static inline int inline_mysql_cond_init(
#ifdef HAVE_PSI_COND_INTERFACE
PSI_cond_key key,
#endif
mysql_cond_t *that,
const pthread_condattr_t *attr)
{
#ifdef HAVE_PSI_COND_INTERFACE
that->m_psi= PSI_COND_CALL(init_cond)(key, &that->m_cond);
#else
that->m_psi= NULL;
#endif
return pthread_cond_init(&that->m_cond, attr);
} | O0 | c | inline_mysql_cond_init:
pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movl %edi, -0x4(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
leaq 0x1b48ee(%rip), %rax # 0x234258
movq (%rax), %rax
movq 0x60(%rax), %rax
movl -0x4(%rbp), %edi
movq -0x10(%rbp), %rsi
callq *%rax
movq %rax, %rcx
movq -0x10(%rbp), %rax
movq %rcx, 0x30(%rax)
movq -0x10(%rbp), %rdi
movq -0x18(%rbp), %rsi
callq 0x36400
addq $0x20, %rsp
popq %rbp
retq
nopl (%rax,%rax)
| inline_mysql_cond_init:
push rbp
mov rbp, rsp
sub rsp, 20h
mov [rbp+var_4], edi
mov [rbp+var_10], rsi
mov [rbp+var_18], rdx
lea rax, PSI_server
mov rax, [rax]
mov rax, [rax+60h]
mov edi, [rbp+var_4]
mov rsi, [rbp+var_10]
call rax
mov rcx, rax
mov rax, [rbp+var_10]
mov [rax+30h], rcx
mov rdi, [rbp+var_10]
mov rsi, [rbp+var_18]
call _pthread_cond_init
add rsp, 20h
pop rbp
retn
| long long inline_mysql_cond_init(unsigned int a1, long long a2, long long a3)
{
*(_QWORD *)(a2 + 48) = (*((long long ( **)(_QWORD, long long))PSI_server + 12))(a1, a2);
return pthread_cond_init(a2, a3);
}
| inline_mysql_cond_init:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x20
MOV dword ptr [RBP + -0x4],EDI
MOV qword ptr [RBP + -0x10],RSI
MOV qword ptr [RBP + -0x18],RDX
LEA RAX,[0x334258]
MOV RAX,qword ptr [RAX]
MOV RAX,qword ptr [RAX + 0x60]
MOV EDI,dword ptr [RBP + -0x4]
MOV RSI,qword ptr [RBP + -0x10]
CALL RAX
MOV RCX,RAX
MOV RAX,qword ptr [RBP + -0x10]
MOV qword ptr [RAX + 0x30],RCX
MOV RDI,qword ptr [RBP + -0x10]
MOV RSI,qword ptr [RBP + -0x18]
CALL 0x00136400
ADD RSP,0x20
POP RBP
RET
|
void inline_mysql_cond_init(int4 param_1,pthread_cond_t *param_2,pthread_condattr_t *param_3)
{
longlong lVar1;
lVar1 = (**(code **)(PSI_server + 0x60))(param_1,param_2);
param_2[1].__align = lVar1;
pthread_cond_init(param_2,param_3);
return;
}
| |
42,602 | my_strnncoll_latin1_de | eloqsql/strings/ctype-latin1.c | static int my_strnncoll_latin1_de(CHARSET_INFO *cs __attribute__((unused)),
const uchar *a, size_t a_length,
const uchar *b, size_t b_length,
my_bool b_is_prefix)
{
const uchar *a_end= a + a_length;
const uchar *b_end= b + b_length;
uchar a_char, a_extend= 0, b_char, b_extend= 0;
while ((a < a_end || a_extend) && (b < b_end || b_extend))
{
if (a_extend)
{
a_char=a_extend; a_extend=0;
}
else
{
a_extend=combo2map[*a];
a_char=combo1map[*a++];
}
if (b_extend)
{
b_char=b_extend; b_extend=0;
}
else
{
b_extend=combo2map[*b];
b_char=combo1map[*b++];
}
if (a_char != b_char)
return (int) a_char - (int) b_char;
}
/*
A simple test of string lengths won't work -- we test to see
which string ran out first
*/
return ((a < a_end || a_extend) ? (b_is_prefix ? 0 : 1) :
(b < b_end || b_extend) ? -1 : 0);
} | O3 | c | my_strnncoll_latin1_de:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
addq %rsi, %rdx
addq %rcx, %r8
xorl %r10d, %r10d
leaq 0x176368(%rip), %rax # 0x248cd0
leaq 0x176261(%rip), %rdi # 0x248bd0
xorl %r11d, %r11d
cmpq %r8, %rcx
setb %r14b
testb %r11b, %r11b
setne %bl
orb %r14b, %bl
cmpq %rdx, %rsi
jb 0xd298c
testb %r10b, %r10b
je 0xd29d6
testb %bl, %bl
je 0xd29dd
testb %r10b, %r10b
je 0xd299d
movl %r10d, %ebx
xorl %r10d, %r10d
jmp 0xd29aa
movzbl (%rsi), %ebx
movb (%rbx,%rax), %r10b
incq %rsi
movb (%rbx,%rdi), %bl
testb %r11b, %r11b
je 0xd29b7
movl %r11d, %r14d
xorl %r11d, %r11d
jmp 0xd29c6
movzbl (%rcx), %r14d
movb (%r14,%rax), %r11b
incq %rcx
movb (%r14,%rdi), %r14b
cmpb %r14b, %bl
je 0xd2972
movzbl %r14b, %ecx
movzbl %bl, %eax
subl %ecx, %eax
jmp 0xd29e5
movzbl %bl, %eax
negl %eax
jmp 0xd29e5
xorl %eax, %eax
testb %r9b, %r9b
sete %al
popq %rbx
popq %r14
popq %rbp
retq
| my_strnncoll_latin1_de:
push rbp
mov rbp, rsp
push r14
push rbx
add rdx, rsi
add r8, rcx
xor r10d, r10d
lea rax, combo2map
lea rdi, combo1map
xor r11d, r11d
loc_D2972:
cmp rcx, r8
setb r14b
test r11b, r11b
setnz bl
or bl, r14b
cmp rsi, rdx
jb short loc_D298C
test r10b, r10b
jz short loc_D29D6
loc_D298C:
test bl, bl
jz short loc_D29DD
test r10b, r10b
jz short loc_D299D
mov ebx, r10d
xor r10d, r10d
jmp short loc_D29AA
loc_D299D:
movzx ebx, byte ptr [rsi]
mov r10b, [rbx+rax]
inc rsi
mov bl, [rbx+rdi]
loc_D29AA:
test r11b, r11b
jz short loc_D29B7
mov r14d, r11d
xor r11d, r11d
jmp short loc_D29C6
loc_D29B7:
movzx r14d, byte ptr [rcx]
mov r11b, [r14+rax]
inc rcx
mov r14b, [r14+rdi]
loc_D29C6:
cmp bl, r14b
jz short loc_D2972
movzx ecx, r14b
movzx eax, bl
sub eax, ecx
jmp short loc_D29E5
loc_D29D6:
movzx eax, bl
neg eax
jmp short loc_D29E5
loc_D29DD:
xor eax, eax
test r9b, r9b
setz al
loc_D29E5:
pop rbx
pop r14
pop rbp
retn
| long long my_strnncoll_latin1_de(
long long a1,
unsigned __int8 *a2,
long long a3,
unsigned __int8 *a4,
long long a5,
char a6)
{
unsigned __int8 *v6; // rdx
unsigned __int8 *v7; // r8
unsigned __int8 v8; // r10
unsigned __int8 v9; // r11
bool v10; // bl
unsigned __int8 v11; // bl
long long v12; // rbx
unsigned __int8 v13; // r14
long long v14; // r14
v6 = &a2[a3];
v7 = &a4[a5];
v8 = 0;
v9 = 0;
while ( 1 )
{
v10 = a4 < v7 || v9 != 0;
if ( a2 >= v6 && !v8 )
return (unsigned int)-v10;
if ( !v10 )
break;
if ( v8 )
{
v11 = v8;
v8 = 0;
}
else
{
v12 = *a2;
v8 = combo2map[v12];
++a2;
v11 = combo1map[v12];
}
if ( v9 )
{
v13 = v9;
v9 = 0;
}
else
{
v14 = *a4;
v9 = combo2map[v14];
++a4;
v13 = combo1map[v14];
}
if ( v11 != v13 )
return v11 - (unsigned int)v13;
}
return a6 == 0;
}
| my_strnncoll_latin1_de:
PUSH RBP
MOV RBP,RSP
PUSH R14
PUSH RBX
ADD RDX,RSI
ADD R8,RCX
XOR R10D,R10D
LEA RAX,[0x348cd0]
LEA RDI,[0x348bd0]
XOR R11D,R11D
LAB_001d2972:
CMP RCX,R8
SETC R14B
TEST R11B,R11B
SETNZ BL
OR BL,R14B
CMP RSI,RDX
JC 0x001d298c
TEST R10B,R10B
JZ 0x001d29d6
LAB_001d298c:
TEST BL,BL
JZ 0x001d29dd
TEST R10B,R10B
JZ 0x001d299d
MOV EBX,R10D
XOR R10D,R10D
JMP 0x001d29aa
LAB_001d299d:
MOVZX EBX,byte ptr [RSI]
MOV R10B,byte ptr [RBX + RAX*0x1]
INC RSI
MOV BL,byte ptr [RBX + RDI*0x1]
LAB_001d29aa:
TEST R11B,R11B
JZ 0x001d29b7
MOV R14D,R11D
XOR R11D,R11D
JMP 0x001d29c6
LAB_001d29b7:
MOVZX R14D,byte ptr [RCX]
MOV R11B,byte ptr [R14 + RAX*0x1]
INC RCX
MOV R14B,byte ptr [R14 + RDI*0x1]
LAB_001d29c6:
CMP BL,R14B
JZ 0x001d2972
MOVZX ECX,R14B
MOVZX EAX,BL
SUB EAX,ECX
JMP 0x001d29e5
LAB_001d29d6:
MOVZX EAX,BL
NEG EAX
JMP 0x001d29e5
LAB_001d29dd:
XOR EAX,EAX
TEST R9B,R9B
SETZ AL
LAB_001d29e5:
POP RBX
POP R14
POP RBP
RET
|
uint my_strnncoll_latin1_de
(int8 param_1,byte *param_2,long param_3,byte *param_4,long param_5,
char param_6)
{
byte *pbVar1;
byte bVar2;
byte *pbVar3;
byte bVar4;
byte bVar5;
byte bVar6;
pbVar1 = param_2 + param_3;
pbVar3 = param_4 + param_5;
bVar4 = 0;
bVar5 = 0;
do {
if ((pbVar1 <= param_2) && (bVar4 == 0)) {
return -(uint)(bVar5 != 0 || param_4 < pbVar3);
}
if (bVar5 == 0 && param_4 >= pbVar3) {
return (uint)(param_6 == '\0');
}
if (bVar4 == 0) {
bVar2 = *param_2;
bVar4 = combo2map[bVar2];
param_2 = param_2 + 1;
bVar2 = combo1map[bVar2];
}
else {
bVar2 = bVar4;
bVar4 = 0;
}
if (bVar5 == 0) {
bVar6 = *param_4;
bVar5 = combo2map[bVar6];
param_4 = param_4 + 1;
bVar6 = combo1map[bVar6];
}
else {
bVar6 = bVar5;
bVar5 = 0;
}
} while (bVar2 == bVar6);
return (uint)bVar2 - (uint)bVar6;
}
| |
42,603 | google::protobuf::MapValueRef::SetUInt64Value(unsigned long) | aimrt_mujoco_sim/_deps/protobuf-src/src/google/protobuf/map_field.h | void SetUInt64Value(uint64_t value) {
TYPE_CHECK(FieldDescriptor::CPPTYPE_UINT64, "MapValueRef::SetUInt64Value");
*reinterpret_cast<uint64_t*>(data_) = value;
} | O0 | c | google::protobuf::MapValueRef::SetUInt64Value(unsigned long):
subq $0xb8, %rsp
movq %rdi, 0xb0(%rsp)
movq %rsi, 0xa8(%rsp)
movq 0xb0(%rsp), %rdi
movq %rdi, 0x58(%rsp)
callq 0x1c4000
cmpl $0x4, %eax
je 0x1d1874
leaq 0x2162ad(%rip), %rdx # 0x3e79f6
leaq 0x70(%rsp), %rdi
movq %rdi, 0x48(%rsp)
movl $0x3, %esi
movl $0x325, %ecx # imm = 0x325
callq 0x19a670
movq 0x48(%rsp), %rdi
leaq 0x2162ed(%rip), %rsi # 0x3e7a5b
callq 0x199f30
movq %rax, 0x50(%rsp)
jmp 0x1d177a
movq 0x50(%rsp), %rdi
leaq 0x2168ba(%rip), %rsi # 0x3e8040
callq 0x199f30
movq %rax, 0x40(%rsp)
jmp 0x1d1792
movq 0x40(%rsp), %rdi
leaq 0x216300(%rip), %rsi # 0x3e7a9e
callq 0x199f30
movq %rax, 0x38(%rsp)
jmp 0x1d17aa
movq 0x38(%rsp), %rdi
leaq 0x2162fe(%rip), %rsi # 0x3e7ab4
callq 0x199f30
movq %rax, 0x30(%rsp)
jmp 0x1d17c2
movl $0x4, %edi
callq 0x1c40d0
movq 0x30(%rsp), %rdi
movq %rax, %rsi
callq 0x199f30
movq %rax, 0x28(%rsp)
jmp 0x1d17e0
movq 0x28(%rsp), %rdi
leaq 0x21acbc(%rip), %rsi # 0x3ec4a8
callq 0x199f30
movq %rax, 0x20(%rsp)
jmp 0x1d17f8
movq 0x20(%rsp), %rdi
leaq 0x2162be(%rip), %rsi # 0x3e7ac2
callq 0x199f30
movq %rax, 0x18(%rsp)
jmp 0x1d1810
movq 0x58(%rsp), %rdi
callq 0x1c4000
movl %eax, 0x14(%rsp)
jmp 0x1d1820
movl 0x14(%rsp), %edi
callq 0x1c40d0
movq 0x18(%rsp), %rdi
movq %rax, %rsi
callq 0x199f30
movq %rax, 0x8(%rsp)
jmp 0x1d183d
movq 0x8(%rsp), %rsi
leaq 0x63(%rsp), %rdi
callq 0x19a0e0
jmp 0x1d184e
leaq 0x70(%rsp), %rdi
callq 0x19a6b0
jmp 0x1d1874
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x68(%rsp)
movl %eax, 0x64(%rsp)
leaq 0x70(%rsp), %rdi
callq 0x19a6b0
jmp 0x1d188f
movq 0x58(%rsp), %rax
movq 0xa8(%rsp), %rcx
movq (%rax), %rax
movq %rcx, (%rax)
addq $0xb8, %rsp
retq
movq 0x68(%rsp), %rdi
callq 0x90db0
nopl (%rax)
| _ZN6google8protobuf11MapValueRef14SetUInt64ValueEm:
sub rsp, 0B8h
mov [rsp+0B8h+var_8], rdi
mov [rsp+0B8h+var_10], rsi
mov rdi, [rsp+0B8h+var_8]; this
mov [rsp+0B8h+var_60], rdi
call _ZNK6google8protobuf16MapValueConstRef4typeEv; google::protobuf::MapValueConstRef::type(void)
cmp eax, 4
jz loc_1D1874
lea rdx, aWorkspaceLlm4b_32; "/workspace/llm4binary/github2025/aimrt_"...
lea rdi, [rsp+0B8h+var_48]
mov [rsp+0B8h+var_70], rdi
mov esi, 3
mov ecx, 325h
call _ZN6google8protobuf8internal10LogMessageC2ENS0_8LogLevelEPKci; google::protobuf::internal::LogMessage::LogMessage(google::protobuf::LogLevel,char const*,int)
mov rdi, [rsp+0B8h+var_70]
lea rsi, aProtocolBuffer_0; "Protocol Buffer map usage error:\n"
call _ZN6google8protobuf8internal10LogMessagelsEPKc; google::protobuf::internal::LogMessage::operator<<(char const*)
mov [rsp+0B8h+var_68], rax
jmp short $+2
loc_1D177A:
mov rdi, [rsp+0B8h+var_68]
lea rsi, aMapvaluerefSet_2; "MapValueRef::SetUInt64Value"
call _ZN6google8protobuf8internal10LogMessagelsEPKc; google::protobuf::internal::LogMessage::operator<<(char const*)
mov [rsp+0B8h+var_78], rax
jmp short $+2
loc_1D1792:
mov rdi, [rsp+0B8h+var_78]
lea rsi, aTypeDoesNotMat; " type does not match\n"
call _ZN6google8protobuf8internal10LogMessagelsEPKc; google::protobuf::internal::LogMessage::operator<<(char const*)
mov [rsp+0B8h+var_80], rax
jmp short $+2
loc_1D17AA:
mov rdi, [rsp+0B8h+var_80]
lea rsi, aExpected; " Expected : "
call _ZN6google8protobuf8internal10LogMessagelsEPKc; google::protobuf::internal::LogMessage::operator<<(char const*)
mov [rsp+0B8h+var_88], rax
jmp short $+2
loc_1D17C2:
mov edi, 4
call _ZN6google8protobuf15FieldDescriptor11CppTypeNameENS1_7CppTypeE; google::protobuf::FieldDescriptor::CppTypeName(google::protobuf::FieldDescriptor::CppType)
mov rdi, [rsp+0B8h+var_88]
mov rsi, rax
call _ZN6google8protobuf8internal10LogMessagelsEPKc; google::protobuf::internal::LogMessage::operator<<(char const*)
mov [rsp+0B8h+var_90], rax
jmp short $+2
loc_1D17E0:
mov rdi, [rsp+0B8h+var_90]
lea rsi, aSyntax0+0Fh; "\n"
call _ZN6google8protobuf8internal10LogMessagelsEPKc; google::protobuf::internal::LogMessage::operator<<(char const*)
mov [rsp+0B8h+var_98], rax
jmp short $+2
loc_1D17F8:
mov rdi, [rsp+0B8h+var_98]
lea rsi, aActual_0; " Actual : "
call _ZN6google8protobuf8internal10LogMessagelsEPKc; google::protobuf::internal::LogMessage::operator<<(char const*)
mov [rsp+0B8h+var_A0], rax
jmp short $+2
loc_1D1810:
mov rdi, [rsp+0B8h+var_60]; this
call _ZNK6google8protobuf16MapValueConstRef4typeEv; google::protobuf::MapValueConstRef::type(void)
mov [rsp+0B8h+var_A4], eax
jmp short $+2
loc_1D1820:
mov edi, [rsp+0B8h+var_A4]
call _ZN6google8protobuf15FieldDescriptor11CppTypeNameENS1_7CppTypeE; google::protobuf::FieldDescriptor::CppTypeName(google::protobuf::FieldDescriptor::CppType)
mov rdi, [rsp+0B8h+var_A0]
mov rsi, rax
call _ZN6google8protobuf8internal10LogMessagelsEPKc; google::protobuf::internal::LogMessage::operator<<(char const*)
mov [rsp+0B8h+var_B0], rax
jmp short $+2
loc_1D183D:
mov rsi, [rsp+0B8h+var_B0]
lea rdi, [rsp+0B8h+var_55]
call _ZN6google8protobuf8internal11LogFinisheraSERNS1_10LogMessageE; google::protobuf::internal::LogFinisher::operator=(google::protobuf::internal::LogMessage &)
jmp short $+2
loc_1D184E:
lea rdi, [rsp+0B8h+var_48]; this
call _ZN6google8protobuf8internal10LogMessageD2Ev; google::protobuf::internal::LogMessage::~LogMessage()
jmp short loc_1D1874
mov rcx, rax
mov eax, edx
mov [rsp+arg_60], rcx
mov [rsp+arg_5C], eax
lea rdi, [rsp+arg_68]; this
call _ZN6google8protobuf8internal10LogMessageD2Ev; google::protobuf::internal::LogMessage::~LogMessage()
jmp short loc_1D188F
loc_1D1874:
mov rax, [rsp+0B8h+var_60]
mov rcx, [rsp+0B8h+var_10]
mov rax, [rax]
mov [rax], rcx
add rsp, 0B8h
retn
loc_1D188F:
mov rdi, [rsp+arg_60]
call __Unwind_Resume
| long long google::protobuf::MapValueRef::SetUInt64Value(google::protobuf::MapValueRef *this, long long a2)
{
long long v2; // rax
long long v3; // rax
long long result; // rax
google::protobuf::internal::LogMessage *v5; // [rsp+8h] [rbp-B0h]
unsigned int v6; // [rsp+14h] [rbp-A4h]
long long v7; // [rsp+18h] [rbp-A0h]
long long v8; // [rsp+20h] [rbp-98h]
long long v9; // [rsp+28h] [rbp-90h]
long long v10; // [rsp+30h] [rbp-88h]
long long v11; // [rsp+38h] [rbp-80h]
long long v12; // [rsp+40h] [rbp-78h]
long long v13; // [rsp+50h] [rbp-68h]
_BYTE v14[13]; // [rsp+63h] [rbp-55h] BYREF
_BYTE v15[56]; // [rsp+70h] [rbp-48h] BYREF
long long v16; // [rsp+A8h] [rbp-10h]
google::protobuf::MapValueConstRef *v17; // [rsp+B0h] [rbp-8h]
v17 = this;
v16 = a2;
if ( (unsigned int)google::protobuf::MapValueConstRef::type(this) != 4 )
{
google::protobuf::internal::LogMessage::LogMessage(
(long long)v15,
3,
(long long)"/workspace/llm4binary/github2025/aimrt_mujoco_sim/_deps/protobuf-src/src/google/protobuf/map_field.h",
805);
v13 = google::protobuf::internal::LogMessage::operator<<(
(long long)v15,
(long long)"Protocol Buffer map usage error:\n");
v12 = google::protobuf::internal::LogMessage::operator<<(v13, (long long)"MapValueRef::SetUInt64Value");
v11 = google::protobuf::internal::LogMessage::operator<<(v12, (long long)" type does not match\n");
v10 = google::protobuf::internal::LogMessage::operator<<(v11, (long long)" Expected : ");
v2 = google::protobuf::FieldDescriptor::CppTypeName(4u);
v9 = google::protobuf::internal::LogMessage::operator<<(v10, v2);
v8 = google::protobuf::internal::LogMessage::operator<<(v9, (long long)"\n");
v7 = google::protobuf::internal::LogMessage::operator<<(v8, (long long)" Actual : ");
v6 = google::protobuf::MapValueConstRef::type(this);
v3 = google::protobuf::FieldDescriptor::CppTypeName(v6);
v5 = (google::protobuf::internal::LogMessage *)google::protobuf::internal::LogMessage::operator<<(v7, v3);
google::protobuf::internal::LogFinisher::operator=((long long)v14, v5);
google::protobuf::internal::LogMessage::~LogMessage((google::protobuf::internal::LogMessage *)v15);
}
result = *(_QWORD *)this;
**(_QWORD **)this = v16;
return result;
}
| |||
42,604 | google::protobuf::MapValueRef::SetUInt64Value(unsigned long) | aimrt_mujoco_sim/_deps/protobuf-src/src/google/protobuf/map_field.h | void SetUInt64Value(uint64_t value) {
TYPE_CHECK(FieldDescriptor::CPPTYPE_UINT64, "MapValueRef::SetUInt64Value");
*reinterpret_cast<uint64_t*>(data_) = value;
} | O3 | c | google::protobuf::MapValueRef::SetUInt64Value(unsigned long):
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x48, %rsp
movq %rsi, %rbx
movq %rdi, %r14
callq 0x98410
cmpl $0x4, %eax
je 0x9c025
leaq 0xccf55(%rip), %rdx # 0x168ec5
leaq 0x10(%rsp), %r15
movq %r15, %rdi
movl $0x3, %esi
movl $0x325, %ecx # imm = 0x325
callq 0x857c2
leaq 0xccf9c(%rip), %rsi # 0x168f2a
movq %r15, %rdi
callq 0x852c0
leaq 0xcd464(%rip), %rsi # 0x169401
movq %rax, %rdi
callq 0x852c0
leaq 0xccfc1(%rip), %rsi # 0x168f6d
movq %rax, %rdi
callq 0x852c0
leaq 0xccfc8(%rip), %rsi # 0x168f83
movq %rax, %rdi
callq 0x852c0
leaq 0x1705c6(%rip), %r12 # 0x20c590
movq 0x20(%r12), %rsi
movq %rax, %rdi
callq 0x852c0
leaq 0xd0081(%rip), %rsi # 0x16c05f
movq %rax, %rdi
callq 0x852c0
leaq 0xccfa4(%rip), %rsi # 0x168f91
movq %rax, %rdi
callq 0x852c0
movq %rax, %r15
movq %r14, %rdi
callq 0x98410
movl %eax, %eax
movq (%r12,%rax,8), %rsi
movq %r15, %rdi
callq 0x852c0
leaq 0xf(%rsp), %rdi
movq %rax, %rsi
callq 0x8539a
leaq 0x10(%rsp), %rdi
callq 0x857e0
movq (%r14), %rax
movq %rbx, (%rax)
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
jmp 0x9c039
movq %rax, %rbx
leaq 0x10(%rsp), %rdi
callq 0x857e0
movq %rbx, %rdi
callq 0x2e220
| _ZN6google8protobuf11MapValueRef14SetUInt64ValueEm:
push r15
push r14
push r12
push rbx
sub rsp, 48h
mov rbx, rsi
mov r14, rdi
call _ZNK6google8protobuf16MapValueConstRef4typeEv; google::protobuf::MapValueConstRef::type(void)
cmp eax, 4
jz loc_9C025
lea rdx, aWorkspaceLlm4b_22; "/workspace/llm4binary/github2025/aimrt_"...
lea r15, [rsp+68h+var_58]
mov rdi, r15
mov esi, 3
mov ecx, 325h
call _ZN6google8protobuf8internal10LogMessageC2ENS0_8LogLevelEPKci; google::protobuf::internal::LogMessage::LogMessage(google::protobuf::LogLevel,char const*,int)
lea rsi, aProtocolBuffer_0; "Protocol Buffer map usage error:\n"
mov rdi, r15
call _ZN6google8protobuf8internal10LogMessagelsEPKc; google::protobuf::internal::LogMessage::operator<<(char const*)
lea rsi, aMapvaluerefSet_2; "MapValueRef::SetUInt64Value"
mov rdi, rax
call _ZN6google8protobuf8internal10LogMessagelsEPKc; google::protobuf::internal::LogMessage::operator<<(char const*)
lea rsi, aTypeDoesNotMat; " type does not match\n"
mov rdi, rax
call _ZN6google8protobuf8internal10LogMessagelsEPKc; google::protobuf::internal::LogMessage::operator<<(char const*)
lea rsi, aExpected; " Expected : "
mov rdi, rax
call _ZN6google8protobuf8internal10LogMessagelsEPKc; google::protobuf::internal::LogMessage::operator<<(char const*)
lea r12, _ZN6google8protobuf15FieldDescriptor14kCppTypeToNameE; google::protobuf::FieldDescriptor::kCppTypeToName
mov rsi, [r12+20h]
mov rdi, rax
call _ZN6google8protobuf8internal10LogMessagelsEPKc; google::protobuf::internal::LogMessage::operator<<(char const*)
lea rsi, aSyntax0+0Fh; "\n"
mov rdi, rax
call _ZN6google8protobuf8internal10LogMessagelsEPKc; google::protobuf::internal::LogMessage::operator<<(char const*)
lea rsi, aActual_0; " Actual : "
mov rdi, rax
call _ZN6google8protobuf8internal10LogMessagelsEPKc; google::protobuf::internal::LogMessage::operator<<(char const*)
mov r15, rax
mov rdi, r14; this
call _ZNK6google8protobuf16MapValueConstRef4typeEv; google::protobuf::MapValueConstRef::type(void)
mov eax, eax
mov rsi, [r12+rax*8]
mov rdi, r15
call _ZN6google8protobuf8internal10LogMessagelsEPKc; google::protobuf::internal::LogMessage::operator<<(char const*)
lea rdi, [rsp+68h+var_59]
mov rsi, rax
call _ZN6google8protobuf8internal11LogFinisheraSERNS1_10LogMessageE; google::protobuf::internal::LogFinisher::operator=(google::protobuf::internal::LogMessage &)
lea rdi, [rsp+68h+var_58]; this
call _ZN6google8protobuf8internal10LogMessageD2Ev; google::protobuf::internal::LogMessage::~LogMessage()
loc_9C025:
mov rax, [r14]
mov [rax], rbx
add rsp, 48h
pop rbx
pop r12
pop r14
pop r15
retn
jmp short $+2
loc_9C039:
mov rbx, rax
lea rdi, [rsp+arg_8]; this
call _ZN6google8protobuf8internal10LogMessageD2Ev; google::protobuf::internal::LogMessage::~LogMessage()
mov rdi, rbx
call __Unwind_Resume
| long long google::protobuf::MapValueRef::SetUInt64Value(google::protobuf::MapValueRef *this, long long a2)
{
long long v2; // rax
long long v3; // rax
long long v4; // rax
long long v5; // rax
long long v6; // rax
long long v7; // rax
long long v8; // r15
unsigned int v9; // eax
google::protobuf::internal::LogMessage *v10; // rax
long long result; // rax
char v12; // [rsp+Fh] [rbp-59h] BYREF
_BYTE v13[88]; // [rsp+10h] [rbp-58h] BYREF
if ( (unsigned int)google::protobuf::MapValueConstRef::type(this) != 4 )
{
google::protobuf::internal::LogMessage::LogMessage(
(long long)v13,
3,
(long long)"/workspace/llm4binary/github2025/aimrt_mujoco_sim/_deps/protobuf-src/src/google/protobuf/map_field.h",
805);
v2 = google::protobuf::internal::LogMessage::operator<<((long long)v13, (long long)"Protocol Buffer map usage error:\n");
v3 = google::protobuf::internal::LogMessage::operator<<(v2, (long long)"MapValueRef::SetUInt64Value");
v4 = google::protobuf::internal::LogMessage::operator<<(v3, (long long)" type does not match\n");
v5 = google::protobuf::internal::LogMessage::operator<<(v4, (long long)" Expected : ");
v6 = google::protobuf::internal::LogMessage::operator<<(
v5,
(long long)*(&google::protobuf::FieldDescriptor::kCppTypeToName + 4));
v7 = google::protobuf::internal::LogMessage::operator<<(v6, (long long)"\n");
v8 = google::protobuf::internal::LogMessage::operator<<(v7, (long long)" Actual : ");
v9 = google::protobuf::MapValueConstRef::type(this);
v10 = (google::protobuf::internal::LogMessage *)google::protobuf::internal::LogMessage::operator<<(
v8,
(long long)*(&google::protobuf::FieldDescriptor::kCppTypeToName + v9));
google::protobuf::internal::LogFinisher::operator=((long long)&v12, v10);
google::protobuf::internal::LogMessage::~LogMessage((google::protobuf::internal::LogMessage *)v13);
}
result = *(_QWORD *)this;
**(_QWORD **)this = a2;
return result;
}
| SetUInt64Value:
PUSH R15
PUSH R14
PUSH R12
PUSH RBX
SUB RSP,0x48
MOV RBX,RSI
MOV R14,RDI
CALL 0x00198410
CMP EAX,0x4
JZ 0x0019c025
LEA RDX,[0x268ec5]
LEA R15,[RSP + 0x10]
MOV RDI,R15
MOV ESI,0x3
MOV ECX,0x325
CALL 0x001857c2
LAB_0019bf87:
LEA RSI,[0x268f2a]
MOV RDI,R15
CALL 0x001852c0
LEA RSI,[0x269401]
MOV RDI,RAX
CALL 0x001852c0
LEA RSI,[0x268f6d]
MOV RDI,RAX
CALL 0x001852c0
LEA RSI,[0x268f83]
MOV RDI,RAX
CALL 0x001852c0
LEA R12,[0x30c590]
MOV RSI,qword ptr [R12 + 0x20]
MOV RDI,RAX
CALL 0x001852c0
LEA RSI,[0x26c05f]
MOV RDI,RAX
CALL 0x001852c0
LEA RSI,[0x268f91]
MOV RDI,RAX
CALL 0x001852c0
MOV R15,RAX
MOV RDI,R14
CALL 0x00198410
MOV EAX,EAX
MOV RSI,qword ptr [R12 + RAX*0x8]
MOV RDI,R15
CALL 0x001852c0
LAB_0019c00e:
LEA RDI,[RSP + 0xf]
MOV RSI,RAX
CALL 0x0018539a
LAB_0019c01b:
LEA RDI,[RSP + 0x10]
CALL 0x001857e0
LAB_0019c025:
MOV RAX,qword ptr [R14]
MOV qword ptr [RAX],RBX
ADD RSP,0x48
POP RBX
POP R12
POP R14
POP R15
RET
|
/* google::protobuf::MapValueRef::SetUInt64Value(unsigned long) */
void __thiscall google::protobuf::MapValueRef::SetUInt64Value(MapValueRef *this,ulong param_1)
{
int iVar1;
uint uVar2;
LogMessage *pLVar3;
LogFinisher local_59;
LogMessage local_58 [56];
iVar1 = MapValueConstRef::type((MapValueConstRef *)this);
if (iVar1 != 4) {
internal::LogMessage::LogMessage
(local_58,3,
"/workspace/llm4binary/github2025/aimrt_mujoco_sim/_deps/protobuf-src/src/google/protobuf/map_field.h"
,0x325);
/* try { // try from 0019bf87 to 0019c00d has its CatchHandler @ 0019c039 */
pLVar3 = (LogMessage *)
internal::LogMessage::operator<<(local_58,"Protocol Buffer map usage error:\n");
pLVar3 = (LogMessage *)internal::LogMessage::operator<<(pLVar3,"MapValueRef::SetUInt64Value");
pLVar3 = (LogMessage *)internal::LogMessage::operator<<(pLVar3," type does not match\n");
pLVar3 = (LogMessage *)internal::LogMessage::operator<<(pLVar3," Expected : ");
pLVar3 = (LogMessage *)
internal::LogMessage::operator<<(pLVar3,(char *)FieldDescriptor::kCppTypeToName._32_8_)
;
pLVar3 = (LogMessage *)internal::LogMessage::operator<<(pLVar3,"\n");
pLVar3 = (LogMessage *)internal::LogMessage::operator<<(pLVar3," Actual : ");
uVar2 = MapValueConstRef::type((MapValueConstRef *)this);
pLVar3 = (LogMessage *)
internal::LogMessage::operator<<
(pLVar3,*(char **)(FieldDescriptor::kCppTypeToName + (ulong)uVar2 * 8));
/* try { // try from 0019c00e to 0019c01a has its CatchHandler @ 0019c037 */
internal::LogFinisher::operator=(&local_59,pLVar3);
internal::LogMessage::~LogMessage(local_58);
}
**(ulong **)this = param_1;
return;
}
| |
42,605 | used_buffs_register_unlock | eloqsql/storage/maria/ma_loghandler.c | static void
used_buffs_register_unlock(TRUNSLOG_USED_BUFFERS *buffs,
struct st_translog_buffer *buff
__attribute__((unused)) )
{
DBUG_ENTER("used_buffs_register_unlock");
DBUG_PRINT("enter", ("SUB buffs: %p unlk %u (%p) wrt_ptr: %u (%p)"
" buff %p (%u)",
buffs,
buffs->wrt_ptr, buffs->buff[buffs->wrt_ptr],
buffs->unlck_ptr, buffs->buff[buffs->unlck_ptr],
buff, buff->buffer_no));
DBUG_ASSERT(buffs->buff[buffs->unlck_ptr] == buff);
buffs->unlck_ptr++;
DBUG_VOID_RETURN;
} | O0 | c | used_buffs_register_unlock:
pushq %rbp
movq %rsp, %rbp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
jmp 0x9605e
jmp 0x96060
jmp 0x96062
movq -0x8(%rbp), %rax
movb 0x19(%rax), %cl
addb $0x1, %cl
movb %cl, 0x19(%rax)
jmp 0x96071
popq %rbp
retq
nopw %cs:(%rax,%rax)
| used_buffs_register_unlock:
push rbp
mov rbp, rsp
mov [rbp+var_8], rdi
mov [rbp+var_10], rsi
jmp short $+2
loc_9605E:
jmp short $+2
loc_96060:
jmp short $+2
loc_96062:
mov rax, [rbp+var_8]
mov cl, [rax+19h]
add cl, 1
mov [rax+19h], cl
jmp short $+2
loc_96071:
pop rbp
retn
| long long used_buffs_register_unlock(long long a1)
{
long long result; // rax
result = a1;
++*(_BYTE *)(a1 + 25);
return result;
}
| used_buffs_register_unlock:
PUSH RBP
MOV RBP,RSP
MOV qword ptr [RBP + -0x8],RDI
MOV qword ptr [RBP + -0x10],RSI
JMP 0x0019605e
LAB_0019605e:
JMP 0x00196060
LAB_00196060:
JMP 0x00196062
LAB_00196062:
MOV RAX,qword ptr [RBP + -0x8]
MOV CL,byte ptr [RAX + 0x19]
ADD CL,0x1
MOV byte ptr [RAX + 0x19],CL
JMP 0x00196071
LAB_00196071:
POP RBP
RET
|
void used_buffs_register_unlock(long param_1)
{
*(char *)(param_1 + 0x19) = *(char *)(param_1 + 0x19) + '\x01';
return;
}
| |
42,606 | httplib::detail::read_content_without_length(httplib::Stream&, std::function<bool (char const*, unsigned long, unsigned long, unsigned long)>) | hkr04[P]cpp-mcp/common/httplib.h | inline bool read_content_without_length(Stream &strm,
ContentReceiverWithProgress out) {
char buf[CPPHTTPLIB_RECV_BUFSIZ];
uint64_t r = 0;
for (;;) {
auto n = strm.read(buf, CPPHTTPLIB_RECV_BUFSIZ);
if (n <= 0) { return false; }
if (!out(buf, static_cast<size_t>(n), r, 0)) { return false; }
r += static_cast<uint64_t>(n);
}
return true;
} | O2 | c | httplib::detail::read_content_without_length(httplib::Stream&, std::function<bool (char const*, unsigned long, unsigned long, unsigned long)>):
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x4000, %rsp # imm = 0x4000
movq %rsi, %rbx
movq %rdi, %r14
xorl %r15d, %r15d
movq %rsp, %r12
movq (%r14), %rax
movl $0x4000, %edx # imm = 0x4000
movq %r14, %rdi
movq %r12, %rsi
callq *0x20(%rax)
testq %rax, %rax
jle 0x324a5
movq %rax, %r13
movq %rbx, %rdi
movq %r12, %rsi
movq %rax, %rdx
movq %r15, %rcx
xorl %r8d, %r8d
callq 0x321f8
addq %r13, %r15
testb %al, %al
jne 0x32471
xorl %eax, %eax
addq $0x4000, %rsp # imm = 0x4000
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
| _ZN7httplib6detail27read_content_without_lengthERNS_6StreamESt8functionIFbPKcmmmEE:
push r15
push r14
push r13
push r12
push rbx
sub rsp, 4000h
mov rbx, rsi
mov r14, rdi
xor r15d, r15d
mov r12, rsp
loc_32471:
mov rax, [r14]
mov edx, 4000h
mov rdi, r14
mov rsi, r12
call qword ptr [rax+20h]
test rax, rax
jle short loc_324A5
mov r13, rax
mov rdi, rbx
mov rsi, r12
mov rdx, rax
mov rcx, r15
xor r8d, r8d
call _ZNKSt8functionIFbPKcmmmEEclES1_mmm; std::function<bool ()(char const*,ulong,ulong,ulong)>::operator()(char const*,ulong,ulong,ulong)
add r15, r13
test al, al
jnz short loc_32471
loc_324A5:
xor eax, eax
add rsp, 4000h
pop rbx
pop r12
pop r13
pop r14
pop r15
retn
| long long httplib::detail::read_content_without_length(long long a1, long long a2)
{
long long v2; // r15
long long v3; // rax
long long v4; // r13
char v5; // al
_BYTE v7[16424]; // [rsp+0h] [rbp-4028h] BYREF
v2 = 0LL;
do
{
v3 = (*(long long ( **)(long long, _BYTE *, const char *))(*(_QWORD *)a1 + 32LL))(a1, v7, "bind");
if ( v3 <= 0 )
break;
v4 = v3;
v5 = std::function<bool ()(char const*,unsigned long,unsigned long,unsigned long)>::operator()(
a2,
(long long)v7,
v3,
v2,
0LL);
v2 += v4;
}
while ( v5 );
return 0LL;
}
| read_content_without_length:
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x4000
MOV RBX,RSI
MOV R14,RDI
XOR R15D,R15D
MOV R12,RSP
LAB_00132471:
MOV RAX,qword ptr [R14]
MOV EDX,0x4000
MOV RDI,R14
MOV RSI,R12
CALL qword ptr [RAX + 0x20]
TEST RAX,RAX
JLE 0x001324a5
MOV R13,RAX
MOV RDI,RBX
MOV RSI,R12
MOV RDX,RAX
MOV RCX,R15
XOR R8D,R8D
CALL 0x001321f8
ADD R15,R13
TEST AL,AL
JNZ 0x00132471
LAB_001324a5:
XOR EAX,EAX
ADD RSP,0x4000
POP RBX
POP R12
POP R13
POP R14
POP R15
RET
|
/* httplib::detail::read_content_without_length(httplib::Stream&, std::function<bool (char const*,
unsigned long, unsigned long, unsigned long)>) */
int8
httplib::detail::read_content_without_length
(long *param_1,
function<bool(char_const*,unsigned_long,unsigned_long,unsigned_long)> *param_2)
{
char cVar1;
ulong uVar2;
ulong uVar3;
char acStack_4028 [16384];
uVar3 = 0;
do {
uVar2 = (**(code **)(*param_1 + 0x20))(param_1,acStack_4028,0x4000);
if ((long)uVar2 < 1) {
return 0;
}
cVar1 = std::function<bool(char_const*,unsigned_long,unsigned_long,unsigned_long)>::operator()
(param_2,acStack_4028,uVar2,uVar3,0);
uVar3 = uVar3 + uVar2;
} while (cVar1 != '\0');
return 0;
}
| |
42,607 | fn_ext2 | eloqsql/mysys/mf_fn_ext.c | char *fn_ext2(const char *name)
{
register const char *pos, *gpos;
DBUG_ENTER("fn_ext");
DBUG_PRINT("mfunkt",("name: '%s'",name));
#if defined(FN_DEVCHAR) || defined(BASKSLASH_MBTAIL)
{
char buff[FN_REFLEN];
size_t res_length;
gpos= name+ dirname_part(buff,(char*) name, &res_length);
}
#else
if (!(gpos= strrchr(name, FN_LIBCHAR)))
gpos= name;
#endif
// locate the last occurrence of FN_EXTCHAR
pos= strrchr(gpos, FN_EXTCHAR);
DBUG_RETURN((char*) (pos ? pos : strend(gpos)));
} | O3 | c | fn_ext2:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
movq %rdi, %r14
movl $0x2f, %esi
callq 0x379c0
movq %rax, %rbx
testq %rax, %rax
cmoveq %r14, %rbx
movq %rbx, %rdi
movl $0x2e, %esi
callq 0x379c0
testq %rax, %rax
je 0x6618a
popq %rbx
popq %r14
popq %rbp
retq
movq %rbx, %rdi
popq %rbx
popq %r14
popq %rbp
jmp 0x9b8b8
nop
| fn_ext2:
push rbp
mov rbp, rsp
push r14
push rbx
mov r14, rdi
mov esi, 2Fh ; '/'
call _strrchr
mov rbx, rax
test rax, rax
cmovz rbx, r14
mov rdi, rbx
mov esi, 2Eh ; '.'
call _strrchr
test rax, rax
jz short loc_6618A
pop rbx
pop r14
pop rbp
retn
loc_6618A:
mov rdi, rbx
pop rbx
pop r14
pop rbp
jmp strend
| long long fn_ext2(long long a1)
{
long long v1; // rbx
long long result; // rax
v1 = strrchr(a1, 47LL);
if ( !v1 )
v1 = a1;
result = strrchr(v1, 46LL);
if ( !result )
return strend(v1);
return result;
}
| fn_ext2:
PUSH RBP
MOV RBP,RSP
PUSH R14
PUSH RBX
MOV R14,RDI
MOV ESI,0x2f
CALL 0x001379c0
MOV RBX,RAX
TEST RAX,RAX
CMOVZ RBX,R14
MOV RDI,RBX
MOV ESI,0x2e
CALL 0x001379c0
TEST RAX,RAX
JZ 0x0016618a
POP RBX
POP R14
POP RBP
RET
LAB_0016618a:
MOV RDI,RBX
POP RBX
POP R14
POP RBP
JMP 0x0019b8b8
|
void fn_ext2(char *param_1)
{
char *__s;
char *pcVar1;
__s = strrchr(param_1,0x2f);
if (__s == (char *)0x0) {
__s = param_1;
}
pcVar1 = strrchr(__s,0x2e);
if (pcVar1 != (char *)0x0) {
return;
}
strend(__s);
return;
}
| |
42,608 | req_client_update | corpus-core[P]colibri-stateless/src/chains/eth/verifier/sync_committee_state.c | static bool req_client_update(c4_state_t* state, uint32_t period, uint32_t count, chain_id_t chain_id, bytes_t* data) {
buffer_t tmp = {0};
bprintf(&tmp, "eth/v1/beacon/light_client/updates?start_period=%d&count=%d", period, count);
data_request_t* req = c4_state_get_data_request_by_url(state, (char*) tmp.data.data);
if (req) buffer_free(&tmp);
if (req && req->response.data) {
*data = req->response;
return true;
}
else if (req && req->error) {
state->error = strdup(req->error);
return false;
}
data_request_t* new_req = safe_calloc(1, sizeof(data_request_t));
new_req->chain_id = chain_id;
new_req->url = (char*) tmp.data.data;
new_req->encoding = C4_DATA_ENCODING_SSZ;
new_req->type = C4_DATA_TYPE_BEACON_API;
c4_state_add_request(state, new_req);
return false;
} | O0 | c | req_client_update:
pushq %rbp
movq %rsp, %rbp
subq $0x50, %rsp
movq %rdi, -0x10(%rbp)
movl %esi, -0x14(%rbp)
movl %edx, -0x18(%rbp)
movl %ecx, -0x1c(%rbp)
movq %r8, -0x28(%rbp)
leaq -0x40(%rbp), %rdi
xorl %esi, %esi
movl $0x18, %edx
callq 0x5110
movl -0x14(%rbp), %edx
movl -0x18(%rbp), %ecx
leaq -0x40(%rbp), %rdi
leaq 0x3b65e(%rip), %rsi # 0x53048
movb $0x0, %al
callq 0x19740
movq -0x10(%rbp), %rdi
movq -0x38(%rbp), %rsi
callq 0x22360
movq %rax, -0x48(%rbp)
cmpq $0x0, -0x48(%rbp)
je 0x17a12
leaq -0x40(%rbp), %rdi
callq 0x18d90
cmpq $0x0, -0x48(%rbp)
je 0x17a44
movq -0x48(%rbp), %rax
cmpq $0x0, 0x38(%rax)
je 0x17a44
movq -0x28(%rbp), %rax
movq -0x48(%rbp), %rcx
movq 0x30(%rcx), %rdx
movq %rdx, (%rax)
movq 0x38(%rcx), %rcx
movq %rcx, 0x8(%rax)
movb $0x1, -0x1(%rbp)
jmp 0x17ac5
cmpq $0x0, -0x48(%rbp)
je 0x17a74
movq -0x48(%rbp), %rax
cmpq $0x0, 0x48(%rax)
je 0x17a74
movq -0x48(%rbp), %rax
movq 0x48(%rax), %rdi
callq 0x5030
movq %rax, %rcx
movq -0x10(%rbp), %rax
movq %rcx, 0x8(%rax)
movb $0x0, -0x1(%rbp)
jmp 0x17ac5
jmp 0x17a76
movl $0x1, %edi
movl $0x80, %esi
callq 0x18620
movq %rax, -0x50(%rbp)
movl -0x1c(%rbp), %ecx
movq -0x50(%rbp), %rax
movl %ecx, (%rax)
movq -0x38(%rbp), %rcx
movq -0x50(%rbp), %rax
movq %rcx, 0x10(%rax)
movq -0x50(%rbp), %rax
movl $0x1, 0x8(%rax)
movq -0x50(%rbp), %rax
movl $0x0, 0x4(%rax)
movq -0x10(%rbp), %rdi
movq -0x50(%rbp), %rsi
callq 0x22400
movb $0x0, -0x1(%rbp)
movb -0x1(%rbp), %al
andb $0x1, %al
addq $0x50, %rsp
popq %rbp
retq
| req_client_update_0:
push rbp
mov rbp, rsp
sub rsp, 50h
mov [rbp+var_10], rdi
mov [rbp+var_14], esi
mov [rbp+var_18], edx
mov [rbp+var_1C], ecx
mov [rbp+var_28], r8
lea rdi, [rbp+var_40]
xor esi, esi
mov edx, 18h
call _memset
mov edx, [rbp+var_14]
mov ecx, [rbp+var_18]
lea rdi, [rbp+var_40]
lea rsi, aEthV1BeaconLig; "eth/v1/beacon/light_client/updates?star"...
mov al, 0
call bprintf
mov rdi, [rbp+var_10]
mov rsi, [rbp+var_38]
call c4_state_get_data_request_by_url
mov [rbp+var_48], rax
cmp [rbp+var_48], 0
jz short loc_17A12
lea rdi, [rbp+var_40]
call buffer_free
loc_17A12:
cmp [rbp+var_48], 0
jz short loc_17A44
mov rax, [rbp+var_48]
cmp qword ptr [rax+38h], 0
jz short loc_17A44
mov rax, [rbp+var_28]
mov rcx, [rbp+var_48]
mov rdx, [rcx+30h]
mov [rax], rdx
mov rcx, [rcx+38h]
mov [rax+8], rcx
mov [rbp+var_1], 1
jmp loc_17AC5
loc_17A44:
cmp [rbp+var_48], 0
jz short loc_17A74
mov rax, [rbp+var_48]
cmp qword ptr [rax+48h], 0
jz short loc_17A74
mov rax, [rbp+var_48]
mov rdi, [rax+48h]
call _strdup
mov rcx, rax
mov rax, [rbp+var_10]
mov [rax+8], rcx
mov [rbp+var_1], 0
jmp short loc_17AC5
loc_17A74:
jmp short $+2
loc_17A76:
mov edi, 1
mov esi, 80h
call safe_calloc
mov [rbp+var_50], rax
mov ecx, [rbp+var_1C]
mov rax, [rbp+var_50]
mov [rax], ecx
mov rcx, [rbp+var_38]
mov rax, [rbp+var_50]
mov [rax+10h], rcx
mov rax, [rbp+var_50]
mov dword ptr [rax+8], 1
mov rax, [rbp+var_50]
mov dword ptr [rax+4], 0
mov rdi, [rbp+var_10]
mov rsi, [rbp+var_50]
call c4_state_add_request
mov [rbp+var_1], 0
loc_17AC5:
mov al, [rbp+var_1]
and al, 1
add rsp, 50h
pop rbp
retn
| char req_client_update_0(long long a1, int a2, int a3, int a4, _QWORD *a5)
{
int v5; // r8d
int v6; // r9d
_QWORD *v7; // rax
long long v8; // rcx
long long v10; // [rsp+0h] [rbp-50h]
_QWORD *data_request_by_url; // [rsp+8h] [rbp-48h]
_BYTE v12[8]; // [rsp+10h] [rbp-40h] BYREF
long long v13; // [rsp+18h] [rbp-38h]
_QWORD *v14; // [rsp+28h] [rbp-28h]
int v15; // [rsp+34h] [rbp-1Ch]
int v16; // [rsp+38h] [rbp-18h]
int v17; // [rsp+3Ch] [rbp-14h]
long long v18; // [rsp+40h] [rbp-10h]
v18 = a1;
v17 = a2;
v16 = a3;
v15 = a4;
v14 = a5;
memset(v12, 0LL, 24LL);
bprintf(
(unsigned int)v12,
(unsigned int)"eth/v1/beacon/light_client/updates?start_period=%d&count=%d",
v17,
v16,
v5,
v6);
data_request_by_url = (_QWORD *)c4_state_get_data_request_by_url(v18, v13);
if ( data_request_by_url && (buffer_free(v12), data_request_by_url[7]) )
{
v7 = v14;
*v14 = data_request_by_url[6];
v7[1] = data_request_by_url[7];
return 1;
}
else if ( data_request_by_url && data_request_by_url[9] )
{
v8 = strdup(data_request_by_url[9]);
*(_QWORD *)(v18 + 8) = v8;
return 0;
}
else
{
v10 = safe_calloc(1LL, 128LL);
*(_DWORD *)v10 = v15;
*(_QWORD *)(v10 + 16) = v13;
*(_DWORD *)(v10 + 8) = 1;
*(_DWORD *)(v10 + 4) = 0;
c4_state_add_request(v18, v10);
return 0;
}
}
| req_client_update:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x50
MOV qword ptr [RBP + -0x10],RDI
MOV dword ptr [RBP + -0x14],ESI
MOV dword ptr [RBP + -0x18],EDX
MOV dword ptr [RBP + -0x1c],ECX
MOV qword ptr [RBP + -0x28],R8
LEA RDI,[RBP + -0x40]
XOR ESI,ESI
MOV EDX,0x18
CALL 0x00105110
MOV EDX,dword ptr [RBP + -0x14]
MOV ECX,dword ptr [RBP + -0x18]
LEA RDI,[RBP + -0x40]
LEA RSI,[0x153048]
MOV AL,0x0
CALL 0x00119740
MOV RDI,qword ptr [RBP + -0x10]
MOV RSI,qword ptr [RBP + -0x38]
CALL 0x00122360
MOV qword ptr [RBP + -0x48],RAX
CMP qword ptr [RBP + -0x48],0x0
JZ 0x00117a12
LEA RDI,[RBP + -0x40]
CALL 0x00118d90
LAB_00117a12:
CMP qword ptr [RBP + -0x48],0x0
JZ 0x00117a44
MOV RAX,qword ptr [RBP + -0x48]
CMP qword ptr [RAX + 0x38],0x0
JZ 0x00117a44
MOV RAX,qword ptr [RBP + -0x28]
MOV RCX,qword ptr [RBP + -0x48]
MOV RDX,qword ptr [RCX + 0x30]
MOV qword ptr [RAX],RDX
MOV RCX,qword ptr [RCX + 0x38]
MOV qword ptr [RAX + 0x8],RCX
MOV byte ptr [RBP + -0x1],0x1
JMP 0x00117ac5
LAB_00117a44:
CMP qword ptr [RBP + -0x48],0x0
JZ 0x00117a74
MOV RAX,qword ptr [RBP + -0x48]
CMP qword ptr [RAX + 0x48],0x0
JZ 0x00117a74
MOV RAX,qword ptr [RBP + -0x48]
MOV RDI,qword ptr [RAX + 0x48]
CALL 0x00105030
MOV RCX,RAX
MOV RAX,qword ptr [RBP + -0x10]
MOV qword ptr [RAX + 0x8],RCX
MOV byte ptr [RBP + -0x1],0x0
JMP 0x00117ac5
LAB_00117a74:
JMP 0x00117a76
LAB_00117a76:
MOV EDI,0x1
MOV ESI,0x80
CALL 0x00118620
MOV qword ptr [RBP + -0x50],RAX
MOV ECX,dword ptr [RBP + -0x1c]
MOV RAX,qword ptr [RBP + -0x50]
MOV dword ptr [RAX],ECX
MOV RCX,qword ptr [RBP + -0x38]
MOV RAX,qword ptr [RBP + -0x50]
MOV qword ptr [RAX + 0x10],RCX
MOV RAX,qword ptr [RBP + -0x50]
MOV dword ptr [RAX + 0x8],0x1
MOV RAX,qword ptr [RBP + -0x50]
MOV dword ptr [RAX + 0x4],0x0
MOV RDI,qword ptr [RBP + -0x10]
MOV RSI,qword ptr [RBP + -0x50]
CALL 0x00122400
MOV byte ptr [RBP + -0x1],0x0
LAB_00117ac5:
MOV AL,byte ptr [RBP + -0x1]
AND AL,0x1
ADD RSP,0x50
POP RBP
RET
|
int1
req_client_update(long param_1,int4 param_2,int4 param_3,int4 param_4,
int8 *param_5)
{
long lVar1;
char *pcVar2;
int4 *puVar3;
int1 local_48 [8];
int8 local_40;
int8 *local_30;
int4 local_24;
int4 local_20;
int4 local_1c;
long local_18;
int1 local_9;
local_30 = param_5;
local_24 = param_4;
local_20 = param_3;
local_1c = param_2;
local_18 = param_1;
memset(local_48,0,0x18);
bprintf(local_48,"eth/v1/beacon/light_client/updates?start_period=%d&count=%d",local_1c,local_20);
lVar1 = c4_state_get_data_request_by_url(local_18,local_40);
if ((lVar1 == 0) || (buffer_free(local_48), *(long *)(lVar1 + 0x38) == 0)) {
if ((lVar1 == 0) || (*(long *)(lVar1 + 0x48) == 0)) {
puVar3 = (int4 *)safe_calloc(1,0x80);
*puVar3 = local_24;
*(int8 *)(puVar3 + 4) = local_40;
puVar3[2] = 1;
puVar3[1] = 0;
c4_state_add_request(local_18,puVar3);
local_9 = 0;
}
else {
pcVar2 = strdup(*(char **)(lVar1 + 0x48));
*(char **)(local_18 + 8) = pcVar2;
local_9 = 0;
}
}
else {
*local_30 = *(int8 *)(lVar1 + 0x30);
local_30[1] = *(int8 *)(lVar1 + 0x38);
local_9 = 1;
}
return local_9;
}
| |
42,609 | req_client_update | corpus-core[P]colibri-stateless/src/chains/eth/verifier/sync_committee_state.c | static bool req_client_update(c4_state_t* state, uint32_t period, uint32_t count, chain_id_t chain_id, bytes_t* data) {
buffer_t tmp = {0};
bprintf(&tmp, "eth/v1/beacon/light_client/updates?start_period=%d&count=%d", period, count);
data_request_t* req = c4_state_get_data_request_by_url(state, (char*) tmp.data.data);
if (req) buffer_free(&tmp);
if (req && req->response.data) {
*data = req->response;
return true;
}
else if (req && req->error) {
state->error = strdup(req->error);
return false;
}
data_request_t* new_req = safe_calloc(1, sizeof(data_request_t));
new_req->chain_id = chain_id;
new_req->url = (char*) tmp.data.data;
new_req->encoding = C4_DATA_ENCODING_SSZ;
new_req->type = C4_DATA_TYPE_BEACON_API;
c4_state_add_request(state, new_req);
return false;
} | O1 | c | req_client_update:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x18, %rsp
movq %r8, %r14
movl %ecx, %ebp
movl %edx, %ecx
movl %esi, %edx
movq %rdi, %rbx
xorps %xmm0, %xmm0
movq %rsp, %r15
movaps %xmm0, (%r15)
movq $0x0, 0x10(%r15)
leaq 0x2c013(%rip), %rsi # 0x3e061
movq %r15, %rdi
xorl %eax, %eax
callq 0x13095
movq 0x8(%r15), %rsi
movq %rbx, %rdi
callq 0x187ac
testq %rax, %rax
je 0x1209c
movq %rax, %r15
movq %rsp, %rdi
callq 0x12a33
cmpq $0x0, 0x38(%r15)
je 0x12088
movups 0x30(%r15), %xmm0
movups %xmm0, (%r14)
movb $0x1, %al
jmp 0x120d1
movq 0x48(%r15), %rdi
testq %rdi, %rdi
je 0x1209c
callq 0x5030
movq %rax, 0x8(%rbx)
jmp 0x120cf
movl $0x1, %edi
movl $0x80, %esi
callq 0x1285b
movl %ebp, (%rax)
movq 0x8(%rsp), %rcx
movq %rcx, 0x10(%rax)
movabsq $0x100000000, %rcx # imm = 0x100000000
movq %rcx, 0x4(%rax)
movq %rbx, %rdi
movq %rax, %rsi
callq 0x187f9
xorl %eax, %eax
addq $0x18, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
| req_client_update:
push rbp
push r15
push r14
push rbx
sub rsp, 18h
mov r14, r8
mov ebp, ecx
mov ecx, edx
mov edx, esi
mov rbx, rdi
xorps xmm0, xmm0
mov r15, rsp
movaps xmmword ptr [r15], xmm0
mov qword ptr [r15+10h], 0
lea rsi, aEthV1BeaconLig; "eth/v1/beacon/light_client/updates?star"...
mov rdi, r15
xor eax, eax
call bprintf
mov rsi, [r15+8]
mov rdi, rbx
call c4_state_get_data_request_by_url
test rax, rax
jz short loc_1209C
mov r15, rax
mov rdi, rsp
call buffer_free
cmp qword ptr [r15+38h], 0
jz short loc_12088
movups xmm0, xmmword ptr [r15+30h]
movups xmmword ptr [r14], xmm0
mov al, 1
jmp short loc_120D1
loc_12088:
mov rdi, [r15+48h]
test rdi, rdi
jz short loc_1209C
call _strdup
mov [rbx+8], rax
jmp short loc_120CF
loc_1209C:
mov edi, 1
mov esi, 80h
call safe_calloc
mov [rax], ebp
mov rcx, [rsp+38h+var_30]
mov [rax+10h], rcx
mov rcx, 100000000h
mov [rax+4], rcx
mov rdi, rbx
mov rsi, rax
call c4_state_add_request
loc_120CF:
xor eax, eax
loc_120D1:
add rsp, 18h
pop rbx
pop r14
pop r15
pop rbp
retn
| char req_client_update(long long a1, int a2, int a3, int a4, _OWORD *a5, int a6)
{
long long data_request_by_url; // rax
long long v10; // r15
long long v12; // rdi
long long v13; // rax
__int128 v14; // [rsp+0h] [rbp-38h] BYREF
long long v15; // [rsp+10h] [rbp-28h]
v14 = 0LL;
v15 = 0LL;
bprintf(
(unsigned int)&v14,
(unsigned int)"eth/v1/beacon/light_client/updates?start_period=%d&count=%d",
a2,
a3,
(_DWORD)a5,
a6,
0LL);
data_request_by_url = c4_state_get_data_request_by_url(a1, *((_QWORD *)&v14 + 1));
if ( !data_request_by_url )
goto LABEL_6;
v10 = data_request_by_url;
buffer_free(&v14);
if ( *(_QWORD *)(v10 + 56) )
{
*a5 = *(_OWORD *)(v10 + 48);
return 1;
}
v12 = *(_QWORD *)(v10 + 72);
if ( v12 )
{
*(_QWORD *)(a1 + 8) = strdup(v12);
}
else
{
LABEL_6:
v13 = safe_calloc(1LL, 128LL);
*(_DWORD *)v13 = a4;
*(_QWORD *)(v13 + 16) = *((_QWORD *)&v14 + 1);
*(_QWORD *)(v13 + 4) = 0x100000000LL;
c4_state_add_request(a1, v13);
}
return 0;
}
| req_client_update:
PUSH RBP
PUSH R15
PUSH R14
PUSH RBX
SUB RSP,0x18
MOV R14,R8
MOV EBP,ECX
MOV ECX,EDX
MOV EDX,ESI
MOV RBX,RDI
XORPS XMM0,XMM0
MOV R15,RSP
MOVAPS xmmword ptr [R15],XMM0
MOV qword ptr [R15 + 0x10],0x0
LEA RSI,[0x13e061]
MOV RDI,R15
XOR EAX,EAX
CALL 0x00113095
MOV RSI,qword ptr [R15 + 0x8]
MOV RDI,RBX
CALL 0x001187ac
TEST RAX,RAX
JZ 0x0011209c
MOV R15,RAX
MOV RDI,RSP
CALL 0x00112a33
CMP qword ptr [R15 + 0x38],0x0
JZ 0x00112088
MOVUPS XMM0,xmmword ptr [R15 + 0x30]
MOVUPS xmmword ptr [R14],XMM0
MOV AL,0x1
JMP 0x001120d1
LAB_00112088:
MOV RDI,qword ptr [R15 + 0x48]
TEST RDI,RDI
JZ 0x0011209c
CALL 0x00105030
MOV qword ptr [RBX + 0x8],RAX
JMP 0x001120cf
LAB_0011209c:
MOV EDI,0x1
MOV ESI,0x80
CALL 0x0011285b
MOV dword ptr [RAX],EBP
MOV RCX,qword ptr [RSP + 0x8]
MOV qword ptr [RAX + 0x10],RCX
MOV RCX,0x100000000
MOV qword ptr [RAX + 0x4],RCX
MOV RDI,RBX
MOV RSI,RAX
CALL 0x001187f9
LAB_001120cf:
XOR EAX,EAX
LAB_001120d1:
ADD RSP,0x18
POP RBX
POP R14
POP R15
POP RBP
RET
|
int8
req_client_update(long param_1,int4 param_2,int4 param_3,int4 param_4,
int8 *param_5)
{
int8 uVar1;
long lVar2;
char *pcVar3;
int4 *puVar4;
int8 local_38;
int8 uStack_30;
int8 local_28;
local_38 = 0;
uStack_30 = 0;
local_28 = 0;
bprintf(&local_38,"eth/v1/beacon/light_client/updates?start_period=%d&count=%d",param_2,param_3);
lVar2 = c4_state_get_data_request_by_url(param_1,uStack_30);
if (lVar2 != 0) {
buffer_free(&local_38);
if (*(long *)(lVar2 + 0x38) != 0) {
uVar1 = *(int8 *)(lVar2 + 0x38);
*param_5 = *(int8 *)(lVar2 + 0x30);
param_5[1] = uVar1;
return 1;
}
if (*(char **)(lVar2 + 0x48) != (char *)0x0) {
pcVar3 = strdup(*(char **)(lVar2 + 0x48));
*(char **)(param_1 + 8) = pcVar3;
return 0;
}
}
puVar4 = (int4 *)safe_calloc(1,0x80);
*puVar4 = param_4;
*(int8 *)(puVar4 + 4) = uStack_30;
*(int8 *)(puVar4 + 1) = 0x100000000;
c4_state_add_request(param_1,puVar4);
return 0;
}
| |
42,610 | req_client_update | corpus-core[P]colibri-stateless/src/chains/eth/verifier/sync_committee_state.c | static bool req_client_update(c4_state_t* state, uint32_t period, uint32_t count, chain_id_t chain_id, bytes_t* data) {
buffer_t tmp = {0};
bprintf(&tmp, "eth/v1/beacon/light_client/updates?start_period=%d&count=%d", period, count);
data_request_t* req = c4_state_get_data_request_by_url(state, (char*) tmp.data.data);
if (req) buffer_free(&tmp);
if (req && req->response.data) {
*data = req->response;
return true;
}
else if (req && req->error) {
state->error = strdup(req->error);
return false;
}
data_request_t* new_req = safe_calloc(1, sizeof(data_request_t));
new_req->chain_id = chain_id;
new_req->url = (char*) tmp.data.data;
new_req->encoding = C4_DATA_ENCODING_SSZ;
new_req->type = C4_DATA_TYPE_BEACON_API;
c4_state_add_request(state, new_req);
return false;
} | O3 | c | req_client_update:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x18, %rsp
movq %r8, %r14
movl %ecx, %ebp
movl %edx, %ecx
movl %esi, %edx
movq %rdi, %rbx
xorps %xmm0, %xmm0
movq %rsp, %r15
movaps %xmm0, (%r15)
movq $0x0, 0x10(%r15)
leaq 0x2c2d4(%rip), %rsi # 0x3e061
movq %r15, %rdi
xorl %eax, %eax
callq 0x12da8
movq 0x8(%r15), %rsi
movq %rbx, %rdi
callq 0x17f28
testq %rax, %rax
je 0x11ddb
movq %rax, %r15
movq %rsp, %rdi
callq 0x12733
cmpq $0x0, 0x38(%r15)
je 0x11dc7
movups 0x30(%r15), %xmm0
movups %xmm0, (%r14)
movb $0x1, %al
jmp 0x11e10
movq 0x48(%r15), %rdi
testq %rdi, %rdi
je 0x11ddb
callq 0x5030
movq %rax, 0x8(%rbx)
jmp 0x11e0e
movl $0x1, %edi
movl $0x80, %esi
callq 0x12563
movl %ebp, (%rax)
movq 0x8(%rsp), %rcx
movq %rcx, 0x10(%rax)
movabsq $0x100000000, %rcx # imm = 0x100000000
movq %rcx, 0x4(%rax)
movq %rbx, %rdi
movq %rax, %rsi
callq 0x17f75
xorl %eax, %eax
addq $0x18, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
| req_client_update:
push rbp
push r15
push r14
push rbx
sub rsp, 18h
mov r14, r8
mov ebp, ecx
mov ecx, edx
mov edx, esi
mov rbx, rdi
xorps xmm0, xmm0
mov r15, rsp
movaps xmmword ptr [r15], xmm0
mov qword ptr [r15+10h], 0
lea rsi, aEthV1BeaconLig; "eth/v1/beacon/light_client/updates?star"...
mov rdi, r15
xor eax, eax
call bprintf
mov rsi, [r15+8]
mov rdi, rbx
call c4_state_get_data_request_by_url
test rax, rax
jz short loc_11DDB
mov r15, rax
mov rdi, rsp
call buffer_free
cmp qword ptr [r15+38h], 0
jz short loc_11DC7
movups xmm0, xmmword ptr [r15+30h]
movups xmmword ptr [r14], xmm0
mov al, 1
jmp short loc_11E10
loc_11DC7:
mov rdi, [r15+48h]
test rdi, rdi
jz short loc_11DDB
call _strdup
mov [rbx+8], rax
jmp short loc_11E0E
loc_11DDB:
mov edi, 1
mov esi, 80h
call safe_calloc
mov [rax], ebp
mov rcx, [rsp+38h+var_30]
mov [rax+10h], rcx
mov rcx, 100000000h
mov [rax+4], rcx
mov rdi, rbx
mov rsi, rax
call c4_state_add_request
loc_11E0E:
xor eax, eax
loc_11E10:
add rsp, 18h
pop rbx
pop r14
pop r15
pop rbp
retn
| char req_client_update(long long a1, int a2, int a3, int a4, _OWORD *a5, int a6)
{
long long data_request_by_url; // rax
long long v10; // r15
long long v12; // rdi
long long v13; // rax
__int128 v14; // [rsp+0h] [rbp-38h] BYREF
long long v15; // [rsp+10h] [rbp-28h]
v14 = 0LL;
v15 = 0LL;
bprintf(
(unsigned int)&v14,
(unsigned int)"eth/v1/beacon/light_client/updates?start_period=%d&count=%d",
a2,
a3,
(_DWORD)a5,
a6,
0LL);
data_request_by_url = c4_state_get_data_request_by_url(a1, *((_QWORD *)&v14 + 1));
if ( !data_request_by_url )
goto LABEL_6;
v10 = data_request_by_url;
buffer_free(&v14);
if ( *(_QWORD *)(v10 + 56) )
{
*a5 = *(_OWORD *)(v10 + 48);
return 1;
}
v12 = *(_QWORD *)(v10 + 72);
if ( v12 )
{
*(_QWORD *)(a1 + 8) = strdup(v12);
}
else
{
LABEL_6:
v13 = safe_calloc(1LL, 128LL);
*(_DWORD *)v13 = a4;
*(_QWORD *)(v13 + 16) = *((_QWORD *)&v14 + 1);
*(_QWORD *)(v13 + 4) = 0x100000000LL;
c4_state_add_request(a1, v13);
}
return 0;
}
| req_client_update:
PUSH RBP
PUSH R15
PUSH R14
PUSH RBX
SUB RSP,0x18
MOV R14,R8
MOV EBP,ECX
MOV ECX,EDX
MOV EDX,ESI
MOV RBX,RDI
XORPS XMM0,XMM0
MOV R15,RSP
MOVAPS xmmword ptr [R15],XMM0
MOV qword ptr [R15 + 0x10],0x0
LEA RSI,[0x13e061]
MOV RDI,R15
XOR EAX,EAX
CALL 0x00112da8
MOV RSI,qword ptr [R15 + 0x8]
MOV RDI,RBX
CALL 0x00117f28
TEST RAX,RAX
JZ 0x00111ddb
MOV R15,RAX
MOV RDI,RSP
CALL 0x00112733
CMP qword ptr [R15 + 0x38],0x0
JZ 0x00111dc7
MOVUPS XMM0,xmmword ptr [R15 + 0x30]
MOVUPS xmmword ptr [R14],XMM0
MOV AL,0x1
JMP 0x00111e10
LAB_00111dc7:
MOV RDI,qword ptr [R15 + 0x48]
TEST RDI,RDI
JZ 0x00111ddb
CALL 0x00105030
MOV qword ptr [RBX + 0x8],RAX
JMP 0x00111e0e
LAB_00111ddb:
MOV EDI,0x1
MOV ESI,0x80
CALL 0x00112563
MOV dword ptr [RAX],EBP
MOV RCX,qword ptr [RSP + 0x8]
MOV qword ptr [RAX + 0x10],RCX
MOV RCX,0x100000000
MOV qword ptr [RAX + 0x4],RCX
MOV RDI,RBX
MOV RSI,RAX
CALL 0x00117f75
LAB_00111e0e:
XOR EAX,EAX
LAB_00111e10:
ADD RSP,0x18
POP RBX
POP R14
POP R15
POP RBP
RET
|
int8
req_client_update(long param_1,int4 param_2,int4 param_3,int4 param_4,
int8 *param_5)
{
int8 uVar1;
long lVar2;
char *pcVar3;
int4 *puVar4;
int8 local_38;
int8 uStack_30;
int8 local_28;
local_38 = 0;
uStack_30 = 0;
local_28 = 0;
bprintf(&local_38,"eth/v1/beacon/light_client/updates?start_period=%d&count=%d",param_2,param_3);
lVar2 = c4_state_get_data_request_by_url(param_1,uStack_30);
if (lVar2 != 0) {
buffer_free(&local_38);
if (*(long *)(lVar2 + 0x38) != 0) {
uVar1 = *(int8 *)(lVar2 + 0x38);
*param_5 = *(int8 *)(lVar2 + 0x30);
param_5[1] = uVar1;
return 1;
}
if (*(char **)(lVar2 + 0x48) != (char *)0x0) {
pcVar3 = strdup(*(char **)(lVar2 + 0x48));
*(char **)(param_1 + 8) = pcVar3;
return 0;
}
}
puVar4 = (int4 *)safe_calloc(1,0x80);
*puVar4 = param_4;
*(int8 *)(puVar4 + 4) = uStack_30;
*(int8 *)(puVar4 + 1) = 0x100000000;
c4_state_add_request(param_1,puVar4);
return 0;
}
| |
42,611 | nglog::DoRawLog(char**, unsigned long*, char const*, ...) | ng-log[P]ng-log/src/raw_logging.cc | static bool DoRawLog(char** buf, size_t* size, const char* format, ...) {
va_list ap;
va_start(ap, format);
int n = std::vsnprintf(*buf, *size, format, ap);
va_end(ap);
if (n < 0 || static_cast<size_t>(n) > *size) return false;
*size -= static_cast<size_t>(n);
*buf += n;
return true;
} | O3 | cpp | nglog::DoRawLog(char**, unsigned long*, char const*, ...):
pushq %r14
pushq %rbx
subq $0xd8, %rsp
movq %rsi, %r14
movq %rdi, %rbx
leaq 0x20(%rsp), %rsi
movq %rcx, 0x18(%rsi)
movq %r8, 0x20(%rsi)
movq %r9, 0x28(%rsi)
testb %al, %al
je 0x2001b
movaps %xmm0, 0x50(%rsp)
movaps %xmm1, 0x60(%rsp)
movaps %xmm2, 0x70(%rsp)
movaps %xmm3, 0x80(%rsp)
movaps %xmm4, 0x90(%rsp)
movaps %xmm5, 0xa0(%rsp)
movaps %xmm6, 0xb0(%rsp)
movaps %xmm7, 0xc0(%rsp)
movq %rsp, %rcx
movq %rsi, 0x10(%rcx)
leaq 0xf0(%rsp), %rax
movq %rax, 0x8(%rcx)
movabsq $0x3000000018, %rax # imm = 0x3000000018
movq %rax, (%rcx)
movq (%rdi), %rdi
movq (%r14), %rsi
callq 0x7300
testl %eax, %eax
js 0x2005a
movl %eax, %eax
movq (%r14), %rcx
subq %rax, %rcx
jb 0x2005a
movq %rcx, (%r14)
addq %rax, (%rbx)
addq $0xd8, %rsp
popq %rbx
popq %r14
retq
| _ZN5nglogL8DoRawLogEPPcPmPKcz:
push r14
push rbx
sub rsp, 0D8h
mov r14, rsi
mov rbx, rdi
lea rsi, [rsp+0E8h+var_C8]
mov [rsi+18h], rcx
mov [rsi+20h], r8
mov [rsi+28h], r9
test al, al
jz short loc_2001B
movaps [rsp+0E8h+var_98], xmm0
movaps [rsp+0E8h+var_88], xmm1
movaps [rsp+0E8h+var_78], xmm2
movaps [rsp+0E8h+var_68], xmm3
movaps [rsp+0E8h+var_58], xmm4
movaps [rsp+0E8h+var_48], xmm5
movaps [rsp+0E8h+var_38], xmm6
movaps [rsp+0E8h+var_28], xmm7
loc_2001B:
mov rcx, rsp
mov [rcx+10h], rsi
lea rax, [rsp+0E8h+arg_0]
mov [rcx+8], rax
mov rax, 3000000018h
mov [rcx], rax
mov rdi, [rdi]
mov rsi, [r14]
call _vsnprintf
test eax, eax
js short loc_2005A
mov eax, eax
mov rcx, [r14]
sub rcx, rax
jb short loc_2005A
mov [r14], rcx
add [rbx], rax
loc_2005A:
add rsp, 0D8h
pop rbx
pop r14
retn
| long long nglog::DoRawLog(
nglog *this,
char **a2,
unsigned long long *a3,
const char *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)
{
long long result; // rax
_QWORD v16[4]; // [rsp+0h] [rbp-E8h] BYREF
char v17; // [rsp+20h] [rbp-C8h] BYREF
const char *v18; // [rsp+38h] [rbp-B0h]
long long v19; // [rsp+40h] [rbp-A8h]
long long v20; // [rsp+48h] [rbp-A0h]
__m128 v21; // [rsp+50h] [rbp-98h]
__m128 v22; // [rsp+60h] [rbp-88h]
__m128 v23; // [rsp+70h] [rbp-78h]
__m128 v24; // [rsp+80h] [rbp-68h]
__m128 v25; // [rsp+90h] [rbp-58h]
__m128 v26; // [rsp+A0h] [rbp-48h]
__m128 v27; // [rsp+B0h] [rbp-38h]
__m128 v28; // [rsp+C0h] [rbp-28h]
v21 = a7;
v22 = a8;
v23 = a9;
v24 = a10;
v25 = a11;
v26 = a12;
v27 = a13;
v28 = a14;
v18 = a4;
v19 = a5;
v20 = a6;
v16[2] = &v17;
v16[1] = &a15;
v16[0] = 0x3000000018LL;
result = vsnprintf(*(_QWORD *)this, *a2, a3, v16);
if ( (int)result >= 0 )
{
result = (unsigned int)result;
if ( (unsigned long long)*a2 >= (unsigned int)result )
{
*a2 -= (unsigned int)result;
*(_QWORD *)this += (unsigned int)result;
}
}
return result;
}
| DoRawLog:
PUSH R14
PUSH RBX
SUB RSP,0xd8
MOV R14,RSI
MOV RBX,RDI
LEA RSI,[RSP + 0x20]
MOV qword ptr [RSI + 0x18],RCX
MOV qword ptr [RSI + 0x20],R8
MOV qword ptr [RSI + 0x28],R9
TEST AL,AL
JZ 0x0012001b
MOVAPS xmmword ptr [RSP + 0x50],XMM0
MOVAPS xmmword ptr [RSP + 0x60],XMM1
MOVAPS xmmword ptr [RSP + 0x70],XMM2
MOVAPS xmmword ptr [RSP + 0x80],XMM3
MOVAPS xmmword ptr [RSP + 0x90],XMM4
MOVAPS xmmword ptr [RSP + 0xa0],XMM5
MOVAPS xmmword ptr [RSP + 0xb0],XMM6
MOVAPS xmmword ptr [RSP + 0xc0],XMM7
LAB_0012001b:
MOV RCX,RSP
MOV qword ptr [RCX + 0x10],RSI
LEA RAX,[RSP + 0xf0]
MOV qword ptr [RCX + 0x8],RAX
MOV RAX,0x3000000018
MOV qword ptr [RCX],RAX
MOV RDI,qword ptr [RDI]
MOV RSI,qword ptr [R14]
CALL 0x00107300
TEST EAX,EAX
JS 0x0012005a
MOV EAX,EAX
MOV RCX,qword ptr [R14]
SUB RCX,RAX
JC 0x0012005a
MOV qword ptr [R14],RCX
ADD qword ptr [RBX],RAX
LAB_0012005a:
ADD RSP,0xd8
POP RBX
POP R14
RET
|
/* nglog::DoRawLog(char**, unsigned long*, char const*, ...) */
void nglog::DoRawLog(char **param_1,ulong *param_2,char *param_3,...)
{
char in_AL;
uint uVar1;
ulong uVar2;
int8 in_RCX;
int8 in_R8;
int8 in_R9;
int8 in_XMM0_Qa;
int8 in_XMM1_Qa;
int8 in_XMM2_Qa;
int8 in_XMM3_Qa;
int8 in_XMM4_Qa;
int8 in_XMM5_Qa;
int8 in_XMM6_Qa;
int8 in_XMM7_Qa;
int8 local_e8;
int1 *local_e0;
int1 *local_d8;
int1 local_c8 [24];
int8 local_b0;
int8 local_a8;
int8 local_a0;
int8 local_98;
int8 local_88;
int8 local_78;
int8 local_68;
int8 local_58;
int8 local_48;
int8 local_38;
int8 local_28;
local_d8 = local_c8;
if (in_AL != '\0') {
local_98 = in_XMM0_Qa;
local_88 = in_XMM1_Qa;
local_78 = in_XMM2_Qa;
local_68 = in_XMM3_Qa;
local_58 = in_XMM4_Qa;
local_48 = in_XMM5_Qa;
local_38 = in_XMM6_Qa;
local_28 = in_XMM7_Qa;
}
local_e0 = &stack0x00000008;
local_e8 = 0x3000000018;
local_b0 = in_RCX;
local_a8 = in_R8;
local_a0 = in_R9;
uVar1 = vsnprintf(*param_1,*param_2,param_3,&local_e8);
if (-1 < (int)uVar1) {
uVar2 = (ulong)uVar1;
if (uVar2 <= *param_2) {
*param_2 = *param_2 - uVar2;
*param_1 = *param_1 + uVar2;
}
}
return;
}
| |
42,612 | ftxui::CellToGlyphIndex(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&) | Andrewchistyakov[P]flashcards_lyc/build_O2/_deps/ftxui-src/src/ftxui/screen/string.cpp | std::vector<int> CellToGlyphIndex(const std::string& input) {
int x = -1;
std::vector<int> out;
out.reserve(input.size());
size_t start = 0;
size_t end = 0;
while (start < input.size()) {
uint32_t codepoint = 0;
const bool eaten = EatCodePoint(input, start, &end, &codepoint);
start = end;
// Ignore invalid / control characters.
if (!eaten || IsControl(codepoint)) {
continue;
}
// Combining characters are put with the previous glyph they are modifying.
if (IsCombining(codepoint)) {
if (x == -1) {
++x;
out.push_back(x);
}
continue;
}
// Fullwidth characters take two cells. The second is made of the empty
// string to reserve the space the first is taking.
if (IsFullWidth(codepoint)) {
++x;
out.push_back(x);
out.push_back(x);
continue;
}
// Normal characters:
++x;
out.push_back(x);
}
return out;
} | O2 | cpp | ftxui::CellToGlyphIndex(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&):
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
orl $-0x1, 0x8(%rsp)
movq %rsi, %r14
movq %rdi, %rbx
xorps %xmm0, %xmm0
movups %xmm0, (%rdi)
andq $0x0, 0x10(%rdi)
movq 0x8(%rsi), %rsi
callq 0x31b1c
leaq 0x10(%rsp), %r15
andq $0x0, (%r15)
xorl %ebp, %ebp
leaq 0xc(%rsp), %r12
cmpq 0x8(%r14), %rbp
jae 0x31743
andl $0x0, 0xc(%rsp)
movq %r14, %rdi
movq %rbp, %rsi
movq %r15, %rdx
movq %r12, %rcx
callq 0x31040
movq 0x10(%rsp), %rbp
testb %al, %al
je 0x316b0
movl 0xc(%rsp), %r13d
testl %r13d, %r13d
je 0x316b0
cmpl $0x1f, %r13d
ja 0x316f1
cmpl $0xa, %r13d
jne 0x316b0
jmp 0x316fa
leal -0x7f(%r13), %eax
cmpl $0x21, %eax
jb 0x316b0
movl %r13d, %edi
callq 0x3114e
testb %al, %al
je 0x31714
cmpl $-0x1, 0x8(%rsp)
jne 0x316b0
andl $0x0, 0x8(%rsp)
jmp 0x31731
movl %r13d, %edi
callq 0x311a2
incl 0x8(%rsp)
testb %al, %al
je 0x31731
movq %rbx, %rdi
leaq 0x8(%rsp), %rsi
callq 0x18418
movq %rbx, %rdi
leaq 0x8(%rsp), %rsi
callq 0x18418
jmp 0x316b0
movq %rbx, %rax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x31757
movq %rax, %r14
movq %rbx, %rdi
callq 0x1b19c
movq %r14, %rdi
callq 0xc7f0
| _ZN5ftxui16CellToGlyphIndexERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE:
push rbp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 18h
or [rsp+48h+var_40], 0FFFFFFFFh
mov r14, rsi
mov rbx, rdi
xorps xmm0, xmm0
movups xmmword ptr [rdi], xmm0
and qword ptr [rdi+10h], 0
mov rsi, [rsi+8]
call _ZNSt6vectorIiSaIiEE7reserveEm; std::vector<int>::reserve(ulong)
lea r15, [rsp+48h+var_3C+4]
and qword ptr [r15], 0
xor ebp, ebp
lea r12, [rsp+48h+var_3C]
loc_316B0:
cmp rbp, [r14+8]
jnb loc_31743
and dword ptr [rsp+48h+var_3C], 0
mov rdi, r14
mov rsi, rbp; unsigned int
mov rdx, r15
mov rcx, r12
call _ZN5ftxui12EatCodePointERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEmPmPj; ftxui::EatCodePoint(std::string const&,ulong,ulong *,uint *)
mov rbp, [rsp+48h+var_3C+4]
test al, al
jz short loc_316B0
mov r13d, dword ptr [rsp+48h+var_3C]
test r13d, r13d
jz short loc_316B0
cmp r13d, 1Fh
ja short loc_316F1
cmp r13d, 0Ah
jnz short loc_316B0
jmp short loc_316FA
loc_316F1:
lea eax, [r13-7Fh]
cmp eax, 21h ; '!'
jb short loc_316B0
loc_316FA:
mov edi, r13d; this
call _ZN5ftxui11IsCombiningEj; ftxui::IsCombining(uint)
test al, al
jz short loc_31714
cmp [rsp+48h+var_40], 0FFFFFFFFh
jnz short loc_316B0
and [rsp+48h+var_40], 0
jmp short loc_31731
loc_31714:
mov edi, r13d; this
call _ZN5ftxui11IsFullWidthEj; ftxui::IsFullWidth(uint)
inc [rsp+48h+var_40]
test al, al
jz short loc_31731
mov rdi, rbx
lea rsi, [rsp+48h+var_40]
call _ZNSt6vectorIiSaIiEE9push_backERKi; std::vector<int>::push_back(int const&)
loc_31731:
mov rdi, rbx
lea rsi, [rsp+48h+var_40]
call _ZNSt6vectorIiSaIiEE9push_backERKi; std::vector<int>::push_back(int const&)
jmp loc_316B0
loc_31743:
mov rax, rbx
add rsp, 18h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
jmp short $+2
loc_31757:
mov r14, rax
mov rdi, rbx
call _ZNSt12_Vector_baseIiSaIiEED2Ev; std::_Vector_base<int>::~_Vector_base()
mov rdi, r14
call __Unwind_Resume
| long long ftxui::CellToGlyphIndex(long long a1, long long *a2)
{
unsigned long long v2; // rbp
char v3; // al
unsigned int v4; // r13d
char IsFullWidth; // al
unsigned int v7; // [rsp+8h] [rbp-40h] BYREF
unsigned int v8[15]; // [rsp+Ch] [rbp-3Ch] BYREF
v7 = -1;
*(_OWORD *)a1 = 0LL;
*(_QWORD *)(a1 + 16) = 0LL;
std::vector<int>::reserve(a1, a2[1]);
*(_QWORD *)&v8[1] = 0LL;
v2 = 0LL;
while ( v2 < a2[1] )
{
v8[0] = 0;
v3 = ftxui::EatCodePoint(a2, v2, &v8[1], (int *)v8);
v2 = *(_QWORD *)&v8[1];
if ( v3 )
{
v4 = v8[0];
if ( v8[0] )
{
if ( v8[0] > 0x1F )
{
if ( v8[0] - 127 >= 0x21 )
{
LABEL_9:
if ( (unsigned __int8)ftxui::IsCombining((ftxui *)v8[0]) )
{
if ( v7 == -1 )
{
v7 = 0;
goto LABEL_14;
}
}
else
{
IsFullWidth = ftxui::IsFullWidth((ftxui *)v4);
++v7;
if ( IsFullWidth )
std::vector<int>::push_back(a1, &v7);
LABEL_14:
std::vector<int>::push_back(a1, &v7);
}
}
}
else if ( v8[0] == 10 )
{
goto LABEL_9;
}
}
}
}
return a1;
}
| CellToGlyphIndex:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x18
OR dword ptr [RSP + 0x8],0xffffffff
MOV R14,RSI
MOV RBX,RDI
XORPS XMM0,XMM0
MOVUPS xmmword ptr [RDI],XMM0
AND qword ptr [RDI + 0x10],0x0
MOV RSI,qword ptr [RSI + 0x8]
LAB_0013169b:
CALL 0x00131b1c
LEA R15,[RSP + 0x10]
AND qword ptr [R15],0x0
XOR EBP,EBP
LEA R12,[RSP + 0xc]
LAB_001316b0:
CMP RBP,qword ptr [R14 + 0x8]
JNC 0x00131743
AND dword ptr [RSP + 0xc],0x0
MOV RDI,R14
MOV RSI,RBP
MOV RDX,R15
MOV RCX,R12
CALL 0x00131040
MOV RBP,qword ptr [RSP + 0x10]
TEST AL,AL
JZ 0x001316b0
MOV R13D,dword ptr [RSP + 0xc]
TEST R13D,R13D
JZ 0x001316b0
CMP R13D,0x1f
JA 0x001316f1
CMP R13D,0xa
JNZ 0x001316b0
JMP 0x001316fa
LAB_001316f1:
LEA EAX,[R13 + -0x7f]
CMP EAX,0x21
JC 0x001316b0
LAB_001316fa:
MOV EDI,R13D
CALL 0x0013114e
TEST AL,AL
JZ 0x00131714
CMP dword ptr [RSP + 0x8],-0x1
JNZ 0x001316b0
AND dword ptr [RSP + 0x8],0x0
JMP 0x00131731
LAB_00131714:
MOV EDI,R13D
CALL 0x001311a2
INC dword ptr [RSP + 0x8]
TEST AL,AL
JZ 0x00131731
LAB_00131724:
MOV RDI,RBX
LEA RSI,[RSP + 0x8]
CALL 0x00118418
LAB_00131731:
MOV RDI,RBX
LEA RSI,[RSP + 0x8]
CALL 0x00118418
LAB_0013173e:
JMP 0x001316b0
LAB_00131743:
MOV RAX,RBX
ADD RSP,0x18
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
|
/* ftxui::CellToGlyphIndex(std::__cxx11::string const&) */
ftxui * __thiscall ftxui::CellToGlyphIndex(ftxui *this,string *param_1)
{
uint uVar1;
char cVar2;
ulong uVar3;
int local_40;
uint local_3c;
ulong local_38;
local_40 = -1;
*(int8 *)this = 0;
*(int8 *)(this + 8) = 0;
*(int8 *)(this + 0x10) = 0;
/* try { // try from 0013169b to 0013169f has its CatchHandler @ 00131755 */
std::vector<int,std::allocator<int>>::reserve
((vector<int,std::allocator<int>> *)this,*(ulong *)(param_1 + 8));
local_38 = 0;
uVar3 = 0;
LAB_001316b0:
do {
do {
if (*(ulong *)(param_1 + 8) <= uVar3) {
return this;
}
local_3c = 0;
cVar2 = EatCodePoint(param_1,uVar3,&local_38,&local_3c);
uVar3 = local_38;
uVar1 = local_3c;
} while ((cVar2 == '\0') || (local_3c == 0));
if (0x1f < local_3c) goto LAB_001316f1;
} while (local_3c != 10);
goto LAB_001316fa;
LAB_001316f1:
if (0x20 < local_3c - 0x7f) {
LAB_001316fa:
cVar2 = IsCombining(local_3c);
if (cVar2 == '\0') {
cVar2 = IsFullWidth(uVar1);
local_40 = local_40 + 1;
if (cVar2 != '\0') {
/* try { // try from 00131724 to 0013173d has its CatchHandler @ 00131757 */
std::vector<int,std::allocator<int>>::push_back
((vector<int,std::allocator<int>> *)this,&local_40);
}
}
else {
if (local_40 != -1) goto LAB_001316b0;
local_40 = 0;
}
std::vector<int,std::allocator<int>>::push_back
((vector<int,std::allocator<int>> *)this,&local_40);
}
goto LAB_001316b0;
}
| |
42,613 | nlohmann::json_abi_v3_11_3::detail::dtoa_impl::boundaries nlohmann::json_abi_v3_11_3::detail::dtoa_impl::compute_boundaries<double>(double) | monkey531[P]llama/common/./json.hpp | boundaries compute_boundaries(FloatType value)
{
JSON_ASSERT(std::isfinite(value));
JSON_ASSERT(value > 0);
// Convert the IEEE representation into a diyfp.
//
// If v is denormal:
// value = 0.F * 2^(1 - bias) = ( F) * 2^(1 - bias - (p-1))
// If v is normalized:
// value = 1.F * 2^(E - bias) = (2^(p-1) + F) * 2^(E - bias - (p-1))
static_assert(std::numeric_limits<FloatType>::is_iec559,
"internal error: dtoa_short requires an IEEE-754 floating-point implementation");
constexpr int kPrecision = std::numeric_limits<FloatType>::digits; // = p (includes the hidden bit)
constexpr int kBias = std::numeric_limits<FloatType>::max_exponent - 1 + (kPrecision - 1);
constexpr int kMinExp = 1 - kBias;
constexpr std::uint64_t kHiddenBit = std::uint64_t{1} << (kPrecision - 1); // = 2^(p-1)
using bits_type = typename std::conditional<kPrecision == 24, std::uint32_t, std::uint64_t >::type;
const auto bits = static_cast<std::uint64_t>(reinterpret_bits<bits_type>(value));
const std::uint64_t E = bits >> (kPrecision - 1);
const std::uint64_t F = bits & (kHiddenBit - 1);
const bool is_denormal = E == 0;
const diyfp v = is_denormal
? diyfp(F, kMinExp)
: diyfp(F + kHiddenBit, static_cast<int>(E) - kBias);
// Compute the boundaries m- and m+ of the floating-point value
// v = f * 2^e.
//
// Determine v- and v+, the floating-point predecessor and successor if v,
// respectively.
//
// v- = v - 2^e if f != 2^(p-1) or e == e_min (A)
// = v - 2^(e-1) if f == 2^(p-1) and e > e_min (B)
//
// v+ = v + 2^e
//
// Let m- = (v- + v) / 2 and m+ = (v + v+) / 2. All real numbers _strictly_
// between m- and m+ round to v, regardless of how the input rounding
// algorithm breaks ties.
//
// ---+-------------+-------------+-------------+-------------+--- (A)
// v- m- v m+ v+
//
// -----------------+------+------+-------------+-------------+--- (B)
// v- m- v m+ v+
const bool lower_boundary_is_closer = F == 0 && E > 1;
const diyfp m_plus = diyfp(2 * v.f + 1, v.e - 1);
const diyfp m_minus = lower_boundary_is_closer
? diyfp(4 * v.f - 1, v.e - 2) // (B)
: diyfp(2 * v.f - 1, v.e - 1); // (A)
// Determine the normalized w+ = m+.
const diyfp w_plus = diyfp::normalize(m_plus);
// Determine w- = m- such that e_(w-) = e_(w+).
const diyfp w_minus = diyfp::normalize_to(m_minus, w_plus.e);
return {diyfp::normalize(v), w_minus, w_plus};
} | O0 | cpp | nlohmann::json_abi_v3_11_3::detail::dtoa_impl::boundaries nlohmann::json_abi_v3_11_3::detail::dtoa_impl::compute_boundaries<double>(double):
subq $0x108, %rsp # imm = 0x108
movq %rdi, 0x10(%rsp)
movq %rdi, 0x18(%rsp)
movsd %xmm0, 0x100(%rsp)
movl $0x35, 0xfc(%rsp)
movl $0x433, 0xf8(%rsp) # imm = 0x433
movl $0xfffffbce, 0xf4(%rsp) # imm = 0xFFFFFBCE
movabsq $0x10000000000000, %rax # imm = 0x10000000000000
movq %rax, 0xe8(%rsp)
movsd 0x100(%rsp), %xmm0
callq 0xa29d0
movq %rax, 0xe0(%rsp)
movq 0xe0(%rsp), %rax
shrq $0x34, %rax
movq %rax, 0xd8(%rsp)
movabsq $0xfffffffffffff, %rax # imm = 0xFFFFFFFFFFFFF
andq 0xe0(%rsp), %rax
movq %rax, 0xd0(%rsp)
cmpq $0x0, 0xd8(%rsp)
sete %al
andb $0x1, %al
movb %al, 0xcf(%rsp)
testb $0x1, 0xcf(%rsp)
je 0xa25dc
movq 0xd0(%rsp), %rsi
leaq 0xb8(%rsp), %rdi
movl $0xfffffbce, %edx # imm = 0xFFFFFBCE
callq 0xa29f0
jmp 0xa260b
movabsq $0x10000000000000, %rsi # imm = 0x10000000000000
addq 0xd0(%rsp), %rsi
movq 0xd8(%rsp), %rax
movl %eax, %edx
subl $0x433, %edx # imm = 0x433
leaq 0xb8(%rsp), %rdi
callq 0xa29f0
xorl %eax, %eax
cmpq $0x0, 0xd0(%rsp)
movb %al, 0xf(%rsp)
jne 0xa262c
cmpq $0x1, 0xd8(%rsp)
seta %al
movb %al, 0xf(%rsp)
movb 0xf(%rsp), %al
andb $0x1, %al
movb %al, 0xb7(%rsp)
movq 0xb8(%rsp), %rsi
shlq %rsi
addq $0x1, %rsi
movl 0xc0(%rsp), %edx
subl $0x1, %edx
leaq 0xa0(%rsp), %rdi
callq 0xa29f0
testb $0x1, 0xb7(%rsp)
je 0xa2692
movq 0xb8(%rsp), %rsi
shlq $0x2, %rsi
subq $0x1, %rsi
movl 0xc0(%rsp), %edx
subl $0x2, %edx
leaq 0x90(%rsp), %rdi
callq 0xa29f0
jmp 0xa26b8
movq 0xb8(%rsp), %rsi
shlq %rsi
subq $0x1, %rsi
movl 0xc0(%rsp), %edx
subl $0x1, %edx
leaq 0x90(%rsp), %rdi
callq 0xa29f0
movups 0xa0(%rsp), %xmm0
movaps %xmm0, 0x70(%rsp)
movq 0x70(%rsp), %rdi
movl 0x78(%rsp), %esi
callq 0xa2a20
movl %edx, 0x68(%rsp)
movq %rax, 0x60(%rsp)
movl 0x68(%rsp), %eax
movl %eax, 0x88(%rsp)
movq 0x60(%rsp), %rax
movq %rax, 0x80(%rsp)
movl 0x88(%rsp), %esi
leaq 0x90(%rsp), %rdi
callq 0xa2a70
movl %edx, 0x48(%rsp)
movq %rax, 0x40(%rsp)
movl 0x48(%rsp), %eax
movl %eax, 0x58(%rsp)
movq 0x40(%rsp), %rax
movq %rax, 0x50(%rsp)
movups 0xb8(%rsp), %xmm0
movaps %xmm0, 0x30(%rsp)
movq 0x30(%rsp), %rdi
movl 0x38(%rsp), %esi
callq 0xa2a20
movq 0x10(%rsp), %rcx
movq %rax, %rsi
movq 0x18(%rsp), %rax
movq %rsi, (%rsp)
movl %edx, %esi
movq (%rsp), %rdx
movl %esi, 0x28(%rsp)
movq %rdx, 0x20(%rsp)
movq 0x20(%rsp), %rdx
movq %rdx, (%rcx)
movl 0x28(%rsp), %edx
movl %edx, 0x8(%rcx)
movq 0x50(%rsp), %rdx
movq %rdx, 0x10(%rcx)
movl 0x58(%rsp), %edx
movl %edx, 0x18(%rcx)
movq 0x80(%rsp), %rdx
movq %rdx, 0x20(%rcx)
movl 0x88(%rsp), %edx
movl %edx, 0x28(%rcx)
addq $0x108, %rsp # imm = 0x108
retq
nopl (%rax,%rax)
| _ZN8nlohmann16json_abi_v3_11_36detail9dtoa_impl18compute_boundariesIdEENS2_10boundariesET_:
sub rsp, 108h
mov [rsp+108h+var_F8], rdi
mov [rsp+108h+var_F0], rdi
movsd [rsp+108h+var_8], xmm0
mov [rsp+108h+var_C], 35h ; '5'
mov [rsp+108h+var_10], 433h
mov [rsp+108h+var_14], 0FFFFFBCEh
mov rax, 10000000000000h
mov [rsp+108h+var_20], rax
movsd xmm0, [rsp+108h+var_8]
call _ZN8nlohmann16json_abi_v3_11_36detail9dtoa_impl16reinterpret_bitsImdEET_T0_; nlohmann::json_abi_v3_11_3::detail::dtoa_impl::reinterpret_bits<ulong,double>(double)
mov [rsp+108h+var_28], rax
mov rax, [rsp+108h+var_28]
shr rax, 34h
mov [rsp+108h+var_30], rax
mov rax, 0FFFFFFFFFFFFFh
and rax, [rsp+108h+var_28]
mov [rsp+108h+var_38], rax
cmp [rsp+108h+var_30], 0
setz al
and al, 1
mov [rsp+108h+var_39], al
test [rsp+108h+var_39], 1
jz short loc_A25DC
mov rsi, [rsp+108h+var_38]; unsigned __int64
lea rdi, [rsp+108h+var_50]; this
mov edx, 0FFFFFBCEh; int
call _ZN8nlohmann16json_abi_v3_11_36detail9dtoa_impl5diyfpC2Emi; nlohmann::json_abi_v3_11_3::detail::dtoa_impl::diyfp::diyfp(ulong,int)
jmp short loc_A260B
loc_A25DC:
mov rsi, 10000000000000h
add rsi, [rsp+108h+var_38]; unsigned __int64
mov rax, [rsp+108h+var_30]
mov edx, eax
sub edx, 433h; int
lea rdi, [rsp+108h+var_50]; this
call _ZN8nlohmann16json_abi_v3_11_36detail9dtoa_impl5diyfpC2Emi; nlohmann::json_abi_v3_11_3::detail::dtoa_impl::diyfp::diyfp(ulong,int)
loc_A260B:
xor eax, eax
cmp [rsp+108h+var_38], 0
mov [rsp+108h+var_F9], al
jnz short loc_A262C
cmp [rsp+108h+var_30], 1
setnbe al
mov [rsp+108h+var_F9], al
loc_A262C:
mov al, [rsp+108h+var_F9]
and al, 1
mov [rsp+108h+var_51], al
mov rsi, qword ptr [rsp+108h+var_50]
shl rsi, 1
add rsi, 1; unsigned __int64
mov edx, dword ptr [rsp+108h+var_50+8]
sub edx, 1; int
lea rdi, [rsp+108h+var_68]; this
call _ZN8nlohmann16json_abi_v3_11_36detail9dtoa_impl5diyfpC2Emi; nlohmann::json_abi_v3_11_3::detail::dtoa_impl::diyfp::diyfp(ulong,int)
test [rsp+108h+var_51], 1
jz short loc_A2692
mov rsi, qword ptr [rsp+108h+var_50]
shl rsi, 2
sub rsi, 1; unsigned __int64
mov edx, dword ptr [rsp+108h+var_50+8]
sub edx, 2; int
lea rdi, [rsp+108h+var_78]; this
call _ZN8nlohmann16json_abi_v3_11_36detail9dtoa_impl5diyfpC2Emi; nlohmann::json_abi_v3_11_3::detail::dtoa_impl::diyfp::diyfp(ulong,int)
jmp short loc_A26B8
loc_A2692:
mov rsi, qword ptr [rsp+108h+var_50]
shl rsi, 1
sub rsi, 1; unsigned __int64
mov edx, dword ptr [rsp+108h+var_50+8]
sub edx, 1; int
lea rdi, [rsp+108h+var_78]; this
call _ZN8nlohmann16json_abi_v3_11_36detail9dtoa_impl5diyfpC2Emi; nlohmann::json_abi_v3_11_3::detail::dtoa_impl::diyfp::diyfp(ulong,int)
loc_A26B8:
movups xmm0, [rsp+108h+var_68]
movaps [rsp+108h+var_98], xmm0
mov rdi, qword ptr [rsp+108h+var_98]
mov esi, dword ptr [rsp+108h+var_98+8]
call _ZN8nlohmann16json_abi_v3_11_36detail9dtoa_impl5diyfp9normalizeES3_; nlohmann::json_abi_v3_11_3::detail::dtoa_impl::diyfp::normalize(nlohmann::json_abi_v3_11_3::detail::dtoa_impl::diyfp)
mov [rsp+108h+var_A0], edx
mov [rsp+108h+var_A8], rax
mov eax, [rsp+108h+var_A0]
mov dword ptr [rsp+108h+var_80], eax
mov rax, [rsp+108h+var_A8]
mov [rsp+108h+var_88], rax
mov esi, dword ptr [rsp+108h+var_80]; nlohmann::json_abi_v3_11_3::detail::dtoa_impl::diyfp *
lea rdi, [rsp+108h+var_78]; this
call _ZN8nlohmann16json_abi_v3_11_36detail9dtoa_impl5diyfp12normalize_toERKS3_i; nlohmann::json_abi_v3_11_3::detail::dtoa_impl::diyfp::normalize_to(nlohmann::json_abi_v3_11_3::detail::dtoa_impl::diyfp const&,int)
mov [rsp+108h+var_C0], edx
mov [rsp+108h+var_C8], rax
mov eax, [rsp+108h+var_C0]
mov [rsp+108h+var_B0], eax
mov rax, [rsp+108h+var_C8]
mov [rsp+108h+var_B8], rax
movups xmm0, [rsp+108h+var_50]
movaps [rsp+108h+var_D8], xmm0
mov rdi, qword ptr [rsp+108h+var_D8]
mov esi, dword ptr [rsp+108h+var_D8+8]
call _ZN8nlohmann16json_abi_v3_11_36detail9dtoa_impl5diyfp9normalizeES3_; nlohmann::json_abi_v3_11_3::detail::dtoa_impl::diyfp::normalize(nlohmann::json_abi_v3_11_3::detail::dtoa_impl::diyfp)
mov rcx, [rsp+108h+var_F8]
mov rsi, rax
mov rax, [rsp+108h+var_F0]
mov [rsp+108h+var_108], rsi
mov esi, edx
mov rdx, [rsp+108h+var_108]
mov [rsp+108h+var_E0], esi
mov [rsp+108h+var_E8], rdx
mov rdx, [rsp+108h+var_E8]
mov [rcx], rdx
mov edx, [rsp+108h+var_E0]
mov [rcx+8], edx
mov rdx, [rsp+108h+var_B8]
mov [rcx+10h], rdx
mov edx, [rsp+108h+var_B0]
mov [rcx+18h], edx
mov rdx, [rsp+108h+var_88]
mov [rcx+20h], rdx
mov edx, dword ptr [rsp+108h+var_80]
mov [rcx+28h], edx
add rsp, 108h
retn
| long long nlohmann::json_abi_v3_11_3::detail::dtoa_impl::compute_boundaries<double>(long long a1, double a2)
{
long long v2; // rax
unsigned int v3; // edx
long long v4; // rax
int v5; // edx
long long v6; // rsi
long long result; // rax
int v8; // edx
bool v9; // [rsp+Fh] [rbp-F9h]
long long v10; // [rsp+50h] [rbp-B8h]
int v11; // [rsp+58h] [rbp-B0h]
long long v12; // [rsp+80h] [rbp-88h]
unsigned int v13; // [rsp+88h] [rbp-80h]
_BYTE v14[16]; // [rsp+90h] [rbp-78h] BYREF
long long v15; // [rsp+A0h] [rbp-68h] BYREF
unsigned int v16; // [rsp+A8h] [rbp-60h]
bool v17; // [rsp+B7h] [rbp-51h]
long long v18; // [rsp+B8h] [rbp-50h] BYREF
unsigned int v19; // [rsp+C0h] [rbp-48h]
bool v20; // [rsp+CFh] [rbp-39h]
unsigned long long v21; // [rsp+D0h] [rbp-38h]
unsigned long long v22; // [rsp+D8h] [rbp-30h]
unsigned long long v23; // [rsp+E0h] [rbp-28h]
long long v24; // [rsp+E8h] [rbp-20h]
int v25; // [rsp+F4h] [rbp-14h]
int v26; // [rsp+F8h] [rbp-10h]
int v27; // [rsp+FCh] [rbp-Ch]
double v28; // [rsp+100h] [rbp-8h]
v28 = a2;
v27 = 53;
v26 = 1075;
v25 = -1074;
v24 = 0x10000000000000LL;
v23 = nlohmann::json_abi_v3_11_3::detail::dtoa_impl::reinterpret_bits<unsigned long,double>(a2);
v22 = v23 >> 52;
v21 = v23 & 0xFFFFFFFFFFFFFLL;
v20 = v23 >> 52 == 0;
if ( v23 >> 52 )
nlohmann::json_abi_v3_11_3::detail::dtoa_impl::diyfp::diyfp(
(nlohmann::json_abi_v3_11_3::detail::dtoa_impl::diyfp *)&v18,
v21 + 0x10000000000000LL,
v22 - 1075);
else
nlohmann::json_abi_v3_11_3::detail::dtoa_impl::diyfp::diyfp(
(nlohmann::json_abi_v3_11_3::detail::dtoa_impl::diyfp *)&v18,
v21,
-1074);
v9 = 0;
if ( !v21 )
v9 = v22 > 1;
v17 = v9;
nlohmann::json_abi_v3_11_3::detail::dtoa_impl::diyfp::diyfp(
(nlohmann::json_abi_v3_11_3::detail::dtoa_impl::diyfp *)&v15,
2 * v18 + 1,
v19 - 1);
if ( v17 )
nlohmann::json_abi_v3_11_3::detail::dtoa_impl::diyfp::diyfp(
(nlohmann::json_abi_v3_11_3::detail::dtoa_impl::diyfp *)v14,
4 * v18 - 1,
v19 - 2);
else
nlohmann::json_abi_v3_11_3::detail::dtoa_impl::diyfp::diyfp(
(nlohmann::json_abi_v3_11_3::detail::dtoa_impl::diyfp *)v14,
2 * v18 - 1,
v19 - 1);
v2 = nlohmann::json_abi_v3_11_3::detail::dtoa_impl::diyfp::normalize(v15, v16);
v13 = v3;
v12 = v2;
v4 = nlohmann::json_abi_v3_11_3::detail::dtoa_impl::diyfp::normalize_to(
(nlohmann::json_abi_v3_11_3::detail::dtoa_impl::diyfp *)v14,
(const nlohmann::json_abi_v3_11_3::detail::dtoa_impl::diyfp *)v3,
v3);
v11 = v5;
v10 = v4;
v6 = nlohmann::json_abi_v3_11_3::detail::dtoa_impl::diyfp::normalize(v18, v19);
result = a1;
*(_QWORD *)a1 = v6;
*(_DWORD *)(a1 + 8) = v8;
*(_QWORD *)(a1 + 16) = v10;
*(_DWORD *)(a1 + 24) = v11;
*(_QWORD *)(a1 + 32) = v12;
*(_DWORD *)(a1 + 40) = v13;
return result;
}
| compute_boundaries<double>:
SUB RSP,0x108
MOV qword ptr [RSP + 0x10],RDI
MOV qword ptr [RSP + 0x18],RDI
MOVSD qword ptr [RSP + 0x100],XMM0
MOV dword ptr [RSP + 0xfc],0x35
MOV dword ptr [RSP + 0xf8],0x433
MOV dword ptr [RSP + 0xf4],0xfffffbce
MOV RAX,0x10000000000000
MOV qword ptr [RSP + 0xe8],RAX
MOVSD XMM0,qword ptr [RSP + 0x100]
CALL 0x001a29d0
MOV qword ptr [RSP + 0xe0],RAX
MOV RAX,qword ptr [RSP + 0xe0]
SHR RAX,0x34
MOV qword ptr [RSP + 0xd8],RAX
MOV RAX,0xfffffffffffff
AND RAX,qword ptr [RSP + 0xe0]
MOV qword ptr [RSP + 0xd0],RAX
CMP qword ptr [RSP + 0xd8],0x0
SETZ AL
AND AL,0x1
MOV byte ptr [RSP + 0xcf],AL
TEST byte ptr [RSP + 0xcf],0x1
JZ 0x001a25dc
MOV RSI,qword ptr [RSP + 0xd0]
LEA RDI,[RSP + 0xb8]
MOV EDX,0xfffffbce
CALL 0x001a29f0
JMP 0x001a260b
LAB_001a25dc:
MOV RSI,0x10000000000000
ADD RSI,qword ptr [RSP + 0xd0]
MOV RAX,qword ptr [RSP + 0xd8]
MOV EDX,EAX
SUB EDX,0x433
LEA RDI,[RSP + 0xb8]
CALL 0x001a29f0
LAB_001a260b:
XOR EAX,EAX
CMP qword ptr [RSP + 0xd0],0x0
MOV byte ptr [RSP + 0xf],AL
JNZ 0x001a262c
CMP qword ptr [RSP + 0xd8],0x1
SETA AL
MOV byte ptr [RSP + 0xf],AL
LAB_001a262c:
MOV AL,byte ptr [RSP + 0xf]
AND AL,0x1
MOV byte ptr [RSP + 0xb7],AL
MOV RSI,qword ptr [RSP + 0xb8]
SHL RSI,0x1
ADD RSI,0x1
MOV EDX,dword ptr [RSP + 0xc0]
SUB EDX,0x1
LEA RDI,[RSP + 0xa0]
CALL 0x001a29f0
TEST byte ptr [RSP + 0xb7],0x1
JZ 0x001a2692
MOV RSI,qword ptr [RSP + 0xb8]
SHL RSI,0x2
SUB RSI,0x1
MOV EDX,dword ptr [RSP + 0xc0]
SUB EDX,0x2
LEA RDI,[RSP + 0x90]
CALL 0x001a29f0
JMP 0x001a26b8
LAB_001a2692:
MOV RSI,qword ptr [RSP + 0xb8]
SHL RSI,0x1
SUB RSI,0x1
MOV EDX,dword ptr [RSP + 0xc0]
SUB EDX,0x1
LEA RDI,[RSP + 0x90]
CALL 0x001a29f0
LAB_001a26b8:
MOVUPS XMM0,xmmword ptr [RSP + 0xa0]
MOVAPS xmmword ptr [RSP + 0x70],XMM0
MOV RDI,qword ptr [RSP + 0x70]
MOV ESI,dword ptr [RSP + 0x78]
CALL 0x001a2a20
MOV dword ptr [RSP + 0x68],EDX
MOV qword ptr [RSP + 0x60],RAX
MOV EAX,dword ptr [RSP + 0x68]
MOV dword ptr [RSP + 0x88],EAX
MOV RAX,qword ptr [RSP + 0x60]
MOV qword ptr [RSP + 0x80],RAX
MOV ESI,dword ptr [RSP + 0x88]
LEA RDI,[RSP + 0x90]
CALL 0x001a2a70
MOV dword ptr [RSP + 0x48],EDX
MOV qword ptr [RSP + 0x40],RAX
MOV EAX,dword ptr [RSP + 0x48]
MOV dword ptr [RSP + 0x58],EAX
MOV RAX,qword ptr [RSP + 0x40]
MOV qword ptr [RSP + 0x50],RAX
MOVUPS XMM0,xmmword ptr [RSP + 0xb8]
MOVAPS xmmword ptr [RSP + 0x30],XMM0
MOV RDI,qword ptr [RSP + 0x30]
MOV ESI,dword ptr [RSP + 0x38]
CALL 0x001a2a20
MOV RCX,qword ptr [RSP + 0x10]
MOV RSI,RAX
MOV RAX,qword ptr [RSP + 0x18]
MOV qword ptr [RSP],RSI
MOV ESI,EDX
MOV RDX,qword ptr [RSP]
MOV dword ptr [RSP + 0x28],ESI
MOV qword ptr [RSP + 0x20],RDX
MOV RDX,qword ptr [RSP + 0x20]
MOV qword ptr [RCX],RDX
MOV EDX,dword ptr [RSP + 0x28]
MOV dword ptr [RCX + 0x8],EDX
MOV RDX,qword ptr [RSP + 0x50]
MOV qword ptr [RCX + 0x10],RDX
MOV EDX,dword ptr [RSP + 0x58]
MOV dword ptr [RCX + 0x18],EDX
MOV RDX,qword ptr [RSP + 0x80]
MOV qword ptr [RCX + 0x20],RDX
MOV EDX,dword ptr [RSP + 0x88]
MOV dword ptr [RCX + 0x28],EDX
ADD RSP,0x108
RET
|
/* nlohmann::json_abi_v3_11_3::detail::dtoa_impl::boundaries
nlohmann::json_abi_v3_11_3::detail::dtoa_impl::compute_boundaries<double>(double) */
dtoa_impl * __thiscall
nlohmann::json_abi_v3_11_3::detail::dtoa_impl::compute_boundaries<double>
(dtoa_impl *this,double param_1)
{
int1 auVar1 [12];
int1 auVar2 [12];
int1 auVar3 [12];
bool local_f9;
diyfp local_78 [16];
int4 local_68;
int4 uStack_64;
int4 uStack_60;
bool local_51;
int4 local_50;
int4 uStack_4c;
int iStack_48;
int1 local_39;
ulong local_38;
ulong local_30;
ulong local_28;
int8 local_20;
int4 local_14;
int4 local_10;
int4 local_c;
double local_8;
local_c = 0x35;
local_10 = 0x433;
local_14 = 0xfffffbce;
local_20 = 0x10000000000000;
local_8 = param_1;
local_28 = reinterpret_bits<unsigned_long,double>(param_1);
local_30 = local_28 >> 0x34;
local_38 = local_28 & 0xfffffffffffff;
local_39 = local_30 == 0;
if ((bool)local_39) {
diyfp::diyfp((diyfp *)&local_50,local_38,-0x432);
}
else {
diyfp::diyfp((diyfp *)&local_50,local_38 + 0x10000000000000,(uint)(local_28 >> 0x34) - 0x433);
}
local_f9 = local_38 == 0 && 1 < local_30;
local_51 = local_f9;
diyfp::diyfp((diyfp *)&local_68,CONCAT44(uStack_4c,local_50) * 2 + 1,iStack_48 + -1);
if ((local_51 & 1U) == 0) {
diyfp::diyfp(local_78,CONCAT44(uStack_4c,local_50) * 2 - 1,iStack_48 + -1);
}
else {
diyfp::diyfp(local_78,CONCAT44(uStack_4c,local_50) * 4 - 1,iStack_48 + -2);
}
auVar1 = diyfp::normalize((diyfp *)CONCAT44(uStack_64,local_68),uStack_60);
auVar2 = diyfp::normalize_to(local_78,auVar1._8_4_);
auVar3 = diyfp::normalize((diyfp *)CONCAT44(uStack_4c,local_50),iStack_48);
*(int1 (*) [12])this = auVar3;
*(int1 (*) [12])(this + 0x10) = auVar2;
*(int1 (*) [12])(this + 0x20) = auVar1;
return this;
}
| |
42,614 | nlohmann::json_abi_v3_11_3::detail::dtoa_impl::boundaries nlohmann::json_abi_v3_11_3::detail::dtoa_impl::compute_boundaries<double>(double) | monkey531[P]llama/common/./json.hpp | boundaries compute_boundaries(FloatType value)
{
JSON_ASSERT(std::isfinite(value));
JSON_ASSERT(value > 0);
// Convert the IEEE representation into a diyfp.
//
// If v is denormal:
// value = 0.F * 2^(1 - bias) = ( F) * 2^(1 - bias - (p-1))
// If v is normalized:
// value = 1.F * 2^(E - bias) = (2^(p-1) + F) * 2^(E - bias - (p-1))
static_assert(std::numeric_limits<FloatType>::is_iec559,
"internal error: dtoa_short requires an IEEE-754 floating-point implementation");
constexpr int kPrecision = std::numeric_limits<FloatType>::digits; // = p (includes the hidden bit)
constexpr int kBias = std::numeric_limits<FloatType>::max_exponent - 1 + (kPrecision - 1);
constexpr int kMinExp = 1 - kBias;
constexpr std::uint64_t kHiddenBit = std::uint64_t{1} << (kPrecision - 1); // = 2^(p-1)
using bits_type = typename std::conditional<kPrecision == 24, std::uint32_t, std::uint64_t >::type;
const auto bits = static_cast<std::uint64_t>(reinterpret_bits<bits_type>(value));
const std::uint64_t E = bits >> (kPrecision - 1);
const std::uint64_t F = bits & (kHiddenBit - 1);
const bool is_denormal = E == 0;
const diyfp v = is_denormal
? diyfp(F, kMinExp)
: diyfp(F + kHiddenBit, static_cast<int>(E) - kBias);
// Compute the boundaries m- and m+ of the floating-point value
// v = f * 2^e.
//
// Determine v- and v+, the floating-point predecessor and successor if v,
// respectively.
//
// v- = v - 2^e if f != 2^(p-1) or e == e_min (A)
// = v - 2^(e-1) if f == 2^(p-1) and e > e_min (B)
//
// v+ = v + 2^e
//
// Let m- = (v- + v) / 2 and m+ = (v + v+) / 2. All real numbers _strictly_
// between m- and m+ round to v, regardless of how the input rounding
// algorithm breaks ties.
//
// ---+-------------+-------------+-------------+-------------+--- (A)
// v- m- v m+ v+
//
// -----------------+------+------+-------------+-------------+--- (B)
// v- m- v m+ v+
const bool lower_boundary_is_closer = F == 0 && E > 1;
const diyfp m_plus = diyfp(2 * v.f + 1, v.e - 1);
const diyfp m_minus = lower_boundary_is_closer
? diyfp(4 * v.f - 1, v.e - 2) // (B)
: diyfp(2 * v.f - 1, v.e - 1); // (A)
// Determine the normalized w+ = m+.
const diyfp w_plus = diyfp::normalize(m_plus);
// Determine w- = m- such that e_(w-) = e_(w+).
const diyfp w_minus = diyfp::normalize_to(m_minus, w_plus.e);
return {diyfp::normalize(v), w_minus, w_plus};
} | O3 | cpp | nlohmann::json_abi_v3_11_3::detail::dtoa_impl::boundaries nlohmann::json_abi_v3_11_3::detail::dtoa_impl::compute_boundaries<double>(double):
movq %rdi, %rax
movabsq $0x10000000000000, %r9 # imm = 0x10000000000000
movq %xmm0, %rdx
leaq -0x1(%r9), %r10
andq %rdx, %r10
movq %rdx, %rcx
shrq $0x34, %rcx
jne 0x34c16
leaq 0x1(,%rdx,2), %rsi
addq %rdx, %rdx
movl $0xfffffbce, %edi # imm = 0xFFFFFBCE
movl $0xfffffbcd, %r8d # imm = 0xFFFFFBCD
jmp 0x34c5d
movq %r10, %r11
orq %r9, %r11
leal -0x433(%rcx), %edi
testq %r10, %r10
setne %r10b
shrq $0x35, %rdx
sete %dl
leaq 0x1(,%r11,2), %rsi
leal -0x434(%rcx), %r8d
orb %r10b, %dl
jne 0x34c56
addl $0xfffffbcb, %ecx # imm = 0xFFFFFBCB
movabsq $0x3fffffffffffff, %rdx # imm = 0x3FFFFFFFFFFFFF
jmp 0x34c66
leaq (%r11,%r11), %rdx
movq %r11, %r10
decq %rdx
movq %r10, %r9
movl %r8d, %ecx
addq %rsi, %rsi
decl %r8d
testq %rsi, %rsi
jns 0x34c66
addq %r9, %r9
decl %edi
testq %r9, %r9
jns 0x34c71
subl %r8d, %ecx
shlq %cl, %rdx
movq %r9, (%rax)
movl %edi, 0x8(%rax)
movq %rdx, 0x10(%rax)
movl %r8d, 0x18(%rax)
movq %rsi, 0x20(%rax)
movl %r8d, 0x28(%rax)
retq
| _ZN8nlohmann16json_abi_v3_11_36detail9dtoa_impl18compute_boundariesIdEENS2_10boundariesET_:
mov rax, rdi
mov r9, 10000000000000h
movq rdx, xmm0
lea r10, [r9-1]
and r10, rdx
mov rcx, rdx
shr rcx, 34h
jnz short loc_34C16
lea rsi, ds:1[rdx*2]
add rdx, rdx
mov edi, 0FFFFFBCEh
mov r8d, 0FFFFFBCDh
jmp short loc_34C5D
loc_34C16:
mov r11, r10
or r11, r9
lea edi, [rcx-433h]
test r10, r10
setnz r10b
shr rdx, 35h
setz dl
lea rsi, ds:1[r11*2]
lea r8d, [rcx-434h]
or dl, r10b
jnz short loc_34C56
add ecx, 0FFFFFBCBh
mov rdx, 3FFFFFFFFFFFFFh
jmp short loc_34C66
loc_34C56:
lea rdx, [r11+r11]
mov r10, r11
loc_34C5D:
dec rdx
mov r9, r10
mov ecx, r8d
loc_34C66:
add rsi, rsi
dec r8d
test rsi, rsi
jns short loc_34C66
loc_34C71:
add r9, r9
dec edi
test r9, r9
jns short loc_34C71
sub ecx, r8d
shl rdx, cl
mov [rax], r9
mov [rax+8], edi
mov [rax+10h], rdx
mov [rax+18h], r8d
mov [rax+20h], rsi
mov [rax+28h], r8d
retn
| long long nlohmann::json_abi_v3_11_3::detail::dtoa_impl::compute_boundaries<double>(long long a1, double a2)
{
long long result; // rax
long long v3; // r9
long long v4; // r10
long long v5; // rcx
long long v6; // rsi
long long v7; // rdx
int v8; // edi
int v9; // r8d
char v10; // cl
long long v11; // rdx
result = a1;
v3 = 0x10000000000000LL;
v4 = *(_QWORD *)&a2 & 0xFFFFFFFFFFFFFLL;
v5 = *(_QWORD *)&a2 >> 52;
if ( *(_QWORD *)&a2 >> 52 )
{
v8 = v5 - 1075;
v6 = 2 * (v4 | 0x10000000000000LL) + 1;
v9 = v5 - 1076;
if ( v4 == 0 && *(_QWORD *)&a2 >> 53 != 0LL )
{
v10 = v5 - 53;
v11 = 0x3FFFFFFFFFFFFFLL;
goto LABEL_7;
}
v7 = 2 * (v4 | 0x10000000000000LL);
v4 |= 0x10000000000000uLL;
}
else
{
v6 = 2LL * *(_QWORD *)&a2 + 1;
v7 = 2LL * *(_QWORD *)&a2;
v8 = -1074;
v9 = -1075;
}
v11 = v7 - 1;
v3 = v4;
v10 = v9;
do
{
LABEL_7:
v6 *= 2LL;
--v9;
}
while ( v6 >= 0 );
do
{
v3 *= 2LL;
--v8;
}
while ( v3 >= 0 );
*(_QWORD *)result = v3;
*(_DWORD *)(result + 8) = v8;
*(_QWORD *)(result + 16) = v11 << (v10 - (unsigned __int8)v9);
*(_DWORD *)(result + 24) = v9;
*(_QWORD *)(result + 32) = v6;
*(_DWORD *)(result + 40) = v9;
return result;
}
| compute_boundaries<double>:
MOV RAX,RDI
MOV R9,0x10000000000000
MOVQ RDX,XMM0
LEA R10,[R9 + -0x1]
AND R10,RDX
MOV RCX,RDX
SHR RCX,0x34
JNZ 0x00134c16
LEA RSI,[0x1 + RDX*0x2]
ADD RDX,RDX
MOV EDI,0xfffffbce
MOV R8D,0xfffffbcd
JMP 0x00134c5d
LAB_00134c16:
MOV R11,R10
OR R11,R9
LEA EDI,[RCX + -0x433]
TEST R10,R10
SETNZ R10B
SHR RDX,0x35
SETZ DL
LEA RSI,[0x1 + R11*0x2]
LEA R8D,[RCX + -0x434]
OR DL,R10B
JNZ 0x00134c56
ADD ECX,0xfffffbcb
MOV RDX,0x3fffffffffffff
JMP 0x00134c66
LAB_00134c56:
LEA RDX,[R11 + R11*0x1]
MOV R10,R11
LAB_00134c5d:
DEC RDX
MOV R9,R10
MOV ECX,R8D
LAB_00134c66:
ADD RSI,RSI
DEC R8D
TEST RSI,RSI
JNS 0x00134c66
LAB_00134c71:
ADD R9,R9
DEC EDI
TEST R9,R9
JNS 0x00134c71
SUB ECX,R8D
SHL RDX,CL
MOV qword ptr [RAX],R9
MOV dword ptr [RAX + 0x8],EDI
MOV qword ptr [RAX + 0x10],RDX
MOV dword ptr [RAX + 0x18],R8D
MOV qword ptr [RAX + 0x20],RSI
MOV dword ptr [RAX + 0x28],R8D
RET
|
/* nlohmann::json_abi_v3_11_3::detail::dtoa_impl::boundaries
nlohmann::json_abi_v3_11_3::detail::dtoa_impl::compute_boundaries<double>(double) */
void __thiscall
nlohmann::json_abi_v3_11_3::detail::dtoa_impl::compute_boundaries<double>
(dtoa_impl *this,double param_1)
{
uint uVar1;
int iVar2;
long lVar3;
long lVar4;
int iVar5;
int iVar6;
ulong uVar7;
ulong uVar8;
ulong uVar9;
uVar7 = 0x10000000000000;
uVar8 = (ulong)param_1 & 0xfffffffffffff;
if ((ulong)param_1 >> 0x34 == 0) {
lVar4 = (long)param_1 * 2 + 1;
lVar3 = (long)param_1 * 2;
iVar5 = -0x432;
iVar6 = -0x433;
uVar7 = uVar8;
}
else {
uVar9 = uVar8 | 0x10000000000000;
uVar1 = (uint)((ulong)param_1 >> 0x20);
iVar5 = (uVar1 >> 0x14) - 0x433;
lVar4 = uVar9 * 2 + 1;
iVar6 = (uVar1 >> 0x14) - 0x434;
if ((ulong)param_1 >> 0x35 != 0 && uVar8 == 0) {
iVar2 = (uVar1 >> 0x14) - 0x435;
lVar3 = 0x3fffffffffffff;
goto LAB_00134c66;
}
lVar3 = uVar9 * 2;
uVar7 = uVar9;
}
lVar3 = lVar3 + -1;
iVar2 = iVar6;
LAB_00134c66:
do {
lVar4 = lVar4 * 2;
iVar6 = iVar6 + -1;
} while (-1 < lVar4);
do {
uVar7 = uVar7 * 2;
iVar5 = iVar5 + -1;
} while (-1 < (long)uVar7);
*(ulong *)this = uVar7;
*(int *)(this + 8) = iVar5;
*(long *)(this + 0x10) = lVar3 << ((char)iVar2 - (char)iVar6 & 0x3fU);
*(int *)(this + 0x18) = iVar6;
*(long *)(this + 0x20) = lVar4;
*(int *)(this + 0x28) = iVar6;
return;
}
| |
42,615 | mysql_close | eloqsql/libmariadb/libmariadb/mariadb_lib.c | void STDCALL
mysql_close(MYSQL *mysql)
{
if (mysql) /* Some simple safety */
{
if (mysql->extension && mysql->extension->conn_hdlr)
{
MA_CONNECTION_HANDLER *p= mysql->extension->conn_hdlr;
if (p->plugin->close)
p->plugin->close(mysql);
free(p);
/* Fix for CONC-294: Since we already called plugin->close function
we need to prevent that mysql_close_slow_part (which sends COM_QUIT
to the server) will be handled by plugin again. */
mysql->extension->conn_hdlr= NULL;
}
if (mysql->methods)
mysql->methods->db_close(mysql);
/* reset the connection in all active statements */
ma_invalidate_stmts(mysql, "mysql_close()");
mysql_close_memory(mysql);
mysql_close_options(mysql);
ma_clear_session_state(mysql);
if (mysql->net.extension)
{
if (compression_plugin(&mysql->net))
compression_plugin(&mysql->net)->free_ctx(compression_ctx(&mysql->net));
free(mysql->net.extension);
}
mysql->host_info=mysql->user=mysql->passwd=mysql->db=0;
/* Clear pointers for better safety */
memset((char*) &mysql->options, 0, sizeof(mysql->options));
if (mysql->extension)
free(mysql->extension);
/* Clear pointers for better safety */
mysql->net.extension = NULL;
mysql->extension = NULL;
mysql->net.pvio= 0;
if (mysql->free_me)
free(mysql);
}
return;
} | O0 | c | mysql_close:
pushq %rbp
movq %rsp, %rbp
subq $0x10, %rsp
movq %rdi, -0x8(%rbp)
cmpq $0x0, -0x8(%rbp)
je 0x383c6
movq -0x8(%rbp), %rax
cmpq $0x0, 0x4f0(%rax)
je 0x38272
movq -0x8(%rbp), %rax
movq 0x4f0(%rax), %rax
cmpq $0x0, (%rax)
je 0x38272
movq -0x8(%rbp), %rax
movq 0x4f0(%rax), %rax
movq (%rax), %rax
movq %rax, -0x10(%rbp)
movq -0x10(%rbp), %rax
movq (%rax), %rax
cmpq $0x0, 0x60(%rax)
je 0x38257
movq -0x10(%rbp), %rax
movq (%rax), %rax
movq 0x60(%rax), %rax
movq -0x8(%rbp), %rdi
callq *%rax
movq -0x10(%rbp), %rdi
callq 0x14530
movq -0x8(%rbp), %rax
movq 0x4f0(%rax), %rax
movq $0x0, (%rax)
movq -0x8(%rbp), %rax
cmpq $0x0, 0x4d0(%rax)
je 0x38295
movq -0x8(%rbp), %rax
movq 0x4d0(%rax), %rax
movq 0x8(%rax), %rax
movq -0x8(%rbp), %rdi
callq *%rax
movq -0x8(%rbp), %rdi
leaq 0x32ca9(%rip), %rsi # 0x6af49
callq 0x383d0
movq -0x8(%rbp), %rdi
callq 0x37be0
movq -0x8(%rbp), %rdi
callq 0x37ce0
movq -0x8(%rbp), %rdi
callq 0x389f0
movq -0x8(%rbp), %rax
cmpq $0x0, 0x2a0(%rax)
je 0x38314
movq -0x8(%rbp), %rax
movq 0x2a0(%rax), %rax
cmpq $0x0, 0x10(%rax)
je 0x38304
movq -0x8(%rbp), %rax
movq 0x2a0(%rax), %rax
movq 0x10(%rax), %rax
movq 0x60(%rax), %rax
movq -0x8(%rbp), %rcx
movq 0x2a0(%rcx), %rcx
movq 0x8(%rcx), %rdi
callq *%rax
movq -0x8(%rbp), %rax
movq 0x2a0(%rax), %rdi
callq 0x14530
movq -0x8(%rbp), %rax
movq $0x0, 0x2e8(%rax)
movq -0x8(%rbp), %rax
movq $0x0, 0x2c0(%rax)
movq -0x8(%rbp), %rax
movq $0x0, 0x2b8(%rax)
movq -0x8(%rbp), %rax
movq $0x0, 0x2d8(%rax)
movq -0x8(%rbp), %rdi
addq $0x390, %rdi # imm = 0x390
xorl %esi, %esi
movl $0xf8, %edx
callq 0x14260
movq -0x8(%rbp), %rax
cmpq $0x0, 0x4f0(%rax)
je 0x38385
movq -0x8(%rbp), %rax
movq 0x4f0(%rax), %rdi
callq 0x14530
movq -0x8(%rbp), %rax
movq $0x0, 0x2a0(%rax)
movq -0x8(%rbp), %rax
movq $0x0, 0x4f0(%rax)
movq -0x8(%rbp), %rax
movq $0x0, (%rax)
movq -0x8(%rbp), %rax
cmpb $0x0, 0x48c(%rax)
je 0x383c4
movq -0x8(%rbp), %rdi
callq 0x14530
jmp 0x383c6
addq $0x10, %rsp
popq %rbp
retq
nopl (%rax)
| mysql_close:
push rbp
mov rbp, rsp
sub rsp, 10h
mov [rbp+var_8], rdi
cmp [rbp+var_8], 0
jz loc_383C6
mov rax, [rbp+var_8]
cmp qword ptr [rax+4F0h], 0
jz short loc_38272
mov rax, [rbp+var_8]
mov rax, [rax+4F0h]
cmp qword ptr [rax], 0
jz short loc_38272
mov rax, [rbp+var_8]
mov rax, [rax+4F0h]
mov rax, [rax]
mov [rbp+var_10], rax
mov rax, [rbp+var_10]
mov rax, [rax]
cmp qword ptr [rax+60h], 0
jz short loc_38257
mov rax, [rbp+var_10]
mov rax, [rax]
mov rax, [rax+60h]
mov rdi, [rbp+var_8]
call rax
loc_38257:
mov rdi, [rbp+var_10]
call _free
mov rax, [rbp+var_8]
mov rax, [rax+4F0h]
mov qword ptr [rax], 0
loc_38272:
mov rax, [rbp+var_8]
cmp qword ptr [rax+4D0h], 0
jz short loc_38295
mov rax, [rbp+var_8]
mov rax, [rax+4D0h]
mov rax, [rax+8]
mov rdi, [rbp+var_8]
call rax
loc_38295:
mov rdi, [rbp+var_8]
lea rsi, aMysqlClose; "mysql_close()"
call ma_invalidate_stmts
mov rdi, [rbp+var_8]
call mysql_close_memory
mov rdi, [rbp+var_8]
call mysql_close_options
mov rdi, [rbp+var_8]
call ma_clear_session_state
mov rax, [rbp+var_8]
cmp qword ptr [rax+2A0h], 0
jz short loc_38314
mov rax, [rbp+var_8]
mov rax, [rax+2A0h]
cmp qword ptr [rax+10h], 0
jz short loc_38304
mov rax, [rbp+var_8]
mov rax, [rax+2A0h]
mov rax, [rax+10h]
mov rax, [rax+60h]
mov rcx, [rbp+var_8]
mov rcx, [rcx+2A0h]
mov rdi, [rcx+8]
call rax
loc_38304:
mov rax, [rbp+var_8]
mov rdi, [rax+2A0h]
call _free
loc_38314:
mov rax, [rbp+var_8]
mov qword ptr [rax+2E8h], 0
mov rax, [rbp+var_8]
mov qword ptr [rax+2C0h], 0
mov rax, [rbp+var_8]
mov qword ptr [rax+2B8h], 0
mov rax, [rbp+var_8]
mov qword ptr [rax+2D8h], 0
mov rdi, [rbp+var_8]
add rdi, 390h
xor esi, esi
mov edx, 0F8h
call _memset
mov rax, [rbp+var_8]
cmp qword ptr [rax+4F0h], 0
jz short loc_38385
mov rax, [rbp+var_8]
mov rdi, [rax+4F0h]
call _free
loc_38385:
mov rax, [rbp+var_8]
mov qword ptr [rax+2A0h], 0
mov rax, [rbp+var_8]
mov qword ptr [rax+4F0h], 0
mov rax, [rbp+var_8]
mov qword ptr [rax], 0
mov rax, [rbp+var_8]
cmp byte ptr [rax+48Ch], 0
jz short loc_383C4
mov rdi, [rbp+var_8]
call _free
loc_383C4:
jmp short $+2
loc_383C6:
add rsp, 10h
pop rbp
retn
| long long mysql_close(long long a1)
{
long long result; // rax
long long v2; // [rsp+0h] [rbp-10h]
if ( a1 )
{
if ( *(_QWORD *)(a1 + 1264) && **(_QWORD **)(a1 + 1264) )
{
v2 = **(_QWORD **)(a1 + 1264);
if ( *(_QWORD *)(*(_QWORD *)v2 + 96LL) )
(*(void ( **)(long long))(*(_QWORD *)v2 + 96LL))(a1);
free(v2);
**(_QWORD **)(a1 + 1264) = 0LL;
}
if ( *(_QWORD *)(a1 + 1232) )
(*(void ( **)(long long))(*(_QWORD *)(a1 + 1232) + 8LL))(a1);
ma_invalidate_stmts(a1, "mysql_close()");
mysql_close_memory((_QWORD *)a1);
mysql_close_options(a1);
ma_clear_session_state(a1);
if ( *(_QWORD *)(a1 + 672) )
{
if ( *(_QWORD *)(*(_QWORD *)(a1 + 672) + 16LL) )
(*(void ( **)(_QWORD))(*(_QWORD *)(*(_QWORD *)(a1 + 672) + 16LL) + 96LL))(*(_QWORD *)(*(_QWORD *)(a1 + 672) + 8LL));
free(*(_QWORD *)(a1 + 672));
}
*(_QWORD *)(a1 + 744) = 0LL;
*(_QWORD *)(a1 + 704) = 0LL;
*(_QWORD *)(a1 + 696) = 0LL;
*(_QWORD *)(a1 + 728) = 0LL;
memset(a1 + 912, 0LL, 248LL);
if ( *(_QWORD *)(a1 + 1264) )
free(*(_QWORD *)(a1 + 1264));
*(_QWORD *)(a1 + 672) = 0LL;
*(_QWORD *)(a1 + 1264) = 0LL;
*(_QWORD *)a1 = 0LL;
result = a1;
if ( *(_BYTE *)(a1 + 1164) )
return free(a1);
}
return result;
}
| mysql_close:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x10
MOV qword ptr [RBP + -0x8],RDI
CMP qword ptr [RBP + -0x8],0x0
JZ 0x001383c6
MOV RAX,qword ptr [RBP + -0x8]
CMP qword ptr [RAX + 0x4f0],0x0
JZ 0x00138272
MOV RAX,qword ptr [RBP + -0x8]
MOV RAX,qword ptr [RAX + 0x4f0]
CMP qword ptr [RAX],0x0
JZ 0x00138272
MOV RAX,qword ptr [RBP + -0x8]
MOV RAX,qword ptr [RAX + 0x4f0]
MOV RAX,qword ptr [RAX]
MOV qword ptr [RBP + -0x10],RAX
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX]
CMP qword ptr [RAX + 0x60],0x0
JZ 0x00138257
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX]
MOV RAX,qword ptr [RAX + 0x60]
MOV RDI,qword ptr [RBP + -0x8]
CALL RAX
LAB_00138257:
MOV RDI,qword ptr [RBP + -0x10]
CALL 0x00114530
MOV RAX,qword ptr [RBP + -0x8]
MOV RAX,qword ptr [RAX + 0x4f0]
MOV qword ptr [RAX],0x0
LAB_00138272:
MOV RAX,qword ptr [RBP + -0x8]
CMP qword ptr [RAX + 0x4d0],0x0
JZ 0x00138295
MOV RAX,qword ptr [RBP + -0x8]
MOV RAX,qword ptr [RAX + 0x4d0]
MOV RAX,qword ptr [RAX + 0x8]
MOV RDI,qword ptr [RBP + -0x8]
CALL RAX
LAB_00138295:
MOV RDI,qword ptr [RBP + -0x8]
LEA RSI,[0x16af49]
CALL 0x001383d0
MOV RDI,qword ptr [RBP + -0x8]
CALL 0x00137be0
MOV RDI,qword ptr [RBP + -0x8]
CALL 0x00137ce0
MOV RDI,qword ptr [RBP + -0x8]
CALL 0x001389f0
MOV RAX,qword ptr [RBP + -0x8]
CMP qword ptr [RAX + 0x2a0],0x0
JZ 0x00138314
MOV RAX,qword ptr [RBP + -0x8]
MOV RAX,qword ptr [RAX + 0x2a0]
CMP qword ptr [RAX + 0x10],0x0
JZ 0x00138304
MOV RAX,qword ptr [RBP + -0x8]
MOV RAX,qword ptr [RAX + 0x2a0]
MOV RAX,qword ptr [RAX + 0x10]
MOV RAX,qword ptr [RAX + 0x60]
MOV RCX,qword ptr [RBP + -0x8]
MOV RCX,qword ptr [RCX + 0x2a0]
MOV RDI,qword ptr [RCX + 0x8]
CALL RAX
LAB_00138304:
MOV RAX,qword ptr [RBP + -0x8]
MOV RDI,qword ptr [RAX + 0x2a0]
CALL 0x00114530
LAB_00138314:
MOV RAX,qword ptr [RBP + -0x8]
MOV qword ptr [RAX + 0x2e8],0x0
MOV RAX,qword ptr [RBP + -0x8]
MOV qword ptr [RAX + 0x2c0],0x0
MOV RAX,qword ptr [RBP + -0x8]
MOV qword ptr [RAX + 0x2b8],0x0
MOV RAX,qword ptr [RBP + -0x8]
MOV qword ptr [RAX + 0x2d8],0x0
MOV RDI,qword ptr [RBP + -0x8]
ADD RDI,0x390
XOR ESI,ESI
MOV EDX,0xf8
CALL 0x00114260
MOV RAX,qword ptr [RBP + -0x8]
CMP qword ptr [RAX + 0x4f0],0x0
JZ 0x00138385
MOV RAX,qword ptr [RBP + -0x8]
MOV RDI,qword ptr [RAX + 0x4f0]
CALL 0x00114530
LAB_00138385:
MOV RAX,qword ptr [RBP + -0x8]
MOV qword ptr [RAX + 0x2a0],0x0
MOV RAX,qword ptr [RBP + -0x8]
MOV qword ptr [RAX + 0x4f0],0x0
MOV RAX,qword ptr [RBP + -0x8]
MOV qword ptr [RAX],0x0
MOV RAX,qword ptr [RBP + -0x8]
CMP byte ptr [RAX + 0x48c],0x0
JZ 0x001383c4
MOV RDI,qword ptr [RBP + -0x8]
CALL 0x00114530
LAB_001383c4:
JMP 0x001383c6
LAB_001383c6:
ADD RSP,0x10
POP RBP
RET
|
void mysql_close(int8 *param_1)
{
long *__ptr;
if (param_1 != (int8 *)0x0) {
if ((param_1[0x9e] != 0) && (*(long *)param_1[0x9e] != 0)) {
__ptr = *(long **)param_1[0x9e];
if (*(long *)(*__ptr + 0x60) != 0) {
(**(code **)(*__ptr + 0x60))(param_1);
}
free(__ptr);
*(int8 *)param_1[0x9e] = 0;
}
if (param_1[0x9a] != 0) {
(**(code **)(param_1[0x9a] + 8))(param_1);
}
ma_invalidate_stmts(param_1);
mysql_close_memory(param_1);
mysql_close_options(param_1);
ma_clear_session_state(param_1);
if (param_1[0x54] != 0) {
if (*(long *)(param_1[0x54] + 0x10) != 0) {
(**(code **)(*(long *)(param_1[0x54] + 0x10) + 0x60))(*(int8 *)(param_1[0x54] + 8));
}
free((void *)param_1[0x54]);
}
param_1[0x5d] = 0;
param_1[0x58] = 0;
param_1[0x57] = 0;
param_1[0x5b] = 0;
memset(param_1 + 0x72,0,0xf8);
if (param_1[0x9e] != 0) {
free((void *)param_1[0x9e]);
}
param_1[0x54] = 0;
param_1[0x9e] = 0;
*param_1 = 0;
if (*(char *)((long)param_1 + 0x48c) != '\0') {
free(param_1);
}
}
return;
}
| |
42,616 | ft_free_stopwords | eloqsql/storage/myisam/ft_stopwords.c | void ft_free_stopwords()
{
DBUG_ENTER("ft_free_stopwords");
if (stopwords3)
{
delete_tree(stopwords3, 0); /* purecov: inspected */
my_free(stopwords3);
stopwords3=0;
}
ft_stopword_file= 0;
DBUG_VOID_RETURN;
} | O3 | c | ft_free_stopwords:
pushq %rbp
movq %rsp, %rbp
movq 0x364048(%rip), %rdi # 0x3adf50
testq %rdi, %rdi
je 0x49f2b
xorl %esi, %esi
callq 0x619a6
movq 0x364035(%rip), %rdi # 0x3adf50
callq 0x5d2ca
movq $0x0, 0x364025(%rip) # 0x3adf50
leaq 0x364016(%rip), %rax # 0x3adf48
movq $0x0, (%rax)
popq %rbp
retq
nop
| ft_free_stopwords:
push rbp
mov rbp, rsp
mov rdi, cs:stopwords3
test rdi, rdi
jz short loc_49F2B
xor esi, esi
call delete_tree
mov rdi, cs:stopwords3
call my_free
mov cs:stopwords3, 0
loc_49F2B:
lea rax, ft_stopword_file
mov qword ptr [rax], 0
pop rbp
retn
| _BYTE **ft_free_stopwords()
{
_BYTE **result; // rax
if ( stopwords3 )
{
delete_tree(stopwords3, 0LL);
my_free(stopwords3);
stopwords3 = 0LL;
}
result = &ft_stopword_file;
ft_stopword_file = 0LL;
return result;
}
| ft_free_stopwords:
PUSH RBP
MOV RBP,RSP
MOV RDI,qword ptr [0x004adf50]
TEST RDI,RDI
JZ 0x00149f2b
XOR ESI,ESI
CALL 0x001619a6
MOV RDI,qword ptr [0x004adf50]
CALL 0x0015d2ca
MOV qword ptr [0x004adf50],0x0
LAB_00149f2b:
LEA RAX,[0x4adf48]
MOV qword ptr [RAX],0x0
POP RBP
RET
|
void ft_free_stopwords(void)
{
if (stopwords3 != 0) {
delete_tree(stopwords3,0);
my_free(stopwords3);
stopwords3 = 0;
}
ft_stopword_file = 0;
return;
}
| |
42,617 | nglog::SetVLOGLevel(char const*, int) | ng-log[P]ng-log/src/vlog_is_on.cc | int SetVLOGLevel(const char* module_pattern, int log_level) {
int result = FLAGS_v;
size_t const pattern_len = strlen(module_pattern);
bool found = false;
{
std::lock_guard<std::mutex> l(
vmodule_mutex); // protect whole read-modify-write
for (const VModuleInfo* info = vmodule_list; info != nullptr;
info = info->next) {
if (info->module_pattern == module_pattern) {
if (!found) {
result = info->vlog_level;
found = true;
}
info->vlog_level = log_level;
} else if (!found && SafeFNMatch_(info->module_pattern.c_str(),
info->module_pattern.size(),
module_pattern, pattern_len)) {
result = info->vlog_level;
found = true;
}
}
if (!found) {
auto* info = new VModuleInfo;
info->module_pattern = module_pattern;
info->vlog_level = log_level;
info->next = vmodule_list;
vmodule_list = info;
SiteFlag** item_ptr = &cached_site_list;
SiteFlag* item = cached_site_list;
// We traverse the list fully because the pattern can match several items
// from the list.
while (item) {
if (SafeFNMatch_(module_pattern, pattern_len, item->base_name,
item->base_len)) {
// Redirect the cached value to its module override.
item->level = &info->vlog_level;
*item_ptr = item->next; // Remove the item from the list.
} else {
item_ptr = &item->next;
}
item = *item_ptr;
}
}
}
RAW_VLOG(1, "Set VLOG level for \"%s\" to %d", module_pattern, log_level);
return result;
} | O3 | cpp | nglog::SetVLOGLevel(char const*, int):
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movl %esi, %ebx
movq %rdi, %r14
leaq 0xf7a7(%rip), %rax # 0x31b8c
movl (%rax), %ebp
callq 0x71f0
movq %rax, %r15
leaq 0x1f78a(%rip), %rdi # 0x41b80
callq 0x7840
testl %eax, %eax
jne 0x2258f
movq 0x1f73e(%rip), %r12 # 0x41b48
testq %r12, %r12
je 0x22470
xorl %r13d, %r13d
movq %r12, %rdi
movq %r14, %rsi
callq 0x7100
testl %eax, %eax
je 0x22449
testb $0x1, %r13b
jne 0x2245c
movq (%r12), %rdi
movq 0x8(%r12), %rsi
movq %r14, %rdx
movq %r15, %rcx
callq 0x2231c
testb %al, %al
je 0x2245c
movl 0x20(%r12), %ebp
movb $0x1, %r13b
jmp 0x2245c
testb $0x1, %r13b
jne 0x22457
movl 0x20(%r12), %ebp
movb $0x1, %r13b
movl %ebx, 0x20(%r12)
movq 0x28(%r12), %r12
testq %r12, %r12
jne 0x22412
testb $0x1, %r13b
jne 0x2251a
movl $0x30, %edi
callq 0x8eb0
movq %rax, %r12
addq $0x10, %rax
movq %rax, (%r12)
movq $0x0, 0x8(%r12)
movb $0x0, 0x10(%r12)
movq %r14, %rdi
callq 0x71f0
movq %r12, %rdi
xorl %esi, %esi
xorl %edx, %edx
movq %r14, %rcx
movq %rax, %r8
callq 0x78b0
movl %ebx, 0x20(%r12)
movq 0x1f68e(%rip), %rax # 0x41b48
movq %rax, 0x28(%r12)
movq %r12, 0x1f682(%rip) # 0x41b48
movq 0x1f683(%rip), %r13 # 0x41b50
testq %r13, %r13
je 0x2251a
movl %ebp, 0x4(%rsp)
addq $0x20, %r12
leaq 0x1f66f(%rip), %rbp # 0x41b50
movq 0x8(%r13), %rdx
movq 0x10(%r13), %rcx
movq %r14, %rdi
movq %r15, %rsi
callq 0x2231c
testb %al, %al
je 0x22506
movq %r12, (%r13)
movq 0x18(%r13), %r13
movq %r13, (%rbp)
jmp 0x22511
movq %r13, %rbp
movq 0x18(%r13), %r13
addq $0x18, %rbp
testq %r13, %r13
jne 0x224e1
movl 0x4(%rsp), %ebp
leaq 0x1f65f(%rip), %rdi # 0x41b80
callq 0x73e0
movq 0x1f62b(%rip), %rax # 0x41b58
testq %rax, %rax
je 0x2256a
cmpl $0x0, (%rax)
jle 0x22559
leaq 0x2cfb(%rip), %rsi # 0x25239
leaq 0x2d3e(%rip), %rcx # 0x25283
xorl %edi, %edi
movl $0xc5, %edx
movq %r14, %r8
movl %ebx, %r9d
xorl %eax, %eax
callq 0x20194
movl %ebp, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x1f5e7(%rip), %rdi # 0x41b58
leaq 0xf614(%rip), %rsi # 0x31b8c
leaq 0x2cba(%rip), %rdx # 0x25239
movl $0x1, %ecx
callq 0x225ad
testb %al, %al
jne 0x22537
jmp 0x22559
movl %eax, %edi
callq 0x7350
movq %rax, %rbx
leaq 0x1f5e0(%rip), %rdi # 0x41b80
callq 0x73e0
movq %rbx, %rdi
callq 0x79b0
| _ZN5nglog12SetVLOGLevelEPKci:
push rbp
push r15
push r14
push r13
push r12
push rbx
push rax
mov ebx, esi
mov r14, rdi
lea rax, _ZN3fLI7FLAGS_vE; fLI::FLAGS_v
mov ebp, [rax]
call _strlen
mov r15, rax
lea rdi, _ZN5nglogL13vmodule_mutexE; nglog::vmodule_mutex
call _pthread_mutex_lock
test eax, eax
jnz loc_2258F
mov r12, cs:_ZN5nglogL12vmodule_listE; nglog::vmodule_list
test r12, r12
jz short loc_22470
xor r13d, r13d
loc_22412:
mov rdi, r12
mov rsi, r14
call __ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE7compareEPKc; std::string::compare(char const*)
test eax, eax
jz short loc_22449
test r13b, 1
jnz short loc_2245C
mov rdi, [r12]; this
mov rsi, [r12+8]; char *
mov rdx, r14; unsigned __int64
mov rcx, r15; char *
call _ZN5nglog5tools12SafeFNMatch_EPKcmS2_m; nglog::tools::SafeFNMatch_(char const*,ulong,char const*,ulong)
test al, al
jz short loc_2245C
mov ebp, [r12+20h]
mov r13b, 1
jmp short loc_2245C
loc_22449:
test r13b, 1
jnz short loc_22457
mov ebp, [r12+20h]
mov r13b, 1
loc_22457:
mov [r12+20h], ebx
loc_2245C:
mov r12, [r12+28h]
test r12, r12
jnz short loc_22412
test r13b, 1
jnz loc_2251A
loc_22470:
mov edi, 30h ; '0'; unsigned __int64
call _Znwm; operator new(ulong)
mov r12, rax
add rax, 10h
mov [r12], rax
mov qword ptr [r12+8], 0
mov byte ptr [r12+10h], 0
mov rdi, r14
call _strlen
mov rdi, r12
xor esi, esi
xor edx, edx
mov rcx, r14
mov r8, rax
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE10_M_replaceEmmPKcm; std::string::_M_replace(ulong,ulong,char const*,ulong)
mov [r12+20h], ebx
mov rax, cs:_ZN5nglogL12vmodule_listE; nglog::vmodule_list
mov [r12+28h], rax
mov cs:_ZN5nglogL12vmodule_listE, r12; nglog::vmodule_list
mov r13, cs:_ZN5nglogL16cached_site_listE; nglog::cached_site_list
test r13, r13
jz short loc_2251A
mov [rsp+38h+var_34], ebp
add r12, 20h ; ' '
lea rbp, _ZN5nglogL16cached_site_listE; nglog::cached_site_list
loc_224E1:
mov rdx, [r13+8]; unsigned __int64
mov rcx, [r13+10h]; char *
mov rdi, r14; this
mov rsi, r15; char *
call _ZN5nglog5tools12SafeFNMatch_EPKcmS2_m; nglog::tools::SafeFNMatch_(char const*,ulong,char const*,ulong)
test al, al
jz short loc_22506
mov [r13+0], r12
mov r13, [r13+18h]
mov [rbp+0], r13
jmp short loc_22511
loc_22506:
mov rbp, r13
mov r13, [r13+18h]
add rbp, 18h
loc_22511:
test r13, r13
jnz short loc_224E1
mov ebp, [rsp+38h+var_34]
loc_2251A:
lea rdi, _ZN5nglogL13vmodule_mutexE; nglog::vmodule_mutex
call _pthread_mutex_unlock
mov rax, cs:_ZZN5nglog12SetVLOGLevelEPKciE8vlocal__; nglog::SetVLOGLevel(char const*,int)::vlocal__
test rax, rax
jz short loc_2256A
cmp dword ptr [rax], 0
jle short loc_22559
loc_22537:
lea rsi, aWorkspaceLlm4b_5; "/workspace/llm4binary/github/2025_star3"...
lea rcx, aSetVlogLevelFo; "Set VLOG level for \"%s\" to %d"
xor edi, edi
mov edx, 0C5h
mov r8, r14
mov r9d, ebx
xor eax, eax
call _ZN5nglog6RawLogENS_11LogSeverityEPKciS2_z; nglog::RawLog(nglog::LogSeverity,char const*,int,char const*,...)
loc_22559:
mov eax, ebp
add rsp, 8
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
loc_2256A:
lea rdi, _ZZN5nglog12SetVLOGLevelEPKciE8vlocal__; nglog::SetVLOGLevel(char const*,int)::vlocal__
lea rsi, _ZN3fLI7FLAGS_vE; fLI::FLAGS_v
lea rdx, aWorkspaceLlm4b_5; "/workspace/llm4binary/github/2025_star3"...
mov ecx, 1
call _ZN5nglog15InitializeVLOG3EPNS_8SiteFlagEPiPKci; nglog::InitializeVLOG3(nglog::SiteFlag *,int *,char const*,int)
test al, al
jnz short loc_22537
jmp short loc_22559
loc_2258F:
mov edi, eax; int
call __ZSt20__throw_system_errori; std::__throw_system_error(int)
mov rbx, rax
lea rdi, _ZN5nglogL13vmodule_mutexE; nglog::vmodule_mutex
call _pthread_mutex_unlock
mov rdi, rbx
call __Unwind_Resume
| long long nglog::SetVLOGLevel(
nglog *this,
const char *a2,
__m128 a3,
__m128 a4,
__m128 a5,
__m128 a6,
double a7,
double a8,
__m128 a9,
__m128 a10)
{
char v10; // al
unsigned int v11; // ebp
const char *v12; // r15
int v13; // eax
long long v14; // r12
char v15; // r13
unsigned long long v16; // r8
long long v17; // r12
long long v18; // rax
unsigned long long v19; // r8
long long v20; // r13
long long v21; // r12
long long *v22; // rbp
long long v23; // rbp
__m128 v24; // xmm4
__m128 v25; // xmm5
char v27; // [rsp-4h] [rbp-38h]
unsigned int v28; // [rsp+0h] [rbp-34h]
v27 = v10;
v11 = fLI::FLAGS_v;
v12 = (const char *)strlen(this);
v13 = pthread_mutex_lock(&nglog::vmodule_mutex);
if ( v13 )
std::__throw_system_error(v13);
v14 = nglog::vmodule_list;
if ( !nglog::vmodule_list )
goto LABEL_13;
v15 = 0;
do
{
if ( !(unsigned int)std::string::compare(v14, this) )
{
if ( (v15 & 1) == 0 )
{
v11 = *(_DWORD *)(v14 + 32);
v15 = 1;
}
*(_DWORD *)(v14 + 32) = (_DWORD)a2;
}
else if ( (v15 & 1) == 0
&& nglog::tools::SafeFNMatch_(*(nglog::tools **)v14, *(const char **)(v14 + 8), (long long)this, v12, v16) )
{
v11 = *(_DWORD *)(v14 + 32);
v15 = 1;
}
v14 = *(_QWORD *)(v14 + 40);
}
while ( v14 );
if ( (v15 & 1) == 0 )
{
LABEL_13:
v17 = operator new(48LL);
*(_QWORD *)v17 = v17 + 16;
*(_QWORD *)(v17 + 8) = 0LL;
*(_BYTE *)(v17 + 16) = 0;
v18 = strlen(this);
std::string::_M_replace(v17, 0LL, 0LL, this, v18);
*(_DWORD *)(v17 + 32) = (_DWORD)a2;
*(_QWORD *)(v17 + 40) = nglog::vmodule_list;
nglog::vmodule_list = v17;
v20 = nglog::cached_site_list;
if ( nglog::cached_site_list )
{
v28 = v11;
v21 = v17 + 32;
v22 = &nglog::cached_site_list;
do
{
if ( nglog::tools::SafeFNMatch_(this, v12, *(_QWORD *)(v20 + 8), *(const char **)(v20 + 16), v19) )
{
*(_QWORD *)v20 = v21;
v20 = *(_QWORD *)(v20 + 24);
*v22 = v20;
}
else
{
v23 = v20;
v20 = *(_QWORD *)(v20 + 24);
v22 = (long long *)(v23 + 24);
}
}
while ( v20 );
v11 = v28;
}
}
pthread_mutex_unlock(&nglog::vmodule_mutex);
if ( !nglog::SetVLOGLevel(char const*,int)::vlocal__ )
{
if ( !(unsigned __int8)nglog::InitializeVLOG3(
&nglog::SetVLOGLevel(char const*,int)::vlocal__,
&fLI::FLAGS_v,
"/workspace/llm4binary/github/2025_star3/ng-log[P]ng-log/src/vlog_is_on.cc",
1LL) )
return v11;
goto LABEL_22;
}
if ( *(int *)nglog::SetVLOGLevel(char const*,int)::vlocal__ > 0 )
LABEL_22:
nglog::RawLog(
0LL,
(nglog::tools *)"/workspace/llm4binary/github/2025_star3/ng-log[P]ng-log/src/vlog_is_on.cc",
197,
(long long)"Set VLOG level for \"%s\" to %d",
(long long)this,
(unsigned int)a2,
a3,
a4,
a5,
a6,
v24,
v25,
a9,
a10,
v27);
return v11;
}
| SetVLOGLevel:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
PUSH RAX
MOV EBX,ESI
MOV R14,RDI
LEA RAX,[0x131b8c]
MOV EBP,dword ptr [RAX]
CALL 0x001071f0
MOV R15,RAX
LEA RDI,[0x141b80]
CALL 0x00107840
TEST EAX,EAX
JNZ 0x0012258f
MOV R12,qword ptr [0x00141b48]
TEST R12,R12
JZ 0x00122470
XOR R13D,R13D
LAB_00122412:
MOV RDI,R12
MOV RSI,R14
CALL 0x00107100
TEST EAX,EAX
JZ 0x00122449
TEST R13B,0x1
JNZ 0x0012245c
MOV RDI,qword ptr [R12]
MOV RSI,qword ptr [R12 + 0x8]
MOV RDX,R14
MOV RCX,R15
CALL 0x0012231c
TEST AL,AL
JZ 0x0012245c
MOV EBP,dword ptr [R12 + 0x20]
MOV R13B,0x1
JMP 0x0012245c
LAB_00122449:
TEST R13B,0x1
JNZ 0x00122457
MOV EBP,dword ptr [R12 + 0x20]
MOV R13B,0x1
LAB_00122457:
MOV dword ptr [R12 + 0x20],EBX
LAB_0012245c:
MOV R12,qword ptr [R12 + 0x28]
TEST R12,R12
JNZ 0x00122412
TEST R13B,0x1
JNZ 0x0012251a
LAB_00122470:
MOV EDI,0x30
CALL 0x00108eb0
MOV R12,RAX
ADD RAX,0x10
MOV qword ptr [R12],RAX
MOV qword ptr [R12 + 0x8],0x0
MOV byte ptr [R12 + 0x10],0x0
MOV RDI,R14
CALL 0x001071f0
MOV RDI,R12
XOR ESI,ESI
XOR EDX,EDX
MOV RCX,R14
MOV R8,RAX
CALL 0x001078b0
LAB_001224ae:
MOV dword ptr [R12 + 0x20],EBX
MOV RAX,qword ptr [0x00141b48]
MOV qword ptr [R12 + 0x28],RAX
MOV qword ptr [0x00141b48],R12
MOV R13,qword ptr [0x00141b50]
TEST R13,R13
JZ 0x0012251a
MOV dword ptr [RSP + 0x4],EBP
ADD R12,0x20
LEA RBP,[0x141b50]
LAB_001224e1:
MOV RDX,qword ptr [R13 + 0x8]
MOV RCX,qword ptr [R13 + 0x10]
MOV RDI,R14
MOV RSI,R15
CALL 0x0012231c
TEST AL,AL
JZ 0x00122506
MOV qword ptr [R13],R12
MOV R13,qword ptr [R13 + 0x18]
MOV qword ptr [RBP],R13
JMP 0x00122511
LAB_00122506:
MOV RBP,R13
MOV R13,qword ptr [R13 + 0x18]
ADD RBP,0x18
LAB_00122511:
TEST R13,R13
JNZ 0x001224e1
MOV EBP,dword ptr [RSP + 0x4]
LAB_0012251a:
LEA RDI,[0x141b80]
CALL 0x001073e0
MOV RAX,qword ptr [0x00141b58]
TEST RAX,RAX
JZ 0x0012256a
CMP dword ptr [RAX],0x0
JLE 0x00122559
LAB_00122537:
LEA RSI,[0x125239]
LEA RCX,[0x125283]
XOR EDI,EDI
MOV EDX,0xc5
MOV R8,R14
MOV R9D,EBX
XOR EAX,EAX
CALL 0x00120194
LAB_00122559:
MOV EAX,EBP
ADD RSP,0x8
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
LAB_0012256a:
LEA RDI,[0x141b58]
LEA RSI,[0x131b8c]
LEA RDX,[0x125239]
MOV ECX,0x1
CALL 0x001225ad
TEST AL,AL
JNZ 0x00122537
JMP 0x00122559
LAB_0012258f:
MOV EDI,EAX
CALL 0x00107350
|
/* nglog::SetVLOGLevel(char const*, int) */
int4 nglog::SetVLOGLevel(char *param_1,int param_2)
{
bool bVar1;
char cVar2;
int iVar3;
size_t sVar4;
long *plVar5;
int4 uVar6;
int8 *puVar7;
int8 *puVar8;
int8 *puVar9;
uVar6 = fLI::FLAGS_v;
sVar4 = strlen(param_1);
iVar3 = pthread_mutex_lock((pthread_mutex_t *)vmodule_mutex);
if (iVar3 != 0) {
/* WARNING: Subroutine does not return */
std::__throw_system_error(iVar3);
}
if (vmodule_list != (long *)0x0) {
bVar1 = false;
plVar5 = vmodule_list;
do {
iVar3 = std::__cxx11::string::compare((char *)plVar5);
if (iVar3 == 0) {
if (!bVar1) {
uVar6 = (int4)plVar5[4];
bVar1 = true;
}
*(int *)(plVar5 + 4) = param_2;
}
else if ((!bVar1) &&
(cVar2 = tools::SafeFNMatch_((char *)*plVar5,plVar5[1],param_1,sVar4), cVar2 != '\0'))
{
uVar6 = (int4)plVar5[4];
bVar1 = true;
}
plVar5 = (long *)plVar5[5];
} while (plVar5 != (long *)0x0);
if (bVar1) goto LAB_0012251a;
}
/* try { // try from 00122470 to 001224ad has its CatchHandler @ 00122596 */
plVar5 = (long *)operator_new(0x30);
*plVar5 = (long)(plVar5 + 2);
plVar5[1] = 0;
*(int1 *)(plVar5 + 2) = 0;
strlen(param_1);
std::__cxx11::string::_M_replace((ulong)plVar5,0,(char *)0x0,(ulong)param_1);
*(int *)(plVar5 + 4) = param_2;
plVar5[5] = (long)vmodule_list;
vmodule_list = plVar5;
if (cached_site_list != (int8 *)0x0) {
puVar7 = &cached_site_list;
puVar8 = cached_site_list;
do {
cVar2 = tools::SafeFNMatch_(param_1,sVar4,(char *)puVar8[1],puVar8[2]);
if (cVar2 == '\0') {
puVar9 = (int8 *)puVar8[3];
puVar7 = puVar8 + 3;
}
else {
*puVar8 = plVar5 + 4;
puVar9 = (int8 *)puVar8[3];
*puVar7 = puVar9;
}
puVar8 = puVar9;
} while (puVar9 != (int8 *)0x0);
}
LAB_0012251a:
pthread_mutex_unlock((pthread_mutex_t *)vmodule_mutex);
if (SetVLOGLevel(char_const*,int)::vlocal__ == (int *)0x0) {
cVar2 = InitializeVLOG3((SiteFlag *)&SetVLOGLevel(char_const*,int)::vlocal__,&fLI::FLAGS_v,
"/workspace/llm4binary/github/2025_star3/ng-log[P]ng-log/src/vlog_is_on.cc"
,1);
if (cVar2 == '\0') {
return uVar6;
}
}
else if (*SetVLOGLevel(char_const*,int)::vlocal__ < 1) {
return uVar6;
}
RawLog(0,"/workspace/llm4binary/github/2025_star3/ng-log[P]ng-log/src/vlog_is_on.cc",0xc5,
"Set VLOG level for \"%s\" to %d",param_1,param_2);
return uVar6;
}
| |
42,618 | intx::uint<256u> intx::operator>><256u>(intx::uint<256u> const&, intx::uint<256u> const&) | corpus-core[P]colibri-stateless/build_O2/_deps/intx-src/include/intx/intx.hpp | inline constexpr uint<N> operator>>(const uint<N>& x, const uint<N>& shift) noexcept
{
uint64_t high_words_fold = 0;
for (size_t i = 1; i < uint<N>::num_words; ++i)
high_words_fold |= shift[i];
if (INTX_UNLIKELY(high_words_fold != 0))
return 0;
return x >> shift[0];
} | O2 | cpp | intx::uint<256u> intx::operator>><256u>(intx::uint<256u> const&, intx::uint<256u> const&):
pushq %rbx
movq %rdi, %rbx
movq 0x10(%rdx), %rax
orq 0x8(%rdx), %rax
orq 0x18(%rdx), %rax
jne 0x3a1cb
movq (%rdx), %rdx
movq %rbx, %rdi
callq 0x39cde
movq %rbx, %rax
popq %rbx
retq
xorps %xmm0, %xmm0
movups %xmm0, 0x10(%rbx)
movups %xmm0, (%rbx)
jmp 0x3a1c6
| _ZN4intxrsILj256EEENS_4uintIXT_EEERKS2_S4_:
push rbx
mov rbx, rdi
mov rax, [rdx+10h]
or rax, [rdx+8]
or rax, [rdx+18h]
jnz short loc_3A1CB
mov rdx, [rdx]
mov rdi, rbx
call _ZN4intxrsERKNS_4uintILj256EEEm; intx::operator>>(intx::uint<256u> const&,ulong)
loc_3A1C6:
mov rax, rbx
pop rbx
retn
loc_3A1CB:
xorps xmm0, xmm0
movups xmmword ptr [rbx+10h], xmm0
movups xmmword ptr [rbx], xmm0
jmp short loc_3A1C6
| _OWORD * intx::operator>><256u>(_OWORD *a1, unsigned long long *a2, unsigned long long *a3)
{
if ( a3[3] | a3[1] | a3[2] )
{
a1[1] = 0LL;
*a1 = 0LL;
}
else
{
intx::operator>>((long long)a1, a2, *a3);
}
return a1;
}
| operator>>:
PUSH RBX
MOV RBX,RDI
MOV RAX,qword ptr [RDX + 0x10]
OR RAX,qword ptr [RDX + 0x8]
OR RAX,qword ptr [RDX + 0x18]
JNZ 0x0013a1cb
MOV RDX,qword ptr [RDX]
MOV RDI,RBX
CALL 0x00139cde
LAB_0013a1c6:
MOV RAX,RBX
POP RBX
RET
LAB_0013a1cb:
XORPS XMM0,XMM0
MOVUPS xmmword ptr [RBX + 0x10],XMM0
MOVUPS xmmword ptr [RBX],XMM0
JMP 0x0013a1c6
|
/* intx::uint<256u> intx::TEMPNAMEPLACEHOLDERVALUE(intx::uint<256u> const&, intx::uint<256u> const&)
*/
intx * __thiscall intx::operator>>(intx *this,uint *param_1,uint *param_2)
{
if ((*(long *)(param_2 + 0x10) == 0 && *(long *)(param_2 + 8) == 0) &&
*(long *)(param_2 + 0x18) == 0) {
operator>>(this,param_1,*(ulong *)param_2);
}
else {
*(int8 *)(this + 0x10) = 0;
*(int8 *)(this + 0x18) = 0;
*(int8 *)this = 0;
*(int8 *)(this + 8) = 0;
}
return this;
}
| |
42,619 | unlink_deleted_block | eloqsql/storage/myisam/mi_dynrec.c | static my_bool unlink_deleted_block(MI_INFO *info, MI_BLOCK_INFO *block_info)
{
DBUG_ENTER("unlink_deleted_block");
if (block_info->filepos == info->s->state.dellink)
{
/* First deleted block; We can just use this ! */
info->s->state.dellink=block_info->next_filepos;
}
else
{
MI_BLOCK_INFO tmp;
tmp.second_read=0;
/* Unlink block from the previous block */
if (!(_mi_get_block_info(&tmp,info->dfile,block_info->prev_filepos)
& BLOCK_DELETED))
DBUG_RETURN(1); /* Something is wrong */
mi_sizestore(tmp.header+4,block_info->next_filepos);
if (info->s->file_write(info, tmp.header+4,8,
block_info->prev_filepos+4, MYF(MY_NABP)))
DBUG_RETURN(1);
/* Unlink block from next block */
if (block_info->next_filepos != HA_OFFSET_ERROR)
{
if (!(_mi_get_block_info(&tmp,info->dfile,block_info->next_filepos)
& BLOCK_DELETED))
DBUG_RETURN(1); /* Something is wrong */
mi_sizestore(tmp.header+12,block_info->prev_filepos);
if (info->s->file_write(info, tmp.header+12,8,
block_info->next_filepos+12,
MYF(MY_NABP)))
DBUG_RETURN(1);
}
}
/* We now have one less deleted block */
info->state->del--;
info->state->empty-= block_info->block_len;
info->s->state.split--;
/*
If this was a block that we where accessing through table scan
(mi_rrnd() or mi_scan(), then ensure that we skip over this block
when doing next mi_rrnd() or mi_scan().
*/
if (info->nextpos == block_info->filepos)
info->nextpos+=block_info->block_len;
DBUG_RETURN(0);
} | O0 | c | unlink_deleted_block:
pushq %rbp
movq %rsp, %rbp
subq $0xc0, %rsp
movq %fs:0x28, %rax
movq %rax, -0x8(%rbp)
movq %rdi, -0x70(%rbp)
movq %rsi, -0x78(%rbp)
movq -0x78(%rbp), %rax
movq 0x38(%rax), %rax
movq -0x70(%rbp), %rcx
movq (%rcx), %rcx
cmpq 0x58(%rcx), %rax
jne 0xaa76d
movq -0x78(%rbp), %rax
movq 0x40(%rax), %rcx
movq -0x70(%rbp), %rax
movq (%rax), %rax
movq %rcx, 0x58(%rax)
jmp 0xaa9ae
movl $0x0, -0x10(%rbp)
movq -0x70(%rbp), %rax
movl 0x1c0(%rax), %esi
movq -0x78(%rbp), %rax
movq 0x48(%rax), %rdx
leaq -0x60(%rbp), %rdi
callq 0xa9d10
andl $0x4, %eax
cmpl $0x0, %eax
jne 0xaa7a2
jmp 0xaa799
movb $0x1, -0x61(%rbp)
jmp 0xaaa25
movq -0x78(%rbp), %rax
movq 0x40(%rax), %rax
movq %rax, -0x80(%rbp)
movq -0x78(%rbp), %rax
movq 0x40(%rax), %rax
shrq $0x20, %rax
movq %rax, -0x88(%rbp)
movq -0x88(%rbp), %rax
movq %rax, -0x90(%rbp)
movq -0x90(%rbp), %rax
movb %al, -0x59(%rbp)
movq -0x90(%rbp), %rax
shrq $0x8, %rax
movb %al, -0x5a(%rbp)
movq -0x90(%rbp), %rax
shrq $0x10, %rax
movb %al, -0x5b(%rbp)
movq -0x90(%rbp), %rax
shrq $0x18, %rax
movb %al, -0x5c(%rbp)
movq -0x80(%rbp), %rax
movq %rax, -0x98(%rbp)
movq -0x98(%rbp), %rax
movb %al, -0x55(%rbp)
movq -0x98(%rbp), %rax
shrq $0x8, %rax
movb %al, -0x56(%rbp)
movq -0x98(%rbp), %rax
shrq $0x10, %rax
movb %al, -0x57(%rbp)
movq -0x98(%rbp), %rax
shrq $0x18, %rax
movb %al, -0x58(%rbp)
movq -0x70(%rbp), %rax
movq (%rax), %rax
movq 0x2e8(%rax), %rax
movq -0x70(%rbp), %rdi
leaq -0x60(%rbp), %rsi
addq $0x4, %rsi
movq -0x78(%rbp), %rcx
movq 0x48(%rcx), %rcx
addq $0x4, %rcx
movl $0x8, %edx
movl $0x4, %r8d
callq *%rax
cmpq $0x0, %rax
je 0xaa886
jmp 0xaa87d
movb $0x1, -0x61(%rbp)
jmp 0xaaa25
movq -0x78(%rbp), %rax
cmpq $-0x1, 0x40(%rax)
je 0xaa9ac
movq -0x70(%rbp), %rax
movl 0x1c0(%rax), %esi
movq -0x78(%rbp), %rax
movq 0x40(%rax), %rdx
leaq -0x60(%rbp), %rdi
callq 0xa9d10
andl $0x4, %eax
cmpl $0x0, %eax
jne 0xaa8c3
jmp 0xaa8ba
movb $0x1, -0x61(%rbp)
jmp 0xaaa25
movq -0x78(%rbp), %rax
movq 0x48(%rax), %rax
movq %rax, -0xa0(%rbp)
movq -0x78(%rbp), %rax
movq 0x48(%rax), %rax
shrq $0x20, %rax
movq %rax, -0xa8(%rbp)
movq -0xa8(%rbp), %rax
movq %rax, -0xb0(%rbp)
movq -0xb0(%rbp), %rax
movb %al, -0x51(%rbp)
movq -0xb0(%rbp), %rax
shrq $0x8, %rax
movb %al, -0x52(%rbp)
movq -0xb0(%rbp), %rax
shrq $0x10, %rax
movb %al, -0x53(%rbp)
movq -0xb0(%rbp), %rax
shrq $0x18, %rax
movb %al, -0x54(%rbp)
movq -0xa0(%rbp), %rax
movq %rax, -0xb8(%rbp)
movq -0xb8(%rbp), %rax
movb %al, -0x4d(%rbp)
movq -0xb8(%rbp), %rax
shrq $0x8, %rax
movb %al, -0x4e(%rbp)
movq -0xb8(%rbp), %rax
shrq $0x10, %rax
movb %al, -0x4f(%rbp)
movq -0xb8(%rbp), %rax
shrq $0x18, %rax
movb %al, -0x50(%rbp)
movq -0x70(%rbp), %rax
movq (%rax), %rax
movq 0x2e8(%rax), %rax
movq -0x70(%rbp), %rdi
leaq -0x60(%rbp), %rsi
addq $0xc, %rsi
movq -0x78(%rbp), %rcx
movq 0x40(%rcx), %rcx
addq $0xc, %rcx
movl $0x8, %edx
movl $0x4, %r8d
callq *%rax
cmpq $0x0, %rax
je 0xaa9aa
jmp 0xaa9a4
movb $0x1, -0x61(%rbp)
jmp 0xaaa25
jmp 0xaa9ac
jmp 0xaa9ae
movq -0x70(%rbp), %rax
movq 0x8(%rax), %rax
movq 0x8(%rax), %rcx
addq $-0x1, %rcx
movq %rcx, 0x8(%rax)
movq -0x78(%rbp), %rax
movq 0x28(%rax), %rdx
movq -0x70(%rbp), %rax
movq 0x8(%rax), %rax
movq 0x10(%rax), %rcx
subq %rdx, %rcx
movq %rcx, 0x10(%rax)
movq -0x70(%rbp), %rax
movq (%rax), %rax
movq 0x50(%rax), %rcx
addq $-0x1, %rcx
movq %rcx, 0x50(%rax)
movq -0x70(%rbp), %rax
movq 0x178(%rax), %rax
movq -0x78(%rbp), %rcx
cmpq 0x38(%rcx), %rax
jne 0xaaa1f
movq -0x78(%rbp), %rax
movq 0x28(%rax), %rcx
movq -0x70(%rbp), %rax
addq 0x178(%rax), %rcx
movq %rcx, 0x178(%rax)
jmp 0xaaa21
movb $0x0, -0x61(%rbp)
movb -0x61(%rbp), %al
movb %al, -0xb9(%rbp)
movq %fs:0x28, %rax
movq -0x8(%rbp), %rcx
cmpq %rcx, %rax
jne 0xaaa4f
movb -0xb9(%rbp), %al
addq $0xc0, %rsp
popq %rbp
retq
callq 0x2a270
nopw %cs:(%rax,%rax)
| unlink_deleted_block_0:
push rbp
mov rbp, rsp
sub rsp, 0C0h
mov rax, fs:28h
mov [rbp+var_8], rax
mov [rbp+var_70], rdi
mov [rbp+var_78], rsi
mov rax, [rbp+var_78]
mov rax, [rax+38h]
mov rcx, [rbp+var_70]
mov rcx, [rcx]
cmp rax, [rcx+58h]
jnz short loc_AA76D
mov rax, [rbp+var_78]
mov rcx, [rax+40h]
mov rax, [rbp+var_70]
mov rax, [rax]
mov [rax+58h], rcx
jmp loc_AA9AE
loc_AA76D:
mov [rbp+var_10], 0
mov rax, [rbp+var_70]
mov esi, [rax+1C0h]
mov rax, [rbp+var_78]
mov rdx, [rax+48h]
lea rdi, [rbp+var_60]
call _mi_get_block_info
and eax, 4
cmp eax, 0
jnz short loc_AA7A2
jmp short $+2
loc_AA799:
mov [rbp+var_61], 1
jmp loc_AAA25
loc_AA7A2:
mov rax, [rbp+var_78]
mov rax, [rax+40h]
mov [rbp+var_80], rax
mov rax, [rbp+var_78]
mov rax, [rax+40h]
shr rax, 20h
mov [rbp+var_88], rax
mov rax, [rbp+var_88]
mov [rbp+var_90], rax
mov rax, [rbp+var_90]
mov [rbp+var_59], al
mov rax, [rbp+var_90]
shr rax, 8
mov [rbp+var_5A], al
mov rax, [rbp+var_90]
shr rax, 10h
mov [rbp+var_5B], al
mov rax, [rbp+var_90]
shr rax, 18h
mov [rbp+var_5C], al
mov rax, [rbp+var_80]
mov [rbp+var_98], rax
mov rax, [rbp+var_98]
mov [rbp+var_55], al
mov rax, [rbp+var_98]
shr rax, 8
mov [rbp+var_56], al
mov rax, [rbp+var_98]
shr rax, 10h
mov [rbp+var_57], al
mov rax, [rbp+var_98]
shr rax, 18h
mov [rbp+var_58], al
mov rax, [rbp+var_70]
mov rax, [rax]
mov rax, [rax+2E8h]
mov rdi, [rbp+var_70]
lea rsi, [rbp+var_60]
add rsi, 4
mov rcx, [rbp+var_78]
mov rcx, [rcx+48h]
add rcx, 4
mov edx, 8
mov r8d, 4
call rax
cmp rax, 0
jz short loc_AA886
jmp short $+2
loc_AA87D:
mov [rbp+var_61], 1
jmp loc_AAA25
loc_AA886:
mov rax, [rbp+var_78]
cmp qword ptr [rax+40h], 0FFFFFFFFFFFFFFFFh
jz loc_AA9AC
mov rax, [rbp+var_70]
mov esi, [rax+1C0h]
mov rax, [rbp+var_78]
mov rdx, [rax+40h]
lea rdi, [rbp+var_60]
call _mi_get_block_info
and eax, 4
cmp eax, 0
jnz short loc_AA8C3
jmp short $+2
loc_AA8BA:
mov [rbp+var_61], 1
jmp loc_AAA25
loc_AA8C3:
mov rax, [rbp+var_78]
mov rax, [rax+48h]
mov [rbp+var_A0], rax
mov rax, [rbp+var_78]
mov rax, [rax+48h]
shr rax, 20h
mov [rbp+var_A8], rax
mov rax, [rbp+var_A8]
mov [rbp+var_B0], rax
mov rax, [rbp+var_B0]
mov [rbp+var_51], al
mov rax, [rbp+var_B0]
shr rax, 8
mov [rbp+var_52], al
mov rax, [rbp+var_B0]
shr rax, 10h
mov [rbp+var_53], al
mov rax, [rbp+var_B0]
shr rax, 18h
mov [rbp+var_54], al
mov rax, [rbp+var_A0]
mov [rbp+var_B8], rax
mov rax, [rbp+var_B8]
mov [rbp+var_4D], al
mov rax, [rbp+var_B8]
shr rax, 8
mov [rbp+var_4E], al
mov rax, [rbp+var_B8]
shr rax, 10h
mov [rbp+var_4F], al
mov rax, [rbp+var_B8]
shr rax, 18h
mov [rbp+var_50], al
mov rax, [rbp+var_70]
mov rax, [rax]
mov rax, [rax+2E8h]
mov rdi, [rbp+var_70]
lea rsi, [rbp+var_60]
add rsi, 0Ch
mov rcx, [rbp+var_78]
mov rcx, [rcx+40h]
add rcx, 0Ch
mov edx, 8
mov r8d, 4
call rax
cmp rax, 0
jz short loc_AA9AA
jmp short $+2
loc_AA9A4:
mov [rbp+var_61], 1
jmp short loc_AAA25
loc_AA9AA:
jmp short $+2
loc_AA9AC:
jmp short $+2
loc_AA9AE:
mov rax, [rbp+var_70]
mov rax, [rax+8]
mov rcx, [rax+8]
add rcx, 0FFFFFFFFFFFFFFFFh
mov [rax+8], rcx
mov rax, [rbp+var_78]
mov rdx, [rax+28h]
mov rax, [rbp+var_70]
mov rax, [rax+8]
mov rcx, [rax+10h]
sub rcx, rdx
mov [rax+10h], rcx
mov rax, [rbp+var_70]
mov rax, [rax]
mov rcx, [rax+50h]
add rcx, 0FFFFFFFFFFFFFFFFh
mov [rax+50h], rcx
mov rax, [rbp+var_70]
mov rax, [rax+178h]
mov rcx, [rbp+var_78]
cmp rax, [rcx+38h]
jnz short loc_AAA1F
mov rax, [rbp+var_78]
mov rcx, [rax+28h]
mov rax, [rbp+var_70]
add rcx, [rax+178h]
mov [rax+178h], rcx
loc_AAA1F:
jmp short $+2
loc_AAA21:
mov [rbp+var_61], 0
loc_AAA25:
mov al, [rbp+var_61]
mov [rbp+var_B9], al
mov rax, fs:28h
mov rcx, [rbp+var_8]
cmp rax, rcx
jnz short loc_AAA4F
mov al, [rbp+var_B9]
add rsp, 0C0h
pop rbp
retn
loc_AAA4F:
call ___stack_chk_fail
| char unlink_deleted_block_0(_QWORD *a1, _QWORD *a2)
{
long long v3; // [rsp+20h] [rbp-A0h]
long long v4; // [rsp+40h] [rbp-80h]
char v6[4]; // [rsp+60h] [rbp-60h] BYREF
_BYTE v7[8]; // [rsp+64h] [rbp-5Ch] BYREF
_BYTE v8[68]; // [rsp+6Ch] [rbp-54h] BYREF
int v9; // [rsp+B0h] [rbp-10h]
unsigned long long v10; // [rsp+B8h] [rbp-8h]
v10 = __readfsqword(0x28u);
if ( a2[7] == *(_QWORD *)(*a1 + 88LL) )
{
*(_QWORD *)(*a1 + 88LL) = a2[8];
}
else
{
v9 = 0;
if ( (mi_get_block_info(v6, (const char *)*((unsigned int *)a1 + 112), a2[9]) & 4) == 0 )
return 1;
v4 = a2[8];
v7[2] = BYTE5(v4);
v7[3] = BYTE4(v4);
v7[0] = HIBYTE(v4);
v7[1] = BYTE6(v4);
v7[6] = BYTE1(v4);
v7[7] = v4;
v7[4] = BYTE3(v4);
v7[5] = BYTE2(v4);
if ( (*(long long ( **)(_QWORD *, _BYTE *, long long, long long, long long))(*a1 + 744LL))(
a1,
v7,
8LL,
a2[9] + 4LL,
4LL) )
{
return 1;
}
if ( a2[8] != -1LL )
{
if ( (mi_get_block_info(v6, (const char *)*((unsigned int *)a1 + 112), a2[8]) & 4) == 0 )
return 1;
v3 = a2[9];
v8[2] = BYTE5(v3);
v8[3] = BYTE4(v3);
v8[0] = HIBYTE(v3);
v8[1] = BYTE6(v3);
v8[6] = BYTE1(v3);
v8[7] = v3;
v8[4] = BYTE3(v3);
v8[5] = BYTE2(v3);
if ( (*(long long ( **)(_QWORD *, _BYTE *, long long, long long, long long))(*a1 + 744LL))(
a1,
v8,
8LL,
a2[8] + 12LL,
4LL) )
{
return 1;
}
}
}
--*(_QWORD *)(a1[1] + 8LL);
*(_QWORD *)(a1[1] + 16LL) -= a2[5];
--*(_QWORD *)(*a1 + 80LL);
if ( a1[47] == a2[7] )
a1[47] += a2[5];
return 0;
}
| unlink_deleted_block:
PUSH RBP
MOV RBP,RSP
SUB RSP,0xc0
MOV RAX,qword ptr FS:[0x28]
MOV qword ptr [RBP + -0x8],RAX
MOV qword ptr [RBP + -0x70],RDI
MOV qword ptr [RBP + -0x78],RSI
MOV RAX,qword ptr [RBP + -0x78]
MOV RAX,qword ptr [RAX + 0x38]
MOV RCX,qword ptr [RBP + -0x70]
MOV RCX,qword ptr [RCX]
CMP RAX,qword ptr [RCX + 0x58]
JNZ 0x001aa76d
MOV RAX,qword ptr [RBP + -0x78]
MOV RCX,qword ptr [RAX + 0x40]
MOV RAX,qword ptr [RBP + -0x70]
MOV RAX,qword ptr [RAX]
MOV qword ptr [RAX + 0x58],RCX
JMP 0x001aa9ae
LAB_001aa76d:
MOV dword ptr [RBP + -0x10],0x0
MOV RAX,qword ptr [RBP + -0x70]
MOV ESI,dword ptr [RAX + 0x1c0]
MOV RAX,qword ptr [RBP + -0x78]
MOV RDX,qword ptr [RAX + 0x48]
LEA RDI,[RBP + -0x60]
CALL 0x001a9d10
AND EAX,0x4
CMP EAX,0x0
JNZ 0x001aa7a2
JMP 0x001aa799
LAB_001aa799:
MOV byte ptr [RBP + -0x61],0x1
JMP 0x001aaa25
LAB_001aa7a2:
MOV RAX,qword ptr [RBP + -0x78]
MOV RAX,qword ptr [RAX + 0x40]
MOV qword ptr [RBP + -0x80],RAX
MOV RAX,qword ptr [RBP + -0x78]
MOV RAX,qword ptr [RAX + 0x40]
SHR RAX,0x20
MOV qword ptr [RBP + -0x88],RAX
MOV RAX,qword ptr [RBP + -0x88]
MOV qword ptr [RBP + -0x90],RAX
MOV RAX,qword ptr [RBP + -0x90]
MOV byte ptr [RBP + -0x59],AL
MOV RAX,qword ptr [RBP + -0x90]
SHR RAX,0x8
MOV byte ptr [RBP + -0x5a],AL
MOV RAX,qword ptr [RBP + -0x90]
SHR RAX,0x10
MOV byte ptr [RBP + -0x5b],AL
MOV RAX,qword ptr [RBP + -0x90]
SHR RAX,0x18
MOV byte ptr [RBP + -0x5c],AL
MOV RAX,qword ptr [RBP + -0x80]
MOV qword ptr [RBP + -0x98],RAX
MOV RAX,qword ptr [RBP + -0x98]
MOV byte ptr [RBP + -0x55],AL
MOV RAX,qword ptr [RBP + -0x98]
SHR RAX,0x8
MOV byte ptr [RBP + -0x56],AL
MOV RAX,qword ptr [RBP + -0x98]
SHR RAX,0x10
MOV byte ptr [RBP + -0x57],AL
MOV RAX,qword ptr [RBP + -0x98]
SHR RAX,0x18
MOV byte ptr [RBP + -0x58],AL
MOV RAX,qword ptr [RBP + -0x70]
MOV RAX,qword ptr [RAX]
MOV RAX,qword ptr [RAX + 0x2e8]
MOV RDI,qword ptr [RBP + -0x70]
LEA RSI,[RBP + -0x60]
ADD RSI,0x4
MOV RCX,qword ptr [RBP + -0x78]
MOV RCX,qword ptr [RCX + 0x48]
ADD RCX,0x4
MOV EDX,0x8
MOV R8D,0x4
CALL RAX
CMP RAX,0x0
JZ 0x001aa886
JMP 0x001aa87d
LAB_001aa87d:
MOV byte ptr [RBP + -0x61],0x1
JMP 0x001aaa25
LAB_001aa886:
MOV RAX,qword ptr [RBP + -0x78]
CMP qword ptr [RAX + 0x40],-0x1
JZ 0x001aa9ac
MOV RAX,qword ptr [RBP + -0x70]
MOV ESI,dword ptr [RAX + 0x1c0]
MOV RAX,qword ptr [RBP + -0x78]
MOV RDX,qword ptr [RAX + 0x40]
LEA RDI,[RBP + -0x60]
CALL 0x001a9d10
AND EAX,0x4
CMP EAX,0x0
JNZ 0x001aa8c3
JMP 0x001aa8ba
LAB_001aa8ba:
MOV byte ptr [RBP + -0x61],0x1
JMP 0x001aaa25
LAB_001aa8c3:
MOV RAX,qword ptr [RBP + -0x78]
MOV RAX,qword ptr [RAX + 0x48]
MOV qword ptr [RBP + -0xa0],RAX
MOV RAX,qword ptr [RBP + -0x78]
MOV RAX,qword ptr [RAX + 0x48]
SHR RAX,0x20
MOV qword ptr [RBP + -0xa8],RAX
MOV RAX,qword ptr [RBP + -0xa8]
MOV qword ptr [RBP + -0xb0],RAX
MOV RAX,qword ptr [RBP + -0xb0]
MOV byte ptr [RBP + -0x51],AL
MOV RAX,qword ptr [RBP + -0xb0]
SHR RAX,0x8
MOV byte ptr [RBP + -0x52],AL
MOV RAX,qword ptr [RBP + -0xb0]
SHR RAX,0x10
MOV byte ptr [RBP + -0x53],AL
MOV RAX,qword ptr [RBP + -0xb0]
SHR RAX,0x18
MOV byte ptr [RBP + -0x54],AL
MOV RAX,qword ptr [RBP + -0xa0]
MOV qword ptr [RBP + -0xb8],RAX
MOV RAX,qword ptr [RBP + -0xb8]
MOV byte ptr [RBP + -0x4d],AL
MOV RAX,qword ptr [RBP + -0xb8]
SHR RAX,0x8
MOV byte ptr [RBP + -0x4e],AL
MOV RAX,qword ptr [RBP + -0xb8]
SHR RAX,0x10
MOV byte ptr [RBP + -0x4f],AL
MOV RAX,qword ptr [RBP + -0xb8]
SHR RAX,0x18
MOV byte ptr [RBP + -0x50],AL
MOV RAX,qword ptr [RBP + -0x70]
MOV RAX,qword ptr [RAX]
MOV RAX,qword ptr [RAX + 0x2e8]
MOV RDI,qword ptr [RBP + -0x70]
LEA RSI,[RBP + -0x60]
ADD RSI,0xc
MOV RCX,qword ptr [RBP + -0x78]
MOV RCX,qword ptr [RCX + 0x40]
ADD RCX,0xc
MOV EDX,0x8
MOV R8D,0x4
CALL RAX
CMP RAX,0x0
JZ 0x001aa9aa
JMP 0x001aa9a4
LAB_001aa9a4:
MOV byte ptr [RBP + -0x61],0x1
JMP 0x001aaa25
LAB_001aa9aa:
JMP 0x001aa9ac
LAB_001aa9ac:
JMP 0x001aa9ae
LAB_001aa9ae:
MOV RAX,qword ptr [RBP + -0x70]
MOV RAX,qword ptr [RAX + 0x8]
MOV RCX,qword ptr [RAX + 0x8]
ADD RCX,-0x1
MOV qword ptr [RAX + 0x8],RCX
MOV RAX,qword ptr [RBP + -0x78]
MOV RDX,qword ptr [RAX + 0x28]
MOV RAX,qword ptr [RBP + -0x70]
MOV RAX,qword ptr [RAX + 0x8]
MOV RCX,qword ptr [RAX + 0x10]
SUB RCX,RDX
MOV qword ptr [RAX + 0x10],RCX
MOV RAX,qword ptr [RBP + -0x70]
MOV RAX,qword ptr [RAX]
MOV RCX,qword ptr [RAX + 0x50]
ADD RCX,-0x1
MOV qword ptr [RAX + 0x50],RCX
MOV RAX,qword ptr [RBP + -0x70]
MOV RAX,qword ptr [RAX + 0x178]
MOV RCX,qword ptr [RBP + -0x78]
CMP RAX,qword ptr [RCX + 0x38]
JNZ 0x001aaa1f
MOV RAX,qword ptr [RBP + -0x78]
MOV RCX,qword ptr [RAX + 0x28]
MOV RAX,qword ptr [RBP + -0x70]
ADD RCX,qword ptr [RAX + 0x178]
MOV qword ptr [RAX + 0x178],RCX
LAB_001aaa1f:
JMP 0x001aaa21
LAB_001aaa21:
MOV byte ptr [RBP + -0x61],0x0
LAB_001aaa25:
MOV AL,byte ptr [RBP + -0x61]
MOV byte ptr [RBP + -0xb9],AL
MOV RAX,qword ptr FS:[0x28]
MOV RCX,qword ptr [RBP + -0x8]
CMP RAX,RCX
JNZ 0x001aaa4f
MOV AL,byte ptr [RBP + -0xb9]
ADD RSP,0xc0
POP RBP
RET
LAB_001aaa4f:
CALL 0x0012a270
|
int8 unlink_deleted_block(long *param_1,long param_2)
{
int8 uVar1;
int8 uVar2;
uint uVar3;
long lVar4;
long in_FS_OFFSET;
int1 local_69;
int1 local_68 [4];
int1 local_64;
int1 local_63;
int1 local_62;
int1 local_61;
int1 local_60;
int1 local_5f;
int1 local_5e;
int1 local_5d;
int1 local_5c;
int1 local_5b;
int1 local_5a;
int1 local_59;
int1 local_58;
int1 local_57;
int1 local_56;
int1 local_55;
int4 local_18;
long local_10;
local_10 = *(long *)(in_FS_OFFSET + 0x28);
if (*(long *)(param_2 + 0x38) == *(long *)(*param_1 + 0x58)) {
*(int8 *)(*param_1 + 0x58) = *(int8 *)(param_2 + 0x40);
}
else {
local_18 = 0;
uVar3 = _mi_get_block_info(local_68,(int)param_1[0x38],*(int8 *)(param_2 + 0x48));
if ((uVar3 & 4) == 0) {
local_69 = 1;
goto LAB_001aaa25;
}
uVar1 = *(int8 *)(param_2 + 0x40);
uVar2 = *(int8 *)(param_2 + 0x40);
local_61 = (int1)((ulong)uVar2 >> 0x20);
local_62 = (int1)((ulong)uVar2 >> 0x28);
local_63 = (int1)((ulong)uVar2 >> 0x30);
local_64 = (int1)((ulong)uVar2 >> 0x38);
local_5d = (int1)uVar1;
local_5e = (int1)((ulong)uVar1 >> 8);
local_5f = (int1)((ulong)uVar1 >> 0x10);
local_60 = (int1)((ulong)uVar1 >> 0x18);
lVar4 = (**(code **)(*param_1 + 0x2e8))(param_1,&local_64,8,*(long *)(param_2 + 0x48) + 4,4);
if (lVar4 != 0) {
local_69 = 1;
goto LAB_001aaa25;
}
if (*(long *)(param_2 + 0x40) != -1) {
uVar3 = _mi_get_block_info(local_68,(int)param_1[0x38],*(int8 *)(param_2 + 0x40));
if ((uVar3 & 4) == 0) {
local_69 = 1;
goto LAB_001aaa25;
}
uVar1 = *(int8 *)(param_2 + 0x48);
uVar2 = *(int8 *)(param_2 + 0x48);
local_59 = (int1)((ulong)uVar2 >> 0x20);
local_5a = (int1)((ulong)uVar2 >> 0x28);
local_5b = (int1)((ulong)uVar2 >> 0x30);
local_5c = (int1)((ulong)uVar2 >> 0x38);
local_55 = (int1)uVar1;
local_56 = (int1)((ulong)uVar1 >> 8);
local_57 = (int1)((ulong)uVar1 >> 0x10);
local_58 = (int1)((ulong)uVar1 >> 0x18);
lVar4 = (**(code **)(*param_1 + 0x2e8))(param_1,&local_5c,8,*(long *)(param_2 + 0x40) + 0xc,4)
;
if (lVar4 != 0) {
local_69 = 1;
goto LAB_001aaa25;
}
}
}
*(long *)(param_1[1] + 8) = *(long *)(param_1[1] + 8) + -1;
*(long *)(param_1[1] + 0x10) = *(long *)(param_1[1] + 0x10) - *(long *)(param_2 + 0x28);
*(long *)(*param_1 + 0x50) = *(long *)(*param_1 + 0x50) + -1;
if (param_1[0x2f] == *(long *)(param_2 + 0x38)) {
param_1[0x2f] = *(long *)(param_2 + 0x28) + param_1[0x2f];
}
local_69 = 0;
LAB_001aaa25:
if (*(long *)(in_FS_OFFSET + 0x28) != local_10) {
/* WARNING: Subroutine does not return */
__stack_chk_fail();
}
return CONCAT71((int7)((ulong)*(long *)(in_FS_OFFSET + 0x28) >> 8),local_69);
}
| |
42,620 | mysql_stmt_execute_start_internal | eloqsql/libmariadb/libmariadb/mariadb_async.c | static void
mysql_stmt_execute_start_internal(void *d)
{
MK_ASYNC_INTERNAL_BODY(
mysql_stmt_execute,
(parms->stmt),
parms->stmt->mysql,
int,
r_int)
} | O0 | c | mysql_stmt_execute_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 0x38(%rax), %rax
movq 0x480(%rax), %rax
movq 0x28(%rax), %rax
movq %rax, -0x20(%rbp)
movq -0x10(%rbp), %rax
movq (%rax), %rdi
callq 0x907f0
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_stmt_execute_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+38h]
mov rax, [rax+480h]
mov rax, [rax+28h]
mov [rbp+var_20], rax
mov rax, [rbp+var_10]
mov rdi, [rax]
call mysql_stmt_execute
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_stmt_execute_start_internal(long long *a1)
{
_DWORD *result; // rax
_DWORD *v2; // [rsp+0h] [rbp-20h]
v2 = *(_DWORD **)(*(_QWORD *)(*(_QWORD *)(*a1 + 56) + 1152LL) + 40LL);
v2[2] = mysql_stmt_execute(*a1);
result = v2;
*v2 = 0;
return result;
}
| mysql_stmt_execute_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 + 0x38]
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]
CALL 0x001907f0
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_stmt_execute_start_internal(long *param_1)
{
int4 *puVar1;
int4 uVar2;
puVar1 = *(int4 **)(*(long *)(*(long *)(*param_1 + 0x38) + 0x480) + 0x28);
uVar2 = mysql_stmt_execute(*param_1);
puVar1[2] = uVar2;
*puVar1 = 0;
return;
}
| |
42,621 | mysql_stmt_execute_start_internal | eloqsql/libmariadb/libmariadb/mariadb_async.c | static void
mysql_stmt_execute_start_internal(void *d)
{
MK_ASYNC_INTERNAL_BODY(
mysql_stmt_execute,
(parms->stmt),
parms->stmt->mysql,
int,
r_int)
} | O3 | c | mysql_stmt_execute_start_internal:
pushq %rbp
movq %rsp, %rbp
pushq %rbx
pushq %rax
movq (%rdi), %rdi
movq 0x38(%rdi), %rax
movq 0x480(%rax), %rax
movq 0x28(%rax), %rbx
callq 0x7f199
movl %eax, 0x8(%rbx)
movl $0x0, (%rbx)
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
| mysql_stmt_execute_start_internal:
push rbp
mov rbp, rsp
push rbx
push rax
mov rdi, [rdi]
mov rax, [rdi+38h]
mov rax, [rax+480h]
mov rbx, [rax+28h]
call mysql_stmt_execute
mov [rbx+8], eax
mov dword ptr [rbx], 0
add rsp, 8
pop rbx
pop rbp
retn
| long long mysql_stmt_execute_start_internal(long long *a1)
{
long long v1; // rdi
_DWORD *v2; // rbx
long long result; // rax
v1 = *a1;
v2 = *(_DWORD **)(*(_QWORD *)(*(_QWORD *)(v1 + 56) + 1152LL) + 40LL);
result = mysql_stmt_execute(v1);
v2[2] = result;
*v2 = 0;
return result;
}
| mysql_stmt_execute_start_internal:
PUSH RBP
MOV RBP,RSP
PUSH RBX
PUSH RAX
MOV RDI,qword ptr [RDI]
MOV RAX,qword ptr [RDI + 0x38]
MOV RAX,qword ptr [RAX + 0x480]
MOV RBX,qword ptr [RAX + 0x28]
CALL 0x0017f199
MOV dword ptr [RBX + 0x8],EAX
MOV dword ptr [RBX],0x0
ADD RSP,0x8
POP RBX
POP RBP
RET
|
void mysql_stmt_execute_start_internal(long *param_1)
{
int4 *puVar1;
int4 uVar2;
puVar1 = *(int4 **)(*(long *)(*(long *)(*param_1 + 0x38) + 0x480) + 0x28);
uVar2 = mysql_stmt_execute();
puVar1[2] = uVar2;
*puVar1 = 0;
return;
}
| |
42,622 | my_xml_scan | eloqsql/strings/xml.c | static int my_xml_scan(MY_XML_PARSER *p,MY_XML_ATTR *a)
{
int lex;
for (; ( p->cur < p->end) && my_xml_is_space(p->cur[0]) ; p->cur++);
if (p->cur >= p->end)
{
a->beg=p->end;
a->end=p->end;
lex=MY_XML_EOF;
goto ret;
}
a->beg=p->cur;
a->end=p->cur;
if (!my_xml_parser_prefix_cmp(p, C_STRING_WITH_LEN("<!--")))
{
for (; p->cur < p->end; p->cur++)
{
if (!my_xml_parser_prefix_cmp(p, C_STRING_WITH_LEN("-->")))
{
p->cur+= 3;
break;
}
}
a->end=p->cur;
lex=MY_XML_COMMENT;
}
else if (!my_xml_parser_prefix_cmp(p, C_STRING_WITH_LEN("<![CDATA[")))
{
p->cur+= 9;
for (; p->cur < p->end - 2 ; p->cur++)
{
if (p->cur[0] == ']' && p->cur[1] == ']' && p->cur[2] == '>')
{
p->cur+= 3;
a->end= p->cur;
break;
}
}
lex= MY_XML_CDATA;
}
else if (strchr("?=/<>!",p->cur[0]))
{
p->cur++;
a->end=p->cur;
lex=a->beg[0];
}
else if ( (p->cur[0] == '"') || (p->cur[0] == '\'') )
{
/*
"string" or 'string' found.
Scan until the closing quote/doublequote, or until the END-OF-INPUT.
*/
p->cur++;
for (; ( p->cur < p->end ) && (p->cur[0] != a->beg[0]); p->cur++)
{}
a->end=p->cur;
if (p->cur < p->end) /* Closing quote or doublequote has been found */
p->cur++;
a->beg++;
if (!(p->flags & MY_XML_FLAG_SKIP_TEXT_NORMALIZATION))
my_xml_norm_text(a);
lex=MY_XML_STRING;
}
else if (my_xml_is_id0(p->cur[0]))
{
p->cur++;
while (p->cur < p->end && my_xml_is_id1(p->cur[0]))
p->cur++;
a->end=p->cur;
my_xml_norm_text(a);
lex=MY_XML_IDENT;
}
else
lex= MY_XML_UNKNOWN;
#if 0
printf("LEX=%s[%d]\n",lex2str(lex),a->end-a->beg);
#endif
ret:
return lex;
} | O0 | c | my_xml_scan:
pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq -0x8(%rbp), %rax
movq 0x130(%rax), %rcx
movq -0x8(%rbp), %rdx
xorl %eax, %eax
cmpq 0x138(%rdx), %rcx
movb %al, -0x15(%rbp)
jae 0xc7804
movq -0x8(%rbp), %rax
movq 0x130(%rax), %rax
movzbl (%rax), %eax
movl %eax, %ecx
leaq 0x321dec(%rip), %rax # 0x3e95e0
movsbl (%rax,%rcx), %eax
andl $0x8, %eax
cmpl $0x0, %eax
setne %al
movb %al, -0x15(%rbp)
movb -0x15(%rbp), %al
testb $0x1, %al
jne 0xc780d
jmp 0xc7827
jmp 0xc780f
movq -0x8(%rbp), %rax
movq 0x130(%rax), %rcx
addq $0x1, %rcx
movq %rcx, 0x130(%rax)
jmp 0xc77c0
movq -0x8(%rbp), %rax
movq 0x130(%rax), %rax
movq -0x8(%rbp), %rcx
cmpq 0x138(%rcx), %rax
jb 0xc7870
movq -0x8(%rbp), %rax
movq 0x138(%rax), %rcx
movq -0x10(%rbp), %rax
movq %rcx, (%rax)
movq -0x8(%rbp), %rax
movq 0x138(%rax), %rcx
movq -0x10(%rbp), %rax
movq %rcx, 0x8(%rax)
movl $0x45, -0x14(%rbp)
jmp 0xc7c60
movq -0x8(%rbp), %rax
movq 0x130(%rax), %rcx
movq -0x10(%rbp), %rax
movq %rcx, (%rax)
movq -0x8(%rbp), %rax
movq 0x130(%rax), %rcx
movq -0x10(%rbp), %rax
movq %rcx, 0x8(%rax)
movq -0x8(%rbp), %rdi
leaq 0x9463(%rip), %rsi # 0xd0d03
movl $0x4, %edx
callq 0xc84a0
cmpb $0x0, %al
jne 0xc7936
jmp 0xc78b4
movq -0x8(%rbp), %rax
movq 0x130(%rax), %rax
movq -0x8(%rbp), %rcx
cmpq 0x138(%rcx), %rax
jae 0xc7917
movq -0x8(%rbp), %rdi
leaq 0x9431(%rip), %rsi # 0xd0d08
movl $0x3, %edx
callq 0xc84a0
cmpb $0x0, %al
jne 0xc78fd
movq -0x8(%rbp), %rax
movq 0x130(%rax), %rcx
addq $0x3, %rcx
movq %rcx, 0x130(%rax)
jmp 0xc7917
jmp 0xc78ff
movq -0x8(%rbp), %rax
movq 0x130(%rax), %rcx
addq $0x1, %rcx
movq %rcx, 0x130(%rax)
jmp 0xc78b4
movq -0x8(%rbp), %rax
movq 0x130(%rax), %rcx
movq -0x10(%rbp), %rax
movq %rcx, 0x8(%rax)
movl $0x43, -0x14(%rbp)
jmp 0xc7c5e
movq -0x8(%rbp), %rdi
leaq 0x93cb(%rip), %rsi # 0xd0d0c
movl $0x9, %edx
callq 0xc84a0
cmpb $0x0, %al
jne 0xc7a1b
movq -0x8(%rbp), %rax
movq 0x130(%rax), %rcx
addq $0x9, %rcx
movq %rcx, 0x130(%rax)
movq -0x8(%rbp), %rax
movq 0x130(%rax), %rax
movq -0x8(%rbp), %rcx
movq 0x138(%rcx), %rcx
addq $-0x2, %rcx
cmpq %rcx, %rax
jae 0xc7a0f
movq -0x8(%rbp), %rax
movq 0x130(%rax), %rax
movsbl (%rax), %eax
cmpl $0x5d, %eax
jne 0xc79f2
movq -0x8(%rbp), %rax
movq 0x130(%rax), %rax
movsbl 0x1(%rax), %eax
cmpl $0x5d, %eax
jne 0xc79f2
movq -0x8(%rbp), %rax
movq 0x130(%rax), %rax
movsbl 0x2(%rax), %eax
cmpl $0x3e, %eax
jne 0xc79f2
movq -0x8(%rbp), %rax
movq 0x130(%rax), %rcx
addq $0x3, %rcx
movq %rcx, 0x130(%rax)
movq -0x8(%rbp), %rax
movq 0x130(%rax), %rcx
movq -0x10(%rbp), %rax
movq %rcx, 0x8(%rax)
jmp 0xc7a0f
jmp 0xc79f4
movq -0x8(%rbp), %rax
movq 0x130(%rax), %rcx
addq $0x1, %rcx
movq %rcx, 0x130(%rax)
jmp 0xc7969
movl $0x44, -0x14(%rbp)
jmp 0xc7c5c
movq -0x8(%rbp), %rax
movq 0x130(%rax), %rax
movsbl (%rax), %esi
leaq 0x92e6(%rip), %rdi # 0xd0d16
callq 0x364c0
cmpq $0x0, %rax
je 0xc7a76
movq -0x8(%rbp), %rax
movq 0x130(%rax), %rcx
addq $0x1, %rcx
movq %rcx, 0x130(%rax)
movq -0x8(%rbp), %rax
movq 0x130(%rax), %rcx
movq -0x10(%rbp), %rax
movq %rcx, 0x8(%rax)
movq -0x10(%rbp), %rax
movq (%rax), %rax
movsbl (%rax), %eax
movl %eax, -0x14(%rbp)
jmp 0xc7c5a
movq -0x8(%rbp), %rax
movq 0x130(%rax), %rax
movsbl (%rax), %eax
cmpl $0x22, %eax
je 0xc7aa0
movq -0x8(%rbp), %rax
movq 0x130(%rax), %rax
movsbl (%rax), %eax
cmpl $0x27, %eax
jne 0xc7b88
movq -0x8(%rbp), %rax
movq 0x130(%rax), %rcx
addq $0x1, %rcx
movq %rcx, 0x130(%rax)
movq -0x8(%rbp), %rax
movq 0x130(%rax), %rcx
movq -0x8(%rbp), %rdx
xorl %eax, %eax
cmpq 0x138(%rdx), %rcx
movb %al, -0x16(%rbp)
jae 0xc7af3
movq -0x8(%rbp), %rax
movq 0x130(%rax), %rax
movsbl (%rax), %eax
movq -0x10(%rbp), %rcx
movq (%rcx), %rcx
movsbl (%rcx), %ecx
cmpl %ecx, %eax
setne %al
movb %al, -0x16(%rbp)
movb -0x16(%rbp), %al
testb $0x1, %al
jne 0xc7afc
jmp 0xc7b16
jmp 0xc7afe
movq -0x8(%rbp), %rax
movq 0x130(%rax), %rcx
addq $0x1, %rcx
movq %rcx, 0x130(%rax)
jmp 0xc7ab6
movq -0x8(%rbp), %rax
movq 0x130(%rax), %rcx
movq -0x10(%rbp), %rax
movq %rcx, 0x8(%rax)
movq -0x8(%rbp), %rax
movq 0x130(%rax), %rax
movq -0x8(%rbp), %rcx
cmpq 0x138(%rcx), %rax
jae 0xc7b57
movq -0x8(%rbp), %rax
movq 0x130(%rax), %rcx
addq $0x1, %rcx
movq %rcx, 0x130(%rax)
movq -0x10(%rbp), %rax
movq (%rax), %rcx
addq $0x1, %rcx
movq %rcx, (%rax)
movq -0x8(%rbp), %rax
movl (%rax), %eax
andl $0x2, %eax
cmpl $0x0, %eax
jne 0xc7b7c
movq -0x10(%rbp), %rdi
callq 0xc81d0
movl $0x53, -0x14(%rbp)
jmp 0xc7c58
movq -0x8(%rbp), %rax
movq 0x130(%rax), %rax
movzbl (%rax), %eax
movl %eax, %ecx
leaq 0x321a41(%rip), %rax # 0x3e95e0
movsbl (%rax,%rcx), %eax
andl $0x1, %eax
cmpl $0x0, %eax
je 0xc7c4f
movq -0x8(%rbp), %rax
movq 0x130(%rax), %rcx
addq $0x1, %rcx
movq %rcx, 0x130(%rax)
movq -0x8(%rbp), %rax
movq 0x130(%rax), %rcx
movq -0x8(%rbp), %rdx
xorl %eax, %eax
cmpq 0x138(%rdx), %rcx
movb %al, -0x17(%rbp)
jae 0xc7c09
movq -0x8(%rbp), %rax
movq 0x130(%rax), %rax
movzbl (%rax), %eax
movl %eax, %ecx
leaq 0x3219e7(%rip), %rax # 0x3e95e0
movsbl (%rax,%rcx), %eax
andl $0x2, %eax
cmpl $0x0, %eax
setne %al
movb %al, -0x17(%rbp)
movb -0x17(%rbp), %al
testb $0x1, %al
jne 0xc7c12
jmp 0xc7c2a
movq -0x8(%rbp), %rax
movq 0x130(%rax), %rcx
addq $0x1, %rcx
movq %rcx, 0x130(%rax)
jmp 0xc7bc5
movq -0x8(%rbp), %rax
movq 0x130(%rax), %rcx
movq -0x10(%rbp), %rax
movq %rcx, 0x8(%rax)
movq -0x10(%rbp), %rdi
callq 0xc81d0
movl $0x49, -0x14(%rbp)
jmp 0xc7c56
movl $0x55, -0x14(%rbp)
jmp 0xc7c58
jmp 0xc7c5a
jmp 0xc7c5c
jmp 0xc7c5e
jmp 0xc7c60
movl -0x14(%rbp), %eax
addq $0x20, %rsp
popq %rbp
retq
nopl (%rax)
| my_xml_scan:
push rbp
mov rbp, rsp
sub rsp, 20h
mov [rbp+var_8], rdi
mov [rbp+var_10], rsi
loc_C77C0:
mov rax, [rbp+var_8]
mov rcx, [rax+130h]
mov rdx, [rbp+var_8]
xor eax, eax
cmp rcx, [rdx+138h]
mov [rbp+var_15], al
jnb short loc_C7804
mov rax, [rbp+var_8]
mov rax, [rax+130h]
movzx eax, byte ptr [rax]
mov ecx, eax
lea rax, my_xml_ctype
movsx eax, byte ptr [rax+rcx]
and eax, 8
cmp eax, 0
setnz al
mov [rbp+var_15], al
loc_C7804:
mov al, [rbp+var_15]
test al, 1
jnz short loc_C780D
jmp short loc_C7827
loc_C780D:
jmp short $+2
loc_C780F:
mov rax, [rbp+var_8]
mov rcx, [rax+130h]
add rcx, 1
mov [rax+130h], rcx
jmp short loc_C77C0
loc_C7827:
mov rax, [rbp+var_8]
mov rax, [rax+130h]
mov rcx, [rbp+var_8]
cmp rax, [rcx+138h]
jb short loc_C7870
mov rax, [rbp+var_8]
mov rcx, [rax+138h]
mov rax, [rbp+var_10]
mov [rax], rcx
mov rax, [rbp+var_8]
mov rcx, [rax+138h]
mov rax, [rbp+var_10]
mov [rax+8], rcx
mov [rbp+var_14], 45h ; 'E'
jmp loc_C7C60
loc_C7870:
mov rax, [rbp+var_8]
mov rcx, [rax+130h]
mov rax, [rbp+var_10]
mov [rax], rcx
mov rax, [rbp+var_8]
mov rcx, [rax+130h]
mov rax, [rbp+var_10]
mov [rax+8], rcx
mov rdi, [rbp+var_8]
lea rsi, asc_D0D03; "<!--"
mov edx, 4
call my_xml_parser_prefix_cmp
cmp al, 0
jnz loc_C7936
jmp short $+2
loc_C78B4:
mov rax, [rbp+var_8]
mov rax, [rax+130h]
mov rcx, [rbp+var_8]
cmp rax, [rcx+138h]
jnb short loc_C7917
mov rdi, [rbp+var_8]
lea rsi, asc_D0D08; "-->"
mov edx, 3
call my_xml_parser_prefix_cmp
cmp al, 0
jnz short loc_C78FD
mov rax, [rbp+var_8]
mov rcx, [rax+130h]
add rcx, 3
mov [rax+130h], rcx
jmp short loc_C7917
loc_C78FD:
jmp short $+2
loc_C78FF:
mov rax, [rbp+var_8]
mov rcx, [rax+130h]
add rcx, 1
mov [rax+130h], rcx
jmp short loc_C78B4
loc_C7917:
mov rax, [rbp+var_8]
mov rcx, [rax+130h]
mov rax, [rbp+var_10]
mov [rax+8], rcx
mov [rbp+var_14], 43h ; 'C'
jmp loc_C7C5E
loc_C7936:
mov rdi, [rbp+var_8]
lea rsi, aCdata; "<![CDATA["
mov edx, 9
call my_xml_parser_prefix_cmp
cmp al, 0
jnz loc_C7A1B
mov rax, [rbp+var_8]
mov rcx, [rax+130h]
add rcx, 9
mov [rax+130h], rcx
loc_C7969:
mov rax, [rbp+var_8]
mov rax, [rax+130h]
mov rcx, [rbp+var_8]
mov rcx, [rcx+138h]
add rcx, 0FFFFFFFFFFFFFFFEh
cmp rax, rcx
jnb loc_C7A0F
mov rax, [rbp+var_8]
mov rax, [rax+130h]
movsx eax, byte ptr [rax]
cmp eax, 5Dh ; ']'
jnz short loc_C79F2
mov rax, [rbp+var_8]
mov rax, [rax+130h]
movsx eax, byte ptr [rax+1]
cmp eax, 5Dh ; ']'
jnz short loc_C79F2
mov rax, [rbp+var_8]
mov rax, [rax+130h]
movsx eax, byte ptr [rax+2]
cmp eax, 3Eh ; '>'
jnz short loc_C79F2
mov rax, [rbp+var_8]
mov rcx, [rax+130h]
add rcx, 3
mov [rax+130h], rcx
mov rax, [rbp+var_8]
mov rcx, [rax+130h]
mov rax, [rbp+var_10]
mov [rax+8], rcx
jmp short loc_C7A0F
loc_C79F2:
jmp short $+2
loc_C79F4:
mov rax, [rbp+var_8]
mov rcx, [rax+130h]
add rcx, 1
mov [rax+130h], rcx
jmp loc_C7969
loc_C7A0F:
mov [rbp+var_14], 44h ; 'D'
jmp loc_C7C5C
loc_C7A1B:
mov rax, [rbp+var_8]
mov rax, [rax+130h]
movsx esi, byte ptr [rax]
lea rdi, asc_D0D16; "?=/<>!"
call _strchr
cmp rax, 0
jz short loc_C7A76
mov rax, [rbp+var_8]
mov rcx, [rax+130h]
add rcx, 1
mov [rax+130h], rcx
mov rax, [rbp+var_8]
mov rcx, [rax+130h]
mov rax, [rbp+var_10]
mov [rax+8], rcx
mov rax, [rbp+var_10]
mov rax, [rax]
movsx eax, byte ptr [rax]
mov [rbp+var_14], eax
jmp loc_C7C5A
loc_C7A76:
mov rax, [rbp+var_8]
mov rax, [rax+130h]
movsx eax, byte ptr [rax]
cmp eax, 22h ; '"'
jz short loc_C7AA0
mov rax, [rbp+var_8]
mov rax, [rax+130h]
movsx eax, byte ptr [rax]
cmp eax, 27h ; '''
jnz loc_C7B88
loc_C7AA0:
mov rax, [rbp+var_8]
mov rcx, [rax+130h]
add rcx, 1
mov [rax+130h], rcx
loc_C7AB6:
mov rax, [rbp+var_8]
mov rcx, [rax+130h]
mov rdx, [rbp+var_8]
xor eax, eax
cmp rcx, [rdx+138h]
mov [rbp+var_16], al
jnb short loc_C7AF3
mov rax, [rbp+var_8]
mov rax, [rax+130h]
movsx eax, byte ptr [rax]
mov rcx, [rbp+var_10]
mov rcx, [rcx]
movsx ecx, byte ptr [rcx]
cmp eax, ecx
setnz al
mov [rbp+var_16], al
loc_C7AF3:
mov al, [rbp+var_16]
test al, 1
jnz short loc_C7AFC
jmp short loc_C7B16
loc_C7AFC:
jmp short $+2
loc_C7AFE:
mov rax, [rbp+var_8]
mov rcx, [rax+130h]
add rcx, 1
mov [rax+130h], rcx
jmp short loc_C7AB6
loc_C7B16:
mov rax, [rbp+var_8]
mov rcx, [rax+130h]
mov rax, [rbp+var_10]
mov [rax+8], rcx
mov rax, [rbp+var_8]
mov rax, [rax+130h]
mov rcx, [rbp+var_8]
cmp rax, [rcx+138h]
jnb short loc_C7B57
mov rax, [rbp+var_8]
mov rcx, [rax+130h]
add rcx, 1
mov [rax+130h], rcx
loc_C7B57:
mov rax, [rbp+var_10]
mov rcx, [rax]
add rcx, 1
mov [rax], rcx
mov rax, [rbp+var_8]
mov eax, [rax]
and eax, 2
cmp eax, 0
jnz short loc_C7B7C
mov rdi, [rbp+var_10]
call my_xml_norm_text
loc_C7B7C:
mov [rbp+var_14], 53h ; 'S'
jmp loc_C7C58
loc_C7B88:
mov rax, [rbp+var_8]
mov rax, [rax+130h]
movzx eax, byte ptr [rax]
mov ecx, eax
lea rax, my_xml_ctype
movsx eax, byte ptr [rax+rcx]
and eax, 1
cmp eax, 0
jz loc_C7C4F
mov rax, [rbp+var_8]
mov rcx, [rax+130h]
add rcx, 1
mov [rax+130h], rcx
loc_C7BC5:
mov rax, [rbp+var_8]
mov rcx, [rax+130h]
mov rdx, [rbp+var_8]
xor eax, eax
cmp rcx, [rdx+138h]
mov [rbp+var_17], al
jnb short loc_C7C09
mov rax, [rbp+var_8]
mov rax, [rax+130h]
movzx eax, byte ptr [rax]
mov ecx, eax
lea rax, my_xml_ctype
movsx eax, byte ptr [rax+rcx]
and eax, 2
cmp eax, 0
setnz al
mov [rbp+var_17], al
loc_C7C09:
mov al, [rbp+var_17]
test al, 1
jnz short loc_C7C12
jmp short loc_C7C2A
loc_C7C12:
mov rax, [rbp+var_8]
mov rcx, [rax+130h]
add rcx, 1
mov [rax+130h], rcx
jmp short loc_C7BC5
loc_C7C2A:
mov rax, [rbp+var_8]
mov rcx, [rax+130h]
mov rax, [rbp+var_10]
mov [rax+8], rcx
mov rdi, [rbp+var_10]
call my_xml_norm_text
mov [rbp+var_14], 49h ; 'I'
jmp short loc_C7C56
loc_C7C4F:
mov [rbp+var_14], 55h ; 'U'
loc_C7C56:
jmp short $+2
loc_C7C58:
jmp short $+2
loc_C7C5A:
jmp short $+2
loc_C7C5C:
jmp short $+2
loc_C7C5E:
jmp short $+2
loc_C7C60:
mov eax, [rbp+var_14]
add rsp, 20h
pop rbp
retn
| long long my_xml_scan(long long a1, char **a2)
{
bool v3; // [rsp+9h] [rbp-17h]
bool v4; // [rsp+Ah] [rbp-16h]
bool v5; // [rsp+Bh] [rbp-15h]
while ( 1 )
{
v5 = 0;
if ( *(_QWORD *)(a1 + 304) < *(_QWORD *)(a1 + 312) )
v5 = (my_xml_ctype[**(unsigned __int8 **)(a1 + 304)] & 8) != 0;
if ( !v5 )
break;
++*(_QWORD *)(a1 + 304);
}
if ( *(_QWORD *)(a1 + 304) < *(_QWORD *)(a1 + 312) )
{
*a2 = *(char **)(a1 + 304);
a2[1] = *(char **)(a1 + 304);
if ( (unsigned __int8)my_xml_parser_prefix_cmp(a1, "<!--", 4LL) )
{
if ( (unsigned __int8)my_xml_parser_prefix_cmp(a1, "<![CDATA[", 9LL) )
{
if ( strchr("?=/<>!", (unsigned int)**(char **)(a1 + 304)) )
{
a2[1] = (char *)++*(_QWORD *)(a1 + 304);
return (unsigned int)**a2;
}
else if ( **(_BYTE **)(a1 + 304) == 34 || **(_BYTE **)(a1 + 304) == 39 )
{
++*(_QWORD *)(a1 + 304);
while ( 1 )
{
v4 = 0;
if ( *(_QWORD *)(a1 + 304) < *(_QWORD *)(a1 + 312) )
v4 = **(char **)(a1 + 304) != **a2;
if ( !v4 )
break;
++*(_QWORD *)(a1 + 304);
}
a2[1] = *(char **)(a1 + 304);
if ( *(_QWORD *)(a1 + 304) < *(_QWORD *)(a1 + 312) )
++*(_QWORD *)(a1 + 304);
++*a2;
if ( (*(_DWORD *)a1 & 2) == 0 )
my_xml_norm_text(a2);
return 83;
}
else if ( (my_xml_ctype[**(unsigned __int8 **)(a1 + 304)] & 1) != 0 )
{
++*(_QWORD *)(a1 + 304);
while ( 1 )
{
v3 = 0;
if ( *(_QWORD *)(a1 + 304) < *(_QWORD *)(a1 + 312) )
v3 = (my_xml_ctype[**(unsigned __int8 **)(a1 + 304)] & 2) != 0;
if ( !v3 )
break;
++*(_QWORD *)(a1 + 304);
}
a2[1] = *(char **)(a1 + 304);
my_xml_norm_text(a2);
return 73;
}
else
{
return 85;
}
}
else
{
for ( *(_QWORD *)(a1 + 304) += 9LL;
*(_QWORD *)(a1 + 304) < (unsigned long long)(*(_QWORD *)(a1 + 312) - 2LL);
++*(_QWORD *)(a1 + 304) )
{
if ( **(_BYTE **)(a1 + 304) == 93
&& *(_BYTE *)(*(_QWORD *)(a1 + 304) + 1LL) == 93
&& *(_BYTE *)(*(_QWORD *)(a1 + 304) + 2LL) == 62 )
{
*(_QWORD *)(a1 + 304) += 3LL;
a2[1] = *(char **)(a1 + 304);
break;
}
}
return 68;
}
}
else
{
while ( *(_QWORD *)(a1 + 304) < *(_QWORD *)(a1 + 312) )
{
if ( !(unsigned __int8)my_xml_parser_prefix_cmp(a1, "-->", 3LL) )
{
*(_QWORD *)(a1 + 304) += 3LL;
break;
}
++*(_QWORD *)(a1 + 304);
}
a2[1] = *(char **)(a1 + 304);
return 67;
}
}
else
{
*a2 = *(char **)(a1 + 312);
a2[1] = *(char **)(a1 + 312);
return 69;
}
}
| my_xml_scan:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x20
MOV qword ptr [RBP + -0x8],RDI
MOV qword ptr [RBP + -0x10],RSI
LAB_001c77c0:
MOV RAX,qword ptr [RBP + -0x8]
MOV RCX,qword ptr [RAX + 0x130]
MOV RDX,qword ptr [RBP + -0x8]
XOR EAX,EAX
CMP RCX,qword ptr [RDX + 0x138]
MOV byte ptr [RBP + -0x15],AL
JNC 0x001c7804
MOV RAX,qword ptr [RBP + -0x8]
MOV RAX,qword ptr [RAX + 0x130]
MOVZX EAX,byte ptr [RAX]
MOV ECX,EAX
LEA RAX,[0x4e95e0]
MOVSX EAX,byte ptr [RAX + RCX*0x1]
AND EAX,0x8
CMP EAX,0x0
SETNZ AL
MOV byte ptr [RBP + -0x15],AL
LAB_001c7804:
MOV AL,byte ptr [RBP + -0x15]
TEST AL,0x1
JNZ 0x001c780d
JMP 0x001c7827
LAB_001c780d:
JMP 0x001c780f
LAB_001c780f:
MOV RAX,qword ptr [RBP + -0x8]
MOV RCX,qword ptr [RAX + 0x130]
ADD RCX,0x1
MOV qword ptr [RAX + 0x130],RCX
JMP 0x001c77c0
LAB_001c7827:
MOV RAX,qword ptr [RBP + -0x8]
MOV RAX,qword ptr [RAX + 0x130]
MOV RCX,qword ptr [RBP + -0x8]
CMP RAX,qword ptr [RCX + 0x138]
JC 0x001c7870
MOV RAX,qword ptr [RBP + -0x8]
MOV RCX,qword ptr [RAX + 0x138]
MOV RAX,qword ptr [RBP + -0x10]
MOV qword ptr [RAX],RCX
MOV RAX,qword ptr [RBP + -0x8]
MOV RCX,qword ptr [RAX + 0x138]
MOV RAX,qword ptr [RBP + -0x10]
MOV qword ptr [RAX + 0x8],RCX
MOV dword ptr [RBP + -0x14],0x45
JMP 0x001c7c60
LAB_001c7870:
MOV RAX,qword ptr [RBP + -0x8]
MOV RCX,qword ptr [RAX + 0x130]
MOV RAX,qword ptr [RBP + -0x10]
MOV qword ptr [RAX],RCX
MOV RAX,qword ptr [RBP + -0x8]
MOV RCX,qword ptr [RAX + 0x130]
MOV RAX,qword ptr [RBP + -0x10]
MOV qword ptr [RAX + 0x8],RCX
MOV RDI,qword ptr [RBP + -0x8]
LEA RSI,[0x1d0d03]
MOV EDX,0x4
CALL 0x001c84a0
CMP AL,0x0
JNZ 0x001c7936
JMP 0x001c78b4
LAB_001c78b4:
MOV RAX,qword ptr [RBP + -0x8]
MOV RAX,qword ptr [RAX + 0x130]
MOV RCX,qword ptr [RBP + -0x8]
CMP RAX,qword ptr [RCX + 0x138]
JNC 0x001c7917
MOV RDI,qword ptr [RBP + -0x8]
LEA RSI,[0x1d0d08]
MOV EDX,0x3
CALL 0x001c84a0
CMP AL,0x0
JNZ 0x001c78fd
MOV RAX,qword ptr [RBP + -0x8]
MOV RCX,qword ptr [RAX + 0x130]
ADD RCX,0x3
MOV qword ptr [RAX + 0x130],RCX
JMP 0x001c7917
LAB_001c78fd:
JMP 0x001c78ff
LAB_001c78ff:
MOV RAX,qword ptr [RBP + -0x8]
MOV RCX,qword ptr [RAX + 0x130]
ADD RCX,0x1
MOV qword ptr [RAX + 0x130],RCX
JMP 0x001c78b4
LAB_001c7917:
MOV RAX,qword ptr [RBP + -0x8]
MOV RCX,qword ptr [RAX + 0x130]
MOV RAX,qword ptr [RBP + -0x10]
MOV qword ptr [RAX + 0x8],RCX
MOV dword ptr [RBP + -0x14],0x43
JMP 0x001c7c5e
LAB_001c7936:
MOV RDI,qword ptr [RBP + -0x8]
LEA RSI,[0x1d0d0c]
MOV EDX,0x9
CALL 0x001c84a0
CMP AL,0x0
JNZ 0x001c7a1b
MOV RAX,qword ptr [RBP + -0x8]
MOV RCX,qword ptr [RAX + 0x130]
ADD RCX,0x9
MOV qword ptr [RAX + 0x130],RCX
LAB_001c7969:
MOV RAX,qword ptr [RBP + -0x8]
MOV RAX,qword ptr [RAX + 0x130]
MOV RCX,qword ptr [RBP + -0x8]
MOV RCX,qword ptr [RCX + 0x138]
ADD RCX,-0x2
CMP RAX,RCX
JNC 0x001c7a0f
MOV RAX,qword ptr [RBP + -0x8]
MOV RAX,qword ptr [RAX + 0x130]
MOVSX EAX,byte ptr [RAX]
CMP EAX,0x5d
JNZ 0x001c79f2
MOV RAX,qword ptr [RBP + -0x8]
MOV RAX,qword ptr [RAX + 0x130]
MOVSX EAX,byte ptr [RAX + 0x1]
CMP EAX,0x5d
JNZ 0x001c79f2
MOV RAX,qword ptr [RBP + -0x8]
MOV RAX,qword ptr [RAX + 0x130]
MOVSX EAX,byte ptr [RAX + 0x2]
CMP EAX,0x3e
JNZ 0x001c79f2
MOV RAX,qword ptr [RBP + -0x8]
MOV RCX,qword ptr [RAX + 0x130]
ADD RCX,0x3
MOV qword ptr [RAX + 0x130],RCX
MOV RAX,qword ptr [RBP + -0x8]
MOV RCX,qword ptr [RAX + 0x130]
MOV RAX,qword ptr [RBP + -0x10]
MOV qword ptr [RAX + 0x8],RCX
JMP 0x001c7a0f
LAB_001c79f2:
JMP 0x001c79f4
LAB_001c79f4:
MOV RAX,qword ptr [RBP + -0x8]
MOV RCX,qword ptr [RAX + 0x130]
ADD RCX,0x1
MOV qword ptr [RAX + 0x130],RCX
JMP 0x001c7969
LAB_001c7a0f:
MOV dword ptr [RBP + -0x14],0x44
JMP 0x001c7c5c
LAB_001c7a1b:
MOV RAX,qword ptr [RBP + -0x8]
MOV RAX,qword ptr [RAX + 0x130]
MOVSX ESI,byte ptr [RAX]
LEA RDI,[0x1d0d16]
CALL 0x001364c0
CMP RAX,0x0
JZ 0x001c7a76
MOV RAX,qword ptr [RBP + -0x8]
MOV RCX,qword ptr [RAX + 0x130]
ADD RCX,0x1
MOV qword ptr [RAX + 0x130],RCX
MOV RAX,qword ptr [RBP + -0x8]
MOV RCX,qword ptr [RAX + 0x130]
MOV RAX,qword ptr [RBP + -0x10]
MOV qword ptr [RAX + 0x8],RCX
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX]
MOVSX EAX,byte ptr [RAX]
MOV dword ptr [RBP + -0x14],EAX
JMP 0x001c7c5a
LAB_001c7a76:
MOV RAX,qword ptr [RBP + -0x8]
MOV RAX,qword ptr [RAX + 0x130]
MOVSX EAX,byte ptr [RAX]
CMP EAX,0x22
JZ 0x001c7aa0
MOV RAX,qword ptr [RBP + -0x8]
MOV RAX,qword ptr [RAX + 0x130]
MOVSX EAX,byte ptr [RAX]
CMP EAX,0x27
JNZ 0x001c7b88
LAB_001c7aa0:
MOV RAX,qword ptr [RBP + -0x8]
MOV RCX,qword ptr [RAX + 0x130]
ADD RCX,0x1
MOV qword ptr [RAX + 0x130],RCX
LAB_001c7ab6:
MOV RAX,qword ptr [RBP + -0x8]
MOV RCX,qword ptr [RAX + 0x130]
MOV RDX,qword ptr [RBP + -0x8]
XOR EAX,EAX
CMP RCX,qword ptr [RDX + 0x138]
MOV byte ptr [RBP + -0x16],AL
JNC 0x001c7af3
MOV RAX,qword ptr [RBP + -0x8]
MOV RAX,qword ptr [RAX + 0x130]
MOVSX EAX,byte ptr [RAX]
MOV RCX,qword ptr [RBP + -0x10]
MOV RCX,qword ptr [RCX]
MOVSX ECX,byte ptr [RCX]
CMP EAX,ECX
SETNZ AL
MOV byte ptr [RBP + -0x16],AL
LAB_001c7af3:
MOV AL,byte ptr [RBP + -0x16]
TEST AL,0x1
JNZ 0x001c7afc
JMP 0x001c7b16
LAB_001c7afc:
JMP 0x001c7afe
LAB_001c7afe:
MOV RAX,qword ptr [RBP + -0x8]
MOV RCX,qword ptr [RAX + 0x130]
ADD RCX,0x1
MOV qword ptr [RAX + 0x130],RCX
JMP 0x001c7ab6
LAB_001c7b16:
MOV RAX,qword ptr [RBP + -0x8]
MOV RCX,qword ptr [RAX + 0x130]
MOV RAX,qword ptr [RBP + -0x10]
MOV qword ptr [RAX + 0x8],RCX
MOV RAX,qword ptr [RBP + -0x8]
MOV RAX,qword ptr [RAX + 0x130]
MOV RCX,qword ptr [RBP + -0x8]
CMP RAX,qword ptr [RCX + 0x138]
JNC 0x001c7b57
MOV RAX,qword ptr [RBP + -0x8]
MOV RCX,qword ptr [RAX + 0x130]
ADD RCX,0x1
MOV qword ptr [RAX + 0x130],RCX
LAB_001c7b57:
MOV RAX,qword ptr [RBP + -0x10]
MOV RCX,qword ptr [RAX]
ADD RCX,0x1
MOV qword ptr [RAX],RCX
MOV RAX,qword ptr [RBP + -0x8]
MOV EAX,dword ptr [RAX]
AND EAX,0x2
CMP EAX,0x0
JNZ 0x001c7b7c
MOV RDI,qword ptr [RBP + -0x10]
CALL 0x001c81d0
LAB_001c7b7c:
MOV dword ptr [RBP + -0x14],0x53
JMP 0x001c7c58
LAB_001c7b88:
MOV RAX,qword ptr [RBP + -0x8]
MOV RAX,qword ptr [RAX + 0x130]
MOVZX EAX,byte ptr [RAX]
MOV ECX,EAX
LEA RAX,[0x4e95e0]
MOVSX EAX,byte ptr [RAX + RCX*0x1]
AND EAX,0x1
CMP EAX,0x0
JZ 0x001c7c4f
MOV RAX,qword ptr [RBP + -0x8]
MOV RCX,qword ptr [RAX + 0x130]
ADD RCX,0x1
MOV qword ptr [RAX + 0x130],RCX
LAB_001c7bc5:
MOV RAX,qword ptr [RBP + -0x8]
MOV RCX,qword ptr [RAX + 0x130]
MOV RDX,qword ptr [RBP + -0x8]
XOR EAX,EAX
CMP RCX,qword ptr [RDX + 0x138]
MOV byte ptr [RBP + -0x17],AL
JNC 0x001c7c09
MOV RAX,qword ptr [RBP + -0x8]
MOV RAX,qword ptr [RAX + 0x130]
MOVZX EAX,byte ptr [RAX]
MOV ECX,EAX
LEA RAX,[0x4e95e0]
MOVSX EAX,byte ptr [RAX + RCX*0x1]
AND EAX,0x2
CMP EAX,0x0
SETNZ AL
MOV byte ptr [RBP + -0x17],AL
LAB_001c7c09:
MOV AL,byte ptr [RBP + -0x17]
TEST AL,0x1
JNZ 0x001c7c12
JMP 0x001c7c2a
LAB_001c7c12:
MOV RAX,qword ptr [RBP + -0x8]
MOV RCX,qword ptr [RAX + 0x130]
ADD RCX,0x1
MOV qword ptr [RAX + 0x130],RCX
JMP 0x001c7bc5
LAB_001c7c2a:
MOV RAX,qword ptr [RBP + -0x8]
MOV RCX,qword ptr [RAX + 0x130]
MOV RAX,qword ptr [RBP + -0x10]
MOV qword ptr [RAX + 0x8],RCX
MOV RDI,qword ptr [RBP + -0x10]
CALL 0x001c81d0
MOV dword ptr [RBP + -0x14],0x49
JMP 0x001c7c56
LAB_001c7c4f:
MOV dword ptr [RBP + -0x14],0x55
LAB_001c7c56:
JMP 0x001c7c58
LAB_001c7c58:
JMP 0x001c7c5a
LAB_001c7c5a:
JMP 0x001c7c5c
LAB_001c7c5c:
JMP 0x001c7c5e
LAB_001c7c5e:
JMP 0x001c7c60
LAB_001c7c60:
MOV EAX,dword ptr [RBP + -0x14]
ADD RSP,0x20
POP RBP
RET
|
int my_xml_scan(uint *param_1,long *param_2)
{
char cVar1;
char *pcVar2;
bool bVar3;
int local_1c;
while( true ) {
bVar3 = false;
if (*(ulong *)(param_1 + 0x4c) < *(ulong *)(param_1 + 0x4e)) {
bVar3 = (my_xml_ctype[**(byte **)(param_1 + 0x4c)] & 8) != 0;
}
if (!bVar3) break;
*(long *)(param_1 + 0x4c) = *(long *)(param_1 + 0x4c) + 1;
}
if (*(ulong *)(param_1 + 0x4c) < *(ulong *)(param_1 + 0x4e)) {
*param_2 = *(long *)(param_1 + 0x4c);
param_2[1] = *(long *)(param_1 + 0x4c);
cVar1 = my_xml_parser_prefix_cmp(param_1,&DAT_001d0d03,4);
if (cVar1 == '\0') {
while (*(ulong *)(param_1 + 0x4c) < *(ulong *)(param_1 + 0x4e)) {
cVar1 = my_xml_parser_prefix_cmp(param_1,&DAT_001d0d08,3);
if (cVar1 == '\0') {
*(long *)(param_1 + 0x4c) = *(long *)(param_1 + 0x4c) + 3;
break;
}
*(long *)(param_1 + 0x4c) = *(long *)(param_1 + 0x4c) + 1;
}
param_2[1] = *(long *)(param_1 + 0x4c);
local_1c = 0x43;
}
else {
cVar1 = my_xml_parser_prefix_cmp(param_1,&DAT_001d0d0c,9);
if (cVar1 == '\0') {
*(long *)(param_1 + 0x4c) = *(long *)(param_1 + 0x4c) + 9;
while (*(ulong *)(param_1 + 0x4c) < *(long *)(param_1 + 0x4e) - 2U) {
if (((**(char **)(param_1 + 0x4c) == ']') &&
(*(char *)(*(long *)(param_1 + 0x4c) + 1) == ']')) &&
(*(char *)(*(long *)(param_1 + 0x4c) + 2) == '>')) {
*(long *)(param_1 + 0x4c) = *(long *)(param_1 + 0x4c) + 3;
param_2[1] = *(long *)(param_1 + 0x4c);
break;
}
*(long *)(param_1 + 0x4c) = *(long *)(param_1 + 0x4c) + 1;
}
local_1c = 0x44;
}
else {
pcVar2 = strchr("?=/<>!",(int)**(char **)(param_1 + 0x4c));
if (pcVar2 == (char *)0x0) {
if ((**(char **)(param_1 + 0x4c) == '\"') || (**(char **)(param_1 + 0x4c) == '\'')) {
*(long *)(param_1 + 0x4c) = *(long *)(param_1 + 0x4c) + 1;
while( true ) {
bVar3 = false;
if (*(ulong *)(param_1 + 0x4c) < *(ulong *)(param_1 + 0x4e)) {
bVar3 = **(char **)(param_1 + 0x4c) != *(char *)*param_2;
}
if (!bVar3) break;
*(long *)(param_1 + 0x4c) = *(long *)(param_1 + 0x4c) + 1;
}
param_2[1] = *(long *)(param_1 + 0x4c);
if (*(ulong *)(param_1 + 0x4c) < *(ulong *)(param_1 + 0x4e)) {
*(long *)(param_1 + 0x4c) = *(long *)(param_1 + 0x4c) + 1;
}
*param_2 = *param_2 + 1;
if ((*param_1 & 2) == 0) {
my_xml_norm_text(param_2);
}
local_1c = 0x53;
}
else if ((my_xml_ctype[**(byte **)(param_1 + 0x4c)] & 1) == 0) {
local_1c = 0x55;
}
else {
*(long *)(param_1 + 0x4c) = *(long *)(param_1 + 0x4c) + 1;
while( true ) {
bVar3 = false;
if (*(ulong *)(param_1 + 0x4c) < *(ulong *)(param_1 + 0x4e)) {
bVar3 = (my_xml_ctype[**(byte **)(param_1 + 0x4c)] & 2) != 0;
}
if (!bVar3) break;
*(long *)(param_1 + 0x4c) = *(long *)(param_1 + 0x4c) + 1;
}
param_2[1] = *(long *)(param_1 + 0x4c);
my_xml_norm_text(param_2);
local_1c = 0x49;
}
}
else {
*(long *)(param_1 + 0x4c) = *(long *)(param_1 + 0x4c) + 1;
param_2[1] = *(long *)(param_1 + 0x4c);
local_1c = (int)*(char *)*param_2;
}
}
}
}
else {
*param_2 = *(long *)(param_1 + 0x4e);
param_2[1] = *(long *)(param_1 + 0x4e);
local_1c = 0x45;
}
return local_1c;
}
| |
42,623 | dump_hex | bluesky950520[P]quickjs/qjsc.c | static void dump_hex(FILE *f, const uint8_t *buf, size_t len)
{
size_t i, col;
col = 0;
for(i = 0; i < len; i++) {
fprintf(f, " 0x%02x,", buf[i]);
if (++col == 8) {
fprintf(f, "\n");
col = 0;
}
}
if (col != 0)
fprintf(f, "\n");
} | O0 | c | dump_hex:
subq $0x28, %rsp
movq %rdi, 0x20(%rsp)
movq %rsi, 0x18(%rsp)
movq %rdx, 0x10(%rsp)
movq $0x0, (%rsp)
movq $0x0, 0x8(%rsp)
movq 0x8(%rsp), %rax
cmpq 0x10(%rsp), %rax
jae 0xfeb0
movq 0x20(%rsp), %rdi
movq 0x18(%rsp), %rax
movq 0x8(%rsp), %rcx
movzbl (%rax,%rcx), %edx
leaq 0xf9a79(%rip), %rsi # 0x1098e3
movb $0x0, %al
callq 0xe550
movq (%rsp), %rax
addq $0x1, %rax
movq %rax, (%rsp)
cmpq $0x8, %rax
jne 0xfe9e
movq 0x20(%rsp), %rdi
leaq 0xf97d0(%rip), %rsi # 0x10965f
movb $0x0, %al
callq 0xe550
movq $0x0, (%rsp)
jmp 0xfea0
movq 0x8(%rsp), %rax
addq $0x1, %rax
movq %rax, 0x8(%rsp)
jmp 0xfe44
cmpq $0x0, (%rsp)
je 0xfeca
movq 0x20(%rsp), %rdi
leaq 0xf979c(%rip), %rsi # 0x10965f
movb $0x0, %al
callq 0xe550
addq $0x28, %rsp
retq
nop
| dump_hex:
sub rsp, 28h
mov [rsp+28h+var_8], rdi
mov [rsp+28h+var_10], rsi
mov [rsp+28h+var_18], rdx
mov [rsp+28h+var_28], 0
mov [rsp+28h+var_20], 0
loc_FE44:
mov rax, [rsp+28h+var_20]
cmp rax, [rsp+28h+var_18]
jnb short loc_FEB0
mov rdi, [rsp+28h+var_8]
mov rax, [rsp+28h+var_10]
mov rcx, [rsp+28h+var_20]
movzx edx, byte ptr [rax+rcx]
lea rsi, a0x02x; " 0x%02x,"
mov al, 0
call _fprintf
mov rax, [rsp+28h+var_28]
add rax, 1
mov [rsp+28h+var_28], rax
cmp rax, 8
jnz short loc_FE9E
mov rdi, [rsp+28h+var_8]
lea rsi, aIncludeQuickjs+1Ah; "\n"
mov al, 0
call _fprintf
mov [rsp+28h+var_28], 0
loc_FE9E:
jmp short $+2
loc_FEA0:
mov rax, [rsp+28h+var_20]
add rax, 1
mov [rsp+28h+var_20], rax
jmp short loc_FE44
loc_FEB0:
cmp [rsp+28h+var_28], 0
jz short loc_FECA
mov rdi, [rsp+28h+var_8]
lea rsi, aIncludeQuickjs+1Ah; "\n"
mov al, 0
call _fprintf
loc_FECA:
add rsp, 28h
retn
| long long dump_hex(long long a1, long long a2, unsigned long long a3)
{
long long result; // rax
long long v4; // [rsp+0h] [rbp-28h]
unsigned long long i; // [rsp+8h] [rbp-20h]
v4 = 0LL;
for ( i = 0LL; ; ++i )
{
result = i;
if ( i >= a3 )
break;
fprintf(a1, " 0x%02x,", *(unsigned __int8 *)(a2 + i));
if ( ++v4 == 8 )
{
fprintf(a1, "\n");
v4 = 0LL;
}
}
if ( v4 )
return fprintf(a1, "\n");
return result;
}
| dump_hex:
SUB RSP,0x28
MOV qword ptr [RSP + 0x20],RDI
MOV qword ptr [RSP + 0x18],RSI
MOV qword ptr [RSP + 0x10],RDX
MOV qword ptr [RSP],0x0
MOV qword ptr [RSP + 0x8],0x0
LAB_0010fe44:
MOV RAX,qword ptr [RSP + 0x8]
CMP RAX,qword ptr [RSP + 0x10]
JNC 0x0010feb0
MOV RDI,qword ptr [RSP + 0x20]
MOV RAX,qword ptr [RSP + 0x18]
MOV RCX,qword ptr [RSP + 0x8]
MOVZX EDX,byte ptr [RAX + RCX*0x1]
LEA RSI,[0x2098e3]
MOV AL,0x0
CALL 0x0010e550
MOV RAX,qword ptr [RSP]
ADD RAX,0x1
MOV qword ptr [RSP],RAX
CMP RAX,0x8
JNZ 0x0010fe9e
MOV RDI,qword ptr [RSP + 0x20]
LEA RSI,[0x20965f]
MOV AL,0x0
CALL 0x0010e550
MOV qword ptr [RSP],0x0
LAB_0010fe9e:
JMP 0x0010fea0
LAB_0010fea0:
MOV RAX,qword ptr [RSP + 0x8]
ADD RAX,0x1
MOV qword ptr [RSP + 0x8],RAX
JMP 0x0010fe44
LAB_0010feb0:
CMP qword ptr [RSP],0x0
JZ 0x0010feca
MOV RDI,qword ptr [RSP + 0x20]
LEA RSI,[0x20965f]
MOV AL,0x0
CALL 0x0010e550
LAB_0010feca:
ADD RSP,0x28
RET
|
void dump_hex(FILE *param_1,long param_2,ulong param_3)
{
long local_28;
ulong local_20;
local_28 = 0;
for (local_20 = 0; local_20 < param_3; local_20 = local_20 + 1) {
fprintf(param_1," 0x%02x,",(ulong)*(byte *)(param_2 + local_20));
local_28 = local_28 + 1;
if (local_28 == 8) {
fprintf(param_1,"\n");
local_28 = 0;
}
}
if (local_28 != 0) {
fprintf(param_1,"\n");
}
return;
}
| |
42,624 | set_prealloc_root | eloqsql/mysys/my_alloc.c | void set_prealloc_root(MEM_ROOT *root, char *ptr)
{
USED_MEM *next;
for (next=root->used; next ; next=next->next)
{
if ((char*) next <= ptr && (char*) next + next->size > ptr)
{
root->pre_alloc=next;
return;
}
}
for (next=root->free ; next ; next=next->next)
{
if ((char*) next <= ptr && (char*) next + next->size > ptr)
{
root->pre_alloc=next;
return;
}
}
} | O0 | c | set_prealloc_root:
pushq %rbp
movq %rsp, %rbp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq -0x8(%rbp), %rax
movq 0x8(%rax), %rax
movq %rax, -0x18(%rbp)
cmpq $0x0, -0x18(%rbp)
je 0x342d8
movq -0x18(%rbp), %rax
cmpq -0x10(%rbp), %rax
ja 0x342c9
movq -0x18(%rbp), %rax
movq -0x18(%rbp), %rcx
addq 0x10(%rcx), %rax
cmpq -0x10(%rbp), %rax
jbe 0x342c9
movq -0x18(%rbp), %rcx
movq -0x8(%rbp), %rax
movq %rcx, 0x10(%rax)
jmp 0x34323
jmp 0x342cb
movq -0x18(%rbp), %rax
movq (%rax), %rax
movq %rax, -0x18(%rbp)
jmp 0x34298
movq -0x8(%rbp), %rax
movq (%rax), %rax
movq %rax, -0x18(%rbp)
cmpq $0x0, -0x18(%rbp)
je 0x34323
movq -0x18(%rbp), %rax
cmpq -0x10(%rbp), %rax
ja 0x34314
movq -0x18(%rbp), %rax
movq -0x18(%rbp), %rcx
addq 0x10(%rcx), %rax
cmpq -0x10(%rbp), %rax
jbe 0x34314
movq -0x18(%rbp), %rcx
movq -0x8(%rbp), %rax
movq %rcx, 0x10(%rax)
jmp 0x34323
jmp 0x34316
movq -0x18(%rbp), %rax
movq (%rax), %rax
movq %rax, -0x18(%rbp)
jmp 0x342e3
popq %rbp
retq
nopw %cs:(%rax,%rax)
| set_prealloc_root:
push rbp
mov rbp, rsp
mov [rbp+var_8], rdi
mov [rbp+var_10], rsi
mov rax, [rbp+var_8]
mov rax, [rax+8]
mov [rbp+var_18], rax
loc_34298:
cmp [rbp+var_18], 0
jz short loc_342D8
mov rax, [rbp+var_18]
cmp rax, [rbp+var_10]
ja short loc_342C9
mov rax, [rbp+var_18]
mov rcx, [rbp+var_18]
add rax, [rcx+10h]
cmp rax, [rbp+var_10]
jbe short loc_342C9
mov rcx, [rbp+var_18]
mov rax, [rbp+var_8]
mov [rax+10h], rcx
jmp short loc_34323
loc_342C9:
jmp short $+2
loc_342CB:
mov rax, [rbp+var_18]
mov rax, [rax]
mov [rbp+var_18], rax
jmp short loc_34298
loc_342D8:
mov rax, [rbp+var_8]
mov rax, [rax]
mov [rbp+var_18], rax
loc_342E3:
cmp [rbp+var_18], 0
jz short loc_34323
mov rax, [rbp+var_18]
cmp rax, [rbp+var_10]
ja short loc_34314
mov rax, [rbp+var_18]
mov rcx, [rbp+var_18]
add rax, [rcx+10h]
cmp rax, [rbp+var_10]
jbe short loc_34314
mov rcx, [rbp+var_18]
mov rax, [rbp+var_8]
mov [rax+10h], rcx
jmp short loc_34323
loc_34314:
jmp short $+2
loc_34316:
mov rax, [rbp+var_18]
mov rax, [rax]
mov [rbp+var_18], rax
jmp short loc_342E3
loc_34323:
pop rbp
retn
| _QWORD * set_prealloc_root(_QWORD *a1, unsigned long long a2)
{
_QWORD *result; // rax
_QWORD *i; // [rsp+0h] [rbp-18h]
_QWORD *j; // [rsp+0h] [rbp-18h]
for ( i = (_QWORD *)a1[1]; i; i = (_QWORD *)*i )
{
if ( (unsigned long long)i <= a2 && (unsigned long long)i + i[2] > a2 )
{
result = a1;
a1[2] = i;
return result;
}
}
result = (_QWORD *)*a1;
for ( j = (_QWORD *)*a1; j; j = (_QWORD *)*j )
{
if ( (unsigned long long)j <= a2 && (unsigned long long)j + j[2] > a2 )
{
result = a1;
a1[2] = j;
return result;
}
result = (_QWORD *)*j;
}
return result;
}
| set_prealloc_root:
PUSH RBP
MOV RBP,RSP
MOV qword ptr [RBP + -0x8],RDI
MOV qword ptr [RBP + -0x10],RSI
MOV RAX,qword ptr [RBP + -0x8]
MOV RAX,qword ptr [RAX + 0x8]
MOV qword ptr [RBP + -0x18],RAX
LAB_00134298:
CMP qword ptr [RBP + -0x18],0x0
JZ 0x001342d8
MOV RAX,qword ptr [RBP + -0x18]
CMP RAX,qword ptr [RBP + -0x10]
JA 0x001342c9
MOV RAX,qword ptr [RBP + -0x18]
MOV RCX,qword ptr [RBP + -0x18]
ADD RAX,qword ptr [RCX + 0x10]
CMP RAX,qword ptr [RBP + -0x10]
JBE 0x001342c9
MOV RCX,qword ptr [RBP + -0x18]
MOV RAX,qword ptr [RBP + -0x8]
MOV qword ptr [RAX + 0x10],RCX
JMP 0x00134323
LAB_001342c9:
JMP 0x001342cb
LAB_001342cb:
MOV RAX,qword ptr [RBP + -0x18]
MOV RAX,qword ptr [RAX]
MOV qword ptr [RBP + -0x18],RAX
JMP 0x00134298
LAB_001342d8:
MOV RAX,qword ptr [RBP + -0x8]
MOV RAX,qword ptr [RAX]
MOV qword ptr [RBP + -0x18],RAX
LAB_001342e3:
CMP qword ptr [RBP + -0x18],0x0
JZ 0x00134323
MOV RAX,qword ptr [RBP + -0x18]
CMP RAX,qword ptr [RBP + -0x10]
JA 0x00134314
MOV RAX,qword ptr [RBP + -0x18]
MOV RCX,qword ptr [RBP + -0x18]
ADD RAX,qword ptr [RCX + 0x10]
CMP RAX,qword ptr [RBP + -0x10]
JBE 0x00134314
MOV RCX,qword ptr [RBP + -0x18]
MOV RAX,qword ptr [RBP + -0x8]
MOV qword ptr [RAX + 0x10],RCX
JMP 0x00134323
LAB_00134314:
JMP 0x00134316
LAB_00134316:
MOV RAX,qword ptr [RBP + -0x18]
MOV RAX,qword ptr [RAX]
MOV qword ptr [RBP + -0x18],RAX
JMP 0x001342e3
LAB_00134323:
POP RBP
RET
|
void set_prealloc_root(int8 *param_1,int8 *param_2)
{
int8 *local_20;
local_20 = (int8 *)param_1[1];
while( true ) {
if (local_20 == (int8 *)0x0) {
local_20 = (int8 *)*param_1;
while( true ) {
if (local_20 == (int8 *)0x0) {
return;
}
if ((local_20 <= param_2) && (param_2 < (int8 *)((long)local_20 + local_20[2])))
break;
local_20 = (int8 *)*local_20;
}
param_1[2] = local_20;
return;
}
if ((local_20 <= param_2) && (param_2 < (int8 *)((long)local_20 + local_20[2]))) break;
local_20 = (int8 *)*local_20;
}
param_1[2] = local_20;
return;
}
| |
42,625 | escape_quotes_for_mysql | eloqsql/mysys/charset.c | size_t escape_quotes_for_mysql(CHARSET_INFO *charset_info,
char *to, size_t to_length,
const char *from, size_t length,
my_bool *overflow)
{
const char *to_start= to;
const char *end, *to_end=to_start + (to_length ? to_length-1 : 2*length);
#ifdef USE_MB
my_bool use_mb_flag= my_ci_use_mb(charset_info);
#endif
*overflow= FALSE;
for (end= from + length; from < end; from++)
{
#ifdef USE_MB
int tmp_length;
if (use_mb_flag && (tmp_length= my_ismbchar(charset_info, from, end)))
{
if (to + tmp_length > to_end)
{
*overflow= TRUE;
break;
}
while (tmp_length--)
*to++= *from++;
from--;
continue;
}
/*
We don't have the same issue here with a non-multi-byte character being
turned into a multi-byte character by the addition of an escaping
character, because we are only escaping the ' character with itself.
*/
#endif
if (*from == '\'')
{
if (to + 2 > to_end)
{
*overflow= TRUE;
break;
}
*to++= '\'';
*to++= '\'';
}
else
{
if (to + 1 > to_end)
{
*overflow= TRUE;
break;
}
*to++= *from;
}
}
*to= 0;
return (size_t) (to - to_start);
} | O3 | c | escape_quotes_for_mysql:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rdx, %r12
leaq (%r8,%r8), %rax
subq $0x1, %r12
cmovbq %rax, %r12
movq %rdi, -0x40(%rbp)
movl 0x9c(%rdi), %r13d
movq %r9, -0x38(%rbp)
movb $0x0, (%r9)
movq %rsi, -0x30(%rbp)
movq %rsi, %rax
testq %r8, %r8
jle 0x9318f
movq %r8, %r15
movq %rcx, %r14
movq -0x30(%rbp), %rbx
addq %rbx, %r12
addq %rcx, %r15
cmpl $0x2, %r13d
jb 0x9312a
movq -0x40(%rbp), %rdi
movq 0xb8(%rdi), %rax
movq %r14, %rsi
movq %r15, %rdx
callq *0xc0(%rax)
cmpl $0x2, %eax
jge 0x9314f
movb (%r14), %cl
cmpb $0x27, %cl
jne 0x93142
leaq 0x2(%rbx), %rax
cmpq %r12, %rax
ja 0x93185
movw $0x2727, (%rbx) # imm = 0x2727
jmp 0x93178
leaq 0x1(%rbx), %rax
cmpq %r12, %rax
ja 0x93185
movb %cl, (%rbx)
jmp 0x93178
movl %eax, %ecx
movl %eax, %eax
addq %rbx, %rax
cmpq %r12, %rax
ja 0x93185
decq %r14
movq %r14, %rdx
leaq 0x1(%rdx), %r14
leaq 0x1(%rbx), %rax
movb 0x1(%rdx), %dl
movb %dl, (%rbx)
movq %r14, %rdx
movq %rax, %rbx
decl %ecx
jne 0x93161
incq %r14
movq %rax, %rbx
cmpq %r15, %r14
jb 0x93108
jmp 0x9318f
movq -0x38(%rbp), %rax
movb $0x1, (%rax)
movq %rbx, %rax
movb $0x0, (%rax)
subq -0x30(%rbp), %rax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
| escape_quotes_for_mysql:
push rbp
mov rbp, rsp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 18h
mov r12, rdx
lea rax, [r8+r8]
sub r12, 1
cmovb r12, rax
mov [rbp+var_40], rdi
mov r13d, [rdi+9Ch]
mov [rbp+var_38], r9
mov byte ptr [r9], 0
mov [rbp+var_30], rsi
mov rax, rsi
test r8, r8
jle loc_9318F
mov r15, r8
mov r14, rcx
mov rbx, [rbp+var_30]
add r12, rbx
add r15, rcx
loc_93108:
cmp r13d, 2
jb short loc_9312A
mov rdi, [rbp+var_40]
mov rax, [rdi+0B8h]
mov rsi, r14
mov rdx, r15
call qword ptr [rax+0C0h]
cmp eax, 2
jge short loc_9314F
loc_9312A:
mov cl, [r14]
cmp cl, 27h ; '''
jnz short loc_93142
lea rax, [rbx+2]
cmp rax, r12
ja short loc_93185
mov word ptr [rbx], 2727h
jmp short loc_93178
loc_93142:
lea rax, [rbx+1]
cmp rax, r12
ja short loc_93185
mov [rbx], cl
jmp short loc_93178
loc_9314F:
mov ecx, eax
mov eax, eax
add rax, rbx
cmp rax, r12
ja short loc_93185
dec r14
mov rdx, r14
loc_93161:
lea r14, [rdx+1]
lea rax, [rbx+1]
mov dl, [rdx+1]
mov [rbx], dl
mov rdx, r14
mov rbx, rax
dec ecx
jnz short loc_93161
loc_93178:
inc r14
mov rbx, rax
cmp r14, r15
jb short loc_93108
jmp short loc_9318F
loc_93185:
mov rax, [rbp+var_38]
mov byte ptr [rax], 1
mov rax, rbx
loc_9318F:
mov byte ptr [rax], 0
sub rax, [rbp+var_30]
add rsp, 18h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
| _BYTE * escape_quotes_for_mysql(long long a1, _BYTE *a2, long long a3, _BYTE *a4, long long a5, _BYTE *a6)
{
long long v6; // r12
unsigned int v7; // r13d
_BYTE *v8; // rax
_BYTE *v9; // r14
_WORD *v10; // rbx
unsigned long long v11; // r12
unsigned long long v12; // r15
int v13; // eax
int v14; // ecx
_BYTE *v15; // rdx
v6 = a3 - 1;
if ( !a3 )
v6 = 2 * a5;
v7 = *(_DWORD *)(a1 + 156);
*a6 = 0;
v8 = a2;
if ( a5 > 0 )
{
v9 = a4;
v10 = a2;
v11 = (unsigned long long)&a2[v6];
v12 = (unsigned long long)&a4[a5];
do
{
if ( v7 >= 2
&& (v13 = (*(long long ( **)(long long, _BYTE *, unsigned long long))(*(_QWORD *)(a1 + 184) + 192LL))(
a1,
v9,
v12),
v13 >= 2) )
{
v14 = v13;
if ( (unsigned long long)v10 + (unsigned int)v13 > v11 )
{
LABEL_17:
*a6 = 1;
v8 = v10;
break;
}
v15 = v9 - 1;
do
{
v9 = v15 + 1;
v8 = (char *)v10 + 1;
*(_BYTE *)v10 = *++v15;
v10 = (_WORD *)((char *)v10 + 1);
--v14;
}
while ( v14 );
}
else if ( *v9 == 39 )
{
v8 = v10 + 1;
if ( (unsigned long long)(v10 + 1) > v11 )
goto LABEL_17;
*v10 = 10023;
}
else
{
v8 = (char *)v10 + 1;
if ( (unsigned long long)v10 + 1 > v11 )
goto LABEL_17;
*(_BYTE *)v10 = *v9;
}
++v9;
v10 = v8;
}
while ( (unsigned long long)v9 < v12 );
}
*v8 = 0;
return (_BYTE *)(v8 - a2);
}
| escape_quotes_for_mysql:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x18
MOV R12,RDX
LEA RAX,[R8 + R8*0x1]
SUB R12,0x1
CMOVC R12,RAX
MOV qword ptr [RBP + -0x40],RDI
MOV R13D,dword ptr [RDI + 0x9c]
MOV qword ptr [RBP + -0x38],R9
MOV byte ptr [R9],0x0
MOV qword ptr [RBP + -0x30],RSI
MOV RAX,RSI
TEST R8,R8
JLE 0x0019318f
MOV R15,R8
MOV R14,RCX
MOV RBX,qword ptr [RBP + -0x30]
ADD R12,RBX
ADD R15,RCX
LAB_00193108:
CMP R13D,0x2
JC 0x0019312a
MOV RDI,qword ptr [RBP + -0x40]
MOV RAX,qword ptr [RDI + 0xb8]
MOV RSI,R14
MOV RDX,R15
CALL qword ptr [RAX + 0xc0]
CMP EAX,0x2
JGE 0x0019314f
LAB_0019312a:
MOV CL,byte ptr [R14]
CMP CL,0x27
JNZ 0x00193142
LEA RAX,[RBX + 0x2]
CMP RAX,R12
JA 0x00193185
MOV word ptr [RBX],0x2727
JMP 0x00193178
LAB_00193142:
LEA RAX,[RBX + 0x1]
CMP RAX,R12
JA 0x00193185
MOV byte ptr [RBX],CL
JMP 0x00193178
LAB_0019314f:
MOV ECX,EAX
MOV EAX,EAX
ADD RAX,RBX
CMP RAX,R12
JA 0x00193185
DEC R14
MOV RDX,R14
LAB_00193161:
LEA R14,[RDX + 0x1]
LEA RAX,[RBX + 0x1]
MOV DL,byte ptr [RDX + 0x1]
MOV byte ptr [RBX],DL
MOV RDX,R14
MOV RBX,RAX
DEC ECX
JNZ 0x00193161
LAB_00193178:
INC R14
MOV RBX,RAX
CMP R14,R15
JC 0x00193108
JMP 0x0019318f
LAB_00193185:
MOV RAX,qword ptr [RBP + -0x38]
MOV byte ptr [RAX],0x1
MOV RAX,RBX
LAB_0019318f:
MOV byte ptr [RAX],0x0
SUB RAX,qword ptr [RBP + -0x30]
ADD RSP,0x18
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
|
long escape_quotes_for_mysql
(long param_1,char *param_2,long param_3,char *param_4,long param_5,
int1 *param_6)
{
uint uVar1;
uint uVar2;
char *pcVar3;
char *pcVar4;
char *pcVar5;
long lVar6;
char *pcVar7;
char *pcVar8;
lVar6 = param_3 + -1;
if (param_3 == 0) {
lVar6 = param_5 * 2;
}
uVar1 = *(uint *)(param_1 + 0x9c);
*param_6 = 0;
pcVar3 = param_2;
if (0 < param_5) {
pcVar7 = param_2 + lVar6;
pcVar8 = param_4 + param_5;
pcVar5 = param_2;
do {
if ((uVar1 < 2) ||
(uVar2 = (**(code **)(*(long *)(param_1 + 0xb8) + 0xc0))(param_1,param_4,pcVar8),
(int)uVar2 < 2)) {
if (*param_4 == '\'') {
pcVar3 = pcVar5 + 2;
if (pcVar7 < pcVar3) {
LAB_00193185:
*param_6 = 1;
pcVar3 = pcVar5;
break;
}
pcVar5[0] = '\'';
pcVar5[1] = '\'';
}
else {
pcVar3 = pcVar5 + 1;
if (pcVar7 < pcVar3) goto LAB_00193185;
*pcVar5 = *param_4;
}
}
else {
if (pcVar7 < pcVar5 + uVar2) goto LAB_00193185;
pcVar4 = param_4 + -1;
do {
param_4 = pcVar4 + 1;
pcVar3 = pcVar5 + 1;
*pcVar5 = pcVar4[1];
uVar2 = uVar2 - 1;
pcVar4 = param_4;
pcVar5 = pcVar3;
} while (uVar2 != 0);
}
param_4 = param_4 + 1;
pcVar5 = pcVar3;
} while (param_4 < pcVar8);
}
*pcVar3 = '\0';
return (long)pcVar3 - (long)param_2;
}
| |
42,626 | translog_purge_at_flush | eloqsql/storage/maria/ma_loghandler.c | my_bool translog_purge_at_flush()
{
uint32 i, min_file;
int rc= 0;
DBUG_ENTER("translog_purge_at_flush");
DBUG_ASSERT(translog_status == TRANSLOG_OK ||
translog_status == TRANSLOG_READONLY);
if (unlikely(translog_status == TRANSLOG_READONLY))
{
DBUG_PRINT("info", ("The log is read only => exit"));
DBUG_RETURN(0);
}
if (log_purge_type != TRANSLOG_PURGE_ONDEMAND)
{
DBUG_PRINT("info", ("It is not \"at_flush\" => exit"));
DBUG_RETURN(0);
}
mysql_mutex_lock(&log_descriptor.purger_lock);
if (unlikely(log_descriptor.min_need_file == 0 || log_purge_disabled))
{
DBUG_PRINT("info", ("No info about min need file => exit"));
mysql_mutex_unlock(&log_descriptor.purger_lock);
DBUG_RETURN(0);
}
min_file= translog_first_file(translog_get_horizon(), 1);
DBUG_ASSERT(min_file != 0); /* log is already started */
for(i= min_file; i < log_descriptor.min_need_file && rc == 0; i++)
{
char path[FN_REFLEN], *file_name;
DBUG_PRINT("info", ("purge file %lu\n", (ulong) i));
file_name= translog_filename_by_fileno(i, path);
rc= MY_TEST(mysql_file_delete(key_file_translog,
file_name, MYF(MY_WME)));
}
mysql_mutex_unlock(&log_descriptor.purger_lock);
DBUG_RETURN(rc);
} | O3 | c | translog_purge_at_flush:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x268, %rsp # imm = 0x268
movq %fs:0x28, %rax
movq %rax, -0x30(%rbp)
xorl %ebx, %ebx
cmpl $0x2, 0x39c2e0(%rip) # 0x40ac50
je 0x6ea86
cmpq $0x2, 0x39c2ba(%rip) # 0x40ac38
jne 0x6ea86
cmpq $0x0, 0xb9e394(%rip) # 0xc0cd20
jne 0x6eaa9
leaq 0xb9e347(%rip), %rdi # 0xc0cce0
callq 0x2a200
cmpl $0x0, 0xb9e333(%rip) # 0xc0ccd8
je 0x6eab3
cmpl $0x0, 0x39c27e(%rip) # 0x40ac30
jne 0x6eab3
callq 0x6cab4
movq %rax, %rdi
movl $0x1, %esi
callq 0x6af3c
cmpl 0xb9e308(%rip), %eax # 0xc0ccd8
jae 0x6ea65
movl %eax, %ebx
leaq -0x230(%rbp), %r14
leaq 0x325072(%rip), %r13 # 0x393a58
leaq -0x288(%rbp), %r15
leaq -0x240(%rbp), %r12
movl %ebx, %edi
movq %r14, %rsi
callq 0x6961d
leaq 0x39bdaf(%rip), %rax # 0x40a7b4
movl (%rax), %esi
movq (%r13), %rax
movq %r15, %rdi
movl $0xe, %edx
movq %r14, %rcx
movq %r12, %r8
callq *0x148(%rax)
movq %rax, -0x240(%rbp)
testq %rax, %rax
jne 0x6ea48
movl $0x10, %esi
movq %r14, %rdi
callq 0xa59bc
incl %ebx
cmpl 0xb9e298(%rip), %ebx # 0xc0ccd8
jae 0x6ea69
testl %eax, %eax
je 0x6e9f4
jmp 0x6ea69
movq %rax, %rdi
movq %r14, %rsi
movq %r12, %rdx
leaq -0x234(%rbp), %rcx
callq 0x2e203
movl -0x234(%rbp), %eax
jmp 0x6ea38
xorl %ebx, %ebx
jmp 0x6ea6e
testl %eax, %eax
setne %bl
movq 0xb9e2ab(%rip), %rdi # 0xc0cd20
testq %rdi, %rdi
jne 0x6eabc
leaq 0xb9e25f(%rip), %rdi # 0xc0cce0
callq 0x2a1d0
movq %fs:0x28, %rax
cmpq -0x30(%rbp), %rax
jne 0x6eace
movl %ebx, %eax
addq $0x268, %rsp # imm = 0x268
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
callq 0x2e1e6
jmp 0x6e99e
callq 0x2e25a
xorl %ebx, %ebx
jmp 0x6ea86
leaq 0x324f95(%rip), %rax # 0x393a58
movq (%rax), %rax
callq *0x160(%rax)
jmp 0x6ea7a
callq 0x2a250
| translog_purge_at_flush:
push rbp
mov rbp, rsp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 268h
mov rax, fs:28h
mov [rbp+var_30], rax
xor ebx, ebx
cmp cs:translog_status, 2
jz loc_6EA86
cmp cs:log_purge_type, 2
jnz loc_6EA86
cmp cs:qword_C0CD20, 0
jnz loc_6EAA9
lea rdi, unk_C0CCE0
call _pthread_mutex_lock
loc_6E99E:
cmp dword ptr cs:qword_C0CCD8, 0
jz loc_6EAB3
cmp cs:log_purge_disabled, 0
jnz loc_6EAB3
call translog_get_horizon
mov rdi, rax
mov esi, 1
call translog_first_file
cmp eax, dword ptr cs:qword_C0CCD8
jnb loc_6EA65
mov ebx, eax
lea r14, [rbp+var_230]
lea r13, PSI_server
lea r15, [rbp+var_288]
lea r12, [rbp+var_240]
loc_6E9F4:
mov edi, ebx
mov rsi, r14
call translog_filename_by_fileno
lea rax, key_file_translog
mov esi, [rax]
mov rax, [r13+0]
mov rdi, r15
mov edx, 0Eh
mov rcx, r14
mov r8, r12
call qword ptr [rax+148h]
mov [rbp+var_240], rax
test rax, rax
jnz short loc_6EA48
mov esi, 10h
mov rdi, r14
call my_delete
loc_6EA38:
inc ebx
cmp ebx, dword ptr cs:qword_C0CCD8
jnb short loc_6EA69
test eax, eax
jz short loc_6E9F4
jmp short loc_6EA69
loc_6EA48:
mov rdi, rax
mov rsi, r14
mov rdx, r12
lea rcx, [rbp+var_234]
call translog_purge_at_flush_cold_2
mov eax, [rbp+var_234]
jmp short loc_6EA38
loc_6EA65:
xor ebx, ebx
jmp short loc_6EA6E
loc_6EA69:
test eax, eax
setnz bl
loc_6EA6E:
mov rdi, cs:qword_C0CD20
test rdi, rdi
jnz short loc_6EABC
loc_6EA7A:
lea rdi, unk_C0CCE0
call _pthread_mutex_unlock
loc_6EA86:
mov rax, fs:28h
cmp rax, [rbp+var_30]
jnz short loc_6EACE
mov eax, ebx
add rsp, 268h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
loc_6EAA9:
call translog_purge_at_flush_cold_1
jmp loc_6E99E
loc_6EAB3:
call translog_purge_at_flush_cold_3
xor ebx, ebx
jmp short loc_6EA86
loc_6EABC:
lea rax, PSI_server
mov rax, [rax]
call qword ptr [rax+160h]
jmp short loc_6EA7A
loc_6EACE:
call ___stack_chk_fail
| long long translog_purge_at_flush()
{
unsigned int v0; // ebx
unsigned long long horizon; // rax
unsigned int file; // eax
long long v3; // rdx
long long v4; // rcx
int v5; // r8d
int v6; // r9d
long long v7; // rax
unsigned int v8; // eax
_BYTE v10[72]; // [rsp+8h] [rbp-288h] BYREF
long long v11; // [rsp+50h] [rbp-240h] BYREF
unsigned int v12; // [rsp+5Ch] [rbp-234h] BYREF
_BYTE v13[512]; // [rsp+60h] [rbp-230h] BYREF
unsigned long long v14; // [rsp+260h] [rbp-30h]
v14 = __readfsqword(0x28u);
v0 = 0;
if ( translog_status != 2 && log_purge_type == 2 )
{
if ( qword_C0CD20 )
translog_purge_at_flush_cold_1();
else
pthread_mutex_lock(&unk_C0CCE0);
if ( !(_DWORD)qword_C0CCD8 || log_purge_disabled )
{
translog_purge_at_flush_cold_3();
return 0;
}
else
{
horizon = translog_get_horizon();
file = translog_first_file(horizon, 1);
if ( file >= (unsigned int)qword_C0CCD8 )
{
v0 = 0;
}
else
{
v0 = file;
do
{
translog_filename_by_fileno(v0, (long long)v13, v3, v4, v5, v6);
v7 = ((long long ( *)(_BYTE *, _QWORD, long long, _BYTE *, long long *))PSI_server[41])(
v10,
key_file_translog,
14LL,
v13,
&v11);
v11 = v7;
if ( v7 )
{
translog_purge_at_flush_cold_2(v7, (long long)v13, &v11, &v12);
v8 = v12;
}
else
{
v8 = my_delete(v13, 16LL);
}
++v0;
}
while ( v0 < (unsigned int)qword_C0CCD8 && !v8 );
LOBYTE(v0) = v8 != 0;
}
if ( qword_C0CD20 )
PSI_server[44]();
pthread_mutex_unlock(&unk_C0CCE0);
}
}
return v0;
}
| translog_purge_at_flush:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x268
MOV RAX,qword ptr FS:[0x28]
MOV qword ptr [RBP + -0x30],RAX
XOR EBX,EBX
CMP dword ptr [0x0050ac50],0x2
JZ 0x0016ea86
CMP qword ptr [0x0050ac38],0x2
JNZ 0x0016ea86
CMP qword ptr [0x00d0cd20],0x0
JNZ 0x0016eaa9
LEA RDI,[0xd0cce0]
CALL 0x0012a200
LAB_0016e99e:
CMP dword ptr [0x00d0ccd8],0x0
JZ 0x0016eab3
CMP dword ptr [0x0050ac30],0x0
JNZ 0x0016eab3
CALL 0x0016cab4
MOV RDI,RAX
MOV ESI,0x1
CALL 0x0016af3c
CMP EAX,dword ptr [0x00d0ccd8]
JNC 0x0016ea65
MOV EBX,EAX
LEA R14,[RBP + -0x230]
LEA R13,[0x493a58]
LEA R15,[RBP + -0x288]
LEA R12,[RBP + -0x240]
LAB_0016e9f4:
MOV EDI,EBX
MOV RSI,R14
CALL 0x0016961d
LEA RAX,[0x50a7b4]
MOV ESI,dword ptr [RAX]
MOV RAX,qword ptr [R13]
MOV RDI,R15
MOV EDX,0xe
MOV RCX,R14
MOV R8,R12
CALL qword ptr [RAX + 0x148]
MOV qword ptr [RBP + -0x240],RAX
TEST RAX,RAX
JNZ 0x0016ea48
MOV ESI,0x10
MOV RDI,R14
CALL 0x001a59bc
LAB_0016ea38:
INC EBX
CMP EBX,dword ptr [0x00d0ccd8]
JNC 0x0016ea69
TEST EAX,EAX
JZ 0x0016e9f4
JMP 0x0016ea69
LAB_0016ea48:
MOV RDI,RAX
MOV RSI,R14
MOV RDX,R12
LEA RCX,[RBP + -0x234]
CALL 0x0012e203
MOV EAX,dword ptr [RBP + -0x234]
JMP 0x0016ea38
LAB_0016ea65:
XOR EBX,EBX
JMP 0x0016ea6e
LAB_0016ea69:
TEST EAX,EAX
SETNZ BL
LAB_0016ea6e:
MOV RDI,qword ptr [0x00d0cd20]
TEST RDI,RDI
JNZ 0x0016eabc
LAB_0016ea7a:
LEA RDI,[0xd0cce0]
CALL 0x0012a1d0
LAB_0016ea86:
MOV RAX,qword ptr FS:[0x28]
CMP RAX,qword ptr [RBP + -0x30]
JNZ 0x0016eace
MOV EAX,EBX
ADD RSP,0x268
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
LAB_0016eaa9:
CALL 0x0012e1e6
JMP 0x0016e99e
LAB_0016eab3:
CALL 0x0012e25a
XOR EBX,EBX
JMP 0x0016ea86
LAB_0016eabc:
LEA RAX,[0x493a58]
MOV RAX,qword ptr [RAX]
CALL qword ptr [RAX + 0x160]
JMP 0x0016ea7a
LAB_0016eace:
CALL 0x0012a250
|
int4 translog_purge_at_flush(void)
{
uint uVar1;
int iVar2;
int8 uVar3;
int4 uVar4;
long in_FS_OFFSET;
int1 local_290 [72];
long local_248;
int local_23c;
int1 local_238 [512];
long local_38;
local_38 = *(long *)(in_FS_OFFSET + 0x28);
uVar4 = 0;
if ((translog_status != 2) && (log_purge_type == 2)) {
if (DAT_00d0cd20 == 0) {
pthread_mutex_lock((pthread_mutex_t *)&DAT_00d0cce0);
}
else {
translog_purge_at_flush_cold_1();
}
if ((DAT_00d0ccd8 == 0) || (log_purge_disabled != 0)) {
translog_purge_at_flush_cold_3();
uVar4 = 0;
}
else {
uVar3 = translog_get_horizon();
uVar1 = translog_first_file(uVar3,1);
if (uVar1 < DAT_00d0ccd8) {
do {
translog_filename_by_fileno(uVar1,local_238);
local_248 = (**(code **)(PSI_server + 0x148))
(local_290,key_file_translog,0xe,local_238,&local_248);
if (local_248 == 0) {
iVar2 = my_delete(local_238,0x10);
}
else {
translog_purge_at_flush_cold_2(local_248,local_238,&local_248,&local_23c);
iVar2 = local_23c;
}
uVar1 = uVar1 + 1;
} while ((uVar1 < DAT_00d0ccd8) && (iVar2 == 0));
uVar4 = CONCAT31((int3)(uVar1 >> 8),iVar2 != 0);
}
else {
uVar4 = 0;
}
if (DAT_00d0cd20 != 0) {
(**(code **)(PSI_server + 0x160))();
}
pthread_mutex_unlock((pthread_mutex_t *)&DAT_00d0cce0);
}
}
if (*(long *)(in_FS_OFFSET + 0x28) != local_38) {
/* WARNING: Subroutine does not return */
__stack_chk_fail();
}
return uVar4;
}
| |
42,627 | my_wc_mb_utf8mb4_no_range | eloqsql/strings/ctype-utf8.c | static int
my_wc_mb_utf8mb4_no_range(CHARSET_INFO *cs __attribute__((unused)),
my_wc_t wc, uchar *r)
{
int count;
if (wc < 0x80)
count= 1;
else if (wc < 0x800)
count= 2;
else if (wc < 0x10000)
count= 3;
else if (wc < 0x200000)
count= 4;
else
return MY_CS_ILUNI;
switch (count)
{
case 4: r[3]= (uchar) (0x80 | (wc & 0x3f)); wc= wc >> 6; wc |= 0x10000;
/* fall through */
case 3: r[2]= (uchar) (0x80 | (wc & 0x3f)); wc= wc >> 6; wc |= 0x800;
/* fall through */
case 2: r[1]= (uchar) (0x80 | (wc & 0x3f)); wc= wc >> 6; wc |= 0xc0;
/* fall through */
case 1: r[0]= (uchar) wc;
}
return count;
} | O3 | c | my_wc_mb_utf8mb4_no_range:
pushq %rbp
movq %rsp, %rbp
movl $0x1, %eax
cmpq $0x80, %rdi
jb 0xd2189
movl $0x2, %eax
cmpq $0x800, %rdi # imm = 0x800
jb 0xd2173
movl $0x3, %eax
cmpq $0x10000, %rdi # imm = 0x10000
jb 0xd215d
xorl %eax, %eax
cmpq $0x1fffff, %rdi # imm = 0x1FFFFF
ja 0xd218c
movl %edi, %eax
andb $0x3f, %al
orb $-0x80, %al
movb %al, 0x3(%rsi)
shrq $0x6, %rdi
orq $0x10000, %rdi # imm = 0x10000
movl $0x4, %eax
movl %edi, %ecx
andb $0x3f, %cl
orb $-0x80, %cl
movb %cl, 0x2(%rsi)
shrq $0x6, %rdi
orq $0x800, %rdi # imm = 0x800
movl %edi, %ecx
andb $0x3f, %cl
orb $-0x80, %cl
movb %cl, 0x1(%rsi)
shrq $0x6, %rdi
orq $0xc0, %rdi
movb %dil, (%rsi)
popq %rbp
retq
| my_wc_mb_utf8mb4_no_range:
push rbp
mov rbp, rsp
mov eax, 1
cmp rdi, 80h
jb short loc_D2189
mov eax, 2
cmp rdi, 800h
jb short loc_D2173
mov eax, 3
cmp rdi, offset stru_10000
jb short loc_D215D
xor eax, eax
cmp rdi, offset unk_1FFFFF
ja short loc_D218C
mov eax, edi
and al, 3Fh
or al, 80h
mov [rsi+3], al
shr rdi, 6
or rdi, 10000h
mov eax, 4
loc_D215D:
mov ecx, edi
and cl, 3Fh
or cl, 80h
mov [rsi+2], cl
shr rdi, 6
or rdi, 800h
loc_D2173:
mov ecx, edi
and cl, 3Fh
or cl, 80h
mov [rsi+1], cl
shr rdi, 6
or rdi, 0C0h
loc_D2189:
mov [rsi], dil
loc_D218C:
pop rbp
retn
| long long my_wc_mb_utf8mb4_no_range(unsigned long long a1, _BYTE *a2)
{
long long result; // rax
result = 1LL;
if ( a1 >= 0x80 )
{
result = 2LL;
if ( a1 >= 0x800 )
{
result = 3LL;
if ( a1 >= (unsigned long long)&stru_10000 )
{
result = 0LL;
if ( a1 > (unsigned long long)&unk_1FFFFF )
return result;
a2[3] = a1 & 0x3F | 0x80;
a1 = (a1 >> 6) | 0x10000;
result = 4LL;
}
a2[2] = a1 & 0x3F | 0x80;
a1 = (a1 >> 6) | 0x800;
}
a2[1] = a1 & 0x3F | 0x80;
a1 = (a1 >> 6) | 0xC0;
}
*a2 = a1;
return result;
}
| my_wc_mb_utf8mb4_no_range:
PUSH RBP
MOV RBP,RSP
MOV EAX,0x1
CMP RDI,0x80
JC 0x001d2189
MOV EAX,0x2
CMP RDI,0x800
JC 0x001d2173
MOV EAX,0x3
CMP RDI,0x10000
JC 0x001d215d
XOR EAX,EAX
CMP RDI,0x1fffff
JA 0x001d218c
MOV EAX,EDI
AND AL,0x3f
OR AL,0x80
MOV byte ptr [RSI + 0x3],AL
SHR RDI,0x6
OR RDI,0x10000
MOV EAX,0x4
LAB_001d215d:
MOV ECX,EDI
AND CL,0x3f
OR CL,0x80
MOV byte ptr [RSI + 0x2],CL
SHR RDI,0x6
OR RDI,0x800
LAB_001d2173:
MOV ECX,EDI
AND CL,0x3f
OR CL,0x80
MOV byte ptr [RSI + 0x1],CL
SHR RDI,0x6
OR RDI,0xc0
LAB_001d2189:
MOV byte ptr [RSI],DIL
LAB_001d218c:
POP RBP
RET
|
int8 my_wc_mb_utf8mb4_no_range(ulong param_1,int1 *param_2)
{
int8 uVar1;
uVar1 = 1;
if (0x7f < param_1) {
uVar1 = 2;
if (0x7ff < param_1) {
uVar1 = 3;
if (0xffff < param_1) {
if (0x1fffff < param_1) {
return 0;
}
param_2[3] = (byte)param_1 & 0x3f | 0x80;
param_1 = param_1 >> 6 | 0x10000;
uVar1 = 4;
}
param_2[2] = (byte)param_1 & 0x3f | 0x80;
param_1 = param_1 >> 6 | 0x800;
}
param_2[1] = (byte)param_1 & 0x3f | 0x80;
param_1 = param_1 >> 6 | 0xc0;
}
*param_2 = (char)param_1;
return uVar1;
}
| |
42,628 | js_regexp_string_iterator_mark | bluesky950520[P]quickjs/quickjs.c | static void js_regexp_string_iterator_mark(JSRuntime *rt, JSValue val,
JS_MarkFunc *mark_func)
{
JSObject *p = JS_VALUE_GET_OBJ(val);
JSRegExpStringIteratorData *it = p->u.regexp_string_iterator_data;
if (it) {
JS_MarkValue(rt, it->iterating_regexp, mark_func);
JS_MarkValue(rt, it->iterated_string, mark_func);
}
} | O1 | c | js_regexp_string_iterator_mark:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq 0x30(%rsi), %r15
testq %r15, %r15
je 0x3a744
movq %rcx, %rbx
movq %rdi, %r14
movl $0xfffffffe, %r12d # imm = 0xFFFFFFFE
movsd (%r15), %xmm0
movl 0x8(%r15), %eax
movsd %xmm0, (%rsp)
andl $-0x2, %eax
cmpl %r12d, %eax
jne 0x3a724
movq (%rsp), %rsi
movq %r14, %rdi
callq *%rbx
movsd 0x10(%r15), %xmm0
movl 0x18(%r15), %eax
movsd %xmm0, (%rsp)
andl $-0x2, %eax
cmpl %r12d, %eax
jne 0x3a744
movq (%rsp), %rsi
movq %r14, %rdi
callq *%rbx
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
| js_regexp_string_iterator_mark:
push r15
push r14
push r12
push rbx
push rax
mov r15, [rsi+30h]
test r15, r15
jz short loc_3A744
mov rbx, rcx
mov r14, rdi
mov r12d, 0FFFFFFFEh
movsd xmm0, qword ptr [r15]
mov eax, [r15+8]
movsd [rsp+28h+var_28], xmm0
and eax, 0FFFFFFFEh
cmp eax, r12d
jnz short loc_3A724
mov rsi, [rsp+28h+var_28]
mov rdi, r14
call rbx
loc_3A724:
movsd xmm0, qword ptr [r15+10h]
mov eax, [r15+18h]
movsd [rsp+28h+var_28], xmm0
and eax, 0FFFFFFFEh
cmp eax, r12d
jnz short loc_3A744
mov rsi, [rsp+28h+var_28]
mov rdi, r14
call rbx
loc_3A744:
add rsp, 8
pop rbx
pop r12
pop r14
pop r15
retn
| long long js_regexp_string_iterator_mark(
long long a1,
long long a2,
long long a3,
void ( *a4)(long long, _QWORD))
{
long long v4; // r15
long long result; // rax
v4 = *(_QWORD *)(a2 + 48);
if ( v4 )
{
if ( (*(_DWORD *)(v4 + 8) & 0xFFFFFFFE) == 0xFFFFFFFE )
a4(a1, *(_QWORD *)v4);
result = *(_DWORD *)(v4 + 24) & 0xFFFFFFFE;
if ( (_DWORD)result == -2 )
return ((long long ( *)(long long, _QWORD))a4)(a1, *(_QWORD *)(v4 + 16));
}
return result;
}
| js_regexp_string_iterator_mark:
PUSH R15
PUSH R14
PUSH R12
PUSH RBX
PUSH RAX
MOV R15,qword ptr [RSI + 0x30]
TEST R15,R15
JZ 0x0013a744
MOV RBX,RCX
MOV R14,RDI
MOV R12D,0xfffffffe
MOVSD XMM0,qword ptr [R15]
MOV EAX,dword ptr [R15 + 0x8]
MOVSD qword ptr [RSP],XMM0
AND EAX,0xfffffffe
CMP EAX,R12D
JNZ 0x0013a724
MOV RSI,qword ptr [RSP]
MOV RDI,R14
CALL RBX
LAB_0013a724:
MOVSD XMM0,qword ptr [R15 + 0x10]
MOV EAX,dword ptr [R15 + 0x18]
MOVSD qword ptr [RSP],XMM0
AND EAX,0xfffffffe
CMP EAX,R12D
JNZ 0x0013a744
MOV RSI,qword ptr [RSP]
MOV RDI,R14
CALL RBX
LAB_0013a744:
ADD RSP,0x8
POP RBX
POP R12
POP R14
POP R15
RET
|
void js_regexp_string_iterator_mark
(int8 param_1,long param_2,int8 param_3,code *param_4)
{
int8 *puVar1;
puVar1 = *(int8 **)(param_2 + 0x30);
if (puVar1 != (int8 *)0x0) {
if ((*(uint *)(puVar1 + 1) & 0xfffffffe) == 0xfffffffe) {
(*param_4)(param_1,*puVar1);
}
if ((*(uint *)(puVar1 + 3) & 0xfffffffe) == 0xfffffffe) {
(*param_4)(param_1,puVar1[2]);
}
}
return;
}
| |
42,629 | js_regexp_string_iterator_mark | bluesky950520[P]quickjs/quickjs.c | static void js_regexp_string_iterator_mark(JSRuntime *rt, JSValue val,
JS_MarkFunc *mark_func)
{
JSObject *p = JS_VALUE_GET_OBJ(val);
JSRegExpStringIteratorData *it = p->u.regexp_string_iterator_data;
if (it) {
JS_MarkValue(rt, it->iterating_regexp, mark_func);
JS_MarkValue(rt, it->iterated_string, mark_func);
}
} | O2 | c | js_regexp_string_iterator_mark:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq 0x30(%rsi), %r14
testq %r14, %r14
je 0x335f4
movq %rdi, %rbx
movl $0xfffffffe, %r15d # imm = 0xFFFFFFFE
movl 0x8(%r14), %eax
andl $-0x2, %eax
cmpl %r15d, %eax
jne 0x335d4
movq (%r14), %rsi
movq %rbx, %rdi
movq %rcx, %r12
callq *%rcx
movq %r12, %rcx
movl 0x18(%r14), %eax
andl $-0x2, %eax
cmpl %r15d, %eax
jne 0x335f4
movq 0x10(%r14), %rsi
movq %rbx, %rdi
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_regexp_string_iterator_mark:
push r15
push r14
push r12
push rbx
push rax
mov r14, [rsi+30h]
test r14, r14
jz short loc_335F4
mov rbx, rdi
mov r15d, 0FFFFFFFEh
mov eax, [r14+8]
and eax, 0FFFFFFFEh
cmp eax, r15d
jnz short loc_335D4
mov rsi, [r14]
mov rdi, rbx
mov r12, rcx
call rcx
mov rcx, r12
loc_335D4:
mov eax, [r14+18h]
and eax, 0FFFFFFFEh
cmp eax, r15d
jnz short loc_335F4
mov rsi, [r14+10h]
mov rdi, rbx
add rsp, 8
pop rbx
pop r12
pop r14
pop r15
jmp rcx
loc_335F4:
add rsp, 8
pop rbx
pop r12
pop r14
pop r15
retn
| long long js_regexp_string_iterator_mark(
long long a1,
long long a2,
long long a3,
void ( *a4)(_QWORD, _QWORD))
{
long long v4; // r14
void ( *v5)(_QWORD, _QWORD); // r12
long long result; // rax
v4 = *(_QWORD *)(a2 + 48);
if ( v4 )
{
if ( (*(_DWORD *)(v4 + 8) & 0xFFFFFFFE) == 0xFFFFFFFE )
{
v5 = a4;
a4(a1, *(_QWORD *)v4);
a4 = v5;
}
result = *(_DWORD *)(v4 + 24) & 0xFFFFFFFE;
if ( (_DWORD)result == -2 )
return ((long long ( *)(long long, _QWORD))a4)(a1, *(_QWORD *)(v4 + 16));
}
return result;
}
| js_regexp_string_iterator_mark:
PUSH R15
PUSH R14
PUSH R12
PUSH RBX
PUSH RAX
MOV R14,qword ptr [RSI + 0x30]
TEST R14,R14
JZ 0x001335f4
MOV RBX,RDI
MOV R15D,0xfffffffe
MOV EAX,dword ptr [R14 + 0x8]
AND EAX,0xfffffffe
CMP EAX,R15D
JNZ 0x001335d4
MOV RSI,qword ptr [R14]
MOV RDI,RBX
MOV R12,RCX
CALL RCX
MOV RCX,R12
LAB_001335d4:
MOV EAX,dword ptr [R14 + 0x18]
AND EAX,0xfffffffe
CMP EAX,R15D
JNZ 0x001335f4
MOV RSI,qword ptr [R14 + 0x10]
MOV RDI,RBX
ADD RSP,0x8
POP RBX
POP R12
POP R14
POP R15
JMP RCX
LAB_001335f4:
ADD RSP,0x8
POP RBX
POP R12
POP R14
POP R15
RET
|
void js_regexp_string_iterator_mark
(int8 param_1,long param_2,int8 param_3,code *UNRECOVERED_JUMPTABLE)
{
int8 *puVar1;
int8 extraout_RDX;
puVar1 = *(int8 **)(param_2 + 0x30);
if (puVar1 != (int8 *)0x0) {
if ((*(uint *)(puVar1 + 1) & 0xfffffffe) == 0xfffffffe) {
(*UNRECOVERED_JUMPTABLE)(param_1,*puVar1);
param_3 = extraout_RDX;
}
if ((*(uint *)(puVar1 + 3) & 0xfffffffe) == 0xfffffffe) {
/* WARNING: Could not recover jumptable at 0x001335f2. Too many branches */
/* WARNING: Treating indirect jump as call */
(*UNRECOVERED_JUMPTABLE)(param_1,puVar1[2],param_3,UNRECOVERED_JUMPTABLE);
return;
}
}
return;
}
| |
42,630 | minja::Parser::parseMathMulDiv() | monkey531[P]llama/common/minja.hpp | std::shared_ptr<Expression> parseMathMulDiv() {
auto left = parseMathUnaryPlusMinus();
if (!left) throw std::runtime_error("Expected left side of 'math mul/div' expression");
static std::regex mul_div_tok(R"(\*\*?|//?|%(?!\}))");
std::string op_str;
while (!(op_str = consumeToken(mul_div_tok)).empty()) {
auto right = parseMathUnaryPlusMinus();
if (!right) throw std::runtime_error("Expected right side of 'math mul/div' expression");
auto op = op_str == "*" ? BinaryOpExpr::Op::Mul
: op_str == "**" ? BinaryOpExpr::Op::MulMul
: op_str == "/" ? BinaryOpExpr::Op::Div
: op_str == "//" ? BinaryOpExpr::Op::DivDiv
: BinaryOpExpr::Op::Mod;
left = std::make_shared<BinaryOpExpr>(get_location(), std::move(left), std::move(right), op);
}
if (!consumeToken("|").empty()) {
auto expr = parseMathMulDiv();
if (auto filter = dynamic_cast<FilterExpr*>(expr.get())) {
filter->prepend(std::move(left));
return expr;
} else {
std::vector<std::shared_ptr<Expression>> parts;
parts.emplace_back(std::move(left));
parts.emplace_back(std::move(expr));
return std::make_shared<FilterExpr>(get_location(), std::move(parts));
}
}
return left;
} | O2 | cpp | minja::Parser::parseMathMulDiv():
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xa8, %rsp
movq %rsi, %r14
movq %rdi, 0x28(%rsp)
leaq 0x10(%rsp), %rbx
movq %rbx, %rdi
callq 0x6471a
cmpq $0x0, (%rbx)
je 0x645e0
leaq 0x98ddb(%rip), %rax # 0xfd0f0
movb (%rax), %al
testb %al, %al
je 0x64610
leaq 0x98(%rsp), %rax
movq %rax, -0x10(%rax)
andq $0x0, -0x8(%rax)
movb $0x0, (%rax)
leaq 0x50(%rsp), %rbx
leaq 0x88(%rsp), %r12
leaq 0x30(%rsp), %r13
movq %rsp, %rbp
movq %rbp, %r15
movq %rbx, %rdi
movq %r14, %rsi
leaq 0x98d78(%rip), %rdx # 0xfd0d0
pushq $0x1
popq %rcx
callq 0x604c0
movq %r12, %rdi
movq %rbx, %rsi
callq 0x23ac0
movq 0x8(%rax), %rbp
movq %rbx, %rdi
callq 0x241b8
testq %rbp, %rbp
je 0x64449
movq %r13, %rdi
movq %r14, %rsi
callq 0x6471a
cmpq $0x0, 0x30(%rsp)
je 0x645ae
movq %r15, %rbp
movq %r12, %rdi
leaq 0x55468(%rip), %rsi # 0xb980c
callq 0x391b2
pushq $0x3
popq %rcx
testb %al, %al
jne 0x643f1
movq %r12, %rdi
leaq 0x4eb1b(%rip), %rsi # 0xb2ed5
callq 0x391b2
pushq $0x4
popq %rcx
testb %al, %al
jne 0x643f1
movq %r12, %rdi
leaq 0x5383c(%rip), %rsi # 0xb7c0c
callq 0x391b2
pushq $0x5
popq %rcx
testb %al, %al
jne 0x643f1
movq %r12, %rdi
leaq 0x53822(%rip), %rsi # 0xb7c08
callq 0x391b2
movzbl %al, %ecx
xorl $0x7, %ecx
movl %ecx, 0x70(%rsp)
movq %rbx, %rdi
movq %r14, %rsi
callq 0x6009c
movq %rbp, %rdi
movq %rbx, %rsi
leaq 0x10(%rsp), %r15
movq %r15, %rdx
movq %r13, %rcx
leaq 0x70(%rsp), %r8
callq 0x63e62
movq %r15, %rdi
movq %rbp, %rsi
callq 0x70ea4
leaq 0x8(%rsp), %rdi
callq 0x4f578
leaq 0x58(%rsp), %rdi
callq 0x4f578
leaq 0x38(%rsp), %rdi
callq 0x4f578
jmp 0x64348
leaq 0x4bfff(%rip), %rsi # 0xb044f
leaq 0x30(%rsp), %rdi
movq %rsp, %rdx
callq 0x2746a
leaq 0x50(%rsp), %rdi
leaq 0x30(%rsp), %rdx
pushq $0x1
popq %rcx
movq %r14, %rsi
callq 0x60acc
leaq 0x50(%rsp), %rdi
movq 0x8(%rdi), %rbx
callq 0x241b8
leaq 0x30(%rsp), %rdi
callq 0x241b8
testq %rbx, %rbx
je 0x64569
movq %rsp, %rdi
movq %r14, %rsi
callq 0x642de
movq 0x28(%rsp), %rbx
movq (%rsp), %rdi
testq %rdi, %rdi
je 0x644e7
leaq 0x95edd(%rip), %rsi # 0xfa390
leaq 0x95f26(%rip), %rdx # 0xfa3e0
xorl %ecx, %ecx
callq 0x239f0
testq %rax, %rax
je 0x644e7
leaq 0x10(%rsp), %rsi
movq %rax, %rdi
callq 0x648e2
movaps (%rsp), %xmm0
andq $0x0, 0x8(%rsp)
movups %xmm0, (%rbx)
andq $0x0, (%rsp)
jmp 0x6455d
xorps %xmm0, %xmm0
leaq 0x50(%rsp), %rdi
movaps %xmm0, (%rdi)
andq $0x0, 0x10(%rdi)
leaq 0x10(%rsp), %rsi
callq 0x648f2
leaq 0x50(%rsp), %rdi
movq %rsp, %rsi
callq 0x648f2
leaq 0x30(%rsp), %rdi
movq %r14, %rsi
callq 0x6009c
leaq 0x70(%rsp), %rdi
leaq 0x30(%rsp), %rsi
leaq 0x50(%rsp), %rdx
callq 0x64936
leaq 0x78(%rsp), %rdi
movaps -0x8(%rdi), %xmm0
andq $0x0, (%rdi)
movups %xmm0, (%rbx)
andq $0x0, -0x8(%rdi)
callq 0x4f578
leaq 0x38(%rsp), %rdi
callq 0x4f578
leaq 0x50(%rsp), %rdi
callq 0x64958
leaq 0x8(%rsp), %rdi
callq 0x4f578
jmp 0x64582
movaps 0x10(%rsp), %xmm0
andq $0x0, 0x18(%rsp)
movq 0x28(%rsp), %rbx
movups %xmm0, (%rbx)
andq $0x0, 0x10(%rsp)
leaq 0x88(%rsp), %rdi
callq 0x241b8
leaq 0x18(%rsp), %rdi
callq 0x4f578
movq %rbx, %rax
addq $0xa8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
pushq $0x10
popq %rdi
callq 0x23450
movq %rax, %r14
leaq 0x4e9fe(%rip), %rsi # 0xb2fbe
movq %rax, %rdi
callq 0x23310
movq 0x97a21(%rip), %rsi # 0xfbff0
movq 0x97982(%rip), %rdx # 0xfbf58
movq %r14, %rdi
callq 0x23ef0
jmp 0x64610
pushq $0x10
popq %rdi
callq 0x23450
movq %rax, %r14
leaq 0x4e98a(%rip), %rsi # 0xb2f7c
movq %rax, %rdi
callq 0x23310
movq 0x979ef(%rip), %rsi # 0xfbff0
movq 0x97950(%rip), %rdx # 0xfbf58
movq %r14, %rdi
callq 0x23ef0
leaq 0x98ad9(%rip), %rdi # 0xfd0f0
callq 0x23ff0
testl %eax, %eax
je 0x6431f
leaq 0x98aa5(%rip), %rdi # 0xfd0d0
leaq 0x4e97a(%rip), %rsi # 0xb2fac
pushq $0x10
popq %rdx
callq 0x460ca
leaq -0x1e351(%rip), %rdi # 0x462f0
leaq 0x98a88(%rip), %rsi # 0xfd0d0
leaq 0x98299(%rip), %rdx # 0xfc8e8
callq 0x237b0
leaq 0x98a95(%rip), %rdi # 0xfd0f0
callq 0x235d0
jmp 0x6431f
movq %rax, %rbx
leaq 0x98a81(%rip), %rdi # 0xfd0f0
callq 0x235c0
jmp 0x64707
movq %rax, %rbx
jmp 0x646b0
movq %rax, %rbx
leaq 0x38(%rsp), %rdi
callq 0x4f578
jmp 0x646a6
jmp 0x646a3
movq %rax, %rbx
jmp 0x64707
movq %rax, %rbx
movq %r14, %rdi
callq 0x23680
jmp 0x64707
jmp 0x646f7
movq %rax, %rbx
leaq 0x50(%rsp), %rdi
callq 0x64958
leaq 0x8(%rsp), %rdi
jmp 0x646ee
movq %rax, %rbx
leaq 0x30(%rsp), %rdi
callq 0x241b8
jmp 0x646fa
jmp 0x646f7
jmp 0x646d7
movq %rax, %rbx
movq %r14, %rdi
callq 0x23680
jmp 0x646e9
movq %rax, %rbx
jmp 0x646e9
movq %rax, %rbx
leaq 0x58(%rsp), %rdi
callq 0x4f578
leaq 0x38(%rsp), %rdi
callq 0x4f578
jmp 0x646fa
jmp 0x646f7
movq %rax, %rbx
leaq 0x88(%rsp), %rdi
callq 0x241b8
leaq 0x18(%rsp), %rdi
callq 0x4f578
movq %rbx, %rdi
callq 0x23f80
nop
| _ZN5minja6Parser15parseMathMulDivEv:
push rbp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 0A8h
mov r14, rsi
mov [rsp+0D8h+var_B0], rdi
lea rbx, [rsp+0D8h+var_C8]
mov rdi, rbx; this
call _ZN5minja6Parser23parseMathUnaryPlusMinusEv; minja::Parser::parseMathUnaryPlusMinus(void)
cmp qword ptr [rbx], 0
jz loc_645E0
lea rax, _ZGVZN5minja6Parser15parseMathMulDivEvE11mul_div_tokB5cxx11; `guard variable for'minja::Parser::parseMathMulDiv(void)::mul_div_tok
mov al, [rax]
test al, al
jz loc_64610
loc_6431F:
lea rax, [rsp+0D8h+var_40]
mov [rax-10h], rax
and qword ptr [rax-8], 0
mov byte ptr [rax], 0
lea rbx, [rsp+0D8h+var_88]
lea r12, [rsp+0D8h+var_50]
lea r13, [rsp+0D8h+var_A8]
mov rbp, rsp
loc_64348:
mov r15, rbp
mov rdi, rbx
mov rsi, r14
lea rdx, _ZZN5minja6Parser15parseMathMulDivEvE11mul_div_tokB5cxx11; minja::Parser::parseMathMulDiv(void)::mul_div_tok
push 1
pop rcx
call _ZN5minja6Parser12consumeTokenERKNSt7__cxx1111basic_regexIcNS1_12regex_traitsIcEEEENS_13SpaceHandlingE; minja::Parser::consumeToken(std::basic_regex<char,std::regex_traits<char>> const&,minja::SpaceHandling)
mov rdi, r12
mov rsi, rbx
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEOS4_; std::string::operator=(std::string&&)
mov rbp, [rax+8]
mov rdi, rbx; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
test rbp, rbp
jz loc_64449
mov rdi, r13; this
mov rsi, r14
call _ZN5minja6Parser23parseMathUnaryPlusMinusEv; minja::Parser::parseMathUnaryPlusMinus(void)
cmp [rsp+0D8h+var_A8], 0
jz loc_645AE
mov rbp, r15
mov rdi, r12
lea rsi, asc_B980B+1; "*"
call _ZSteqIcSt11char_traitsIcESaIcEEbRKNSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_; std::operator==<char>(std::string const&,char const*)
push 3
pop rcx
test al, al
jnz short loc_643F1
mov rdi, r12
lea rsi, asc_B2ED5; "**"
call _ZSteqIcSt11char_traitsIcESaIcEEbRKNSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_; std::operator==<char>(std::string const&,char const*)
push 4
pop rcx
test al, al
jnz short loc_643F1
mov rdi, r12
lea rsi, asc_B7C0B+1; "/"
call _ZSteqIcSt11char_traitsIcESaIcEEbRKNSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_; std::operator==<char>(std::string const&,char const*)
push 5
pop rcx
test al, al
jnz short loc_643F1
mov rdi, r12
lea rsi, aHttps+6; "//"
call _ZSteqIcSt11char_traitsIcESaIcEEbRKNSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_; std::operator==<char>(std::string const&,char const*)
movzx ecx, al
xor ecx, 7
loc_643F1:
mov [rsp+0D8h+var_68], ecx
mov rdi, rbx; this
mov rsi, r14
call _ZNK5minja6Parser12get_locationEv; minja::Parser::get_location(void)
mov rdi, rbp
mov rsi, rbx
lea r15, [rsp+0D8h+var_C8]
mov rdx, r15
mov rcx, r13
lea r8, [rsp+0D8h+var_68]
call _ZSt11make_sharedIN5minja12BinaryOpExprEJNS0_8LocationESt10shared_ptrINS0_10ExpressionEES5_RNS1_2OpEEES3_IT_EDpOT0_; std::make_shared<minja::BinaryOpExpr,minja::Location,std::shared_ptr<minja::Expression>,std::shared_ptr<minja::Expression>,minja::BinaryOpExpr::Op &>(minja::Location,std::shared_ptr<minja::Expression>,std::shared_ptr<minja::Expression>,minja::BinaryOpExpr::Op &)
mov rdi, r15
mov rsi, rbp
call _ZNSt12__shared_ptrIN5minja10ExpressionELN9__gnu_cxx12_Lock_policyE2EEaSINS0_12BinaryOpExprEEENSt9enable_ifIXsr20__sp_compatible_withIPT_PS1_EE5valueERS4_E4typeEOS_IS8_LS3_2EE
lea rdi, [rsp+0D8h+lpsrc+8]
call _ZNSt14__shared_countILN9__gnu_cxx12_Lock_policyE2EED2Ev; std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count()
lea rdi, [rsp+0D8h+var_80]
call _ZNSt14__shared_countILN9__gnu_cxx12_Lock_policyE2EED2Ev; std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count()
lea rdi, [rsp+0D8h+var_A0]
call _ZNSt14__shared_countILN9__gnu_cxx12_Lock_policyE2EED2Ev; std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count()
jmp loc_64348
loc_64449:
lea rsi, asc_B0442+0Dh; "|"
lea rdi, [rsp+0D8h+var_A8]
mov rdx, rsp
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_; std::string::basic_string<std::allocator<char>>(char const*,std::allocator<char> const&)
lea rdi, [rsp+0D8h+var_88]
lea rdx, [rsp+0D8h+var_A8]
push 1
pop rcx
mov rsi, r14
call _ZN5minja6Parser12consumeTokenERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEENS_13SpaceHandlingE; minja::Parser::consumeToken(std::string const&,minja::SpaceHandling)
lea rdi, [rsp+0D8h+var_88]; void *
mov rbx, [rdi+8]
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
lea rdi, [rsp+0D8h+var_A8]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
test rbx, rbx
jz loc_64569
mov rdi, rsp; this
mov rsi, r14
call _ZN5minja6Parser15parseMathMulDivEv; minja::Parser::parseMathMulDiv(void)
mov rbx, [rsp+0D8h+var_B0]
mov rdi, [rsp+0D8h+lpsrc]; lpsrc
test rdi, rdi
jz short loc_644E7
lea rsi, _ZTIN5minja10ExpressionE; lpstype
lea rdx, _ZTIN5minja10FilterExprE; lpdtype
xor ecx, ecx; s2d
call ___dynamic_cast
test rax, rax
jz short loc_644E7
lea rsi, [rsp+0D8h+var_C8]
mov rdi, rax
call _ZN5minja10FilterExpr7prependEOSt10shared_ptrINS_10ExpressionEE; minja::FilterExpr::prepend(std::shared_ptr<minja::Expression> &&)
movaps xmm0, xmmword ptr [rsp+0D8h+lpsrc]
and [rsp+0D8h+lpsrc+8], 0
movups xmmword ptr [rbx], xmm0
and [rsp+0D8h+lpsrc], 0
jmp short loc_6455D
loc_644E7:
xorps xmm0, xmm0
lea rdi, [rsp+0D8h+var_88]
movaps xmmword ptr [rdi], xmm0
and qword ptr [rdi+10h], 0
lea rsi, [rsp+0D8h+var_C8]
call _ZNSt6vectorISt10shared_ptrIN5minja10ExpressionEESaIS3_EE12emplace_backIJS3_EEERS3_DpOT_; std::vector<std::shared_ptr<minja::Expression>>::emplace_back<std::shared_ptr<minja::Expression>>(std::shared_ptr<minja::Expression> &&)
lea rdi, [rsp+0D8h+var_88]
mov rsi, rsp
call _ZNSt6vectorISt10shared_ptrIN5minja10ExpressionEESaIS3_EE12emplace_backIJS3_EEERS3_DpOT_; std::vector<std::shared_ptr<minja::Expression>>::emplace_back<std::shared_ptr<minja::Expression>>(std::shared_ptr<minja::Expression> &&)
lea rdi, [rsp+0D8h+var_A8]; this
mov rsi, r14
call _ZNK5minja6Parser12get_locationEv; minja::Parser::get_location(void)
lea rdi, [rsp+0D8h+var_68]
lea rsi, [rsp+0D8h+var_A8]
lea rdx, [rsp+0D8h+var_88]
call _ZSt11make_sharedIN5minja10FilterExprEJNS0_8LocationESt6vectorISt10shared_ptrINS0_10ExpressionEESaIS6_EEEES4_IT_EDpOT0_; std::make_shared<minja::FilterExpr,minja::Location,std::vector<std::shared_ptr<minja::Expression>>>(minja::Location,std::vector<std::shared_ptr<minja::Expression>> &&)
lea rdi, [rsp+0D8h+var_60]
movaps xmm0, xmmword ptr [rdi-8]
and qword ptr [rdi], 0
movups xmmword ptr [rbx], xmm0
and qword ptr [rdi-8], 0
call _ZNSt14__shared_countILN9__gnu_cxx12_Lock_policyE2EED2Ev; std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count()
lea rdi, [rsp+0D8h+var_A0]
call _ZNSt14__shared_countILN9__gnu_cxx12_Lock_policyE2EED2Ev; std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count()
lea rdi, [rsp+0D8h+var_88]
call _ZNSt6vectorISt10shared_ptrIN5minja10ExpressionEESaIS3_EED2Ev; std::vector<std::shared_ptr<minja::Expression>>::~vector()
loc_6455D:
lea rdi, [rsp+0D8h+lpsrc+8]
call _ZNSt14__shared_countILN9__gnu_cxx12_Lock_policyE2EED2Ev; std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count()
jmp short loc_64582
loc_64569:
movaps xmm0, [rsp+0D8h+var_C8]
and qword ptr [rsp+0D8h+var_C8+8], 0
mov rbx, [rsp+0D8h+var_B0]
movups xmmword ptr [rbx], xmm0
and qword ptr [rsp+0D8h+var_C8], 0
loc_64582:
lea rdi, [rsp+0D8h+var_50]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
lea rdi, [rsp+0D8h+var_C8+8]
call _ZNSt14__shared_countILN9__gnu_cxx12_Lock_policyE2EED2Ev; std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count()
mov rax, rbx
add rsp, 0A8h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
loc_645AE:
push 10h
pop rdi; thrown_size
call ___cxa_allocate_exception
mov r14, rax
lea rsi, aExpectedRightS_5; "Expected right side of 'math mul/div' e"...
mov rdi, rax; this
call __ZNSt13runtime_errorC1EPKc; std::runtime_error::runtime_error(char const*)
mov rsi, cs:_ZTISt13runtime_error_ptr; lptinfo
mov rdx, cs:_ZNSt13runtime_errorD1Ev_ptr; void (*)(void *)
mov rdi, r14; void *
call ___cxa_throw
jmp short loc_64610
loc_645E0:
push 10h
pop rdi; thrown_size
call ___cxa_allocate_exception
mov r14, rax
lea rsi, aExpectedLeftSi_5; "Expected left side of 'math mul/div' ex"...
mov rdi, rax; this
call __ZNSt13runtime_errorC1EPKc; std::runtime_error::runtime_error(char const*)
mov rsi, cs:_ZTISt13runtime_error_ptr; lptinfo
mov rdx, cs:_ZNSt13runtime_errorD1Ev_ptr; void (*)(void *)
mov rdi, r14; void *
call ___cxa_throw
loc_64610:
lea rdi, _ZGVZN5minja6Parser15parseMathMulDivEvE11mul_div_tokB5cxx11; __guard *
call ___cxa_guard_acquire
test eax, eax
jz loc_6431F
lea rdi, _ZZN5minja6Parser15parseMathMulDivEvE11mul_div_tokB5cxx11; minja::Parser::parseMathMulDiv(void)::mul_div_tok
lea rsi, asc_B2FAC; "\\*\\*?|//?|%(?!\\})"
push 10h
pop rdx
call _ZNSt7__cxx1111basic_regexIcNS_12regex_traitsIcEEEC2EPKcNSt15regex_constants18syntax_option_typeE; std::basic_regex<char,std::regex_traits<char>>::basic_regex(char const*,std::regex_constants::syntax_option_type)
lea rdi, _ZNSt7__cxx1111basic_regexIcNS_12regex_traitsIcEEED2Ev; lpfunc
lea rsi, _ZZN5minja6Parser15parseMathMulDivEvE11mul_div_tokB5cxx11; obj
lea rdx, __dso_handle; lpdso_handle
call ___cxa_atexit
lea rdi, _ZGVZN5minja6Parser15parseMathMulDivEvE11mul_div_tokB5cxx11; __guard *
call ___cxa_guard_release
jmp loc_6431F
mov rbx, rax
lea rdi, _ZGVZN5minja6Parser15parseMathMulDivEvE11mul_div_tokB5cxx11; __guard *
call ___cxa_guard_abort
jmp loc_64707
mov rbx, rax
jmp short loc_646B0
mov rbx, rax
lea rdi, [rsp+arg_30]
call _ZNSt14__shared_countILN9__gnu_cxx12_Lock_policyE2EED2Ev; std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count()
jmp short loc_646A6
jmp short loc_646A3
mov rbx, rax
jmp short loc_64707
mov rbx, rax
mov rdi, r14; void *
call ___cxa_free_exception
jmp short loc_64707
jmp short loc_646F7
loc_646A3:
mov rbx, rax
loc_646A6:
lea rdi, [rsp+arg_48]
call _ZNSt6vectorISt10shared_ptrIN5minja10ExpressionEESaIS3_EED2Ev; std::vector<std::shared_ptr<minja::Expression>>::~vector()
loc_646B0:
lea rdi, [rsp+arg_0]
jmp short loc_646EE
mov rbx, rax
lea rdi, [rsp+arg_28]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
jmp short loc_646FA
jmp short loc_646F7
jmp short loc_646D7
mov rbx, rax
mov rdi, r14; void *
call ___cxa_free_exception
jmp short loc_646E9
loc_646D7:
mov rbx, rax
jmp short loc_646E9
mov rbx, rax
lea rdi, [rsp+arg_50]
call _ZNSt14__shared_countILN9__gnu_cxx12_Lock_policyE2EED2Ev; std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count()
loc_646E9:
lea rdi, [rsp+arg_30]
loc_646EE:
call _ZNSt14__shared_countILN9__gnu_cxx12_Lock_policyE2EED2Ev; std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count()
jmp short loc_646FA
jmp short $+2
loc_646F7:
mov rbx, rax
loc_646FA:
lea rdi, [rsp+arg_80]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
loc_64707:
lea rdi, [rsp+arg_10]
call _ZNSt14__shared_countILN9__gnu_cxx12_Lock_policyE2EED2Ev; std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count()
mov rdi, rbx
call __Unwind_Resume
| minja::Parser * minja::Parser::parseMathMulDiv(minja::Parser *this, _QWORD *a2)
{
void **v2; // rbp
long long v3; // r15
long long v4; // rbp
bool v5; // al
int v6; // ecx
bool v7; // al
bool v8; // al
long long v9; // rbx
minja::Parser *v10; // rbx
void *v11; // rax
__int128 v12; // xmm0
__int128 v13; // xmm0
__int128 v14; // xmm0
std::runtime_error *v16; // r14
std::runtime_error *exception; // r14
void *lpsrc[2]; // [rsp+0h] [rbp-D8h] BYREF
__int128 v19; // [rsp+10h] [rbp-C8h] BYREF
minja::Parser *v20; // [rsp+28h] [rbp-B0h]
long long v21; // [rsp+30h] [rbp-A8h] BYREF
_QWORD v22[3]; // [rsp+38h] [rbp-A0h] BYREF
__int128 v23; // [rsp+50h] [rbp-88h] BYREF
long long v24; // [rsp+60h] [rbp-78h]
__int128 v25; // [rsp+70h] [rbp-68h] BYREF
_QWORD v26[2]; // [rsp+88h] [rbp-50h] BYREF
char v27; // [rsp+98h] [rbp-40h] BYREF
v20 = this;
minja::Parser::parseMathUnaryPlusMinus((minja::Parser *)&v19);
if ( !(_QWORD)v19 )
{
exception = (std::runtime_error *)__cxa_allocate_exception(0x10uLL);
std::runtime_error::runtime_error(exception, "Expected left side of 'math mul/div' expression");
__cxa_throw(
exception,
(struct type_info *)&`typeinfo for'std::runtime_error,
(void (*)(void *))&std::runtime_error::~runtime_error);
}
if ( !(_BYTE)`guard variable for'minja::Parser::parseMathMulDiv(void)::mul_div_tok[abi:cxx11]
&& __cxa_guard_acquire(&`guard variable for'minja::Parser::parseMathMulDiv(void)::mul_div_tok[abi:cxx11]) )
{
std::basic_regex<char,std::regex_traits<char>>::basic_regex(
(long long)&minja::Parser::parseMathMulDiv(void)::mul_div_tok[abi:cxx11],
(long long)"\\*\\*?|//?|%(?!\\})",
0x10u);
__cxa_atexit(
(void (*)(void *))std::basic_regex<char,std::regex_traits<char>>::~basic_regex,
&minja::Parser::parseMathMulDiv(void)::mul_div_tok[abi:cxx11],
&_dso_handle);
__cxa_guard_release(&`guard variable for'minja::Parser::parseMathMulDiv(void)::mul_div_tok[abi:cxx11]);
}
v26[0] = &v27;
v26[1] = 0LL;
v27 = 0;
v2 = lpsrc;
while ( 1 )
{
v3 = (long long)v2;
minja::Parser::consumeToken(
&v23,
(long long)a2,
(long long)&minja::Parser::parseMathMulDiv(void)::mul_div_tok[abi:cxx11],
1u);
v4 = *(_QWORD *)(std::string::operator=(v26, &v23) + 8);
std::string::~string(&v23);
if ( !v4 )
break;
minja::Parser::parseMathUnaryPlusMinus((minja::Parser *)&v21);
if ( !v21 )
{
v16 = (std::runtime_error *)__cxa_allocate_exception(0x10uLL);
std::runtime_error::runtime_error(v16, "Expected right side of 'math mul/div' expression");
__cxa_throw(
v16,
(struct type_info *)&`typeinfo for'std::runtime_error,
(void (*)(void *))&std::runtime_error::~runtime_error);
}
v2 = (void **)v3;
v5 = std::operator==<char>((long long)v26);
v6 = 3;
if ( !v5 )
{
v7 = std::operator==<char>((long long)v26);
v6 = 4;
if ( !v7 )
{
v8 = std::operator==<char>((long long)v26);
v6 = 5;
if ( !v8 )
v6 = std::operator==<char>((long long)v26) ^ 7;
}
}
LODWORD(v25) = v6;
minja::Parser::get_location((minja::Parser *)&v23, a2);
std::make_shared<minja::BinaryOpExpr,minja::Location,std::shared_ptr<minja::Expression>,std::shared_ptr<minja::Expression>,minja::BinaryOpExpr::Op &>(
v3,
(long long)&v23,
(long long)&v19,
(long long)&v21,
(long long)&v25);
std::__shared_ptr<minja::Expression,(__gnu_cxx::_Lock_policy)2>::operator=<minja::BinaryOpExpr>(&v19, v3);
std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count(&lpsrc[1]);
std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count((_QWORD *)&v23 + 1);
std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count(v22);
}
std::string::basic_string<std::allocator<char>>(&v21, (long long)"|");
minja::Parser::consumeToken(&v23, (long long)a2, &v21, 1u);
v9 = *((_QWORD *)&v23 + 1);
std::string::~string(&v23);
std::string::~string(&v21);
if ( v9 )
{
minja::Parser::parseMathMulDiv((minja::Parser *)lpsrc);
v10 = v20;
if ( lpsrc[0]
&& (v11 = __dynamic_cast(
lpsrc[0],
(const struct __class_type_info *)&`typeinfo for'minja::Expression,
(const struct __class_type_info *)&`typeinfo for'minja::FilterExpr,
0LL)) != 0LL )
{
minja::FilterExpr::prepend(v11, &v19);
v12 = *(_OWORD *)lpsrc;
lpsrc[1] = 0LL;
*(_OWORD *)v10 = v12;
lpsrc[0] = 0LL;
}
else
{
v23 = 0LL;
v24 = 0LL;
std::vector<std::shared_ptr<minja::Expression>>::emplace_back<std::shared_ptr<minja::Expression>>(&v23, &v19);
std::vector<std::shared_ptr<minja::Expression>>::emplace_back<std::shared_ptr<minja::Expression>>(&v23, lpsrc);
minja::Parser::get_location((minja::Parser *)&v21, a2);
std::make_shared<minja::FilterExpr,minja::Location,std::vector<std::shared_ptr<minja::Expression>>>(
&v25,
&v21,
&v23);
v13 = v25;
*((_QWORD *)&v25 + 1) = 0LL;
*(_OWORD *)v10 = v13;
*(_QWORD *)&v25 = 0LL;
std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count((_QWORD *)&v25 + 1);
std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count(v22);
std::vector<std::shared_ptr<minja::Expression>>::~vector(&v23);
}
std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count(&lpsrc[1]);
}
else
{
v14 = v19;
*((_QWORD *)&v19 + 1) = 0LL;
v10 = v20;
*(_OWORD *)v20 = v14;
*(_QWORD *)&v19 = 0LL;
}
std::string::~string(v26);
std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count((_QWORD *)&v19 + 1);
return v10;
}
| parseMathMulDiv:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0xa8
MOV R14,RSI
MOV qword ptr [RSP + 0x28],RDI
LEA RBX,[RSP + 0x10]
MOV RDI,RBX
CALL 0x0016471a
CMP qword ptr [RBX],0x0
JZ 0x001645e0
LEA RAX,[0x1fd0f0]
MOV AL,byte ptr [RAX]
TEST AL,AL
JZ 0x00164610
LAB_0016431f:
LEA RAX,[RSP + 0x98]
MOV qword ptr [RAX + -0x10],RAX
AND qword ptr [RAX + -0x8],0x0
MOV byte ptr [RAX],0x0
LEA RBX,[RSP + 0x50]
LEA R12,[RSP + 0x88]
LEA R13,[RSP + 0x30]
MOV RBP,RSP
LAB_00164348:
MOV R15,RBP
MOV RDI,RBX
MOV RSI,R14
LEA RDX,[0x1fd0d0]
PUSH 0x1
POP RCX
CALL 0x001604c0
MOV RDI,R12
MOV RSI,RBX
CALL 0x00123ac0
MOV RBP,qword ptr [RAX + 0x8]
MOV RDI,RBX
CALL 0x001241b8
TEST RBP,RBP
JZ 0x00164449
LAB_00164380:
MOV RDI,R13
MOV RSI,R14
CALL 0x0016471a
CMP qword ptr [RSP + 0x30],0x0
JZ 0x001645ae
MOV RBP,R15
MOV RDI,R12
LEA RSI,[0x1b980c]
CALL 0x001391b2
PUSH 0x3
POP RCX
TEST AL,AL
JNZ 0x001643f1
MOV RDI,R12
LEA RSI,[0x1b2ed5]
CALL 0x001391b2
PUSH 0x4
POP RCX
TEST AL,AL
JNZ 0x001643f1
MOV RDI,R12
LEA RSI,[0x1b7c0c]
CALL 0x001391b2
PUSH 0x5
POP RCX
TEST AL,AL
JNZ 0x001643f1
MOV RDI,R12
LEA RSI,[0x1b7c08]
CALL 0x001391b2
MOVZX ECX,AL
XOR ECX,0x7
LAB_001643f1:
MOV dword ptr [RSP + 0x70],ECX
LAB_001643f5:
MOV RDI,RBX
MOV RSI,R14
CALL 0x0016009c
LAB_00164400:
MOV RDI,RBP
MOV RSI,RBX
LEA R15,[RSP + 0x10]
MOV RDX,R15
MOV RCX,R13
LEA R8,[RSP + 0x70]
CALL 0x00163e62
MOV RDI,R15
MOV RSI,RBP
CALL 0x00170ea4
LEA RDI,[RSP + 0x8]
CALL 0x0014f578
LEA RDI,[RSP + 0x58]
CALL 0x0014f578
LEA RDI,[RSP + 0x38]
CALL 0x0014f578
JMP 0x00164348
LAB_00164449:
LEA RSI,[0x1b044f]
LEA RDI,[RSP + 0x30]
MOV RDX,RSP
CALL 0x0012746a
LAB_0016445d:
LEA RDI,[RSP + 0x50]
LEA RDX,[RSP + 0x30]
PUSH 0x1
POP RCX
MOV RSI,R14
CALL 0x00160acc
LEA RDI,[RSP + 0x50]
MOV RBX,qword ptr [RDI + 0x8]
CALL 0x001241b8
LEA RDI,[RSP + 0x30]
CALL 0x001241b8
TEST RBX,RBX
JZ 0x00164569
LAB_00164493:
MOV RDI,RSP
MOV RSI,R14
CALL 0x001642de
MOV RBX,qword ptr [RSP + 0x28]
MOV RDI,qword ptr [RSP]
TEST RDI,RDI
JZ 0x001644e7
LEA RSI,[0x1fa390]
LEA RDX,[0x1fa3e0]
XOR ECX,ECX
CALL 0x001239f0
TEST RAX,RAX
JZ 0x001644e7
LAB_001644c6:
LEA RSI,[RSP + 0x10]
MOV RDI,RAX
CALL 0x001648e2
MOVAPS XMM0,xmmword ptr [RSP]
AND qword ptr [RSP + 0x8],0x0
MOVUPS xmmword ptr [RBX],XMM0
AND qword ptr [RSP],0x0
JMP 0x0016455d
LAB_001644e7:
XORPS XMM0,XMM0
LEA RDI,[RSP + 0x50]
MOVAPS xmmword ptr [RDI],XMM0
AND qword ptr [RDI + 0x10],0x0
LAB_001644f7:
LEA RSI,[RSP + 0x10]
CALL 0x001648f2
LEA RDI,[RSP + 0x50]
MOV RSI,RSP
CALL 0x001648f2
LAB_0016450e:
LEA RDI,[RSP + 0x30]
MOV RSI,R14
CALL 0x0016009c
LAB_0016451b:
LEA RDI,[RSP + 0x70]
LEA RSI,[RSP + 0x30]
LEA RDX,[RSP + 0x50]
CALL 0x00164936
LAB_0016452f:
LEA RDI,[RSP + 0x78]
MOVAPS XMM0,xmmword ptr [RDI + -0x8]
AND qword ptr [RDI],0x0
MOVUPS xmmword ptr [RBX],XMM0
AND qword ptr [RDI + -0x8],0x0
CALL 0x0014f578
LEA RDI,[RSP + 0x38]
CALL 0x0014f578
LEA RDI,[RSP + 0x50]
CALL 0x00164958
LAB_0016455d:
LEA RDI,[RSP + 0x8]
CALL 0x0014f578
JMP 0x00164582
LAB_00164569:
MOVAPS XMM0,xmmword ptr [RSP + 0x10]
AND qword ptr [RSP + 0x18],0x0
MOV RBX,qword ptr [RSP + 0x28]
MOVUPS xmmword ptr [RBX],XMM0
AND qword ptr [RSP + 0x10],0x0
LAB_00164582:
LEA RDI,[RSP + 0x88]
CALL 0x001241b8
LEA RDI,[RSP + 0x18]
CALL 0x0014f578
MOV RAX,RBX
ADD RSP,0xa8
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
LAB_001645ae:
PUSH 0x10
POP RDI
CALL 0x00123450
MOV R14,RAX
LAB_001645b9:
LEA RSI,[0x1b2fbe]
MOV RDI,RAX
CALL 0x00123310
LAB_001645c8:
MOV RSI,qword ptr [0x001fbff0]
MOV RDX,qword ptr [0x001fbf58]
MOV RDI,R14
CALL 0x00123ef0
LAB_001645e0:
PUSH 0x10
POP RDI
CALL 0x00123450
MOV R14,RAX
LAB_001645eb:
LEA RSI,[0x1b2f7c]
MOV RDI,RAX
CALL 0x00123310
LAB_001645fa:
MOV RSI,qword ptr [0x001fbff0]
MOV RDX,qword ptr [0x001fbf58]
MOV RDI,R14
CALL 0x00123ef0
LAB_00164610:
LEA RDI,[0x1fd0f0]
CALL 0x00123ff0
TEST EAX,EAX
JZ 0x0016431f
LAB_00164624:
LEA RDI,[0x1fd0d0]
LEA RSI,[0x1b2fac]
PUSH 0x10
POP RDX
CALL 0x001460ca
LAB_0016463a:
LEA RDI,[0x1462f0]
LEA RSI,[0x1fd0d0]
LEA RDX,[0x1fc8e8]
CALL 0x001237b0
LEA RDI,[0x1fd0f0]
CALL 0x001235d0
JMP 0x0016431f
|
/* minja::Parser::parseMathMulDiv() */
long * minja::Parser::parseMathMulDiv(void)
{
long lVar1;
bool bVar2;
int iVar3;
long lVar4;
FilterExpr *this;
runtime_error *prVar5;
uint uVar6;
long *in_RDI;
long local_d8;
long lStack_d0;
long local_c8;
long alStack_c0 [2];
long *local_b0;
long local_a8;
__shared_count<(__gnu_cxx::_Lock_policy)2> local_a0 [24];
int8 local_88;
long alStack_80 [3];
long local_68;
long alStack_60 [2];
int1 *local_50;
int8 local_48;
int1 local_40 [16];
local_b0 = in_RDI;
parseMathUnaryPlusMinus();
if (local_c8 == 0) {
prVar5 = (runtime_error *)__cxa_allocate_exception(0x10);
/* try { // try from 001645eb to 001645f9 has its CatchHandler @ 00164694 */
std::runtime_error::runtime_error(prVar5,"Expected left side of \'math mul/div\' expression");
/* try { // try from 001645fa to 0016460f has its CatchHandler @ 0016468f */
/* WARNING: Subroutine does not return */
__cxa_throw(prVar5,PTR_typeinfo_001fbff0,PTR__runtime_error_001fbf58);
}
if (parseMathMulDiv()::mul_div_tok_abi_cxx11_ == '\0') {
iVar3 = __cxa_guard_acquire(&parseMathMulDiv()::mul_div_tok_abi_cxx11_);
if (iVar3 != 0) {
/* try { // try from 00164624 to 00164639 has its CatchHandler @ 00164665 */
std::__cxx11::basic_regex<char,std::__cxx11::regex_traits<char>>::basic_regex
((basic_regex<char,std::__cxx11::regex_traits<char>> *)
parseMathMulDiv()::mul_div_tok_abi_cxx11_,"\\*\\*?|//?|%(?!\\})",0x10);
__cxa_atexit(std::__cxx11::basic_regex<char,std::__cxx11::regex_traits<char>>::~basic_regex,
parseMathMulDiv()::mul_div_tok_abi_cxx11_,&__dso_handle);
__cxa_guard_release(&parseMathMulDiv()::mul_div_tok_abi_cxx11_);
}
}
local_50 = local_40;
local_48 = 0;
local_40[0] = 0;
while( true ) {
/* try { // try from 00164348 to 0016435f has its CatchHandler @ 001646f7 */
consumeToken((string *)&local_88);
lVar4 = std::__cxx11::string::operator=((string *)&local_50,(string *)&local_88);
lVar4 = *(long *)(lVar4 + 8);
std::__cxx11::string::~string((string *)&local_88);
if (lVar4 == 0) break;
/* try { // try from 00164380 to 0016438a has its CatchHandler @ 001646f5 */
parseMathUnaryPlusMinus();
if (local_a8 == 0) {
prVar5 = (runtime_error *)__cxa_allocate_exception(0x10);
/* try { // try from 001645b9 to 001645c7 has its CatchHandler @ 001646ca */
std::runtime_error::runtime_error(prVar5,"Expected right side of \'math mul/div\' expression")
;
/* try { // try from 001645c8 to 001645dd has its CatchHandler @ 001646c8 */
/* WARNING: Subroutine does not return */
__cxa_throw(prVar5,PTR_typeinfo_001fbff0,PTR__runtime_error_001fbf58);
}
bVar2 = std::operator==((string *)&local_50,"*");
uVar6 = 3;
if (!bVar2) {
bVar2 = std::operator==((string *)&local_50,"**");
uVar6 = 4;
if (!bVar2) {
bVar2 = std::operator==((string *)&local_50,"/");
uVar6 = 5;
if (!bVar2) {
bVar2 = std::operator==((string *)&local_50,"//");
uVar6 = bVar2 ^ 7;
}
}
}
local_68 = CONCAT44(local_68._4_4_,uVar6);
/* try { // try from 001643f5 to 001643ff has its CatchHandler @ 001646d7 */
get_location();
/* try { // try from 00164400 to 0016441a has its CatchHandler @ 001646dc */
std::
make_shared<minja::BinaryOpExpr,minja::Location,std::shared_ptr<minja::Expression>,std::shared_ptr<minja::Expression>,minja::BinaryOpExpr::Op&>
((Location *)&local_d8,(string *)&local_88,
(__shared_ptr<minja::Expression,(__gnu_cxx::_Lock_policy)2> *)&local_c8,
(Op *)&local_a8);
std::__shared_ptr<minja::Expression,(__gnu_cxx::_Lock_policy)2>::operator=
((__shared_ptr<minja::Expression,(__gnu_cxx::_Lock_policy)2> *)&local_c8,
(__shared_ptr *)&local_d8);
std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count
((__shared_count<(__gnu_cxx::_Lock_policy)2> *)&lStack_d0);
std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count
((__shared_count<(__gnu_cxx::_Lock_policy)2> *)alStack_80);
std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count(local_a0);
}
/* try { // try from 00164449 to 0016445c has its CatchHandler @ 001646c6 */
std::__cxx11::string::string<std::allocator<char>>((string *)&local_a8,"|",(allocator *)&local_d8)
;
/* try { // try from 0016445d to 00164471 has its CatchHandler @ 001646b7 */
consumeToken(&local_88);
lVar1 = alStack_80[0];
std::__cxx11::string::~string((string *)&local_88);
std::__cxx11::string::~string((string *)&local_a8);
lVar4 = alStack_c0[0];
if (lVar1 == 0) {
alStack_c0[0] = 0;
*local_b0 = local_c8;
local_b0[1] = lVar4;
local_c8 = 0;
goto LAB_00164582;
}
/* try { // try from 00164493 to 0016449d has its CatchHandler @ 001646a1 */
parseMathMulDiv();
if (local_d8 == 0) {
LAB_001644e7:
local_88 = 0;
alStack_80[0] = 0;
alStack_80[1] = 0;
/* try { // try from 001644f7 to 0016450d has its CatchHandler @ 001646a3 */
std::
vector<std::shared_ptr<minja::Expression>,std::allocator<std::shared_ptr<minja::Expression>>>::
emplace_back<std::shared_ptr<minja::Expression>>
((vector<std::shared_ptr<minja::Expression>,std::allocator<std::shared_ptr<minja::Expression>>>
*)&local_88,(shared_ptr *)&local_c8);
std::
vector<std::shared_ptr<minja::Expression>,std::allocator<std::shared_ptr<minja::Expression>>>::
emplace_back<std::shared_ptr<minja::Expression>>
((vector<std::shared_ptr<minja::Expression>,std::allocator<std::shared_ptr<minja::Expression>>>
*)&local_88,(shared_ptr *)&local_d8);
/* try { // try from 0016450e to 0016451a has its CatchHandler @ 0016468d */
get_location();
/* try { // try from 0016451b to 0016452e has its CatchHandler @ 0016467e */
std::
make_shared<minja::FilterExpr,minja::Location,std::vector<std::shared_ptr<minja::Expression>,std::allocator<std::shared_ptr<minja::Expression>>>>
((Location *)&local_68,(vector *)&local_a8);
lVar4 = alStack_60[0];
alStack_60[0] = 0;
*local_b0 = local_68;
local_b0[1] = lVar4;
local_68 = 0;
std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count
((__shared_count<(__gnu_cxx::_Lock_policy)2> *)alStack_60);
std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count(local_a0);
std::
vector<std::shared_ptr<minja::Expression>,std::allocator<std::shared_ptr<minja::Expression>>>::
~vector((vector<std::shared_ptr<minja::Expression>,std::allocator<std::shared_ptr<minja::Expression>>>
*)&local_88);
}
else {
this = (FilterExpr *)__dynamic_cast(local_d8,&Expression::typeinfo,&FilterExpr::typeinfo,0);
if (this == (FilterExpr *)0x0) goto LAB_001644e7;
/* try { // try from 001644c6 to 001644d2 has its CatchHandler @ 00164679 */
FilterExpr::prepend(this,(shared_ptr *)&local_c8);
lVar4 = lStack_d0;
lStack_d0 = 0;
*local_b0 = local_d8;
local_b0[1] = lVar4;
local_d8 = 0;
}
std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count
((__shared_count<(__gnu_cxx::_Lock_policy)2> *)&lStack_d0);
LAB_00164582:
std::__cxx11::string::~string((string *)&local_50);
std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count
((__shared_count<(__gnu_cxx::_Lock_policy)2> *)alStack_c0);
return local_b0;
}
| |
42,631 | bool nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>::contains<char const (&) [9], 0>(char const (&) [9]) const | monkey531[P]llama/common/./json.hpp | constexpr bool is_object() const noexcept
{
return m_data.m_type == value_t::object;
} | O1 | cpp | bool nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>::contains<char const (&) [9], 0>(char const (&) [9]) const:
cmpb $0x1, (%rdi)
jne 0x895d8
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %rbx
movq 0x8(%rdi), %r12
movq (%r12), %r15
movq 0x8(%r12), %rax
cmpq %rax, %r15
je 0x895de
movq %rsi, %r14
movq %r15, %rdi
movq %r14, %rsi
callq 0x1f2b0
testl %eax, %eax
je 0x895db
addq $0x30, %r15
movq 0x8(%r12), %rax
cmpq %rax, %r15
jne 0x895b9
jmp 0x895de
xorl %eax, %eax
retq
movq %r15, %rax
movq 0x8(%rbx), %rcx
cmpq 0x8(%rcx), %rax
setne %al
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
nop
| _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE8containsIRA9_KcTnNSt9enable_ifIXsr6detail32is_usable_as_basic_json_key_typeISD_T_EE5valueEiE4typeELi0EEEbOSJ_:
cmp byte ptr [rdi], 1
jnz short loc_895D8
push r15
push r14
push r12
push rbx
push rax
mov rbx, rdi
mov r12, [rdi+8]
mov r15, [r12]
mov rax, [r12+8]
cmp r15, rax
jz short loc_895DE
mov r14, rsi
loc_895B9:
mov rdi, r15
mov rsi, r14
call __ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE7compareEPKc; std::string::compare(char const*)
test eax, eax
jz short loc_895DB
add r15, 30h ; '0'
mov rax, [r12+8]
cmp r15, rax
jnz short loc_895B9
jmp short loc_895DE
loc_895D8:
xor eax, eax
retn
loc_895DB:
mov rax, r15
loc_895DE:
mov rcx, [rbx+8]
cmp rax, [rcx+8]
setnz al
add rsp, 8
pop rbx
pop r12
pop r14
pop r15
retn
| bool ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE8containsIRA9_KcTnNSt9enable_ifIXsr6detail32is_usable_as_basic_json_key_typeISD_T_EE5valueEiE4typeELi0EEEbOSJ_(
long long a1,
long long a2)
{
long long *v2; // r12
long long v3; // r15
long long v4; // rax
if ( *(_BYTE *)a1 != 1 )
return 0;
v2 = *(long long **)(a1 + 8);
v3 = *v2;
v4 = v2[1];
if ( *v2 != v4 )
{
while ( (unsigned int)std::string::compare(v3, a2) )
{
v3 += 48LL;
v4 = v2[1];
if ( v3 == v4 )
return v4 != *(_QWORD *)(*(_QWORD *)(a1 + 8) + 8LL);
}
v4 = v3;
}
return v4 != *(_QWORD *)(*(_QWORD *)(a1 + 8) + 8LL);
}
| _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE8containsIRA9_KcTnNSt9enable_ifIXsr6detail32is_usable_as_basic_json_key_typeISD_T_EE5valueEiE4typeELi0EEEbOSJ_:
CMP byte ptr [RDI],0x1
JNZ 0x001895d8
PUSH R15
PUSH R14
PUSH R12
PUSH RBX
PUSH RAX
MOV RBX,RDI
MOV R12,qword ptr [RDI + 0x8]
MOV R15,qword ptr [R12]
MOV RAX,qword ptr [R12 + 0x8]
CMP R15,RAX
JZ 0x001895de
MOV R14,RSI
LAB_001895b9:
MOV RDI,R15
MOV RSI,R14
CALL 0x0011f2b0
TEST EAX,EAX
JZ 0x001895db
ADD R15,0x30
MOV RAX,qword ptr [R12 + 0x8]
CMP R15,RAX
JNZ 0x001895b9
JMP 0x001895de
LAB_001895d8:
XOR EAX,EAX
RET
LAB_001895db:
MOV RAX,R15
LAB_001895de:
MOV RCX,qword ptr [RBX + 0x8]
CMP RAX,qword ptr [RCX + 0x8]
SETNZ AL
ADD RSP,0x8
POP RBX
POP R12
POP R14
POP R15
RET
|
int8
_ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE8containsIRA9_KcTnNSt9enable_ifIXsr6detail32is_usable_as_basic_json_key_typeISD_T_EE5valueEiE4typeELi0EEEbOSJ_
(char *param_1)
{
long *plVar1;
int iVar2;
char *pcVar3;
char *pcVar4;
if (*param_1 != '\x01') {
return 0;
}
plVar1 = *(long **)(param_1 + 8);
pcVar3 = (char *)plVar1[1];
pcVar4 = (char *)*plVar1;
if ((char *)*plVar1 != pcVar3) {
do {
pcVar3 = pcVar4;
iVar2 = std::__cxx11::string::compare(pcVar3);
if (iVar2 == 0) break;
pcVar4 = pcVar3 + 0x30;
pcVar3 = (char *)plVar1[1];
} while (pcVar4 != pcVar3);
}
return CONCAT71((int7)((ulong)pcVar3 >> 8),pcVar3 != *(char **)(*(long *)(param_1 + 8) + 8));
}
| |
42,632 | bool nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>::contains<char const (&) [9], 0>(char const (&) [9]) const | monkey531[P]llama/common/./json.hpp | constexpr bool is_object() const noexcept
{
return m_data.m_type == value_t::object;
} | O3 | cpp | bool nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>::contains<char const (&) [9], 0>(char const (&) [9]) const:
cmpb $0x1, (%rdi)
jne 0x8a25d
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %r14
movq 0x8(%rdi), %r12
movq (%r12), %rbx
cmpq 0x8(%r12), %rbx
je 0x8a260
movq %rsi, %r15
movq %rbx, %rdi
movq %r15, %rsi
callq 0x1f2b0
testl %eax, %eax
je 0x8a250
addq $0x30, %rbx
cmpq 0x8(%r12), %rbx
jne 0x8a236
movq %rbx, %rax
movq 0x8(%r14), %rcx
movq 0x8(%rcx), %rbx
jmp 0x8a263
xorl %eax, %eax
retq
movq %rbx, %rax
cmpq %rbx, %rax
setne %al
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
nop
| _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE8containsIRA13_KcTnNSt9enable_ifIXsr6detail32is_usable_as_basic_json_key_typeISD_T_EE5valueEiE4typeELi0EEEbOSJ_:
cmp byte ptr [rdi], 1
jnz short loc_8A25D
push r15
push r14
push r12
push rbx
push rax
mov r14, rdi
mov r12, [rdi+8]
mov rbx, [r12]
cmp rbx, [r12+8]
jz short loc_8A260
mov r15, rsi
loc_8A236:
mov rdi, rbx
mov rsi, r15
call __ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE7compareEPKc; std::string::compare(char const*)
test eax, eax
jz short loc_8A250
add rbx, 30h ; '0'
cmp rbx, [r12+8]
jnz short loc_8A236
loc_8A250:
mov rax, rbx
mov rcx, [r14+8]
mov rbx, [rcx+8]
jmp short loc_8A263
loc_8A25D:
xor eax, eax
retn
loc_8A260:
mov rax, rbx
loc_8A263:
cmp rax, rbx
setnz al
add rsp, 8
pop rbx
pop r12
pop r14
pop r15
retn
| bool ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE8containsIRA13_KcTnNSt9enable_ifIXsr6detail32is_usable_as_basic_json_key_typeISD_T_EE5valueEiE4typeELi0EEEbOSJ_(
long long a1,
long long a2)
{
long long *v2; // r12
long long v3; // rbx
long long v4; // rax
if ( *(_BYTE *)a1 != 1 )
return 0;
v2 = *(long long **)(a1 + 8);
v3 = *v2;
if ( *v2 == v2[1] )
{
v4 = *v2;
}
else
{
do
{
if ( !(unsigned int)std::string::compare(v3, a2) )
break;
v3 += 48LL;
}
while ( v3 != v2[1] );
v4 = v3;
v3 = *(_QWORD *)(*(_QWORD *)(a1 + 8) + 8LL);
}
return v4 != v3;
}
| _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE8containsIRA13_KcTnNSt9enable_ifIXsr6detail32is_usable_as_basic_json_key_typeISD_T_EE5valueEiE4typeELi0EEEbOSJ_:
CMP byte ptr [RDI],0x1
JNZ 0x0018a25d
PUSH R15
PUSH R14
PUSH R12
PUSH RBX
PUSH RAX
MOV R14,RDI
MOV R12,qword ptr [RDI + 0x8]
MOV RBX,qword ptr [R12]
CMP RBX,qword ptr [R12 + 0x8]
JZ 0x0018a260
MOV R15,RSI
LAB_0018a236:
MOV RDI,RBX
MOV RSI,R15
CALL 0x0011f2b0
TEST EAX,EAX
JZ 0x0018a250
ADD RBX,0x30
CMP RBX,qword ptr [R12 + 0x8]
JNZ 0x0018a236
LAB_0018a250:
MOV RAX,RBX
MOV RCX,qword ptr [R14 + 0x8]
MOV RBX,qword ptr [RCX + 0x8]
JMP 0x0018a263
LAB_0018a25d:
XOR EAX,EAX
RET
LAB_0018a260:
MOV RAX,RBX
LAB_0018a263:
CMP RAX,RBX
SETNZ AL
ADD RSP,0x8
POP RBX
POP R12
POP R14
POP R15
RET
|
int8
_ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE8containsIRA13_KcTnNSt9enable_ifIXsr6detail32is_usable_as_basic_json_key_typeISD_T_EE5valueEiE4typeELi0EEEbOSJ_
(char *param_1)
{
long *plVar1;
int iVar2;
char *pcVar3;
char *pcVar4;
if (*param_1 != '\x01') {
return 0;
}
plVar1 = *(long **)(param_1 + 8);
pcVar3 = (char *)*plVar1;
pcVar4 = pcVar3;
if (pcVar3 != (char *)plVar1[1]) {
do {
iVar2 = std::__cxx11::string::compare(pcVar3);
if (iVar2 == 0) break;
pcVar3 = pcVar3 + 0x30;
} while (pcVar3 != (char *)plVar1[1]);
pcVar4 = *(char **)(*(long *)(param_1 + 8) + 8);
}
return CONCAT71((int7)((ulong)pcVar3 >> 8),pcVar3 != pcVar4);
}
| |
42,633 | 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);
} | O0 | c | ft_init_stopwords:
pushq %rbp
movq %rsp, %rbp
subq $0x70, %rsp
cmpq $0x0, 0x39a120(%rip) # 0x3fd900
jne 0x638a1
leaq 0x39a0af(%rip), %rax # 0x3fd89c
movl (%rax), %edi
movl $0x298, %esi # imm = 0x298
xorl %eax, %eax
movl %eax, %edx
callq 0x8a930
movq %rax, 0x39a0fc(%rip) # 0x3fd900
cmpq $0x0, %rax
jne 0x63818
jmp 0x6380c
movl $0xffffffff, -0x4(%rbp) # imm = 0xFFFFFFFF
jmp 0x63a4b
movq 0x39a0e1(%rip), %rdi # 0x3fd900
leaq 0x39a0d2(%rip), %rax # 0x3fd8f8
movq (%rax), %rcx
xorl %eax, %eax
movl %eax, %r9d
leaq 0x27b(%rip), %rax # 0x63ab0
cmpq $0x0, %rcx
cmovneq %rax, %r9
xorl %eax, %eax
movl %eax, %edx
movl $0x10, %ecx
leaq 0x213(%rip), %r8 # 0x63a60
movq %rdx, %rsi
movq $0x0, (%rsp)
movq $0x0, 0x8(%rsp)
callq 0x91920
leaq 0x1e23e3(%rip), %rax # 0x245c50
movq (%rax), %rax
cmpl $0x1, 0x98(%rax)
jne 0x63889
leaq 0x1e23d0(%rip), %rax # 0x245c50
movq (%rax), %rax
movq %rax, -0x58(%rbp)
jmp 0x63896
leaq 0x288cc0(%rip), %rax # 0x2ec550
movq %rax, -0x58(%rbp)
jmp 0x63896
movq -0x58(%rbp), %rax
movq %rax, 0x39a067(%rip) # 0x3fd908
leaq 0x39a050(%rip), %rax # 0x3fd8f8
cmpq $0x0, (%rax)
je 0x639f0
movl $0xffffffff, -0x44(%rbp) # imm = 0xFFFFFFFF
leaq 0x39a038(%rip), %rax # 0x3fd8f8
movq (%rax), %rax
cmpb $0x0, (%rax)
jne 0x638d6
jmp 0x638ca
movl $0x0, -0x4(%rbp)
jmp 0x63a4b
leaq 0x39a01b(%rip), %rax # 0x3fd8f8
movq (%rax), %rdi
xorl %esi, %esi
movl $0x10, %edx
callq 0x8b2a0
movl %eax, -0x8(%rbp)
cmpl $-0x1, %eax
jne 0x63902
jmp 0x638f6
movl $0xffffffff, -0x4(%rbp) # imm = 0xFFFFFFFF
jmp 0x63a4b
movl -0x8(%rbp), %edi
xorl %eax, %eax
movl %eax, %ecx
movl $0x2, %edx
movq %rcx, %rsi
callq 0x8c250
movq %rax, -0x10(%rbp)
movl -0x8(%rbp), %edi
xorl %eax, %eax
movl %eax, %ecx
xorl %edx, %edx
movq %rcx, %rsi
callq 0x8c250
leaq 0x399f6a(%rip), %rax # 0x3fd89c
movl (%rax), %edi
movq -0x10(%rbp), %rsi
addq $0x1, %rsi
movl $0x10, %edx
callq 0x8a930
movq %rax, -0x18(%rbp)
movq %rax, -0x20(%rbp)
cmpq $0x0, %rax
jne 0x63959
jmp 0x639db
movl -0x8(%rbp), %edi
movq -0x18(%rbp), %rsi
movq -0x10(%rbp), %rdx
movl $0x10, %ecx
callq 0x8bab0
movq %rax, -0x10(%rbp)
movq -0x20(%rbp), %rax
addq -0x10(%rbp), %rax
movq %rax, -0x28(%rbp)
movq 0x399f83(%rip), %rdi # 0x3fd908
movq -0x28(%rbp), %rdx
leaq -0x20(%rbp), %rsi
leaq -0x40(%rbp), %rcx
movl $0x1, %r8d
callq 0x62fd0
cmpb $0x0, %al
je 0x639cb
leaq 0x399ef5(%rip), %rax # 0x3fd89c
movl (%rax), %edi
movq -0x40(%rbp), %rsi
movq -0x30(%rbp), %rdx
xorl %eax, %eax
movl %eax, %ecx
callq 0x8ae20
movq %rax, %rdi
callq 0x63ae0
cmpl $0x0, %eax
je 0x639c9
jmp 0x639d2
jmp 0x6397e
movl $0x0, -0x44(%rbp)
movq -0x18(%rbp), %rdi
callq 0x8acb0
movl -0x8(%rbp), %edi
movl $0x10, %esi
callq 0x8b530
movl -0x44(%rbp), %eax
movl %eax, -0x4(%rbp)
jmp 0x63a4b
leaq 0x1e1069(%rip), %rax # 0x244a60
movq %rax, -0x50(%rbp)
movq -0x50(%rbp), %rax
cmpq $0x0, (%rax)
je 0x63a31
movq -0x50(%rbp), %rax
movq (%rax), %rdi
callq 0x63ae0
cmpl $0x0, %eax
je 0x63a21
jmp 0x63a18
movl $0xffffffff, -0x4(%rbp) # imm = 0xFFFFFFFF
jmp 0x63a4b
jmp 0x63a23
movq -0x50(%rbp), %rax
addq $0x8, %rax
movq %rax, -0x50(%rbp)
jmp 0x639fb
leaq 0x399ec0(%rip), %rax # 0x3fd8f8
leaq 0x81542(%rip), %rcx # 0xe4f81
movq %rcx, (%rax)
jmp 0x63a44
movl $0x0, -0x4(%rbp)
movl -0x4(%rbp), %eax
addq $0x70, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
| ft_init_stopwords:
push rbp
mov rbp, rsp
sub rsp, 70h
cmp cs:stopwords3, 0
jnz loc_638A1
lea rax, mi_key_memory_ft_stopwords
mov edi, [rax]
mov esi, 298h
xor eax, eax
mov edx, eax
call my_malloc
mov cs:stopwords3, rax
cmp rax, 0
jnz short loc_63818
jmp short $+2
loc_6380C:
mov [rbp+var_4], 0FFFFFFFFh
jmp loc_63A4B
loc_63818:
mov rdi, cs:stopwords3
lea rax, ft_stopword_file
mov rcx, [rax]
xor eax, eax
mov r9d, eax
lea rax, FT_STOPWORD_free
cmp rcx, 0
cmovnz r9, rax
xor eax, eax
mov edx, eax
mov ecx, 10h
lea r8, FT_STOPWORD_cmp
mov rsi, rdx
mov [rsp+70h+var_70], 0
mov [rsp+70h+var_68], 0
call init_tree
lea rax, default_charset_info
mov rax, [rax]
cmp dword ptr [rax+98h], 1
jnz short loc_63889
lea rax, default_charset_info
mov rax, [rax]
mov [rbp+var_58], rax
jmp short loc_63896
loc_63889:
lea rax, my_charset_latin1
mov [rbp+var_58], rax
jmp short $+2
loc_63896:
mov rax, [rbp+var_58]
mov cs:ft_stopword_cs, rax
loc_638A1:
lea rax, ft_stopword_file
cmp qword ptr [rax], 0
jz loc_639F0
mov [rbp+var_44], 0FFFFFFFFh
lea rax, ft_stopword_file
mov rax, [rax]
cmp byte ptr [rax], 0
jnz short loc_638D6
jmp short $+2
loc_638CA:
mov [rbp+var_4], 0
jmp loc_63A4B
loc_638D6:
lea rax, ft_stopword_file
mov rdi, [rax]
xor esi, esi
mov edx, 10h
call my_open
mov [rbp+var_8], eax
cmp eax, 0FFFFFFFFh
jnz short loc_63902
jmp short $+2
loc_638F6:
mov [rbp+var_4], 0FFFFFFFFh
jmp loc_63A4B
loc_63902:
mov edi, [rbp+var_8]
xor eax, eax
mov ecx, eax
mov edx, 2
mov rsi, rcx
call my_seek
mov [rbp+var_10], rax
mov edi, [rbp+var_8]
xor eax, eax
mov ecx, eax
xor edx, edx
mov rsi, rcx
call my_seek
lea rax, mi_key_memory_ft_stopwords
mov edi, [rax]
mov rsi, [rbp+var_10]
add rsi, 1
mov edx, 10h
call my_malloc
mov [rbp+var_18], rax
mov [rbp+var_20], rax
cmp rax, 0
jnz short loc_63959
jmp loc_639DB
loc_63959:
mov edi, [rbp+var_8]
mov rsi, [rbp+var_18]
mov rdx, [rbp+var_10]
mov ecx, 10h
call my_read
mov [rbp+var_10], rax
mov rax, [rbp+var_20]
add rax, [rbp+var_10]
mov [rbp+var_28], rax
loc_6397E:
mov rdi, cs:ft_stopword_cs
mov rdx, [rbp+var_28]
lea rsi, [rbp+var_20]
lea rcx, [rbp+var_40]
mov r8d, 1
call ft_simple_get_word
cmp al, 0
jz short loc_639CB
lea rax, mi_key_memory_ft_stopwords
mov edi, [rax]
mov rsi, [rbp+var_40]
mov rdx, [rbp+var_30]
xor eax, eax
mov ecx, eax
call my_strndup
mov rdi, rax
call ft_add_stopword
cmp eax, 0
jz short loc_639C9
jmp short loc_639D2
loc_639C9:
jmp short loc_6397E
loc_639CB:
mov [rbp+var_44], 0
loc_639D2:
mov rdi, [rbp+var_18]
call my_free
loc_639DB:
mov edi, [rbp+var_8]
mov esi, 10h
call my_close
mov eax, [rbp+var_44]
mov [rbp+var_4], eax
jmp short loc_63A4B
loc_639F0:
lea rax, ft_precompiled_stopwords
mov [rbp+var_50], rax
loc_639FB:
mov rax, [rbp+var_50]
cmp qword ptr [rax], 0
jz short loc_63A31
mov rax, [rbp+var_50]
mov rdi, [rax]
call ft_add_stopword
cmp eax, 0
jz short loc_63A21
jmp short $+2
loc_63A18:
mov [rbp+var_4], 0FFFFFFFFh
jmp short loc_63A4B
loc_63A21:
jmp short $+2
loc_63A23:
mov rax, [rbp+var_50]
add rax, 8
mov [rbp+var_50], rax
jmp short loc_639FB
loc_63A31:
lea rax, ft_stopword_file
lea rcx, aBuiltIn; "(built-in)"
mov [rax], rcx
jmp short $+2
loc_63A44:
mov [rbp+var_4], 0
loc_63A4B:
mov eax, [rbp+var_4]
add rsp, 70h
pop rbp
retn
| long long ft_init_stopwords()
{
long long ( *v0)(); // r9
long long v1; // rax
void *v3; // [rsp+18h] [rbp-58h]
char **i; // [rsp+20h] [rbp-50h]
unsigned int v5; // [rsp+2Ch] [rbp-44h]
_QWORD v6[3]; // [rsp+30h] [rbp-40h] BYREF
_BYTE *v7; // [rsp+48h] [rbp-28h]
_BYTE *v8; // [rsp+50h] [rbp-20h] BYREF
_BYTE *v9; // [rsp+58h] [rbp-18h]
long long v10; // [rsp+60h] [rbp-10h]
unsigned int v11; // [rsp+68h] [rbp-8h]
if ( !stopwords3 )
{
stopwords3 = my_malloc(mi_key_memory_ft_stopwords, 664LL, 0LL);
if ( !stopwords3 )
return (unsigned int)-1;
LODWORD(v0) = 0;
if ( ft_stopword_file )
v0 = FT_STOPWORD_free;
init_tree(stopwords3, 0, 0, 16, (unsigned int)FT_STOPWORD_cmp, (_DWORD)v0, 0LL, 0LL);
if ( *((_DWORD *)default_charset_info + 38) == 1 )
v3 = default_charset_info;
else
v3 = &my_charset_latin1;
ft_stopword_cs = (long long)v3;
}
if ( ft_stopword_file )
{
v5 = -1;
if ( *ft_stopword_file )
{
v11 = my_open(ft_stopword_file, 0LL, 16LL);
if ( v11 == -1 )
{
return (unsigned int)-1;
}
else
{
v10 = my_seek(v11, 0LL, 2LL, 0LL);
my_seek(v11, 0LL, 0LL, 0LL);
v9 = (_BYTE *)my_malloc(mi_key_memory_ft_stopwords, v10 + 1, 16LL);
v8 = v9;
if ( v9 )
{
v10 = my_read(v11, v9, v10, 16LL);
v7 = &v8[v10];
while ( ft_simple_get_word(ft_stopword_cs, &v8, (unsigned long long)v7, v6, 1) )
{
v1 = my_strndup(mi_key_memory_ft_stopwords, v6[0], v6[2], 0LL);
if ( (unsigned int)ft_add_stopword(v1) )
goto LABEL_21;
}
v5 = 0;
LABEL_21:
my_free(v9);
}
my_close(v11, 16LL);
return v5;
}
}
else
{
return 0;
}
}
else
{
for ( i = &ft_precompiled_stopwords; *i; ++i )
{
if ( (unsigned int)ft_add_stopword(*i) )
return (unsigned int)-1;
}
ft_stopword_file = "(built-in)";
return 0;
}
}
| ft_init_stopwords:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x70
CMP qword ptr [0x004fd900],0x0
JNZ 0x001638a1
LEA RAX,[0x4fd89c]
MOV EDI,dword ptr [RAX]
MOV ESI,0x298
XOR EAX,EAX
MOV EDX,EAX
CALL 0x0018a930
MOV qword ptr [0x004fd900],RAX
CMP RAX,0x0
JNZ 0x00163818
JMP 0x0016380c
LAB_0016380c:
MOV dword ptr [RBP + -0x4],0xffffffff
JMP 0x00163a4b
LAB_00163818:
MOV RDI,qword ptr [0x004fd900]
LEA RAX,[0x4fd8f8]
MOV RCX,qword ptr [RAX]
XOR EAX,EAX
MOV R9D,EAX
LEA RAX,[0x163ab0]
CMP RCX,0x0
CMOVNZ R9,RAX
XOR EAX,EAX
MOV EDX,EAX
MOV ECX,0x10
LEA R8,[0x163a60]
MOV RSI,RDX
MOV qword ptr [RSP],0x0
MOV qword ptr [RSP + 0x8],0x0
CALL 0x00191920
LEA RAX,[0x345c50]
MOV RAX,qword ptr [RAX]
CMP dword ptr [RAX + 0x98],0x1
JNZ 0x00163889
LEA RAX,[0x345c50]
MOV RAX,qword ptr [RAX]
MOV qword ptr [RBP + -0x58],RAX
JMP 0x00163896
LAB_00163889:
LEA RAX,[0x3ec550]
MOV qword ptr [RBP + -0x58],RAX
JMP 0x00163896
LAB_00163896:
MOV RAX,qword ptr [RBP + -0x58]
MOV qword ptr [0x004fd908],RAX
LAB_001638a1:
LEA RAX,[0x4fd8f8]
CMP qword ptr [RAX],0x0
JZ 0x001639f0
MOV dword ptr [RBP + -0x44],0xffffffff
LEA RAX,[0x4fd8f8]
MOV RAX,qword ptr [RAX]
CMP byte ptr [RAX],0x0
JNZ 0x001638d6
JMP 0x001638ca
LAB_001638ca:
MOV dword ptr [RBP + -0x4],0x0
JMP 0x00163a4b
LAB_001638d6:
LEA RAX,[0x4fd8f8]
MOV RDI,qword ptr [RAX]
XOR ESI,ESI
MOV EDX,0x10
CALL 0x0018b2a0
MOV dword ptr [RBP + -0x8],EAX
CMP EAX,-0x1
JNZ 0x00163902
JMP 0x001638f6
LAB_001638f6:
MOV dword ptr [RBP + -0x4],0xffffffff
JMP 0x00163a4b
LAB_00163902:
MOV EDI,dword ptr [RBP + -0x8]
XOR EAX,EAX
MOV ECX,EAX
MOV EDX,0x2
MOV RSI,RCX
CALL 0x0018c250
MOV qword ptr [RBP + -0x10],RAX
MOV EDI,dword ptr [RBP + -0x8]
XOR EAX,EAX
MOV ECX,EAX
XOR EDX,EDX
MOV RSI,RCX
CALL 0x0018c250
LEA RAX,[0x4fd89c]
MOV EDI,dword ptr [RAX]
MOV RSI,qword ptr [RBP + -0x10]
ADD RSI,0x1
MOV EDX,0x10
CALL 0x0018a930
MOV qword ptr [RBP + -0x18],RAX
MOV qword ptr [RBP + -0x20],RAX
CMP RAX,0x0
JNZ 0x00163959
JMP 0x001639db
LAB_00163959:
MOV EDI,dword ptr [RBP + -0x8]
MOV RSI,qword ptr [RBP + -0x18]
MOV RDX,qword ptr [RBP + -0x10]
MOV ECX,0x10
CALL 0x0018bab0
MOV qword ptr [RBP + -0x10],RAX
MOV RAX,qword ptr [RBP + -0x20]
ADD RAX,qword ptr [RBP + -0x10]
MOV qword ptr [RBP + -0x28],RAX
LAB_0016397e:
MOV RDI,qword ptr [0x004fd908]
MOV RDX,qword ptr [RBP + -0x28]
LEA RSI,[RBP + -0x20]
LEA RCX,[RBP + -0x40]
MOV R8D,0x1
CALL 0x00162fd0
CMP AL,0x0
JZ 0x001639cb
LEA RAX,[0x4fd89c]
MOV EDI,dword ptr [RAX]
MOV RSI,qword ptr [RBP + -0x40]
MOV RDX,qword ptr [RBP + -0x30]
XOR EAX,EAX
MOV ECX,EAX
CALL 0x0018ae20
MOV RDI,RAX
CALL 0x00163ae0
CMP EAX,0x0
JZ 0x001639c9
JMP 0x001639d2
LAB_001639c9:
JMP 0x0016397e
LAB_001639cb:
MOV dword ptr [RBP + -0x44],0x0
LAB_001639d2:
MOV RDI,qword ptr [RBP + -0x18]
CALL 0x0018acb0
LAB_001639db:
MOV EDI,dword ptr [RBP + -0x8]
MOV ESI,0x10
CALL 0x0018b530
MOV EAX,dword ptr [RBP + -0x44]
MOV dword ptr [RBP + -0x4],EAX
JMP 0x00163a4b
LAB_001639f0:
LEA RAX,[0x344a60]
MOV qword ptr [RBP + -0x50],RAX
LAB_001639fb:
MOV RAX,qword ptr [RBP + -0x50]
CMP qword ptr [RAX],0x0
JZ 0x00163a31
MOV RAX,qword ptr [RBP + -0x50]
MOV RDI,qword ptr [RAX]
CALL 0x00163ae0
CMP EAX,0x0
JZ 0x00163a21
JMP 0x00163a18
LAB_00163a18:
MOV dword ptr [RBP + -0x4],0xffffffff
JMP 0x00163a4b
LAB_00163a21:
JMP 0x00163a23
LAB_00163a23:
MOV RAX,qword ptr [RBP + -0x50]
ADD RAX,0x8
MOV qword ptr [RBP + -0x50],RAX
JMP 0x001639fb
LAB_00163a31:
LEA RAX,[0x4fd8f8]
LEA RCX,[0x1e4f81]
MOV qword ptr [RAX],RCX
JMP 0x00163a44
LAB_00163a44:
MOV dword ptr [RBP + -0x4],0x0
LAB_00163a4b:
MOV EAX,dword ptr [RBP + -0x4]
ADD RSP,0x70
POP RBP
RET
|
int4 ft_init_stopwords(void)
{
char cVar1;
int iVar2;
int8 uVar3;
code *pcVar4;
int4 *local_60;
int **local_58;
int4 local_4c;
int8 local_48 [2];
int8 local_38;
long local_30;
long local_28;
long local_20;
long local_18;
int local_10;
int4 local_c;
if (stopwords3 == 0) {
stopwords3 = my_malloc(mi_key_memory_ft_stopwords,0x298,0);
if (stopwords3 == 0) {
return 0xffffffff;
}
pcVar4 = (code *)0x0;
if (ft_stopword_file != (char *)0x0) {
pcVar4 = FT_STOPWORD_free;
}
init_tree(stopwords3,0,0,0x10,FT_STOPWORD_cmp,pcVar4,0,0);
if (*(int *)(default_charset_info + 0x98) == 1) {
local_60 = (int4 *)default_charset_info;
}
else {
local_60 = &my_charset_latin1;
}
ft_stopword_cs = local_60;
}
if (ft_stopword_file == (char *)0x0) {
for (local_58 = &ft_precompiled_stopwords; *local_58 != (int *)0x0;
local_58 = local_58 + 1) {
iVar2 = ft_add_stopword(*local_58);
if (iVar2 != 0) {
return 0xffffffff;
}
}
ft_stopword_file = "(built-in)";
local_c = 0;
}
else {
local_4c = 0xffffffff;
if (*ft_stopword_file == '\0') {
local_c = 0;
}
else {
local_10 = my_open(ft_stopword_file,0,0x10);
if (local_10 == -1) {
local_c = 0xffffffff;
}
else {
local_18 = my_seek(local_10,0,2);
my_seek(local_10,0,0);
local_28 = my_malloc(mi_key_memory_ft_stopwords,local_18 + 1,0x10);
local_20 = local_28;
if (local_28 != 0) {
local_18 = my_read(local_10,local_28,local_18,0x10);
local_30 = local_28 + local_18;
do {
cVar1 = ft_simple_get_word(ft_stopword_cs,&local_28,local_30,local_48,1);
if (cVar1 == '\0') {
local_4c = 0;
break;
}
uVar3 = my_strndup(mi_key_memory_ft_stopwords,local_48[0],local_38,0);
iVar2 = ft_add_stopword(uVar3);
} while (iVar2 == 0);
my_free(local_20);
}
my_close(local_10,0x10);
local_c = local_4c;
}
}
}
return local_c;
}
| |
42,634 | stbi__psd_is16(stbi__context*) | monkey531[P]llama/examples/llava/../../common/stb_image.h | static int stbi__psd_is16(stbi__context *s)
{
int channelCount, depth;
if (stbi__get32be(s) != 0x38425053) {
stbi__rewind( s );
return 0;
}
if (stbi__get16be(s) != 1) {
stbi__rewind( s );
return 0;
}
stbi__skip(s, 6);
channelCount = stbi__get16be(s);
if (channelCount < 0 || channelCount > 16) {
stbi__rewind( s );
return 0;
}
STBI_NOTUSED(stbi__get32be(s));
STBI_NOTUSED(stbi__get32be(s));
depth = stbi__get16be(s);
if (depth != 16) {
stbi__rewind( s );
return 0;
}
return 1;
} | O0 | c | stbi__psd_is16(stbi__context*):
subq $0x18, %rsp
movq %rdi, 0x8(%rsp)
movq 0x8(%rsp), %rdi
callq 0x92790
cmpl $0x38425053, %eax # imm = 0x38425053
je 0xa5791
movq 0x8(%rsp), %rdi
callq 0x907c0
movl $0x0, 0x14(%rsp)
jmp 0xa5822
movq 0x8(%rsp), %rdi
callq 0x927d0
cmpl $0x1, %eax
je 0xa57b4
movq 0x8(%rsp), %rdi
callq 0x907c0
movl $0x0, 0x14(%rsp)
jmp 0xa5822
movq 0x8(%rsp), %rdi
movl $0x6, %esi
callq 0x926c0
movq 0x8(%rsp), %rdi
callq 0x927d0
movl %eax, 0x4(%rsp)
cmpl $0x0, 0x4(%rsp)
jl 0xa57df
cmpl $0x10, 0x4(%rsp)
jle 0xa57f3
movq 0x8(%rsp), %rdi
callq 0x907c0
movl $0x0, 0x14(%rsp)
jmp 0xa5822
movq 0x8(%rsp), %rdi
callq 0x927d0
movl %eax, (%rsp)
cmpl $0x10, (%rsp)
je 0xa581a
movq 0x8(%rsp), %rdi
callq 0x907c0
movl $0x0, 0x14(%rsp)
jmp 0xa5822
movl $0x1, 0x14(%rsp)
movl 0x14(%rsp), %eax
addq $0x18, %rsp
retq
nopl (%rax,%rax)
| _ZL14stbi__psd_is16P13stbi__context:
sub rsp, 18h
mov [rsp+18h+var_10], rdi
mov rdi, [rsp+18h+var_10]
call _ZL13stbi__get32beP13stbi__context; stbi__get32be(stbi__context *)
cmp eax, 38425053h
jz short loc_A5791
mov rdi, [rsp+18h+var_10]
call _ZL12stbi__rewindP13stbi__context; stbi__rewind(stbi__context *)
mov [rsp+18h+var_4], 0
jmp loc_A5822
loc_A5791:
mov rdi, [rsp+18h+var_10]
call _ZL13stbi__get16beP13stbi__context; stbi__get16be(stbi__context *)
cmp eax, 1
jz short loc_A57B4
mov rdi, [rsp+18h+var_10]
call _ZL12stbi__rewindP13stbi__context; stbi__rewind(stbi__context *)
mov [rsp+18h+var_4], 0
jmp short loc_A5822
loc_A57B4:
mov rdi, [rsp+18h+var_10]
mov esi, 6
call _ZL10stbi__skipP13stbi__contexti; stbi__skip(stbi__context *,int)
mov rdi, [rsp+18h+var_10]
call _ZL13stbi__get16beP13stbi__context; stbi__get16be(stbi__context *)
mov [rsp+18h+var_14], eax
cmp [rsp+18h+var_14], 0
jl short loc_A57DF
cmp [rsp+18h+var_14], 10h
jle short loc_A57F3
loc_A57DF:
mov rdi, [rsp+18h+var_10]
call _ZL12stbi__rewindP13stbi__context; stbi__rewind(stbi__context *)
mov [rsp+18h+var_4], 0
jmp short loc_A5822
loc_A57F3:
mov rdi, [rsp+18h+var_10]
call _ZL13stbi__get16beP13stbi__context; stbi__get16be(stbi__context *)
mov [rsp+18h+var_18], eax
cmp [rsp+18h+var_18], 10h
jz short loc_A581A
mov rdi, [rsp+18h+var_10]
call _ZL12stbi__rewindP13stbi__context; stbi__rewind(stbi__context *)
mov [rsp+18h+var_4], 0
jmp short loc_A5822
loc_A581A:
mov [rsp+18h+var_4], 1
loc_A5822:
mov eax, [rsp+18h+var_4]
add rsp, 18h
retn
| long long stbi__psd_is16(_QWORD *a1)
{
if ( (unsigned int)stbi__get32be((long long)a1) == 943870035
&& (unsigned int)stbi__get16be((long long)a1) == 1
&& (stbi__skip((long long)a1, 6), (unsigned int)stbi__get16be((long long)a1) <= 0x10)
&& (unsigned int)stbi__get16be((long long)a1) == 16 )
{
return 1;
}
else
{
stbi__rewind(a1);
return 0;
}
}
| stbi__psd_is16:
SUB RSP,0x18
MOV qword ptr [RSP + 0x8],RDI
MOV RDI,qword ptr [RSP + 0x8]
CALL 0x00192790
CMP EAX,0x38425053
JZ 0x001a5791
MOV RDI,qword ptr [RSP + 0x8]
CALL 0x001907c0
MOV dword ptr [RSP + 0x14],0x0
JMP 0x001a5822
LAB_001a5791:
MOV RDI,qword ptr [RSP + 0x8]
CALL 0x001927d0
CMP EAX,0x1
JZ 0x001a57b4
MOV RDI,qword ptr [RSP + 0x8]
CALL 0x001907c0
MOV dword ptr [RSP + 0x14],0x0
JMP 0x001a5822
LAB_001a57b4:
MOV RDI,qword ptr [RSP + 0x8]
MOV ESI,0x6
CALL 0x001926c0
MOV RDI,qword ptr [RSP + 0x8]
CALL 0x001927d0
MOV dword ptr [RSP + 0x4],EAX
CMP dword ptr [RSP + 0x4],0x0
JL 0x001a57df
CMP dword ptr [RSP + 0x4],0x10
JLE 0x001a57f3
LAB_001a57df:
MOV RDI,qword ptr [RSP + 0x8]
CALL 0x001907c0
MOV dword ptr [RSP + 0x14],0x0
JMP 0x001a5822
LAB_001a57f3:
MOV RDI,qword ptr [RSP + 0x8]
CALL 0x001927d0
MOV dword ptr [RSP],EAX
CMP dword ptr [RSP],0x10
JZ 0x001a581a
MOV RDI,qword ptr [RSP + 0x8]
CALL 0x001907c0
MOV dword ptr [RSP + 0x14],0x0
JMP 0x001a5822
LAB_001a581a:
MOV dword ptr [RSP + 0x14],0x1
LAB_001a5822:
MOV EAX,dword ptr [RSP + 0x14]
ADD RSP,0x18
RET
|
/* stbi__psd_is16(stbi__context*) */
int4 stbi__psd_is16(stbi__context *param_1)
{
int iVar1;
int4 local_4;
iVar1 = stbi__get32be(param_1);
if (iVar1 == 0x38425053) {
iVar1 = stbi__get16be(param_1);
if (iVar1 == 1) {
stbi__skip(param_1,6);
iVar1 = stbi__get16be(param_1);
if ((iVar1 < 0) || (0x10 < iVar1)) {
stbi__rewind(param_1);
local_4 = 0;
}
else {
iVar1 = stbi__get16be(param_1);
if (iVar1 == 0x10) {
local_4 = 1;
}
else {
stbi__rewind(param_1);
local_4 = 0;
}
}
}
else {
stbi__rewind(param_1);
local_4 = 0;
}
}
else {
stbi__rewind(param_1);
local_4 = 0;
}
return local_4;
}
| |
42,635 | exchange_int16s | bluesky950520[P]quickjs/cutils.c | static void exchange_int16s(void *a, void *b, size_t size) {
uint16_t *ap = (uint16_t *)a;
uint16_t *bp = (uint16_t *)b;
for (size /= sizeof(uint16_t); size-- != 0;) {
uint16_t t = *ap;
*ap++ = *bp;
*bp++ = t;
}
} | O0 | c | exchange_int16s:
movq %rdi, -0x8(%rsp)
movq %rsi, -0x10(%rsp)
movq %rdx, -0x18(%rsp)
movq -0x8(%rsp), %rax
movq %rax, -0x20(%rsp)
movq -0x10(%rsp), %rax
movq %rax, -0x28(%rsp)
movq -0x18(%rsp), %rax
shrq %rax
movq %rax, -0x18(%rsp)
movq -0x18(%rsp), %rax
movq %rax, %rcx
addq $-0x1, %rcx
movq %rcx, -0x18(%rsp)
cmpq $0x0, %rax
je 0x2150b
movq -0x20(%rsp), %rax
movw (%rax), %ax
movw %ax, -0x2a(%rsp)
movq -0x28(%rsp), %rax
movw (%rax), %cx
movq -0x20(%rsp), %rax
movq %rax, %rdx
addq $0x2, %rdx
movq %rdx, -0x20(%rsp)
movw %cx, (%rax)
movw -0x2a(%rsp), %cx
movq -0x28(%rsp), %rax
movq %rax, %rdx
addq $0x2, %rdx
movq %rdx, -0x28(%rsp)
movw %cx, (%rax)
jmp 0x214b0
retq
nopl (%rax)
| exchange_int16s:
mov [rsp+var_8], rdi
mov [rsp+var_10], rsi
mov [rsp+var_18], rdx
mov rax, [rsp+var_8]
mov [rsp+var_20], rax
mov rax, [rsp+var_10]
mov [rsp+var_28], rax
mov rax, [rsp+var_18]
shr rax, 1
mov [rsp+var_18], rax
loc_214B0:
mov rax, [rsp+var_18]
mov rcx, rax
add rcx, 0FFFFFFFFFFFFFFFFh
mov [rsp+var_18], rcx
cmp rax, 0
jz short locret_2150B
mov rax, [rsp+var_20]
mov ax, [rax]
mov [rsp+var_2A], ax
mov rax, [rsp+var_28]
mov cx, [rax]
mov rax, [rsp+var_20]
mov rdx, rax
add rdx, 2
mov [rsp+var_20], rdx
mov [rax], cx
mov cx, [rsp+var_2A]
mov rax, [rsp+var_28]
mov rdx, rax
add rdx, 2
mov [rsp+var_28], rdx
mov [rax], cx
jmp short loc_214B0
locret_2150B:
retn
| long long exchange_int16s(__int16 *a1, __int16 *a2, unsigned long long a3)
{
long long result; // rax
__int16 *v4; // rax
__int16 *v5; // rax
__int16 v6; // [rsp+0h] [rbp-2Ah]
unsigned long long v9; // [rsp+12h] [rbp-18h]
v9 = a3 >> 1;
while ( 1 )
{
result = v9--;
if ( !result )
break;
v6 = *a1;
v4 = a1++;
*v4 = *a2;
v5 = a2++;
*v5 = v6;
}
return result;
}
| exchange_int16s:
MOV qword ptr [RSP + -0x8],RDI
MOV qword ptr [RSP + -0x10],RSI
MOV qword ptr [RSP + -0x18],RDX
MOV RAX,qword ptr [RSP + -0x8]
MOV qword ptr [RSP + -0x20],RAX
MOV RAX,qword ptr [RSP + -0x10]
MOV qword ptr [RSP + -0x28],RAX
MOV RAX,qword ptr [RSP + -0x18]
SHR RAX,0x1
MOV qword ptr [RSP + -0x18],RAX
LAB_001214b0:
MOV RAX,qword ptr [RSP + -0x18]
MOV RCX,RAX
ADD RCX,-0x1
MOV qword ptr [RSP + -0x18],RCX
CMP RAX,0x0
JZ 0x0012150b
MOV RAX,qword ptr [RSP + -0x20]
MOV AX,word ptr [RAX]
MOV word ptr [RSP + -0x2a],AX
MOV RAX,qword ptr [RSP + -0x28]
MOV CX,word ptr [RAX]
MOV RAX,qword ptr [RSP + -0x20]
MOV RDX,RAX
ADD RDX,0x2
MOV qword ptr [RSP + -0x20],RDX
MOV word ptr [RAX],CX
MOV CX,word ptr [RSP + -0x2a]
MOV RAX,qword ptr [RSP + -0x28]
MOV RDX,RAX
ADD RDX,0x2
MOV qword ptr [RSP + -0x28],RDX
MOV word ptr [RAX],CX
JMP 0x001214b0
LAB_0012150b:
RET
|
void exchange_int16s(int2 *param_1,int2 *param_2,ulong param_3)
{
int2 uVar1;
int2 *local_28;
int2 *local_20;
ulong local_18;
local_28 = param_2;
local_20 = param_1;
local_18 = param_3 >> 1;
while (local_18 != 0) {
uVar1 = *local_20;
*local_20 = *local_28;
*local_28 = uVar1;
local_28 = local_28 + 1;
local_20 = local_20 + 1;
local_18 = local_18 - 1;
}
return;
}
| |
42,636 | exchange_int16s | bluesky950520[P]quickjs/cutils.c | static void exchange_int16s(void *a, void *b, size_t size) {
uint16_t *ap = (uint16_t *)a;
uint16_t *bp = (uint16_t *)b;
for (size /= sizeof(uint16_t); size-- != 0;) {
uint16_t t = *ap;
*ap++ = *bp;
*bp++ = t;
}
} | O1 | c | exchange_int16s:
cmpq $0x2, %rdx
jb 0x1c969
shrq %rdx
xorl %eax, %eax
movzwl (%rdi,%rax,2), %ecx
movzwl (%rsi,%rax,2), %r8d
movw %r8w, (%rdi,%rax,2)
movw %cx, (%rsi,%rax,2)
incq %rax
cmpq %rax, %rdx
jne 0x1c94f
retq
| exchange_int16s:
cmp rdx, 2
jb short locret_1C969
shr rdx, 1
xor eax, eax
loc_1C94F:
movzx ecx, word ptr [rdi+rax*2]
movzx r8d, word ptr [rsi+rax*2]
mov [rdi+rax*2], r8w
mov [rsi+rax*2], cx
inc rax
cmp rdx, rax
jnz short loc_1C94F
locret_1C969:
retn
| void exchange_int16s(long long a1, long long a2, unsigned long long a3)
{
unsigned long long v3; // rdx
long long v4; // rax
__int16 v5; // cx
if ( a3 >= 2 )
{
v3 = a3 >> 1;
v4 = 0LL;
do
{
v5 = *(_WORD *)(a1 + 2 * v4);
*(_WORD *)(a1 + 2 * v4) = *(_WORD *)(a2 + 2 * v4);
*(_WORD *)(a2 + 2 * v4++) = v5;
}
while ( v3 != v4 );
}
}
| |||
42,637 | mi_update_static_record | eloqsql/storage/myisam/mi_statrec.c | int _mi_update_static_record(MI_INFO *info, my_off_t pos, const uchar *record)
{
info->rec_cache.seek_not_done=1; /* We have done a seek */
return (info->s->file_write(info,
record, info->s->base.reclength,
pos,
MYF(MY_NABP)) != 0);
} | O0 | c | mi_update_static_record:
pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movq -0x8(%rbp), %rax
movl $0x1, 0x300(%rax)
movq -0x8(%rbp), %rax
movq (%rax), %rax
movq 0x2e8(%rax), %rax
movq -0x8(%rbp), %rdi
movq -0x18(%rbp), %rsi
movq -0x8(%rbp), %rcx
movq (%rcx), %rcx
movq 0x140(%rcx), %rdx
movq -0x10(%rbp), %rcx
movl $0x4, %r8d
callq *%rax
cmpq $0x0, %rax
setne %al
andb $0x1, %al
movzbl %al, %eax
addq $0x20, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
| _mi_update_static_record:
push rbp
mov rbp, rsp
sub rsp, 20h
mov [rbp+var_8], rdi
mov [rbp+var_10], rsi
mov [rbp+var_18], rdx
mov rax, [rbp+var_8]
mov dword ptr [rax+300h], 1
mov rax, [rbp+var_8]
mov rax, [rax]
mov rax, [rax+2E8h]
mov rdi, [rbp+var_8]
mov rsi, [rbp+var_18]
mov rcx, [rbp+var_8]
mov rcx, [rcx]
mov rdx, [rcx+140h]
mov rcx, [rbp+var_10]
mov r8d, 4
call rax
cmp rax, 0
setnz al
and al, 1
movzx eax, al
add rsp, 20h
pop rbp
retn
| _BOOL8 mi_update_static_record(_DWORD *a1, long long a2, long long a3)
{
a1[192] = 1;
return (*(long long ( **)(_DWORD *, long long, _QWORD, long long, long long))(*(_QWORD *)a1 + 744LL))(
a1,
a3,
*(_QWORD *)(*(_QWORD *)a1 + 320LL),
a2,
4LL) != 0;
}
| _mi_update_static_record:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x20
MOV qword ptr [RBP + -0x8],RDI
MOV qword ptr [RBP + -0x10],RSI
MOV qword ptr [RBP + -0x18],RDX
MOV RAX,qword ptr [RBP + -0x8]
MOV dword ptr [RAX + 0x300],0x1
MOV RAX,qword ptr [RBP + -0x8]
MOV RAX,qword ptr [RAX]
MOV RAX,qword ptr [RAX + 0x2e8]
MOV RDI,qword ptr [RBP + -0x8]
MOV RSI,qword ptr [RBP + -0x18]
MOV RCX,qword ptr [RBP + -0x8]
MOV RCX,qword ptr [RCX]
MOV RDX,qword ptr [RCX + 0x140]
MOV RCX,qword ptr [RBP + -0x10]
MOV R8D,0x4
CALL RAX
CMP RAX,0x0
SETNZ AL
AND AL,0x1
MOVZX EAX,AL
ADD RSP,0x20
POP RBP
RET
|
bool _mi_update_static_record(long *param_1,int8 param_2,int8 param_3)
{
long lVar1;
*(int4 *)(param_1 + 0x60) = 1;
lVar1 = (**(code **)(*param_1 + 0x2e8))
(param_1,param_3,*(int8 *)(*param_1 + 0x140),param_2,4);
return lVar1 != 0;
}
| |
42,638 | pfs_delete_current_thread_v1 | eloqsql/storage/perfschema/pfs.cc | void pfs_delete_current_thread_v1(void)
{
PFS_thread *thread= my_thread_get_THR_PFS();
if (thread != NULL)
{
aggregate_thread(thread, thread->m_account, thread->m_user, thread->m_host);
my_thread_set_THR_PFS(NULL);
destroy_thread(thread);
}
} | O3 | cpp | pfs_delete_current_thread_v1:
pushq %rbp
movq %rsp, %rbp
pushq %rbx
pushq %rax
movl 0x393a28(%rip), %edi # 0x3d5a2c
callq 0x26540
testq %rax, %rax
je 0x42049
movq %rax, %rbx
movq 0x1620(%rax), %rsi
movq 0x1610(%rax), %rcx
movq 0x1618(%rax), %rdx
movq %rax, %rdi
callq 0x277ad
movl 0x3939f8(%rip), %edi # 0x3d5a2c
xorl %esi, %esi
callq 0x260c0
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %rbp
jmp 0x36109
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
| pfs_delete_current_thread_v1:
push rbp
mov rbp, rsp
push rbx
push rax
mov edi, cs:THR_PFS
call _pthread_getspecific
test rax, rax
jz short loc_42049
mov rbx, rax
mov rsi, [rax+1620h]; PFS_account *
mov rcx, [rax+1610h]; PFS_host *
mov rdx, [rax+1618h]; PFS_user *
mov rdi, rax; PFS_thread *
call _Z16aggregate_threadP10PFS_threadP11PFS_accountP8PFS_userP8PFS_host; aggregate_thread(PFS_thread *,PFS_account *,PFS_user *,PFS_host *)
mov edi, cs:THR_PFS
xor esi, esi
call _pthread_setspecific
mov rdi, rbx; PFS_thread *
add rsp, 8
pop rbx
pop rbp
jmp _Z14destroy_threadP10PFS_thread; destroy_thread(PFS_thread *)
loc_42049:
add rsp, 8
pop rbx
pop rbp
retn
| PFS_host **pfs_delete_current_thread_v1()
{
PFS_host **result; // rax
PFS_thread *v1; // rbx
result = (PFS_host **)pthread_getspecific((unsigned int)THR_PFS);
if ( result )
{
v1 = (PFS_thread *)result;
aggregate_thread((PFS_thread *)result, result[708], result[707], result[706]);
pthread_setspecific((unsigned int)THR_PFS, 0LL);
return (PFS_host **)destroy_thread(v1);
}
return result;
}
| pfs_delete_current_thread_v1:
PUSH RBP
MOV RBP,RSP
PUSH RBX
PUSH RAX
MOV EDI,dword ptr [0x004d5a2c]
CALL 0x00126540
TEST RAX,RAX
JZ 0x00142049
MOV RBX,RAX
MOV RSI,qword ptr [RAX + 0x1620]
MOV RCX,qword ptr [RAX + 0x1610]
MOV RDX,qword ptr [RAX + 0x1618]
MOV RDI,RAX
CALL 0x001277ad
MOV EDI,dword ptr [0x004d5a2c]
XOR ESI,ESI
CALL 0x001260c0
MOV RDI,RBX
ADD RSP,0x8
POP RBX
POP RBP
JMP 0x00136109
LAB_00142049:
ADD RSP,0x8
POP RBX
POP RBP
RET
|
void pfs_delete_current_thread_v1(void)
{
PFS_thread *pPVar1;
pPVar1 = (PFS_thread *)pthread_getspecific(THR_PFS);
if (pPVar1 != (PFS_thread *)0x0) {
aggregate_thread(pPVar1,*(PFS_account **)(pPVar1 + 0x1620),*(PFS_user **)(pPVar1 + 0x1618),
*(PFS_host **)(pPVar1 + 0x1610));
pthread_setspecific(THR_PFS,(void *)0x0);
destroy_thread(pPVar1);
return;
}
return;
}
| |
42,639 | 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>::type_name() const | llama.cpp/common/json.hpp | JSON_HEDLEY_RETURNS_NON_NULL
const char* type_name() const noexcept
{
switch (m_data.m_type)
{
case value_t::null:
return "null";
case value_t::object:
return "object";
case value_t::array:
return "array";
case value_t::string:
return "string";
case value_t::boolean:
return "boolean";
case value_t::binary:
return "binary";
case value_t::discarded:
return "discarded";
case value_t::number_integer:
case value_t::number_unsigned:
case value_t::number_float:
default:
return "number";
}
} | 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>::type_name() const:
movzbl (%rdi), %eax
cmpq $0x9, %rax
ja 0xafc8b
leaq 0xdd222(%rip), %rcx # 0x18cea8
movq (%rcx,%rax,8), %rax
retq
leaq 0x926da(%rip), %rax # 0x14236c
retq
nop
| _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE9type_nameEv:
movzx eax, byte ptr [rdi]
cmp rax, 9
ja short loc_AFC8B
lea rcx, off_18CEA8; "null"
mov rax, [rcx+rax*8]
retn
loc_AFC8B:
lea rax, aNumber; "number"
retn
| const char * nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::type_name(
unsigned __int8 *a1)
{
unsigned long long v1; // rax
v1 = *a1;
if ( v1 > 9 )
return "number";
else
return (const char *)*(&off_18CEA8 + v1);
}
| type_name:
MOVZX EAX,byte ptr [RDI]
CMP RAX,0x9
JA 0x001afc8b
LEA RCX,[0x28cea8]
MOV RAX,qword ptr [RCX + RAX*0x8]
RET
LAB_001afc8b:
LEA RAX,[0x24236c]
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>::type_name() const */
char * __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>
::type_name(basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,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)
{
if ((ulong)(byte)*this < 10) {
return (&PTR_s_null_0028cea8)[(byte)*this];
}
return "number";
}
| |
42,640 | intx::internal::udivrem_by2(unsigned long*, int, intx::uint<128u>) | corpus-core[P]colibri-stateless/build_O3/_deps/intx-src/include/intx/intx.hpp | inline uint128 udivrem_by2(uint64_t u[], int len, uint128 d) noexcept
{
INTX_REQUIRE(len >= 3);
const auto reciprocal = reciprocal_3by2(d);
auto rem = uint128{u[len - 2], u[len - 1]}; // Set the 2 top words as remainder.
u[len - 1] = u[len - 2] = 0; // Reset these words being a part of the result quotient.
auto it = &u[len - 3];
do
{
std::tie(*it, rem) = udivrem_3by2(rem[1], rem[0], *it, d, reciprocal);
} while (it-- != &u[0]);
return rem;
} | O3 | cpp | intx::internal::udivrem_by2(unsigned long*, int, intx::uint<128u>):
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
cmpl $0x2, %esi
jle 0x3e176
movq %rcx, %rbx
movq %rdx, %r14
movl %esi, %ebp
movq %rdi, %r12
movq %rdx, %rdi
movq %rcx, %rsi
callq 0x3e4d0
movq %rax, 0x10(%rsp)
movl %ebp, %eax
leaq (%r12,%rax,8), %r10
addq $-0x18, %r10
movq 0x8(%r10), %rdi
movq 0x10(%r10), %r8
xorps %xmm0, %xmm0
movups %xmm0, 0x8(%r10)
leaq 0x8(%rsp), %r11
movq %rsp, %r15
movq %r12, %rcx
movq %r8, %rax
mulq 0x10(%rsp)
movq %rax, %r9
movq %rdx, %rsi
xorl %r13d, %r13d
addq %rdi, %r9
movq (%r10), %rbp
adcq %r8, %rsi
movq %rsi, %rax
imulq %rbx, %rax
subq %rax, %rdi
movq %rsi, %rax
mulq %r14
movq %r13, 0x8(%rsp)
movq %r13, (%rsp)
movb $0x1, %r8b
movq %r11, %r12
movzbl %r13b, %r13d
btl $0x0, %r13d
sbbq %rax, %rbp
setb %r13b
movq %rbp, (%r12)
movq %rdx, %rax
movq %rdi, %rbp
movq %r15, %r12
testb $0x1, %r8b
movl $0x0, %r8d
jne 0x3e03f
movq 0x8(%rsp), %r8
movq (%rsp), %rax
xorl %edx, %edx
movq %rdx, 0x8(%rsp)
movq %rdx, (%rsp)
movb $0x1, %dil
movq %r14, %r12
movq %r11, %r13
movzbl %dl, %edx
btl $0x0, %edx
sbbq %r12, %r8
setb %dl
movq %r8, (%r13)
movq %rbx, %r12
movq %rax, %r8
movq %r15, %r13
testb $0x1, %dil
movl $0x0, %edi
jne 0x3e085
movq 0x8(%rsp), %rdi
movq (%rsp), %r8
cmpq %r9, %r8
jae 0x3e0bd
incq %rsi
jmp 0x3e0fd
xorl %eax, %eax
movq %rax, 0x8(%rsp)
movq %rax, (%rsp)
movb $0x1, %dl
movq %r14, %r9
movq %r11, %r12
movzbl %al, %eax
btl $0x0, %eax
adcq %rdi, %r9
setb %al
movq %r9, (%r12)
movq %rbx, %r9
movq %r8, %rdi
movq %r15, %r12
testb $0x1, %dl
movl $0x0, %edx
jne 0x3e0d0
movq 0x8(%rsp), %rdi
movq (%rsp), %r8
cmpq %r14, %rdi
movq %r8, %rax
sbbq %rbx, %rax
jb 0x3e14b
xorl %eax, %eax
movq %rax, 0x8(%rsp)
movq %rax, (%rsp)
movb $0x1, %dl
movq %r14, %r9
movq %r11, %r12
movzbl %al, %eax
btl $0x0, %eax
sbbq %r9, %rdi
setb %al
movq %rdi, (%r12)
movq %rbx, %r9
movq %r8, %rdi
movq %r15, %r12
testb $0x1, %dl
movl $0x0, %edx
jne 0x3e11b
incq %rsi
movq 0x8(%rsp), %rdi
movq (%rsp), %r8
movq %rcx, %r12
movq %rsi, (%r10)
leaq -0x8(%r10), %rax
cmpq %rcx, %r10
movq %rax, %r10
jne 0x3e003
movq %rdi, %rax
movq %r8, %rdx
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x43ba2(%rip), %rdi # 0x81d1f
leaq 0x43a2a(%rip), %rsi # 0x81bae
leaq 0x43b55(%rip), %rcx # 0x81ce0
movl $0x65c, %edx # imm = 0x65C
callq 0x21130
| _ZN4intx8internal11udivrem_by2EPmiNS_4uintILj128EEE:
push rbp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 18h
cmp esi, 2
jle loc_3E176
mov rbx, rcx
mov r14, rdx
mov ebp, esi
mov r12, rdi
mov rdi, rdx
mov rsi, rcx
call _ZN4intx15reciprocal_3by2ENS_4uintILj128EEE; intx::reciprocal_3by2(intx::uint<128u>)
mov [rsp+48h+var_38], rax
mov eax, ebp
lea r10, [r12+rax*8]
add r10, 0FFFFFFFFFFFFFFE8h
mov rdi, [r10+8]
mov r8, [r10+10h]
xorps xmm0, xmm0
movups xmmword ptr [r10+8], xmm0
lea r11, [rsp+48h+var_40]
mov r15, rsp
loc_3E003:
mov rcx, r12
mov rax, r8
mul [rsp+48h+var_38]
mov r9, rax
mov rsi, rdx
xor r13d, r13d
add r9, rdi
mov rbp, [r10]
adc rsi, r8
mov rax, rsi
imul rax, rbx
sub rdi, rax
mov rax, rsi
mul r14
mov [rsp+48h+var_40], r13
mov [rsp+48h+var_48], r13
mov r8b, 1
mov r12, r11
loc_3E03F:
movzx r13d, r13b
bt r13d, 0
sbb rbp, rax
setb r13b
mov [r12], rbp
mov rax, rdx
mov rbp, rdi
mov r12, r15
test r8b, 1
mov r8d, 0
jnz short loc_3E03F
mov r8, [rsp+48h+var_40]
mov rax, [rsp+48h+var_48]
xor edx, edx
mov [rsp+48h+var_40], rdx
mov [rsp+48h+var_48], rdx
mov dil, 1
mov r12, r14
mov r13, r11
loc_3E085:
movzx edx, dl
bt edx, 0
sbb r8, r12
setb dl
mov [r13+0], r8
mov r12, rbx
mov r8, rax
mov r13, r15
test dil, 1
mov edi, 0
jnz short loc_3E085
mov rdi, [rsp+48h+var_40]
mov r8, [rsp+48h+var_48]
cmp r8, r9
jnb short loc_3E0BD
inc rsi
jmp short loc_3E0FD
loc_3E0BD:
xor eax, eax
mov [rsp+48h+var_40], rax
mov [rsp+48h+var_48], rax
mov dl, 1
mov r9, r14
mov r12, r11
loc_3E0D0:
movzx eax, al
bt eax, 0
adc r9, rdi
setb al
mov [r12], r9
mov r9, rbx
mov rdi, r8
mov r12, r15
test dl, 1
mov edx, 0
jnz short loc_3E0D0
mov rdi, [rsp+48h+var_40]
mov r8, [rsp+48h+var_48]
loc_3E0FD:
cmp rdi, r14
mov rax, r8
sbb rax, rbx
jb short loc_3E14B
xor eax, eax
mov [rsp+48h+var_40], rax
mov [rsp+48h+var_48], rax
mov dl, 1
mov r9, r14
mov r12, r11
loc_3E11B:
movzx eax, al
bt eax, 0
sbb rdi, r9
setb al
mov [r12], rdi
mov r9, rbx
mov rdi, r8
mov r12, r15
test dl, 1
mov edx, 0
jnz short loc_3E11B
inc rsi
mov rdi, [rsp+48h+var_40]
mov r8, [rsp+48h+var_48]
loc_3E14B:
mov r12, rcx
mov [r10], rsi
lea rax, [r10-8]
cmp r10, rcx
mov r10, rax
jnz loc_3E003
mov rax, rdi
mov rdx, r8
add rsp, 18h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
loc_3E176:
lea rdi, aDlen3+1; "len >= 3"
lea rsi, aWorkspaceLlm4b_3; "/workspace/llm4binary/github/2025_star3"...
lea rcx, aUint128IntxInt; "uint128 intx::internal::udivrem_by2(uin"...
mov edx, 65Ch
call ___assert_fail
| long long intx::internal::udivrem_by2(__int128 a1, unsigned long long a2, unsigned long long a3)
{
_QWORD *v5; // r12
_QWORD *v6; // r10
unsigned long long v7; // r8
_QWORD *v8; // rcx
bool v9; // r13
unsigned long long v10; // kr10_8
unsigned long long v11; // rbp
unsigned __int128 v12; // rax
char v13; // r8
unsigned long long *v14; // r12
bool v15; // cf
unsigned long long v16; // rbp
bool v17; // zf
unsigned long long v18; // r8
unsigned long long v19; // rax
bool v20; // dl
char v21; // di
unsigned long long v22; // r12
unsigned long long *v23; // r13
unsigned long long v24; // r8
char v25; // al
char v26; // dl
unsigned long long v27; // r9
unsigned long long *v28; // r12
unsigned long long v29; // r9
bool v30; // al
char v31; // dl
unsigned long long v32; // r9
unsigned long long *v33; // r12
unsigned long long v34; // rdi
unsigned long long v36; // [rsp+0h] [rbp-48h] BYREF
unsigned long long v37; // [rsp+8h] [rbp-40h] BYREF
long long v38; // [rsp+10h] [rbp-38h]
if ( SDWORD2(a1) <= 2 )
__assert_fail(
"len >= 3",
"/workspace/llm4binary/github/2025_star3/corpus-core[P]colibri-stateless/build_O3/_deps/intx-src/include/intx/intx.hpp",
1628LL,
"uint128 intx::internal::udivrem_by2(uint64_t *, int, uint128)");
v5 = (_QWORD *)a1;
v38 = intx::reciprocal_3by2(a2, a3);
v6 = (_QWORD *)(a1 + 8LL * DWORD2(a1) - 24);
*(_QWORD *)&a1 = v6[1];
v7 = v6[2];
*(_OWORD *)(v6 + 1) = 0LL;
do
{
v8 = v5;
*((_QWORD *)&a1 + 1) = ((unsigned long long)v38 * (unsigned __int128)v7) >> 64;
v9 = 0;
v11 = *v6;
v10 = a1 + v38 * v7;
*((_QWORD *)&a1 + 1) = (a1 + __PAIR128__(v7, v38 * v7)) >> 64;
*(_QWORD *)&a1 = a1 - a3 * *((_QWORD *)&a1 + 1);
v12 = a2 * (unsigned __int128)*((unsigned long long *)&a1 + 1);
v37 = 0LL;
v36 = 0LL;
v13 = 1;
v14 = &v37;
do
{
v15 = v11 < v9 + (unsigned long long)v12;
v16 = v11 - (v9 + (_QWORD)v12);
v9 = v15;
*v14 = v16;
*(_QWORD *)&v12 = *((_QWORD *)&v12 + 1);
v11 = a1;
v14 = &v36;
v17 = (v13 & 1) == 0;
v13 = 0;
}
while ( !v17 );
v18 = v37;
v19 = v36;
v20 = 0;
v37 = 0LL;
v36 = 0LL;
v21 = 1;
v22 = a2;
v23 = &v37;
do
{
v15 = v18 < v20 + v22;
v24 = v18 - (v20 + v22);
v20 = v15;
*v23 = v24;
v22 = a3;
v18 = v19;
v23 = &v36;
v17 = (v21 & 1) == 0;
v21 = 0;
}
while ( !v17 );
*(_QWORD *)&a1 = v37;
v7 = v36;
if ( v36 >= v10 )
{
v25 = 0;
v37 = 0LL;
v36 = 0LL;
v26 = 1;
v27 = a2;
v28 = &v37;
do
{
v15 = __CFADD__((v25 & 1) != 0, v27);
v29 = ((v25 & 1) != 0) + v27;
v25 = v15 | __CFADD__((_QWORD)a1, v29);
*v28 = a1 + v29;
v27 = a3;
*(_QWORD *)&a1 = v7;
v28 = &v36;
v17 = (v26 & 1) == 0;
v26 = 0;
}
while ( !v17 );
*(_QWORD *)&a1 = v37;
v7 = v36;
}
else
{
++*((_QWORD *)&a1 + 1);
}
if ( __PAIR128__(v7, a1) >= __PAIR128__(a3, a2) )
{
v30 = 0;
v37 = 0LL;
v36 = 0LL;
v31 = 1;
v32 = a2;
v33 = &v37;
do
{
v15 = (unsigned long long)a1 < v30 + v32;
v34 = a1 - (v30 + v32);
v30 = v15;
*v33 = v34;
v32 = a3;
*(_QWORD *)&a1 = v7;
v33 = &v36;
v17 = (v31 & 1) == 0;
v31 = 0;
}
while ( !v17 );
++*((_QWORD *)&a1 + 1);
*(_QWORD *)&a1 = v37;
v7 = v36;
}
v5 = v8;
*v6 = *((_QWORD *)&a1 + 1);
v17 = v6-- == v8;
}
while ( !v17 );
return a1;
}
| udivrem_by2:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x18
CMP ESI,0x2
JLE 0x0013e176
MOV RBX,RCX
MOV R14,RDX
MOV EBP,ESI
MOV R12,RDI
MOV RDI,RDX
MOV RSI,RCX
CALL 0x0013e4d0
MOV qword ptr [RSP + 0x10],RAX
MOV EAX,EBP
LEA R10,[R12 + RAX*0x8]
ADD R10,-0x18
MOV RDI,qword ptr [R10 + 0x8]
MOV R8,qword ptr [R10 + 0x10]
XORPS XMM0,XMM0
MOVUPS xmmword ptr [R10 + 0x8],XMM0
LEA R11,[RSP + 0x8]
MOV R15,RSP
LAB_0013e003:
MOV RCX,R12
MOV RAX,R8
MUL qword ptr [RSP + 0x10]
MOV R9,RAX
MOV RSI,RDX
XOR R13D,R13D
ADD R9,RDI
MOV RBP,qword ptr [R10]
ADC RSI,R8
MOV RAX,RSI
IMUL RAX,RBX
SUB RDI,RAX
MOV RAX,RSI
MUL R14
MOV qword ptr [RSP + 0x8],R13
MOV qword ptr [RSP],R13
MOV R8B,0x1
MOV R12,R11
LAB_0013e03f:
MOVZX R13D,R13B
BT R13D,0x0
SBB RBP,RAX
SETC R13B
MOV qword ptr [R12],RBP
MOV RAX,RDX
MOV RBP,RDI
MOV R12,R15
TEST R8B,0x1
MOV R8D,0x0
JNZ 0x0013e03f
MOV R8,qword ptr [RSP + 0x8]
MOV RAX,qword ptr [RSP]
XOR EDX,EDX
MOV qword ptr [RSP + 0x8],RDX
MOV qword ptr [RSP],RDX
MOV DIL,0x1
MOV R12,R14
MOV R13,R11
LAB_0013e085:
MOVZX EDX,DL
BT EDX,0x0
SBB R8,R12
SETC DL
MOV qword ptr [R13],R8
MOV R12,RBX
MOV R8,RAX
MOV R13,R15
TEST DIL,0x1
MOV EDI,0x0
JNZ 0x0013e085
MOV RDI,qword ptr [RSP + 0x8]
MOV R8,qword ptr [RSP]
CMP R8,R9
JNC 0x0013e0bd
INC RSI
JMP 0x0013e0fd
LAB_0013e0bd:
XOR EAX,EAX
MOV qword ptr [RSP + 0x8],RAX
MOV qword ptr [RSP],RAX
MOV DL,0x1
MOV R9,R14
MOV R12,R11
LAB_0013e0d0:
MOVZX EAX,AL
BT EAX,0x0
ADC R9,RDI
SETC AL
MOV qword ptr [R12],R9
MOV R9,RBX
MOV RDI,R8
MOV R12,R15
TEST DL,0x1
MOV EDX,0x0
JNZ 0x0013e0d0
MOV RDI,qword ptr [RSP + 0x8]
MOV R8,qword ptr [RSP]
LAB_0013e0fd:
CMP RDI,R14
MOV RAX,R8
SBB RAX,RBX
JC 0x0013e14b
XOR EAX,EAX
MOV qword ptr [RSP + 0x8],RAX
MOV qword ptr [RSP],RAX
MOV DL,0x1
MOV R9,R14
MOV R12,R11
LAB_0013e11b:
MOVZX EAX,AL
BT EAX,0x0
SBB RDI,R9
SETC AL
MOV qword ptr [R12],RDI
MOV R9,RBX
MOV RDI,R8
MOV R12,R15
TEST DL,0x1
MOV EDX,0x0
JNZ 0x0013e11b
INC RSI
MOV RDI,qword ptr [RSP + 0x8]
MOV R8,qword ptr [RSP]
LAB_0013e14b:
MOV R12,RCX
MOV qword ptr [R10],RSI
LEA RAX,[R10 + -0x8]
CMP R10,RCX
MOV R10,RAX
JNZ 0x0013e003
MOV RAX,RDI
MOV RDX,R8
ADD RSP,0x18
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
LAB_0013e176:
LEA RDI,[0x181d1f]
LEA RSI,[0x181bae]
LEA RCX,[0x181ce0]
MOV EDX,0x65c
CALL 0x00121130
|
/* intx::internal::udivrem_by2(unsigned long*, int, intx::uint<128u>) */
int1 [16] __thiscall
intx::internal::udivrem_by2(internal *this,uint param_2,intx *param_3,intx *param_4)
{
ulong uVar1;
int1 auVar2 [16];
int1 auVar3 [16];
int1 auVar4 [16];
int1 auVar5 [16];
int1 auVar6 [16];
intx *piVar7;
ulong uVar8;
ulong uVar9;
ulong uVar10;
ulong uVar11;
ulong uVar12;
intx *piVar13;
intx *piVar14;
bool bVar15;
intx *piVar16;
intx *piVar17;
internal *piVar18;
intx **ppiVar19;
bool bVar20;
bool bVar21;
int1 auVar22 [16];
intx *local_48;
intx *local_40 [2];
if ((int)param_2 < 3) {
/* WARNING: Subroutine does not return */
__assert_fail("len >= 3",
"/workspace/llm4binary/github/2025_star3/corpus-core[P]colibri-stateless/build_O3/_deps/intx-src/include/intx/intx.hpp"
,0x65c,"uint128 intx::internal::udivrem_by2(uint64_t *, int, uint128)");
}
uVar8 = reciprocal_3by2(param_3,param_4);
local_40[0] = *(intx **)(this + (ulong)param_2 * 8 + -0x10);
local_48 = *(intx **)(this + (ulong)param_2 * 8 + -8);
*(int8 *)(this + (ulong)param_2 * 8 + -0x10) = 0;
*(int8 *)(this + (ulong)param_2 * 8 + -8) = 0;
piVar18 = this + (ulong)param_2 * 8 + -0x18;
do {
auVar6._8_8_ = local_48;
auVar6._0_8_ = local_40[0];
auVar2._8_8_ = 0;
auVar2._0_8_ = local_48;
auVar4._8_8_ = 0;
auVar4._0_8_ = uVar8;
bVar20 = false;
auVar6 = auVar2 * auVar4 + auVar6;
uVar11 = auVar6._8_8_;
uVar12 = (long)local_40[0] - uVar11 * (long)param_4;
auVar3._8_8_ = 0;
auVar3._0_8_ = uVar11;
auVar5._8_8_ = 0;
auVar5._0_8_ = param_3;
local_40[0] = (intx *)0x0;
local_48 = (intx *)0x0;
uVar9 = SUB168(auVar3 * auVar5,0);
uVar10 = *(ulong *)piVar18;
ppiVar19 = local_40;
bVar21 = true;
do {
bVar15 = bVar21;
uVar1 = (ulong)bVar20;
bVar20 = uVar10 < uVar9 || uVar10 - uVar9 < uVar1;
*ppiVar19 = (intx *)((uVar10 - uVar9) - uVar1);
piVar14 = local_40[0];
piVar17 = local_48;
uVar9 = SUB168(auVar3 * auVar5,8);
uVar10 = uVar12;
ppiVar19 = &local_48;
bVar21 = false;
} while (bVar15);
bVar20 = false;
local_40[0] = (intx *)0x0;
local_48 = (intx *)0x0;
piVar16 = param_3;
ppiVar19 = local_40;
bVar21 = true;
do {
bVar15 = bVar21;
uVar9 = (ulong)bVar20;
bVar20 = piVar14 < piVar16 || (ulong)((long)piVar14 - (long)piVar16) < uVar9;
*ppiVar19 = (intx *)(((long)piVar14 - (long)piVar16) - uVar9);
piVar13 = local_40[0];
piVar7 = local_48;
piVar14 = piVar17;
piVar16 = param_4;
ppiVar19 = &local_48;
bVar21 = false;
} while (bVar15);
if (local_48 < auVar6._0_8_) {
uVar11 = uVar11 + 1;
piVar14 = local_40[0];
piVar16 = local_48;
}
else {
bVar20 = false;
local_40[0] = (intx *)0x0;
local_48 = (intx *)0x0;
piVar17 = param_3;
ppiVar19 = local_40;
bVar21 = true;
do {
bVar15 = bVar21;
uVar9 = (ulong)bVar20;
bVar20 = CARRY8((ulong)piVar17,(ulong)piVar13) ||
CARRY8((ulong)(piVar17 + (long)piVar13),uVar9);
*ppiVar19 = piVar17 + (long)piVar13 + uVar9;
piVar14 = local_40[0];
piVar13 = piVar7;
piVar16 = local_48;
piVar17 = param_4;
ppiVar19 = &local_48;
bVar21 = false;
} while (bVar15);
}
local_40[0] = piVar14;
local_48 = piVar16;
if (param_4 <= piVar16 && (ulong)(piVar14 < param_3) <= (ulong)((long)piVar16 - (long)param_4))
{
bVar20 = false;
local_40[0] = (intx *)0x0;
local_48 = (intx *)0x0;
piVar17 = param_3;
ppiVar19 = local_40;
bVar21 = true;
do {
bVar15 = bVar21;
uVar9 = (ulong)bVar20;
bVar20 = piVar14 < piVar17 || (ulong)((long)piVar14 - (long)piVar17) < uVar9;
*ppiVar19 = (intx *)(((long)piVar14 - (long)piVar17) - uVar9);
piVar14 = piVar16;
piVar17 = param_4;
ppiVar19 = &local_48;
bVar21 = false;
} while (bVar15);
uVar11 = uVar11 + 1;
}
*(ulong *)piVar18 = uVar11;
bVar21 = piVar18 != this;
piVar18 = piVar18 + -8;
} while (bVar21);
auVar22._8_8_ = local_48;
auVar22._0_8_ = local_40[0];
return auVar22;
}
| |
42,641 | common_sampler_types_from_chars(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&) | monkey531[P]llama/common/sampling.cpp | std::vector<common_sampler_type> common_sampler_types_from_chars(const std::string & chars) {
std::unordered_map<char, common_sampler_type> sampler_name_map = {
{ common_sampler_type_to_chr(COMMON_SAMPLER_TYPE_DRY), COMMON_SAMPLER_TYPE_DRY },
{ common_sampler_type_to_chr(COMMON_SAMPLER_TYPE_TOP_K), COMMON_SAMPLER_TYPE_TOP_K },
{ common_sampler_type_to_chr(COMMON_SAMPLER_TYPE_TYPICAL_P), COMMON_SAMPLER_TYPE_TYPICAL_P },
{ common_sampler_type_to_chr(COMMON_SAMPLER_TYPE_TOP_P), COMMON_SAMPLER_TYPE_TOP_P },
{ common_sampler_type_to_chr(COMMON_SAMPLER_TYPE_MIN_P), COMMON_SAMPLER_TYPE_MIN_P },
{ common_sampler_type_to_chr(COMMON_SAMPLER_TYPE_TEMPERATURE), COMMON_SAMPLER_TYPE_TEMPERATURE },
{ common_sampler_type_to_chr(COMMON_SAMPLER_TYPE_XTC), COMMON_SAMPLER_TYPE_XTC },
{ common_sampler_type_to_chr(COMMON_SAMPLER_TYPE_INFILL), COMMON_SAMPLER_TYPE_INFILL },
{ common_sampler_type_to_chr(COMMON_SAMPLER_TYPE_PENALTIES), COMMON_SAMPLER_TYPE_PENALTIES },
};
std::vector<common_sampler_type> samplers;
samplers.reserve(chars.size());
for (const auto & c : chars) {
const auto sampler = sampler_name_map.find(c);
if (sampler != sampler_name_map.end()) {
samplers.push_back(sampler->second);
}
}
return samplers;
} | O2 | cpp | common_sampler_types_from_chars(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&):
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x98, %rsp
movq %rsi, %r14
movq %rdi, %rbx
leaq 0x98(%rsp), %rdx
movb $0x64, -0x48(%rdx)
movl $0x1, -0x44(%rdx)
movb $0x6b, -0x40(%rdx)
movl $0x2, -0x3c(%rdx)
movb $0x79, -0x38(%rdx)
movl $0x6, -0x34(%rdx)
movb $0x70, -0x30(%rdx)
movl $0x3, -0x2c(%rdx)
movb $0x6d, -0x28(%rdx)
movl $0x4, -0x24(%rdx)
movb $0x74, -0x20(%rdx)
movl $0x7, -0x1c(%rdx)
movb $0x78, -0x18(%rdx)
movl $0x8, -0x14(%rdx)
movb $0x69, -0x10(%rdx)
movl $0x9, -0xc(%rdx)
movb $0x65, -0x8(%rdx)
movl $0xa, -0x4(%rdx)
leaq 0x15(%rsp), %rax
movq %rax, (%rsp)
leaq 0x18(%rsp), %rdi
leaq 0x50(%rsp), %rsi
leaq 0x17(%rsp), %r8
leaq 0x16(%rsp), %r9
xorl %ecx, %ecx
callq 0x9ba34
xorps %xmm0, %xmm0
movups %xmm0, (%rbx)
andq $0x0, 0x10(%rbx)
movq 0x8(%r14), %rsi
movq %rbx, %rdi
callq 0x9ae92
movq (%r14), %r15
movq 0x8(%r14), %r12
leaq 0x18(%rsp), %r14
testq %r12, %r12
je 0x9aa24
movq %r14, %rdi
movq %r15, %rsi
callq 0x9be3e
testq %rax, %rax
je 0x9aa1c
addq $0xc, %rax
movq %rbx, %rdi
movq %rax, %rsi
callq 0x9af28
incq %r15
decq %r12
jmp 0x9a9f8
leaq 0x18(%rsp), %rdi
callq 0x9b26a
movq %rbx, %rax
addq $0x98, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
jmp 0x9aa42
movq %rax, %r14
movq %rbx, %rdi
callq 0x27c02
leaq 0x18(%rsp), %rdi
callq 0x9b26a
movq %r14, %rdi
callq 0x24f60
nop
| _Z31common_sampler_types_from_charsRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE:
push r15
push r14
push r12
push rbx
sub rsp, 98h
mov r14, rsi
mov rbx, rdi
lea rdx, [rsp+0B8h+var_20]
mov byte ptr [rdx-48h], 64h ; 'd'
mov dword ptr [rdx-44h], 1
mov byte ptr [rdx-40h], 6Bh ; 'k'
mov dword ptr [rdx-3Ch], 2
mov byte ptr [rdx-38h], 79h ; 'y'
mov dword ptr [rdx-34h], 6
mov byte ptr [rdx-30h], 70h ; 'p'
mov dword ptr [rdx-2Ch], 3
mov byte ptr [rdx-28h], 6Dh ; 'm'
mov dword ptr [rdx-24h], 4
mov byte ptr [rdx-20h], 74h ; 't'
mov dword ptr [rdx-1Ch], 7
mov byte ptr [rdx-18h], 78h ; 'x'
mov dword ptr [rdx-14h], 8
mov byte ptr [rdx-10h], 69h ; 'i'
mov dword ptr [rdx-0Ch], 9
mov byte ptr [rdx-8], 65h ; 'e'
mov dword ptr [rdx-4], 0Ah
lea rax, [rsp+0B8h+var_A3]
mov [rsp+0B8h+var_B8], rax
lea rdi, [rsp+0B8h+var_A0]
lea rsi, [rsp+0B8h+var_68]
lea r8, [rsp+0B8h+var_A1]
lea r9, [rsp+0B8h+var_A2]
xor ecx, ecx
call _ZNSt10_HashtableIcSt4pairIKc19common_sampler_typeESaIS3_ENSt8__detail10_Select1stESt8equal_toIcESt4hashIcENS5_18_Mod_range_hashingENS5_20_Default_ranged_hashENS5_20_Prime_rehash_policyENS5_17_Hashtable_traitsILb0ELb0ELb1EEEEC2IPKS3_EET_SK_mRKSA_RKS8_RKS4_St17integral_constantIbLb1EE; std::_Hashtable<char,std::pair<char const,common_sampler_type>,std::allocator<std::pair<char const,common_sampler_type>>,std::__detail::_Select1st,std::equal_to<char>,std::hash<char>,std::__detail::_Mod_range_hashing,std::__detail::_Default_ranged_hash,std::__detail::_Prime_rehash_policy,std::__detail::_Hashtable_traits<false,false,true>>::_Hashtable<std::pair<char const,common_sampler_type> const*>(std::pair<char const,common_sampler_type> const*,std::pair<char const,common_sampler_type> const*,ulong,std::hash<char> const&,std::equal_to<char> const&,std::allocator<std::pair<char const,common_sampler_type>> const&,std::integral_constant<bool,true>)
xorps xmm0, xmm0
movups xmmword ptr [rbx], xmm0
and qword ptr [rbx+10h], 0
mov rsi, [r14+8]
mov rdi, rbx
call _ZNSt6vectorI19common_sampler_typeSaIS0_EE7reserveEm; std::vector<common_sampler_type>::reserve(ulong)
mov r15, [r14]
mov r12, [r14+8]
lea r14, [rsp+0B8h+var_A0]
loc_9A9F8:
test r12, r12
jz short loc_9AA24
mov rdi, r14
mov rsi, r15
call _ZNSt10_HashtableIcSt4pairIKc19common_sampler_typeESaIS3_ENSt8__detail10_Select1stESt8equal_toIcESt4hashIcENS5_18_Mod_range_hashingENS5_20_Default_ranged_hashENS5_20_Prime_rehash_policyENS5_17_Hashtable_traitsILb0ELb0ELb1EEEE4findERS1_; std::_Hashtable<char,std::pair<char const,common_sampler_type>,std::allocator<std::pair<char const,common_sampler_type>>,std::__detail::_Select1st,std::equal_to<char>,std::hash<char>,std::__detail::_Mod_range_hashing,std::__detail::_Default_ranged_hash,std::__detail::_Prime_rehash_policy,std::__detail::_Hashtable_traits<false,false,true>>::find(char const&)
test rax, rax
jz short loc_9AA1C
add rax, 0Ch
mov rdi, rbx
mov rsi, rax
call _ZNSt6vectorI19common_sampler_typeSaIS0_EE9push_backERKS0_; std::vector<common_sampler_type>::push_back(common_sampler_type const&)
loc_9AA1C:
inc r15
dec r12
jmp short loc_9A9F8
loc_9AA24:
lea rdi, [rsp+0B8h+var_A0]
call _ZNSt10_HashtableIcSt4pairIKc19common_sampler_typeESaIS3_ENSt8__detail10_Select1stESt8equal_toIcESt4hashIcENS5_18_Mod_range_hashingENS5_20_Default_ranged_hashENS5_20_Prime_rehash_policyENS5_17_Hashtable_traitsILb0ELb0ELb1EEEED2Ev; std::_Hashtable<char,std::pair<char const,common_sampler_type>,std::allocator<std::pair<char const,common_sampler_type>>,std::__detail::_Select1st,std::equal_to<char>,std::hash<char>,std::__detail::_Mod_range_hashing,std::__detail::_Default_ranged_hash,std::__detail::_Prime_rehash_policy,std::__detail::_Hashtable_traits<false,false,true>>::~_Hashtable()
mov rax, rbx
add rsp, 98h
pop rbx
pop r12
pop r14
pop r15
retn
jmp short $+2
loc_9AA42:
mov r14, rax
mov rdi, rbx
call _ZNSt12_Vector_baseI19common_sampler_typeSaIS0_EED2Ev; std::_Vector_base<common_sampler_type>::~_Vector_base()
lea rdi, [rsp+arg_10]
call _ZNSt10_HashtableIcSt4pairIKc19common_sampler_typeESaIS3_ENSt8__detail10_Select1stESt8equal_toIcESt4hashIcENS5_18_Mod_range_hashingENS5_20_Default_ranged_hashENS5_20_Prime_rehash_policyENS5_17_Hashtable_traitsILb0ELb0ELb1EEEED2Ev; std::_Hashtable<char,std::pair<char const,common_sampler_type>,std::allocator<std::pair<char const,common_sampler_type>>,std::__detail::_Select1st,std::equal_to<char>,std::hash<char>,std::__detail::_Mod_range_hashing,std::__detail::_Default_ranged_hash,std::__detail::_Prime_rehash_policy,std::__detail::_Hashtable_traits<false,false,true>>::~_Hashtable()
mov rdi, r14
call __Unwind_Resume
| long long common_sampler_types_from_chars(long long a1, long long *a2)
{
long long v2; // r15
long long i; // r12
long long v4; // rax
char v6; // [rsp+15h] [rbp-A3h] BYREF
char v7; // [rsp+16h] [rbp-A2h] BYREF
char v8; // [rsp+17h] [rbp-A1h] BYREF
_BYTE v9[56]; // [rsp+18h] [rbp-A0h] BYREF
char v10; // [rsp+50h] [rbp-68h] BYREF
int v11; // [rsp+54h] [rbp-64h]
char v12; // [rsp+58h] [rbp-60h]
int v13; // [rsp+5Ch] [rbp-5Ch]
char v14; // [rsp+60h] [rbp-58h]
int v15; // [rsp+64h] [rbp-54h]
char v16; // [rsp+68h] [rbp-50h]
int v17; // [rsp+6Ch] [rbp-4Ch]
char v18; // [rsp+70h] [rbp-48h]
int v19; // [rsp+74h] [rbp-44h]
char v20; // [rsp+78h] [rbp-40h]
int v21; // [rsp+7Ch] [rbp-3Ch]
char v22; // [rsp+80h] [rbp-38h]
int v23; // [rsp+84h] [rbp-34h]
char v24; // [rsp+88h] [rbp-30h]
int v25; // [rsp+8Ch] [rbp-2Ch]
char v26; // [rsp+90h] [rbp-28h]
int v27; // [rsp+94h] [rbp-24h]
char v28; // [rsp+98h] [rbp-20h] BYREF
v10 = 100;
v11 = 1;
v12 = 107;
v13 = 2;
v14 = 121;
v15 = 6;
v16 = 112;
v17 = 3;
v18 = 109;
v19 = 4;
v20 = 116;
v21 = 7;
v22 = 120;
v23 = 8;
v24 = 105;
v25 = 9;
v26 = 101;
v27 = 10;
std::_Hashtable<char,std::pair<char const,common_sampler_type>,std::allocator<std::pair<char const,common_sampler_type>>,std::__detail::_Select1st,std::equal_to<char>,std::hash<char>,std::__detail::_Mod_range_hashing,std::__detail::_Default_ranged_hash,std::__detail::_Prime_rehash_policy,std::__detail::_Hashtable_traits<false,false,true>>::_Hashtable<std::pair<char const,common_sampler_type> const*>(
(unsigned int)v9,
(unsigned int)&v10,
(unsigned int)&v28,
0,
(unsigned int)&v8,
(unsigned int)&v7,
(long long)&v6);
*(_OWORD *)a1 = 0LL;
*(_QWORD *)(a1 + 16) = 0LL;
std::vector<common_sampler_type>::reserve(a1, a2[1]);
v2 = *a2;
for ( i = a2[1]; i; --i )
{
v4 = std::_Hashtable<char,std::pair<char const,common_sampler_type>,std::allocator<std::pair<char const,common_sampler_type>>,std::__detail::_Select1st,std::equal_to<char>,std::hash<char>,std::__detail::_Mod_range_hashing,std::__detail::_Default_ranged_hash,std::__detail::_Prime_rehash_policy,std::__detail::_Hashtable_traits<false,false,true>>::find(
v9,
v2);
if ( v4 )
std::vector<common_sampler_type>::push_back(a1, v4 + 12);
++v2;
}
std::_Hashtable<char,std::pair<char const,common_sampler_type>,std::allocator<std::pair<char const,common_sampler_type>>,std::__detail::_Select1st,std::equal_to<char>,std::hash<char>,std::__detail::_Mod_range_hashing,std::__detail::_Default_ranged_hash,std::__detail::_Prime_rehash_policy,std::__detail::_Hashtable_traits<false,false,true>>::~_Hashtable(v9);
return a1;
}
| common_sampler_types_from_chars:
PUSH R15
PUSH R14
PUSH R12
PUSH RBX
SUB RSP,0x98
MOV R14,RSI
MOV RBX,RDI
LEA RDX,[RSP + 0x98]
MOV byte ptr [RDX + -0x48],0x64
MOV dword ptr [RDX + -0x44],0x1
MOV byte ptr [RDX + -0x40],0x6b
MOV dword ptr [RDX + -0x3c],0x2
MOV byte ptr [RDX + -0x38],0x79
MOV dword ptr [RDX + -0x34],0x6
MOV byte ptr [RDX + -0x30],0x70
MOV dword ptr [RDX + -0x2c],0x3
MOV byte ptr [RDX + -0x28],0x6d
MOV dword ptr [RDX + -0x24],0x4
MOV byte ptr [RDX + -0x20],0x74
MOV dword ptr [RDX + -0x1c],0x7
MOV byte ptr [RDX + -0x18],0x78
MOV dword ptr [RDX + -0x14],0x8
MOV byte ptr [RDX + -0x10],0x69
MOV dword ptr [RDX + -0xc],0x9
MOV byte ptr [RDX + -0x8],0x65
MOV dword ptr [RDX + -0x4],0xa
LEA RAX,[RSP + 0x15]
MOV qword ptr [RSP],RAX
LEA RDI,[RSP + 0x18]
LEA RSI,[RSP + 0x50]
LEA R8,[RSP + 0x17]
LEA R9,[RSP + 0x16]
XOR ECX,ECX
CALL 0x0019ba34
XORPS XMM0,XMM0
MOVUPS xmmword ptr [RBX],XMM0
AND qword ptr [RBX + 0x10],0x0
MOV RSI,qword ptr [R14 + 0x8]
LAB_0019a9e4:
MOV RDI,RBX
CALL 0x0019ae92
MOV R15,qword ptr [R14]
MOV R12,qword ptr [R14 + 0x8]
LEA R14,[RSP + 0x18]
LAB_0019a9f8:
TEST R12,R12
JZ 0x0019aa24
LAB_0019a9fd:
MOV RDI,R14
MOV RSI,R15
CALL 0x0019be3e
TEST RAX,RAX
JZ 0x0019aa1c
ADD RAX,0xc
MOV RDI,RBX
MOV RSI,RAX
CALL 0x0019af28
LAB_0019aa1c:
INC R15
DEC R12
JMP 0x0019a9f8
LAB_0019aa24:
LEA RDI,[RSP + 0x18]
CALL 0x0019b26a
MOV RAX,RBX
ADD RSP,0x98
POP RBX
POP R12
POP R14
POP R15
RET
|
/* common_sampler_types_from_chars(std::__cxx11::string const&) */
string * common_sampler_types_from_chars(string *param_1)
{
long lVar1;
int8 *in_RSI;
long lVar2;
char *pcVar3;
int1 local_a3;
int1 local_a2;
int1 local_a1;
_Hashtable<char,std::pair<char_const,common_sampler_type>,std::allocator<std::pair<char_const,common_sampler_type>>,std::__detail::_Select1st,std::equal_to<char>,std::hash<char>,std::__detail::_Mod_range_hashing,std::__detail::_Default_ranged_hash,std::__detail::_Prime_rehash_policy,std::__detail::_Hashtable_traits<false,false,true>>
local_a0 [56];
int1 local_68 [4];
int4 local_64;
int1 local_60;
int4 local_5c;
int1 local_58;
int4 local_54;
int1 local_50;
int4 local_4c;
int1 local_48;
int4 local_44;
int1 local_40;
int4 local_3c;
int1 local_38;
int4 local_34;
int1 local_30;
int4 local_2c;
int1 local_28;
int4 local_24;
local_68[0] = 100;
local_64 = 1;
local_60 = 0x6b;
local_5c = 2;
local_58 = 0x79;
local_54 = 6;
local_50 = 0x70;
local_4c = 3;
local_48 = 0x6d;
local_44 = 4;
local_40 = 0x74;
local_3c = 7;
local_38 = 0x78;
local_34 = 8;
local_30 = 0x69;
local_2c = 9;
local_28 = 0x65;
local_24 = 10;
std::
_Hashtable<char,std::pair<char_const,common_sampler_type>,std::allocator<std::pair<char_const,common_sampler_type>>,std::__detail::_Select1st,std::equal_to<char>,std::hash<char>,std::__detail::_Mod_range_hashing,std::__detail::_Default_ranged_hash,std::__detail::_Prime_rehash_policy,std::__detail::_Hashtable_traits<false,false,true>>
::_Hashtable<std::pair<char_const,common_sampler_type>const*>
(local_a0,local_68,&stack0xffffffffffffffe0,0,&local_a1,&local_a2,&local_a3);
*(int8 *)param_1 = 0;
*(int8 *)(param_1 + 8) = 0;
*(int8 *)(param_1 + 0x10) = 0;
/* try { // try from 0019a9e4 to 0019a9eb has its CatchHandler @ 0019aa40 */
std::vector<common_sampler_type,std::allocator<common_sampler_type>>::reserve
((vector<common_sampler_type,std::allocator<common_sampler_type>> *)param_1,in_RSI[1]);
pcVar3 = (char *)*in_RSI;
for (lVar2 = in_RSI[1]; lVar2 != 0; lVar2 = lVar2 + -1) {
/* try { // try from 0019a9fd to 0019aa1b has its CatchHandler @ 0019aa42 */
lVar1 = std::
_Hashtable<char,std::pair<char_const,common_sampler_type>,std::allocator<std::pair<char_const,common_sampler_type>>,std::__detail::_Select1st,std::equal_to<char>,std::hash<char>,std::__detail::_Mod_range_hashing,std::__detail::_Default_ranged_hash,std::__detail::_Prime_rehash_policy,std::__detail::_Hashtable_traits<false,false,true>>
::find(local_a0,pcVar3);
if (lVar1 != 0) {
std::vector<common_sampler_type,std::allocator<common_sampler_type>>::push_back
((vector<common_sampler_type,std::allocator<common_sampler_type>> *)param_1,
(common_sampler_type *)(lVar1 + 0xc));
}
pcVar3 = pcVar3 + 1;
}
std::
_Hashtable<char,std::pair<char_const,common_sampler_type>,std::allocator<std::pair<char_const,common_sampler_type>>,std::__detail::_Select1st,std::equal_to<char>,std::hash<char>,std::__detail::_Mod_range_hashing,std::__detail::_Default_ranged_hash,std::__detail::_Prime_rehash_policy,std::__detail::_Hashtable_traits<false,false,true>>
::~_Hashtable(local_a0);
return param_1;
}
| |
42,642 | common_sampler_sample(common_sampler*, llama_context*, int, bool) | monkey531[P]llama/common/sampling.cpp | llama_token common_sampler_sample(struct common_sampler * gsmpl, struct llama_context * ctx, int idx, bool grammar_first) {
gsmpl->set_logits(ctx, idx);
auto & grmr = gsmpl->grmr;
auto & chain = gsmpl->chain;
auto & cur_p = gsmpl->cur_p; // initialized by set_logits
if (grammar_first) {
llama_sampler_apply(grmr, &cur_p);
}
llama_sampler_apply(chain, &cur_p);
GGML_ASSERT(cur_p.selected != -1 && "no selected token during sampling - check your sampling configuration");
const llama_token id = cur_p.data[cur_p.selected].id;
if (grammar_first) {
return id;
}
// check if it the sampled token fits the grammar
{
llama_token_data single_token_data = { id, 1.0f, 0.0f };
llama_token_data_array single_token_data_array = { &single_token_data, 1, -1, false };
llama_sampler_apply(grmr, &single_token_data_array);
const bool is_valid = single_token_data_array.data[0].logit != -INFINITY;
if (is_valid) {
return id;
}
}
// resampling:
// if the token is not valid, sample again, but first apply the grammar sampler and then the sampling chain
gsmpl->set_logits(ctx, idx);
llama_sampler_apply(grmr, &cur_p);
llama_sampler_apply(chain, &cur_p);
GGML_ASSERT(cur_p.selected != -1 && "no selected token during re-sampling - check your sampling configuration");
return cur_p.data[cur_p.selected].id;
} | O1 | cpp | common_sampler_sample(common_sampler*, llama_context*, int, bool):
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x38, %rsp
movl %ecx, %r12d
movl %edx, %ebp
movq %rsi, %r15
movq %rdi, %rbx
callq 0xd40de
leaq 0x198(%rbx), %r14
testl %r12d, %r12d
je 0xd2f71
movq 0x138(%rbx), %rdi
movq %r14, %rsi
callq 0x1bde0
movq 0x140(%rbx), %rdi
movq %r14, %rsi
callq 0x1bde0
movq 0x1a8(%rbx), %rax
cmpq $-0x1, %rax
je 0xd3050
movq (%r14), %rcx
leaq (%rax,%rax,2), %rax
movl (%rcx,%rax,4), %r13d
testb %r12b, %r12b
jne 0xd303e
leaq 0xc(%rsp), %rax
movl %r13d, (%rax)
movss 0x1a1d7(%rip), %xmm0 # 0xed18c
movlps %xmm0, 0x4(%rax)
leaq 0x18(%rsp), %r12
movq %rax, (%r12)
movq $0x1, 0x8(%r12)
movq $-0x1, 0x10(%r12)
movb $0x0, 0x18(%r12)
movq 0x138(%rbx), %rdi
movq %r12, %rsi
callq 0x1bde0
movq (%r12), %rax
movss 0x2a23b(%rip), %xmm0 # 0xfd230
ucomiss 0x4(%rax), %xmm0
jb 0xd303e
movq %rbx, %rdi
movq %r15, %rsi
movl %ebp, %edx
callq 0xd40de
movq 0x138(%rbx), %rdi
movq %r14, %rsi
callq 0x1bde0
movq 0x140(%rbx), %rdi
movq %r14, %rsi
callq 0x1bde0
movq 0x1a8(%rbx), %rax
cmpq $-0x1, %rax
je 0xd306c
movq (%r14), %rcx
leaq (%rax,%rax,2), %rax
movl (%rcx,%rax,4), %r13d
movl %r13d, %eax
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x2a34e(%rip), %rdi # 0xfd3a5
leaq 0x1a577(%rip), %rdx # 0xed5d5
leaq 0x2a40a(%rip), %rcx # 0xfd46f
movl $0x133, %esi # imm = 0x133
jmp 0xd3086
leaq 0x2a332(%rip), %rdi # 0xfd3a5
leaq 0x1a55b(%rip), %rdx # 0xed5d5
leaq 0x2a44e(%rip), %rcx # 0xfd4cf
movl $0x14f, %esi # imm = 0x14F
xorl %eax, %eax
callq 0x1bef0
| _Z21common_sampler_sampleP14common_samplerP13llama_contextib:
push rbp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 38h
mov r12d, ecx
mov ebp, edx
mov r15, rsi
mov rbx, rdi
call _ZN14common_sampler10set_logitsEP13llama_contexti; common_sampler::set_logits(llama_context *,int)
lea r14, [rbx+198h]
test r12d, r12d
jz short loc_D2F71
mov rdi, [rbx+138h]
mov rsi, r14
call _llama_sampler_apply
loc_D2F71:
mov rdi, [rbx+140h]
mov rsi, r14
call _llama_sampler_apply
mov rax, [rbx+1A8h]
cmp rax, 0FFFFFFFFFFFFFFFFh
jz loc_D3050
mov rcx, [r14]
lea rax, [rax+rax*2]
mov r13d, [rcx+rax*4]
test r12b, r12b
jnz loc_D303E
lea rax, [rsp+68h+var_5C]
mov [rax], r13d
movss xmm0, cs:dword_ED18C
movlps qword ptr [rax+4], xmm0
lea r12, [rsp+68h+var_50]
mov [r12], rax
mov qword ptr [r12+8], 1
mov qword ptr [r12+10h], 0FFFFFFFFFFFFFFFFh
mov byte ptr [r12+18h], 0
mov rdi, [rbx+138h]
mov rsi, r12
call _llama_sampler_apply
mov rax, [r12]
movss xmm0, cs:dword_FD230
ucomiss xmm0, dword ptr [rax+4]
jb short loc_D303E
mov rdi, rbx
mov rsi, r15
mov edx, ebp
call _ZN14common_sampler10set_logitsEP13llama_contexti; common_sampler::set_logits(llama_context *,int)
mov rdi, [rbx+138h]
mov rsi, r14
call _llama_sampler_apply
mov rdi, [rbx+140h]
mov rsi, r14
call _llama_sampler_apply
mov rax, [rbx+1A8h]
cmp rax, 0FFFFFFFFFFFFFFFFh
jz short loc_D306C
mov rcx, [r14]
lea rax, [rax+rax*2]
mov r13d, [rcx+rax*4]
loc_D303E:
mov eax, r13d
add rsp, 38h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
loc_D3050:
lea rdi, aWorkspaceLlm4b_3; "/workspace/llm4binary/github/2025_star3"...
lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed"
lea rcx, aCurPSelected1N; "cur_p.selected != -1 && \"no selected t"...
mov esi, 133h
jmp short loc_D3086
loc_D306C:
lea rdi, aWorkspaceLlm4b_3; "/workspace/llm4binary/github/2025_star3"...
lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed"
lea rcx, aCurPSelected1N_0; "cur_p.selected != -1 && \"no selected t"...
mov esi, 14Fh
loc_D3086:
xor eax, eax
call _ggml_abort
| long long common_sampler_sample(_QWORD *a1, long long a2, unsigned int a3, int a4)
{
_QWORD *v6; // r14
long long v7; // rax
unsigned int v8; // r13d
long long v9; // rax
double v11; // xmm0_8
int v12; // [rsp+Ch] [rbp-5Ch] BYREF
double v13; // [rsp+10h] [rbp-58h] BYREF
_QWORD v14[3]; // [rsp+18h] [rbp-50h] BYREF
char v15; // [rsp+30h] [rbp-38h]
((void (*)(void))common_sampler::set_logits)();
v6 = a1 + 51;
if ( a4 )
llama_sampler_apply(a1[39], a1 + 51);
llama_sampler_apply(a1[40], a1 + 51);
v7 = a1[53];
if ( v7 == -1 )
{
v11 = ggml_abort(
"/workspace/llm4binary/github/2025_star3/monkey531[P]llama/common/sampling.cpp",
307LL,
"GGML_ASSERT(%s) failed",
"cur_p.selected != -1 && \"no selected token during sampling - check your sampling configuration\"");
}
else
{
v8 = *(_DWORD *)(*v6 + 12 * v7);
if ( (_BYTE)a4 )
return v8;
v12 = *(_DWORD *)(*v6 + 12 * v7);
_mm_storel_ps(&v13, (__m128)0x3F800000u);
v14[0] = &v12;
v14[1] = 1LL;
v14[2] = -1LL;
v15 = 0;
llama_sampler_apply(a1[39], v14);
if ( *(float *)(v14[0] + 4LL) > -INFINITY )
return v8;
common_sampler::set_logits(a1, a2, a3);
llama_sampler_apply(a1[39], a1 + 51);
llama_sampler_apply(a1[40], a1 + 51);
v9 = a1[53];
if ( v9 != -1 )
return *(unsigned int *)(*v6 + 12 * v9);
v11 = ggml_abort(
"/workspace/llm4binary/github/2025_star3/monkey531[P]llama/common/sampling.cpp",
335LL,
"GGML_ASSERT(%s) failed",
"cur_p.selected != -1 && \"no selected token during re-sampling - check your sampling configuration\"");
}
return common_sampler_sample_and_accept_n(v11);
}
| common_sampler_sample:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x38
MOV R12D,ECX
MOV EBP,EDX
MOV R15,RSI
MOV RBX,RDI
CALL 0x001d40de
LEA R14,[RBX + 0x198]
TEST R12D,R12D
JZ 0x001d2f71
MOV RDI,qword ptr [RBX + 0x138]
MOV RSI,R14
CALL 0x0011bde0
LAB_001d2f71:
MOV RDI,qword ptr [RBX + 0x140]
MOV RSI,R14
CALL 0x0011bde0
MOV RAX,qword ptr [RBX + 0x1a8]
CMP RAX,-0x1
JZ 0x001d3050
MOV RCX,qword ptr [R14]
LEA RAX,[RAX + RAX*0x2]
MOV R13D,dword ptr [RCX + RAX*0x4]
TEST R12B,R12B
JNZ 0x001d303e
LEA RAX,[RSP + 0xc]
MOV dword ptr [RAX],R13D
MOVSS XMM0,dword ptr [0x001ed18c]
MOVLPS qword ptr [RAX + 0x4],XMM0
LEA R12,[RSP + 0x18]
MOV qword ptr [R12],RAX
MOV qword ptr [R12 + 0x8],0x1
MOV qword ptr [R12 + 0x10],-0x1
MOV byte ptr [R12 + 0x18],0x0
MOV RDI,qword ptr [RBX + 0x138]
MOV RSI,R12
CALL 0x0011bde0
MOV RAX,qword ptr [R12]
MOVSS XMM0,dword ptr [0x001fd230]
UCOMISS XMM0,dword ptr [RAX + 0x4]
JC 0x001d303e
MOV RDI,RBX
MOV RSI,R15
MOV EDX,EBP
CALL 0x001d40de
MOV RDI,qword ptr [RBX + 0x138]
MOV RSI,R14
CALL 0x0011bde0
MOV RDI,qword ptr [RBX + 0x140]
MOV RSI,R14
CALL 0x0011bde0
MOV RAX,qword ptr [RBX + 0x1a8]
CMP RAX,-0x1
JZ 0x001d306c
MOV RCX,qword ptr [R14]
LEA RAX,[RAX + RAX*0x2]
MOV R13D,dword ptr [RCX + RAX*0x4]
LAB_001d303e:
MOV EAX,R13D
ADD RSP,0x38
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
LAB_001d3050:
LEA RDI,[0x1fd3a5]
LEA RDX,[0x1ed5d5]
LEA RCX,[0x1fd46f]
MOV ESI,0x133
JMP 0x001d3086
LAB_001d306c:
LEA RDI,[0x1fd3a5]
LEA RDX,[0x1ed5d5]
LEA RCX,[0x1fd4cf]
MOV ESI,0x14f
LAB_001d3086:
XOR EAX,EAX
CALL 0x0011bef0
|
/* common_sampler_sample(common_sampler*, llama_context*, int, bool) */
int4
common_sampler_sample(common_sampler *param_1,llama_context *param_2,int param_3,bool param_4)
{
common_sampler *pcVar1;
int7 in_register_00000009;
char *pcVar2;
int8 uVar3;
int4 uVar4;
int4 local_5c;
ulong local_58;
int4 *local_50;
int8 local_48;
int8 local_40;
int1 local_38;
common_sampler::set_logits(param_1,param_2,param_3);
pcVar1 = param_1 + 0x198;
if ((int)CONCAT71(in_register_00000009,param_4) != 0) {
llama_sampler_apply(*(int8 *)(param_1 + 0x138),pcVar1);
}
llama_sampler_apply(*(int8 *)(param_1 + 0x140),pcVar1);
if (*(long *)(param_1 + 0x1a8) != -1) {
uVar4 = *(int4 *)(*(long *)pcVar1 + *(long *)(param_1 + 0x1a8) * 0xc);
if (!param_4) {
local_50 = &local_5c;
local_58 = (ulong)DAT_001ed18c;
local_48 = 1;
local_40 = 0xffffffffffffffff;
local_38 = 0;
local_5c = uVar4;
llama_sampler_apply(*(int8 *)(param_1 + 0x138),&local_50);
if ((float)local_50[1] <= DAT_001fd230) {
common_sampler::set_logits(param_1,param_2,param_3);
llama_sampler_apply(*(int8 *)(param_1 + 0x138),pcVar1);
llama_sampler_apply(*(int8 *)(param_1 + 0x140),pcVar1);
if (*(long *)(param_1 + 0x1a8) == -1) {
pcVar2 =
"cur_p.selected != -1 && \"no selected token during re-sampling - check your sampling configuration\""
;
uVar3 = 0x14f;
goto LAB_001d3086;
}
uVar4 = *(int4 *)(*(long *)pcVar1 + *(long *)(param_1 + 0x1a8) * 0xc);
}
}
return uVar4;
}
pcVar2 =
"cur_p.selected != -1 && \"no selected token during sampling - check your sampling configuration\""
;
uVar3 = 0x133;
LAB_001d3086:
/* WARNING: Subroutine does not return */
ggml_abort("/workspace/llm4binary/github/2025_star3/monkey531[P]llama/common/sampling.cpp",uVar3,
"GGML_ASSERT(%s) failed",pcVar2);
}
| |
42,643 | void google::protobuf::Reflection::SwapFieldsImpl<true>(google::protobuf::Message*, google::protobuf::Message*, std::vector<google::protobuf::FieldDescriptor const*, std::allocator<google::protobuf::FieldDescriptor const*>> const&) const | aimrt_mujoco_sim/_deps/protobuf-src/src/google/protobuf/generated_message_reflection.cc | void Reflection::SwapFieldsImpl(
Message* message1, Message* message2,
const std::vector<const FieldDescriptor*>& fields) const {
if (message1 == message2) return;
// TODO(kenton): Other Reflection methods should probably check this too.
GOOGLE_CHECK_EQ(message1->GetReflection(), this)
<< "First argument to SwapFields() (of type \""
<< message1->GetDescriptor()->full_name()
<< "\") is not compatible with this reflection object (which is for type "
"\""
<< descriptor_->full_name()
<< "\"). Note that the exact same class is required; not just the same "
"descriptor.";
GOOGLE_CHECK_EQ(message2->GetReflection(), this)
<< "Second argument to SwapFields() (of type \""
<< message2->GetDescriptor()->full_name()
<< "\") is not compatible with this reflection object (which is for type "
"\""
<< descriptor_->full_name()
<< "\"). Note that the exact same class is required; not just the same "
"descriptor.";
std::set<int> swapped_oneof;
GOOGLE_DCHECK(!unsafe_shallow_swap || message1->GetArenaForAllocation() ==
message2->GetArenaForAllocation());
const Message* prototype =
message_factory_->GetPrototype(message1->GetDescriptor());
for (const auto* field : fields) {
CheckInvalidAccess(schema_, field);
if (field->is_extension()) {
if (unsafe_shallow_swap) {
MutableExtensionSet(message1)->UnsafeShallowSwapExtension(
MutableExtensionSet(message2), field->number());
} else {
MutableExtensionSet(message1)->SwapExtension(
prototype, MutableExtensionSet(message2), field->number());
}
} else {
if (schema_.InRealOneof(field)) {
int oneof_index = field->containing_oneof()->index();
// Only swap the oneof field once.
if (swapped_oneof.find(oneof_index) != swapped_oneof.end()) {
continue;
}
swapped_oneof.insert(oneof_index);
SwapOneofField<unsafe_shallow_swap>(message1, message2,
field->containing_oneof());
} else {
// Swap field.
if (unsafe_shallow_swap) {
UnsafeShallowSwapField(message1, message2, field);
} else {
SwapField(message1, message2, field);
}
// Swap has bit for non-repeated fields. We have already checked for
// oneof already. This has to be done after SwapField, because SwapField
// may depend on the information in has bits.
if (!field->is_repeated()) {
SwapBit(message1, message2, field);
if (field->options().ctype() == FieldOptions::STRING &&
IsInlined(field)) {
GOOGLE_DCHECK(!unsafe_shallow_swap ||
message1->GetArenaForAllocation() ==
message2->GetArenaForAllocation());
SwapInlinedStringDonated(message1, message2, field);
}
}
}
}
}
} | O3 | cpp | void google::protobuf::Reflection::SwapFieldsImpl<true>(google::protobuf::Message*, google::protobuf::Message*, std::vector<google::protobuf::FieldDescriptor const*, std::allocator<google::protobuf::FieldDescriptor const*>> const&) const:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x48, %rsp
cmpq %rdx, %rsi
je 0x6d60b
movq %rcx, %r12
movq %rdx, %rbx
movq %rsi, %r14
movq %rdi, %r15
movq (%rsi), %rax
movq %rsi, %rdi
callq *0x80(%rax)
cmpq %r15, %rdx
je 0x6d39b
leaq 0x4c7e9(%rip), %rdx # 0xb9ae8
leaq 0x10(%rsp), %r13
movq %r13, %rdi
movl $0x3, %esi
movl $0x3e6, %ecx # imm = 0x3E6
callq 0x169ca
leaq 0x4c859(%rip), %rsi # 0xb9b76
movq %r13, %rdi
callq 0x164c8
leaq 0x4d3d9(%rip), %rsi # 0xba705
movq %rax, %rdi
callq 0x164c8
movq %rax, %r13
movq (%r14), %rax
movq %r14, %rdi
callq *0x80(%rax)
movq 0x8(%rax), %rsi
addq $0x20, %rsi
movq %r13, %rdi
callq 0x164da
leaq 0x4c876(%rip), %rsi # 0xb9bd0
movq %rax, %rdi
callq 0x164c8
movq (%r15), %rcx
movq 0x8(%rcx), %rsi
addq $0x20, %rsi
movq %rax, %rdi
callq 0x164da
leaq 0x4c89a(%rip), %rsi # 0xb9c16
movq %rax, %rdi
callq 0x164c8
leaq 0x4(%rsp), %rdi
movq %rax, %rsi
callq 0x165a2
leaq 0x10(%rsp), %rdi
callq 0x169e8
movq (%rbx), %rax
movq %rbx, %rdi
callq *0x80(%rax)
cmpq %r15, %rdx
je 0x6d453
leaq 0x4c731(%rip), %rdx # 0xb9ae8
leaq 0x10(%rsp), %r13
movq %r13, %rdi
movl $0x3, %esi
movl $0x3ee, %ecx # imm = 0x3EE
callq 0x169ca
leaq 0x4c890(%rip), %rsi # 0xb9c65
movq %r13, %rdi
callq 0x164c8
leaq 0x4d34b(%rip), %rsi # 0xba72f
movq %rax, %rdi
callq 0x164c8
movq %rax, %r13
movq (%rbx), %rax
movq %rbx, %rdi
callq *0x80(%rax)
movq 0x8(%rax), %rsi
addq $0x20, %rsi
movq %r13, %rdi
callq 0x164da
leaq 0x4c7be(%rip), %rsi # 0xb9bd0
movq %rax, %rdi
callq 0x164c8
movq (%r15), %rcx
movq 0x8(%rcx), %rsi
addq $0x20, %rsi
movq %rax, %rdi
callq 0x164da
leaq 0x4c7e2(%rip), %rsi # 0xb9c16
movq %rax, %rdi
callq 0x164c8
leaq 0x4(%rsp), %rdi
movq %rax, %rsi
callq 0x165a2
leaq 0x10(%rsp), %rdi
callq 0x169e8
leaq 0x18(%rsp), %rcx
movl $0x0, (%rcx)
xorl %eax, %eax
movq %rax, 0x8(%rcx)
movq %rcx, 0x10(%rcx)
movq %rcx, 0x18(%rcx)
movq %rax, 0x20(%rcx)
movq 0x50(%r15), %r13
movq (%r14), %rax
movq %r14, %rdi
callq *0x80(%rax)
movq (%r13), %rcx
movq %r13, %rdi
movq %rax, %rsi
callq *0x10(%rcx)
movq (%r12), %r13
movq 0x8(%r12), %rbp
cmpq %rbp, %r13
je 0x6d601
leaq 0x8(%r15), %rax
movq %rax, 0x8(%rsp)
movq (%r13), %r12
movb 0x1(%r12), %al
testb $0x8, %al
jne 0x6d53c
testb $0x10, %al
sete %cl
movq 0x28(%r12), %rax
testq %rax, %rax
sete %dl
orb %cl, %dl
je 0x6d556
movq %r15, %rdi
movq %r14, %rsi
movq %rbx, %rdx
movq %r12, %rcx
callq 0x6545e
movb 0x1(%r12), %al
notb %al
testb $0x60, %al
je 0x6d5f4
movq %r15, %rdi
movq %r14, %rsi
movq %rbx, %rdx
movq %r12, %rcx
callq 0x6fd58
movq 0x38(%r12), %rax
cmpl $0x0, 0x48(%rax)
jne 0x6d5f4
movq 0x8(%rsp), %rdi
movq %r12, %rsi
callq 0x6e994
testb %al, %al
je 0x6d5f4
movq %r15, %rdi
movq %r14, %rsi
movq %rbx, %rdx
movq %r12, %rcx
callq 0x6fe3c
jmp 0x6d5f4
movl 0x28(%r15), %esi
leaq (%r14,%rsi), %rdi
addq %rbx, %rsi
movl 0x4(%r12), %edx
callq 0x97590
jmp 0x6d5f4
cmpl $0x1, 0x4(%rax)
jne 0x6d56a
movq 0x20(%rax), %rcx
testb $0x2, 0x1(%rcx)
jne 0x6d4d1
movq 0x10(%rax), %rcx
subq 0x30(%rcx), %rax
shrq $0x3, %rax
imull $0xcccccccd, %eax, %eax # imm = 0xCCCCCCCD
movl %eax, 0x4(%rsp)
movq 0x20(%rsp), %rdi
testq %rdi, %rdi
je 0x6d5c6
leaq 0x18(%rsp), %r8
movq %r8, %rcx
movq %rdi, %rdx
movl 0x20(%rdi), %esi
xorl %edi, %edi
cmpl %eax, %esi
setl %dil
movq %rdx, %r8
cmovlq %rcx, %r8
movq 0x10(%rdx,%rdi,8), %rdi
testq %rdi, %rdi
jne 0x6d58f
leaq 0x18(%rsp), %rdi
cmpq %rdi, %r8
je 0x6d5c6
cmpl %eax, %esi
cmovlq %rcx, %rdx
cmpl %eax, 0x20(%rdx)
jle 0x6d5f4
leaq 0x10(%rsp), %rdi
leaq 0x4(%rsp), %rsi
callq 0x7007e
testb $0x10, 0x1(%r12)
je 0x6d5e4
movq 0x28(%r12), %rcx
jmp 0x6d5e6
xorl %ecx, %ecx
movq %r15, %rdi
movq %r14, %rsi
movq %rbx, %rdx
callq 0x6d648
addq $0x8, %r13
cmpq %rbp, %r13
jne 0x6d4a8
leaq 0x10(%rsp), %rdi
callq 0x403be
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x6d622
jmp 0x6d622
jmp 0x6d633
jmp 0x6d622
movq %rax, %rbx
leaq 0x10(%rsp), %rdi
callq 0x169e8
jmp 0x6d640
jmp 0x6d633
movq %rax, %rbx
leaq 0x10(%rsp), %rdi
callq 0x403be
movq %rbx, %rdi
callq 0xf570
| _ZNK6google8protobuf10Reflection14SwapFieldsImplILb1EEEvPNS0_7MessageES4_RKSt6vectorIPKNS0_15FieldDescriptorESaIS8_EE:
push rbp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 48h
cmp rsi, rdx
jz loc_6D60B
mov r12, rcx
mov rbx, rdx
mov r14, rsi
mov r15, rdi
mov rax, [rsi]
mov rdi, rsi
call qword ptr [rax+80h]
cmp rdx, r15
jz loc_6D39B
lea rdx, aWorkspaceLlm4b_9; "/workspace/llm4binary/github2025/aimrt_"...
lea r13, [rsp+78h+var_68]
mov rdi, r13
mov esi, 3
mov ecx, 3E6h
call _ZN6google8protobuf8internal10LogMessageC2ENS0_8LogLevelEPKci; google::protobuf::internal::LogMessage::LogMessage(google::protobuf::LogLevel,char const*,int)
lea rsi, aCheckFailedMes; "CHECK failed: (message1->GetReflection("...
mov rdi, r13
call _ZN6google8protobuf8internal10LogMessagelsEPKc; google::protobuf::internal::LogMessage::operator<<(char const*)
lea rsi, aFirstArgumentT_0; "First argument to SwapFields() (of type"...
mov rdi, rax
call _ZN6google8protobuf8internal10LogMessagelsEPKc; google::protobuf::internal::LogMessage::operator<<(char const*)
mov r13, rax
mov rax, [r14]
mov rdi, r14
call qword ptr [rax+80h]
mov rsi, [rax+8]
add rsi, 20h ; ' '
mov rdi, r13
call _ZN6google8protobuf8internal10LogMessagelsERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE; google::protobuf::internal::LogMessage::operator<<(std::string const&)
lea rsi, aIsNotCompatibl; "\") is not compatible with this reflect"...
mov rdi, rax
call _ZN6google8protobuf8internal10LogMessagelsEPKc; google::protobuf::internal::LogMessage::operator<<(char const*)
mov rcx, [r15]
mov rsi, [rcx+8]
add rsi, 20h ; ' '
mov rdi, rax
call _ZN6google8protobuf8internal10LogMessagelsERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE; google::protobuf::internal::LogMessage::operator<<(std::string const&)
lea rsi, aNoteThatTheExa; "\"). Note that the exact same class is"...
mov rdi, rax
call _ZN6google8protobuf8internal10LogMessagelsEPKc; google::protobuf::internal::LogMessage::operator<<(char const*)
lea rdi, [rsp+78h+var_74]
mov rsi, rax
call _ZN6google8protobuf8internal11LogFinisheraSERNS1_10LogMessageE; google::protobuf::internal::LogFinisher::operator=(google::protobuf::internal::LogMessage &)
lea rdi, [rsp+78h+var_68]; this
call _ZN6google8protobuf8internal10LogMessageD2Ev; google::protobuf::internal::LogMessage::~LogMessage()
loc_6D39B:
mov rax, [rbx]
mov rdi, rbx
call qword ptr [rax+80h]
cmp rdx, r15
jz loc_6D453
lea rdx, aWorkspaceLlm4b_9; "/workspace/llm4binary/github2025/aimrt_"...
lea r13, [rsp+78h+var_68]
mov rdi, r13
mov esi, 3
mov ecx, 3EEh
call _ZN6google8protobuf8internal10LogMessageC2ENS0_8LogLevelEPKci; google::protobuf::internal::LogMessage::LogMessage(google::protobuf::LogLevel,char const*,int)
lea rsi, aCheckFailedMes_0; "CHECK failed: (message2->GetReflection("...
mov rdi, r13
call _ZN6google8protobuf8internal10LogMessagelsEPKc; google::protobuf::internal::LogMessage::operator<<(char const*)
lea rsi, aSecondArgument_0; "Second argument to SwapFields() (of typ"...
mov rdi, rax
call _ZN6google8protobuf8internal10LogMessagelsEPKc; google::protobuf::internal::LogMessage::operator<<(char const*)
mov r13, rax
mov rax, [rbx]
mov rdi, rbx
call qword ptr [rax+80h]
mov rsi, [rax+8]
add rsi, 20h ; ' '
mov rdi, r13
call _ZN6google8protobuf8internal10LogMessagelsERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE; google::protobuf::internal::LogMessage::operator<<(std::string const&)
lea rsi, aIsNotCompatibl; "\") is not compatible with this reflect"...
mov rdi, rax
call _ZN6google8protobuf8internal10LogMessagelsEPKc; google::protobuf::internal::LogMessage::operator<<(char const*)
mov rcx, [r15]
mov rsi, [rcx+8]
add rsi, 20h ; ' '
mov rdi, rax
call _ZN6google8protobuf8internal10LogMessagelsERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE; google::protobuf::internal::LogMessage::operator<<(std::string const&)
lea rsi, aNoteThatTheExa; "\"). Note that the exact same class is"...
mov rdi, rax
call _ZN6google8protobuf8internal10LogMessagelsEPKc; google::protobuf::internal::LogMessage::operator<<(char const*)
lea rdi, [rsp+78h+var_74]
mov rsi, rax
call _ZN6google8protobuf8internal11LogFinisheraSERNS1_10LogMessageE; google::protobuf::internal::LogFinisher::operator=(google::protobuf::internal::LogMessage &)
lea rdi, [rsp+78h+var_68]; this
call _ZN6google8protobuf8internal10LogMessageD2Ev; google::protobuf::internal::LogMessage::~LogMessage()
loc_6D453:
lea rcx, [rsp+78h+var_60]
mov dword ptr [rcx], 0
xor eax, eax
mov [rcx+8], rax
mov [rcx+10h], rcx
mov [rcx+18h], rcx
mov [rcx+20h], rax
mov r13, [r15+50h]
mov rax, [r14]
mov rdi, r14
call qword ptr [rax+80h]
mov rcx, [r13+0]
mov rdi, r13
mov rsi, rax
call qword ptr [rcx+10h]
mov r13, [r12]
mov rbp, [r12+8]
cmp r13, rbp
jz loc_6D601
lea rax, [r15+8]
mov [rsp+78h+var_70], rax; int
loc_6D4A8:
mov r12, [r13+0]
mov al, [r12+1]
test al, 8
jnz loc_6D53C
test al, 10h
setz cl
mov rax, [r12+28h]
test rax, rax
setz dl
or dl, cl
jz loc_6D556
loc_6D4D1:
mov rdi, r15; this
mov rsi, r14; google::protobuf::Message *
mov rdx, rbx; google::protobuf::Message *
mov rcx, r12; google::protobuf::FieldDescriptor *
call _ZNK6google8protobuf10Reflection22UnsafeShallowSwapFieldEPNS0_7MessageES3_PKNS0_15FieldDescriptorE; google::protobuf::Reflection::UnsafeShallowSwapField(google::protobuf::Message *,google::protobuf::Message *,google::protobuf::FieldDescriptor const*)
mov al, [r12+1]
not al
test al, 60h
jz loc_6D5F4
mov rdi, r15; this
mov rsi, r14; google::protobuf::Message *
mov rdx, rbx; google::protobuf::Message *
mov rcx, r12; google::protobuf::FieldDescriptor *
call _ZNK6google8protobuf10Reflection7SwapBitEPNS0_7MessageES3_PKNS0_15FieldDescriptorE; google::protobuf::Reflection::SwapBit(google::protobuf::Message *,google::protobuf::Message *,google::protobuf::FieldDescriptor const*)
mov rax, [r12+38h]
cmp dword ptr [rax+48h], 0
jnz loc_6D5F4
mov rdi, [rsp+78h+var_70]; this
mov rsi, r12; google::protobuf::FieldDescriptor *
call _ZNK6google8protobuf8internal16ReflectionSchema14IsFieldInlinedEPKNS0_15FieldDescriptorE; google::protobuf::internal::ReflectionSchema::IsFieldInlined(google::protobuf::FieldDescriptor const*)
test al, al
jz loc_6D5F4
mov rdi, r15; this
mov rsi, r14; google::protobuf::Message *
mov rdx, rbx; google::protobuf::Message *
mov rcx, r12; google::protobuf::FieldDescriptor *
call _ZNK6google8protobuf10Reflection24SwapInlinedStringDonatedEPNS0_7MessageES3_PKNS0_15FieldDescriptorE; google::protobuf::Reflection::SwapInlinedStringDonated(google::protobuf::Message *,google::protobuf::Message *,google::protobuf::FieldDescriptor const*)
jmp loc_6D5F4
loc_6D53C:
mov esi, [r15+28h]
lea rdi, [r14+rsi]; this
add rsi, rbx; google::protobuf::internal::ExtensionSet *
mov edx, [r12+4]; int
call _ZN6google8protobuf8internal12ExtensionSet26UnsafeShallowSwapExtensionEPS2_i; google::protobuf::internal::ExtensionSet::UnsafeShallowSwapExtension(google::protobuf::internal::ExtensionSet*,int)
jmp loc_6D5F4
loc_6D556:
cmp dword ptr [rax+4], 1
jnz short loc_6D56A
mov rcx, [rax+20h]
test byte ptr [rcx+1], 2
jnz loc_6D4D1
loc_6D56A:
mov rcx, [rax+10h]
sub rax, [rcx+30h]
shr rax, 3
imul eax, 0CCCCCCCDh
mov [rsp+78h+var_74], eax
mov rdi, [rsp+78h+var_58]
test rdi, rdi
jz short loc_6D5C6
lea r8, [rsp+78h+var_60]
loc_6D58F:
mov rcx, r8
mov rdx, rdi
mov esi, [rdi+20h]
xor edi, edi
cmp esi, eax
setl dil
mov r8, rdx
cmovl r8, rcx
mov rdi, [rdx+rdi*8+10h]
test rdi, rdi
jnz short loc_6D58F
lea rdi, [rsp+78h+var_60]
cmp r8, rdi
jz short loc_6D5C6
cmp esi, eax
cmovl rdx, rcx
cmp [rdx+20h], eax
jle short loc_6D5F4
loc_6D5C6:
lea rdi, [rsp+78h+var_68]
lea rsi, [rsp+78h+var_74]
call _ZNSt8_Rb_treeIiiSt9_IdentityIiESt4lessIiESaIiEE16_M_insert_uniqueIRKiEESt4pairISt17_Rb_tree_iteratorIiEbEOT_; std::_Rb_tree<int,int,std::_Identity<int>,std::less<int>,std::allocator<int>>::_M_insert_unique<int const&>(int const&)
test byte ptr [r12+1], 10h
jz short loc_6D5E4
mov rcx, [r12+28h]
jmp short loc_6D5E6
loc_6D5E4:
xor ecx, ecx
loc_6D5E6:
mov rdi, r15; this
mov rsi, r14; google::protobuf::Message *
mov rdx, rbx
call _ZNK6google8protobuf10Reflection14SwapOneofFieldILb1EEEvPNS0_7MessageES4_PKNS0_15OneofDescriptorE; google::protobuf::Reflection::SwapOneofField<true>(google::protobuf::Message *,google::protobuf::Message *,google::protobuf::OneofDescriptor const*)
loc_6D5F4:
add r13, 8
cmp r13, rbp
jnz loc_6D4A8
loc_6D601:
lea rdi, [rsp+78h+var_68]
call _ZNSt8_Rb_treeIiiSt9_IdentityIiESt4lessIiESaIiEED2Ev; std::_Rb_tree<int,int,std::_Identity<int>,std::less<int>,std::allocator<int>>::~_Rb_tree()
loc_6D60B:
add rsp, 48h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
jmp short loc_6D622
jmp short loc_6D622
jmp short loc_6D633
jmp short $+2
loc_6D622:
mov rbx, rax
lea rdi, [rsp+arg_8]; this
call _ZN6google8protobuf8internal10LogMessageD2Ev; google::protobuf::internal::LogMessage::~LogMessage()
jmp short loc_6D640
jmp short $+2
loc_6D633:
mov rbx, rax
lea rdi, [rsp+arg_8]
call _ZNSt8_Rb_treeIiiSt9_IdentityIiESt4lessIiESaIiEED2Ev; std::_Rb_tree<int,int,std::_Identity<int>,std::less<int>,std::allocator<int>>::~_Rb_tree()
loc_6D640:
mov rdi, rbx
call __Unwind_Resume
| void google::protobuf::Reflection::SwapFieldsImpl<true>(
google::protobuf::Reflection *this,
google::protobuf::Message *a2,
google::protobuf::Message *a3,
const google::protobuf::FieldDescriptor ***a4)
{
google::protobuf::Message *v6; // r14
google::protobuf::Reflection *v8; // rdx
long long v9; // rax
long long v10; // r13
long long v11; // rax
long long v12; // rax
long long v13; // rax
long long v14; // rax
google::protobuf::Reflection *v15; // rdx
long long v16; // rax
long long v17; // r13
long long v18; // rax
long long v19; // rax
long long v20; // rax
long long v21; // rax
long long v22; // r13
long long v23; // rax
const google::protobuf::FieldDescriptor *v24; // r8
long long v25; // r9
const google::protobuf::FieldDescriptor **v26; // r13
const google::protobuf::FieldDescriptor **v27; // rbp
const google::protobuf::FieldDescriptor *v28; // r12
char v29; // al
bool v30; // cl
long long v31; // rax
int v32; // eax
const google::protobuf::FieldDescriptor *v33; // rdi
const google::protobuf::FieldDescriptor *v34; // rcx
const google::protobuf::FieldDescriptor *v35; // rdx
int v36; // esi
int v37; // [rsp+0h] [rbp-78h]
int v38; // [rsp+4h] [rbp-74h] BYREF
google::protobuf::internal::ReflectionSchema *v39; // [rsp+8h] [rbp-70h]
int v40; // [rsp+10h] [rbp-68h] BYREF
void *v41; // [rsp+18h] [rbp-60h] BYREF
const google::protobuf::FieldDescriptor *v42; // [rsp+20h] [rbp-58h]
void **v43; // [rsp+28h] [rbp-50h]
void **v44; // [rsp+30h] [rbp-48h]
long long v45; // [rsp+38h] [rbp-40h]
if ( a2 != a3 )
{
v6 = a2;
(*(void ( **)(google::protobuf::Message *))(*(_QWORD *)a2 + 128LL))(a2);
if ( v8 != this )
{
google::protobuf::internal::LogMessage::LogMessage(
(long long)&v40,
3,
(long long)"/workspace/llm4binary/github2025/aimrt_mujoco_sim/_deps/protobuf-src/src/google/protobuf/generated_mess"
"age_reflection.cc",
998);
v9 = google::protobuf::internal::LogMessage::operator<<(
(long long)&v40,
(long long)"CHECK failed: (message1->GetReflection()) == (this): ");
v10 = google::protobuf::internal::LogMessage::operator<<(
v9,
(long long)"First argument to SwapFields() (of type \"");
v11 = (*(long long ( **)(google::protobuf::Message *))(*(_QWORD *)a2 + 128LL))(a2);
v12 = google::protobuf::internal::LogMessage::operator<<(v10, *(_QWORD *)(v11 + 8) + 32LL);
v13 = google::protobuf::internal::LogMessage::operator<<(
v12,
(long long)"\") is not compatible with this reflection object (which is for type \"");
v14 = google::protobuf::internal::LogMessage::operator<<(v13, *(_QWORD *)(*(_QWORD *)this + 8LL) + 32LL);
a2 = (google::protobuf::Message *)google::protobuf::internal::LogMessage::operator<<(
v14,
(long long)"\"). Note that the exact same class is required; not just the same descriptor.");
google::protobuf::internal::LogFinisher::operator=((long long)&v38, a2);
google::protobuf::internal::LogMessage::~LogMessage((google::protobuf::internal::LogMessage *)&v40);
}
(*(void ( **)(google::protobuf::Message *))(*(_QWORD *)a3 + 128LL))(a3);
if ( v15 != this )
{
google::protobuf::internal::LogMessage::LogMessage(
(long long)&v40,
3,
(long long)"/workspace/llm4binary/github2025/aimrt_mujoco_sim/_deps/protobuf-src/src/google/protobuf/generated_mess"
"age_reflection.cc",
1006);
v16 = google::protobuf::internal::LogMessage::operator<<(
(long long)&v40,
(long long)"CHECK failed: (message2->GetReflection()) == (this): ");
v17 = google::protobuf::internal::LogMessage::operator<<(
v16,
(long long)"Second argument to SwapFields() (of type \"");
v18 = (*(long long ( **)(google::protobuf::Message *))(*(_QWORD *)a3 + 128LL))(a3);
v19 = google::protobuf::internal::LogMessage::operator<<(v17, *(_QWORD *)(v18 + 8) + 32LL);
v20 = google::protobuf::internal::LogMessage::operator<<(
v19,
(long long)"\") is not compatible with this reflection object (which is for type \"");
v21 = google::protobuf::internal::LogMessage::operator<<(v20, *(_QWORD *)(*(_QWORD *)this + 8LL) + 32LL);
a2 = (google::protobuf::Message *)google::protobuf::internal::LogMessage::operator<<(
v21,
(long long)"\"). Note that the exact same class is required; not just the same descriptor.");
google::protobuf::internal::LogFinisher::operator=((long long)&v38, a2);
google::protobuf::internal::LogMessage::~LogMessage((google::protobuf::internal::LogMessage *)&v40);
}
LODWORD(v41) = 0;
v42 = 0LL;
v43 = &v41;
v44 = &v41;
v45 = 0LL;
v22 = *((_QWORD *)this + 10);
v23 = (*(long long ( **)(google::protobuf::Message *, google::protobuf::Message *, google::protobuf::Reflection *, void **))(*(_QWORD *)v6 + 128LL))(
v6,
a2,
v15,
&v41);
(*(void ( **)(long long, long long))(*(_QWORD *)v22 + 16LL))(v22, v23);
v26 = *a4;
v27 = a4[1];
if ( *a4 != v27 )
{
v39 = (google::protobuf::Reflection *)((char *)this + 8);
do
{
v28 = *v26;
v29 = *((_BYTE *)*v26 + 1);
if ( (v29 & 8) != 0 )
{
google::protobuf::internal::ExtensionSet::UnsafeShallowSwapExtension(
(google::protobuf::Message *)((char *)v6 + *((unsigned int *)this + 10)),
(google::protobuf::Message *)((char *)a3 + *((unsigned int *)this + 10)),
*((_DWORD *)v28 + 1));
}
else
{
v30 = (v29 & 0x10) == 0;
v31 = *((_QWORD *)v28 + 5);
if ( v30 || v31 == 0 || *(_DWORD *)(v31 + 4) == 1 && (*(_BYTE *)(*(_QWORD *)(v31 + 32) + 1LL) & 2) != 0 )
{
google::protobuf::Reflection::UnsafeShallowSwapField(this, v6, a3, *v26, v24, v25);
if ( (~*((_BYTE *)v28 + 1) & 0x60) != 0 )
{
google::protobuf::Reflection::SwapBit(this, v6, a3, v28);
if ( !*(_DWORD *)(*((_QWORD *)v28 + 7) + 72LL) )
{
if ( (unsigned __int8)google::protobuf::internal::ReflectionSchema::IsFieldInlined(v39, v28) )
google::protobuf::Reflection::SwapInlinedStringDonated(this, v6, a3, v28);
}
}
}
else
{
v32 = -858993459 * ((unsigned long long)(v31 - *(_QWORD *)(*(_QWORD *)(v31 + 16) + 48LL)) >> 3);
v38 = v32;
v33 = v42;
if ( !v42 )
goto LABEL_26;
v24 = (const google::protobuf::FieldDescriptor *)&v41;
do
{
v34 = v24;
v35 = v33;
v36 = *((_DWORD *)v33 + 8);
v24 = v33;
if ( v36 < v32 )
v24 = v34;
v33 = (const google::protobuf::FieldDescriptor *)*((_QWORD *)v33 + (v36 < v32) + 2);
}
while ( v33 );
if ( v24 == (const google::protobuf::FieldDescriptor *)&v41 )
goto LABEL_26;
if ( v36 < v32 )
v35 = v34;
if ( *((_DWORD *)v35 + 8) > v32 )
{
LABEL_26:
std::_Rb_tree<int,int,std::_Identity<int>,std::less<int>,std::allocator<int>>::_M_insert_unique<int const&>(
&v40,
&v38);
google::protobuf::Reflection::SwapOneofField<true>(
this,
v6,
v37,
(int)v39,
v40,
v41,
(int)v42,
(char)v43,
(int)v44,
v45);
}
}
}
++v26;
}
while ( v26 != v27 );
}
std::_Rb_tree<int,int,std::_Identity<int>,std::less<int>,std::allocator<int>>::~_Rb_tree((long long)&v40);
}
}
| SwapFieldsImpl<true>:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x48
CMP RSI,RDX
JZ 0x0016d60b
MOV R12,RCX
MOV RBX,RDX
MOV R14,RSI
MOV R15,RDI
MOV RAX,qword ptr [RSI]
MOV RDI,RSI
CALL qword ptr [RAX + 0x80]
CMP RDX,R15
JZ 0x0016d39b
LEA RDX,[0x1b9ae8]
LEA R13,[RSP + 0x10]
MOV RDI,R13
MOV ESI,0x3
MOV ECX,0x3e6
CALL 0x001169ca
LAB_0016d316:
LEA RSI,[0x1b9b76]
MOV RDI,R13
CALL 0x001164c8
LEA RSI,[0x1ba705]
MOV RDI,RAX
CALL 0x001164c8
MOV R13,RAX
MOV RAX,qword ptr [R14]
MOV RDI,R14
CALL qword ptr [RAX + 0x80]
MOV RSI,qword ptr [RAX + 0x8]
ADD RSI,0x20
MOV RDI,R13
CALL 0x001164da
LEA RSI,[0x1b9bd0]
MOV RDI,RAX
CALL 0x001164c8
MOV RCX,qword ptr [R15]
MOV RSI,qword ptr [RCX + 0x8]
ADD RSI,0x20
MOV RDI,RAX
CALL 0x001164da
LEA RSI,[0x1b9c16]
MOV RDI,RAX
CALL 0x001164c8
LAB_0016d384:
LEA RDI,[RSP + 0x4]
MOV RSI,RAX
CALL 0x001165a2
LAB_0016d391:
LEA RDI,[RSP + 0x10]
CALL 0x001169e8
LAB_0016d39b:
MOV RAX,qword ptr [RBX]
MOV RDI,RBX
CALL qword ptr [RAX + 0x80]
CMP RDX,R15
JZ 0x0016d453
LEA RDX,[0x1b9ae8]
LEA R13,[RSP + 0x10]
MOV RDI,R13
MOV ESI,0x3
MOV ECX,0x3ee
CALL 0x001169ca
LAB_0016d3ce:
LEA RSI,[0x1b9c65]
MOV RDI,R13
CALL 0x001164c8
LEA RSI,[0x1ba72f]
MOV RDI,RAX
CALL 0x001164c8
MOV R13,RAX
MOV RAX,qword ptr [RBX]
MOV RDI,RBX
CALL qword ptr [RAX + 0x80]
MOV RSI,qword ptr [RAX + 0x8]
ADD RSI,0x20
MOV RDI,R13
CALL 0x001164da
LEA RSI,[0x1b9bd0]
MOV RDI,RAX
CALL 0x001164c8
MOV RCX,qword ptr [R15]
MOV RSI,qword ptr [RCX + 0x8]
ADD RSI,0x20
MOV RDI,RAX
CALL 0x001164da
LEA RSI,[0x1b9c16]
MOV RDI,RAX
CALL 0x001164c8
LAB_0016d43c:
LEA RDI,[RSP + 0x4]
MOV RSI,RAX
CALL 0x001165a2
LEA RDI,[RSP + 0x10]
CALL 0x001169e8
LAB_0016d453:
LEA RCX,[RSP + 0x18]
MOV dword ptr [RCX],0x0
XOR EAX,EAX
MOV qword ptr [RCX + 0x8],RAX
MOV qword ptr [RCX + 0x10],RCX
MOV qword ptr [RCX + 0x18],RCX
MOV qword ptr [RCX + 0x20],RAX
MOV R13,qword ptr [R15 + 0x50]
MOV RAX,qword ptr [R14]
LAB_0016d477:
MOV RDI,R14
CALL qword ptr [RAX + 0x80]
MOV RCX,qword ptr [R13]
MOV RDI,R13
MOV RSI,RAX
CALL qword ptr [RCX + 0x10]
MOV R13,qword ptr [R12]
MOV RBP,qword ptr [R12 + 0x8]
CMP R13,RBP
JZ 0x0016d601
LEA RAX,[R15 + 0x8]
MOV qword ptr [RSP + 0x8],RAX
LAB_0016d4a8:
MOV R12,qword ptr [R13]
MOV AL,byte ptr [R12 + 0x1]
TEST AL,0x8
JNZ 0x0016d53c
TEST AL,0x10
SETZ CL
MOV RAX,qword ptr [R12 + 0x28]
TEST RAX,RAX
SETZ DL
OR DL,CL
JZ 0x0016d556
LAB_0016d4d1:
MOV RDI,R15
MOV RSI,R14
MOV RDX,RBX
MOV RCX,R12
CALL 0x0016545e
MOV AL,byte ptr [R12 + 0x1]
NOT AL
TEST AL,0x60
JZ 0x0016d5f4
MOV RDI,R15
MOV RSI,R14
MOV RDX,RBX
MOV RCX,R12
CALL 0x0016fd58
MOV RAX,qword ptr [R12 + 0x38]
CMP dword ptr [RAX + 0x48],0x0
JNZ 0x0016d5f4
MOV RDI,qword ptr [RSP + 0x8]
MOV RSI,R12
CALL 0x0016e994
TEST AL,AL
JZ 0x0016d5f4
MOV RDI,R15
MOV RSI,R14
MOV RDX,RBX
MOV RCX,R12
CALL 0x0016fe3c
JMP 0x0016d5f4
LAB_0016d53c:
MOV ESI,dword ptr [R15 + 0x28]
LEA RDI,[R14 + RSI*0x1]
ADD RSI,RBX
MOV EDX,dword ptr [R12 + 0x4]
CALL 0x00197590
JMP 0x0016d5f4
LAB_0016d556:
CMP dword ptr [RAX + 0x4],0x1
JNZ 0x0016d56a
MOV RCX,qword ptr [RAX + 0x20]
TEST byte ptr [RCX + 0x1],0x2
JNZ 0x0016d4d1
LAB_0016d56a:
MOV RCX,qword ptr [RAX + 0x10]
SUB RAX,qword ptr [RCX + 0x30]
SHR RAX,0x3
IMUL EAX,EAX,-0x33333333
MOV dword ptr [RSP + 0x4],EAX
MOV RDI,qword ptr [RSP + 0x20]
TEST RDI,RDI
JZ 0x0016d5c6
LEA R8,[RSP + 0x18]
LAB_0016d58f:
MOV RCX,R8
MOV RDX,RDI
MOV ESI,dword ptr [RDI + 0x20]
XOR EDI,EDI
CMP ESI,EAX
SETL DIL
MOV R8,RDX
CMOVL R8,RCX
MOV RDI,qword ptr [RDX + RDI*0x8 + 0x10]
TEST RDI,RDI
JNZ 0x0016d58f
LEA RDI,[RSP + 0x18]
CMP R8,RDI
JZ 0x0016d5c6
CMP ESI,EAX
CMOVL RDX,RCX
CMP dword ptr [RDX + 0x20],EAX
JLE 0x0016d5f4
LAB_0016d5c6:
LEA RDI,[RSP + 0x10]
LEA RSI,[RSP + 0x4]
CALL 0x0017007e
TEST byte ptr [R12 + 0x1],0x10
JZ 0x0016d5e4
MOV RCX,qword ptr [R12 + 0x28]
JMP 0x0016d5e6
LAB_0016d5e4:
XOR ECX,ECX
LAB_0016d5e6:
MOV RDI,R15
MOV RSI,R14
MOV RDX,RBX
CALL 0x0016d648
LAB_0016d5f4:
ADD R13,0x8
CMP R13,RBP
JNZ 0x0016d4a8
LAB_0016d601:
LEA RDI,[RSP + 0x10]
CALL 0x001403be
LAB_0016d60b:
ADD RSP,0x48
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
|
/* void google::protobuf::Reflection::SwapFieldsImpl<true>(google::protobuf::Message*,
google::protobuf::Message*, std::vector<google::protobuf::FieldDescriptor const*,
std::allocator<google::protobuf::FieldDescriptor const*> > const&) const */
void __thiscall
google::protobuf::Reflection::SwapFieldsImpl<true>
(Reflection *this,Message *param_1,Message *param_2,vector *param_3)
{
int iVar1;
long *plVar2;
int8 *puVar3;
FieldDescriptor *pFVar4;
int4 *puVar5;
char cVar6;
int iVar7;
LogMessage *pLVar8;
long lVar9;
int8 uVar10;
OneofDescriptor *pOVar11;
Reflection *extraout_RDX;
Reflection *extraout_RDX_00;
int4 *puVar12;
int4 *puVar13;
int4 *puVar14;
int8 *puVar15;
bool bVar16;
int local_74;
Reflection *local_70;
LogMessage local_68 [8];
int4 local_60 [2];
int4 *local_58;
int4 *local_50;
int4 *local_48;
int8 local_40;
if (param_1 != param_2) {
(**(code **)(*(long *)param_1 + 0x80))(param_1);
if (extraout_RDX != this) {
internal::LogMessage::LogMessage
(local_68,3,
"/workspace/llm4binary/github2025/aimrt_mujoco_sim/_deps/protobuf-src/src/google/protobuf/generated_message_reflection.cc"
,0x3e6);
/* try { // try from 0016d316 to 0016d383 has its CatchHandler @ 0016d622 */
pLVar8 = (LogMessage *)
internal::LogMessage::operator<<
(local_68,"CHECK failed: (message1->GetReflection()) == (this): ");
pLVar8 = (LogMessage *)
internal::LogMessage::operator<<(pLVar8,"First argument to SwapFields() (of type \"")
;
lVar9 = (**(code **)(*(long *)param_1 + 0x80))(param_1);
pLVar8 = (LogMessage *)
internal::LogMessage::operator<<(pLVar8,(string *)(*(long *)(lVar9 + 8) + 0x20));
pLVar8 = (LogMessage *)
internal::LogMessage::operator<<
(pLVar8,
"\") is not compatible with this reflection object (which is for type \"")
;
pLVar8 = (LogMessage *)
internal::LogMessage::operator<<
(pLVar8,(string *)(*(long *)(*(long *)this + 8) + 0x20));
pLVar8 = (LogMessage *)
internal::LogMessage::operator<<
(pLVar8,
"\"). Note that the exact same class is required; not just the same descriptor."
);
/* try { // try from 0016d384 to 0016d390 has its CatchHandler @ 0016d61c */
internal::LogFinisher::operator=((LogFinisher *)&local_74,pLVar8);
internal::LogMessage::~LogMessage(local_68);
}
(**(code **)(*(long *)param_2 + 0x80))(param_2);
if (extraout_RDX_00 != this) {
internal::LogMessage::LogMessage
(local_68,3,
"/workspace/llm4binary/github2025/aimrt_mujoco_sim/_deps/protobuf-src/src/google/protobuf/generated_message_reflection.cc"
,0x3ee);
/* try { // try from 0016d3ce to 0016d43b has its CatchHandler @ 0016d620 */
pLVar8 = (LogMessage *)
internal::LogMessage::operator<<
(local_68,"CHECK failed: (message2->GetReflection()) == (this): ");
pLVar8 = (LogMessage *)
internal::LogMessage::operator<<
(pLVar8,"Second argument to SwapFields() (of type \"");
lVar9 = (**(code **)(*(long *)param_2 + 0x80))(param_2);
pLVar8 = (LogMessage *)
internal::LogMessage::operator<<(pLVar8,(string *)(*(long *)(lVar9 + 8) + 0x20));
pLVar8 = (LogMessage *)
internal::LogMessage::operator<<
(pLVar8,
"\") is not compatible with this reflection object (which is for type \"")
;
pLVar8 = (LogMessage *)
internal::LogMessage::operator<<
(pLVar8,(string *)(*(long *)(*(long *)this + 8) + 0x20));
pLVar8 = (LogMessage *)
internal::LogMessage::operator<<
(pLVar8,
"\"). Note that the exact same class is required; not just the same descriptor."
);
/* try { // try from 0016d43c to 0016d448 has its CatchHandler @ 0016d61a */
internal::LogFinisher::operator=((LogFinisher *)&local_74,pLVar8);
internal::LogMessage::~LogMessage(local_68);
}
local_50 = local_60;
local_60[0] = 0;
local_58 = (int4 *)0x0;
local_40 = 0;
plVar2 = *(long **)(this + 0x50);
/* try { // try from 0016d477 to 0016d48c has its CatchHandler @ 0016d61e */
local_48 = local_50;
uVar10 = (**(code **)(*(long *)param_1 + 0x80))(param_1);
(**(code **)(*plVar2 + 0x10))(plVar2,uVar10);
puVar15 = *(int8 **)param_3;
puVar3 = *(int8 **)(param_3 + 8);
if (puVar15 != puVar3) {
local_70 = this + 8;
do {
pFVar4 = (FieldDescriptor *)*puVar15;
if (((byte)pFVar4[1] & 8) == 0) {
lVar9 = *(long *)(pFVar4 + 0x28);
if ((lVar9 == 0 || ((byte)pFVar4[1] & 0x10) == 0) ||
((*(int *)(lVar9 + 4) == 1 && ((*(byte *)(*(long *)(lVar9 + 0x20) + 1) & 2) != 0)))) {
/* try { // try from 0016d4d1 to 0016d550 has its CatchHandler @ 0016d633 */
UnsafeShallowSwapField(this,param_1,param_2,pFVar4);
if ((~(byte)pFVar4[1] & 0x60) != 0) {
SwapBit(this,param_1,param_2,pFVar4);
if (*(int *)(*(long *)(pFVar4 + 0x38) + 0x48) == 0) {
cVar6 = internal::ReflectionSchema::IsFieldInlined
((ReflectionSchema *)local_70,pFVar4);
if (cVar6 != '\0') {
SwapInlinedStringDonated(this,param_1,param_2,pFVar4);
}
}
}
}
else {
iVar7 = (int)((ulong)(lVar9 - *(long *)(*(long *)(lVar9 + 0x10) + 0x30)) >> 3);
local_74 = iVar7 * -0x33333333;
if (local_58 != (int4 *)0x0) {
puVar5 = local_58;
puVar14 = local_60;
do {
puVar13 = puVar14;
puVar12 = puVar5;
iVar1 = puVar12[8];
bVar16 = iVar1 + iVar7 * 0x33333333 < 0;
puVar14 = puVar12;
if (SBORROW4(iVar1,local_74) != bVar16) {
puVar14 = puVar13;
}
puVar5 = *(int4 **)
(puVar12 + (ulong)(SBORROW4(iVar1,local_74) != bVar16) * 2 + 4);
} while (*(int4 **)
(puVar12 + (ulong)(SBORROW4(iVar1,local_74) != bVar16) * 2 + 4) !=
(int4 *)0x0);
if (puVar14 != local_60) {
if (SBORROW4(iVar1,local_74) != iVar1 + iVar7 * 0x33333333 < 0) {
puVar12 = puVar13;
}
if ((int)puVar12[8] <= local_74) goto LAB_0016d5f4;
}
}
/* try { // try from 0016d5c6 to 0016d5f3 has its CatchHandler @ 0016d631 */
std::_Rb_tree<int,int,std::_Identity<int>,std::less<int>,std::allocator<int>>::
_M_insert_unique<int_const&>
((_Rb_tree<int,int,std::_Identity<int>,std::less<int>,std::allocator<int>> *)
local_68,&local_74);
if (((byte)pFVar4[1] & 0x10) == 0) {
pOVar11 = (OneofDescriptor *)0x0;
}
else {
pOVar11 = *(OneofDescriptor **)(pFVar4 + 0x28);
}
SwapOneofField<true>(this,param_1,param_2,pOVar11);
}
}
else {
internal::ExtensionSet::UnsafeShallowSwapExtension
((ExtensionSet *)(param_1 + *(uint *)(this + 0x28)),
(ExtensionSet *)(param_2 + *(uint *)(this + 0x28)),*(int *)(pFVar4 + 4));
}
LAB_0016d5f4:
puVar15 = puVar15 + 1;
} while (puVar15 != puVar3);
}
std::_Rb_tree<int,int,std::_Identity<int>,std::less<int>,std::allocator<int>>::~_Rb_tree
((_Rb_tree<int,int,std::_Identity<int>,std::less<int>,std::allocator<int>> *)local_68)
;
}
return;
}
| |
42,644 | ma_bitmap_reset_cache | eloqsql/storage/maria/ma_bitmap.c | void _ma_bitmap_reset_cache(MARIA_SHARE *share)
{
MARIA_FILE_BITMAP *bitmap= &share->bitmap;
if (bitmap->map) /* If using bitmap */
{
/* Forget changes in current bitmap page */
bitmap->changed= 0;
/*
We can't read a page yet, as in some case we don't have an active
page cache yet.
Pretend we have a dummy, full and not changed bitmap page in memory.
We set bitmap->page to a value so that if we use it in
move_to_next_bitmap() it will point to page 0.
(This can only happen if writing to a bitmap page fails)
*/
bitmap->page= ((pgcache_page_no_t) 0) - bitmap->pages_covered;
bitmap->used_size= bitmap->total_size= bitmap->max_total_size;
bitmap->full_head_size= bitmap->full_tail_size= bitmap->max_total_size;
bfill(bitmap->map, share->block_size, 255);
#ifndef DBUG_OFF
memcpy(bitmap->map + bitmap->block_size, bitmap->map, bitmap->block_size);
#endif
/* Start scanning for free space from start of file */
share->state.first_bitmap_with_space = 0;
}
} | O3 | c | ma_bitmap_reset_cache:
pushq %rbp
movq %rsp, %rbp
pushq %rbx
pushq %rax
movq %rdi, %rbx
movq 0xa18(%rdi), %rdi
testq %rdi, %rdi
je 0x3bb24
movb $0x0, 0xa30(%rbx)
xorl %eax, %eax
subq 0xb48(%rbx), %rax
movq %rax, 0xa20(%rbx)
movl 0xb3c(%rbx), %eax
movl %eax, 0xb38(%rbx)
movl %eax, 0xa34(%rbx)
movl %eax, 0xa3c(%rbx)
movl %eax, 0xa38(%rbx)
movl 0x7bc(%rbx), %edx
movl $0xff, %esi
callq 0x292b0
movq $0x0, 0xd0(%rbx)
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
| _ma_bitmap_reset_cache:
push rbp
mov rbp, rsp
push rbx
push rax
mov rbx, rdi
mov rdi, [rdi+0A18h]
test rdi, rdi
jz short loc_3BB24
mov byte ptr [rbx+0A30h], 0
xor eax, eax
sub rax, [rbx+0B48h]
mov [rbx+0A20h], rax
mov eax, [rbx+0B3Ch]
mov [rbx+0B38h], eax
mov [rbx+0A34h], eax
mov [rbx+0A3Ch], eax
mov [rbx+0A38h], eax
mov edx, [rbx+7BCh]
mov esi, 0FFh
call _memset
mov qword ptr [rbx+0D0h], 0
loc_3BB24:
add rsp, 8
pop rbx
pop rbp
retn
| long long ma_bitmap_reset_cache(long long a1)
{
long long v2; // rdi
int v3; // eax
long long result; // rax
v2 = *(_QWORD *)(a1 + 2584);
if ( v2 )
{
*(_BYTE *)(a1 + 2608) = 0;
*(_QWORD *)(a1 + 2592) = -*(_QWORD *)(a1 + 2888);
v3 = *(_DWORD *)(a1 + 2876);
*(_DWORD *)(a1 + 2872) = v3;
*(_DWORD *)(a1 + 2612) = v3;
*(_DWORD *)(a1 + 2620) = v3;
*(_DWORD *)(a1 + 2616) = v3;
result = memset(v2, 255LL, *(unsigned int *)(a1 + 1980));
*(_QWORD *)(a1 + 208) = 0LL;
}
return result;
}
| _ma_bitmap_reset_cache:
PUSH RBP
MOV RBP,RSP
PUSH RBX
PUSH RAX
MOV RBX,RDI
MOV RDI,qword ptr [RDI + 0xa18]
TEST RDI,RDI
JZ 0x0013bb24
MOV byte ptr [RBX + 0xa30],0x0
XOR EAX,EAX
SUB RAX,qword ptr [RBX + 0xb48]
MOV qword ptr [RBX + 0xa20],RAX
MOV EAX,dword ptr [RBX + 0xb3c]
MOV dword ptr [RBX + 0xb38],EAX
MOV dword ptr [RBX + 0xa34],EAX
MOV dword ptr [RBX + 0xa3c],EAX
MOV dword ptr [RBX + 0xa38],EAX
MOV EDX,dword ptr [RBX + 0x7bc]
MOV ESI,0xff
CALL 0x001292b0
MOV qword ptr [RBX + 0xd0],0x0
LAB_0013bb24:
ADD RSP,0x8
POP RBX
POP RBP
RET
|
void _ma_bitmap_reset_cache(long param_1)
{
int4 uVar1;
if (*(void **)(param_1 + 0xa18) != (void *)0x0) {
*(int1 *)(param_1 + 0xa30) = 0;
*(long *)(param_1 + 0xa20) = -*(long *)(param_1 + 0xb48);
uVar1 = *(int4 *)(param_1 + 0xb3c);
*(int4 *)(param_1 + 0xb38) = uVar1;
*(int4 *)(param_1 + 0xa34) = uVar1;
*(int4 *)(param_1 + 0xa3c) = uVar1;
*(int4 *)(param_1 + 0xa38) = uVar1;
memset(*(void **)(param_1 + 0xa18),0xff,(ulong)*(uint *)(param_1 + 0x7bc));
*(int8 *)(param_1 + 0xd0) = 0;
}
return;
}
| |
42,645 | mariadb_convert_string | eloqsql/libmariadb/libmariadb/ma_charset.c | size_t STDCALL mariadb_convert_string(const char *from __attribute__((unused)),
size_t *from_len __attribute__((unused)),
MARIADB_CHARSET_INFO *from_cs __attribute__((unused)),
char *to __attribute__((unused)),
size_t *to_len __attribute__((unused)),
MARIADB_CHARSET_INFO *to_cs __attribute__((unused)), int *errorcode)
{
#ifndef HAVE_ICONV
*errorcode= ENOTSUP;
return -1;
#else
iconv_t conv= 0;
size_t rc= -1;
size_t save_len= *to_len;
char to_encoding[128], from_encoding[128];
*errorcode= 0;
/* check if conversion is supported */
if (!from_cs || !from_cs->encoding || !from_cs->encoding[0] ||
!to_cs || !to_cs->encoding || !to_cs->encoding[0])
{
*errorcode= EINVAL;
return rc;
}
map_charset_name(to_cs->encoding, 1, to_encoding, sizeof(to_encoding));
map_charset_name(from_cs->encoding, 0, from_encoding, sizeof(from_encoding));
if ((conv= iconv_open(to_encoding, from_encoding)) == (iconv_t)-1)
{
*errorcode= errno;
goto error;
}
if ((rc= iconv(conv, IF_WIN(,IF_SOLARIS(,(char **)))&from, from_len, &to, to_len)) == (size_t)-1)
{
*errorcode= errno;
goto error;
}
rc= save_len - *to_len;
error:
if (conv != (iconv_t)-1)
iconv_close(conv);
return rc;
#endif
} | O3 | c | mariadb_convert_string:
pushq %rbp
movq %rsp, %rbp
movq 0x10(%rbp), %rax
movl $0x5f, (%rax)
movq $-0x1, %rax
popq %rbp
retq
nopl (%rax)
| mariadb_convert_string:
push rbp
mov rbp, rsp
mov rax, [rbp+arg_0]
mov dword ptr [rax], 5Fh ; '_'
mov rax, 0FFFFFFFFFFFFFFFFh
pop rbp
retn
| long long mariadb_convert_string(
long long a1,
long long a2,
long long a3,
long long a4,
long long a5,
long long a6,
_DWORD *a7)
{
*a7 = 95;
return -1LL;
}
| mariadb_convert_string:
PUSH RBP
MOV RBP,RSP
MOV RAX,qword ptr [RBP + 0x10]
MOV dword ptr [RAX],0x5f
MOV RAX,-0x1
POP RBP
RET
|
int8 mariadb_convert_string(void)
{
int4 *in_stack_00000008;
*in_stack_00000008 = 0x5f;
return 0xffffffffffffffff;
}
| |
42,646 | skip_digits | eloqsql/sql-common/my_time.c | static uint skip_digits(const char **str, const char *end)
{
const char *start= *str, *s= *str;
while (s < end && my_isdigit(&my_charset_latin1, *s))
s++;
*str= s;
return (uint)(s - start);
} | O0 | c | skip_digits:
pushq %rbp
movq %rsp, %rbp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq -0x8(%rbp), %rax
movq (%rax), %rax
movq %rax, -0x18(%rbp)
movq -0x8(%rbp), %rax
movq (%rax), %rax
movq %rax, -0x20(%rbp)
movq -0x20(%rbp), %rcx
xorl %eax, %eax
cmpq -0x10(%rbp), %rcx
movb %al, -0x21(%rbp)
jae 0x12e3004
leaq 0x8d12d8(%rip), %rax # 0x1bb42c0
movq 0x40(%rax), %rax
movq -0x20(%rbp), %rcx
movzbl (%rcx), %ecx
movzbl 0x1(%rax,%rcx), %eax
andl $0x4, %eax
cmpl $0x0, %eax
setne %al
movb %al, -0x21(%rbp)
movb -0x21(%rbp), %al
testb $0x1, %al
jne 0x12e300d
jmp 0x12e301b
movq -0x20(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x20(%rbp)
jmp 0x12e2fd2
movq -0x20(%rbp), %rcx
movq -0x8(%rbp), %rax
movq %rcx, (%rax)
movq -0x20(%rbp), %rax
movq -0x18(%rbp), %rcx
subq %rcx, %rax
popq %rbp
retq
nopw %cs:(%rax,%rax)
| skip_digits:
push rbp
mov rbp, rsp
mov [rbp+var_8], rdi
mov [rbp+var_10], rsi
mov rax, [rbp+var_8]
mov rax, [rax]
mov [rbp+var_18], rax
mov rax, [rbp+var_8]
mov rax, [rax]
mov [rbp+var_20], rax
loc_12E2FD2:
mov rcx, [rbp+var_20]
xor eax, eax
cmp rcx, [rbp+var_10]
mov [rbp+var_21], al
jnb short loc_12E3004
lea rax, my_charset_latin1
mov rax, [rax+40h]
mov rcx, [rbp+var_20]
movzx ecx, byte ptr [rcx]
movzx eax, byte ptr [rax+rcx+1]
and eax, 4
cmp eax, 0
setnz al
mov [rbp+var_21], al
loc_12E3004:
mov al, [rbp+var_21]
test al, 1
jnz short loc_12E300D
jmp short loc_12E301B
loc_12E300D:
mov rax, [rbp+var_20]
add rax, 1
mov [rbp+var_20], rax
jmp short loc_12E2FD2
loc_12E301B:
mov rcx, [rbp+var_20]
mov rax, [rbp+var_8]
mov [rax], rcx
mov rax, [rbp+var_20]
mov rcx, [rbp+var_18]
sub rax, rcx
pop rbp
retn
| unsigned __int8 * skip_digits(unsigned __int8 **a1, unsigned long long a2)
{
bool v3; // [rsp+1h] [rbp-21h]
unsigned __int8 *i; // [rsp+2h] [rbp-20h]
unsigned __int8 *v5; // [rsp+Ah] [rbp-18h]
v5 = *a1;
for ( i = *a1; ; ++i )
{
v3 = 0;
if ( (unsigned long long)i < a2 )
v3 = (*(_BYTE *)(*(_QWORD *)&my_charset_latin1[16] + *i + 1LL) & 4) != 0;
if ( !v3 )
break;
}
*a1 = i;
return (unsigned __int8 *)(i - v5);
}
| fil_page_decompress_low:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x200
MOV RAX,qword ptr FS:[0x28]
MOV qword ptr [RBP + -0x8],RAX
MOV qword ptr [RBP + -0x190],RDI
MOV qword ptr [RBP + -0x198],RSI
MOV qword ptr [RBP + -0x1a0],RDX
MOV qword ptr [RBP + -0x1a8],RCX
MOV qword ptr [RBP + -0x1b0],R8
MOV RAX,qword ptr [RBP + -0x1a0]
DEC RAX
MOV qword ptr [RBP + -0x1e0],RAX
SUB RAX,0x5
JA 0x012e3019
MOV RAX,qword ptr [RBP + -0x1e0]
LEA RCX,[0x16804ac]
MOVSXD RAX,dword ptr [RCX + RAX*0x4]
ADD RAX,RCX
switchD:
JMP RAX
caseD_3:
LEA RDI,[RBP + -0x180]
MOV qword ptr [RBP + -0x1f0],RDI
XOR ESI,ESI
MOV EDX,0x178
CALL 0x008584b0
MOV RDI,qword ptr [RBP + -0x1f0]
CALL 0x010c7d30
MOV RDI,qword ptr [RBP + -0x1f0]
LAB_012e3046:
LEA RSI,[0x153326d]
CALL 0x0112cee0
MOV qword ptr [RBP + -0x1e8],RAX
JMP 0x012e305b
LAB_012e305b:
MOV RDI,qword ptr [RBP + -0x1e8]
LEA RSI,[RBP + -0x1a0]
CALL 0x010c49c0
LAB_012e306e:
JMP 0x012e3070
LAB_012e3070:
LEA RDI,[RBP + -0x180]
CALL 0x012420b0
MOV byte ptr [RBP + -0x181],0x0
JMP 0x012e3259
caseD_1:
LEA RAX,[0x265e550]
MOV RAX,qword ptr [RAX]
MOV qword ptr [RBP + -0x1c8],RAX
MOV RDI,qword ptr [RBP + -0x190]
MOV RDX,qword ptr [RBP + -0x198]
ADD RDX,qword ptr [RBP + -0x1a8]
MOV RCX,qword ptr [RBP + -0x1b0]
LEA RSI,[RBP + -0x1c8]
CALL 0x0085a240
MOV EDX,EAX
XOR EAX,EAX
XOR ECX,ECX
CMP ECX,EDX
MOV byte ptr [RBP + -0x1f1],AL
JNZ 0x012e310e
MOV RAX,qword ptr [RBP + -0x1c8]
LEA RCX,[0x265e550]
CMP RAX,qword ptr [RCX]
SETZ AL
MOV byte ptr [RBP + -0x1f1],AL
LAB_012e310e:
MOV AL,byte ptr [RBP + -0x1f1]
AND AL,0x1
MOV byte ptr [RBP + -0x181],AL
JMP 0x012e3259
caseD_2:
MOV RDI,qword ptr [RBP + -0x198]
ADD RDI,qword ptr [RBP + -0x1a8]
MOV RSI,qword ptr [RBP + -0x190]
MOV RAX,qword ptr [RBP + -0x1b0]
MOV EDX,EAX
LEA RAX,[0x265e550]
MOV RAX,qword ptr [RAX]
MOV ECX,EAX
CALL 0x00859ba0
LEA RCX,[0x265e550]
MOV RCX,qword ptr [RCX]
CMP EAX,ECX
SETZ AL
AND AL,0x1
MOV byte ptr [RBP + -0x181],AL
JMP 0x012e3259
caseD_5:
LEA RAX,[0x265e550]
MOV RAX,qword ptr [RAX]
MOV dword ptr [RBP + -0x1cc],EAX
MOV RDI,qword ptr [RBP + -0x190]
MOV RDX,qword ptr [RBP + -0x198]
ADD RDX,qword ptr [RBP + -0x1a8]
MOV RAX,qword ptr [RBP + -0x1b0]
MOV ECX,EAX
LEA RSI,[RBP + -0x1cc]
MOV R8D,0x1
XOR R9D,R9D
CALL 0x00859ed0
MOV EDX,EAX
XOR EAX,EAX
XOR ECX,ECX
CMP ECX,EDX
MOV byte ptr [RBP + -0x1f2],AL
JNZ 0x012e31d8
MOV EAX,dword ptr [RBP + -0x1cc]
LEA RCX,[0x265e550]
CMP RAX,qword ptr [RCX]
SETZ AL
MOV byte ptr [RBP + -0x1f2],AL
LAB_012e31d8:
MOV AL,byte ptr [RBP + -0x1f2]
AND AL,0x1
MOV byte ptr [RBP + -0x181],AL
JMP 0x012e3259
caseD_6:
LEA RAX,[0x265e550]
MOV RAX,qword ptr [RAX]
MOV qword ptr [RBP + -0x1d8],RAX
MOV RDI,qword ptr [RBP + -0x198]
ADD RDI,qword ptr [RBP + -0x1a8]
MOV RSI,qword ptr [RBP + -0x1b0]
MOV RDX,qword ptr [RBP + -0x190]
LEA RCX,[RBP + -0x1d8]
CALL 0x00859090
MOV EDX,EAX
XOR EAX,EAX
XOR ECX,ECX
CMP ECX,EDX
MOV byte ptr [RBP + -0x1f3],AL
JNZ 0x012e324b
MOV RAX,qword ptr [RBP + -0x1d8]
LEA RCX,[0x265e550]
CMP RAX,qword ptr [RCX]
SETZ AL
MOV byte ptr [RBP + -0x1f3],AL
LAB_012e324b:
MOV AL,byte ptr [RBP + -0x1f3]
AND AL,0x1
MOV byte ptr [RBP + -0x181],AL
LAB_012e3259:
MOV AL,byte ptr [RBP + -0x181]
MOV byte ptr [RBP + -0x1f4],AL
MOV RAX,qword ptr FS:[0x28]
MOV RCX,qword ptr [RBP + -0x8]
CMP RAX,RCX
JNZ 0x012e32b4
MOV AL,byte ptr [RBP + -0x1f4]
AND AL,0x1
ADD RSP,0x200
POP RBP
RET
LAB_012e32b4:
CALL 0x00858480
|
/* fil_page_decompress_low(unsigned char*, unsigned char*, unsigned long, unsigned long, unsigned
long) */
int8
fil_page_decompress_low(uchar *param_1,uchar *param_2,ulong param_3,ulong param_4,ulong param_5)
{
ulong uVar1;
int iVar2;
logger *this;
long in_FS_OFFSET;
bool local_1fb;
bool local_1fa;
bool local_1f9;
uint local_1d4;
ulong local_1d0 [3];
ulong local_1b8;
ulong local_1b0;
ulong local_1a8;
uchar *local_1a0;
uchar *local_198;
bool local_189;
error local_188 [376];
long local_10;
uVar1 = srv_page_size;
local_10 = *(long *)(in_FS_OFFSET + 0x28);
local_1b8 = param_5;
local_1b0 = param_4;
local_1a8 = param_3;
local_1a0 = param_2;
local_198 = param_1;
switch(param_3) {
case 1:
local_1d0[0] = srv_page_size;
iVar2 = uncompress(param_1,local_1d0,param_2 + param_4);
local_1f9 = iVar2 == 0 && local_1d0[0] == srv_page_size;
local_189 = local_1f9;
break;
case 2:
iVar2 = LZ4_decompress_safe(param_2 + param_4,param_1,param_5 & 0xffffffff,
srv_page_size & 0xffffffff);
local_189 = iVar2 == (int)srv_page_size;
break;
default:
memset(local_188,0,0x178);
ib::error::error(local_188);
/* try { // try from 012e3046 to 012e306d has its CatchHandler @ 012e3088 */
this = ib::logger::operator<<((logger *)local_188,"Unknown compression algorithm ");
ib::logger::operator<<(this,&local_1a8);
ib::error::~error(local_188);
local_189 = false;
break;
case 5:
local_1d4 = (uint)srv_page_size;
iVar2 = BZ2_bzBuffToBuffDecompress
(param_1,&local_1d4,param_2 + param_4,param_5 & 0xffffffff,1,0);
local_1fa = iVar2 == 0 && local_1d4 == srv_page_size;
local_189 = local_1fa;
break;
case 6:
iVar2 = snappy_uncompress(param_2 + param_4,param_5,param_1);
local_1fb = iVar2 == 0 && uVar1 == srv_page_size;
local_189 = local_1fb;
}
if (*(long *)(in_FS_OFFSET + 0x28) == local_10) {
return CONCAT71((int7)((ulong)*(long *)(in_FS_OFFSET + 0x28) >> 8),local_189);
}
/* WARNING: Subroutine does not return */
__stack_chk_fail();
}
| |
42,647 | ggml_backend_multi_buffer_alloc_buffer | Yangxiaoz[P]GGML-Tutorial/ggml/src/ggml-backend.cpp | ggml_backend_buffer_t ggml_backend_multi_buffer_alloc_buffer(ggml_backend_buffer_t * buffers, size_t n_buffers) {
ggml_backend_multi_buffer_context * ctx = (ggml_backend_multi_buffer_context *) malloc(sizeof(struct ggml_backend_multi_buffer_context));
ctx->n_buffers = n_buffers;
ctx->buffers = (ggml_backend_buffer_t *) malloc(n_buffers * sizeof(ggml_backend_buffer_t));
GGML_ASSERT(ctx->buffers != NULL);
size_t total_size = 0;
for (size_t i = 0; i < n_buffers; i++) {
ctx->buffers[i] = buffers[i];
total_size += ggml_backend_buffer_get_size(buffers[i]);
}
return ggml_backend_buffer_init(buffers[0]->buft, ggml_backend_multi_buffer_i, ctx, total_size);
} | O0 | cpp | ggml_backend_multi_buffer_alloc_buffer:
pushq %rbp
movq %rsp, %rbp
subq $0xc0, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movl $0x10, %edi
callq 0x47270
movq %rax, -0x18(%rbp)
movq -0x10(%rbp), %rcx
movq -0x18(%rbp), %rax
movq %rcx, 0x8(%rax)
movq -0x10(%rbp), %rdi
shlq $0x3, %rdi
callq 0x47270
movq %rax, %rcx
movq -0x18(%rbp), %rax
movq %rcx, (%rax)
movq -0x18(%rbp), %rax
cmpq $0x0, (%rax)
jne 0x5f0bf
leaq 0x55b72(%rip), %rdi # 0xb4c17
movl $0x23b, %esi # imm = 0x23B
leaq 0x52558(%rip), %rdx # 0xb1609
leaq 0x55eed(%rip), %rcx # 0xb4fa5
movb $0x0, %al
callq 0x48a00
movq $0x0, -0x20(%rbp)
movq $0x0, -0x28(%rbp)
movq -0x28(%rbp), %rax
cmpq -0x10(%rbp), %rax
jae 0x5f11b
movq -0x8(%rbp), %rax
movq -0x28(%rbp), %rcx
movq (%rax,%rcx,8), %rdx
movq -0x18(%rbp), %rax
movq (%rax), %rax
movq -0x28(%rbp), %rcx
movq %rdx, (%rax,%rcx,8)
movq -0x8(%rbp), %rax
movq -0x28(%rbp), %rcx
movq (%rax,%rcx,8), %rdi
callq 0x47a20
addq -0x20(%rbp), %rax
movq %rax, -0x20(%rbp)
movq -0x28(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x28(%rbp)
jmp 0x5f0cf
movq -0x8(%rbp), %rax
movq (%rax), %rax
movq 0x48(%rax), %rax
movq %rax, -0x78(%rbp)
leaq -0x70(%rbp), %rdi
leaq 0x80ab3(%rip), %rsi # 0xdfbe8
movl $0x48, %edx
callq 0x453f0
movq -0x78(%rbp), %rdi
movq -0x18(%rbp), %rsi
movq -0x20(%rbp), %rdx
movq -0x30(%rbp), %rcx
movq %rsp, %rax
movq %rcx, 0x40(%rax)
movups -0x70(%rbp), %xmm0
movups -0x60(%rbp), %xmm1
movups -0x50(%rbp), %xmm2
movups -0x40(%rbp), %xmm3
movups %xmm3, 0x30(%rax)
movups %xmm2, 0x20(%rax)
movups %xmm1, 0x10(%rax)
movups %xmm0, (%rax)
callq 0x47f00
addq $0xc0, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
| ggml_backend_multi_buffer_alloc_buffer:
push rbp
mov rbp, rsp
sub rsp, 0C0h
mov [rbp+var_8], rdi
mov [rbp+var_10], rsi
mov edi, 10h
call _malloc
mov [rbp+var_18], rax
mov rcx, [rbp+var_10]
mov rax, [rbp+var_18]
mov [rax+8], rcx
mov rdi, [rbp+var_10]
shl rdi, 3
call _malloc
mov rcx, rax
mov rax, [rbp+var_18]
mov [rax], rcx
mov rax, [rbp+var_18]
cmp qword ptr [rax], 0
jnz short loc_5F0BF
lea rdi, aWorkspaceLlm4b_2; "/workspace/llm4binary/github/2025_star3"...
mov esi, 23Bh
lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed"
lea rcx, aCtxBuffersNull; "ctx->buffers != NULL"
mov al, 0
call _ggml_abort
loc_5F0BF:
mov [rbp+var_20], 0
mov [rbp+var_28], 0
loc_5F0CF:
mov rax, [rbp+var_28]
cmp rax, [rbp+var_10]
jnb short loc_5F11B
mov rax, [rbp+var_8]
mov rcx, [rbp+var_28]
mov rdx, [rax+rcx*8]
mov rax, [rbp+var_18]
mov rax, [rax]
mov rcx, [rbp+var_28]
mov [rax+rcx*8], rdx
mov rax, [rbp+var_8]
mov rcx, [rbp+var_28]
mov rdi, [rax+rcx*8]
call _ggml_backend_buffer_get_size
add rax, [rbp+var_20]
mov [rbp+var_20], rax
mov rax, [rbp+var_28]
add rax, 1
mov [rbp+var_28], rax
jmp short loc_5F0CF
loc_5F11B:
mov rax, [rbp+var_8]
mov rax, [rax]
mov rax, [rax+48h]
mov [rbp+var_78], rax
lea rdi, [rbp+var_70]
lea rsi, _ZL27ggml_backend_multi_buffer_i; ggml_backend_multi_buffer_i
mov edx, 48h ; 'H'
call _memcpy
mov rdi, [rbp+var_78]
mov rsi, [rbp+var_18]
mov rdx, [rbp+var_20]
mov rcx, [rbp+var_30]
mov rax, rsp
mov [rax+40h], rcx
movups xmm0, [rbp+var_70]
movups xmm1, [rbp+var_60]
movups xmm2, [rbp+var_50]
movups xmm3, [rbp+var_40]
movups xmmword ptr [rax+30h], xmm3
movups xmmword ptr [rax+20h], xmm2
movups xmmword ptr [rax+10h], xmm1
movups xmmword ptr [rax], xmm0
call _ggml_backend_buffer_init
add rsp, 0C0h
pop rbp
retn
| long long ggml_backend_multi_buffer_alloc_buffer(long long a1, unsigned long long a2)
{
int v2; // r8d
int v3; // r9d
long long v5; // [rsp+48h] [rbp-78h]
_OWORD v6[4]; // [rsp+50h] [rbp-70h] BYREF
long long v7; // [rsp+90h] [rbp-30h]
unsigned long long i; // [rsp+98h] [rbp-28h]
long long v9; // [rsp+A0h] [rbp-20h]
_QWORD *v10; // [rsp+A8h] [rbp-18h]
unsigned long long v11; // [rsp+B0h] [rbp-10h]
long long v12; // [rsp+B8h] [rbp-8h]
v12 = a1;
v11 = a2;
v10 = (_QWORD *)malloc(16LL);
v10[1] = a2;
*v10 = malloc(8 * v11);
if ( !*v10 )
ggml_abort(
"/workspace/llm4binary/github/2025_star3/Yangxiaoz[P]GGML-Tutorial/ggml/src/ggml-backend.cpp",
571,
(long long)"GGML_ASSERT(%s) failed",
"ctx->buffers != NULL");
v9 = 0LL;
for ( i = 0LL; i < v11; ++i )
{
*(_QWORD *)(*v10 + 8 * i) = *(_QWORD *)(v12 + 8 * i);
v9 += ggml_backend_buffer_get_size(*(_QWORD *)(v12 + 8 * i));
}
v5 = *(_QWORD *)(*(_QWORD *)v12 + 72LL);
memcpy(v6, &ggml_backend_multi_buffer_i, 72LL);
return ggml_backend_buffer_init(v5, (_DWORD)v10, v9, v7, v2, v3, v6[0], v6[1], v6[2], v6[3], v7);
}
| ggml_backend_multi_buffer_alloc_buffer:
PUSH RBP
MOV RBP,RSP
SUB RSP,0xc0
MOV qword ptr [RBP + -0x8],RDI
MOV qword ptr [RBP + -0x10],RSI
MOV EDI,0x10
CALL 0x00147270
MOV qword ptr [RBP + -0x18],RAX
MOV RCX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RBP + -0x18]
MOV qword ptr [RAX + 0x8],RCX
MOV RDI,qword ptr [RBP + -0x10]
SHL RDI,0x3
CALL 0x00147270
MOV RCX,RAX
MOV RAX,qword ptr [RBP + -0x18]
MOV qword ptr [RAX],RCX
MOV RAX,qword ptr [RBP + -0x18]
CMP qword ptr [RAX],0x0
JNZ 0x0015f0bf
LEA RDI,[0x1b4c17]
MOV ESI,0x23b
LEA RDX,[0x1b1609]
LEA RCX,[0x1b4fa5]
MOV AL,0x0
CALL 0x00148a00
LAB_0015f0bf:
MOV qword ptr [RBP + -0x20],0x0
MOV qword ptr [RBP + -0x28],0x0
LAB_0015f0cf:
MOV RAX,qword ptr [RBP + -0x28]
CMP RAX,qword ptr [RBP + -0x10]
JNC 0x0015f11b
MOV RAX,qword ptr [RBP + -0x8]
MOV RCX,qword ptr [RBP + -0x28]
MOV RDX,qword ptr [RAX + RCX*0x8]
MOV RAX,qword ptr [RBP + -0x18]
MOV RAX,qword ptr [RAX]
MOV RCX,qword ptr [RBP + -0x28]
MOV qword ptr [RAX + RCX*0x8],RDX
MOV RAX,qword ptr [RBP + -0x8]
MOV RCX,qword ptr [RBP + -0x28]
MOV RDI,qword ptr [RAX + RCX*0x8]
CALL 0x00147a20
ADD RAX,qword ptr [RBP + -0x20]
MOV qword ptr [RBP + -0x20],RAX
MOV RAX,qword ptr [RBP + -0x28]
ADD RAX,0x1
MOV qword ptr [RBP + -0x28],RAX
JMP 0x0015f0cf
LAB_0015f11b:
MOV RAX,qword ptr [RBP + -0x8]
MOV RAX,qword ptr [RAX]
MOV RAX,qword ptr [RAX + 0x48]
MOV qword ptr [RBP + -0x78],RAX
LEA RDI,[RBP + -0x70]
LEA RSI,[0x1dfbe8]
MOV EDX,0x48
CALL 0x001453f0
MOV RDI,qword ptr [RBP + -0x78]
MOV RSI,qword ptr [RBP + -0x18]
MOV RDX,qword ptr [RBP + -0x20]
MOV RCX,qword ptr [RBP + -0x30]
MOV RAX,RSP
MOV qword ptr [RAX + 0x40],RCX
MOVUPS XMM0,xmmword ptr [RBP + -0x70]
MOVUPS XMM1,xmmword ptr [RBP + -0x60]
MOVUPS XMM2,xmmword ptr [RBP + -0x50]
MOVUPS XMM3,xmmword ptr [RBP + -0x40]
MOVUPS xmmword ptr [RAX + 0x30],XMM3
MOVUPS xmmword ptr [RAX + 0x20],XMM2
MOVUPS xmmword ptr [RAX + 0x10],XMM1
MOVUPS xmmword ptr [RAX],XMM0
CALL 0x00147f00
ADD RSP,0xc0
POP RBP
RET
|
void ggml_backend_multi_buffer_alloc_buffer(long *param_1,ulong param_2)
{
int8 uVar1;
void *pvVar2;
long lVar3;
int1 local_78 [72];
ulong local_30;
long local_28;
long *local_20;
ulong local_18;
long *local_10;
local_18 = param_2;
local_10 = param_1;
local_20 = (long *)malloc(0x10);
local_20[1] = local_18;
pvVar2 = malloc(local_18 << 3);
*local_20 = (long)pvVar2;
if (*local_20 == 0) {
ggml_abort("/workspace/llm4binary/github/2025_star3/Yangxiaoz[P]GGML-Tutorial/ggml/src/ggml-backend.cpp"
,0x23b,"GGML_ASSERT(%s) failed","ctx->buffers != NULL");
}
local_28 = 0;
for (local_30 = 0; local_30 < local_18; local_30 = local_30 + 1) {
*(long *)(*local_20 + local_30 * 8) = local_10[local_30];
lVar3 = ggml_backend_buffer_get_size(local_10[local_30]);
local_28 = lVar3 + local_28;
}
uVar1 = *(int8 *)(*local_10 + 0x48);
memcpy(local_78,ggml_backend_multi_buffer_i,0x48);
ggml_backend_buffer_init(uVar1,local_20,local_28);
return;
}
| |
42,648 | ggml_backend_multi_buffer_alloc_buffer | Yangxiaoz[P]GGML-Tutorial/ggml/src/ggml-backend.cpp | ggml_backend_buffer_t ggml_backend_multi_buffer_alloc_buffer(ggml_backend_buffer_t * buffers, size_t n_buffers) {
ggml_backend_multi_buffer_context * ctx = (ggml_backend_multi_buffer_context *) malloc(sizeof(struct ggml_backend_multi_buffer_context));
ctx->n_buffers = n_buffers;
ctx->buffers = (ggml_backend_buffer_t *) malloc(n_buffers * sizeof(ggml_backend_buffer_t));
GGML_ASSERT(ctx->buffers != NULL);
size_t total_size = 0;
for (size_t i = 0; i < n_buffers; i++) {
ctx->buffers[i] = buffers[i];
total_size += ggml_backend_buffer_get_size(buffers[i]);
}
return ggml_backend_buffer_init(buffers[0]->buft, ggml_backend_multi_buffer_i, ctx, total_size);
} | O1 | cpp | ggml_backend_multi_buffer_alloc_buffer:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %r15
movq %rdi, %r14
movl $0x10, %edi
callq 0x18650
movq %rax, %rbx
movq %r15, 0x8(%rax)
leaq (,%r15,8), %rdi
callq 0x18650
movq %rax, (%rbx)
testq %rax, %rax
je 0x2779b
testq %r15, %r15
je 0x27756
xorl %eax, %eax
xorl %r12d, %r12d
movq (%r14,%rax,8), %rcx
movq (%rbx), %rdx
movq %rcx, (%rdx,%rax,8)
movq (%r14,%rax,8), %rcx
addq 0x58(%rcx), %r12
incq %rax
cmpq %rax, %r15
jne 0x27739
jmp 0x27759
xorl %r12d, %r12d
movq (%r14), %rax
movq 0x48(%rax), %r14
movl $0x68, %edi
callq 0x18090
leaq 0x4646f(%rip), %rsi # 0x6dbe0
movl $0x9, %ecx
movq %rax, %rdi
rep movsq (%rsi), %es:(%rdi)
movq %r14, 0x48(%rax)
movq %rbx, 0x50(%rax)
movq %r12, 0x58(%rax)
movl $0x0, 0x60(%rax)
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
leaq 0x27fd2(%rip), %rdi # 0x4f774
leaq 0x24e18(%rip), %rdx # 0x4c5c1
leaq 0x28352(%rip), %rcx # 0x4fb02
movl $0x23b, %esi # imm = 0x23B
xorl %eax, %eax
callq 0x18ce0
| ggml_backend_multi_buffer_alloc_buffer:
push r15
push r14
push r12
push rbx
push rax
mov r15, rsi
mov r14, rdi
mov edi, 10h
call _malloc
mov rbx, rax
mov [rax+8], r15
lea rdi, ds:0[r15*8]
call _malloc
mov [rbx], rax
test rax, rax
jz short loc_2779B
test r15, r15
jz short loc_27756
xor eax, eax
xor r12d, r12d
loc_27739:
mov rcx, [r14+rax*8]
mov rdx, [rbx]
mov [rdx+rax*8], rcx
mov rcx, [r14+rax*8]
add r12, [rcx+58h]
inc rax
cmp r15, rax
jnz short loc_27739
jmp short loc_27759
loc_27756:
xor r12d, r12d
loc_27759:
mov rax, [r14]
mov r14, [rax+48h]
mov edi, 68h ; 'h'; unsigned __int64
call __Znwm; operator new(ulong)
lea rsi, _ZL27ggml_backend_multi_buffer_i; ggml_backend_multi_buffer_i
mov ecx, 9
mov rdi, rax
rep movsq
mov [rax+48h], r14
mov [rax+50h], rbx
mov [rax+58h], r12
mov dword ptr [rax+60h], 0
add rsp, 8
pop rbx
pop r12
pop r14
pop r15
retn
loc_2779B:
lea rdi, aWorkspaceLlm4b_2; "/workspace/llm4binary/github/2025_star3"...
lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed"
lea rcx, aCtxBuffersNull; "ctx->buffers != NULL"
mov esi, 23Bh
xor eax, eax
call _ggml_abort
| long long ggml_backend_multi_buffer_alloc_buffer(long long a1, long long a2)
{
long long *v2; // rbx
long long v3; // rax
int v4; // r8d
int v5; // r9d
long long v6; // rax
long long v7; // r12
long long v8; // r14
long long result; // rax
v2 = (long long *)malloc(16LL);
v2[1] = a2;
v3 = malloc(8 * a2);
*v2 = v3;
if ( !v3 )
ggml_abort(
(unsigned int)"/workspace/llm4binary/github/2025_star3/Yangxiaoz[P]GGML-Tutorial/ggml/src/ggml-backend.cpp",
571,
(unsigned int)"GGML_ASSERT(%s) failed",
(unsigned int)"ctx->buffers != NULL",
v4,
v5);
if ( a2 )
{
v6 = 0LL;
v7 = 0LL;
do
{
*(_QWORD *)(*v2 + 8 * v6) = *(_QWORD *)(a1 + 8 * v6);
v7 += *(_QWORD *)(*(_QWORD *)(a1 + 8 * v6++) + 88LL);
}
while ( a2 != v6 );
}
else
{
v7 = 0LL;
}
v8 = *(_QWORD *)(*(_QWORD *)a1 + 72LL);
result = operator new(0x68uLL);
qmemcpy((void *)result, &ggml_backend_multi_buffer_i, 0x48uLL);
*(_QWORD *)(result + 72) = v8;
*(_QWORD *)(result + 80) = v2;
*(_QWORD *)(result + 88) = v7;
*(_DWORD *)(result + 96) = 0;
return result;
}
| ggml_backend_multi_buffer_alloc_buffer:
PUSH R15
PUSH R14
PUSH R12
PUSH RBX
PUSH RAX
MOV R15,RSI
MOV R14,RDI
MOV EDI,0x10
CALL 0x00118650
MOV RBX,RAX
MOV qword ptr [RAX + 0x8],R15
LEA RDI,[R15*0x8]
CALL 0x00118650
MOV qword ptr [RBX],RAX
TEST RAX,RAX
JZ 0x0012779b
TEST R15,R15
JZ 0x00127756
XOR EAX,EAX
XOR R12D,R12D
LAB_00127739:
MOV RCX,qword ptr [R14 + RAX*0x8]
MOV RDX,qword ptr [RBX]
MOV qword ptr [RDX + RAX*0x8],RCX
MOV RCX,qword ptr [R14 + RAX*0x8]
ADD R12,qword ptr [RCX + 0x58]
INC RAX
CMP R15,RAX
JNZ 0x00127739
JMP 0x00127759
LAB_00127756:
XOR R12D,R12D
LAB_00127759:
MOV RAX,qword ptr [R14]
MOV R14,qword ptr [RAX + 0x48]
MOV EDI,0x68
CALL 0x00118090
LEA RSI,[0x16dbe0]
MOV ECX,0x9
MOV RDI,RAX
MOVSQ.REP RDI,RSI
MOV qword ptr [RAX + 0x48],R14
MOV qword ptr [RAX + 0x50],RBX
MOV qword ptr [RAX + 0x58],R12
MOV dword ptr [RAX + 0x60],0x0
ADD RSP,0x8
POP RBX
POP R12
POP R14
POP R15
RET
LAB_0012779b:
LEA RDI,[0x14f774]
LEA RDX,[0x14c5c1]
LEA RCX,[0x14fb02]
MOV ESI,0x23b
XOR EAX,EAX
CALL 0x00118ce0
|
void ggml_backend_multi_buffer_alloc_buffer(long *param_1,long param_2)
{
int8 uVar1;
long *plVar2;
void *pvVar3;
long lVar4;
int8 *puVar5;
int **ppuVar6;
int8 *puVar7;
long lVar8;
byte bVar9;
bVar9 = 0;
plVar2 = (long *)malloc(0x10);
plVar2[1] = param_2;
pvVar3 = malloc(param_2 * 8);
*plVar2 = (long)pvVar3;
if (pvVar3 == (void *)0x0) {
/* WARNING: Subroutine does not return */
ggml_abort("/workspace/llm4binary/github/2025_star3/Yangxiaoz[P]GGML-Tutorial/ggml/src/ggml-backend.cpp"
,0x23b,"GGML_ASSERT(%s) failed","ctx->buffers != NULL");
}
if (param_2 == 0) {
lVar8 = 0;
}
else {
lVar4 = 0;
lVar8 = 0;
do {
*(long *)(*plVar2 + lVar4 * 8) = param_1[lVar4];
lVar8 = lVar8 + *(long *)(param_1[lVar4] + 0x58);
lVar4 = lVar4 + 1;
} while (param_2 != lVar4);
}
uVar1 = *(int8 *)(*param_1 + 0x48);
puVar5 = (int8 *)operator_new(0x68);
ppuVar6 = &ggml_backend_multi_buffer_i;
puVar7 = puVar5;
for (lVar4 = 9; lVar4 != 0; lVar4 = lVar4 + -1) {
*puVar7 = *ppuVar6;
ppuVar6 = ppuVar6 + (ulong)bVar9 * -2 + 1;
puVar7 = puVar7 + (ulong)bVar9 * -2 + 1;
}
puVar5[9] = uVar1;
puVar5[10] = plVar2;
puVar5[0xb] = lVar8;
*(int4 *)(puVar5 + 0xc) = 0;
return;
}
| |
42,649 | ggml_backend_multi_buffer_alloc_buffer | Yangxiaoz[P]GGML-Tutorial/ggml/src/ggml-backend.cpp | ggml_backend_buffer_t ggml_backend_multi_buffer_alloc_buffer(ggml_backend_buffer_t * buffers, size_t n_buffers) {
ggml_backend_multi_buffer_context * ctx = (ggml_backend_multi_buffer_context *) malloc(sizeof(struct ggml_backend_multi_buffer_context));
ctx->n_buffers = n_buffers;
ctx->buffers = (ggml_backend_buffer_t *) malloc(n_buffers * sizeof(ggml_backend_buffer_t));
GGML_ASSERT(ctx->buffers != NULL);
size_t total_size = 0;
for (size_t i = 0; i < n_buffers; i++) {
ctx->buffers[i] = buffers[i];
total_size += ggml_backend_buffer_get_size(buffers[i]);
}
return ggml_backend_buffer_init(buffers[0]->buft, ggml_backend_multi_buffer_i, ctx, total_size);
} | O2 | cpp | ggml_backend_multi_buffer_alloc_buffer:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %r15
movq %rdi, %r14
pushq $0x10
popq %rdi
callq 0x1f040
movq %rax, %rbx
movq %r15, 0x8(%rax)
leaq (,%r15,8), %rdi
callq 0x1f040
movq %rax, (%rbx)
testq %rax, %rax
je 0x2beae
xorl %r12d, %r12d
xorl %ecx, %ecx
cmpq %rcx, %r15
je 0x2be73
movq (%r14,%rcx,8), %rdx
movq %rdx, (%rax,%rcx,8)
addq 0x58(%rdx), %r12
incq %rcx
jmp 0x2be5d
movq (%r14), %rax
movq 0x48(%rax), %r14
pushq $0x68
popq %rdi
callq 0x1e7e0
leaq 0x46d57(%rip), %rsi # 0x72be0
pushq $0x9
popq %rcx
movq %rax, %rdi
rep movsq (%rsi), %es:(%rdi)
movq %r14, 0x48(%rax)
movq %rbx, 0x50(%rax)
movq %r12, 0x58(%rax)
andl $0x0, 0x60(%rax)
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
leaq 0x258cf(%rip), %rdi # 0x51784
leaq 0x22719(%rip), %rdx # 0x4e5d5
leaq 0x25c4f(%rip), %rcx # 0x51b12
movl $0x23b, %esi # imm = 0x23B
xorl %eax, %eax
callq 0x1f9b0
| ggml_backend_multi_buffer_alloc_buffer:
push r15
push r14
push r12
push rbx
push rax
mov r15, rsi
mov r14, rdi
push 10h
pop rdi
call _malloc
mov rbx, rax
mov [rax+8], r15
lea rdi, ds:0[r15*8]
call _malloc
mov [rbx], rax
test rax, rax
jz short loc_2BEAE
xor r12d, r12d
xor ecx, ecx
loc_2BE5D:
cmp r15, rcx
jz short loc_2BE73
mov rdx, [r14+rcx*8]
mov [rax+rcx*8], rdx
add r12, [rdx+58h]
inc rcx
jmp short loc_2BE5D
loc_2BE73:
mov rax, [r14]
mov r14, [rax+48h]
push 68h ; 'h'
pop rdi; unsigned __int64
call __Znwm; operator new(ulong)
lea rsi, _ZL27ggml_backend_multi_buffer_i; ggml_backend_multi_buffer_i
push 9
pop rcx
mov rdi, rax
rep movsq
mov [rax+48h], r14
mov [rax+50h], rbx
mov [rax+58h], r12
and dword ptr [rax+60h], 0
add rsp, 8
pop rbx
pop r12
pop r14
pop r15
retn
loc_2BEAE:
lea rdi, aWorkspaceLlm4b_2; "/workspace/llm4binary/github/2025_star3"...
lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed"
lea rcx, aCtxBuffersNull; "ctx->buffers != NULL"
mov esi, 23Bh
xor eax, eax
call _ggml_abort
| long long ggml_backend_multi_buffer_alloc_buffer(
long long a1,
long long a2,
__m128 a3,
__m128 a4,
__m128 a5,
__m128 a6,
double a7,
double a8,
__m128 a9,
__m128 a10)
{
char v10; // al
long long *v11; // rbx
long long v12; // rax
long long v13; // r8
long long v14; // r9
__m128 v15; // xmm4
__m128 v16; // xmm5
long long v17; // r12
long long i; // rcx
long long v19; // rdx
long long v20; // r14
long long result; // rax
char v22; // [rsp-8h] [rbp-28h]
v22 = v10;
v11 = (long long *)malloc(16LL);
v11[1] = a2;
v12 = malloc(8 * a2);
*v11 = v12;
if ( !v12 )
ggml_abort(
"/workspace/llm4binary/github/2025_star3/Yangxiaoz[P]GGML-Tutorial/ggml/src/ggml-backend.cpp",
571,
(long long)"GGML_ASSERT(%s) failed",
(long long)"ctx->buffers != NULL",
v13,
v14,
a3,
a4,
a5,
a6,
v15,
v16,
a9,
a10,
v22);
v17 = 0LL;
for ( i = 0LL; a2 != i; ++i )
{
v19 = *(_QWORD *)(a1 + 8 * i);
*(_QWORD *)(v12 + 8 * i) = v19;
v17 += *(_QWORD *)(v19 + 88);
}
v20 = *(_QWORD *)(*(_QWORD *)a1 + 72LL);
result = operator new(0x68uLL);
qmemcpy((void *)result, &ggml_backend_multi_buffer_i, 0x48uLL);
*(_QWORD *)(result + 72) = v20;
*(_QWORD *)(result + 80) = v11;
*(_QWORD *)(result + 88) = v17;
*(_DWORD *)(result + 96) = 0;
return result;
}
| ggml_backend_multi_buffer_alloc_buffer:
PUSH R15
PUSH R14
PUSH R12
PUSH RBX
PUSH RAX
MOV R15,RSI
MOV R14,RDI
PUSH 0x10
POP RDI
CALL 0x0011f040
MOV RBX,RAX
MOV qword ptr [RAX + 0x8],R15
LEA RDI,[R15*0x8]
CALL 0x0011f040
MOV qword ptr [RBX],RAX
TEST RAX,RAX
JZ 0x0012beae
XOR R12D,R12D
XOR ECX,ECX
LAB_0012be5d:
CMP R15,RCX
JZ 0x0012be73
MOV RDX,qword ptr [R14 + RCX*0x8]
MOV qword ptr [RAX + RCX*0x8],RDX
ADD R12,qword ptr [RDX + 0x58]
INC RCX
JMP 0x0012be5d
LAB_0012be73:
MOV RAX,qword ptr [R14]
MOV R14,qword ptr [RAX + 0x48]
PUSH 0x68
POP RDI
CALL 0x0011e7e0
LEA RSI,[0x172be0]
PUSH 0x9
POP RCX
MOV RDI,RAX
MOVSQ.REP RDI,RSI
MOV qword ptr [RAX + 0x48],R14
MOV qword ptr [RAX + 0x50],RBX
MOV qword ptr [RAX + 0x58],R12
AND dword ptr [RAX + 0x60],0x0
ADD RSP,0x8
POP RBX
POP R12
POP R14
POP R15
RET
LAB_0012beae:
LEA RDI,[0x151784]
LEA RDX,[0x14e5d5]
LEA RCX,[0x151b12]
MOV ESI,0x23b
XOR EAX,EAX
CALL 0x0011f9b0
|
void ggml_backend_multi_buffer_alloc_buffer(long *param_1,long param_2)
{
long lVar1;
int8 uVar2;
int8 *puVar3;
void *pvVar4;
int8 *puVar5;
long lVar6;
int **ppuVar7;
int8 *puVar8;
long lVar9;
byte bVar10;
bVar10 = 0;
puVar3 = (int8 *)malloc(0x10);
puVar3[1] = param_2;
pvVar4 = malloc(param_2 * 8);
*puVar3 = pvVar4;
if (pvVar4 != (void *)0x0) {
lVar9 = 0;
for (lVar6 = 0; param_2 != lVar6; lVar6 = lVar6 + 1) {
lVar1 = param_1[lVar6];
*(long *)((long)pvVar4 + lVar6 * 8) = lVar1;
lVar9 = lVar9 + *(long *)(lVar1 + 0x58);
}
uVar2 = *(int8 *)(*param_1 + 0x48);
puVar5 = (int8 *)operator_new(0x68);
ppuVar7 = &ggml_backend_multi_buffer_i;
puVar8 = puVar5;
for (lVar6 = 9; lVar6 != 0; lVar6 = lVar6 + -1) {
*puVar8 = *ppuVar7;
ppuVar7 = ppuVar7 + (ulong)bVar10 * -2 + 1;
puVar8 = puVar8 + (ulong)bVar10 * -2 + 1;
}
puVar5[9] = uVar2;
puVar5[10] = puVar3;
puVar5[0xb] = lVar9;
*(int4 *)(puVar5 + 0xc) = 0;
return;
}
/* WARNING: Subroutine does not return */
ggml_abort("/workspace/llm4binary/github/2025_star3/Yangxiaoz[P]GGML-Tutorial/ggml/src/ggml-backend.cpp"
,0x23b,"GGML_ASSERT(%s) failed","ctx->buffers != NULL");
}
| |
42,650 | ggml_backend_multi_buffer_alloc_buffer | Yangxiaoz[P]GGML-Tutorial/ggml/src/ggml-backend.cpp | ggml_backend_buffer_t ggml_backend_multi_buffer_alloc_buffer(ggml_backend_buffer_t * buffers, size_t n_buffers) {
ggml_backend_multi_buffer_context * ctx = (ggml_backend_multi_buffer_context *) malloc(sizeof(struct ggml_backend_multi_buffer_context));
ctx->n_buffers = n_buffers;
ctx->buffers = (ggml_backend_buffer_t *) malloc(n_buffers * sizeof(ggml_backend_buffer_t));
GGML_ASSERT(ctx->buffers != NULL);
size_t total_size = 0;
for (size_t i = 0; i < n_buffers; i++) {
ctx->buffers[i] = buffers[i];
total_size += ggml_backend_buffer_get_size(buffers[i]);
}
return ggml_backend_buffer_init(buffers[0]->buft, ggml_backend_multi_buffer_i, ctx, total_size);
} | O3 | cpp | ggml_backend_multi_buffer_alloc_buffer:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %r15
movq %rdi, %r14
movl $0x10, %edi
callq 0x17640
movq %rax, %rbx
movq %r15, 0x8(%rax)
leaq (,%r15,8), %rdi
callq 0x17640
movq %rax, (%rbx)
testq %rax, %rax
je 0x2632d
testq %r15, %r15
je 0x262e8
xorl %ecx, %ecx
xorl %r12d, %r12d
movq (%r14,%rcx,8), %rdx
movq %rdx, (%rax,%rcx,8)
addq 0x58(%rdx), %r12
incq %rcx
cmpq %rcx, %r15
jne 0x262d2
jmp 0x262eb
xorl %r12d, %r12d
movq (%r14), %rax
movq 0x48(%rax), %r14
movl $0x68, %edi
callq 0x17080
leaq 0x478dd(%rip), %rsi # 0x6dbe0
movl $0x9, %ecx
movq %rax, %rdi
rep movsq (%rsi), %es:(%rdi)
movq %r14, 0x48(%rax)
movq %rbx, 0x50(%rax)
movq %r12, 0x58(%rax)
movl $0x0, 0x60(%rax)
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
leaq 0x294e0(%rip), %rdi # 0x4f814
leaq 0x2632a(%rip), %rdx # 0x4c665
leaq 0x29860(%rip), %rcx # 0x4fba2
movl $0x23b, %esi # imm = 0x23B
xorl %eax, %eax
callq 0x17cd0
| ggml_backend_multi_buffer_alloc_buffer:
push r15
push r14
push r12
push rbx
push rax
mov r15, rsi
mov r14, rdi
mov edi, 10h
call _malloc
mov rbx, rax
mov [rax+8], r15
lea rdi, ds:0[r15*8]
call _malloc
mov [rbx], rax
test rax, rax
jz short loc_2632D
test r15, r15
jz short loc_262E8
xor ecx, ecx
xor r12d, r12d
loc_262D2:
mov rdx, [r14+rcx*8]
mov [rax+rcx*8], rdx
add r12, [rdx+58h]
inc rcx
cmp r15, rcx
jnz short loc_262D2
jmp short loc_262EB
loc_262E8:
xor r12d, r12d
loc_262EB:
mov rax, [r14]
mov r14, [rax+48h]
mov edi, 68h ; 'h'; unsigned __int64
call __Znwm; operator new(ulong)
lea rsi, _ZL27ggml_backend_multi_buffer_i; ggml_backend_multi_buffer_i
mov ecx, 9
mov rdi, rax
rep movsq
mov [rax+48h], r14
mov [rax+50h], rbx
mov [rax+58h], r12
mov dword ptr [rax+60h], 0
add rsp, 8
pop rbx
pop r12
pop r14
pop r15
retn
loc_2632D:
lea rdi, aWorkspaceLlm4b_2; "/workspace/llm4binary/github/2025_star3"...
lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed"
lea rcx, aCtxBuffersNull; "ctx->buffers != NULL"
mov esi, 23Bh
xor eax, eax
call _ggml_abort
| long long ggml_backend_multi_buffer_alloc_buffer(long long a1, long long a2)
{
long long *v2; // rbx
long long v3; // rax
int v4; // r8d
int v5; // r9d
long long v6; // rcx
long long v7; // r12
long long v8; // rdx
long long v9; // r14
long long result; // rax
v2 = (long long *)malloc(16LL);
v2[1] = a2;
v3 = malloc(8 * a2);
*v2 = v3;
if ( !v3 )
ggml_abort(
(unsigned int)"/workspace/llm4binary/github/2025_star3/Yangxiaoz[P]GGML-Tutorial/ggml/src/ggml-backend.cpp",
571,
(unsigned int)"GGML_ASSERT(%s) failed",
(unsigned int)"ctx->buffers != NULL",
v4,
v5);
if ( a2 )
{
v6 = 0LL;
v7 = 0LL;
do
{
v8 = *(_QWORD *)(a1 + 8 * v6);
*(_QWORD *)(v3 + 8 * v6) = v8;
v7 += *(_QWORD *)(v8 + 88);
++v6;
}
while ( a2 != v6 );
}
else
{
v7 = 0LL;
}
v9 = *(_QWORD *)(*(_QWORD *)a1 + 72LL);
result = operator new(0x68uLL);
qmemcpy((void *)result, &ggml_backend_multi_buffer_i, 0x48uLL);
*(_QWORD *)(result + 72) = v9;
*(_QWORD *)(result + 80) = v2;
*(_QWORD *)(result + 88) = v7;
*(_DWORD *)(result + 96) = 0;
return result;
}
| ggml_backend_multi_buffer_alloc_buffer:
PUSH R15
PUSH R14
PUSH R12
PUSH RBX
PUSH RAX
MOV R15,RSI
MOV R14,RDI
MOV EDI,0x10
CALL 0x00117640
MOV RBX,RAX
MOV qword ptr [RAX + 0x8],R15
LEA RDI,[R15*0x8]
CALL 0x00117640
MOV qword ptr [RBX],RAX
TEST RAX,RAX
JZ 0x0012632d
TEST R15,R15
JZ 0x001262e8
XOR ECX,ECX
XOR R12D,R12D
LAB_001262d2:
MOV RDX,qword ptr [R14 + RCX*0x8]
MOV qword ptr [RAX + RCX*0x8],RDX
ADD R12,qword ptr [RDX + 0x58]
INC RCX
CMP R15,RCX
JNZ 0x001262d2
JMP 0x001262eb
LAB_001262e8:
XOR R12D,R12D
LAB_001262eb:
MOV RAX,qword ptr [R14]
MOV R14,qword ptr [RAX + 0x48]
MOV EDI,0x68
CALL 0x00117080
LEA RSI,[0x16dbe0]
MOV ECX,0x9
MOV RDI,RAX
MOVSQ.REP RDI,RSI
MOV qword ptr [RAX + 0x48],R14
MOV qword ptr [RAX + 0x50],RBX
MOV qword ptr [RAX + 0x58],R12
MOV dword ptr [RAX + 0x60],0x0
ADD RSP,0x8
POP RBX
POP R12
POP R14
POP R15
RET
LAB_0012632d:
LEA RDI,[0x14f814]
LEA RDX,[0x14c665]
LEA RCX,[0x14fba2]
MOV ESI,0x23b
XOR EAX,EAX
CALL 0x00117cd0
|
void ggml_backend_multi_buffer_alloc_buffer(long *param_1,long param_2)
{
long lVar1;
int8 uVar2;
int8 *puVar3;
void *pvVar4;
int8 *puVar5;
long lVar6;
int **ppuVar7;
int8 *puVar8;
long lVar9;
byte bVar10;
bVar10 = 0;
puVar3 = (int8 *)malloc(0x10);
puVar3[1] = param_2;
pvVar4 = malloc(param_2 * 8);
*puVar3 = pvVar4;
if (pvVar4 == (void *)0x0) {
/* WARNING: Subroutine does not return */
ggml_abort("/workspace/llm4binary/github/2025_star3/Yangxiaoz[P]GGML-Tutorial/ggml/src/ggml-backend.cpp"
,0x23b,"GGML_ASSERT(%s) failed","ctx->buffers != NULL");
}
if (param_2 == 0) {
lVar9 = 0;
}
else {
lVar6 = 0;
lVar9 = 0;
do {
lVar1 = param_1[lVar6];
*(long *)((long)pvVar4 + lVar6 * 8) = lVar1;
lVar9 = lVar9 + *(long *)(lVar1 + 0x58);
lVar6 = lVar6 + 1;
} while (param_2 != lVar6);
}
uVar2 = *(int8 *)(*param_1 + 0x48);
puVar5 = (int8 *)operator_new(0x68);
ppuVar7 = &ggml_backend_multi_buffer_i;
puVar8 = puVar5;
for (lVar6 = 9; lVar6 != 0; lVar6 = lVar6 + -1) {
*puVar8 = *ppuVar7;
ppuVar7 = ppuVar7 + (ulong)bVar10 * -2 + 1;
puVar8 = puVar8 + (ulong)bVar10 * -2 + 1;
}
puVar5[9] = uVar2;
puVar5[10] = puVar3;
puVar5[0xb] = lVar9;
*(int4 *)(puVar5 + 0xc) = 0;
return;
}
| |
42,651 | bf_ziv_rounding | bluesky950520[P]quickjs/libbf.c | static int bf_ziv_rounding(bf_t *r, const bf_t *a,
limb_t prec, bf_flags_t flags,
ZivFunc *f, void *opaque)
{
int rnd_mode, ret;
slimb_t prec1, ziv_extra_bits;
rnd_mode = flags & BF_RND_MASK;
if (rnd_mode == BF_RNDF) {
/* no need to iterate */
f(r, a, prec, opaque);
ret = 0;
} else {
ziv_extra_bits = 32;
for(;;) {
prec1 = prec + ziv_extra_bits;
ret = f(r, a, prec1, opaque);
if (ret & (BF_ST_OVERFLOW | BF_ST_UNDERFLOW | BF_ST_MEM_ERROR)) {
/* overflow or underflow should never happen because
it indicates the rounding cannot be done correctly,
but we do not catch all the cases */
return ret;
}
/* if the result is exact, we can stop */
if (!(ret & BF_ST_INEXACT)) {
ret = 0;
break;
}
if (bf_can_round(r, prec, rnd_mode, prec1)) {
ret = BF_ST_INEXACT;
break;
}
ziv_extra_bits = ziv_extra_bits * 2;
// printf("ziv_extra_bits=%" PRId64 "\n", (int64_t)ziv_extra_bits);
}
}
if (r->len == 0)
return ret;
else
return __bf_round(r, prec, flags, r->len, ret);
} | O1 | c | bf_ziv_rounding:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movl %ecx, %r13d
movq %rdx, %r14
movq %rsi, %rbp
movq %rdi, %r15
movl %ecx, %ebx
andl $0x7, %ebx
cmpl $0x6, %ebx
jne 0x8a10f
movq %r15, %rdi
movq %rbp, %rsi
movq %r14, %rdx
movq %r9, %rcx
callq *%r8
xorl %eax, %eax
jmp 0x8a180
leaq 0x20(%r14), %r12
movq %r15, %rdi
movq %rbp, %rsi
movq %r12, %rdx
movq %r9, %rcx
movq %r9, 0x8(%rsp)
movq %r8, 0x10(%rsp)
callq *%r8
testb $0x2c, %al
jne 0x8a1a8
movl %r13d, 0x4(%rsp)
movl $0x20, %r13d
testb $0x10, %al
je 0x8a172
movq %r15, %rdi
movq %r14, %rsi
movl %ebx, %edx
movq %r12, %rcx
callq 0x845d3
testl %eax, %eax
jne 0x8a176
leaq (%r14,%r13,2), %r12
addq %r13, %r13
movq %r15, %rdi
movq %rbp, %rsi
movq %r12, %rdx
movq 0x8(%rsp), %rcx
callq *0x10(%rsp)
testb $0x2c, %al
je 0x8a13b
jmp 0x8a1a8
xorl %eax, %eax
jmp 0x8a17b
movl $0x10, %eax
movl 0x4(%rsp), %r13d
movq 0x18(%r15), %rcx
testq %rcx, %rcx
je 0x8a1a8
movq %r15, %rdi
movq %r14, %rsi
movl %r13d, %edx
movl %eax, %r8d
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x84212
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
| bf_ziv_rounding:
push rbp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 18h
mov r13d, ecx
mov r14, rdx
mov rbp, rsi
mov r15, rdi
mov ebx, ecx
and ebx, 7
cmp ebx, 6
jnz short loc_8A10F
mov rdi, r15
mov rsi, rbp
mov rdx, r14
mov rcx, r9
call r8 ; bf_exp_internal
xor eax, eax
jmp short loc_8A180
loc_8A10F:
lea r12, [r14+20h]
mov rdi, r15
mov rsi, rbp
mov rdx, r12
mov rcx, r9
mov [rsp+48h+var_40], r9
mov [rsp+48h+var_38], r8
call r8 ; bf_exp_internal
test al, 2Ch
jnz short loc_8A1A8
mov [rsp+48h+var_44], r13d
mov r13d, 20h ; ' '
loc_8A13B:
test al, 10h
jz short loc_8A172
mov rdi, r15
mov rsi, r14
mov edx, ebx
mov rcx, r12
call bf_can_round
test eax, eax
jnz short loc_8A176
lea r12, [r14+r13*2]
add r13, r13
mov rdi, r15
mov rsi, rbp
mov rdx, r12
mov rcx, [rsp+48h+var_40]
call [rsp+48h+var_38]
test al, 2Ch
jz short loc_8A13B
jmp short loc_8A1A8
loc_8A172:
xor eax, eax
jmp short loc_8A17B
loc_8A176:
mov eax, 10h
loc_8A17B:
mov r13d, [rsp+48h+var_44]
loc_8A180:
mov rcx, [r15+18h]
test rcx, rcx
jz short loc_8A1A8
mov rdi, r15
mov rsi, r14
mov edx, r13d
mov r8d, eax
add rsp, 18h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
jmp __bf_round
loc_8A1A8:
add rsp, 18h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
| long long bf_ziv_rounding(
_QWORD *a1,
long long a2,
long long a3,
unsigned int a4,
void ( *a5)(_QWORD *, long long, long long, long long),
long long a6)
{
unsigned int v6; // r13d
int v8; // ebx
long long result; // rax
long long v10; // r12
long long i; // r13
unsigned long long v12; // rcx
unsigned int v13; // [rsp+4h] [rbp-44h]
v6 = a4;
v8 = a4 & 7;
if ( v8 == 6 )
{
a5(a1, a2, a3, a6);
result = 0LL;
}
else
{
v10 = a3 + 32;
result = ((long long ( *)(_QWORD *, long long, long long, long long))a5)(a1, a2, a3 + 32, a6);
if ( (result & 0x2C) != 0 )
return result;
v13 = v6;
for ( i = 32LL; ; i *= 2LL )
{
if ( (result & 0x10) == 0 )
{
result = 0LL;
goto LABEL_11;
}
if ( bf_can_round(a1, a3, v8, v10) )
break;
v10 = a3 + 2 * i;
result = ((long long ( *)(_QWORD *, long long, long long, long long))a5)(a1, a2, v10, a6);
if ( (result & 0x2C) != 0 )
return result;
}
result = 16LL;
LABEL_11:
v6 = v13;
}
v12 = a1[3];
if ( v12 )
return _bf_round((long long)a1, a3, v6, v12, result);
return result;
}
| bf_ziv_rounding:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x18
MOV R13D,ECX
MOV R14,RDX
MOV RBP,RSI
MOV R15,RDI
MOV EBX,ECX
AND EBX,0x7
CMP EBX,0x6
JNZ 0x0018a10f
MOV RDI,R15
MOV RSI,RBP
MOV RDX,R14
MOV RCX,R9
CALL R8
XOR EAX,EAX
JMP 0x0018a180
LAB_0018a10f:
LEA R12,[R14 + 0x20]
MOV RDI,R15
MOV RSI,RBP
MOV RDX,R12
MOV RCX,R9
MOV qword ptr [RSP + 0x8],R9
MOV qword ptr [RSP + 0x10],R8
CALL R8
TEST AL,0x2c
JNZ 0x0018a1a8
MOV dword ptr [RSP + 0x4],R13D
MOV R13D,0x20
LAB_0018a13b:
TEST AL,0x10
JZ 0x0018a172
MOV RDI,R15
MOV RSI,R14
MOV EDX,EBX
MOV RCX,R12
CALL 0x001845d3
TEST EAX,EAX
JNZ 0x0018a176
LEA R12,[R14 + R13*0x2]
ADD R13,R13
MOV RDI,R15
MOV RSI,RBP
MOV RDX,R12
MOV RCX,qword ptr [RSP + 0x8]
CALL qword ptr [RSP + 0x10]
TEST AL,0x2c
JZ 0x0018a13b
JMP 0x0018a1a8
LAB_0018a172:
XOR EAX,EAX
JMP 0x0018a17b
LAB_0018a176:
MOV EAX,0x10
LAB_0018a17b:
MOV R13D,dword ptr [RSP + 0x4]
LAB_0018a180:
MOV RCX,qword ptr [R15 + 0x18]
TEST RCX,RCX
JZ 0x0018a1a8
MOV RDI,R15
MOV RSI,R14
MOV EDX,R13D
MOV R8D,EAX
ADD RSP,0x18
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
JMP 0x00184212
LAB_0018a1a8:
ADD RSP,0x18
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
|
void bf_ziv_rounding(long param_1,int8 param_2,long param_3,uint param_4,code *param_5,
int8 param_6)
{
int4 uVar1;
int iVar2;
ulong uVar3;
long lVar4;
long lVar5;
if ((param_4 & 7) == 6) {
(*param_5)(param_1,param_2,param_3,param_6);
uVar1 = 0;
LAB_0018a180:
if (*(long *)(param_1 + 0x18) != 0) {
__bf_round(param_1,param_3,param_4,*(long *)(param_1 + 0x18),uVar1);
return;
}
}
else {
lVar4 = param_3 + 0x20;
uVar3 = (*param_5)(param_1,param_2,lVar4,param_6);
if ((uVar3 & 0x2c) == 0) {
lVar5 = 0x20;
do {
if ((uVar3 & 0x10) == 0) {
uVar1 = 0;
goto LAB_0018a180;
}
iVar2 = bf_can_round(param_1,param_3,param_4 & 7,lVar4);
if (iVar2 != 0) {
uVar1 = 0x10;
goto LAB_0018a180;
}
lVar4 = param_3 + lVar5 * 2;
lVar5 = lVar5 * 2;
uVar3 = (*param_5)(param_1,param_2,lVar4,param_6);
} while ((uVar3 & 0x2c) == 0);
}
}
return;
}
| |
42,652 | bf_ziv_rounding | bluesky950520[P]quickjs/libbf.c | static int bf_ziv_rounding(bf_t *r, const bf_t *a,
limb_t prec, bf_flags_t flags,
ZivFunc *f, void *opaque)
{
int rnd_mode, ret;
slimb_t prec1, ziv_extra_bits;
rnd_mode = flags & BF_RND_MASK;
if (rnd_mode == BF_RNDF) {
/* no need to iterate */
f(r, a, prec, opaque);
ret = 0;
} else {
ziv_extra_bits = 32;
for(;;) {
prec1 = prec + ziv_extra_bits;
ret = f(r, a, prec1, opaque);
if (ret & (BF_ST_OVERFLOW | BF_ST_UNDERFLOW | BF_ST_MEM_ERROR)) {
/* overflow or underflow should never happen because
it indicates the rounding cannot be done correctly,
but we do not catch all the cases */
return ret;
}
/* if the result is exact, we can stop */
if (!(ret & BF_ST_INEXACT)) {
ret = 0;
break;
}
if (bf_can_round(r, prec, rnd_mode, prec1)) {
ret = BF_ST_INEXACT;
break;
}
ziv_extra_bits = ziv_extra_bits * 2;
// printf("ziv_extra_bits=%" PRId64 "\n", (int64_t)ziv_extra_bits);
}
}
if (r->len == 0)
return ret;
else
return __bf_round(r, prec, flags, r->len, ret);
} | O3 | c | bf_ziv_rounding:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movl %ecx, %r13d
movq %rdx, %r14
movq %rsi, %rbp
movq %rdi, %r15
movl %ecx, %ebx
andl $0x7, %ebx
cmpl $0x6, %ebx
jne 0x8cb7c
movq %r15, %rdi
movq %rbp, %rsi
movq %r14, %rdx
movq %r9, %rcx
callq *%r8
xorl %eax, %eax
jmp 0x8cbed
leaq 0x20(%r14), %r12
movq %r15, %rdi
movq %rbp, %rsi
movq %r12, %rdx
movq %r9, %rcx
movq %r9, 0x8(%rsp)
movq %r8, 0x10(%rsp)
callq *%r8
testb $0x2c, %al
jne 0x8cc15
movl %r13d, 0x4(%rsp)
movl $0x20, %r13d
testb $0x10, %al
je 0x8cbdf
movq %r15, %rdi
movq %r14, %rsi
movl %ebx, %edx
movq %r12, %rcx
callq 0x86fe1
testl %eax, %eax
jne 0x8cbe3
leaq (%r14,%r13,2), %r12
addq %r13, %r13
movq %r15, %rdi
movq %rbp, %rsi
movq %r12, %rdx
movq 0x8(%rsp), %rcx
callq *0x10(%rsp)
testb $0x2c, %al
je 0x8cba8
jmp 0x8cc15
xorl %eax, %eax
jmp 0x8cbe8
movl $0x10, %eax
movl 0x4(%rsp), %r13d
movq 0x18(%r15), %rcx
testq %rcx, %rcx
je 0x8cc15
movq %r15, %rdi
movq %r14, %rsi
movl %r13d, %edx
movl %eax, %r8d
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x86c43
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
| bf_ziv_rounding:
push rbp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 18h
mov r13d, ecx
mov r14, rdx
mov rbp, rsi
mov r15, rdi
mov ebx, ecx
and ebx, 7
cmp ebx, 6
jnz short loc_8CB7C
mov rdi, r15
mov rsi, rbp
mov rdx, r14
mov rcx, r9
call r8 ; bf_exp_internal
xor eax, eax
jmp short loc_8CBED
loc_8CB7C:
lea r12, [r14+20h]
mov rdi, r15
mov rsi, rbp
mov rdx, r12
mov rcx, r9
mov [rsp+48h+var_40], r9
mov [rsp+48h+var_38], r8
call r8 ; bf_exp_internal
test al, 2Ch
jnz short loc_8CC15
mov [rsp+48h+var_44], r13d
mov r13d, 20h ; ' '
loc_8CBA8:
test al, 10h
jz short loc_8CBDF
mov rdi, r15
mov rsi, r14
mov edx, ebx
mov rcx, r12
call bf_can_round
test eax, eax
jnz short loc_8CBE3
lea r12, [r14+r13*2]
add r13, r13
mov rdi, r15
mov rsi, rbp
mov rdx, r12
mov rcx, [rsp+48h+var_40]
call [rsp+48h+var_38]
test al, 2Ch
jz short loc_8CBA8
jmp short loc_8CC15
loc_8CBDF:
xor eax, eax
jmp short loc_8CBE8
loc_8CBE3:
mov eax, 10h
loc_8CBE8:
mov r13d, [rsp+48h+var_44]
loc_8CBED:
mov rcx, [r15+18h]
test rcx, rcx
jz short loc_8CC15
mov rdi, r15
mov rsi, r14
mov edx, r13d
mov r8d, eax
add rsp, 18h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
jmp __bf_round
loc_8CC15:
add rsp, 18h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
| long long bf_ziv_rounding(
_QWORD *a1,
long long a2,
long long a3,
unsigned int a4,
void ( *a5)(_QWORD *, long long, long long, long long),
long long a6)
{
unsigned int v6; // r13d
int v8; // ebx
long long result; // rax
long long v10; // r12
long long i; // r13
unsigned long long v12; // rcx
unsigned int v13; // [rsp+4h] [rbp-44h]
v6 = a4;
v8 = a4 & 7;
if ( v8 == 6 )
{
a5(a1, a2, a3, a6);
result = 0LL;
}
else
{
v10 = a3 + 32;
result = ((long long ( *)(_QWORD *, long long, long long, long long))a5)(a1, a2, a3 + 32, a6);
if ( (result & 0x2C) != 0 )
return result;
v13 = v6;
for ( i = 32LL; ; i *= 2LL )
{
if ( (result & 0x10) == 0 )
{
result = 0LL;
goto LABEL_11;
}
if ( bf_can_round(a1, a3, v8, v10) )
break;
v10 = a3 + 2 * i;
result = ((long long ( *)(_QWORD *, long long, long long, long long))a5)(a1, a2, v10, a6);
if ( (result & 0x2C) != 0 )
return result;
}
result = 16LL;
LABEL_11:
v6 = v13;
}
v12 = a1[3];
if ( v12 )
return _bf_round((_QWORD **)a1, a3, v6, v12, result);
return result;
}
| bf_ziv_rounding:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x18
MOV R13D,ECX
MOV R14,RDX
MOV RBP,RSI
MOV R15,RDI
MOV EBX,ECX
AND EBX,0x7
CMP EBX,0x6
JNZ 0x0018cb7c
MOV RDI,R15
MOV RSI,RBP
MOV RDX,R14
MOV RCX,R9
CALL R8
XOR EAX,EAX
JMP 0x0018cbed
LAB_0018cb7c:
LEA R12,[R14 + 0x20]
MOV RDI,R15
MOV RSI,RBP
MOV RDX,R12
MOV RCX,R9
MOV qword ptr [RSP + 0x8],R9
MOV qword ptr [RSP + 0x10],R8
CALL R8
TEST AL,0x2c
JNZ 0x0018cc15
MOV dword ptr [RSP + 0x4],R13D
MOV R13D,0x20
LAB_0018cba8:
TEST AL,0x10
JZ 0x0018cbdf
MOV RDI,R15
MOV RSI,R14
MOV EDX,EBX
MOV RCX,R12
CALL 0x00186fe1
TEST EAX,EAX
JNZ 0x0018cbe3
LEA R12,[R14 + R13*0x2]
ADD R13,R13
MOV RDI,R15
MOV RSI,RBP
MOV RDX,R12
MOV RCX,qword ptr [RSP + 0x8]
CALL qword ptr [RSP + 0x10]
TEST AL,0x2c
JZ 0x0018cba8
JMP 0x0018cc15
LAB_0018cbdf:
XOR EAX,EAX
JMP 0x0018cbe8
LAB_0018cbe3:
MOV EAX,0x10
LAB_0018cbe8:
MOV R13D,dword ptr [RSP + 0x4]
LAB_0018cbed:
MOV RCX,qword ptr [R15 + 0x18]
TEST RCX,RCX
JZ 0x0018cc15
MOV RDI,R15
MOV RSI,R14
MOV EDX,R13D
MOV R8D,EAX
ADD RSP,0x18
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
JMP 0x00186c43
LAB_0018cc15:
ADD RSP,0x18
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
|
void bf_ziv_rounding(long param_1,int8 param_2,long param_3,uint param_4,code *param_5,
int8 param_6)
{
int4 uVar1;
int iVar2;
ulong uVar3;
long lVar4;
long lVar5;
if ((param_4 & 7) == 6) {
(*param_5)(param_1,param_2,param_3,param_6);
uVar1 = 0;
LAB_0018cbed:
if (*(long *)(param_1 + 0x18) != 0) {
__bf_round(param_1,param_3,param_4,*(long *)(param_1 + 0x18),uVar1);
return;
}
}
else {
lVar4 = param_3 + 0x20;
uVar3 = (*param_5)(param_1,param_2,lVar4,param_6);
if ((uVar3 & 0x2c) == 0) {
lVar5 = 0x20;
do {
if ((uVar3 & 0x10) == 0) {
uVar1 = 0;
goto LAB_0018cbed;
}
iVar2 = bf_can_round(param_1,param_3,param_4 & 7,lVar4);
if (iVar2 != 0) {
uVar1 = 0x10;
goto LAB_0018cbed;
}
lVar4 = param_3 + lVar5 * 2;
lVar5 = lVar5 * 2;
uVar3 = (*param_5)(param_1,param_2,lVar4,param_6);
} while ((uVar3 & 0x2c) == 0);
}
}
return;
}
| |
42,653 | minja::Parser::parseDictionary() | llama.cpp/common/minja/minja.hpp | std::shared_ptr<Expression> parseDictionary() {
if (consumeToken("{").empty()) return nullptr;
std::vector<std::pair<std::shared_ptr<Expression>, std::shared_ptr<Expression>>> elements;
if (!consumeToken("}").empty()) {
return std::make_shared<DictExpr>(get_location(), std::move(elements));
}
auto parseKeyValuePair = [&]() {
auto key = parseExpression();
if (!key) throw std::runtime_error("Expected key in dictionary");
if (consumeToken(":").empty()) throw std::runtime_error("Expected colon betweek key & value in dictionary");
auto value = parseExpression();
if (!value) throw std::runtime_error("Expected value in dictionary");
elements.emplace_back(std::pair(std::move(key), std::move(value)));
};
parseKeyValuePair();
while (it != end) {
if (!consumeToken(",").empty()) {
parseKeyValuePair();
} else if (!consumeToken("}").empty()) {
return std::make_shared<DictExpr>(get_location(), std::move(elements));
} else {
throw std::runtime_error("Expected comma or closing brace in dictionary");
}
}
throw std::runtime_error("Expected closing brace");
} | O3 | cpp | minja::Parser::parseDictionary():
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x78, %rsp
movq %rsi, %r14
movq %rdi, %rbx
leaq 0x10(%rsp), %rax
movq %rax, -0x10(%rax)
leaq 0x36871(%rip), %rsi # 0x11bea9
leaq 0x3686b(%rip), %rdx # 0x11beaa
movq %rsp, %rdi
callq 0x28e86
movq %rbx, 0x60(%rsp)
leaq 0x20(%rsp), %rdi
movq %rsp, %rdx
movq %r14, %rsi
movl $0x1, %ecx
callq 0xdf86a
leaq 0x30(%rsp), %rax
movq -0x10(%rax), %rdi
movq -0x8(%rax), %rbx
cmpq %rax, %rdi
je 0xe5680
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x20170
movq (%rsp), %rdi
leaq 0x10(%rsp), %rax
cmpq %rax, %rdi
je 0xe569b
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x20170
xorps %xmm0, %xmm0
testq %rbx, %rbx
je 0xe575b
movaps %xmm0, 0x40(%rsp)
movq $0x0, 0x50(%rsp)
movq %rsp, %rdi
leaq 0x10(%rsp), %rax
movq %rax, (%rdi)
leaq 0x39bac(%rip), %rsi # 0x11f273
leaq 0x39ba6(%rip), %rdx # 0x11f274
callq 0x28e86
leaq 0x20(%rsp), %rdi
movq %rsp, %rdx
movq %r14, %rsi
movl $0x1, %ecx
callq 0xdf86a
movq 0x20(%rsp), %rdi
movq 0x28(%rsp), %rbx
leaq 0x30(%rsp), %rax
cmpq %rax, %rdi
je 0xe5709
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x20170
movq (%rsp), %rdi
leaq 0x10(%rsp), %rax
cmpq %rax, %rdi
je 0xe5724
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x20170
testq %rbx, %rbx
je 0xe5768
movq (%r14), %rax
movq %rax, 0x20(%rsp)
movq 0x8(%r14), %rax
movq %rax, 0x28(%rsp)
testq %rax, %rax
je 0xe58bf
movq 0x7c84e(%rip), %rcx # 0x161f98
cmpb $0x0, (%rcx)
je 0xe58bb
incl 0x8(%rax)
jmp 0xe58bf
movq 0x60(%rsp), %rbx
movups %xmm0, (%rbx)
jmp 0xe59c3
leaq 0x68(%rsp), %rdi
movq %r14, (%rdi)
leaq 0x40(%rsp), %rax
movq %rax, 0x8(%rdi)
callq 0xe6a0c
leaq 0x3c0af(%rip), %r12 # 0x121834
movq %rsp, %r13
leaq 0x20(%rsp), %rbp
leaq 0x68(%rsp), %rbx
movq 0x20(%r14), %rax
cmpq 0x18(%r14), %rax
je 0xe59d5
leaq 0x10(%rsp), %rax
movq %rax, (%rsp)
movq %r13, %rdi
leaq 0x3c080(%rip), %rsi # 0x121833
movq %r12, %rdx
callq 0x28e86
movq %rbp, %rdi
movq %r14, %rsi
movq %r13, %rdx
movl $0x1, %ecx
callq 0xdf86a
movq 0x20(%rsp), %rdi
movq 0x28(%rsp), %r15
leaq 0x30(%rsp), %rax
cmpq %rax, %rdi
je 0xe57ef
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x20170
movq (%rsp), %rdi
leaq 0x10(%rsp), %rax
cmpq %rax, %rdi
je 0xe580a
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x20170
testq %r15, %r15
je 0xe581c
movq %rbx, %rdi
callq 0xe6a0c
jmp 0xe5792
movq %rsp, %rdi
leaq 0x10(%rsp), %rax
movq %rax, (%rdi)
leaq 0x39a45(%rip), %rsi # 0x11f273
leaq 0x39a3f(%rip), %rdx # 0x11f274
callq 0x28e86
leaq 0x20(%rsp), %rdi
movq %rsp, %rdx
movq %r14, %rsi
movl $0x1, %ecx
callq 0xdf86a
movq 0x20(%rsp), %rdi
movq 0x28(%rsp), %rbx
leaq 0x30(%rsp), %rax
cmpq %rax, %rdi
je 0xe5870
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x20170
movq (%rsp), %rdi
leaq 0x10(%rsp), %rax
cmpq %rax, %rdi
je 0xe588b
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x20170
testq %rbx, %rbx
je 0xe5a07
movq (%r14), %rax
movq %rax, 0x20(%rsp)
movq 0x8(%r14), %rax
movq %rax, 0x28(%rsp)
testq %rax, %rax
je 0xe58e0
movq 0x7c6e7(%rip), %rcx # 0x161f98
cmpb $0x0, (%rcx)
je 0xe58dc
incl 0x8(%rax)
jmp 0xe58e0
lock
incl 0x8(%rax)
leaq 0x28(%rsp), %r15
movq 0x20(%r14), %rbx
subq 0x10(%r14), %rbx
movq %rbx, 0x8(%r15)
movl $0x48, %edi
callq 0x20200
jmp 0xe58fb
lock
incl 0x8(%rax)
leaq 0x28(%rsp), %r15
movq 0x20(%r14), %rbx
subq 0x10(%r14), %rbx
movq %rbx, 0x8(%r15)
movl $0x48, %edi
callq 0x20200
leaq 0x8(%rsp), %rdi
movabsq $0x100000001, %rcx # imm = 0x100000001
movq %rcx, 0x8(%rax)
leaq 0x7b27b(%rip), %rcx # 0x160b90
addq $0x10, %rcx
movq %rcx, (%rax)
movq %rax, %rcx
addq $0x10, %rcx
leaq 0x7b0b6(%rip), %rdx # 0x1609e0
addq $0x10, %rdx
movq %rdx, 0x10(%rax)
movq 0x20(%rsp), %rdx
movq %rdx, 0x18(%rax)
movq 0x28(%rsp), %rdx
movq %rdx, 0x20(%rax)
testq %rdx, %rdx
je 0xe5963
movq 0x7c648(%rip), %rsi # 0x161f98
cmpb $0x0, (%rsi)
je 0xe595a
incl 0x8(%rdx)
jmp 0xe5963
lock
incl 0x8(%rdx)
movq 0x30(%rsp), %rbx
movq %rbx, 0x28(%rax)
leaq 0x7b272(%rip), %rdx # 0x160be0
addq $0x10, %rdx
movq %rdx, 0x10(%rax)
movaps 0x40(%rsp), %xmm0
movups %xmm0, 0x30(%rax)
movq 0x50(%rsp), %rdx
movq %rdx, 0x40(%rax)
xorl %edx, %edx
movq %rdx, 0x50(%rsp)
xorps %xmm0, %xmm0
movaps %xmm0, 0x40(%rsp)
movq 0x60(%rsp), %rbx
movq %rcx, (%rbx)
movq %rdx, 0x8(%rsp)
movq %rax, 0x8(%rbx)
movq %rdx, (%rsp)
callq 0x71092
movq %r15, %rdi
callq 0x71092
leaq 0x40(%rsp), %rdi
callq 0xe6c38
movq %rbx, %rax
addq $0x78, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movl $0x10, %edi
callq 0x20620
movq %rax, %r14
leaq 0x3bf66(%rip), %rsi # 0x12194f
movq %rax, %rdi
callq 0x20400
movq 0x7c5c8(%rip), %rsi # 0x161fc0
movq 0x7c581(%rip), %rdx # 0x161f80
movq %r14, %rdi
callq 0x20a30
movl $0x10, %edi
callq 0x20620
movq %rax, %r14
leaq 0x3bf06(%rip), %rsi # 0x121921
movq %rax, %rdi
callq 0x20400
jmp 0xe59f1
jmp 0xe5a63
jmp 0xe5a2d
jmp 0xe5a89
jmp 0xe5a74
movq %rax, %rbx
movq %r15, %rdi
callq 0x71092
jmp 0xe5a77
jmp 0xe5a89
jmp 0xe5a74
movq %rax, %rbx
movq (%rsp), %rdi
leaq 0x10(%rsp), %rax
cmpq %rax, %rdi
je 0xe5a81
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x20170
jmp 0xe5a81
movq %rax, %rbx
jmp 0xe5a81
movq %rax, %rbx
movq %r14, %rdi
callq 0x20eb0
jmp 0xe5a77
jmp 0xe5a74
jmp 0xe5a74
movq %rax, %rbx
leaq 0x40(%rsp), %rdi
callq 0xe6c38
movq %rbx, %rdi
callq 0x20ad0
movq %rax, %rbx
movq (%rsp), %rdi
leaq 0x10(%rsp), %rax
cmpq %rax, %rdi
je 0xe5a77
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x20170
jmp 0xe5a77
nop
| _ZN5minja6Parser15parseDictionaryEv:
push rbp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 78h
mov r14, rsi
mov rbx, rdi
lea rax, [rsp+0A8h+var_98]
mov [rax-10h], rax
lea rsi, aLlamaCompletio+15h; "{"
lea rdx, aLlamaCompletio+16h; ""
mov rdi, rsp
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPKcEEvT_S8_St20forward_iterator_tag; std::string::_M_construct<char const*>(char const*,char const*,std::forward_iterator_tag)
mov [rsp+0A8h+var_48], rbx
lea rdi, [rsp+0A8h+var_88]
mov rdx, rsp
mov rsi, r14
mov ecx, 1
call _ZN5minja6Parser12consumeTokenERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEENS_13SpaceHandlingE; minja::Parser::consumeToken(std::string const&,minja::SpaceHandling)
lea rax, [rsp+0A8h+var_78]
mov rdi, [rax-10h]; void *
mov rbx, [rax-8]
cmp rdi, rax
jz short loc_E5680
mov rsi, [rsp+0A8h+var_78]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_E5680:
mov rdi, [rsp+0A8h+var_A8]; void *
lea rax, [rsp+0A8h+var_98]
cmp rdi, rax
jz short loc_E569B
mov rsi, [rsp+0A8h+var_98]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_E569B:
xorps xmm0, xmm0
test rbx, rbx
jz loc_E575B
movaps [rsp+0A8h+var_68], xmm0
mov [rsp+0A8h+var_58], 0
mov rdi, rsp
lea rax, [rsp+0A8h+var_98]
mov [rdi], rax
lea rsi, aForMessageInMe+0CFh; "}"
lea rdx, aForMessageInMe+0D0h; ""
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_88]
mov rdx, rsp
mov rsi, r14
mov ecx, 1
call _ZN5minja6Parser12consumeTokenERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEENS_13SpaceHandlingE; minja::Parser::consumeToken(std::string const&,minja::SpaceHandling)
mov rdi, [rsp+0A8h+var_88]; void *
mov rbx, [rsp+0A8h+var_80]
lea rax, [rsp+0A8h+var_78]
cmp rdi, rax
jz short loc_E5709
mov rsi, [rsp+0A8h+var_78]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_E5709:
mov rdi, [rsp+0A8h+var_A8]; void *
lea rax, [rsp+0A8h+var_98]
cmp rdi, rax
jz short loc_E5724
mov rsi, [rsp+0A8h+var_98]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_E5724:
test rbx, rbx
jz short loc_E5768
mov rax, [r14]
mov [rsp+0A8h+var_88], rax
mov rax, [r14+8]
mov [rsp+0A8h+var_80], rax
test rax, rax
jz loc_E58BF
mov rcx, cs:_ZTISt19_Sp_make_shared_tag; `typeinfo for'std::_Sp_make_shared_tag
cmp byte ptr [rcx], 0
jz loc_E58BB
inc dword ptr [rax+8]
jmp loc_E58BF
loc_E575B:
mov rbx, [rsp+0A8h+var_48]
movups xmmword ptr [rbx], xmm0
jmp loc_E59C3
loc_E5768:
lea rdi, [rsp+0A8h+var_40]
mov [rdi], r14
lea rax, [rsp+0A8h+var_68]
mov [rdi+8], rax
call _ZZN5minja6Parser15parseDictionaryEvENKUlvE_clEv; minja::Parser::parseDictionary(void)::{lambda(void)#1}::operator()(void)
lea r12, asc_121833+1; ""
mov r13, rsp
lea rbp, [rsp+0A8h+var_88]
lea rbx, [rsp+0A8h+var_40]
loc_E5792:
mov rax, [r14+20h]
cmp rax, [r14+18h]
jz loc_E59D5
lea rax, [rsp+0A8h+var_98]
mov [rsp+0A8h+var_A8], rax
mov rdi, r13
lea rsi, asc_121833; ","
mov rdx, r12
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPKcEEvT_S8_St20forward_iterator_tag; std::string::_M_construct<char const*>(char const*,char const*,std::forward_iterator_tag)
mov rdi, rbp
mov rsi, r14
mov rdx, r13
mov ecx, 1
call _ZN5minja6Parser12consumeTokenERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEENS_13SpaceHandlingE; minja::Parser::consumeToken(std::string const&,minja::SpaceHandling)
mov rdi, [rsp+0A8h+var_88]; void *
mov r15, [rsp+0A8h+var_80]
lea rax, [rsp+0A8h+var_78]
cmp rdi, rax
jz short loc_E57EF
mov rsi, [rsp+0A8h+var_78]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_E57EF:
mov rdi, [rsp+0A8h+var_A8]; void *
lea rax, [rsp+0A8h+var_98]
cmp rdi, rax
jz short loc_E580A
mov rsi, [rsp+0A8h+var_98]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_E580A:
test r15, r15
jz short loc_E581C
mov rdi, rbx
call _ZZN5minja6Parser15parseDictionaryEvENKUlvE_clEv; minja::Parser::parseDictionary(void)::{lambda(void)#1}::operator()(void)
jmp loc_E5792
loc_E581C:
mov rdi, rsp
lea rax, [rsp+0A8h+var_98]
mov [rdi], rax
lea rsi, aForMessageInMe+0CFh; "}"
lea rdx, aForMessageInMe+0D0h; ""
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_88]
mov rdx, rsp
mov rsi, r14
mov ecx, 1
call _ZN5minja6Parser12consumeTokenERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEENS_13SpaceHandlingE; minja::Parser::consumeToken(std::string const&,minja::SpaceHandling)
mov rdi, [rsp+0A8h+var_88]; void *
mov rbx, [rsp+0A8h+var_80]
lea rax, [rsp+0A8h+var_78]
cmp rdi, rax
jz short loc_E5870
mov rsi, [rsp+0A8h+var_78]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_E5870:
mov rdi, [rsp+0A8h+var_A8]; void *
lea rax, [rsp+0A8h+var_98]
cmp rdi, rax
jz short loc_E588B
mov rsi, [rsp+0A8h+var_98]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_E588B:
test rbx, rbx
jz loc_E5A07
mov rax, [r14]
mov [rsp+0A8h+var_88], rax
mov rax, [r14+8]
mov [rsp+0A8h+var_80], rax
test rax, rax
jz short loc_E58E0
mov rcx, cs:_ZTISt19_Sp_make_shared_tag; `typeinfo for'std::_Sp_make_shared_tag
cmp byte ptr [rcx], 0
jz short loc_E58DC
inc dword ptr [rax+8]
jmp short loc_E58E0
loc_E58BB:
lock inc dword ptr [rax+8]
loc_E58BF:
lea r15, [rsp+0A8h+var_80]
mov rbx, [r14+20h]
sub rbx, [r14+10h]
mov [r15+8], rbx
mov edi, 48h ; 'H'; unsigned __int64
call __Znwm; operator new(ulong)
jmp short loc_E58FB
loc_E58DC:
lock inc dword ptr [rax+8]
loc_E58E0:
lea r15, [rsp+0A8h+var_80]
mov rbx, [r14+20h]
sub rbx, [r14+10h]
mov [r15+8], rbx
mov edi, 48h ; 'H'; unsigned __int64
call __Znwm; operator new(ulong)
loc_E58FB:
lea rdi, [rsp+0A8h+var_A0]
mov rcx, 100000001h
mov [rax+8], rcx
lea rcx, _ZTVSt23_Sp_counted_ptr_inplaceIN5minja8DictExprESaIvELN9__gnu_cxx12_Lock_policyE2EE; `vtable for'std::_Sp_counted_ptr_inplace<minja::DictExpr,std::allocator<void>,(__gnu_cxx::_Lock_policy)2>
add rcx, 10h
mov [rax], rcx
mov rcx, rax
add rcx, 10h
lea rdx, _ZTVN5minja10ExpressionE; `vtable for'minja::Expression
add rdx, 10h
mov [rax+10h], rdx
mov rdx, [rsp+0A8h+var_88]
mov [rax+18h], rdx
mov rdx, [rsp+0A8h+var_80]
mov [rax+20h], rdx
test rdx, rdx
jz short loc_E5963
mov rsi, cs:_ZTISt19_Sp_make_shared_tag; `typeinfo for'std::_Sp_make_shared_tag
cmp byte ptr [rsi], 0
jz short loc_E595A
inc dword ptr [rdx+8]
jmp short loc_E5963
loc_E595A:
lock inc dword ptr [rdx+8]
mov rbx, [rsp+0A8h+var_78]
loc_E5963:
mov [rax+28h], rbx
lea rdx, _ZTVN5minja8DictExprE; `vtable for'minja::DictExpr
add rdx, 10h
mov [rax+10h], rdx
movaps xmm0, [rsp+0A8h+var_68]
movups xmmword ptr [rax+30h], xmm0
mov rdx, [rsp+0A8h+var_58]
mov [rax+40h], rdx
xor edx, edx
mov [rsp+0A8h+var_58], rdx
xorps xmm0, xmm0
movaps [rsp+0A8h+var_68], xmm0
mov rbx, [rsp+0A8h+var_48]
mov [rbx], rcx
mov [rsp+0A8h+var_A0], rdx
mov [rbx+8], rax
mov [rsp+0A8h+var_A8], rdx
call _ZNSt14__shared_countILN9__gnu_cxx12_Lock_policyE2EED2Ev; std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count()
mov rdi, r15
call _ZNSt14__shared_countILN9__gnu_cxx12_Lock_policyE2EED2Ev; std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count()
lea rdi, [rsp+0A8h+var_68]
call _ZNSt6vectorISt4pairISt10shared_ptrIN5minja10ExpressionEES4_ESaIS5_EED2Ev; std::vector<std::pair<std::shared_ptr<minja::Expression>,std::shared_ptr<minja::Expression>>>::~vector()
loc_E59C3:
mov rax, rbx
add rsp, 78h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
loc_E59D5:
mov edi, 10h; thrown_size
call ___cxa_allocate_exception
mov r14, rax
lea rsi, aExpectedClosin_5; "Expected closing brace"
mov rdi, rax; this
call __ZNSt13runtime_errorC1EPKc; std::runtime_error::runtime_error(char const*)
loc_E59F1:
mov rsi, cs:_ZTISt13runtime_error_ptr; lptinfo
mov rdx, cs:_ZNSt13runtime_errorD1Ev_ptr; void (*)(void *)
mov rdi, r14; void *
call ___cxa_throw
loc_E5A07:
mov edi, 10h; thrown_size
call ___cxa_allocate_exception
mov r14, rax
lea rsi, aExpectedCommaO_0; "Expected comma or closing brace in dict"...
mov rdi, rax; this
call __ZNSt13runtime_errorC1EPKc; std::runtime_error::runtime_error(char const*)
jmp short loc_E59F1
jmp short loc_E5A63
jmp short loc_E5A2D
jmp short loc_E5A89
jmp short loc_E5A74
loc_E5A2D:
mov rbx, rax
mov rdi, r15
call _ZNSt14__shared_countILN9__gnu_cxx12_Lock_policyE2EED2Ev; std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count()
jmp short loc_E5A77
jmp short loc_E5A89
jmp short loc_E5A74
mov rbx, rax
mov rdi, [rsp+0]; void *
lea rax, [rsp+arg_8]
cmp rdi, rax
jz short loc_E5A81
mov rsi, [rsp+arg_8]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
jmp short loc_E5A81
mov rbx, rax
jmp short loc_E5A81
loc_E5A63:
mov rbx, rax
mov rdi, r14; void *
call ___cxa_free_exception
jmp short loc_E5A77
jmp short loc_E5A74
jmp short $+2
loc_E5A74:
mov rbx, rax
loc_E5A77:
lea rdi, [rsp+arg_38]
call _ZNSt6vectorISt4pairISt10shared_ptrIN5minja10ExpressionEES4_ESaIS5_EED2Ev; std::vector<std::pair<std::shared_ptr<minja::Expression>,std::shared_ptr<minja::Expression>>>::~vector()
loc_E5A81:
mov rdi, rbx
call __Unwind_Resume
loc_E5A89:
mov rbx, rax
mov rdi, [rsp+0]; void *
lea rax, [rsp+arg_8]
cmp rdi, rax
jz short loc_E5A77
mov rsi, [rsp+arg_8]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
jmp short loc_E5A77
| minja::Parser * minja::Parser::parseDictionary(minja::Parser *this, long long a2)
{
volatile signed __int32 *v2; // rbx
volatile signed __int32 *v3; // rbx
volatile signed __int32 *v4; // rax
minja::Parser *v5; // rbx
volatile signed __int32 *v6; // r15
volatile signed __int32 *v7; // rbx
volatile signed __int32 *v8; // rax
long long v9; // rbx
long long v10; // rax
volatile signed __int32 *v11; // rdx
std::runtime_error *exception; // r14
void *v14; // [rsp+0h] [rbp-A8h] BYREF
volatile signed __int32 *v15; // [rsp+8h] [rbp-A0h] BYREF
_QWORD v16[2]; // [rsp+10h] [rbp-98h] BYREF
void *v17; // [rsp+20h] [rbp-88h] BYREF
volatile signed __int32 *v18; // [rsp+28h] [rbp-80h] BYREF
_QWORD v19[2]; // [rsp+30h] [rbp-78h] BYREF
__int128 v20; // [rsp+40h] [rbp-68h] BYREF
long long v21; // [rsp+50h] [rbp-58h]
minja::Parser *v22; // [rsp+60h] [rbp-48h]
long long v23; // [rsp+68h] [rbp-40h]
__int128 *v24; // [rsp+70h] [rbp-38h]
v14 = v16;
std::string::_M_construct<char const*>((long long)&v14, "{", (long long)"");
v22 = this;
minja::Parser::consumeToken(&v17, a2, (_BYTE **)&v14, 1u);
v2 = v18;
if ( v17 != v19 )
operator delete(v17, v19[0] + 1LL);
if ( v14 != v16 )
operator delete(v14, v16[0] + 1LL);
if ( !v2 )
{
v5 = v22;
*(_OWORD *)v22 = 0LL;
return v5;
}
v20 = 0LL;
v21 = 0LL;
v14 = v16;
std::string::_M_construct<char const*>((long long)&v14, "}", (long long)"");
minja::Parser::consumeToken(&v17, a2, (_BYTE **)&v14, 1u);
v3 = v18;
if ( v17 != v19 )
operator delete(v17, v19[0] + 1LL);
if ( v14 != v16 )
operator delete(v14, v16[0] + 1LL);
if ( v3 )
{
v17 = *(void **)a2;
v4 = *(volatile signed __int32 **)(a2 + 8);
v18 = v4;
if ( v4 )
{
if ( _libc_single_threaded )
++*((_DWORD *)v4 + 2);
else
_InterlockedIncrement(v4 + 2);
}
goto LABEL_34;
}
v23 = a2;
v24 = &v20;
minja::Parser::parseDictionary(void)::{lambda(void)#1}::operator()(0.0);
while ( 1 )
{
if ( *(_QWORD *)(a2 + 32) == *(_QWORD *)(a2 + 24) )
{
exception = (std::runtime_error *)__cxa_allocate_exception(0x10uLL);
std::runtime_error::runtime_error(exception, "Expected closing brace");
goto LABEL_41;
}
v14 = v16;
std::string::_M_construct<char const*>((long long)&v14, ",", (long long)"");
minja::Parser::consumeToken(&v17, a2, (_BYTE **)&v14, 1u);
v6 = v18;
if ( v17 != v19 )
operator delete(v17, v19[0] + 1LL);
if ( v14 != v16 )
operator delete(v14, v16[0] + 1LL);
if ( !v6 )
break;
minja::Parser::parseDictionary(void)::{lambda(void)#1}::operator()(0.0);
}
v14 = v16;
std::string::_M_construct<char const*>((long long)&v14, "}", (long long)"");
minja::Parser::consumeToken(&v17, a2, (_BYTE **)&v14, 1u);
v7 = v18;
if ( v17 != v19 )
operator delete(v17, v19[0] + 1LL);
if ( v14 != v16 )
operator delete(v14, v16[0] + 1LL);
if ( !v7 )
{
exception = (std::runtime_error *)__cxa_allocate_exception(0x10uLL);
std::runtime_error::runtime_error(exception, "Expected comma or closing brace in dictionary");
LABEL_41:
__cxa_throw(
exception,
(struct type_info *)&`typeinfo for'std::runtime_error,
(void (*)(void *))&std::runtime_error::~runtime_error);
}
v17 = *(void **)a2;
v8 = *(volatile signed __int32 **)(a2 + 8);
v18 = v8;
if ( v8 )
{
if ( _libc_single_threaded )
++*((_DWORD *)v8 + 2);
else
_InterlockedIncrement(v8 + 2);
}
LABEL_34:
v9 = *(_QWORD *)(a2 + 32) - *(_QWORD *)(a2 + 16);
v19[0] = v9;
v10 = operator new(0x48uLL);
*(_QWORD *)(v10 + 8) = 0x100000001LL;
*(_QWORD *)v10 = &`vtable for'std::_Sp_counted_ptr_inplace<minja::DictExpr,std::allocator<void>,(__gnu_cxx::_Lock_policy)2>
+ 2;
*(_QWORD *)(v10 + 16) = &`vtable for'minja::Expression + 2;
*(_QWORD *)(v10 + 24) = v17;
v11 = v18;
*(_QWORD *)(v10 + 32) = v18;
if ( v11 )
{
if ( _libc_single_threaded )
{
++*((_DWORD *)v11 + 2);
}
else
{
_InterlockedIncrement(v11 + 2);
v9 = v19[0];
}
}
*(_QWORD *)(v10 + 40) = v9;
*(_QWORD *)(v10 + 16) = &`vtable for'minja::DictExpr + 2;
*(_OWORD *)(v10 + 48) = v20;
*(_QWORD *)(v10 + 64) = v21;
v21 = 0LL;
v20 = 0LL;
v5 = v22;
*(_QWORD *)v22 = v10 + 16;
v15 = 0LL;
*((_QWORD *)v5 + 1) = v10;
v14 = 0LL;
std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count(&v15);
std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count(&v18);
std::vector<std::pair<std::shared_ptr<minja::Expression>,std::shared_ptr<minja::Expression>>>::~vector(&v20);
return v5;
}
| parseDictionary:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x78
MOV R14,RSI
MOV RBX,RDI
LEA RAX,[RSP + 0x10]
MOV qword ptr [RAX + -0x10],RAX
LAB_001e5631:
LEA RSI,[0x21bea9]
LEA RDX,[0x21beaa]
MOV RDI,RSP
CALL 0x00128e86
LAB_001e5647:
MOV qword ptr [RSP + 0x60],RBX
LEA RDI,[RSP + 0x20]
MOV RDX,RSP
MOV RSI,R14
MOV ECX,0x1
CALL 0x001df86a
LEA RAX,[RSP + 0x30]
MOV RDI,qword ptr [RAX + -0x10]
MOV RBX,qword ptr [RAX + -0x8]
CMP RDI,RAX
JZ 0x001e5680
MOV RSI,qword ptr [RSP + 0x30]
INC RSI
CALL 0x00120170
LAB_001e5680:
MOV RDI,qword ptr [RSP]
LEA RAX,[RSP + 0x10]
CMP RDI,RAX
JZ 0x001e569b
MOV RSI,qword ptr [RSP + 0x10]
INC RSI
CALL 0x00120170
LAB_001e569b:
XORPS XMM0,XMM0
TEST RBX,RBX
JZ 0x001e575b
MOVAPS xmmword ptr [RSP + 0x40],XMM0
MOV qword ptr [RSP + 0x50],0x0
MOV RDI,RSP
LEA RAX,[RSP + 0x10]
MOV qword ptr [RDI],RAX
LAB_001e56c0:
LEA RSI,[0x21f273]
LEA RDX,[0x21f274]
CALL 0x00128e86
LAB_001e56d3:
LEA RDI,[RSP + 0x20]
MOV RDX,RSP
MOV RSI,R14
MOV ECX,0x1
CALL 0x001df86a
MOV RDI,qword ptr [RSP + 0x20]
MOV RBX,qword ptr [RSP + 0x28]
LEA RAX,[RSP + 0x30]
CMP RDI,RAX
JZ 0x001e5709
MOV RSI,qword ptr [RSP + 0x30]
INC RSI
CALL 0x00120170
LAB_001e5709:
MOV RDI,qword ptr [RSP]
LEA RAX,[RSP + 0x10]
CMP RDI,RAX
JZ 0x001e5724
MOV RSI,qword ptr [RSP + 0x10]
INC RSI
CALL 0x00120170
LAB_001e5724:
TEST RBX,RBX
JZ 0x001e5768
MOV RAX,qword ptr [R14]
MOV qword ptr [RSP + 0x20],RAX
MOV RAX,qword ptr [R14 + 0x8]
MOV qword ptr [RSP + 0x28],RAX
TEST RAX,RAX
JZ 0x001e58bf
MOV RCX,qword ptr [0x00261f98]
CMP byte ptr [RCX],0x0
JZ 0x001e58bb
INC dword ptr [RAX + 0x8]
JMP 0x001e58bf
LAB_001e575b:
MOV RBX,qword ptr [RSP + 0x60]
MOVUPS xmmword ptr [RBX],XMM0
JMP 0x001e59c3
LAB_001e5768:
LEA RDI,[RSP + 0x68]
MOV qword ptr [RDI],R14
LEA RAX,[RSP + 0x40]
MOV qword ptr [RDI + 0x8],RAX
LAB_001e5779:
CALL 0x001e6a0c
LEA R12,[0x221834]
MOV R13,RSP
LEA RBP,[RSP + 0x20]
LEA RBX,[RSP + 0x68]
LAB_001e5792:
MOV RAX,qword ptr [R14 + 0x20]
CMP RAX,qword ptr [R14 + 0x18]
JZ 0x001e59d5
LEA RAX,[RSP + 0x10]
MOV qword ptr [RSP],RAX
LAB_001e57a9:
MOV RDI,R13
LEA RSI,[0x221833]
MOV RDX,R12
CALL 0x00128e86
LAB_001e57bb:
MOV RDI,RBP
MOV RSI,R14
MOV RDX,R13
MOV ECX,0x1
CALL 0x001df86a
MOV RDI,qword ptr [RSP + 0x20]
MOV R15,qword ptr [RSP + 0x28]
LEA RAX,[RSP + 0x30]
CMP RDI,RAX
JZ 0x001e57ef
MOV RSI,qword ptr [RSP + 0x30]
INC RSI
CALL 0x00120170
LAB_001e57ef:
MOV RDI,qword ptr [RSP]
LEA RAX,[RSP + 0x10]
CMP RDI,RAX
JZ 0x001e580a
MOV RSI,qword ptr [RSP + 0x10]
INC RSI
CALL 0x00120170
LAB_001e580a:
TEST R15,R15
JZ 0x001e581c
LAB_001e580f:
MOV RDI,RBX
CALL 0x001e6a0c
JMP 0x001e5792
LAB_001e581c:
MOV RDI,RSP
LEA RAX,[RSP + 0x10]
MOV qword ptr [RDI],RAX
LAB_001e5827:
LEA RSI,[0x21f273]
LEA RDX,[0x21f274]
CALL 0x00128e86
LAB_001e583a:
LEA RDI,[RSP + 0x20]
MOV RDX,RSP
MOV RSI,R14
MOV ECX,0x1
CALL 0x001df86a
MOV RDI,qword ptr [RSP + 0x20]
MOV RBX,qword ptr [RSP + 0x28]
LEA RAX,[RSP + 0x30]
CMP RDI,RAX
JZ 0x001e5870
MOV RSI,qword ptr [RSP + 0x30]
INC RSI
CALL 0x00120170
LAB_001e5870:
MOV RDI,qword ptr [RSP]
LEA RAX,[RSP + 0x10]
CMP RDI,RAX
JZ 0x001e588b
MOV RSI,qword ptr [RSP + 0x10]
INC RSI
CALL 0x00120170
LAB_001e588b:
TEST RBX,RBX
JZ 0x001e5a07
MOV RAX,qword ptr [R14]
MOV qword ptr [RSP + 0x20],RAX
MOV RAX,qword ptr [R14 + 0x8]
MOV qword ptr [RSP + 0x28],RAX
TEST RAX,RAX
JZ 0x001e58e0
MOV RCX,qword ptr [0x00261f98]
CMP byte ptr [RCX],0x0
JZ 0x001e58dc
INC dword ptr [RAX + 0x8]
JMP 0x001e58e0
LAB_001e58bb:
INC.LOCK dword ptr [RAX + 0x8]
LAB_001e58bf:
LEA R15,[RSP + 0x28]
MOV RBX,qword ptr [R14 + 0x20]
SUB RBX,qword ptr [R14 + 0x10]
MOV qword ptr [R15 + 0x8],RBX
LAB_001e58d0:
MOV EDI,0x48
CALL 0x00120200
JMP 0x001e58fb
LAB_001e58dc:
INC.LOCK dword ptr [RAX + 0x8]
LAB_001e58e0:
LEA R15,[RSP + 0x28]
MOV RBX,qword ptr [R14 + 0x20]
SUB RBX,qword ptr [R14 + 0x10]
MOV qword ptr [R15 + 0x8],RBX
LAB_001e58f1:
MOV EDI,0x48
CALL 0x00120200
LAB_001e58fb:
LEA RDI,[RSP + 0x8]
MOV RCX,0x100000001
MOV qword ptr [RAX + 0x8],RCX
LEA RCX,[0x260b90]
ADD RCX,0x10
MOV qword ptr [RAX],RCX
MOV RCX,RAX
ADD RCX,0x10
LEA RDX,[0x2609e0]
ADD RDX,0x10
MOV qword ptr [RAX + 0x10],RDX
MOV RDX,qword ptr [RSP + 0x20]
MOV qword ptr [RAX + 0x18],RDX
MOV RDX,qword ptr [RSP + 0x28]
MOV qword ptr [RAX + 0x20],RDX
TEST RDX,RDX
JZ 0x001e5963
MOV RSI,qword ptr [0x00261f98]
CMP byte ptr [RSI],0x0
JZ 0x001e595a
INC dword ptr [RDX + 0x8]
JMP 0x001e5963
LAB_001e595a:
INC.LOCK dword ptr [RDX + 0x8]
MOV RBX,qword ptr [RSP + 0x30]
LAB_001e5963:
MOV qword ptr [RAX + 0x28],RBX
LEA RDX,[0x260be0]
ADD RDX,0x10
MOV qword ptr [RAX + 0x10],RDX
MOVAPS XMM0,xmmword ptr [RSP + 0x40]
MOVUPS xmmword ptr [RAX + 0x30],XMM0
MOV RDX,qword ptr [RSP + 0x50]
MOV qword ptr [RAX + 0x40],RDX
XOR EDX,EDX
MOV qword ptr [RSP + 0x50],RDX
XORPS XMM0,XMM0
MOVAPS xmmword ptr [RSP + 0x40],XMM0
MOV RBX,qword ptr [RSP + 0x60]
MOV qword ptr [RBX],RCX
MOV qword ptr [RSP + 0x8],RDX
MOV qword ptr [RBX + 0x8],RAX
MOV qword ptr [RSP],RDX
CALL 0x00171092
MOV RDI,R15
CALL 0x00171092
LEA RDI,[RSP + 0x40]
CALL 0x001e6c38
LAB_001e59c3:
MOV RAX,RBX
ADD RSP,0x78
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
LAB_001e59d5:
MOV EDI,0x10
CALL 0x00120620
MOV R14,RAX
LAB_001e59e2:
LEA RSI,[0x22194f]
MOV RDI,RAX
CALL 0x00120400
LAB_001e59f1:
MOV RSI,qword ptr [0x00261fc0]
MOV RDX,qword ptr [0x00261f80]
MOV RDI,R14
CALL 0x00120a30
LAB_001e5a07:
MOV EDI,0x10
CALL 0x00120620
MOV R14,RAX
LAB_001e5a14:
LEA RSI,[0x221921]
MOV RDI,RAX
CALL 0x00120400
LAB_001e5a23:
JMP 0x001e59f1
|
/* minja::Parser::parseDictionary() */
int8 * minja::Parser::parseDictionary(void)
{
int8 *puVar1;
runtime_error *this;
long lVar2;
int8 *in_RSI;
int8 *in_RDI;
long *local_a8;
int8 local_a0;
long local_98 [2];
long *local_88;
long local_80;
long local_78 [2];
int8 local_68;
int8 uStack_60;
int8 local_58;
int8 *local_48;
_lambda___1_ local_40 [8];
int8 *local_38;
local_a8 = local_98;
/* try { // try from 001e5631 to 001e5646 has its CatchHandler @ 001e5a5e */
std::__cxx11::string::_M_construct<char_const*>(&local_a8,"{","");
/* try { // try from 001e5647 to 001e5660 has its CatchHandler @ 001e5a3e */
local_48 = in_RDI;
consumeToken(&local_88);
lVar2 = local_80;
if (local_88 != local_78) {
operator_delete(local_88,local_78[0] + 1);
}
if (local_a8 != local_98) {
operator_delete(local_a8,local_98[0] + 1);
}
if (lVar2 == 0) {
*local_48 = 0;
local_48[1] = 0;
}
else {
local_68 = 0;
uStack_60 = 0;
local_58 = 0;
local_a8 = local_98;
/* try { // try from 001e56c0 to 001e56d2 has its CatchHandler @ 001e5a3c */
std::__cxx11::string::_M_construct<char_const*>(&local_a8,"}","");
/* try { // try from 001e56d3 to 001e56e7 has its CatchHandler @ 001e5a3a */
consumeToken(&local_88);
lVar2 = local_80;
if (local_88 != local_78) {
operator_delete(local_88,local_78[0] + 1);
}
if (local_a8 != local_98) {
operator_delete(local_a8,local_98[0] + 1);
}
if (lVar2 == 0) {
local_38 = &local_68;
/* try { // try from 001e5779 to 001e577d has its CatchHandler @ 001e5a70 */
parseDictionary()::{lambda()#1}::operator()(local_40);
do {
if (in_RSI[4] == in_RSI[3]) {
this = (runtime_error *)__cxa_allocate_exception(0x10);
/* try { // try from 001e59e2 to 001e59f0 has its CatchHandler @ 001e5a63 */
std::runtime_error::runtime_error(this,"Expected closing brace");
LAB_001e59f1:
/* try { // try from 001e59f1 to 001e5a06 has its CatchHandler @ 001e5a70 */
/* WARNING: Subroutine does not return */
__cxa_throw(this,PTR_typeinfo_00261fc0,PTR__runtime_error_00261f80);
}
local_a8 = local_98;
/* try { // try from 001e57a9 to 001e57ba has its CatchHandler @ 001e5a74 */
std::__cxx11::string::_M_construct<char_const*>(&local_a8,&DAT_00221833,&DAT_00221834);
/* try { // try from 001e57bb to 001e57cd has its CatchHandler @ 001e5a89 */
consumeToken(&local_88);
lVar2 = local_80;
if (local_88 != local_78) {
operator_delete(local_88,local_78[0] + 1);
}
if (local_a8 != local_98) {
operator_delete(local_a8,local_98[0] + 1);
}
if (lVar2 == 0) {
local_a8 = local_98;
/* try { // try from 001e5827 to 001e5839 has its CatchHandler @ 001e5a2b */
std::__cxx11::string::_M_construct<char_const*>(&local_a8,"}","");
/* try { // try from 001e583a to 001e584e has its CatchHandler @ 001e5a29 */
consumeToken(&local_88);
if (local_88 != local_78) {
operator_delete(local_88,local_78[0] + 1);
}
if (local_a8 != local_98) {
operator_delete(local_a8,local_98[0] + 1);
}
if (local_80 == 0) {
this = (runtime_error *)__cxa_allocate_exception(0x10);
/* try { // try from 001e5a14 to 001e5a22 has its CatchHandler @ 001e5a25 */
std::runtime_error::runtime_error(this,"Expected comma or closing brace in dictionary");
goto LAB_001e59f1;
}
local_88 = (long *)*in_RSI;
local_80 = in_RSI[1];
if (local_80 != 0) {
if (*PTR___libc_single_threaded_00261f98 == '\0') {
LOCK();
*(int *)(local_80 + 8) = *(int *)(local_80 + 8) + 1;
UNLOCK();
}
else {
*(int *)(local_80 + 8) = *(int *)(local_80 + 8) + 1;
}
}
lVar2 = in_RSI[4] - in_RSI[2];
local_78[0] = lVar2;
/* try { // try from 001e58f1 to 001e58fa has its CatchHandler @ 001e5a27 */
puVar1 = (int8 *)operator_new(0x48);
goto LAB_001e58fb;
}
/* try { // try from 001e580f to 001e5816 has its CatchHandler @ 001e5a72 */
parseDictionary()::{lambda()#1}::operator()(local_40);
} while( true );
}
local_88 = (long *)*in_RSI;
local_80 = in_RSI[1];
if (local_80 != 0) {
if (*PTR___libc_single_threaded_00261f98 == '\0') {
LOCK();
*(int *)(local_80 + 8) = *(int *)(local_80 + 8) + 1;
UNLOCK();
}
else {
*(int *)(local_80 + 8) = *(int *)(local_80 + 8) + 1;
}
}
lVar2 = in_RSI[4] - in_RSI[2];
local_78[0] = lVar2;
/* try { // try from 001e58d0 to 001e58d9 has its CatchHandler @ 001e5a2d */
puVar1 = (int8 *)operator_new(0x48);
LAB_001e58fb:
puVar1[1] = 0x100000001;
*puVar1 = &PTR___Sp_counted_base_00260ba0;
puVar1[2] = &PTR___cxa_pure_virtual_002609f0;
puVar1[3] = local_88;
puVar1[4] = local_80;
if (local_80 != 0) {
if (*PTR___libc_single_threaded_00261f98 == '\0') {
LOCK();
*(int *)(local_80 + 8) = *(int *)(local_80 + 8) + 1;
UNLOCK();
lVar2 = local_78[0];
}
else {
*(int *)(local_80 + 8) = *(int *)(local_80 + 8) + 1;
}
}
puVar1[5] = lVar2;
puVar1[2] = &PTR_do_evaluate_00260bf0;
puVar1[6] = local_68;
puVar1[7] = uStack_60;
puVar1[8] = local_58;
local_58 = 0;
local_68 = 0;
uStack_60 = 0;
*local_48 = puVar1 + 2;
local_a0 = 0;
local_48[1] = puVar1;
local_a8 = (long *)0x0;
std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count
((__shared_count<(__gnu_cxx::_Lock_policy)2> *)&local_a0);
std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count
((__shared_count<(__gnu_cxx::_Lock_policy)2> *)&local_80);
std::
vector<std::pair<std::shared_ptr<minja::Expression>,std::shared_ptr<minja::Expression>>,std::allocator<std::pair<std::shared_ptr<minja::Expression>,std::shared_ptr<minja::Expression>>>>
::~vector((vector<std::pair<std::shared_ptr<minja::Expression>,std::shared_ptr<minja::Expression>>,std::allocator<std::pair<std::shared_ptr<minja::Expression>,std::shared_ptr<minja::Expression>>>>
*)&local_68);
}
return local_48;
}
| |
42,654 | google::protobuf::OneofOptions::OneofOptions(google::protobuf::Arena*, bool) | aimrt_mujoco_sim/_deps/protobuf-src/src/google/protobuf/descriptor.pb.cc | OneofOptions::OneofOptions(::PROTOBUF_NAMESPACE_ID::Arena* arena,
bool is_message_owned)
: ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
SharedCtor(arena, is_message_owned);
// @@protoc_insertion_point(arena_constructor:google.protobuf.OneofOptions)
} | O3 | cpp | google::protobuf::OneofOptions::OneofOptions(google::protobuf::Arena*, bool):
pushq %r15
pushq %r14
pushq %rbx
movq %rsi, %r15
movq %rdi, %rbx
leaq 0x8(%rdi), %r14
movq %rsi, %rax
orq $0x2, %rax
testl %edx, %edx
cmoveq %rsi, %rax
movq %rax, 0x8(%rdi)
leaq 0xabb23(%rip), %rax # 0xfeec0
movq %rax, (%rdi)
addq $0x10, %rdi
callq 0x93d62
movq %r15, 0x28(%rbx)
xorps %xmm0, %xmm0
movups %xmm0, 0x30(%rbx)
movl $0x0, 0x40(%rbx)
popq %rbx
popq %r14
popq %r15
retq
movq %rax, %r15
leaq 0xadf55(%rip), %rax # 0x101320
addq $0x10, %rax
movq %rax, (%rbx)
movq %r14, %rdi
callq 0x59494
movq %r15, %rdi
callq 0xf570
| _ZN6google8protobuf12OneofOptionsC2EPNS0_5ArenaEb:
push r15; Alternative name is 'google::protobuf::OneofOptions::OneofOptions(google::protobuf::Arena *, bool)'
push r14
push rbx
mov r15, rsi
mov rbx, rdi
lea r14, [rdi+8]
mov rax, rsi
or rax, 2
test edx, edx
cmovz rax, rsi
mov [rdi+8], rax
lea rax, off_FEEC0
mov [rdi], rax
add rdi, 10h
call _ZN6google8protobuf8internal12ExtensionSetC2EPNS0_5ArenaE; google::protobuf::internal::ExtensionSet::ExtensionSet(google::protobuf::Arena *)
mov [rbx+28h], r15
xorps xmm0, xmm0
movups xmmword ptr [rbx+30h], xmm0
mov dword ptr [rbx+40h], 0
pop rbx
pop r14
pop r15
retn
mov r15, rax
lea rax, _ZTVN6google8protobuf11MessageLiteE; `vtable for'google::protobuf::MessageLite
add rax, 10h
mov [rbx], rax
mov rdi, r14; this
call _ZN6google8protobuf8internal16InternalMetadataD2Ev; google::protobuf::internal::InternalMetadata::~InternalMetadata()
mov rdi, r15
call __Unwind_Resume
| long long google::protobuf::OneofOptions::OneofOptions(
google::protobuf::OneofOptions *this,
google::protobuf::Arena *a2,
int a3)
{
google::protobuf::Arena *v3; // rax
long long result; // rax
v3 = (google::protobuf::Arena *)((unsigned long long)a2 | 2);
if ( !a3 )
v3 = a2;
*((_QWORD *)this + 1) = v3;
*(_QWORD *)this = off_FEEC0;
result = google::protobuf::internal::ExtensionSet::ExtensionSet(
(google::protobuf::OneofOptions *)((char *)this + 16),
a2);
*((_QWORD *)this + 5) = a2;
*((_OWORD *)this + 3) = 0LL;
*((_DWORD *)this + 16) = 0;
return result;
}
| OneofOptions:
PUSH R15
PUSH R14
PUSH RBX
MOV R15,RSI
MOV RBX,RDI
LEA R14,[RDI + 0x8]
MOV RAX,RSI
OR RAX,0x2
TEST EDX,EDX
CMOVZ RAX,RSI
MOV qword ptr [RDI + 0x8],RAX
LEA RAX,[0x1feec0]
MOV qword ptr [RDI],RAX
ADD RDI,0x10
LAB_001533a4:
CALL 0x00193d62
LAB_001533a9:
MOV qword ptr [RBX + 0x28],R15
XORPS XMM0,XMM0
MOVUPS xmmword ptr [RBX + 0x30],XMM0
MOV dword ptr [RBX + 0x40],0x0
POP RBX
POP R14
POP R15
RET
|
/* google::protobuf::OneofOptions::OneofOptions(google::protobuf::Arena*, bool) */
void __thiscall
google::protobuf::OneofOptions::OneofOptions(OneofOptions *this,Arena *param_1,bool param_2)
{
Arena *pAVar1;
int3 in_register_00000011;
pAVar1 = (Arena *)((ulong)param_1 | 2);
if (CONCAT31(in_register_00000011,param_2) == 0) {
pAVar1 = param_1;
}
*(Arena **)(this + 8) = pAVar1;
*(int ***)this = &PTR__OneofOptions_001feec0;
/* try { // try from 001533a4 to 001533a8 has its CatchHandler @ 001533c1 */
internal::ExtensionSet::ExtensionSet((ExtensionSet *)(this + 0x10),param_1);
*(Arena **)(this + 0x28) = param_1;
*(int8 *)(this + 0x30) = 0;
*(int8 *)(this + 0x38) = 0;
*(int4 *)(this + 0x40) = 0;
return;
}
| |
42,655 | ha_federated::index_read(unsigned char*, unsigned char const*, unsigned int, ha_rkey_function) | eloqsql/storage/federated/ha_federated.cc | int ha_federated::index_read(uchar *buf, const uchar *key,
uint key_len, ha_rkey_function find_flag)
{
int rc;
DBUG_ENTER("ha_federated::index_read");
free_result();
rc= index_read_idx_with_result_set(buf, active_index, key,
key_len, find_flag,
&stored_result);
DBUG_RETURN(rc);
} | O3 | cpp | ha_federated::index_read(unsigned char*, unsigned char const*, unsigned int, ha_rkey_function):
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movl %r8d, %ebx
movl %ecx, %r14d
movq %rdx, %r15
movq %rsi, %r12
movq %rdi, %r13
callq 0x8030
movl 0x19c(%r13), %edx
leaq 0x548(%r13), %rax
movq %rax, (%rsp)
movq %r13, %rdi
movq %r12, %rsi
movq %r15, %rcx
movl %r14d, %r8d
movl %ebx, %r9d
callq 0x8320
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
nop
| _ZN12ha_federated10index_readEPhPKhj16ha_rkey_function:
push rbp
mov rbp, rsp
push r15
push r14
push r13
push r12
push rbx
push rax
mov ebx, r8d
mov r14d, ecx
mov r15, rdx
mov r12, rsi
mov r13, rdi
call __ZN12ha_federated11free_resultEv; ha_federated::free_result(void)
mov edx, [r13+19Ch]
lea rax, [r13+548h]
mov [rsp+30h+var_30], rax; __int64
mov rdi, r13; this
mov rsi, r12
mov rcx, r15
mov r8d, r14d
mov r9d, ebx
call __ZN12ha_federated30index_read_idx_with_result_setEPhjPKhj16ha_rkey_functionPP12st_mysql_res; ha_federated::index_read_idx_with_result_set(uchar *,uint,uchar const*,uint,ha_rkey_function,st_mysql_res **)
add rsp, 8
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
| long long ha_federated::index_read(ha_federated *this)
{
ha_federated::free_result(this);
return ha_federated::index_read_idx_with_result_set(this, (long long)this + 1352);
}
| index_read:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
PUSH RAX
MOV EBX,R8D
MOV R14D,ECX
MOV R15,RDX
MOV R12,RSI
MOV R13,RDI
CALL 0x00108030
MOV EDX,dword ptr [R13 + 0x19c]
LEA RAX,[R13 + 0x548]
MOV qword ptr [RSP],RAX
MOV RDI,R13
MOV RSI,R12
MOV RCX,R15
MOV R8D,R14D
MOV R9D,EBX
CALL 0x00108320
ADD RSP,0x8
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
|
/* ha_federated::index_read(unsigned char*, unsigned char const*, unsigned int, ha_rkey_function) */
void __thiscall
ha_federated::index_read
(ha_federated *this,int8 param_1,int8 param_2,int4 param_3,
int4 param_5)
{
free_result(this);
index_read_idx_with_result_set
(this,param_1,*(int4 *)(this + 0x19c),param_2,param_3,param_5,this + 0x548);
return;
}
| |
42,656 | stbi__create_png_alpha_expand8(unsigned char*, unsigned char*, unsigned int, int) | llama.cpp/examples/llava/../../common/stb_image.h | static void stbi__create_png_alpha_expand8(stbi_uc *dest, stbi_uc *src, stbi__uint32 x, int img_n)
{
int i;
// must process data backwards since we allow dest==src
if (img_n == 1) {
for (i=x-1; i >= 0; --i) {
dest[i*2+1] = 255;
dest[i*2+0] = src[i];
}
} else {
STBI_ASSERT(img_n == 3);
for (i=x-1; i >= 0; --i) {
dest[i*4+3] = 255;
dest[i*4+2] = src[i*3+2];
dest[i*4+1] = src[i*3+1];
dest[i*4+0] = src[i*3+0];
}
}
} | O3 | c | stbi__create_png_alpha_expand8(unsigned char*, unsigned char*, unsigned int, int):
decl %edx
cmpl $0x1, %ecx
jne 0x32172
testl %edx, %edx
js 0x321a5
movl %edx, %eax
movb $-0x1, 0x1(%rdi,%rax,2)
movb (%rsi,%rax), %cl
movb %cl, (%rdi,%rax,2)
addq $-0x1, %rax
jb 0x3215f
jmp 0x321a5
testl %edx, %edx
js 0x321a5
movl %edx, %eax
leaq (%rax,%rax,2), %rcx
addq %rsi, %rcx
addq $0x2, %rcx
movb $-0x1, 0x3(%rdi,%rax,4)
movb (%rcx), %dl
movb %dl, 0x2(%rdi,%rax,4)
movb -0x1(%rcx), %dl
movb %dl, 0x1(%rdi,%rax,4)
movb -0x2(%rcx), %dl
movb %dl, (%rdi,%rax,4)
addq $-0x3, %rcx
addq $-0x1, %rax
jb 0x32183
retq
| _ZL30stbi__create_png_alpha_expand8PhS_ji:
dec edx
cmp ecx, 1
jnz short loc_32172
test edx, edx
js short locret_321A5
mov eax, edx
loc_3215F:
mov byte ptr [rdi+rax*2+1], 0FFh
mov cl, [rsi+rax]
mov [rdi+rax*2], cl
add rax, 0FFFFFFFFFFFFFFFFh
jb short loc_3215F
jmp short locret_321A5
loc_32172:
test edx, edx
js short locret_321A5
mov eax, edx
lea rcx, [rax+rax*2]
add rcx, rsi
add rcx, 2
loc_32183:
mov byte ptr [rdi+rax*4+3], 0FFh
mov dl, [rcx]
mov [rdi+rax*4+2], dl
mov dl, [rcx-1]
mov [rdi+rax*4+1], dl
mov dl, [rcx-2]
mov [rdi+rax*4], dl
add rcx, 0FFFFFFFFFFFFFFFDh
add rax, 0FFFFFFFFFFFFFFFFh
jb short loc_32183
locret_321A5:
retn
| void stbi__create_png_alpha_expand8(unsigned __int8 *a1, unsigned __int8 *a2, int a3, int a4)
{
int v4; // edx
long long v5; // rax
bool v6; // cf
long long v7; // rax
unsigned __int8 *v8; // rcx
v4 = a3 - 1;
if ( a4 == 1 )
{
if ( v4 >= 0 )
{
v5 = (unsigned int)v4;
do
{
a1[2 * v5 + 1] = -1;
a1[2 * v5] = a2[v5];
v6 = v5-- != 0;
}
while ( v6 );
}
}
else if ( v4 >= 0 )
{
v7 = (unsigned int)v4;
v8 = &a2[3 * v4 + 2];
do
{
a1[4 * v7 + 3] = -1;
a1[4 * v7 + 2] = *v8;
a1[4 * v7 + 1] = *(v8 - 1);
a1[4 * v7] = *(v8 - 2);
v8 -= 3;
v6 = v7-- != 0;
}
while ( v6 );
}
}
| stbi__create_png_alpha_expand8:
DEC EDX
CMP ECX,0x1
JNZ 0x00132172
TEST EDX,EDX
JS 0x001321a5
MOV EAX,EDX
LAB_0013215f:
MOV byte ptr [RDI + RAX*0x2 + 0x1],0xff
MOV CL,byte ptr [RSI + RAX*0x1]
MOV byte ptr [RDI + RAX*0x2],CL
ADD RAX,-0x1
JC 0x0013215f
JMP 0x001321a5
LAB_00132172:
TEST EDX,EDX
JS 0x001321a5
MOV EAX,EDX
LEA RCX,[RAX + RAX*0x2]
ADD RCX,RSI
ADD RCX,0x2
LAB_00132183:
MOV byte ptr [RDI + RAX*0x4 + 0x3],0xff
MOV DL,byte ptr [RCX]
MOV byte ptr [RDI + RAX*0x4 + 0x2],DL
MOV DL,byte ptr [RCX + -0x1]
MOV byte ptr [RDI + RAX*0x4 + 0x1],DL
MOV DL,byte ptr [RCX + -0x2]
MOV byte ptr [RDI + RAX*0x4],DL
ADD RCX,-0x3
ADD RAX,-0x1
JC 0x00132183
LAB_001321a5:
RET
|
/* stbi__create_png_alpha_expand8(unsigned char*, unsigned char*, unsigned int, int) */
void stbi__create_png_alpha_expand8(uchar *param_1,uchar *param_2,uint param_3,int param_4)
{
ulong uVar1;
uchar *puVar2;
uint uVar3;
bool bVar4;
uVar3 = param_3 - 1;
if (param_4 == 1) {
if (-1 < (int)uVar3) {
uVar1 = (ulong)uVar3;
do {
param_1[uVar1 * 2 + 1] = 0xff;
param_1[uVar1 * 2] = param_2[uVar1];
bVar4 = uVar1 != 0;
uVar1 = uVar1 - 1;
} while (bVar4);
}
}
else if (-1 < (int)uVar3) {
uVar1 = (ulong)uVar3;
puVar2 = param_2 + uVar1 * 3 + 2;
do {
param_1[uVar1 * 4 + 3] = 0xff;
param_1[uVar1 * 4 + 2] = *puVar2;
param_1[uVar1 * 4 + 1] = puVar2[-1];
param_1[uVar1 * 4] = puVar2[-2];
puVar2 = puVar2 + -3;
bVar4 = uVar1 != 0;
uVar1 = uVar1 - 1;
} while (bVar4);
}
return;
}
| |
42,657 | resize_partitioned_key_cache | eloqsql/mysys/mf_keycache.c | static
int resize_partitioned_key_cache(PARTITIONED_KEY_CACHE_CB *keycache,
uint key_cache_block_size,
size_t use_mem, uint division_limit,
uint age_threshold,
uint changed_blocks_hash_size)
{
uint i;
uint partitions= keycache->partitions;
my_bool cleanup= use_mem == 0;
int blocks= -1;
int err= 0;
DBUG_ENTER("partitioned_resize_key_cache");
if (cleanup)
{
end_partitioned_key_cache(keycache, 0);
DBUG_RETURN(-1);
}
for (i= 0; i < partitions; i++)
{
err|= prepare_resize_simple_key_cache(keycache->partition_array[i], 1);
}
if (!err)
blocks= init_partitioned_key_cache(keycache, key_cache_block_size,
use_mem, division_limit, age_threshold,
changed_blocks_hash_size);
if (blocks > 0)
{
for (i= 0; i < partitions; i++)
{
keycache_pthread_mutex_lock(&keycache->partition_array[i]->cache_lock);
finish_resize_simple_key_cache(keycache->partition_array[i]);
}
}
DBUG_RETURN(blocks);
} | O3 | c | resize_partitioned_key_cache:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rdi, %rbx
movl 0x1c(%rdi), %r13d
testq %rdx, %rdx
je 0x9d83c
movq %rdx, %r15
testq %r13, %r13
je 0x9d7ce
movl %esi, -0x2c(%rbp)
movl %ecx, -0x30(%rbp)
movl %r8d, -0x34(%rbp)
movl %r9d, -0x38(%rbp)
xorl %r14d, %r14d
xorl %r12d, %r12d
movq 0x8(%rbx), %rax
movq (%rax,%r14,8), %rdi
movl $0x1, %esi
callq 0x9cb3e
orl %eax, %r12d
incq %r14
cmpq %r14, %r13
jne 0x9d794
movl $0xffffffff, %r14d # imm = 0xFFFFFFFF
testl %r12d, %r12d
movl -0x38(%rbp), %r9d
movl -0x34(%rbp), %r8d
movl -0x30(%rbp), %ecx
movl -0x2c(%rbp), %esi
jne 0x9d861
movq %rbx, %rdi
movq %r15, %rdx
callq 0x9d504
movl %eax, %r14d
testl %eax, %eax
setg %al
testl %r13d, %r13d
setne %cl
andb %al, %cl
cmpb $0x1, %cl
jne 0x9d861
xorl %r12d, %r12d
leaq 0x40bdf(%rip), %r15 # 0xde3d7
movq 0x8(%rbx), %rax
movq (%rax,%r12,8), %rax
leaq 0xc0(%rax), %rdi
cmpq $0x0, 0x100(%rax)
jne 0x9d82d
callq 0x291d0
movq 0x8(%rbx), %rax
movq (%rax,%r12,8), %rdi
callq 0x9cd22
incq %r12
cmpq %r12, %r13
jne 0x9d7f8
jmp 0x9d861
movq %r15, %rsi
movl $0x14a9, %edx # imm = 0x14A9
callq 0x2ee0b
jmp 0x9d816
movl $0xffffffff, %r14d # imm = 0xFFFFFFFF
testq %r13, %r13
je 0x9d861
xorl %r15d, %r15d
movq 0x8(%rbx), %rax
movq (%rax,%r15,8), %rdi
xorl %esi, %esi
callq 0x9ca2a
incq %r15
cmpq %r15, %r13
jne 0x9d84a
movl %r14d, %eax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
| resize_partitioned_key_cache:
push rbp
mov rbp, rsp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 18h
mov rbx, rdi
mov r13d, [rdi+1Ch]
test rdx, rdx
jz loc_9D83C
mov r15, rdx
test r13, r13
jz short loc_9D7CE
mov [rbp+var_2C], esi
mov [rbp+var_30], ecx
mov [rbp+var_34], r8d
mov [rbp+var_38], r9d
xor r14d, r14d
xor r12d, r12d
loc_9D794:
mov rax, [rbx+8]
mov rdi, [rax+r14*8]
mov esi, 1
call prepare_resize_simple_key_cache
or r12d, eax
inc r14
cmp r13, r14
jnz short loc_9D794
mov r14d, 0FFFFFFFFh
test r12d, r12d
mov r9d, [rbp+var_38]
mov r8d, [rbp+var_34]
mov ecx, [rbp+var_30]
mov esi, [rbp+var_2C]
jnz loc_9D861
loc_9D7CE:
mov rdi, rbx
mov rdx, r15
call init_partitioned_key_cache
mov r14d, eax
test eax, eax
setnle al
test r13d, r13d
setnz cl
and cl, al
cmp cl, 1
jnz short loc_9D861
xor r12d, r12d
lea r15, aWorkspaceLlm4b_45; "/workspace/llm4binary/github2025/eloqsq"...
loc_9D7F8:
mov rax, [rbx+8]
mov rax, [rax+r12*8]
lea rdi, [rax+0C0h]
cmp qword ptr [rax+100h], 0
jnz short loc_9D82D
call _pthread_mutex_lock
loc_9D816:
mov rax, [rbx+8]
mov rdi, [rax+r12*8]
call finish_resize_simple_key_cache
inc r12
cmp r13, r12
jnz short loc_9D7F8
jmp short loc_9D861
loc_9D82D:
mov rsi, r15
mov edx, 14A9h
call psi_mutex_lock
jmp short loc_9D816
loc_9D83C:
mov r14d, 0FFFFFFFFh
test r13, r13
jz short loc_9D861
xor r15d, r15d
loc_9D84A:
mov rax, [rbx+8]
mov rdi, [rax+r15*8]
xor esi, esi
call end_simple_key_cache
inc r15
cmp r13, r15
jnz short loc_9D84A
loc_9D861:
mov eax, r14d
add rsp, 18h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
| long long resize_partitioned_key_cache(
long long a1,
unsigned int a2,
unsigned long long a3,
unsigned int a4,
unsigned int a5,
unsigned int a6)
{
long long v7; // r13
long long v9; // r14
int v10; // r12d
int inited; // r14d
long long v12; // r12
long long v13; // rax
long long v14; // rdi
long long v15; // r15
unsigned int v17; // [rsp+8h] [rbp-38h]
unsigned int v18; // [rsp+Ch] [rbp-34h]
unsigned int v19; // [rsp+10h] [rbp-30h]
v7 = *(unsigned int *)(a1 + 28);
if ( a3 )
{
if ( !*(_DWORD *)(a1 + 28) )
goto LABEL_19;
v19 = a4;
v18 = a5;
v17 = a6;
v9 = 0LL;
v10 = 0;
do
v10 |= prepare_resize_simple_key_cache(*(_QWORD *)(*(_QWORD *)(a1 + 8) + 8 * v9++), 1);
while ( v7 != v9 );
inited = -1;
a6 = v17;
a5 = v18;
a4 = v19;
if ( !v10 )
{
LABEL_19:
inited = init_partitioned_key_cache((char *)a1, a2, a3, a4, a5, a6);
if ( inited > 0 && (_DWORD)v7 != 0 )
{
v12 = 0LL;
do
{
v13 = *(_QWORD *)(*(_QWORD *)(a1 + 8) + 8 * v12);
v14 = v13 + 192;
if ( *(_QWORD *)(v13 + 256) )
psi_mutex_lock(v14, (long long)"/workspace/llm4binary/github2025/eloqsql/mysys/mf_keycache.c", 0x14A9u);
else
pthread_mutex_lock(v14);
finish_resize_simple_key_cache(*(_QWORD *)(*(_QWORD *)(a1 + 8) + 8 * v12++));
}
while ( v7 != v12 );
}
}
}
else
{
inited = -1;
if ( *(_DWORD *)(a1 + 28) )
{
v15 = 0LL;
do
end_simple_key_cache(*(_QWORD *)(*(_QWORD *)(a1 + 8) + 8 * v15++), 0);
while ( v7 != v15 );
}
}
return (unsigned int)inited;
}
| resize_partitioned_key_cache:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x18
MOV RBX,RDI
MOV R13D,dword ptr [RDI + 0x1c]
TEST RDX,RDX
JZ 0x0019d83c
MOV R15,RDX
TEST R13,R13
JZ 0x0019d7ce
MOV dword ptr [RBP + -0x2c],ESI
MOV dword ptr [RBP + -0x30],ECX
MOV dword ptr [RBP + -0x34],R8D
MOV dword ptr [RBP + -0x38],R9D
XOR R14D,R14D
XOR R12D,R12D
LAB_0019d794:
MOV RAX,qword ptr [RBX + 0x8]
MOV RDI,qword ptr [RAX + R14*0x8]
MOV ESI,0x1
CALL 0x0019cb3e
OR R12D,EAX
INC R14
CMP R13,R14
JNZ 0x0019d794
MOV R14D,0xffffffff
TEST R12D,R12D
MOV R9D,dword ptr [RBP + -0x38]
MOV R8D,dword ptr [RBP + -0x34]
MOV ECX,dword ptr [RBP + -0x30]
MOV ESI,dword ptr [RBP + -0x2c]
JNZ 0x0019d861
LAB_0019d7ce:
MOV RDI,RBX
MOV RDX,R15
CALL 0x0019d504
MOV R14D,EAX
TEST EAX,EAX
SETG AL
TEST R13D,R13D
SETNZ CL
AND CL,AL
CMP CL,0x1
JNZ 0x0019d861
XOR R12D,R12D
LEA R15,[0x1de3d7]
LAB_0019d7f8:
MOV RAX,qword ptr [RBX + 0x8]
MOV RAX,qword ptr [RAX + R12*0x8]
LEA RDI,[RAX + 0xc0]
CMP qword ptr [RAX + 0x100],0x0
JNZ 0x0019d82d
CALL 0x001291d0
LAB_0019d816:
MOV RAX,qword ptr [RBX + 0x8]
MOV RDI,qword ptr [RAX + R12*0x8]
CALL 0x0019cd22
INC R12
CMP R13,R12
JNZ 0x0019d7f8
JMP 0x0019d861
LAB_0019d82d:
MOV RSI,R15
MOV EDX,0x14a9
CALL 0x0012ee0b
JMP 0x0019d816
LAB_0019d83c:
MOV R14D,0xffffffff
TEST R13,R13
JZ 0x0019d861
XOR R15D,R15D
LAB_0019d84a:
MOV RAX,qword ptr [RBX + 0x8]
MOV RDI,qword ptr [RAX + R15*0x8]
XOR ESI,ESI
CALL 0x0019ca2a
INC R15
CMP R13,R15
JNZ 0x0019d84a
LAB_0019d861:
MOV EAX,R14D
ADD RSP,0x18
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
|
int resize_partitioned_key_cache
(long param_1,ulong param_2,long param_3,ulong param_4,ulong param_5,ulong param_6)
{
pthread_mutex_t *__mutex;
uint uVar1;
long lVar2;
uint uVar3;
int iVar4;
uint uVar5;
ulong uVar6;
ulong uVar7;
uVar1 = *(uint *)(param_1 + 0x1c);
uVar6 = (ulong)uVar1;
if (param_3 == 0) {
iVar4 = -1;
if (uVar6 != 0) {
uVar7 = 0;
do {
end_simple_key_cache(*(int8 *)(*(long *)(param_1 + 8) + uVar7 * 8),0);
uVar7 = uVar7 + 1;
} while (uVar6 != uVar7);
}
}
else {
if (uVar6 != 0) {
uVar7 = 0;
uVar5 = 0;
do {
uVar3 = prepare_resize_simple_key_cache
(*(int8 *)(*(long *)(param_1 + 8) + uVar7 * 8),1);
uVar5 = uVar5 | uVar3;
uVar7 = uVar7 + 1;
} while (uVar6 != uVar7);
param_6 = param_6 & 0xffffffff;
param_5 = param_5 & 0xffffffff;
param_4 = param_4 & 0xffffffff;
param_2 = param_2 & 0xffffffff;
if (uVar5 != 0) {
return -1;
}
}
iVar4 = init_partitioned_key_cache(param_1,param_2,param_3,param_4,param_5,param_6);
if (uVar1 != 0 && 0 < iVar4) {
uVar7 = 0;
do {
lVar2 = *(long *)(*(long *)(param_1 + 8) + uVar7 * 8);
__mutex = (pthread_mutex_t *)(lVar2 + 0xc0);
if (*(long *)(lVar2 + 0x100) == 0) {
pthread_mutex_lock(__mutex);
}
else {
psi_mutex_lock(__mutex,"/workspace/llm4binary/github2025/eloqsql/mysys/mf_keycache.c",
0x14a9);
}
finish_resize_simple_key_cache(*(int8 *)(*(long *)(param_1 + 8) + uVar7 * 8));
uVar7 = uVar7 + 1;
} while (uVar6 != uVar7);
}
}
return iVar4;
}
| |
42,658 | Dimension::Dimension(char const*, float) | untodesu[P]voxelius/game/shared/dimension.cc | Dimension::Dimension(const char *name, float gravity)
{
m_name = name;
m_gravity = gravity;
} | O3 | cpp | Dimension::Dimension(char const*, float):
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movss %xmm0, 0x4(%rsp)
movq %rsi, %r12
movq %rdi, %r15
leaq 0xc8773(%rip), %rax # 0x103330
movq %rax, (%rdi)
addq $0x8, %rdi
leaq 0x2(%rsp), %rdx
movq %rdi, 0x10(%rsp)
xorl %esi, %esi
callq 0x3b588
leaq 0x158(%r15), %rbx
leaq 0x3(%rsp), %rdx
movq %rbx, %rdi
xorl %esi, %esi
callq 0x3b588
movq %rbx, 0x8(%rsp)
leaq 0x2a8(%r15), %r13
leaq 0x2b8(%r15), %r14
movq %r14, 0x2a8(%r15)
movq $0x0, 0x2b0(%r15)
movb $0x0, 0x2b8(%r15)
leaq 0x2c8(%r15), %rbp
xorps %xmm0, %xmm0
movups %xmm0, 0x2c8(%r15)
movss 0x7bcb6(%rip), %xmm0 # 0xb68e8
movups %xmm0, 0x2dc(%r15)
movl $0x2, %esi
movq %rbp, %rdi
callq 0x3bcd4
movq 0x2b0(%r15), %rbx
movq %r12, %rdi
callq 0x16280
movq %r13, %rdi
xorl %esi, %esi
movq %rbx, %rdx
movq %r12, %rcx
movq %rax, %r8
callq 0x16ab0
movss 0x4(%rsp), %xmm0
movss %xmm0, 0x2f8(%r15)
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %r15
movq %rbp, %rdi
callq 0x3b332
jmp 0x3ac97
movq %rax, %r15
movq (%r13), %rdi
cmpq %r14, %rdi
je 0x3acab
movq (%r14), %rsi
incq %rsi
callq 0x166c0
movq 0x8(%rsp), %rdi
callq 0x259f6
jmp 0x3acba
movq %rax, %r15
movq 0x10(%rsp), %rdi
callq 0x259f6
movq %r15, %rdi
callq 0x16c90
| _ZN9DimensionC2EPKcf:
push rbp; Alternative name is 'Dimension::Dimension(char const*, float)'
push r15
push r14
push r13
push r12
push rbx
sub rsp, 18h
movss [rsp+48h+var_44], xmm0
mov r12, rsi
mov r15, rdi
lea rax, off_103330
mov [rdi], rax
add rdi, 8
lea rdx, [rsp+48h+var_46]
mov [rsp+48h+var_38], rdi
xor esi, esi
call _ZN4entt14basic_registryINS_6entityESaIS1_EEC2EmRKS2_; entt::basic_registry<entt::entity,std::allocator<entt::entity>>::basic_registry(ulong,std::allocator<entt::entity> const&)
lea rbx, [r15+158h]
lea rdx, [rsp+48h+var_45]
mov rdi, rbx
xor esi, esi
call _ZN4entt14basic_registryINS_6entityESaIS1_EEC2EmRKS2_; entt::basic_registry<entt::entity,std::allocator<entt::entity>>::basic_registry(ulong,std::allocator<entt::entity> const&)
mov [rsp+48h+var_40], rbx
lea r13, [r15+2A8h]
lea r14, [r15+2B8h]
mov [r15+2A8h], r14
mov qword ptr [r15+2B0h], 0
mov byte ptr [r15+2B8h], 0
lea rbp, [r15+2C8h]
xorps xmm0, xmm0
movups xmmword ptr [r15+2C8h], xmm0
movss xmm0, cs:dword_B68E8
movups xmmword ptr [r15+2DCh], xmm0
mov esi, 2
mov rdi, rbp
call _ZN7emhash87HashMapIN3glm3vecILi3EiLNS1_9qualifierE0EEEP5ChunkSt4hashIS4_ESt8equal_toIS4_EE6rehashEm; emhash8::HashMap<glm::vec<3,int,(glm::qualifier)0>,Chunk *,std::hash<glm::vec<3,int,(glm::qualifier)0>>,std::equal_to<glm::vec<3,int,(glm::qualifier)0>>>::rehash(ulong)
mov rbx, [r15+2B0h]
mov rdi, r12
call _strlen
mov rdi, r13
xor esi, esi
mov rdx, rbx
mov rcx, r12
mov r8, rax
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE10_M_replaceEmmPKcm; std::string::_M_replace(ulong,ulong,char const*,ulong)
movss xmm0, [rsp+48h+var_44]
movss dword ptr [r15+2F8h], xmm0
add rsp, 18h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
mov r15, rax
mov rdi, rbp
call _ZN7emhash87HashMapIN3glm3vecILi3EiLNS1_9qualifierE0EEEP5ChunkSt4hashIS4_ESt8equal_toIS4_EED2Ev; emhash8::HashMap<glm::vec<3,int,(glm::qualifier)0>,Chunk *,std::hash<glm::vec<3,int,(glm::qualifier)0>>,std::equal_to<glm::vec<3,int,(glm::qualifier)0>>>::~HashMap()
jmp short loc_3AC97
mov r15, rax
loc_3AC97:
mov rdi, [r13+0]; void *
cmp rdi, r14
jz short loc_3ACAB
mov rsi, [r14]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_3ACAB:
mov rdi, [rsp+arg_0]
call _ZN4entt14basic_registryINS_6entityESaIS1_EED2Ev; entt::basic_registry<entt::entity,std::allocator<entt::entity>>::~basic_registry()
jmp short loc_3ACBA
mov r15, rax
loc_3ACBA:
mov rdi, [rsp+arg_8]
call _ZN4entt14basic_registryINS_6entityESaIS1_EED2Ev; entt::basic_registry<entt::entity,std::allocator<entt::entity>>::~basic_registry()
mov rdi, r15
call __Unwind_Resume
| void Dimension::Dimension(Dimension *this, const char *a2, float a3)
{
long long v3; // rbx
long long v4; // rax
long long v5; // r9
char v6; // [rsp+2h] [rbp-46h] BYREF
char v7; // [rsp+3h] [rbp-45h] BYREF
float v8; // [rsp+4h] [rbp-44h]
char *v9; // [rsp+8h] [rbp-40h]
char *v10; // [rsp+10h] [rbp-38h]
v8 = a3;
*(_QWORD *)this = off_103330;
v10 = (char *)this + 8;
entt::basic_registry<entt::entity,std::allocator<entt::entity>>::basic_registry((char *)this + 8, 0LL, &v6);
entt::basic_registry<entt::entity,std::allocator<entt::entity>>::basic_registry((char *)this + 344, 0LL, &v7);
v9 = (char *)this + 344;
*((_QWORD *)this + 85) = (char *)this + 696;
*((_QWORD *)this + 86) = 0LL;
*((_BYTE *)this + 696) = 0;
*(_OWORD *)((char *)this + 712) = 0LL;
*(_OWORD *)((char *)this + 732) = 0xA000000u;
emhash8::HashMap<glm::vec<3,int,(glm::qualifier)0>,Chunk *,std::hash<glm::vec<3,int,(glm::qualifier)0>>,std::equal_to<glm::vec<3,int,(glm::qualifier)0>>>::rehash(
(char *)this + 712,
2LL);
v3 = *((_QWORD *)this + 86);
v4 = strlen(a2);
std::string::_M_replace((char *)this + 680, 0LL, v3, a2, v4, v5);
*((float *)this + 190) = v8;
}
| Dimension:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x18
MOVSS dword ptr [RSP + 0x4],XMM0
MOV R12,RSI
MOV R15,RDI
LEA RAX,[0x203330]
MOV qword ptr [RDI],RAX
ADD RDI,0x8
LEA RDX,[RSP + 0x2]
MOV qword ptr [RSP + 0x10],RDI
XOR ESI,ESI
CALL 0x0013b588
LEA RBX,[R15 + 0x158]
LAB_0013abdc:
LEA RDX,[RSP + 0x3]
MOV RDI,RBX
XOR ESI,ESI
CALL 0x0013b588
MOV qword ptr [RSP + 0x8],RBX
LEA R13,[R15 + 0x2a8]
LEA R14,[R15 + 0x2b8]
MOV qword ptr [R15 + 0x2a8],R14
MOV qword ptr [R15 + 0x2b0],0x0
MOV byte ptr [R15 + 0x2b8],0x0
LEA RBP,[R15 + 0x2c8]
XORPS XMM0,XMM0
MOVUPS xmmword ptr [R15 + 0x2c8],XMM0
MOVSS XMM0,dword ptr [0x001b68e8]
MOVUPS xmmword ptr [R15 + 0x2dc],XMM0
LAB_0013ac3a:
MOV ESI,0x2
MOV RDI,RBP
CALL 0x0013bcd4
MOV RBX,qword ptr [R15 + 0x2b0]
MOV RDI,R12
CALL 0x00116280
LAB_0013ac56:
MOV RDI,R13
XOR ESI,ESI
MOV RDX,RBX
MOV RCX,R12
MOV R8,RAX
CALL 0x00116ab0
LAB_0013ac69:
MOVSS XMM0,dword ptr [RSP + 0x4]
MOVSS dword ptr [R15 + 0x2f8],XMM0
ADD RSP,0x18
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
|
/* Dimension::Dimension(char const*, float) */
void __thiscall Dimension::Dimension(Dimension *this,char *param_1,float param_2)
{
char *pcVar1;
*(int ***)this = &PTR__Dimension_00203330;
entt::basic_registry<entt::entity,std::allocator<entt::entity>>::basic_registry
((ulong)(this + 8),(allocator *)0x0);
/* try { // try from 0013abdc to 0013abea has its CatchHandler @ 0013acb7 */
entt::basic_registry<entt::entity,std::allocator<entt::entity>>::basic_registry
((ulong)(this + 0x158),(allocator *)0x0);
*(Dimension **)(this + 0x2a8) = this + 0x2b8;
*(int8 *)(this + 0x2b0) = 0;
this[0x2b8] = (Dimension)0x0;
*(int8 *)(this + 0x2c8) = 0;
*(int8 *)(this + 0x2d0) = 0;
*(int1 (*) [16])(this + 0x2dc) = ZEXT416(DAT_001b68e8);
/* try { // try from 0013ac3a to 0013ac46 has its CatchHandler @ 0013ac94 */
emhash8::
HashMap<glm::vec<3,int,(glm::qualifier)0>,Chunk*,std::hash<glm::vec<3,int,(glm::qualifier)0>>,std::equal_to<glm::vec<3,int,(glm::qualifier)0>>>
::rehash((HashMap<glm::vec<3,int,(glm::qualifier)0>,Chunk*,std::hash<glm::vec<3,int,(glm::qualifier)0>>,std::equal_to<glm::vec<3,int,(glm::qualifier)0>>>
*)(this + 0x2c8),2);
pcVar1 = *(char **)(this + 0x2b0);
strlen(param_1);
/* try { // try from 0013ac56 to 0013ac68 has its CatchHandler @ 0013ac87 */
std::__cxx11::string::_M_replace((ulong)(this + 0x2a8),0,pcVar1,(ulong)param_1);
*(float *)(this + 0x2f8) = param_2;
return;
}
| |
42,659 | parsed_skip | eloqsql/build_O0/extra/pcre2/src/pcre2/src/pcre2_compile.c | static uint32_t *
parsed_skip(uint32_t *pptr, uint32_t skiptype)
{
uint32_t nestlevel = 0;
for (;; pptr++)
{
uint32_t meta = META_CODE(*pptr);
switch(meta)
{
default: /* Just skip over most items */
if (meta < META_END) continue; /* Literal */
break;
/* This should never occur. */
case META_END:
return NULL;
/* The data for these items is variable in length. */
case META_BACKREF: /* Offset is present only if group >= 10 */
if (META_DATA(*pptr) >= 10) pptr += SIZEOFFSET;
break;
case META_ESCAPE: /* A few escapes are followed by data items. */
switch (META_DATA(*pptr))
{
case ESC_P:
case ESC_p:
pptr += 1;
break;
case ESC_g:
case ESC_k:
pptr += 1 + SIZEOFFSET;
break;
}
break;
case META_MARK: /* Add the length of the name. */
case META_COMMIT_ARG:
case META_PRUNE_ARG:
case META_SKIP_ARG:
case META_THEN_ARG:
pptr += pptr[1];
break;
/* These are the "active" items in this loop. */
case META_CLASS_END:
if (skiptype == PSKIP_CLASS) return pptr;
break;
case META_ATOMIC:
case META_CAPTURE:
case META_COND_ASSERT:
case META_COND_DEFINE:
case META_COND_NAME:
case META_COND_NUMBER:
case META_COND_RNAME:
case META_COND_RNUMBER:
case META_COND_VERSION:
case META_LOOKAHEAD:
case META_LOOKAHEADNOT:
case META_LOOKAHEAD_NA:
case META_LOOKBEHIND:
case META_LOOKBEHINDNOT:
case META_LOOKBEHIND_NA:
case META_NOCAPTURE:
case META_SCRIPT_RUN:
nestlevel++;
break;
case META_ALT:
if (nestlevel == 0 && skiptype == PSKIP_ALT) return pptr;
break;
case META_KET:
if (nestlevel == 0) return pptr;
nestlevel--;
break;
}
/* The extra data item length for each meta is in a table. */
meta = (meta >> 16) & 0x7fff;
if (meta >= sizeof(meta_extra_lengths)) return NULL;
pptr += meta_extra_lengths[meta];
}
/* Control never reaches here */
return pptr;
} | O0 | c | parsed_skip:
pushq %rbp
movq %rsp, %rbp
movq %rdi, -0x10(%rbp)
movl %esi, -0x14(%rbp)
movl $0x0, -0x18(%rbp)
movq -0x10(%rbp), %rax
movzwl 0x2(%rax), %eax
shll $0x10, %eax
movl %eax, -0x1c(%rbp)
movl -0x1c(%rbp), %eax
movl %eax, -0x20(%rbp)
negl %eax
jo 0xac5d43
jmp 0xac5b80
movl -0x20(%rbp), %eax
subl $0x80010000, %eax # imm = 0x80010000
je 0xac5de8
jmp 0xac5b90
movl -0x20(%rbp), %eax
subl $0x80020000, %eax # imm = 0x80020000
je 0xac5ddd
jmp 0xac5ba0
movl -0x20(%rbp), %eax
subl $0x80030000, %eax # imm = 0x80030000
je 0xac5d50
jmp 0xac5bb0
movl -0x20(%rbp), %eax
subl $0x80080000, %eax # imm = 0x80080000
je 0xac5ddd
jmp 0xac5bc0
movl -0x20(%rbp), %eax
subl $0x800d0000, %eax # imm = 0x800D0000
je 0xac5dc8
jmp 0xac5bd0
movl -0x20(%rbp), %eax
subl $0x800f0000, %eax # imm = 0x800F0000
je 0xac5ddd
jmp 0xac5be0
movl -0x20(%rbp), %eax
subl $0x80100000, %eax # imm = 0x80100000
je 0xac5ddd
jmp 0xac5bf0
movl -0x20(%rbp), %eax
subl $0x80110000, %eax # imm = 0x80110000
je 0xac5ddd
jmp 0xac5c00
movl -0x20(%rbp), %eax
subl $0x80120000, %eax # imm = 0x80120000
je 0xac5ddd
jmp 0xac5c10
movl -0x20(%rbp), %eax
subl $0x80130000, %eax # imm = 0x80130000
je 0xac5ddd
jmp 0xac5c20
movl -0x20(%rbp), %eax
subl $0x80140000, %eax # imm = 0x80140000
je 0xac5ddd
jmp 0xac5c30
movl -0x20(%rbp), %eax
subl $0x80150000, %eax # imm = 0x80150000
je 0xac5ddd
jmp 0xac5c40
movl -0x20(%rbp), %eax
subl $0x80180000, %eax # imm = 0x80180000
je 0xac5d71
jmp 0xac5c50
movl -0x20(%rbp), %eax
subl $0x80190000, %eax # imm = 0x80190000
je 0xac5e00
jmp 0xac5c60
movl -0x20(%rbp), %eax
subl $0x801a0000, %eax # imm = 0x801A0000
je 0xac5ddd
jmp 0xac5c70
movl -0x20(%rbp), %eax
subl $0x80220000, %eax # imm = 0x80220000
je 0xac5ddd
jmp 0xac5c80
movl -0x20(%rbp), %eax
subl $0x80230000, %eax # imm = 0x80230000
je 0xac5ddd
jmp 0xac5c90
movl -0x20(%rbp), %eax
subl $0x80240000, %eax # imm = 0x80240000
je 0xac5ddd
jmp 0xac5ca0
movl -0x20(%rbp), %eax
subl $0x80250000, %eax # imm = 0x80250000
je 0xac5ddd
jmp 0xac5cb0
movl -0x20(%rbp), %eax
subl $0x80260000, %eax # imm = 0x80260000
je 0xac5ddd
jmp 0xac5cc0
movl -0x20(%rbp), %eax
subl $0x80270000, %eax # imm = 0x80270000
je 0xac5ddd
jmp 0xac5cd0
movl -0x20(%rbp), %eax
subl $0x80280000, %eax # imm = 0x80280000
je 0xac5ddd
jmp 0xac5ce0
movl -0x20(%rbp), %eax
subl $0x80290000, %eax # imm = 0x80290000
je 0xac5dae
jmp 0xac5cf0
movl -0x20(%rbp), %eax
subl $0x802d0000, %eax # imm = 0x802D0000
je 0xac5dae
jmp 0xac5d00
movl -0x20(%rbp), %eax
subl $0x802f0000, %eax # imm = 0x802F0000
je 0xac5dae
jmp 0xac5d10
movl -0x20(%rbp), %eax
subl $0x80310000, %eax # imm = 0x80310000
je 0xac5dae
jmp 0xac5d20
movl -0x20(%rbp), %eax
subl $0x80330000, %eax # imm = 0x80330000
je 0xac5dae
jmp 0xac5d30
cmpl $0x80000000, -0x1c(%rbp) # imm = 0x80000000
jae 0xac5d3e
jmp 0xac5e5c
jmp 0xac5e19
movq $0x0, -0x8(%rbp)
jmp 0xac5e6d
movq -0x10(%rbp), %rax
movl (%rax), %eax
andl $0xffff, %eax # imm = 0xFFFF
cmpl $0xa, %eax
jb 0xac5d6c
movq -0x10(%rbp), %rax
addq $0x8, %rax
movq %rax, -0x10(%rbp)
jmp 0xac5e19
movq -0x10(%rbp), %rax
movzwl (%rax), %eax
movl %eax, -0x24(%rbp)
addl $-0xf, %eax
subl $0x2, %eax
jb 0xac5d92
jmp 0xac5d85
movl -0x24(%rbp), %eax
addl $-0x1b, %eax
subl $0x2, %eax
jb 0xac5da0
jmp 0xac5dac
movq -0x10(%rbp), %rax
addq $0x4, %rax
movq %rax, -0x10(%rbp)
jmp 0xac5dac
movq -0x10(%rbp), %rax
addq $0xc, %rax
movq %rax, -0x10(%rbp)
jmp 0xac5e19
movq -0x10(%rbp), %rax
movl 0x4(%rax), %ecx
movq -0x10(%rbp), %rax
movl %ecx, %ecx
shlq $0x2, %rcx
addq %rcx, %rax
movq %rax, -0x10(%rbp)
jmp 0xac5e19
cmpl $0x1, -0x14(%rbp)
jne 0xac5ddb
movq -0x10(%rbp), %rax
movq %rax, -0x8(%rbp)
jmp 0xac5e6d
jmp 0xac5e19
movl -0x18(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x18(%rbp)
jmp 0xac5e19
cmpl $0x0, -0x18(%rbp)
jne 0xac5dfe
cmpl $0x0, -0x14(%rbp)
jne 0xac5dfe
movq -0x10(%rbp), %rax
movq %rax, -0x8(%rbp)
jmp 0xac5e6d
jmp 0xac5e19
cmpl $0x0, -0x18(%rbp)
jne 0xac5e10
movq -0x10(%rbp), %rax
movq %rax, -0x8(%rbp)
jmp 0xac5e6d
movl -0x18(%rbp), %eax
addl $-0x1, %eax
movl %eax, -0x18(%rbp)
movl -0x1c(%rbp), %eax
shrl $0x10, %eax
andl $0x7fff, %eax # imm = 0x7FFF
movl %eax, -0x1c(%rbp)
movl -0x1c(%rbp), %eax
cmpq $0x40, %rax
jb 0xac5e3a
movq $0x0, -0x8(%rbp)
jmp 0xac5e6d
movl -0x1c(%rbp), %eax
movl %eax, %ecx
leaq 0x93460a(%rip), %rax # 0x13fa450
movzbl (%rax,%rcx), %ecx
movq -0x10(%rbp), %rax
movslq %ecx, %rcx
shlq $0x2, %rcx
addq %rcx, %rax
movq %rax, -0x10(%rbp)
movq -0x10(%rbp), %rax
addq $0x4, %rax
movq %rax, -0x10(%rbp)
jmp 0xac5b62
movq -0x8(%rbp), %rax
popq %rbp
retq
nopw %cs:(%rax,%rax)
| parsed_skip:
push rbp
mov rbp, rsp
mov [rbp+var_10], rdi
mov [rbp+var_14], esi
mov [rbp+var_18], 0
loc_AC5B62:
mov rax, [rbp+var_10]
movzx eax, word ptr [rax+2]
shl eax, 10h
mov [rbp+var_1C], eax
mov eax, [rbp+var_1C]
mov [rbp+var_20], eax
neg eax
jo loc_AC5D43
jmp short $+2
loc_AC5B80:
mov eax, [rbp+var_20]
sub eax, 80010000h
jz loc_AC5DE8
jmp short $+2
loc_AC5B90:
mov eax, [rbp+var_20]
sub eax, 80020000h
jz loc_AC5DDD
jmp short $+2
loc_AC5BA0:
mov eax, [rbp+var_20]
sub eax, 80030000h
jz loc_AC5D50
jmp short $+2
loc_AC5BB0:
mov eax, [rbp+var_20]
sub eax, 80080000h
jz loc_AC5DDD
jmp short $+2
loc_AC5BC0:
mov eax, [rbp+var_20]
sub eax, 800D0000h
jz loc_AC5DC8
jmp short $+2
loc_AC5BD0:
mov eax, [rbp+var_20]
sub eax, 800F0000h
jz loc_AC5DDD
jmp short $+2
loc_AC5BE0:
mov eax, [rbp+var_20]
sub eax, 80100000h
jz loc_AC5DDD
jmp short $+2
loc_AC5BF0:
mov eax, [rbp+var_20]
sub eax, 80110000h
jz loc_AC5DDD
jmp short $+2
loc_AC5C00:
mov eax, [rbp+var_20]
sub eax, 80120000h
jz loc_AC5DDD
jmp short $+2
loc_AC5C10:
mov eax, [rbp+var_20]
sub eax, 80130000h
jz loc_AC5DDD
jmp short $+2
loc_AC5C20:
mov eax, [rbp+var_20]
sub eax, 80140000h
jz loc_AC5DDD
jmp short $+2
loc_AC5C30:
mov eax, [rbp+var_20]
sub eax, 80150000h
jz loc_AC5DDD
jmp short $+2
loc_AC5C40:
mov eax, [rbp+var_20]
sub eax, 80180000h
jz loc_AC5D71
jmp short $+2
loc_AC5C50:
mov eax, [rbp+var_20]
sub eax, 80190000h
jz loc_AC5E00
jmp short $+2
loc_AC5C60:
mov eax, [rbp+var_20]
sub eax, 801A0000h
jz loc_AC5DDD
jmp short $+2
loc_AC5C70:
mov eax, [rbp+var_20]
sub eax, 80220000h
jz loc_AC5DDD
jmp short $+2
loc_AC5C80:
mov eax, [rbp+var_20]
sub eax, 80230000h
jz loc_AC5DDD
jmp short $+2
loc_AC5C90:
mov eax, [rbp+var_20]
sub eax, 80240000h
jz loc_AC5DDD
jmp short $+2
loc_AC5CA0:
mov eax, [rbp+var_20]
sub eax, 80250000h
jz loc_AC5DDD
jmp short $+2
loc_AC5CB0:
mov eax, [rbp+var_20]
sub eax, 80260000h
jz loc_AC5DDD
jmp short $+2
loc_AC5CC0:
mov eax, [rbp+var_20]
sub eax, 80270000h
jz loc_AC5DDD
jmp short $+2
loc_AC5CD0:
mov eax, [rbp+var_20]
sub eax, 80280000h
jz loc_AC5DDD
jmp short $+2
loc_AC5CE0:
mov eax, [rbp+var_20]
sub eax, 80290000h
jz loc_AC5DAE
jmp short $+2
loc_AC5CF0:
mov eax, [rbp+var_20]
sub eax, 802D0000h
jz loc_AC5DAE
jmp short $+2
loc_AC5D00:
mov eax, [rbp+var_20]
sub eax, 802F0000h
jz loc_AC5DAE
jmp short $+2
loc_AC5D10:
mov eax, [rbp+var_20]
sub eax, 80310000h
jz loc_AC5DAE
jmp short $+2
loc_AC5D20:
mov eax, [rbp+var_20]
sub eax, 80330000h
jz loc_AC5DAE
jmp short $+2
loc_AC5D30:
cmp [rbp+var_1C], 80000000h
jnb short loc_AC5D3E
jmp loc_AC5E5C
loc_AC5D3E:
jmp loc_AC5E19
loc_AC5D43:
mov [rbp+var_8], 0
jmp loc_AC5E6D
loc_AC5D50:
mov rax, [rbp+var_10]
mov eax, [rax]
and eax, 0FFFFh
cmp eax, 0Ah
jb short loc_AC5D6C
mov rax, [rbp+var_10]
add rax, 8
mov [rbp+var_10], rax
loc_AC5D6C:
jmp loc_AC5E19
loc_AC5D71:
mov rax, [rbp+var_10]
movzx eax, word ptr [rax]
mov [rbp+var_24], eax
add eax, 0FFFFFFF1h
sub eax, 2
jb short loc_AC5D92
jmp short $+2
loc_AC5D85:
mov eax, [rbp+var_24]
add eax, 0FFFFFFE5h
sub eax, 2
jb short loc_AC5DA0
jmp short loc_AC5DAC
loc_AC5D92:
mov rax, [rbp+var_10]
add rax, 4
mov [rbp+var_10], rax
jmp short loc_AC5DAC
loc_AC5DA0:
mov rax, [rbp+var_10]
add rax, 0Ch
mov [rbp+var_10], rax
loc_AC5DAC:
jmp short loc_AC5E19
loc_AC5DAE:
mov rax, [rbp+var_10]
mov ecx, [rax+4]
mov rax, [rbp+var_10]
mov ecx, ecx
shl rcx, 2
add rax, rcx
mov [rbp+var_10], rax
jmp short loc_AC5E19
loc_AC5DC8:
cmp [rbp+var_14], 1
jnz short loc_AC5DDB
mov rax, [rbp+var_10]
mov [rbp+var_8], rax
jmp loc_AC5E6D
loc_AC5DDB:
jmp short loc_AC5E19
loc_AC5DDD:
mov eax, [rbp+var_18]
add eax, 1
mov [rbp+var_18], eax
jmp short loc_AC5E19
loc_AC5DE8:
cmp [rbp+var_18], 0
jnz short loc_AC5DFE
cmp [rbp+var_14], 0
jnz short loc_AC5DFE
mov rax, [rbp+var_10]
mov [rbp+var_8], rax
jmp short loc_AC5E6D
loc_AC5DFE:
jmp short loc_AC5E19
loc_AC5E00:
cmp [rbp+var_18], 0
jnz short loc_AC5E10
mov rax, [rbp+var_10]
mov [rbp+var_8], rax
jmp short loc_AC5E6D
loc_AC5E10:
mov eax, [rbp+var_18]
add eax, 0FFFFFFFFh
mov [rbp+var_18], eax
loc_AC5E19:
mov eax, [rbp+var_1C]
shr eax, 10h
and eax, 7FFFh
mov [rbp+var_1C], eax
mov eax, [rbp+var_1C]
cmp rax, 40h ; '@'
jb short loc_AC5E3A
mov [rbp+var_8], 0
jmp short loc_AC5E6D
loc_AC5E3A:
mov eax, [rbp+var_1C]
mov ecx, eax
lea rax, meta_extra_lengths
movzx ecx, byte ptr [rax+rcx]
mov rax, [rbp+var_10]
movsxd rcx, ecx
shl rcx, 2
add rax, rcx
mov [rbp+var_10], rax
loc_AC5E5C:
mov rax, [rbp+var_10]
add rax, 4
mov [rbp+var_10], rax
jmp loc_AC5B62
loc_AC5E6D:
mov rax, [rbp+var_8]
pop rbp
retn
| unsigned __int16 * parsed_skip(unsigned __int16 *a1, int a2)
{
int v3; // [rsp+0h] [rbp-24h]
unsigned int v4; // [rsp+8h] [rbp-1Ch]
unsigned int v5; // [rsp+8h] [rbp-1Ch]
int v6; // [rsp+Ch] [rbp-18h]
v6 = 0;
while ( 1 )
{
v4 = a1[1] << 16;
if ( __OFSUB__(-65536 * a1[1], 1) )
return 0LL;
switch ( v4 )
{
case 0x80010000:
if ( !v6 && !a2 )
return a1;
break;
case 0x80020000:
goto LABEL_45;
case 0x80030000:
if ( (unsigned __int16)*(_DWORD *)a1 >= 0xAu )
a1 += 4;
break;
case 0x80080000:
goto LABEL_45;
case 0x800D0000:
if ( a2 == 1 )
return a1;
break;
case 0x800F0000:
case 0x80100000:
case 0x80110000:
case 0x80120000:
case 0x80130000:
case 0x80140000:
case 0x80150000:
LABEL_45:
++v6;
break;
case 0x80180000:
v3 = *a1;
if ( (unsigned int)(v3 - 15) < 2 )
{
a1 += 2;
}
else if ( (unsigned int)(v3 - 27) < 2 )
{
a1 += 6;
}
break;
case 0x80190000:
if ( !v6 )
return a1;
--v6;
break;
case 0x801A0000:
case 0x80220000:
case 0x80230000:
case 0x80240000:
case 0x80250000:
case 0x80260000:
case 0x80270000:
case 0x80280000:
goto LABEL_45;
case 0x80290000:
case 0x802D0000:
case 0x802F0000:
case 0x80310000:
case 0x80330000:
a1 += 2 * *((unsigned int *)a1 + 1);
break;
default:
if ( v4 < 0x80000000 )
goto LABEL_56;
break;
}
v5 = HIWORD(v4) & 0x7FFF;
if ( v5 >= 0x40uLL )
return 0LL;
a1 += 2 * meta_extra_lengths[v5];
LABEL_56:
a1 += 2;
}
}
| add:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x20
MOV qword ptr [RBP + -0x8],RDI
MOV RAX,qword ptr [RBP + -0x8]
MOV qword ptr [RBP + -0x18],RAX
MOV RAX,qword ptr [RBP + -0x10]
MOV qword ptr [RBP + -0x10],RAX
JMP 0x00ac5b6e
LAB_00ac5b6e:
MOV RAX,qword ptr [RBP + -0x18]
MOV AL,byte ptr [RAX + 0x110]
AND AL,0x1
MOVZX EAX,AL
CMP EAX,0x0
JZ 0x00ac5bb8
MOV RAX,qword ptr [RBP + -0x18]
MOV RDI,qword ptr [RAX + 0x128]
MOV RAX,qword ptr [RDI]
CALL qword ptr [RAX + 0x638]
MOV RCX,RAX
MOV RAX,qword ptr [RBP + -0x18]
MOV qword ptr [RBP + -0x10],RCX
MOV RDI,qword ptr [RAX + 0x128]
MOV RSI,qword ptr [RAX + 0x118]
MOV RAX,qword ptr [RDI]
CALL qword ptr [RAX + 0x630]
LAB_00ac5bb8:
MOV RAX,qword ptr [RBP + -0x18]
MOV RDI,qword ptr [RAX + 0x128]
MOV RAX,qword ptr [RDI]
CALL qword ptr [RAX + 0x640]
JMP 0x00ac5bce
LAB_00ac5bce:
MOV RAX,qword ptr [RBP + -0x18]
MOV RAX,qword ptr [RAX + 0x128]
TEST byte ptr [RAX + 0x64],0x1
JNZ 0x00ac5c35
MOV RAX,qword ptr [RBP + -0x18]
TEST byte ptr [RAX + 0x64],0x1
JNZ 0x00ac5bfe
MOV RAX,qword ptr [RBP + -0x18]
MOV RDI,qword ptr [RAX + 0x130]
CALL 0x00a2cee0
CMP EAX,0x0
JLE 0x00ac5c35
LAB_00ac5bfe:
MOV RAX,qword ptr [RBP + -0x18]
MOV RDI,qword ptr [RAX + 0x120]
MOV RSI,qword ptr [RAX + 0x128]
MOV RAX,qword ptr [RDI]
CALL qword ptr [RAX + 0x630]
MOV RAX,qword ptr [RBP + -0x18]
MOV RDI,qword ptr [RAX + 0x120]
MOV RAX,qword ptr [RDI]
CALL qword ptr [RAX + 0x640]
MOV RAX,qword ptr [RBP + -0x18]
MOV byte ptr [RAX + 0x64],0x0
LAB_00ac5c35:
MOV RAX,qword ptr [RBP + -0x18]
MOV AL,byte ptr [RAX + 0x110]
AND AL,0x1
MOVZX EAX,AL
CMP EAX,0x0
JZ 0x00ac5c68
MOV RAX,qword ptr [RBP + -0x18]
MOV byte ptr [RAX + 0x110],0x0
MOV RDI,qword ptr [RAX + 0x128]
MOV RSI,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RDI]
CALL qword ptr [RAX + 0x630]
LAB_00ac5c68:
JMP 0x00ac5c6a
LAB_00ac5c6a:
XOR EAX,EAX
AND AL,0x1
ADD RSP,0x20
POP RBP
RET
|
/* Item_sum_max::add() */
int8 __thiscall Item_sum_max::add(Item_sum_max *this)
{
int iVar1;
int8 local_18;
if (((byte)this[0x110] & 1) != 0) {
local_18 = (**(code **)(**(long **)(this + 0x128) + 0x638))();
(**(code **)(**(long **)(this + 0x128) + 0x630))
(*(long **)(this + 0x128),*(int8 *)(this + 0x118));
}
(**(code **)(**(long **)(this + 0x128) + 0x640))();
if ((*(byte *)(*(long *)(this + 0x128) + 100) & 1) == 0) {
if (((byte)this[100] & 1) == 0) {
iVar1 = Arg_comparator::compare(*(Arg_comparator **)(this + 0x130));
if (iVar1 < 1) goto LAB_00ac5c35;
}
(**(code **)(**(long **)(this + 0x120) + 0x630))
(*(long **)(this + 0x120),*(int8 *)(this + 0x128));
(**(code **)(**(long **)(this + 0x120) + 0x640))();
this[100] = (Item_sum_max)0x0;
}
LAB_00ac5c35:
if (((byte)this[0x110] & 1) != 0) {
this[0x110] = (Item_sum_max)0x0;
(**(code **)(**(long **)(this + 0x128) + 0x630))(*(long **)(this + 0x128),local_18);
}
return 0;
}
| |
42,660 | Item_ident::Item_ident(THD*, TABLE_LIST*, st_mysql_const_lex_string const&) | eloqsql/sql/item.cc | Item_ident::Item_ident(THD *thd, TABLE_LIST *view_arg,
const LEX_CSTRING &field_name_arg)
:Item_result_field(thd), orig_db_name(null_clex_str),
orig_table_name(view_arg->table_name),
orig_field_name(field_name_arg),
/* TODO: suspicious use of first_select_lex */
context(&view_arg->view->first_select_lex()->context),
db_name(null_clex_str), table_name(view_arg->alias),
field_name(field_name_arg),
cached_table(NULL), depended_from(NULL),
cached_field_index(NO_CACHED_FIELD_INDEX),
can_be_depended(TRUE), alias_name_used(FALSE)
{
name= field_name_arg;
} | O0 | cpp | Item_ident::Item_ident(THD*, TABLE_LIST*, st_mysql_const_lex_string const&):
pushq %rbp
movq %rsp, %rbp
subq $0x50, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movq %rcx, -0x20(%rbp)
movq -0x8(%rbp), %rdi
movq %rdi, -0x48(%rbp)
movq -0x10(%rbp), %rsi
callq 0x8726f0
movq -0x48(%rbp), %rax
leaq 0xdb88d4(%rip), %rcx # 0x19e9a78
movq %rcx, (%rax)
leaq 0x815b7a(%rip), %rcx # 0x1446d28
movups (%rcx), %xmm0
movups %xmm0, 0x70(%rax)
movq -0x18(%rbp), %rcx
movups 0x28(%rcx), %xmm0
movups %xmm0, 0x80(%rax)
movq -0x20(%rbp), %rcx
movups (%rcx), %xmm0
movups %xmm0, 0x90(%rax)
addq $0xa0, %rax
movq %rax, -0x40(%rbp)
movq -0x18(%rbp), %rax
movq 0x198(%rax), %rdi
callq 0x7fa720
movq %rax, -0x38(%rbp)
jmp 0xc311f2
movq -0x48(%rbp), %rax
movq -0x40(%rbp), %rcx
movq -0x38(%rbp), %rdx
addq $0x48, %rdx
movq %rdx, (%rcx)
leaq 0x815b1c(%rip), %rcx # 0x1446d28
movq (%rcx), %rdx
movq %rdx, 0xa8(%rax)
movq 0x8(%rcx), %rcx
movq %rcx, 0xb0(%rax)
movq -0x18(%rbp), %rcx
movq 0x48(%rcx), %rdx
movq %rdx, 0xb8(%rax)
movq 0x50(%rcx), %rcx
movq %rcx, 0xc0(%rax)
movq -0x20(%rbp), %rcx
movq (%rcx), %rdx
movq %rdx, 0xc8(%rax)
movq 0x8(%rcx), %rcx
movq %rcx, 0xd0(%rax)
movq $0x0, 0xd8(%rax)
movq $0x0, 0xe0(%rax)
movw $0xffff, 0xe8(%rax) # imm = 0xFFFF
movb $0x1, 0xea(%rax)
movb $0x0, 0xeb(%rax)
movq -0x20(%rbp), %rcx
movq (%rcx), %rdx
movq %rdx, 0x48(%rax)
movq 0x8(%rcx), %rcx
movq %rcx, 0x50(%rax)
addq $0x50, %rsp
popq %rbp
retq
movq -0x48(%rbp), %rdi
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x28(%rbp)
movl %eax, -0x2c(%rbp)
callq 0x82f470
movq -0x28(%rbp), %rdi
callq 0x7589b0
nopl (%rax,%rax)
| _ZN10Item_identC2EP3THDP10TABLE_LISTRK25st_mysql_const_lex_string:
push rbp
mov rbp, rsp
sub rsp, 50h
mov [rbp+var_8], rdi
mov [rbp+var_10], rsi
mov [rbp+var_18], rdx
mov [rbp+var_20], rcx
mov rdi, [rbp+var_8]; this
mov [rbp+var_48], rdi
mov rsi, [rbp+var_10]; THD *
call _ZN17Item_result_fieldC2EP3THD; Item_result_field::Item_result_field(THD *)
mov rax, [rbp+var_48]
lea rcx, off_19E9A78
mov [rax], rcx
lea rcx, null_clex_str
movups xmm0, xmmword ptr [rcx]
movups xmmword ptr [rax+70h], xmm0
mov rcx, [rbp+var_18]
movups xmm0, xmmword ptr [rcx+28h]
movups xmmword ptr [rax+80h], xmm0
mov rcx, [rbp+var_20]
movups xmm0, xmmword ptr [rcx]
movups xmmword ptr [rax+90h], xmm0
add rax, 0A0h
mov [rbp+var_40], rax
mov rax, [rbp+var_18]
mov rdi, [rax+198h]; this
call _ZN3LEX16first_select_lexEv; LEX::first_select_lex(void)
mov [rbp+var_38], rax
jmp short $+2
loc_C311F2:
mov rax, [rbp+var_48]
mov rcx, [rbp+var_40]
mov rdx, [rbp+var_38]
add rdx, 48h ; 'H'
mov [rcx], rdx
lea rcx, null_clex_str
mov rdx, [rcx]
mov [rax+0A8h], rdx
mov rcx, [rcx+8]
mov [rax+0B0h], rcx
mov rcx, [rbp+var_18]
mov rdx, [rcx+48h]
mov [rax+0B8h], rdx
mov rcx, [rcx+50h]
mov [rax+0C0h], rcx
mov rcx, [rbp+var_20]
mov rdx, [rcx]
mov [rax+0C8h], rdx
mov rcx, [rcx+8]
mov [rax+0D0h], rcx
mov qword ptr [rax+0D8h], 0
mov qword ptr [rax+0E0h], 0
mov word ptr [rax+0E8h], 0FFFFh
mov byte ptr [rax+0EAh], 1
mov byte ptr [rax+0EBh], 0
mov rcx, [rbp+var_20]
mov rdx, [rcx]
mov [rax+48h], rdx
mov rcx, [rcx+8]
mov [rax+50h], rcx
add rsp, 50h
pop rbp
retn
mov rdi, [rbp+var_48]; this
mov rcx, rax
mov eax, edx
mov [rbp+var_28], rcx
mov [rbp+var_2C], eax
call _ZN17Item_result_fieldD2Ev; Item_result_field::~Item_result_field()
mov rdi, [rbp+var_28]
call __Unwind_Resume
| long long Item_ident::Item_ident(long long a1, THD *a2, long long a3, long long a4)
{
long long result; // rax
long long select_lex; // [rsp+18h] [rbp-38h]
Item_result_field::Item_result_field((Item_result_field *)a1, a2);
*(_QWORD *)a1 = &off_19E9A78;
*(_OWORD *)(a1 + 112) = *(_OWORD *)&null_clex_str;
*(_OWORD *)(a1 + 128) = *(_OWORD *)(a3 + 40);
*(_OWORD *)(a1 + 144) = *(_OWORD *)a4;
select_lex = LEX::first_select_lex(*(LEX **)(a3 + 408));
result = a1;
*(_QWORD *)(a1 + 160) = select_lex + 72;
*(_QWORD *)(a1 + 168) = null_clex_str;
*(_QWORD *)(a1 + 176) = *(&null_clex_str + 1);
*(_QWORD *)(a1 + 184) = *(_QWORD *)(a3 + 72);
*(_QWORD *)(a1 + 192) = *(_QWORD *)(a3 + 80);
*(_QWORD *)(a1 + 200) = *(_QWORD *)a4;
*(_QWORD *)(a1 + 208) = *(_QWORD *)(a4 + 8);
*(_QWORD *)(a1 + 216) = 0LL;
*(_QWORD *)(a1 + 224) = 0LL;
*(_WORD *)(a1 + 232) = -1;
*(_BYTE *)(a1 + 234) = 1;
*(_BYTE *)(a1 + 235) = 0;
*(_QWORD *)(a1 + 72) = *(_QWORD *)a4;
*(_QWORD *)(a1 + 80) = *(_QWORD *)(a4 + 8);
return result;
}
| opt_trace_disable_if_no_stored_proc_func_access:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x30
MOV qword ptr [RBP + -0x8],RDI
MOV qword ptr [RBP + -0x10],RSI
MOV RAX,qword ptr [RBP + -0x8]
MOV RAX,qword ptr [RAX + 0x888]
AND RAX,0x1
CMP RAX,0x0
SETNZ AL
XOR AL,0xff
AND AL,0x1
MOVZX EAX,AL
CMP EAX,0x0
JNZ 0x00c311bc
MOV RAX,qword ptr [RBP + -0x8]
CMP dword ptr [RAX + 0x3e6c],0x0
JNZ 0x00c311bc
MOV RDI,qword ptr [RBP + -0x8]
CALL 0x009a9930
TEST AL,0x1
JNZ 0x00c311be
LAB_00c311bc:
JMP 0x00c31236
LAB_00c311be:
MOV RAX,qword ptr [RBP + -0x8]
ADD RAX,0x3e08
MOV qword ptr [RBP + -0x18],RAX
MOV RDI,qword ptr [RBP + -0x8]
CALL 0x00c32a30
MOV qword ptr [RBP + -0x28],RAX
MOV RDI,qword ptr [RBP + -0x8]
MOV RSI,qword ptr [RBP + -0x8]
ADD RSI,0x1ea8
CALL 0x00c32a50
MOV RDI,qword ptr [RBP + -0x8]
MOV RSI,qword ptr [RBP + -0x10]
LEA RDX,[RBP + -0x19]
CALL 0x0091aea0
MOV CL,AL
MOV AL,0x1
TEST CL,0x1
MOV byte ptr [RBP + -0x2a],AL
JNZ 0x00c31212
MOV AL,byte ptr [RBP + -0x19]
XOR AL,0xff
MOV byte ptr [RBP + -0x2a],AL
LAB_00c31212:
MOV AL,byte ptr [RBP + -0x2a]
AND AL,0x1
MOV byte ptr [RBP + -0x29],AL
MOV RDI,qword ptr [RBP + -0x8]
MOV RSI,qword ptr [RBP + -0x28]
CALL 0x00c32a50
TEST byte ptr [RBP + -0x29],0x1
JZ 0x00c31236
MOV RDI,qword ptr [RBP + -0x18]
CALL 0x00c31140
LAB_00c31236:
ADD RSP,0x30
POP RBP
RET
|
/* opt_trace_disable_if_no_stored_proc_func_access(THD*, sp_head*) */
void opt_trace_disable_if_no_stored_proc_func_access(THD *param_1,sp_head *param_2)
{
byte bVar1;
ulong uVar2;
Security_context *pSVar3;
byte local_32;
bool local_21;
Opt_trace_context *local_20;
sp_head *local_18;
THD *local_10;
if ((((*(ulong *)(param_1 + 0x888) & 1) != 0) && (*(int *)(param_1 + 0x3e6c) == 0)) &&
(local_18 = param_2, local_10 = param_1, uVar2 = THD::trace_started(param_1), (uVar2 & 1) != 0)
) {
local_20 = (Opt_trace_context *)(local_10 + 0x3e08);
pSVar3 = (Security_context *)THD::security_context(local_10);
THD::set_security_context(local_10,(Security_context *)(local_10 + 0x1ea8));
bVar1 = check_show_routine_access(local_10,local_18,&local_21);
local_32 = 1;
if ((bVar1 & 1) == 0) {
local_32 = local_21 ^ 0xff;
}
THD::set_security_context(local_10,pSVar3);
if ((local_32 & 1) != 0) {
Opt_trace_context::missing_privilege(local_20);
}
}
return;
}
| |
42,661 | void testing::internal::HandleExceptionsInMethodIfSupported<testing::Test, void>(testing::Test*, void (testing::Test::*)(), char const*) | AlayaLite/build_O0/_deps/googletest-src/googletest/src/gtest.cc | Result HandleExceptionsInMethodIfSupported(T* object, Result (T::*method)(),
const char* location) {
// NOTE: The user code can affect the way in which Google Test handles
// exceptions by setting GTEST_FLAG(catch_exceptions), but only before
// RUN_ALL_TESTS() starts. It is technically possible to check the flag
// after the exception is caught and either report or re-throw the
// exception based on the flag's value:
//
// try {
// // Perform the test method.
// } catch (...) {
// if (GTEST_FLAG_GET(catch_exceptions))
// // Report the exception as failure.
// else
// throw; // Re-throws the original exception.
// }
//
// However, the purpose of this flag is to allow the program to drop into
// the debugger when the exception is thrown. On most platforms, once the
// control enters the catch block, the exception origin information is
// lost and the debugger will stop the program at the point of the
// re-throw in this function -- instead of at the point of the original
// throw statement in the code under test. For this reason, we perform
// the check early, sacrificing the ability to affect Google Test's
// exception handling in the method where the exception is thrown.
if (internal::GetUnitTestImpl()->catch_exceptions()) {
#if GTEST_HAS_EXCEPTIONS
try {
return HandleSehExceptionsInMethodIfSupported(object, method, location);
} catch (const AssertionException&) { // NOLINT
// This failure was reported already.
} catch (const internal::GoogleTestFailureException&) { // NOLINT
// This exception type can only be thrown by a failed Google
// Test assertion with the intention of letting another testing
// framework catch it. Therefore we just re-throw it.
throw;
} catch (const std::exception& e) { // NOLINT
internal::ReportFailureInUnknownLocation(
TestPartResult::kFatalFailure,
FormatCxxExceptionMessage(e.what(), location));
} catch (...) { // NOLINT
internal::ReportFailureInUnknownLocation(
TestPartResult::kFatalFailure,
FormatCxxExceptionMessage(nullptr, location));
}
return static_cast<Result>(0);
#else
return HandleSehExceptionsInMethodIfSupported(object, method, location);
#endif // GTEST_HAS_EXCEPTIONS
} else {
return (object->*method)();
}
} | O0 | cpp | void testing::internal::HandleExceptionsInMethodIfSupported<testing::Test, void>(testing::Test*, void (testing::Test::*)(), char const*):
subq $0xc8, %rsp
movq %rsi, 0xb8(%rsp)
movq %rdx, 0xc0(%rsp)
movq 0xb8(%rsp), %rax
movq 0xc0(%rsp), %rdx
movq %rdi, 0xb0(%rsp)
movq %rdx, 0xa8(%rsp)
movq %rax, 0xa0(%rsp)
movq %rcx, 0x98(%rsp)
callq 0xe2720
movq %rax, %rdi
callq 0x1035c0
testb $0x1, %al
jne 0xe7aed
jmp 0xe7ce1
movq 0xb0(%rsp), %rdi
movq 0xa0(%rsp), %rax
movq 0xa8(%rsp), %rdx
movq 0x98(%rsp), %rcx
movq %rdx, 0x90(%rsp)
movq %rax, 0x88(%rsp)
movq 0x88(%rsp), %rsi
movq 0x90(%rsp), %rdx
callq 0x1035e0
jmp 0xe7b34
jmp 0xe7d3f
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x80(%rsp)
movl %eax, 0x7c(%rsp)
movl 0x7c(%rsp), %eax
movl %eax, 0x1c(%rsp)
movl $0x4, %ecx
cmpl %ecx, %eax
jne 0xe7b77
movq 0x80(%rsp), %rdi
callq 0x14270
movq %rax, 0x20(%rsp)
callq 0x14bb0
jmp 0xe7d3f
movl 0x1c(%rsp), %eax
movl $0x3, %ecx
cmpl %ecx, %eax
jne 0xe7ba0
movq 0x80(%rsp), %rdi
callq 0x14270
movq %rax, 0x28(%rsp)
callq 0x14a80
jmp 0xe7d5c
movl 0x1c(%rsp), %eax
movl $0x2, %ecx
cmpl %ecx, %eax
jne 0xe7c09
movq 0x80(%rsp), %rdi
callq 0x14270
movq %rax, 0x50(%rsp)
movq 0x50(%rsp), %rdi
movq (%rdi), %rax
movq 0x10(%rax), %rax
callq *%rax
movq %rax, %rsi
movq 0x98(%rsp), %rdx
leaq 0x30(%rsp), %rdi
callq 0xdf6c0
jmp 0xe7be4
movl $0x2, %edi
leaq 0x30(%rsp), %rsi
callq 0xc5af0
jmp 0xe7bf5
leaq 0x30(%rsp), %rdi
callq 0x1aac0
callq 0x14bb0
jmp 0xe7b72
movq 0x80(%rsp), %rdi
callq 0x14270
movq 0x98(%rsp), %rdx
xorl %eax, %eax
movl %eax, %esi
leaq 0x58(%rsp), %rdi
callq 0xdf6c0
jmp 0xe7c2e
movl $0x2, %edi
leaq 0x58(%rsp), %rsi
callq 0xc5af0
jmp 0xe7c3f
leaq 0x58(%rsp), %rdi
callq 0x1aac0
callq 0x14bb0
jmp 0xe7b72
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x80(%rsp)
movl %eax, 0x7c(%rsp)
jmp 0xe7c81
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x80(%rsp)
movl %eax, 0x7c(%rsp)
leaq 0x58(%rsp), %rdi
callq 0x1aac0
callq 0x14bb0
jmp 0xe7c88
jmp 0xe7d47
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x80(%rsp)
movl %eax, 0x7c(%rsp)
jmp 0xe7cbb
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x80(%rsp)
movl %eax, 0x7c(%rsp)
leaq 0x30(%rsp), %rdi
callq 0x1aac0
callq 0x14bb0
jmp 0xe7cc2
jmp 0xe7d47
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x80(%rsp)
movl %eax, 0x7c(%rsp)
callq 0x14bb0
jmp 0xe7cdf
jmp 0xe7d47
movq 0xb0(%rsp), %rcx
movq 0xa0(%rsp), %rax
movq %rax, 0x8(%rsp)
movq 0xa8(%rsp), %rdx
addq %rdx, %rcx
movq %rcx, 0x10(%rsp)
andq $0x1, %rax
cmpq $0x0, %rax
je 0xe7d2b
movq 0x8(%rsp), %rcx
movq 0x10(%rsp), %rax
movq (%rax), %rax
subq $0x1, %rcx
movq (%rax,%rcx), %rax
movq %rax, (%rsp)
jmp 0xe7d34
movq 0x8(%rsp), %rax
movq %rax, (%rsp)
movq 0x10(%rsp), %rdi
movq (%rsp), %rax
callq *%rax
addq $0xc8, %rsp
retq
movq 0x80(%rsp), %rdi
callq 0x14c80
movq %rax, %rdi
callq 0x1b6b0
nopl (%rax)
| _ZN7testing8internal35HandleExceptionsInMethodIfSupportedINS_4TestEvEET0_PT_MS4_FS3_vEPKc:
sub rsp, 0C8h
mov [rsp+0C8h+var_10], rsi
mov [rsp+0C8h+var_8], rdx
mov rax, [rsp+0C8h+var_10]
mov rdx, [rsp+0C8h+var_8]
mov [rsp+0C8h+var_18], rdi
mov [rsp+0C8h+var_20], rdx
mov [rsp+0C8h+var_28], rax
mov [rsp+0C8h+var_30], rcx
call _ZN7testing8internal15GetUnitTestImplEv; testing::internal::GetUnitTestImpl(void)
mov rdi, rax; this
call _ZNK7testing8internal12UnitTestImpl16catch_exceptionsEv; testing::internal::UnitTestImpl::catch_exceptions(void)
test al, 1
jnz short loc_E7AED
jmp loc_E7CE1
loc_E7AED:
mov rdi, [rsp+0C8h+var_18]
mov rax, [rsp+0C8h+var_28]
mov rdx, [rsp+0C8h+var_20]
mov rcx, [rsp+0C8h+var_30]
mov [rsp+0C8h+var_38], rdx
mov [rsp+0C8h+var_40], rax
mov rsi, [rsp+0C8h+var_40]
mov rdx, [rsp+0C8h+var_38]
call _ZN7testing8internal38HandleSehExceptionsInMethodIfSupportedINS_4TestEvEET0_PT_MS4_FS3_vEPKc; testing::internal::HandleSehExceptionsInMethodIfSupported<testing::Test,void>(testing::Test *,void (testing::Test::*)(void),char const*)
jmp short $+2
loc_E7B34:
jmp loc_E7D3F
mov rcx, rax
mov eax, edx
mov [rsp+0C8h+var_48], rcx
mov [rsp+0C8h+var_4C], eax
mov eax, [rsp+0C8h+var_4C]
mov [rsp+0C8h+var_AC], eax
mov ecx, 4
cmp eax, ecx
jnz short loc_E7B77
mov rdi, [rsp+0C8h+var_48]; void *
call ___cxa_begin_catch
mov [rsp+0C8h+var_A8], rax
call ___cxa_end_catch
loc_E7B72:
jmp loc_E7D3F
loc_E7B77:
mov eax, [rsp+0C8h+var_AC]
mov ecx, 3
cmp eax, ecx
jnz short loc_E7BA0
mov rdi, [rsp+0C8h+var_48]; void *
call ___cxa_begin_catch
mov [rsp+0C8h+var_A0], rax
call ___cxa_rethrow
jmp loc_E7D5C
loc_E7BA0:
mov eax, [rsp+0C8h+var_AC]
mov ecx, 2
cmp eax, ecx
jnz short loc_E7C09
mov rdi, [rsp+0C8h+var_48]; void *
call ___cxa_begin_catch
mov [rsp+0C8h+var_78], rax
mov rdi, [rsp+0C8h+var_78]
mov rax, [rdi]
mov rax, [rax+10h]
call rax
mov rsi, rax
mov rdx, [rsp+0C8h+var_30]
lea rdi, [rsp+0C8h+var_98]
call _ZN7testing8internalL25FormatCxxExceptionMessageB5cxx11EPKcS2_; testing::internal::FormatCxxExceptionMessage(char const*,char const*)
jmp short $+2
loc_E7BE4:
mov edi, 2
lea rsi, [rsp+0C8h+var_98]
call _ZN7testing8internal30ReportFailureInUnknownLocationENS_14TestPartResult4TypeERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE; testing::internal::ReportFailureInUnknownLocation(testing::TestPartResult::Type,std::string const&)
jmp short $+2
loc_E7BF5:
lea rdi, [rsp+0C8h+var_98]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
call ___cxa_end_catch
jmp loc_E7B72
loc_E7C09:
mov rdi, [rsp+0C8h+var_48]; void *
call ___cxa_begin_catch
mov rdx, [rsp+0C8h+var_30]
xor eax, eax
mov esi, eax
lea rdi, [rsp+0C8h+var_70]
call _ZN7testing8internalL25FormatCxxExceptionMessageB5cxx11EPKcS2_; testing::internal::FormatCxxExceptionMessage(char const*,char const*)
jmp short $+2
loc_E7C2E:
mov edi, 2
lea rsi, [rsp+0C8h+var_70]
call _ZN7testing8internal30ReportFailureInUnknownLocationENS_14TestPartResult4TypeERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE; testing::internal::ReportFailureInUnknownLocation(testing::TestPartResult::Type,std::string const&)
jmp short $+2
loc_E7C3F:
lea rdi, [rsp+0C8h+var_70]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
call ___cxa_end_catch
jmp loc_E7B72
mov rcx, rax
mov eax, edx
mov [rsp+arg_78], rcx
mov [rsp+arg_74], eax
jmp short loc_E7C81
mov rcx, rax
mov eax, edx
mov [rsp+arg_78], rcx
mov [rsp+arg_74], eax
lea rdi, [rsp+arg_50]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
loc_E7C81:
call ___cxa_end_catch
jmp short $+2
loc_E7C88:
jmp loc_E7D47
mov rcx, rax
mov eax, edx
mov [rsp+arg_78], rcx
mov [rsp+arg_74], eax
jmp short loc_E7CBB
mov rcx, rax
mov eax, edx
mov [rsp+arg_78], rcx
mov [rsp+arg_74], eax
lea rdi, [rsp+arg_28]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
loc_E7CBB:
call ___cxa_end_catch
jmp short $+2
loc_E7CC2:
jmp loc_E7D47
mov rcx, rax
mov eax, edx
mov [rsp+arg_78], rcx
mov [rsp+arg_74], eax
call ___cxa_end_catch
jmp short $+2
loc_E7CDF:
jmp short loc_E7D47
loc_E7CE1:
mov rcx, [rsp+0C8h+var_18]
mov rax, [rsp+0C8h+var_28]
mov [rsp+0C8h+var_C0], rax
mov rdx, [rsp+0C8h+var_20]
add rcx, rdx
mov [rsp+0C8h+var_B8], rcx
and rax, 1
cmp rax, 0
jz short loc_E7D2B
mov rcx, [rsp+0C8h+var_C0]
mov rax, [rsp+0C8h+var_B8]
mov rax, [rax]
sub rcx, 1
mov rax, [rax+rcx]
mov [rsp+0C8h+var_C8], rax
jmp short loc_E7D34
loc_E7D2B:
mov rax, [rsp+0C8h+var_C0]
mov [rsp+0C8h+var_C8], rax
loc_E7D34:
mov rdi, [rsp+0C8h+var_B8]
mov rax, [rsp+0C8h+var_C8]
call rax
loc_E7D3F:
add rsp, 0C8h
retn
loc_E7D47:
mov rdi, [rsp+arg_78]
call __Unwind_Resume
mov rdi, rax
call __clang_call_terminate
loc_E7D5C:
nop dword ptr [rax+00h]
| long long testing::internal::HandleExceptionsInMethodIfSupported<testing::Test,void>(
testing::internal *a1,
long long ( *a2)(_QWORD),
long long a3,
long long a4)
{
testing::internal::UnitTestImpl *UnitTestImpl; // rax
_QWORD *v6; // [rsp+10h] [rbp-B8h]
UnitTestImpl = (testing::internal::UnitTestImpl *)testing::internal::GetUnitTestImpl(a1);
if ( (testing::internal::UnitTestImpl::catch_exceptions(UnitTestImpl) & 1) != 0 )
return testing::internal::HandleSehExceptionsInMethodIfSupported<testing::Test,void>(a1, a2, a3, a4);
v6 = (_QWORD *)((char *)a1 + a3);
if ( ((unsigned __int8)a2 & 1) != 0 )
return (*(long long ( **)(_QWORD *))((char *)a2 + *v6 - 1))(v6);
else
return a2(v6);
}
| HandleExceptionsInMethodIfSupported<testing::Test,void>:
SUB RSP,0xc8
MOV qword ptr [RSP + 0xb8],RSI
MOV qword ptr [RSP + 0xc0],RDX
MOV RAX,qword ptr [RSP + 0xb8]
MOV RDX,qword ptr [RSP + 0xc0]
MOV qword ptr [RSP + 0xb0],RDI
MOV qword ptr [RSP + 0xa8],RDX
MOV qword ptr [RSP + 0xa0],RAX
MOV qword ptr [RSP + 0x98],RCX
CALL 0x001e2720
MOV RDI,RAX
CALL 0x002035c0
TEST AL,0x1
JNZ 0x001e7aed
JMP 0x001e7ce1
LAB_001e7aed:
MOV RDI,qword ptr [RSP + 0xb0]
MOV RAX,qword ptr [RSP + 0xa0]
MOV RDX,qword ptr [RSP + 0xa8]
MOV RCX,qword ptr [RSP + 0x98]
MOV qword ptr [RSP + 0x90],RDX
MOV qword ptr [RSP + 0x88],RAX
MOV RSI,qword ptr [RSP + 0x88]
MOV RDX,qword ptr [RSP + 0x90]
LAB_001e7b2d:
CALL 0x002035e0
LAB_001e7b32:
JMP 0x001e7b34
LAB_001e7b34:
JMP 0x001e7d3f
LAB_001e7ce1:
MOV RCX,qword ptr [RSP + 0xb0]
MOV RAX,qword ptr [RSP + 0xa0]
MOV qword ptr [RSP + 0x8],RAX
MOV RDX,qword ptr [RSP + 0xa8]
ADD RCX,RDX
MOV qword ptr [RSP + 0x10],RCX
AND RAX,0x1
CMP RAX,0x0
JZ 0x001e7d2b
MOV RCX,qword ptr [RSP + 0x8]
MOV RAX,qword ptr [RSP + 0x10]
MOV RAX,qword ptr [RAX]
SUB RCX,0x1
MOV RAX,qword ptr [RAX + RCX*0x1]
MOV qword ptr [RSP],RAX
JMP 0x001e7d34
LAB_001e7d2b:
MOV RAX,qword ptr [RSP + 0x8]
MOV qword ptr [RSP],RAX
LAB_001e7d34:
MOV RDI,qword ptr [RSP + 0x10]
MOV RAX,qword ptr [RSP]
CALL RAX
LAB_001e7d3f:
ADD RSP,0xc8
RET
|
/* void testing::internal::HandleExceptionsInMethodIfSupported<testing::Test, void>(testing::Test*,
void (testing::Test::*)(), char const*) */
void testing::internal::HandleExceptionsInMethodIfSupported<testing::Test,void>
(Test *param_1,_func_void *param_2,char *param_3)
{
UnitTestImpl *this;
ulong uVar1;
_func_void *local_c8;
this = (UnitTestImpl *)GetUnitTestImpl();
uVar1 = UnitTestImpl::catch_exceptions(this);
if ((uVar1 & 1) == 0) {
local_c8 = param_2;
if (((ulong)param_2 & 1) != 0) {
local_c8 = *(_func_void **)(param_2 + *(long *)(param_1 + (long)param_3) + -1);
}
(*local_c8)(param_1 + (long)param_3);
}
else {
/* try { // try from 001e7b2d to 001e7b31 has its CatchHandler @ 001e7b39 */
HandleSehExceptionsInMethodIfSupported<testing::Test,void>(param_1,param_2,param_3);
}
return;
}
| |
42,662 | nlohmann::json_abi_v3_11_2::detail::iteration_proxy_value<nlohmann::json_abi_v3_11_2::detail::iter_impl<nlohmann::json_abi_v3_11_2::basic_json<std::map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_2::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>>>>::key() const | 7CodeWizard[P]stablediffusion/thirdparty/json.hpp | const string_type& key() const
{
JSON_ASSERT(anchor.m_object != nullptr);
switch (anchor.m_object->type())
{
// use integer array index as key
case value_t::array:
{
if (array_index != array_index_last)
{
int_to_string( array_index_str, array_index );
array_index_last = array_index;
}
return array_index_str;
}
// use key from the object
case value_t::object:
return anchor.key();
// use an empty key for all primitive types
case value_t::null:
case value_t::string:
case value_t::boolean:
case value_t::number_integer:
case value_t::number_unsigned:
case value_t::number_float:
case value_t::binary:
case value_t::discarded:
default:
return empty_str;
}
} | O1 | cpp | nlohmann::json_abi_v3_11_2::detail::iteration_proxy_value<nlohmann::json_abi_v3_11_2::detail::iter_impl<nlohmann::json_abi_v3_11_2::basic_json<std::map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_2::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>>>>::key() const:
pushq %rbx
movq %rdi, %rbx
movq (%rdi), %rax
movzbl (%rax), %eax
cmpl $0x1, %eax
je 0x6d6d1
cmpl $0x2, %eax
jne 0x6d6da
movq 0x20(%rbx), %rsi
cmpq 0x28(%rbx), %rsi
je 0x6d6cb
leaq 0x30(%rbx), %rdi
callq 0x785d3
movq 0x20(%rbx), %rax
movq %rax, 0x28(%rbx)
addq $0x30, %rbx
jmp 0x6d6de
movq %rbx, %rdi
popq %rbx
jmp 0x78694
addq $0x50, %rbx
movq %rbx, %rax
popq %rbx
retq
nop
| _ZNK8nlohmann16json_abi_v3_11_26detail21iteration_proxy_valueINS1_9iter_implINS0_10basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEEEEEE3keyEv:
push rbx
mov rbx, rdi
mov rax, [rdi]
movzx eax, byte ptr [rax]
cmp eax, 1
jz short loc_6D6D1
cmp eax, 2
jnz short loc_6D6DA
mov rsi, [rbx+20h]
cmp rsi, [rbx+28h]
jz short loc_6D6CB
lea rdi, [rbx+30h]
call _ZN8nlohmann16json_abi_v3_11_26detail13int_to_stringINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEEvRT_m; nlohmann::json_abi_v3_11_2::detail::int_to_string<std::string>(std::string &,ulong)
mov rax, [rbx+20h]
mov [rbx+28h], rax
loc_6D6CB:
add rbx, 30h ; '0'
jmp short loc_6D6DE
loc_6D6D1:
mov rdi, rbx
pop rbx
jmp _ZNK8nlohmann16json_abi_v3_11_26detail9iter_implINS0_10basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEEEE3keyEv; nlohmann::json_abi_v3_11_2::detail::iter_impl<nlohmann::json_abi_v3_11_2::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_2::adl_serializer,std::vector<uchar>>>::key(void)
loc_6D6DA:
add rbx, 50h ; 'P'
loc_6D6DE:
mov rax, rbx
pop rbx
retn
| long long nlohmann::json_abi_v3_11_2::detail::iteration_proxy_value<nlohmann::json_abi_v3_11_2::detail::iter_impl<nlohmann::json_abi_v3_11_2::basic_json<std::map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_2::adl_serializer,std::vector<unsigned char>>>>::key(
unsigned __int8 **a1)
{
int v1; // eax
v1 = **a1;
if ( v1 == 1 )
return nlohmann::json_abi_v3_11_2::detail::iter_impl<nlohmann::json_abi_v3_11_2::basic_json<std::map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_2::adl_serializer,std::vector<unsigned char>>>::key(a1);
if ( v1 != 2 )
return (long long)(a1 + 10);
if ( a1[4] != a1[5] )
{
nlohmann::json_abi_v3_11_2::detail::int_to_string<std::string>(a1 + 6);
a1[5] = a1[4];
}
return (long long)(a1 + 6);
}
| |||
42,663 | nlohmann::json_abi_v3_11_2::detail::iteration_proxy_value<nlohmann::json_abi_v3_11_2::detail::iter_impl<nlohmann::json_abi_v3_11_2::basic_json<std::map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_2::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>>>>::key() const | 7CodeWizard[P]stablediffusion/thirdparty/json.hpp | const string_type& key() const
{
JSON_ASSERT(anchor.m_object != nullptr);
switch (anchor.m_object->type())
{
// use integer array index as key
case value_t::array:
{
if (array_index != array_index_last)
{
int_to_string( array_index_str, array_index );
array_index_last = array_index;
}
return array_index_str;
}
// use key from the object
case value_t::object:
return anchor.key();
// use an empty key for all primitive types
case value_t::null:
case value_t::string:
case value_t::boolean:
case value_t::number_integer:
case value_t::number_unsigned:
case value_t::number_float:
case value_t::binary:
case value_t::discarded:
default:
return empty_str;
}
} | O2 | cpp | nlohmann::json_abi_v3_11_2::detail::iteration_proxy_value<nlohmann::json_abi_v3_11_2::detail::iter_impl<nlohmann::json_abi_v3_11_2::basic_json<std::map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_2::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>>>>::key() const:
pushq %rbx
movq %rdi, %rbx
movq (%rdi), %rax
movzbl (%rax), %eax
cmpl $0x1, %eax
je 0x4a82f
cmpl $0x2, %eax
jne 0x4a838
movq 0x20(%rbx), %rsi
cmpq 0x28(%rbx), %rsi
je 0x4a829
leaq 0x30(%rbx), %rdi
callq 0x5462b
movq 0x20(%rbx), %rax
movq %rax, 0x28(%rbx)
addq $0x30, %rbx
jmp 0x4a83c
movq %rbx, %rdi
popq %rbx
jmp 0x5465e
addq $0x50, %rbx
movq %rbx, %rax
popq %rbx
retq
nop
| _ZNK8nlohmann16json_abi_v3_11_26detail21iteration_proxy_valueINS1_9iter_implINS0_10basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEEEEEE3keyEv:
push rbx
mov rbx, rdi
mov rax, [rdi]
movzx eax, byte ptr [rax]
cmp eax, 1
jz short loc_4A82F
cmp eax, 2
jnz short loc_4A838
mov rsi, [rbx+20h]
cmp rsi, [rbx+28h]
jz short loc_4A829
lea rdi, [rbx+30h]
call _ZN8nlohmann16json_abi_v3_11_26detail13int_to_stringINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEEvRT_m; nlohmann::json_abi_v3_11_2::detail::int_to_string<std::string>(std::string &,ulong)
mov rax, [rbx+20h]
mov [rbx+28h], rax
loc_4A829:
add rbx, 30h ; '0'
jmp short loc_4A83C
loc_4A82F:
mov rdi, rbx
pop rbx
jmp _ZNK8nlohmann16json_abi_v3_11_26detail9iter_implINS0_10basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEEEE3keyEv; nlohmann::json_abi_v3_11_2::detail::iter_impl<nlohmann::json_abi_v3_11_2::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_2::adl_serializer,std::vector<uchar>>>::key(void)
loc_4A838:
add rbx, 50h ; 'P'
loc_4A83C:
mov rax, rbx
pop rbx
retn
| long long nlohmann::json_abi_v3_11_2::detail::iteration_proxy_value<nlohmann::json_abi_v3_11_2::detail::iter_impl<nlohmann::json_abi_v3_11_2::basic_json<std::map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_2::adl_serializer,std::vector<unsigned char>>>>::key(
unsigned __int8 **a1)
{
int v1; // eax
v1 = **a1;
if ( v1 == 1 )
return nlohmann::json_abi_v3_11_2::detail::iter_impl<nlohmann::json_abi_v3_11_2::basic_json<std::map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_2::adl_serializer,std::vector<unsigned char>>>::key(a1);
if ( v1 != 2 )
return (long long)(a1 + 10);
if ( a1[4] != a1[5] )
{
nlohmann::json_abi_v3_11_2::detail::int_to_string<std::string>(a1 + 6);
a1[5] = a1[4];
}
return (long long)(a1 + 6);
}
| key:
PUSH RBX
MOV RBX,RDI
MOV RAX,qword ptr [RDI]
MOVZX EAX,byte ptr [RAX]
CMP EAX,0x1
JZ 0x0014a82f
CMP EAX,0x2
JNZ 0x0014a838
MOV RSI,qword ptr [RBX + 0x20]
CMP RSI,qword ptr [RBX + 0x28]
JZ 0x0014a829
LEA RDI,[RBX + 0x30]
CALL 0x0015462b
MOV RAX,qword ptr [RBX + 0x20]
MOV qword ptr [RBX + 0x28],RAX
LAB_0014a829:
ADD RBX,0x30
JMP 0x0014a83c
LAB_0014a82f:
MOV RDI,RBX
POP RBX
JMP 0x0015465e
LAB_0014a838:
ADD RBX,0x50
LAB_0014a83c:
MOV RAX,RBX
POP RBX
RET
|
/* nlohmann::json_abi_v3_11_2::detail::iteration_proxy_value<nlohmann::json_abi_v3_11_2::detail::iter_impl<nlohmann::json_abi_v3_11_2::basic_json<std::map,
std::vector, std::__cxx11::string, bool, long, unsigned long, double, std::allocator,
nlohmann::json_abi_v3_11_2::adl_serializer, std::vector<unsigned char, std::allocator<unsigned
char> > > > >::key() const */
iteration_proxy_value<nlohmann::json_abi_v3_11_2::detail::iter_impl<nlohmann::json_abi_v3_11_2::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_2::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>>>>
* __thiscall
nlohmann::json_abi_v3_11_2::detail::
iteration_proxy_value<nlohmann::json_abi_v3_11_2::detail::iter_impl<nlohmann::json_abi_v3_11_2::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_2::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>>>>
::key(iteration_proxy_value<nlohmann::json_abi_v3_11_2::detail::iter_impl<nlohmann::json_abi_v3_11_2::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_2::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>>>>
*this)
{
iteration_proxy_value<nlohmann::json_abi_v3_11_2::detail::iter_impl<nlohmann::json_abi_v3_11_2::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_2::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>>>>
*piVar1;
if (**(char **)this != '\x01') {
if (**(char **)this == '\x02') {
if (*(ulong *)(this + 0x20) != *(ulong *)(this + 0x28)) {
int_to_string<std::__cxx11::string>((string *)(this + 0x30),*(ulong *)(this + 0x20));
*(int8 *)(this + 0x28) = *(int8 *)(this + 0x20);
}
piVar1 = this + 0x30;
}
else {
piVar1 = this + 0x50;
}
return piVar1;
}
piVar1 = (iteration_proxy_value<nlohmann::json_abi_v3_11_2::detail::iter_impl<nlohmann::json_abi_v3_11_2::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_2::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>>>>
*)iter_impl<nlohmann::json_abi_v3_11_2::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_2::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>>>
::key((iter_impl<nlohmann::json_abi_v3_11_2::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_2::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>>>
*)this);
return piVar1;
}
| |
42,664 | nlohmann::json_abi_v3_11_2::detail::iteration_proxy_value<nlohmann::json_abi_v3_11_2::detail::iter_impl<nlohmann::json_abi_v3_11_2::basic_json<std::map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_2::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>>>>::key() const | 7CodeWizard[P]stablediffusion/thirdparty/json.hpp | const string_type& key() const
{
JSON_ASSERT(anchor.m_object != nullptr);
switch (anchor.m_object->type())
{
// use integer array index as key
case value_t::array:
{
if (array_index != array_index_last)
{
int_to_string( array_index_str, array_index );
array_index_last = array_index;
}
return array_index_str;
}
// use key from the object
case value_t::object:
return anchor.key();
// use an empty key for all primitive types
case value_t::null:
case value_t::string:
case value_t::boolean:
case value_t::number_integer:
case value_t::number_unsigned:
case value_t::number_float:
case value_t::binary:
case value_t::discarded:
default:
return empty_str;
}
} | O3 | cpp | nlohmann::json_abi_v3_11_2::detail::iteration_proxy_value<nlohmann::json_abi_v3_11_2::detail::iter_impl<nlohmann::json_abi_v3_11_2::basic_json<std::map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_2::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>>>>::key() const:
pushq %rbx
movq %rdi, %rbx
movq (%rdi), %rax
movzbl (%rax), %eax
cmpl $0x1, %eax
je 0x6caad
cmpl $0x2, %eax
jne 0x6cab6
movq 0x20(%rbx), %rsi
cmpq 0x28(%rbx), %rsi
je 0x6caa7
leaq 0x30(%rbx), %rdi
callq 0x775ed
movq 0x20(%rbx), %rax
movq %rax, 0x28(%rbx)
addq $0x30, %rbx
jmp 0x6caba
movq %rbx, %rdi
popq %rbx
jmp 0x776ae
addq $0x50, %rbx
movq %rbx, %rax
popq %rbx
retq
nop
| _ZNK8nlohmann16json_abi_v3_11_26detail21iteration_proxy_valueINS1_9iter_implINS0_10basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEEEEEE3keyEv:
push rbx
mov rbx, rdi
mov rax, [rdi]
movzx eax, byte ptr [rax]
cmp eax, 1
jz short loc_6CAAD
cmp eax, 2
jnz short loc_6CAB6
mov rsi, [rbx+20h]
cmp rsi, [rbx+28h]
jz short loc_6CAA7
lea rdi, [rbx+30h]
call _ZN8nlohmann16json_abi_v3_11_26detail13int_to_stringINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEEvRT_m; nlohmann::json_abi_v3_11_2::detail::int_to_string<std::string>(std::string &,ulong)
mov rax, [rbx+20h]
mov [rbx+28h], rax
loc_6CAA7:
add rbx, 30h ; '0'
jmp short loc_6CABA
loc_6CAAD:
mov rdi, rbx
pop rbx
jmp _ZNK8nlohmann16json_abi_v3_11_26detail9iter_implINS0_10basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEEEE3keyEv; nlohmann::json_abi_v3_11_2::detail::iter_impl<nlohmann::json_abi_v3_11_2::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_2::adl_serializer,std::vector<uchar>>>::key(void)
loc_6CAB6:
add rbx, 50h ; 'P'
loc_6CABA:
mov rax, rbx
pop rbx
retn
| long long nlohmann::json_abi_v3_11_2::detail::iteration_proxy_value<nlohmann::json_abi_v3_11_2::detail::iter_impl<nlohmann::json_abi_v3_11_2::basic_json<std::map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_2::adl_serializer,std::vector<unsigned char>>>>::key(
unsigned __int8 **a1)
{
int v1; // eax
v1 = **a1;
if ( v1 == 1 )
return nlohmann::json_abi_v3_11_2::detail::iter_impl<nlohmann::json_abi_v3_11_2::basic_json<std::map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_2::adl_serializer,std::vector<unsigned char>>>::key(a1);
if ( v1 != 2 )
return (long long)(a1 + 10);
if ( a1[4] != a1[5] )
{
nlohmann::json_abi_v3_11_2::detail::int_to_string<std::string>(a1 + 6);
a1[5] = a1[4];
}
return (long long)(a1 + 6);
}
| |||
42,665 | rapidjson::GenericValue<rapidjson::UTF8<char>, rapidjson::MemoryPoolAllocator<rapidjson::CrtAllocator>>::GetDouble() const | mnn-tts/MNN/3rd_party/rapidjson/document.h | double GetDouble() const {
RAPIDJSON_ASSERT(IsNumber());
if ((data_.f.flags & kDoubleFlag) != 0) return data_.n.d; // exact type, no conversion.
if ((data_.f.flags & kIntFlag) != 0) return data_.n.i.i; // int -> double
if ((data_.f.flags & kUintFlag) != 0) return data_.n.u.u; // unsigned -> double
if ((data_.f.flags & kInt64Flag) != 0) return static_cast<double>(data_.n.i64); // int64_t -> double (may lose precision)
RAPIDJSON_ASSERT((data_.f.flags & kUint64Flag) != 0); return static_cast<double>(data_.n.u64); // uint64_t -> double (may lose precision)
} | O0 | c | rapidjson::GenericValue<rapidjson::UTF8<char>, rapidjson::MemoryPoolAllocator<rapidjson::CrtAllocator>>::GetDouble() const:
subq $0x18, %rsp
movq %rdi, 0x8(%rsp)
movq 0x8(%rsp), %rdi
movq %rdi, (%rsp)
callq 0xc530
testb $0x1, %al
jne 0xc40d
jmp 0xc40f
jmp 0xc42e
leaq 0x5d0c(%rip), %rdi # 0x12122
leaq 0x3d4c(%rip), %rsi # 0x10169
movl $0x6d2, %edx # imm = 0x6D2
leaq 0x5d04(%rip), %rcx # 0x1212d
callq 0x30c0
movq (%rsp), %rax
movzwl 0xe(%rax), %eax
andl $0x200, %eax # imm = 0x200
cmpl $0x0, %eax
je 0xc453
movq (%rsp), %rax
movsd (%rax), %xmm0
movsd %xmm0, 0x10(%rsp)
jmp 0xc522
movq (%rsp), %rax
movzwl 0xe(%rax), %eax
andl $0x20, %eax
cmpl $0x0, %eax
je 0xc476
movq (%rsp), %rax
cvtsi2sdl (%rax), %xmm0
movsd %xmm0, 0x10(%rsp)
jmp 0xc522
movq (%rsp), %rax
movzwl 0xe(%rax), %eax
andl $0x40, %eax
cmpl $0x0, %eax
je 0xc49c
movq (%rsp), %rax
movl (%rax), %eax
cvtsi2sd %rax, %xmm0
movsd %xmm0, 0x10(%rsp)
jmp 0xc522
movq (%rsp), %rax
movzwl 0xe(%rax), %eax
andl $0x80, %eax
cmpl $0x0, %eax
je 0xc4bf
movq (%rsp), %rax
cvtsi2sdq (%rax), %xmm0
movsd %xmm0, 0x10(%rsp)
jmp 0xc522
movq (%rsp), %rax
movzwl 0xe(%rax), %eax
andl $0x100, %eax # imm = 0x100
cmpl $0x0, %eax
je 0xc4d3
jmp 0xc4f2
leaq 0x5ce5(%rip), %rdi # 0x121bf
leaq 0x3c88(%rip), %rsi # 0x10169
movl $0x6d7, %edx # imm = 0x6D7
leaq 0x5c40(%rip), %rcx # 0x1212d
callq 0x30c0
movq (%rsp), %rax
movq (%rax), %xmm0
movaps 0x3b0f(%rip), %xmm1 # 0x10010
punpckldq %xmm1, %xmm0 # xmm0 = xmm0[0],xmm1[0],xmm0[1],xmm1[1]
movapd 0x3b13(%rip), %xmm1 # 0x10020
subpd %xmm1, %xmm0
movaps %xmm0, %xmm1
unpckhpd %xmm0, %xmm0 # xmm0 = xmm0[1,1]
addsd %xmm1, %xmm0
movsd %xmm0, 0x10(%rsp)
movsd 0x10(%rsp), %xmm0
addq $0x18, %rsp
retq
nopl (%rax)
| _ZNK9rapidjson12GenericValueINS_4UTF8IcEENS_19MemoryPoolAllocatorINS_12CrtAllocatorEEEE9GetDoubleEv:
sub rsp, 18h
mov [rsp+18h+var_10], rdi
mov rdi, [rsp+18h+var_10]
mov [rsp+18h+var_18], rdi
call _ZNK9rapidjson12GenericValueINS_4UTF8IcEENS_19MemoryPoolAllocatorINS_12CrtAllocatorEEEE8IsNumberEv; rapidjson::GenericValue<rapidjson::UTF8<char>,rapidjson::MemoryPoolAllocator<rapidjson::CrtAllocator>>::IsNumber(void)
test al, 1
jnz short loc_C40D
jmp short loc_C40F
loc_C40D:
jmp short loc_C42E
loc_C40F:
lea rdi, aIsnumber; "IsNumber()"
lea rsi, aWorkspaceLlm4b_0; "/workspace/llm4binary/github2025/mnn-tt"...
mov edx, 6D2h
lea rcx, aDoubleRapidjso_0; "double rapidjson::GenericValue<rapidjso"...
call ___assert_fail
loc_C42E:
mov rax, [rsp+18h+var_18]
movzx eax, word ptr [rax+0Eh]
and eax, 200h
cmp eax, 0
jz short loc_C453
mov rax, [rsp+18h+var_18]
movsd xmm0, qword ptr [rax]
movsd [rsp+18h+var_8], xmm0
jmp loc_C522
loc_C453:
mov rax, [rsp+18h+var_18]
movzx eax, word ptr [rax+0Eh]
and eax, 20h
cmp eax, 0
jz short loc_C476
mov rax, [rsp+18h+var_18]
cvtsi2sd xmm0, dword ptr [rax]
movsd [rsp+18h+var_8], xmm0
jmp loc_C522
loc_C476:
mov rax, [rsp+18h+var_18]
movzx eax, word ptr [rax+0Eh]
and eax, 40h
cmp eax, 0
jz short loc_C49C
mov rax, [rsp+18h+var_18]
mov eax, [rax]
cvtsi2sd xmm0, rax
movsd [rsp+18h+var_8], xmm0
jmp loc_C522
loc_C49C:
mov rax, [rsp+18h+var_18]
movzx eax, word ptr [rax+0Eh]
and eax, 80h
cmp eax, 0
jz short loc_C4BF
mov rax, [rsp+18h+var_18]
cvtsi2sd xmm0, qword ptr [rax]
movsd [rsp+18h+var_8], xmm0
jmp short loc_C522
loc_C4BF:
mov rax, [rsp+18h+var_18]
movzx eax, word ptr [rax+0Eh]
and eax, 100h
cmp eax, 0
jz short loc_C4D3
jmp short loc_C4F2
loc_C4D3:
lea rdi, aDataFFlagsKuin; "(data_.f.flags & kUint64Flag) != 0"
lea rsi, aWorkspaceLlm4b_0; "/workspace/llm4binary/github2025/mnn-tt"...
mov edx, 6D7h
lea rcx, aDoubleRapidjso_0; "double rapidjson::GenericValue<rapidjso"...
call ___assert_fail
loc_C4F2:
mov rax, [rsp+18h+var_18]
movq xmm0, qword ptr [rax]
movaps xmm1, cs:xmmword_10010
punpckldq xmm0, xmm1
movapd xmm1, cs:xmmword_10020
subpd xmm0, xmm1
movaps xmm1, xmm0
unpckhpd xmm0, xmm0
addsd xmm0, xmm1
movsd [rsp+18h+var_8], xmm0
loc_C522:
movsd xmm0, [rsp+18h+var_8]
add rsp, 18h
retn
| double rapidjson::GenericValue<rapidjson::UTF8<char>,rapidjson::MemoryPoolAllocator<rapidjson::CrtAllocator>>::GetDouble(
const __m128i *a1)
{
__m128d v1; // xmm1
if ( (rapidjson::GenericValue<rapidjson::UTF8<char>,rapidjson::MemoryPoolAllocator<rapidjson::CrtAllocator>>::IsNumber() & 1) == 0 )
__assert_fail(
"IsNumber()",
"/workspace/llm4binary/github2025/mnn-tts/MNN/3rd_party/rapidjson/document.h",
1746LL,
"double rapidjson::GenericValue<rapidjson::UTF8<>>::GetDouble() const [Encoding = rapidjson::UTF8<>, Allocator = ra"
"pidjson::MemoryPoolAllocator<>]");
if ( (a1->m128i_i16[7] & 0x200) != 0 )
return *(double *)a1->m128i_i64;
if ( (a1->m128i_i16[7] & 0x20) != 0 )
return (double)a1->m128i_i32[0];
if ( (a1->m128i_i16[7] & 0x40) != 0 )
return (double)a1->m128i_i32[0];
if ( (a1->m128i_i16[7] & 0x80) != 0 )
return (double)(int)a1->m128i_i64[0];
if ( (a1->m128i_i16[7] & 0x100) == 0 )
__assert_fail(
"(data_.f.flags & kUint64Flag) != 0",
"/workspace/llm4binary/github2025/mnn-tts/MNN/3rd_party/rapidjson/document.h",
1751LL,
"double rapidjson::GenericValue<rapidjson::UTF8<>>::GetDouble() const [Encoding = rapidjson::UTF8<>, Allocator = ra"
"pidjson::MemoryPoolAllocator<>]");
v1 = _mm_sub_pd((__m128d)_mm_unpacklo_epi32(_mm_loadl_epi64(a1), (__m128i)xmmword_10010), (__m128d)xmmword_10020);
return _mm_unpackhi_pd(v1, v1).m128d_f64[0] + v1.m128d_f64[0];
}
| GetDouble:
SUB RSP,0x18
MOV qword ptr [RSP + 0x8],RDI
MOV RDI,qword ptr [RSP + 0x8]
MOV qword ptr [RSP],RDI
CALL 0x0010c530
TEST AL,0x1
JNZ 0x0010c40d
JMP 0x0010c40f
LAB_0010c40d:
JMP 0x0010c42e
LAB_0010c40f:
LEA RDI,[0x112122]
LEA RSI,[0x110169]
MOV EDX,0x6d2
LEA RCX,[0x11212d]
CALL 0x001030c0
LAB_0010c42e:
MOV RAX,qword ptr [RSP]
MOVZX EAX,word ptr [RAX + 0xe]
AND EAX,0x200
CMP EAX,0x0
JZ 0x0010c453
MOV RAX,qword ptr [RSP]
MOVSD XMM0,qword ptr [RAX]
MOVSD qword ptr [RSP + 0x10],XMM0
JMP 0x0010c522
LAB_0010c453:
MOV RAX,qword ptr [RSP]
MOVZX EAX,word ptr [RAX + 0xe]
AND EAX,0x20
CMP EAX,0x0
JZ 0x0010c476
MOV RAX,qword ptr [RSP]
CVTSI2SD XMM0,dword ptr [RAX]
MOVSD qword ptr [RSP + 0x10],XMM0
JMP 0x0010c522
LAB_0010c476:
MOV RAX,qword ptr [RSP]
MOVZX EAX,word ptr [RAX + 0xe]
AND EAX,0x40
CMP EAX,0x0
JZ 0x0010c49c
MOV RAX,qword ptr [RSP]
MOV EAX,dword ptr [RAX]
CVTSI2SD XMM0,RAX
MOVSD qword ptr [RSP + 0x10],XMM0
JMP 0x0010c522
LAB_0010c49c:
MOV RAX,qword ptr [RSP]
MOVZX EAX,word ptr [RAX + 0xe]
AND EAX,0x80
CMP EAX,0x0
JZ 0x0010c4bf
MOV RAX,qword ptr [RSP]
CVTSI2SD XMM0,qword ptr [RAX]
MOVSD qword ptr [RSP + 0x10],XMM0
JMP 0x0010c522
LAB_0010c4bf:
MOV RAX,qword ptr [RSP]
MOVZX EAX,word ptr [RAX + 0xe]
AND EAX,0x100
CMP EAX,0x0
JZ 0x0010c4d3
JMP 0x0010c4f2
LAB_0010c4d3:
LEA RDI,[0x1121bf]
LEA RSI,[0x110169]
MOV EDX,0x6d7
LEA RCX,[0x11212d]
CALL 0x001030c0
LAB_0010c4f2:
MOV RAX,qword ptr [RSP]
MOVQ XMM0,qword ptr [RAX]
MOVAPS XMM1,xmmword ptr [0x00110010]
PUNPCKLDQ XMM0,XMM1
MOVAPD XMM1,xmmword ptr [0x00110020]
SUBPD XMM0,XMM1
MOVAPS XMM1,XMM0
UNPCKHPD XMM0,XMM0
ADDSD XMM0,XMM1
MOVSD qword ptr [RSP + 0x10],XMM0
LAB_0010c522:
MOVSD XMM0,qword ptr [RSP + 0x10]
ADD RSP,0x18
RET
|
/* WARNING: Globals starting with '_' overlap smaller symbols at the same address */
/* rapidjson::GenericValue<rapidjson::UTF8<char>,
rapidjson::MemoryPoolAllocator<rapidjson::CrtAllocator> >::GetDouble() const */
double __thiscall
rapidjson::
GenericValue<rapidjson::UTF8<char>,rapidjson::MemoryPoolAllocator<rapidjson::CrtAllocator>>::
GetDouble(GenericValue<rapidjson::UTF8<char>,rapidjson::MemoryPoolAllocator<rapidjson::CrtAllocator>>
*this)
{
int8 uVar1;
ulong uVar2;
int1 auVar3 [16];
double local_8;
uVar2 = IsNumber(this);
if ((uVar2 & 1) == 0) {
/* WARNING: Subroutine does not return */
__assert_fail("IsNumber()",
"/workspace/llm4binary/github2025/mnn-tts/MNN/3rd_party/rapidjson/document.h",
0x6d2,
"double rapidjson::GenericValue<rapidjson::UTF8<>>::GetDouble() const [Encoding = rapidjson::UTF8<>, Allocator = rapidjson::MemoryPoolAllocator<>]"
);
}
if ((*(ushort *)(this + 0xe) & 0x200) == 0) {
if ((*(ushort *)(this + 0xe) & 0x20) == 0) {
if ((*(ushort *)(this + 0xe) & 0x40) == 0) {
if ((*(ushort *)(this + 0xe) & 0x80) == 0) {
if ((*(ushort *)(this + 0xe) & 0x100) == 0) {
/* WARNING: Subroutine does not return */
__assert_fail("(data_.f.flags & kUint64Flag) != 0",
"/workspace/llm4binary/github2025/mnn-tts/MNN/3rd_party/rapidjson/document.h"
,0x6d7,
"double rapidjson::GenericValue<rapidjson::UTF8<>>::GetDouble() const [Encoding = rapidjson::UTF8<>, Allocator = rapidjson::MemoryPoolAllocator<>]"
);
}
uVar1 = *(int8 *)this;
auVar3._8_4_ = (int)((ulong)uVar1 >> 0x20);
auVar3._0_8_ = uVar1;
auVar3._12_4_ = _UNK_00110014;
local_8 = (auVar3._8_8_ - _UNK_00110028) +
((double)CONCAT44(_DAT_00110010,(int)uVar1) - _DAT_00110020);
}
else {
local_8 = (double)*(long *)this;
}
}
else {
local_8 = (double)*(uint *)this;
}
}
else {
local_8 = (double)*(int *)this;
}
}
else {
local_8 = *(double *)this;
}
return local_8;
}
| |
42,666 | fmt::v11::detail::dragonbox::cache_accessor<float>::get_cached_power(int) | zkingston[P]unknot/build_O0/_deps/fmt-src/include/fmt/format-inl.h | static auto get_cached_power(int k) noexcept -> uint64_t {
FMT_ASSERT(k >= float_info<float>::min_k && k <= float_info<float>::max_k,
"k is out of range");
static constexpr const uint64_t pow10_significands[] = {
0x81ceb32c4b43fcf5, 0xa2425ff75e14fc32, 0xcad2f7f5359a3b3f,
0xfd87b5f28300ca0e, 0x9e74d1b791e07e49, 0xc612062576589ddb,
0xf79687aed3eec552, 0x9abe14cd44753b53, 0xc16d9a0095928a28,
0xf1c90080baf72cb2, 0x971da05074da7bef, 0xbce5086492111aeb,
0xec1e4a7db69561a6, 0x9392ee8e921d5d08, 0xb877aa3236a4b44a,
0xe69594bec44de15c, 0x901d7cf73ab0acda, 0xb424dc35095cd810,
0xe12e13424bb40e14, 0x8cbccc096f5088cc, 0xafebff0bcb24aaff,
0xdbe6fecebdedd5bf, 0x89705f4136b4a598, 0xabcc77118461cefd,
0xd6bf94d5e57a42bd, 0x8637bd05af6c69b6, 0xa7c5ac471b478424,
0xd1b71758e219652c, 0x83126e978d4fdf3c, 0xa3d70a3d70a3d70b,
0xcccccccccccccccd, 0x8000000000000000, 0xa000000000000000,
0xc800000000000000, 0xfa00000000000000, 0x9c40000000000000,
0xc350000000000000, 0xf424000000000000, 0x9896800000000000,
0xbebc200000000000, 0xee6b280000000000, 0x9502f90000000000,
0xba43b74000000000, 0xe8d4a51000000000, 0x9184e72a00000000,
0xb5e620f480000000, 0xe35fa931a0000000, 0x8e1bc9bf04000000,
0xb1a2bc2ec5000000, 0xde0b6b3a76400000, 0x8ac7230489e80000,
0xad78ebc5ac620000, 0xd8d726b7177a8000, 0x878678326eac9000,
0xa968163f0a57b400, 0xd3c21bcecceda100, 0x84595161401484a0,
0xa56fa5b99019a5c8, 0xcecb8f27f4200f3a, 0x813f3978f8940985,
0xa18f07d736b90be6, 0xc9f2c9cd04674edf, 0xfc6f7c4045812297,
0x9dc5ada82b70b59e, 0xc5371912364ce306, 0xf684df56c3e01bc7,
0x9a130b963a6c115d, 0xc097ce7bc90715b4, 0xf0bdc21abb48db21,
0x96769950b50d88f5, 0xbc143fa4e250eb32, 0xeb194f8e1ae525fe,
0x92efd1b8d0cf37bf, 0xb7abc627050305ae, 0xe596b7b0c643c71a,
0x8f7e32ce7bea5c70, 0xb35dbf821ae4f38c, 0xe0352f62a19e306f};
return pow10_significands[k - float_info<float>::min_k];
} | O0 | c | fmt::v11::detail::dragonbox::cache_accessor<float>::get_cached_power(int):
pushq %rax
movl %edi, 0x4(%rsp)
xorl %eax, %eax
cmpl $-0x1f, 0x4(%rsp)
movb %al, 0x2(%rsp)
jl 0xa98de
cmpl $0x2e, 0x4(%rsp)
setle %al
movb %al, 0x2(%rsp)
movb 0x2(%rsp), %al
andb $0x1, %al
movb %al, 0x3(%rsp)
leaq 0x3(%rsp), %rdi
leaq 0x527544(%rip), %rsi # 0x5d0e38
callq 0xaba00
movl 0x4(%rsp), %eax
subl $-0x1f, %eax
movslq %eax, %rcx
leaq 0x527df6(%rip), %rax # 0x5d1700
movq (%rax,%rcx,8), %rax
popq %rcx
retq
| _ZN3fmt3v116detail9dragonbox14cache_accessorIfE16get_cached_powerEi:
push rax
mov [rsp+8+var_4], edi
xor eax, eax
cmp [rsp+8+var_4], 0FFFFFFE1h
mov [rsp+8+var_6], al
jl short loc_A98DE
cmp [rsp+8+var_4], 2Eh ; '.'
setle al
mov [rsp+8+var_6], al
loc_A98DE:
mov al, [rsp+8+var_6]
and al, 1
mov [rsp+8+var_5], al
lea rdi, [rsp+8+var_5]
lea rsi, aKIsOutOfRange; "k is out of range"
call _ZN3fmt3v116detail13ignore_unusedIJbA18_cEEEvDpRKT_; fmt::v11::detail::ignore_unused<bool,char [18]>(bool,char [18] const&)
mov eax, [rsp+8+var_4]
sub eax, 0FFFFFFE1h
movsxd rcx, eax
lea rax, _ZZN3fmt3v116detail9dragonbox14cache_accessorIfE16get_cached_powerEiE18pow10_significands; fmt::v11::detail::dragonbox::cache_accessor<float>::get_cached_power(int)::pow10_significands
mov rax, [rax+rcx*8]
pop rcx
retn
| long long fmt::v11::detail::dragonbox::cache_accessor<float>::get_cached_power(int a1)
{
int v1; // eax
bool v3; // [rsp+0h] [rbp-6h]
char v4; // [rsp+1h] [rbp-5h] BYREF
int v5; // [rsp+2h] [rbp-4h]
v4 = HIBYTE(v1);
v5 = a1;
v3 = 0;
if ( a1 >= -31 )
v3 = v5 <= 46;
v4 = v3;
fmt::v11::detail::ignore_unused<bool,char [18]>(&v4, "k is out of range");
return fmt::v11::detail::dragonbox::cache_accessor<float>::get_cached_power(int)::pow10_significands[v5 + 31];
}
| get_cached_power:
PUSH RAX
MOV dword ptr [RSP + 0x4],EDI
XOR EAX,EAX
CMP dword ptr [RSP + 0x4],-0x1f
MOV byte ptr [RSP + 0x2],AL
JL 0x001a98de
CMP dword ptr [RSP + 0x4],0x2e
SETLE AL
MOV byte ptr [RSP + 0x2],AL
LAB_001a98de:
MOV AL,byte ptr [RSP + 0x2]
AND AL,0x1
MOV byte ptr [RSP + 0x3],AL
LEA RDI,[RSP + 0x3]
LEA RSI,[0x6d0e38]
CALL 0x001aba00
MOV EAX,dword ptr [RSP + 0x4]
SUB EAX,-0x1f
MOVSXD RCX,EAX
LEA RAX,[0x6d1700]
MOV RAX,qword ptr [RAX + RCX*0x8]
POP RCX
RET
|
/* fmt::v11::detail::dragonbox::cache_accessor<float>::get_cached_power(int) */
int8 fmt::v11::detail::dragonbox::cache_accessor<float>::get_cached_power(int param_1)
{
bool local_5;
int local_4;
local_4 = param_1;
ignore_unused<bool,char[18]>(&local_5,"k is out of range");
return *(int8 *)(get_cached_power(int)::pow10_significands + (long)(local_4 + 0x1f) * 8);
}
| |
42,667 | std::hash<minja::Value>::operator()(minja::Value const&) const | monkey531[P]llama/common/minja.hpp | size_t operator()(const minja::Value & v) const {
if (!v.is_hashable())
throw std::runtime_error("Unsupported type for hashing: " + v.dump());
return std::hash<json>()(v.get<json>());
} | O0 | cpp | std::hash<minja::Value>::operator()(minja::Value const&) const:
subq $0x88, %rsp
movq %rdi, 0x80(%rsp)
movq %rsi, 0x78(%rsp)
movq 0x78(%rsp), %rdi
callq 0x130e80
testb $0x1, %al
jne 0x185fb4
movb $0x1, 0x2b(%rsp)
movl $0x10, %edi
callq 0x5c740
movq %rax, 0x10(%rsp)
movq 0x78(%rsp), %rsi
leaq 0x38(%rsp), %rdi
movl $0xffffffff, %edx # imm = 0xFFFFFFFF
xorl %ecx, %ecx
callq 0x11c590
jmp 0x185f12
leaq 0x95041(%rip), %rsi # 0x21af5a
leaq 0x58(%rsp), %rdi
leaq 0x38(%rsp), %rdx
callq 0x1013d0
jmp 0x185f2a
movq 0x10(%rsp), %rdi
leaq 0x58(%rsp), %rsi
callq 0x5c540
jmp 0x185f3b
movq 0x10(%rsp), %rdi
movb $0x0, 0x2b(%rsp)
movq 0x12705c(%rip), %rsi # 0x2acfa8
movq 0x12701d(%rip), %rdx # 0x2acf70
callq 0x5cbf0
jmp 0x186015
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x30(%rsp)
movl %eax, 0x2c(%rsp)
jmp 0x185f9f
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x30(%rsp)
movl %eax, 0x2c(%rsp)
jmp 0x185f95
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x30(%rsp)
movl %eax, 0x2c(%rsp)
leaq 0x58(%rsp), %rdi
callq 0x5d858
leaq 0x38(%rsp), %rdi
callq 0x5d858
testb $0x1, 0x2b(%rsp)
jne 0x185fa8
jmp 0x185fb2
movq 0x10(%rsp), %rdi
callq 0x5d110
jmp 0x18600b
movq 0x78(%rsp), %rsi
leaq 0x18(%rsp), %rdi
movq %rdi, (%rsp)
callq 0x186050
movq (%rsp), %rsi
leaq 0x2a(%rsp), %rdi
callq 0x186030
movq %rax, 0x8(%rsp)
jmp 0x185fdc
leaq 0x18(%rsp), %rdi
callq 0xaa420
movq 0x8(%rsp), %rax
addq $0x88, %rsp
retq
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x30(%rsp)
movl %eax, 0x2c(%rsp)
leaq 0x18(%rsp), %rdi
callq 0xaa420
movq 0x30(%rsp), %rdi
callq 0x5ccd0
nopw %cs:(%rax,%rax)
nop
| _ZNKSt4hashIN5minja5ValueEEclERKS1_:
sub rsp, 88h
mov qword ptr [rsp+88h+var_8], rdi; int
mov [rsp+88h+var_10], rsi; int
mov rdi, [rsp+88h+var_10]; this
call _ZNK5minja5Value11is_hashableEv; minja::Value::is_hashable(void)
test al, 1
jnz loc_185FB4
mov [rsp+88h+var_5D], 1
mov edi, 10h; thrown_size
call ___cxa_allocate_exception
mov [rsp+88h+var_78], rax
mov rsi, [rsp+88h+var_10]
lea rdi, [rsp+88h+var_50]
mov edx, 0FFFFFFFFh
xor ecx, ecx
call _ZNK5minja5Value4dumpB5cxx11Eib; minja::Value::dump(int,bool)
jmp short $+2
loc_185F12:
lea rsi, aUnsupportedTyp; "Unsupported type for hashing: "
lea rdi, [rsp+88h+var_30]
lea rdx, [rsp+88h+var_50]
call _ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_OS8_; std::operator+<char>(char const*,std::string&&)
jmp short $+2
loc_185F2A:
mov rdi, [rsp+88h+var_78]
lea rsi, [rsp+88h+var_30]
call __ZNSt13runtime_errorC1ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE; std::runtime_error::runtime_error(std::string const&)
jmp short $+2
loc_185F3B:
mov rdi, [rsp+88h+var_78]; void *
mov [rsp+88h+var_5D], 0
mov rsi, cs:_ZTISt13runtime_error_ptr; lptinfo
mov rdx, cs:_ZNSt13runtime_errorD1Ev_ptr; void (*)(void *)
call ___cxa_throw
jmp loc_186015
mov rcx, rax
mov eax, edx
mov [rsp+arg_28], rcx
mov [rsp+arg_24], eax
jmp short loc_185F9F
mov rcx, rax
mov eax, edx
mov [rsp+arg_28], rcx
mov [rsp+arg_24], eax
jmp short loc_185F95
mov rcx, rax
mov eax, edx
mov [rsp+arg_28], rcx
mov [rsp+arg_24], eax
lea rdi, [rsp+arg_50]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string()
loc_185F95:
lea rdi, [rsp+arg_30]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string()
loc_185F9F:
test [rsp+arg_23], 1
jnz short loc_185FA8
jmp short loc_185FB2
loc_185FA8:
mov rdi, [rsp+arg_8]; void *
call ___cxa_free_exception
loc_185FB2:
jmp short loc_18600B
loc_185FB4:
mov rsi, [rsp+88h+var_10]; int
lea rdi, [rsp+88h+var_70]; int
mov [rsp+88h+var_88], rdi; void *
call _ZNK5minja5Value3getIN8nlohmann16json_abi_v3_11_310basic_jsonINS3_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS3_14adl_serializerES6_IhSaIhEEvEEEET_v; minja::Value::get<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>(void)
mov rsi, [rsp+88h+var_88]
lea rdi, [rsp+88h+var_5E]
call _ZNKSt4hashIN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES4_IhSaIhEEvEEEclERKSE_; std::hash<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>::operator()(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const&)
mov [rsp+88h+var_80], rax
jmp short $+2
loc_185FDC:
lea rdi, [rsp+88h+var_70]
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 rax, [rsp+88h+var_80]
add rsp, 88h
retn
mov rcx, rax
mov eax, edx
mov [rsp+arg_28], rcx
mov [rsp+arg_24], eax
lea rdi, [rsp+arg_10]
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_18600B:
mov rdi, [rsp+arg_28]
call __Unwind_Resume
loc_186015:
nop word ptr [rax+rax+00000000h]
nop
| long long std::hash<minja::Value>::operator()(long long a1, minja::Value *a2)
{
long long v3; // [rsp+8h] [rbp-80h]
void *exception; // [rsp+10h] [rbp-78h]
int v5[4]; // [rsp+18h] [rbp-70h] BYREF
_BYTE v6[14]; // [rsp+2Ah] [rbp-5Eh] BYREF
_BYTE v7[32]; // [rsp+38h] [rbp-50h] BYREF
_BYTE v8[32]; // [rsp+58h] [rbp-30h] BYREF
minja::Value *v9; // [rsp+78h] [rbp-10h]
int v10[2]; // [rsp+80h] [rbp-8h]
*(_QWORD *)v10 = a1;
v9 = a2;
if ( (minja::Value::is_hashable(a2) & 1) == 0 )
{
exception = __cxa_allocate_exception(0x10uLL);
minja::Value::dump[abi:cxx11]((long long)v7, (long long)v9, 0xFFFFFFFF, 0);
std::operator+<char>((long long)v8, (long long)"Unsupported type for hashing: ", (long long)v7);
std::runtime_error::runtime_error(exception, v8);
v6[1] = 0;
__cxa_throw(
exception,
(struct type_info *)&`typeinfo for'std::runtime_error,
(void (*)(void *))&std::runtime_error::~runtime_error);
}
minja::Value::get<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>(
v5,
v9);
v3 = std::hash<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()(
v6,
v5);
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)v5);
return v3;
}
| |||
42,668 | std::hash<minja::Value>::operator()(minja::Value const&) const | monkey531[P]llama/common/minja.hpp | size_t operator()(const minja::Value & v) const {
if (!v.is_hashable())
throw std::runtime_error("Unsupported type for hashing: " + v.dump());
return std::hash<json>()(v.get<json>());
} | O3 | cpp | std::hash<minja::Value>::operator()(minja::Value const&) const:
pushq %rbp
pushq %r14
pushq %rbx
subq $0x40, %rsp
movq %rsi, %r14
cmpq $0x0, 0x10(%rsi)
jne 0xb4fe2
cmpq $0x0, 0x20(%r14)
jne 0xb4fe2
cmpq $0x0, 0x30(%r14)
jne 0xb4fe2
movq %rsp, %rbx
movq %rbx, %rdi
movq %r14, %rsi
callq 0xb50ca
movq %rbx, %rdi
callq 0xb55e7
movq %rax, %rbx
movq %rsp, %r14
movq %r14, %rdi
xorl %esi, %esi
callq 0x5c5ee
movq %r14, %rdi
callq 0x61a6a
movq %rbx, %rax
addq $0x40, %rsp
popq %rbx
popq %r14
popq %rbp
retq
movl $0x10, %edi
callq 0x1b4d0
movq %rax, %rbx
leaq 0x20(%rsp), %rdi
movq %r14, %rsi
movl $0xffffffff, %edx # imm = 0xFFFFFFFF
xorl %ecx, %ecx
callq 0x8a0c8
leaq 0x3f552(%rip), %rsi # 0xf455c
movq %rsp, %rdi
leaq 0x20(%rsp), %rdx
callq 0x7c85d
movb $0x1, %bpl
movq %rsp, %rsi
movq %rbx, %rdi
callq 0x1c0a0
xorl %ebp, %ebp
movq 0x7afba(%rip), %rsi # 0x12ffe8
movq 0x7af1b(%rip), %rdx # 0x12ff50
movq %rbx, %rdi
callq 0x1c1c0
movq %rax, %r14
leaq 0x10(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0xb505b
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x1ba60
leaq 0x30(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0xb5076
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x1ba60
testb %bpl, %bpl
jne 0xb50a0
jmp 0xb50c2
movq %rax, %r14
leaq 0x30(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0xb50a0
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x1ba60
jmp 0xb50a0
movq %rax, %r14
movq %rbx, %rdi
callq 0x1b760
jmp 0xb50c2
movq %rax, %r14
movq %rsp, %rbx
movq %rbx, %rdi
xorl %esi, %esi
callq 0x5c5ee
movq %rbx, %rdi
callq 0x61a6a
movq %r14, %rdi
callq 0x1c250
| _ZNKSt4hashIN5minja5ValueEEclERKS1_:
push rbp
push r14
push rbx
sub rsp, 40h
mov r14, rsi
cmp qword ptr [rsi+10h], 0
jnz short loc_B4FE2
cmp qword ptr [r14+20h], 0
jnz short loc_B4FE2
cmp qword ptr [r14+30h], 0
jnz short loc_B4FE2
mov rbx, rsp
mov rdi, rbx
mov rsi, r14
call _ZNK5minja5Value3getIN8nlohmann16json_abi_v3_11_310basic_jsonINS3_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS3_14adl_serializerES6_IhSaIhEEvEEEET_v; minja::Value::get<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>(void)
mov rdi, rbx
call _ZN8nlohmann16json_abi_v3_11_36detail4hashINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEEEmRKT_; nlohmann::json_abi_v3_11_3::detail::hash<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const&)
mov rbx, rax
mov r14, rsp
mov rdi, r14
xor esi, esi
call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE16assert_invariantEb; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::assert_invariant(bool)
mov rdi, r14
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE4dataD2Ev; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::data::~data()
mov rax, rbx
add rsp, 40h
pop rbx
pop r14
pop rbp
retn
loc_B4FE2:
mov edi, 10h; thrown_size
call ___cxa_allocate_exception
mov rbx, rax
lea rdi, [rsp+58h+var_38]
mov rsi, r14
mov edx, 0FFFFFFFFh
xor ecx, ecx
call _ZNK5minja5Value4dumpB5cxx11Eib; minja::Value::dump(int,bool)
lea rsi, aUnsupportedTyp; "Unsupported type for hashing: "
mov rdi, rsp
lea rdx, [rsp+58h+var_38]
call _ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_OS8_; std::operator+<char>(char const*,std::string&&)
mov bpl, 1
mov rsi, rsp
mov rdi, rbx
call __ZNSt13runtime_errorC1ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE; std::runtime_error::runtime_error(std::string const&)
xor ebp, ebp
mov rsi, cs:_ZTISt13runtime_error_ptr; lptinfo
mov rdx, cs:_ZTISt19_Sp_make_shared_tag; void (*)(void *)
mov rdi, rbx; void *
call ___cxa_throw
mov r14, rax
lea rax, [rsp+58h+var_48]
mov rdi, [rax-10h]; void *
cmp rdi, rax
jz short loc_B505B
mov rsi, [rsp+58h+var_48]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_B505B:
lea rax, [rsp+58h+var_28]
mov rdi, [rax-10h]; void *
cmp rdi, rax
jz short loc_B5076
mov rsi, [rsp+58h+var_28]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_B5076:
test bpl, bpl
jnz short loc_B50A0
jmp short loc_B50C2
mov r14, rax
lea rax, [rsp+58h+var_28]
mov rdi, [rax-10h]; void *
cmp rdi, rax
jz short loc_B50A0
mov rsi, [rsp+58h+var_28]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
jmp short loc_B50A0
mov r14, rax
loc_B50A0:
mov rdi, rbx; void *
call ___cxa_free_exception
jmp short loc_B50C2
mov r14, rax
mov rbx, rsp
mov rdi, rbx
xor esi, esi
call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE16assert_invariantEb; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::assert_invariant(bool)
mov rdi, rbx
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE4dataD2Ev; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::data::~data()
loc_B50C2:
mov rdi, r14
call __Unwind_Resume
| long long std::hash<minja::Value>::operator()(long long a1, _QWORD *a2)
{
long long v2; // rbx
void *exception; // rbx
char v5[16]; // [rsp+0h] [rbp-58h] BYREF
_BYTE v6[16]; // [rsp+20h] [rbp-38h] BYREF
if ( a2[2] || a2[4] || a2[6] )
{
exception = __cxa_allocate_exception(0x10uLL);
minja::Value::dump[abi:cxx11]((long long)v6, (long long)a2, 0xFFFFFFFF, 0);
std::operator+<char>((long long)v5, (long long)"Unsupported type for hashing: ", (long long)v6);
std::runtime_error::runtime_error(exception, v5);
__cxa_throw(
exception,
(struct type_info *)&`typeinfo for'std::runtime_error,
(void (*)(void *))&std::runtime_error::~runtime_error);
}
minja::Value::get<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>(
v5,
a2);
v2 = nlohmann::json_abi_v3_11_3::detail::hash<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>>(v5);
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(v5);
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(v5);
return v2;
}
| operator():
PUSH RBP
PUSH R14
PUSH RBX
SUB RSP,0x40
MOV R14,RSI
CMP qword ptr [RSI + 0x10],0x0
JNZ 0x001b4fe2
CMP qword ptr [R14 + 0x20],0x0
JNZ 0x001b4fe2
CMP qword ptr [R14 + 0x30],0x0
JNZ 0x001b4fe2
MOV RBX,RSP
MOV RDI,RBX
MOV RSI,R14
CALL 0x001b50ca
LAB_001b4fb6:
MOV RDI,RBX
CALL 0x001b55e7
LAB_001b4fbe:
MOV RBX,RAX
MOV R14,RSP
MOV RDI,R14
XOR ESI,ESI
CALL 0x0015c5ee
MOV RDI,R14
CALL 0x00161a6a
MOV RAX,RBX
ADD RSP,0x40
POP RBX
POP R14
POP RBP
RET
LAB_001b4fe2:
MOV EDI,0x10
CALL 0x0011b4d0
MOV RBX,RAX
LAB_001b4fef:
LEA RDI,[RSP + 0x20]
MOV RSI,R14
MOV EDX,0xffffffff
XOR ECX,ECX
CALL 0x0018a0c8
LAB_001b5003:
LEA RSI,[0x1f455c]
MOV RDI,RSP
LEA RDX,[RSP + 0x20]
CALL 0x0017c85d
MOV BPL,0x1
LAB_001b501a:
MOV RSI,RSP
MOV RDI,RBX
CALL 0x0011c0a0
XOR EBP,EBP
MOV RSI,qword ptr [0x0022ffe8]
MOV RDX,qword ptr [0x0022ff50]
MOV RDI,RBX
CALL 0x0011c1c0
|
/* std::hash<minja::Value>::TEMPNAMEPLACEHOLDERVALUE(minja::Value const&) const */
ulong __thiscall std::hash<minja::Value>::operator()(hash<minja::Value> *this,Value *param_1)
{
ulong uVar1;
runtime_error *this_00;
basic_json abStack_58 [32];
int1 local_38 [32];
if (((*(long *)(param_1 + 0x10) == 0) && (*(long *)(param_1 + 0x20) == 0)) &&
(*(long *)(param_1 + 0x30) == 0)) {
minja::Value::
get<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>
();
/* try { // try from 001b4fb6 to 001b4fbd has its CatchHandler @ 001b50aa */
uVar1 = nlohmann::json_abi_v3_11_3::detail::
hash<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>>
(abStack_58);
nlohmann::json_abi_v3_11_3::
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::assert_invariant(SUB81(abStack_58,0));
nlohmann::json_abi_v3_11_3::
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::data::~data((data *)abStack_58);
return uVar1;
}
this_00 = (runtime_error *)__cxa_allocate_exception(0x10);
/* try { // try from 001b4fef to 001b5002 has its CatchHandler @ 001b509d */
minja::Value::dump_abi_cxx11_((int)local_38,SUB81(param_1,0));
/* try { // try from 001b5003 to 001b5016 has its CatchHandler @ 001b507d */
operator+((char *)abStack_58,(string *)"Unsupported type for hashing: ");
/* try { // try from 001b501a to 001b503c has its CatchHandler @ 001b503d */
std::runtime_error::runtime_error(this_00,(string *)abStack_58);
/* WARNING: Subroutine does not return */
__cxa_throw(this_00,PTR_typeinfo_0022ffe8,PTR__runtime_error_0022ff50);
}
| |
42,669 | google::protobuf::DescriptorProto_ExtensionRange::_InternalParse(char const*, google::protobuf::internal::ParseContext*) | aimrt_mujoco_sim/_deps/protobuf-src/src/google/protobuf/descriptor.pb.cc | const char* DescriptorProto_ExtensionRange::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
_Internal::HasBits has_bits{};
while (!ctx->Done(&ptr)) {
uint32_t tag;
ptr = ::_pbi::ReadTag(ptr, &tag);
switch (tag >> 3) {
// optional int32 start = 1;
case 1:
if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 8)) {
_Internal::set_has_start(&has_bits);
_impl_.start_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
CHK_(ptr);
} else
goto handle_unusual;
continue;
// optional int32 end = 2;
case 2:
if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 16)) {
_Internal::set_has_end(&has_bits);
_impl_.end_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
CHK_(ptr);
} else
goto handle_unusual;
continue;
// optional .google.protobuf.ExtensionRangeOptions options = 3;
case 3:
if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 26)) {
ptr = ctx->ParseMessage(_internal_mutable_options(), ptr);
CHK_(ptr);
} else
goto handle_unusual;
continue;
default:
goto handle_unusual;
} // switch
handle_unusual:
if ((tag == 0) || ((tag & 7) == 4)) {
CHK_(ptr);
ctx->SetLastTag(tag);
goto message_done;
}
ptr = UnknownFieldParse(
tag,
_internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
ptr, ctx);
CHK_(ptr != nullptr);
} // while
message_done:
_impl_._has_bits_.Or(has_bits);
return ptr;
failure:
ptr = nullptr;
goto message_done;
#undef CHK_
} | O0 | cpp | google::protobuf::DescriptorProto_ExtensionRange::_InternalParse(char const*, google::protobuf::internal::ParseContext*):
subq $0x88, %rsp
movq %rdi, 0x58(%rsp)
movq %rsi, 0x50(%rsp)
movq %rdx, 0x48(%rsp)
movq 0x58(%rsp), %rax
movq %rax, 0x28(%rsp)
leaq 0x44(%rsp), %rax
movq %rax, 0x78(%rsp)
movq 0x78(%rsp), %rax
movq %rax, %rcx
addq $0x4, %rcx
movq %rcx, 0x30(%rsp)
movq %rax, 0x38(%rsp)
movq 0x38(%rsp), %rax
movq 0x30(%rsp), %rcx
movl $0x0, (%rax)
addq $0x4, %rax
cmpq %rcx, %rax
movq %rax, 0x38(%rsp)
jne 0x2b6400
jmp 0x2b6420
movq 0x48(%rsp), %rdi
leaq 0x50(%rsp), %rsi
callq 0x154570
xorb $-0x1, %al
testb $0x1, %al
jne 0x2b643a
jmp 0x2b664a
movq 0x50(%rsp), %rdi
leaq 0x40(%rsp), %rsi
xorl %edx, %edx
callq 0x1545a0
movq %rax, 0x50(%rsp)
movl 0x40(%rsp), %eax
shrl $0x3, %eax
movl %eax, 0x24(%rsp)
subl $0x1, %eax
je 0x2b647f
jmp 0x2b6462
movl 0x24(%rsp), %eax
subl $0x2, %eax
je 0x2b64cb
jmp 0x2b646d
movl 0x24(%rsp), %eax
subl $0x3, %eax
je 0x2b6514
jmp 0x2b656a
movl 0x40(%rsp), %eax
movzbl %al, %eax
cmpl $0x8, %eax
jne 0x2b64c1
leaq 0x44(%rsp), %rdi
callq 0x2dec40
leaq 0x50(%rsp), %rdi
callq 0x15cfa0
movl %eax, %ecx
movq 0x28(%rsp), %rax
movl %ecx, 0x20(%rax)
cmpq $0x0, 0x50(%rsp)
setne %al
xorb $-0x1, %al
testb $0x1, %al
jne 0x2b64ba
jmp 0x2b64bf
jmp 0x2b666c
jmp 0x2b64c6
jmp 0x2b656c
jmp 0x2b6420
movl 0x40(%rsp), %eax
movzbl %al, %eax
cmpl $0x10, %eax
jne 0x2b650d
leaq 0x44(%rsp), %rdi
callq 0x2dec70
leaq 0x50(%rsp), %rdi
callq 0x15cfa0
movl %eax, %ecx
movq 0x28(%rsp), %rax
movl %ecx, 0x24(%rax)
cmpq $0x0, 0x50(%rsp)
setne %al
xorb $-0x1, %al
testb $0x1, %al
jne 0x2b6506
jmp 0x2b650b
jmp 0x2b666c
jmp 0x2b650f
jmp 0x2b656c
jmp 0x2b6420
movl 0x40(%rsp), %eax
movzbl %al, %eax
cmpl $0x1a, %eax
jne 0x2b6563
movq 0x28(%rsp), %rdi
movq 0x48(%rsp), %rax
movq %rax, 0x18(%rsp)
callq 0x28c8d0
movq 0x18(%rsp), %rdi
movq %rax, %rsi
movq 0x50(%rsp), %rdx
callq 0x179c20
movq %rax, 0x50(%rsp)
cmpq $0x0, 0x50(%rsp)
setne %al
xorb $-0x1, %al
testb $0x1, %al
jne 0x2b655c
jmp 0x2b6561
jmp 0x2b666c
jmp 0x2b6565
jmp 0x2b656c
jmp 0x2b6420
jmp 0x2b656c
cmpl $0x0, 0x40(%rsp)
je 0x2b657f
movl 0x40(%rsp), %eax
andl $0x7, %eax
cmpl $0x4, %eax
jne 0x2b65a8
cmpq $0x0, 0x50(%rsp)
setne %al
xorb $-0x1, %al
testb $0x1, %al
jne 0x2b6590
jmp 0x2b6595
jmp 0x2b666c
movq 0x48(%rsp), %rdi
movl 0x40(%rsp), %esi
callq 0x154730
jmp 0x2b664c
movq 0x28(%rsp), %rax
movl 0x40(%rsp), %ecx
movq %rcx, 0x8(%rsp)
addq $0x8, %rax
movq %rax, 0x60(%rsp)
movq 0x60(%rsp), %rax
movq %rax, 0x10(%rsp)
movq %rax, 0x70(%rsp)
movq 0x70(%rsp), %rax
movq %rax, 0x80(%rsp)
movq 0x80(%rsp), %rax
movq (%rax), %rax
andq $0x1, %rax
cmpq $0x0, %rax
je 0x2b6605
movq 0x10(%rsp), %rdi
callq 0x155370
addq $0x8, %rax
movq %rax, 0x68(%rsp)
jmp 0x2b6614
movq 0x10(%rsp), %rdi
callq 0x155800
movq %rax, 0x68(%rsp)
movq 0x8(%rsp), %rdi
movq 0x68(%rsp), %rsi
movq 0x50(%rsp), %rdx
movq 0x48(%rsp), %rcx
callq 0x1e74d0
movq %rax, 0x50(%rsp)
cmpq $0x0, 0x50(%rsp)
setne %al
xorb $-0x1, %al
testb $0x1, %al
jne 0x2b6643
jmp 0x2b6645
jmp 0x2b666c
jmp 0x2b6420
jmp 0x2b664c
movq 0x28(%rsp), %rdi
addq $0x10, %rdi
leaq 0x44(%rsp), %rsi
callq 0x2de500
movq 0x50(%rsp), %rax
addq $0x88, %rsp
retq
movq $0x0, 0x50(%rsp)
jmp 0x2b664c
nopw (%rax,%rax)
| _ZN6google8protobuf30DescriptorProto_ExtensionRange14_InternalParseEPKcPNS0_8internal12ParseContextE:
sub rsp, 88h
mov qword ptr [rsp+88h+var_30], rdi; int
mov [rsp+88h+var_38], rsi
mov [rsp+88h+var_40], rdx; int
mov rax, qword ptr [rsp+88h+var_30]
mov [rsp+88h+var_60], rax; int
lea rax, [rsp+88h+var_48+4]
mov qword ptr [rsp+88h+var_10], rax; int
mov rax, qword ptr [rsp+88h+var_10]
mov rcx, rax
add rcx, 4
mov qword ptr [rsp+88h+var_58], rcx; int
mov qword ptr [rsp+88h+var_50], rax
loc_2B6400:
mov rax, qword ptr [rsp+88h+var_50]
mov rcx, qword ptr [rsp+88h+var_58]
mov dword ptr [rax], 0
add rax, 4
cmp rax, rcx
mov qword ptr [rsp+88h+var_50], rax; int
jnz short loc_2B6400
jmp short $+2
loc_2B6420:
mov rdi, [rsp+88h+var_40]; this
lea rsi, [rsp+88h+var_38]; char **
call _ZN6google8protobuf8internal12ParseContext4DoneEPPKc; google::protobuf::internal::ParseContext::Done(char const**)
xor al, 0FFh
test al, 1
jnz short loc_2B643A
jmp loc_2B664A
loc_2B643A:
mov rdi, [rsp+88h+var_38]; this
lea rsi, [rsp+88h+var_48]; char **
xor edx, edx; unsigned int *
call _ZN6google8protobuf8internal7ReadTagEPKcPjj; google::protobuf::internal::ReadTag(char const*,uint *,uint)
mov [rsp+88h+var_38], rax; int
mov eax, dword ptr [rsp+88h+var_48]
shr eax, 3
mov [rsp+88h+var_64], eax
sub eax, 1
jz short loc_2B647F
jmp short $+2
loc_2B6462:
mov eax, [rsp+88h+var_64]
sub eax, 2
jz short loc_2B64CB
jmp short $+2
loc_2B646D:
mov eax, [rsp+88h+var_64]
sub eax, 3
jz loc_2B6514
jmp loc_2B656A
loc_2B647F:
mov eax, dword ptr [rsp+88h+var_48]
movzx eax, al
cmp eax, 8
jnz short loc_2B64C1
lea rdi, [rsp+88h+var_48+4]
call _ZN6google8protobuf30DescriptorProto_ExtensionRange9_Internal13set_has_startEPNS0_8internal7HasBitsILm1EEE; google::protobuf::DescriptorProto_ExtensionRange::_Internal::set_has_start(google::protobuf::internal::HasBits<1ul> *)
lea rdi, [rsp+88h+var_38]; this
call _ZN6google8protobuf8internal12ReadVarint32EPPKc; google::protobuf::internal::ReadVarint32(char const**)
mov ecx, eax
mov rax, [rsp+88h+var_60]
mov [rax+20h], ecx
cmp [rsp+88h+var_38], 0
setnz al
xor al, 0FFh
test al, 1
jnz short loc_2B64BA
jmp short loc_2B64BF
loc_2B64BA:
jmp loc_2B666C
loc_2B64BF:
jmp short loc_2B64C6
loc_2B64C1:
jmp loc_2B656C
loc_2B64C6:
jmp loc_2B6420
loc_2B64CB:
mov eax, dword ptr [rsp+88h+var_48]
movzx eax, al
cmp eax, 10h
jnz short loc_2B650D
lea rdi, [rsp+88h+var_48+4]
call _ZN6google8protobuf30DescriptorProto_ExtensionRange9_Internal11set_has_endEPNS0_8internal7HasBitsILm1EEE; google::protobuf::DescriptorProto_ExtensionRange::_Internal::set_has_end(google::protobuf::internal::HasBits<1ul> *)
lea rdi, [rsp+88h+var_38]; this
call _ZN6google8protobuf8internal12ReadVarint32EPPKc; google::protobuf::internal::ReadVarint32(char const**)
mov ecx, eax
mov rax, [rsp+88h+var_60]
mov [rax+24h], ecx
cmp [rsp+88h+var_38], 0
setnz al
xor al, 0FFh
test al, 1
jnz short loc_2B6506
jmp short loc_2B650B
loc_2B6506:
jmp loc_2B666C
loc_2B650B:
jmp short loc_2B650F
loc_2B650D:
jmp short loc_2B656C
loc_2B650F:
jmp loc_2B6420
loc_2B6514:
mov eax, dword ptr [rsp+88h+var_48]
movzx eax, al
cmp eax, 1Ah
jnz short loc_2B6563
mov rdi, [rsp+88h+var_60]; this
mov rax, [rsp+88h+var_40]
mov [rsp+88h+var_70], rax
call _ZN6google8protobuf30DescriptorProto_ExtensionRange25_internal_mutable_optionsEv; google::protobuf::DescriptorProto_ExtensionRange::_internal_mutable_options(void)
mov rdi, [rsp+88h+var_70]; this
mov rsi, rax; google::protobuf::MessageLite *
mov rdx, [rsp+88h+var_38]; char *
call _ZN6google8protobuf8internal12ParseContext12ParseMessageEPNS0_11MessageLiteEPKc; google::protobuf::internal::ParseContext::ParseMessage(google::protobuf::MessageLite *,char const*)
mov [rsp+88h+var_38], rax
cmp [rsp+88h+var_38], 0
setnz al
xor al, 0FFh
test al, 1
jnz short loc_2B655C
jmp short loc_2B6561
loc_2B655C:
jmp loc_2B666C
loc_2B6561:
jmp short loc_2B6565
loc_2B6563:
jmp short loc_2B656C
loc_2B6565:
jmp loc_2B6420
loc_2B656A:
jmp short $+2
loc_2B656C:
cmp dword ptr [rsp+88h+var_48], 0
jz short loc_2B657F
mov eax, dword ptr [rsp+88h+var_48]
and eax, 7
cmp eax, 4
jnz short loc_2B65A8
loc_2B657F:
cmp [rsp+88h+var_38], 0
setnz al
xor al, 0FFh
test al, 1
jnz short loc_2B6590
jmp short loc_2B6595
loc_2B6590:
jmp loc_2B666C
loc_2B6595:
mov rdi, [rsp+88h+var_40]; this
mov esi, dword ptr [rsp+88h+var_48]; unsigned int
call _ZN6google8protobuf8internal18EpsCopyInputStream10SetLastTagEj; google::protobuf::internal::EpsCopyInputStream::SetLastTag(uint)
jmp loc_2B664C
loc_2B65A8:
mov rax, [rsp+88h+var_60]
mov ecx, dword ptr [rsp+88h+var_48]; int
mov [rsp+88h+var_80], rcx; int
add rax, 8
mov [rsp+88h+var_28], rax; int
mov rax, [rsp+88h+var_28]
mov [rsp+88h+var_78], rax; void *
mov [rsp+88h+var_18], rax; int
mov rax, [rsp+88h+var_18]
mov [rsp+88h+var_8], rax; __int64
mov rax, [rsp+88h+var_8]
mov rax, [rax]
and rax, 1
cmp rax, 0
jz short loc_2B6605
mov rdi, [rsp+88h+var_78]
call _ZNK6google8protobuf8internal16InternalMetadata8PtrValueINS2_9ContainerINS0_15UnknownFieldSetEEEEEPT_v; google::protobuf::internal::InternalMetadata::PtrValue<google::protobuf::internal::InternalMetadata::Container<google::protobuf::UnknownFieldSet>>(void)
add rax, 8
mov [rsp+88h+var_20], rax
jmp short loc_2B6614
loc_2B6605:
mov rdi, [rsp+88h+var_78]; int
call _ZN6google8protobuf8internal16InternalMetadata27mutable_unknown_fields_slowINS0_15UnknownFieldSetEEEPT_v; google::protobuf::internal::InternalMetadata::mutable_unknown_fields_slow<google::protobuf::UnknownFieldSet>(void)
mov [rsp+88h+var_20], rax
loc_2B6614:
mov rdi, [rsp+88h+var_80]; this
mov rsi, [rsp+88h+var_20]; unsigned __int64
mov rdx, [rsp+88h+var_38]; google::protobuf::UnknownFieldSet *
mov rcx, [rsp+88h+var_40]; char *
call _ZN6google8protobuf8internal17UnknownFieldParseEmPNS0_15UnknownFieldSetEPKcPNS1_12ParseContextE; google::protobuf::internal::UnknownFieldParse(ulong,google::protobuf::UnknownFieldSet *,char const*,google::protobuf::internal::ParseContext *)
mov [rsp+88h+var_38], rax
cmp [rsp+88h+var_38], 0
setnz al
xor al, 0FFh
test al, 1
jnz short loc_2B6643
jmp short loc_2B6645
loc_2B6643:
jmp short loc_2B666C
loc_2B6645:
jmp loc_2B6420
loc_2B664A:
jmp short $+2
loc_2B664C:
mov rdi, [rsp+88h+var_60]
add rdi, 10h
lea rsi, [rsp+88h+var_48+4]
call _ZN6google8protobuf8internal7HasBitsILm1EE2OrERKS3_; google::protobuf::internal::HasBits<1ul>::Or(google::protobuf::internal::HasBits<1ul> const&)
mov rax, [rsp+88h+var_38]
add rsp, 88h
retn
loc_2B666C:
mov [rsp+88h+var_38], 0
jmp short loc_2B664C
| google::protobuf::internal * google::protobuf::DescriptorProto_ExtensionRange::_InternalParse(
google::protobuf::DescriptorProto_ExtensionRange *this,
google::protobuf::internal *a2,
google::protobuf::internal::ParseContext *a3)
{
google::protobuf::MessageLite *v3; // rax
google::protobuf::internal::ParseContext *v4; // r8
google::protobuf::internal *v6; // [rsp+8h] [rbp-80h]
_QWORD *v7; // [rsp+10h] [rbp-78h]
google::protobuf::internal::EpsCopyInputStream *v8; // [rsp+18h] [rbp-70h]
unsigned int v9; // [rsp+24h] [rbp-64h]
google::protobuf::internal::EpsCopyInputStream **v10; // [rsp+38h] [rbp-50h]
char *v11; // [rsp+40h] [rbp-48h] BYREF
google::protobuf::internal::EpsCopyInputStream *v12; // [rsp+48h] [rbp-40h] BYREF
google::protobuf::internal *Tag; // [rsp+50h] [rbp-38h] BYREF
int v14[2]; // [rsp+58h] [rbp-30h]
void *v15; // [rsp+60h] [rbp-28h]
unsigned long long v16; // [rsp+68h] [rbp-20h]
long long v17; // [rsp+70h] [rbp-18h]
int v18[2]; // [rsp+78h] [rbp-10h]
long long v19; // [rsp+80h] [rbp-8h]
*(_QWORD *)v14 = this;
Tag = a2;
v12 = a3;
*(_QWORD *)v18 = (char *)&v11 + 4;
v10 = (google::protobuf::internal::EpsCopyInputStream **)((char *)&v11 + 4);
do
{
*(_DWORD *)v10 = 0;
v10 = (google::protobuf::internal::EpsCopyInputStream **)((char *)v10 + 4);
}
while ( v10 != &v12 );
while ( (google::protobuf::internal::ParseContext::Done(v12, (const char **)&Tag) & 1) == 0 )
{
Tag = (google::protobuf::internal *)google::protobuf::internal::ReadTag(Tag, (char *)&v11, 0LL);
v9 = (unsigned int)v11 >> 3;
if ( (unsigned int)v11 >> 3 == 1 )
{
if ( (unsigned __int8)v11 != 8 )
goto LABEL_19;
google::protobuf::DescriptorProto_ExtensionRange::_Internal::set_has_start((char *)&v11 + 4);
*((_DWORD *)this + 8) = google::protobuf::internal::ReadVarint32(
(google::protobuf::internal *)&Tag,
(const char **)&v11);
if ( !Tag )
goto LABEL_29;
}
else if ( v9 == 2 )
{
if ( (unsigned __int8)v11 != 16 )
goto LABEL_19;
google::protobuf::DescriptorProto_ExtensionRange::_Internal::set_has_end((char *)&v11 + 4);
*((_DWORD *)this + 9) = google::protobuf::internal::ReadVarint32(
(google::protobuf::internal *)&Tag,
(const char **)&v11);
if ( !Tag )
goto LABEL_29;
}
else if ( v9 == 3 && (unsigned __int8)v11 == 26 )
{
v8 = v12;
v3 = (google::protobuf::MessageLite *)google::protobuf::DescriptorProto_ExtensionRange::_internal_mutable_options(this);
Tag = (google::protobuf::internal *)google::protobuf::internal::ParseContext::ParseMessage(v8, v3, (char *)Tag);
if ( !Tag )
goto LABEL_29;
}
else
{
LABEL_19:
if ( !(_DWORD)v11 || ((unsigned __int8)v11 & 7) == 4 )
{
if ( Tag )
{
google::protobuf::internal::EpsCopyInputStream::SetLastTag(v12, (int)v11);
break;
}
LABEL_29:
Tag = 0LL;
break;
}
v6 = (google::protobuf::internal *)(unsigned int)v11;
v15 = (char *)this + 8;
v7 = (_QWORD *)((char *)this + 8);
v17 = (long long)this + 8;
v19 = (long long)this + 8;
if ( (*((_QWORD *)this + 1) & 1LL) != 0 )
v16 = google::protobuf::internal::InternalMetadata::PtrValue<google::protobuf::internal::InternalMetadata::Container<google::protobuf::UnknownFieldSet>>(v7)
+ 8;
else
v16 = (unsigned long long)google::protobuf::internal::InternalMetadata::mutable_unknown_fields_slow<google::protobuf::UnknownFieldSet>(
v7,
(unsigned long long)&v11);
Tag = (google::protobuf::internal *)google::protobuf::internal::UnknownFieldParse(
v6,
v16,
Tag,
(const char *)v12,
v4);
if ( !Tag )
goto LABEL_29;
}
}
google::protobuf::internal::HasBits<1ul>::Or((char *)this + 16, (char *)&v11 + 4);
return Tag;
}
| |||
42,670 | google::protobuf::DescriptorProto_ExtensionRange::_InternalParse(char const*, google::protobuf::internal::ParseContext*) | aimrt_mujoco_sim/_deps/protobuf-src/src/google/protobuf/descriptor.pb.cc | const char* DescriptorProto_ExtensionRange::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
_Internal::HasBits has_bits{};
while (!ctx->Done(&ptr)) {
uint32_t tag;
ptr = ::_pbi::ReadTag(ptr, &tag);
switch (tag >> 3) {
// optional int32 start = 1;
case 1:
if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 8)) {
_Internal::set_has_start(&has_bits);
_impl_.start_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
CHK_(ptr);
} else
goto handle_unusual;
continue;
// optional int32 end = 2;
case 2:
if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 16)) {
_Internal::set_has_end(&has_bits);
_impl_.end_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
CHK_(ptr);
} else
goto handle_unusual;
continue;
// optional .google.protobuf.ExtensionRangeOptions options = 3;
case 3:
if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 26)) {
ptr = ctx->ParseMessage(_internal_mutable_options(), ptr);
CHK_(ptr);
} else
goto handle_unusual;
continue;
default:
goto handle_unusual;
} // switch
handle_unusual:
if ((tag == 0) || ((tag & 7) == 4)) {
CHK_(ptr);
ctx->SetLastTag(tag);
goto message_done;
}
ptr = UnknownFieldParse(
tag,
_internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
ptr, ctx);
CHK_(ptr != nullptr);
} // while
message_done:
_impl_._has_bits_.Or(has_bits);
return ptr;
failure:
ptr = nullptr;
goto message_done;
#undef CHK_
} | O3 | cpp | google::protobuf::DescriptorProto_ExtensionRange::_InternalParse(char const*, google::protobuf::internal::ParseContext*):
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdx, %r14
movq %rdi, %rbx
movq %rsp, %rax
movq %rsi, (%rax)
movl 0x5c(%rdx), %edx
movq %r14, %rdi
movq %rax, %rsi
callq 0x7347e
xorl %ebp, %ebp
testb %al, %al
je 0xeba5d
orl %ebp, 0x10(%rbx)
movq (%rsp), %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x8(%rbx), %r15
xorl %ebp, %ebp
movq %rsp, %r12
movq (%rsp), %rdi
movzbl (%rdi), %r13d
leaq 0x1(%rdi), %rax
testb %r13b, %r13b
jns 0xeba9e
movzbl (%rax), %eax
movl %eax, %ecx
shll $0x7, %ecx
addl %ecx, %r13d
addl $-0x80, %r13d
testb %al, %al
js 0xeba93
addq $0x2, %rdi
movq %rdi, %rax
jmp 0xeba9e
movl %r13d, %esi
callq 0x7ce8e
movl %edx, %r13d
movq %rax, (%rsp)
movl %r13d, %ecx
shrl $0x3, %ecx
cmpl $0x3, %ecx
je 0xebb3a
cmpl $0x2, %ecx
je 0xebb00
cmpl $0x1, %ecx
jne 0xebb7c
cmpb $0x8, %r13b
jne 0xebb7c
orl $0x2, %ebp
movzbl (%rax), %esi
leaq 0x1(%rax), %rcx
testb %sil, %sil
jns 0xebaf4
movzbl (%rcx), %ecx
movl %ecx, %edx
shll $0x7, %edx
addl %edx, %esi
addl $-0x80, %esi
testb %cl, %cl
js 0xebbe5
addq $0x2, %rax
movq %rax, %rcx
movq %rcx, (%rsp)
movl %esi, 0x20(%rbx)
jmp 0xebbb8
cmpb $0x10, %r13b
jne 0xebb7c
orl $0x4, %ebp
movzbl (%rax), %esi
leaq 0x1(%rax), %rcx
testb %sil, %sil
jns 0xebb31
movzbl (%rcx), %ecx
movl %ecx, %edx
shll $0x7, %edx
addl %edx, %esi
addl $-0x80, %esi
testb %cl, %cl
js 0xebbd4
addq $0x2, %rax
movq %rax, %rcx
movq %rcx, (%rsp)
movl %esi, 0x24(%rbx)
jmp 0xebbb8
cmpb $0x1a, %r13b
jne 0xebb7c
orb $0x1, 0x10(%rbx)
movq 0x18(%rbx), %rsi
testq %rsi, %rsi
jne 0xebb6f
movq (%r15), %rax
movq %rax, %rdi
andq $-0x4, %rdi
testb $0x1, %al
jne 0xebc07
callq 0xfa418
movq %rax, %rsi
movq %rax, 0x18(%rbx)
movq (%rsp), %rax
movq %r14, %rdi
movq %rax, %rdx
callq 0x2fce4
jmp 0xebbaf
testl %r13d, %r13d
je 0xebc0f
movl %r13d, %ecx
andl $0x7, %ecx
cmpl $0x4, %ecx
je 0xebc0f
movq (%r15), %rsi
testb $0x1, %sil
je 0xebbf6
andq $-0x4, %rsi
addq $0x8, %rsi
movl %r13d, %edi
movq %rax, %rdx
movq %r14, %rcx
callq 0xa3709
movq %rax, (%rsp)
testq %rax, %rax
je 0xebc20
movl 0x5c(%r14), %edx
movq %r14, %rdi
movq %r12, %rsi
callq 0x7347e
testb %al, %al
je 0xeba66
jmp 0xeba47
movq %rax, %rdi
callq 0x7ce02
movq %rax, (%rsp)
movl %edx, 0x24(%rbx)
jmp 0xebbb3
movq %rax, %rdi
callq 0x7ce02
movq %rax, (%rsp)
movl %edx, 0x20(%rbx)
jmp 0xebbb3
movq %r15, %rdi
callq 0x735aa
movq %rax, %rsi
movq (%rsp), %rax
jmp 0xebba1
movq (%rdi), %rdi
jmp 0xebb5f
testq %rax, %rax
je 0xebc20
decl %r13d
movl %r13d, 0x50(%r14)
jmp 0xeba47
movq $0x0, (%rsp)
jmp 0xeba47
nop
| _ZN6google8protobuf30DescriptorProto_ExtensionRange14_InternalParseEPKcPNS0_8internal12ParseContextE:
push rbp
push r15
push r14
push r13
push r12
push rbx
push rax
mov r14, rdx
mov rbx, rdi
mov rax, rsp
mov [rax], rsi
mov edx, [rdx+5Ch]; int
mov rdi, r14; this
mov rsi, rax; char **
call _ZN6google8protobuf8internal18EpsCopyInputStream13DoneWithCheckEPPKci; google::protobuf::internal::EpsCopyInputStream::DoneWithCheck(char const**,int)
xor ebp, ebp
test al, al
jz short loc_EBA5D
loc_EBA47:
or [rbx+10h], ebp
mov rax, [rsp+38h+var_38]
add rsp, 8
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
loc_EBA5D:
lea r15, [rbx+8]
xor ebp, ebp
mov r12, rsp
loc_EBA66:
mov rdi, [rsp+38h+var_38]; this
movzx r13d, byte ptr [rdi]
lea rax, [rdi+1]
test r13b, r13b
jns short loc_EBA9E
movzx eax, byte ptr [rax]
mov ecx, eax
shl ecx, 7
add r13d, ecx
add r13d, 0FFFFFF80h
test al, al
js short loc_EBA93
add rdi, 2
mov rax, rdi
jmp short loc_EBA9E
loc_EBA93:
mov esi, r13d; char *
call _ZN6google8protobuf8internal15ReadTagFallbackEPKcj; google::protobuf::internal::ReadTagFallback(char const*,uint)
mov r13d, edx
loc_EBA9E:
mov [rsp+38h+var_38], rax
mov ecx, r13d
shr ecx, 3
cmp ecx, 3
jz loc_EBB3A
cmp ecx, 2
jz short loc_EBB00
cmp ecx, 1
jnz loc_EBB7C
cmp r13b, 8
jnz loc_EBB7C
or ebp, 2
movzx esi, byte ptr [rax]
lea rcx, [rax+1]
test sil, sil
jns short loc_EBAF4
movzx ecx, byte ptr [rcx]
mov edx, ecx
shl edx, 7; unsigned int
add esi, edx
add esi, 0FFFFFF80h; char *
test cl, cl
js loc_EBBE5
add rax, 2
mov rcx, rax
loc_EBAF4:
mov [rsp+38h+var_38], rcx
mov [rbx+20h], esi
jmp loc_EBBB8
loc_EBB00:
cmp r13b, 10h
jnz short loc_EBB7C
or ebp, 4
movzx esi, byte ptr [rax]
lea rcx, [rax+1]
test sil, sil
jns short loc_EBB31
movzx ecx, byte ptr [rcx]
mov edx, ecx
shl edx, 7; unsigned int
add esi, edx
add esi, 0FFFFFF80h; char *
test cl, cl
js loc_EBBD4
add rax, 2
mov rcx, rax
loc_EBB31:
mov [rsp+38h+var_38], rcx
mov [rbx+24h], esi
jmp short loc_EBBB8
loc_EBB3A:
cmp r13b, 1Ah
jnz short loc_EBB7C
or byte ptr [rbx+10h], 1
mov rsi, [rbx+18h]
test rsi, rsi
jnz short loc_EBB6F
mov rax, [r15]
mov rdi, rax
and rdi, 0FFFFFFFFFFFFFFFCh
test al, 1
jnz loc_EBC07
loc_EBB5F:
call _ZN6google8protobuf5Arena18CreateMaybeMessageINS0_21ExtensionRangeOptionsEJEEEPT_PS1_DpOT0_; google::protobuf::Arena::CreateMaybeMessage<google::protobuf::ExtensionRangeOptions>(google::protobuf::Arena*)
mov rsi, rax; google::protobuf::MessageLite *
mov [rbx+18h], rax
mov rax, [rsp+38h+var_38]
loc_EBB6F:
mov rdi, r14; this
mov rdx, rax; char *
call _ZN6google8protobuf8internal12ParseContext12ParseMessageEPNS0_11MessageLiteEPKc; google::protobuf::internal::ParseContext::ParseMessage(google::protobuf::MessageLite *,char const*)
jmp short loc_EBBAF
loc_EBB7C:
test r13d, r13d
jz loc_EBC0F
mov ecx, r13d
and ecx, 7
cmp ecx, 4
jz short loc_EBC0F
mov rsi, [r15]
test sil, 1
jz short loc_EBBF6
and rsi, 0FFFFFFFFFFFFFFFCh
add rsi, 8; unsigned __int64
loc_EBBA1:
mov edi, r13d; this
mov rdx, rax; google::protobuf::UnknownFieldSet *
mov rcx, r14; char *
call _ZN6google8protobuf8internal17UnknownFieldParseEmPNS0_15UnknownFieldSetEPKcPNS1_12ParseContextE; google::protobuf::internal::UnknownFieldParse(ulong,google::protobuf::UnknownFieldSet *,char const*,google::protobuf::internal::ParseContext *)
loc_EBBAF:
mov [rsp+38h+var_38], rax
loc_EBBB3:
test rax, rax
jz short loc_EBC20
loc_EBBB8:
mov edx, [r14+5Ch]; int
mov rdi, r14; this
mov rsi, r12; char **
call _ZN6google8protobuf8internal18EpsCopyInputStream13DoneWithCheckEPPKci; google::protobuf::internal::EpsCopyInputStream::DoneWithCheck(char const**,int)
test al, al
jz loc_EBA66
jmp loc_EBA47
loc_EBBD4:
mov rdi, rax; this
call _ZN6google8protobuf8internal17VarintParseSlow32EPKcj; google::protobuf::internal::VarintParseSlow32(char const*,uint)
mov [rsp+38h+var_38], rax
mov [rbx+24h], edx
jmp short loc_EBBB3
loc_EBBE5:
mov rdi, rax; this
call _ZN6google8protobuf8internal17VarintParseSlow32EPKcj; google::protobuf::internal::VarintParseSlow32(char const*,uint)
mov [rsp+38h+var_38], rax
mov [rbx+20h], edx
jmp short loc_EBBB3
loc_EBBF6:
mov rdi, r15
call _ZN6google8protobuf8internal16InternalMetadata27mutable_unknown_fields_slowINS0_15UnknownFieldSetEEEPT_v; google::protobuf::internal::InternalMetadata::mutable_unknown_fields_slow<google::protobuf::UnknownFieldSet>(void)
mov rsi, rax
mov rax, [rsp+38h+var_38]
jmp short loc_EBBA1
loc_EBC07:
mov rdi, [rdi]
jmp loc_EBB5F
loc_EBC0F:
test rax, rax
jz short loc_EBC20
dec r13d
mov [r14+50h], r13d
jmp loc_EBA47
loc_EBC20:
mov [rsp+38h+var_38], 0
jmp loc_EBA47
| google::protobuf::internal * google::protobuf::DescriptorProto_ExtensionRange::_InternalParse(
google::protobuf::DescriptorProto_ExtensionRange *this,
google::protobuf::internal *a2,
google::protobuf::internal::ParseContext *a3)
{
google::protobuf::internal::ParseContext *v5; // r8
int v6; // ebp
_QWORD *v8; // r15
unsigned int v9; // r13d
google::protobuf::internal *TagFallback; // rax
int v11; // eax
unsigned int v12; // edx
unsigned int v13; // ecx
const char *v14; // rsi
google::protobuf::internal *v15; // rcx
int v16; // ecx
const char *v17; // rsi
google::protobuf::internal *v18; // rcx
int v19; // ecx
google::protobuf::MessageLite *v20; // rsi
_QWORD *v21; // rdi
google::protobuf::internal *v22; // rax
unsigned long long v23; // rsi
int v24; // edx
int v25; // edx
google::protobuf::internal *v26[7]; // [rsp+0h] [rbp-38h] BYREF
v26[0] = a2;
v6 = 0;
if ( google::protobuf::internal::EpsCopyInputStream::DoneWithCheck(a3, (const char **)v26, *((_DWORD *)a3 + 23)) )
goto LABEL_2;
v8 = (_QWORD *)((char *)this + 8);
v6 = 0;
while ( 1 )
{
v9 = *(unsigned __int8 *)v26[0];
TagFallback = (google::protobuf::internal *)((char *)v26[0] + 1);
if ( (v9 & 0x80u) != 0 )
{
v11 = *(unsigned __int8 *)TagFallback;
v9 = (v11 << 7) + v9 - 128;
if ( (v11 & 0x80u) != 0 )
{
TagFallback = (google::protobuf::internal *)google::protobuf::internal::ReadTagFallback(
v26[0],
(const char *)v9);
v9 = v12;
}
else
{
TagFallback = (google::protobuf::internal *)((char *)v26[0] + 2);
}
}
v26[0] = TagFallback;
v13 = v9 >> 3;
if ( v9 >> 3 == 3 )
{
if ( (_BYTE)v9 != 26 )
goto LABEL_27;
*((_BYTE *)this + 16) |= 1u;
v20 = (google::protobuf::MessageLite *)*((_QWORD *)this + 3);
if ( !v20 )
{
v21 = (_QWORD *)(*v8 & 0xFFFFFFFFFFFFFFFCLL);
if ( (*v8 & 1) != 0 )
v21 = (_QWORD *)*v21;
v20 = (google::protobuf::MessageLite *)google::protobuf::Arena::CreateMaybeMessage<google::protobuf::ExtensionRangeOptions>(v21);
*((_QWORD *)this + 3) = v20;
TagFallback = v26[0];
}
v22 = (google::protobuf::internal *)google::protobuf::internal::ParseContext::ParseMessage(
a3,
v20,
(const char *)TagFallback);
LABEL_32:
v26[0] = v22;
goto LABEL_33;
}
if ( v13 == 2 )
break;
if ( v13 != 1 || (_BYTE)v9 != 8 )
goto LABEL_27;
v6 |= 2u;
LODWORD(v14) = *(unsigned __int8 *)TagFallback;
v15 = (google::protobuf::internal *)((char *)TagFallback + 1);
if ( (char)v14 >= 0 )
goto LABEL_15;
v16 = *(unsigned __int8 *)v15;
v14 = (const char *)(unsigned int)((v16 << 7) + (_DWORD)v14 - 128);
if ( (v16 & 0x80u) == 0 )
{
v15 = (google::protobuf::internal *)((char *)TagFallback + 2);
LABEL_15:
v26[0] = v15;
*((_DWORD *)this + 8) = (_DWORD)v14;
goto LABEL_34;
}
v22 = (google::protobuf::internal *)google::protobuf::internal::VarintParseSlow32(TagFallback, v14);
v26[0] = v22;
*((_DWORD *)this + 8) = v25;
LABEL_33:
if ( !v22 )
goto LABEL_41;
LABEL_34:
if ( google::protobuf::internal::EpsCopyInputStream::DoneWithCheck(a3, (const char **)v26, *((_DWORD *)a3 + 23)) )
goto LABEL_2;
}
if ( (_BYTE)v9 == 16 )
{
v6 |= 4u;
LODWORD(v17) = *(unsigned __int8 *)TagFallback;
v18 = (google::protobuf::internal *)((char *)TagFallback + 1);
if ( (char)v17 >= 0 )
goto LABEL_20;
v19 = *(unsigned __int8 *)v18;
v17 = (const char *)(unsigned int)((v19 << 7) + (_DWORD)v17 - 128);
if ( (v19 & 0x80u) == 0 )
{
v18 = (google::protobuf::internal *)((char *)TagFallback + 2);
LABEL_20:
v26[0] = v18;
*((_DWORD *)this + 9) = (_DWORD)v17;
goto LABEL_34;
}
v22 = (google::protobuf::internal *)google::protobuf::internal::VarintParseSlow32(TagFallback, v17);
v26[0] = v22;
*((_DWORD *)this + 9) = v24;
goto LABEL_33;
}
LABEL_27:
if ( v9 && (v9 & 7) != 4 )
{
if ( (*v8 & 1) != 0 )
{
v23 = (*v8 & 0xFFFFFFFFFFFFFFFCLL) + 8;
}
else
{
v23 = google::protobuf::internal::InternalMetadata::mutable_unknown_fields_slow<google::protobuf::UnknownFieldSet>((long long *)this + 1);
TagFallback = v26[0];
}
v22 = (google::protobuf::internal *)google::protobuf::internal::UnknownFieldParse(
(google::protobuf::internal *)v9,
v23,
TagFallback,
(const char *)a3,
v5);
goto LABEL_32;
}
if ( TagFallback )
{
*((_DWORD *)a3 + 20) = v9 - 1;
goto LABEL_2;
}
LABEL_41:
v26[0] = 0LL;
LABEL_2:
*((_DWORD *)this + 4) |= v6;
return v26[0];
}
| _InternalParse:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
PUSH RAX
MOV R14,RDX
MOV RBX,RDI
MOV RAX,RSP
MOV qword ptr [RAX],RSI
MOV EDX,dword ptr [RDX + 0x5c]
MOV RDI,R14
MOV RSI,RAX
CALL 0x0017347e
XOR EBP,EBP
TEST AL,AL
JZ 0x001eba5d
LAB_001eba47:
OR dword ptr [RBX + 0x10],EBP
MOV RAX,qword ptr [RSP]
ADD RSP,0x8
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
LAB_001eba5d:
LEA R15,[RBX + 0x8]
XOR EBP,EBP
MOV R12,RSP
LAB_001eba66:
MOV RDI,qword ptr [RSP]
MOVZX R13D,byte ptr [RDI]
LEA RAX,[RDI + 0x1]
TEST R13B,R13B
JNS 0x001eba9e
MOVZX EAX,byte ptr [RAX]
MOV ECX,EAX
SHL ECX,0x7
ADD R13D,ECX
ADD R13D,-0x80
TEST AL,AL
JS 0x001eba93
ADD RDI,0x2
MOV RAX,RDI
JMP 0x001eba9e
LAB_001eba93:
MOV ESI,R13D
CALL 0x0017ce8e
MOV R13D,EDX
LAB_001eba9e:
MOV qword ptr [RSP],RAX
MOV ECX,R13D
SHR ECX,0x3
CMP ECX,0x3
JZ 0x001ebb3a
CMP ECX,0x2
JZ 0x001ebb00
CMP ECX,0x1
JNZ 0x001ebb7c
CMP R13B,0x8
JNZ 0x001ebb7c
OR EBP,0x2
MOVZX ESI,byte ptr [RAX]
LEA RCX,[RAX + 0x1]
TEST SIL,SIL
JNS 0x001ebaf4
MOVZX ECX,byte ptr [RCX]
MOV EDX,ECX
SHL EDX,0x7
ADD ESI,EDX
ADD ESI,-0x80
TEST CL,CL
JS 0x001ebbe5
ADD RAX,0x2
MOV RCX,RAX
LAB_001ebaf4:
MOV qword ptr [RSP],RCX
MOV dword ptr [RBX + 0x20],ESI
JMP 0x001ebbb8
LAB_001ebb00:
CMP R13B,0x10
JNZ 0x001ebb7c
OR EBP,0x4
MOVZX ESI,byte ptr [RAX]
LEA RCX,[RAX + 0x1]
TEST SIL,SIL
JNS 0x001ebb31
MOVZX ECX,byte ptr [RCX]
MOV EDX,ECX
SHL EDX,0x7
ADD ESI,EDX
ADD ESI,-0x80
TEST CL,CL
JS 0x001ebbd4
ADD RAX,0x2
MOV RCX,RAX
LAB_001ebb31:
MOV qword ptr [RSP],RCX
MOV dword ptr [RBX + 0x24],ESI
JMP 0x001ebbb8
LAB_001ebb3a:
CMP R13B,0x1a
JNZ 0x001ebb7c
OR byte ptr [RBX + 0x10],0x1
MOV RSI,qword ptr [RBX + 0x18]
TEST RSI,RSI
JNZ 0x001ebb6f
MOV RAX,qword ptr [R15]
MOV RDI,RAX
AND RDI,-0x4
TEST AL,0x1
JNZ 0x001ebc07
LAB_001ebb5f:
CALL 0x001fa418
MOV RSI,RAX
MOV qword ptr [RBX + 0x18],RAX
MOV RAX,qword ptr [RSP]
LAB_001ebb6f:
MOV RDI,R14
MOV RDX,RAX
CALL 0x0012fce4
JMP 0x001ebbaf
LAB_001ebb7c:
TEST R13D,R13D
JZ 0x001ebc0f
MOV ECX,R13D
AND ECX,0x7
CMP ECX,0x4
JZ 0x001ebc0f
MOV RSI,qword ptr [R15]
TEST SIL,0x1
JZ 0x001ebbf6
AND RSI,-0x4
ADD RSI,0x8
LAB_001ebba1:
MOV EDI,R13D
MOV RDX,RAX
MOV RCX,R14
CALL 0x001a3709
LAB_001ebbaf:
MOV qword ptr [RSP],RAX
LAB_001ebbb3:
TEST RAX,RAX
JZ 0x001ebc20
LAB_001ebbb8:
MOV EDX,dword ptr [R14 + 0x5c]
MOV RDI,R14
MOV RSI,R12
CALL 0x0017347e
TEST AL,AL
JZ 0x001eba66
JMP 0x001eba47
LAB_001ebbd4:
MOV RDI,RAX
CALL 0x0017ce02
MOV qword ptr [RSP],RAX
MOV dword ptr [RBX + 0x24],EDX
JMP 0x001ebbb3
LAB_001ebbe5:
MOV RDI,RAX
CALL 0x0017ce02
MOV qword ptr [RSP],RAX
MOV dword ptr [RBX + 0x20],EDX
JMP 0x001ebbb3
LAB_001ebbf6:
MOV RDI,R15
CALL 0x001735aa
MOV RSI,RAX
MOV RAX,qword ptr [RSP]
JMP 0x001ebba1
LAB_001ebc07:
MOV RDI,qword ptr [RDI]
JMP 0x001ebb5f
LAB_001ebc0f:
TEST RAX,RAX
JZ 0x001ebc20
DEC R13D
MOV dword ptr [R14 + 0x50],R13D
JMP 0x001eba47
LAB_001ebc20:
MOV qword ptr [RSP],0x0
JMP 0x001eba47
|
/* google::protobuf::DescriptorProto_ExtensionRange::_InternalParse(char const*,
google::protobuf::internal::ParseContext*) */
byte * __thiscall
google::protobuf::DescriptorProto_ExtensionRange::_InternalParse
(DescriptorProto_ExtensionRange *this,char *param_1,ParseContext *param_2)
{
InternalMetadata *this_00;
byte bVar1;
byte bVar2;
char cVar3;
byte *pbVar4;
MessageLite *pMVar5;
uint uVar6;
UnknownFieldSet *pUVar7;
Arena *pAVar8;
uint uVar9;
uint uVar10;
int1 auVar11 [12];
byte *local_38;
local_38 = (byte *)param_1;
cVar3 = internal::EpsCopyInputStream::DoneWithCheck
((EpsCopyInputStream *)param_2,(char **)&local_38,*(int *)(param_2 + 0x5c));
uVar6 = 0;
if (cVar3 == '\0') {
this_00 = (InternalMetadata *)(this + 8);
uVar6 = 0;
do {
bVar1 = *local_38;
auVar11[8] = bVar1;
auVar11._0_8_ = local_38 + 1;
auVar11._9_3_ = 0;
if ((char)bVar1 < '\0') {
bVar2 = local_38[1];
uVar9 = ((uint)bVar1 + (uint)bVar2 * 0x80) - 0x80;
if ((char)bVar2 < '\0') {
auVar11 = internal::ReadTagFallback((char *)local_38,uVar9);
}
else {
auVar11._8_4_ = uVar9;
auVar11._0_8_ = local_38 + 2;
}
}
uVar10 = auVar11._8_4_;
local_38 = auVar11._0_8_;
uVar9 = uVar10 >> 3;
cVar3 = auVar11[8];
if (uVar9 == 3) {
if (cVar3 != '\x1a') goto LAB_001ebb7c;
this[0x10] = (DescriptorProto_ExtensionRange)((byte)this[0x10] | 1);
pMVar5 = *(MessageLite **)(this + 0x18);
if (pMVar5 == (MessageLite *)0x0) {
pAVar8 = (Arena *)(*(ulong *)this_00 & 0xfffffffffffffffc);
if ((*(ulong *)this_00 & 1) != 0) {
pAVar8 = *(Arena **)pAVar8;
}
pMVar5 = (MessageLite *)
Arena::CreateMaybeMessage<google::protobuf::ExtensionRangeOptions>(pAVar8);
*(MessageLite **)(this + 0x18) = pMVar5;
}
local_38 = (byte *)internal::ParseContext::ParseMessage(param_2,pMVar5,(char *)local_38);
LAB_001ebbb3:
if (local_38 == (byte *)0x0) {
LAB_001ebc20:
local_38 = (byte *)0x0;
break;
}
}
else if (uVar9 == 2) {
if (cVar3 != '\x10') goto LAB_001ebb7c;
uVar6 = uVar6 | 4;
bVar1 = *local_38;
uVar9 = (uint)bVar1;
pbVar4 = local_38 + 1;
if ((char)bVar1 < '\0') {
uVar9 = ((uint)bVar1 + (uint)*pbVar4 * 0x80) - 0x80;
if ((char)*pbVar4 < '\0') {
auVar11 = internal::VarintParseSlow32((char *)local_38,uVar9);
local_38 = auVar11._0_8_;
*(int *)(this + 0x24) = auVar11._8_4_;
goto LAB_001ebbb3;
}
pbVar4 = local_38 + 2;
}
*(uint *)(this + 0x24) = uVar9;
local_38 = pbVar4;
}
else {
if ((uVar9 != 1) || (cVar3 != '\b')) {
LAB_001ebb7c:
if ((uVar10 != 0) && ((uVar10 & 7) != 4)) {
if ((*(ulong *)this_00 & 1) == 0) {
pUVar7 = internal::InternalMetadata::
mutable_unknown_fields_slow<google::protobuf::UnknownFieldSet>(this_00);
}
else {
pUVar7 = (UnknownFieldSet *)((*(ulong *)this_00 & 0xfffffffffffffffc) + 8);
}
local_38 = (byte *)internal::UnknownFieldParse
((ulong)uVar10,pUVar7,(char *)local_38,param_2);
goto LAB_001ebbb3;
}
if (local_38 == (byte *)0x0) goto LAB_001ebc20;
*(uint *)(param_2 + 0x50) = uVar10 - 1;
break;
}
uVar6 = uVar6 | 2;
bVar1 = *local_38;
uVar9 = (uint)bVar1;
pbVar4 = local_38 + 1;
if ((char)bVar1 < '\0') {
uVar9 = ((uint)bVar1 + (uint)*pbVar4 * 0x80) - 0x80;
if ((char)*pbVar4 < '\0') {
auVar11 = internal::VarintParseSlow32((char *)local_38,uVar9);
local_38 = auVar11._0_8_;
*(int *)(this + 0x20) = auVar11._8_4_;
goto LAB_001ebbb3;
}
pbVar4 = local_38 + 2;
}
*(uint *)(this + 0x20) = uVar9;
local_38 = pbVar4;
}
cVar3 = internal::EpsCopyInputStream::DoneWithCheck
((EpsCopyInputStream *)param_2,(char **)&local_38,*(int *)(param_2 + 0x5c));
} while (cVar3 == '\0');
}
*(uint *)(this + 0x10) = *(uint *)(this + 0x10) | uVar6;
return local_38;
}
| |
42,671 | nlohmann::json_abi_v3_11_3::detail::iteration_proxy_value<nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void> const>>::~iteration_proxy_value() | monkey531[P]llama/common/json.hpp | ~iteration_proxy_value() = default; | O1 | cpp | nlohmann::json_abi_v3_11_3::detail::iteration_proxy_value<nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void> const>>::~iteration_proxy_value():
pushq %rbx
movq %rdi, %rbx
movq 0x50(%rdi), %rdi
leaq 0x60(%rbx), %rax
cmpq %rax, %rdi
je 0x71712
movq (%rax), %rsi
incq %rsi
callq 0x186a0
movq 0x30(%rbx), %rdi
addq $0x40, %rbx
cmpq %rbx, %rdi
je 0x7172b
movq (%rbx), %rsi
incq %rsi
popq %rbx
jmp 0x186a0
popq %rbx
retq
nop
| _ZN8nlohmann16json_abi_v3_11_36detail21iteration_proxy_valueINS1_9iter_implINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEEEEED2Ev:
push rbx
mov rbx, rdi
mov rdi, [rdi+50h]; void *
lea rax, [rbx+60h]
cmp rdi, rax
jz short loc_71712
mov rsi, [rax]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_71712:
mov rdi, [rbx+30h]; void *
add rbx, 40h ; '@'
cmp rdi, rbx
jz short loc_7172B
mov rsi, [rbx]
inc rsi; unsigned __int64
pop rbx
jmp __ZdlPvm; operator delete(void *,ulong)
loc_7172B:
pop rbx
retn
| void nlohmann::json_abi_v3_11_3::detail::iteration_proxy_value<nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>>::~iteration_proxy_value(
_QWORD *a1)
{
_QWORD *v2; // rdi
_QWORD *v3; // rdi
_QWORD *v4; // rbx
v2 = (_QWORD *)a1[10];
if ( v2 != a1 + 12 )
operator delete(v2, a1[12] + 1LL);
v3 = (_QWORD *)a1[6];
v4 = a1 + 8;
if ( v3 != v4 )
operator delete(v3, *v4 + 1LL);
}
| ~iteration_proxy_value:
PUSH RBX
MOV RBX,RDI
MOV RDI,qword ptr [RDI + 0x50]
LEA RAX,[RBX + 0x60]
CMP RDI,RAX
JZ 0x00171712
MOV RSI,qword ptr [RAX]
INC RSI
CALL 0x001186a0
LAB_00171712:
MOV RDI,qword ptr [RBX + 0x30]
ADD RBX,0x40
CMP RDI,RBX
JZ 0x0017172b
MOV RSI,qword ptr [RBX]
INC RSI
POP RBX
JMP 0x001186a0
LAB_0017172b:
POP RBX
RET
|
/* nlohmann::json_abi_v3_11_3::detail::iteration_proxy_value<nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,
std::vector, std::__cxx11::string, bool, long, unsigned long, double, std::allocator,
nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned
char> >, void> > >::~iteration_proxy_value() */
void __thiscall
nlohmann::json_abi_v3_11_3::detail::
iteration_proxy_value<nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>
::~iteration_proxy_value
(iteration_proxy_value<nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>
*this)
{
if (*(iteration_proxy_value<nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>
**)(this + 0x50) != this + 0x60) {
operator_delete(*(iteration_proxy_value<nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>
**)(this + 0x50),*(long *)(this + 0x60) + 1);
}
if (*(iteration_proxy_value<nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>
**)(this + 0x30) != this + 0x40) {
operator_delete(*(iteration_proxy_value<nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>
**)(this + 0x30),*(long *)(this + 0x40) + 1);
return;
}
return;
}
| |
42,672 | nlohmann::json_abi_v3_11_3::detail::iteration_proxy_value<nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void> const>>::~iteration_proxy_value() | monkey531[P]llama/common/json.hpp | ~iteration_proxy_value() = default; | O3 | cpp | nlohmann::json_abi_v3_11_3::detail::iteration_proxy_value<nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void> const>>::~iteration_proxy_value():
pushq %rbx
movq %rdi, %rbx
movq 0x50(%rdi), %rdi
leaq 0x60(%rbx), %rax
cmpq %rax, %rdi
je 0x6d7c4
movq (%rax), %rsi
incq %rsi
callq 0x186a0
movq 0x30(%rbx), %rdi
addq $0x40, %rbx
cmpq %rbx, %rdi
je 0x6d7dd
movq (%rbx), %rsi
incq %rsi
popq %rbx
jmp 0x186a0
popq %rbx
retq
nop
| _ZN8nlohmann16json_abi_v3_11_36detail21iteration_proxy_valueINS1_9iter_implIKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEEEEED2Ev:
push rbx
mov rbx, rdi
mov rdi, [rdi+50h]; void *
lea rax, [rbx+60h]
cmp rdi, rax
jz short loc_6D7C4
mov rsi, [rax]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_6D7C4:
mov rdi, [rbx+30h]; void *
add rbx, 40h ; '@'
cmp rdi, rbx
jz short loc_6D7DD
mov rsi, [rbx]
inc rsi; unsigned __int64
pop rbx
jmp __ZdlPvm; operator delete(void *,ulong)
loc_6D7DD:
pop rbx
retn
| void nlohmann::json_abi_v3_11_3::detail::iteration_proxy_value<nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> const>>::~iteration_proxy_value(
_QWORD *a1)
{
_QWORD *v2; // rdi
_QWORD *v3; // rdi
_QWORD *v4; // rbx
v2 = (_QWORD *)a1[10];
if ( v2 != a1 + 12 )
operator delete(v2, a1[12] + 1LL);
v3 = (_QWORD *)a1[6];
v4 = a1 + 8;
if ( v3 != v4 )
operator delete(v3, *v4 + 1LL);
}
| ~iteration_proxy_value:
PUSH RBX
MOV RBX,RDI
MOV RDI,qword ptr [RDI + 0x50]
LEA RAX,[RBX + 0x60]
CMP RDI,RAX
JZ 0x0016d7c4
MOV RSI,qword ptr [RAX]
INC RSI
CALL 0x001186a0
LAB_0016d7c4:
MOV RDI,qword ptr [RBX + 0x30]
ADD RBX,0x40
CMP RDI,RBX
JZ 0x0016d7dd
MOV RSI,qword ptr [RBX]
INC RSI
POP RBX
JMP 0x001186a0
LAB_0016d7dd:
POP RBX
RET
|
/* nlohmann::json_abi_v3_11_3::detail::iteration_proxy_value<nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,
std::vector, std::__cxx11::string, bool, long, unsigned long, double, std::allocator,
nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned
char> >, void> const> >::~iteration_proxy_value() */
void __thiscall
nlohmann::json_abi_v3_11_3::detail::
iteration_proxy_value<nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>const>>
::~iteration_proxy_value
(iteration_proxy_value<nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>const>>
*this)
{
if (*(iteration_proxy_value<nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>const>>
**)(this + 0x50) != this + 0x60) {
operator_delete(*(iteration_proxy_value<nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>const>>
**)(this + 0x50),*(long *)(this + 0x60) + 1);
}
if (*(iteration_proxy_value<nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>const>>
**)(this + 0x30) != this + 0x40) {
operator_delete(*(iteration_proxy_value<nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>const>>
**)(this + 0x30),*(long *)(this + 0x40) + 1);
return;
}
return;
}
| |
42,673 | parse_prefixed_json_tool_call_array(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&, unsigned long) | monkey531[P]llama/common/chat.cpp | static common_chat_msg parse_prefixed_json_tool_call_array(const std::string& input, const std::string & prefix, size_t rstrip_prefix = 0) {
auto content_end = input.find(prefix);
size_t tc_start = std::string::npos;
common_chat_msg result;
result.role = "assistant";
const auto process_tool_calls = [&](const json & tool_calls) {
for (const auto & tool_call : tool_calls) {
const auto & arguments = tool_call["arguments"];
result.tool_calls.push_back({
tool_call["name"],
arguments.is_string() ? arguments.get<std::string>() : arguments.dump(),
tool_call.contains("id") ? tool_call["id"] : "",
});
}
};
if (content_end == std::string::npos) {
result.content = input;
} else {
tc_start = content_end + prefix.size() - rstrip_prefix;
result.content = input.substr(0, content_end);
auto tool_calls = json::parse(input.substr(tc_start));
process_tool_calls(tool_calls);
}
return result;
} | O3 | cpp | parse_prefixed_json_tool_call_array(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&, unsigned long):
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xf8, %rsp
movq %rcx, %rbx
movq %rdx, %r12
movq %rsi, %r14
movq %rdi, %rbp
movq (%rdx), %rsi
movq 0x8(%rdx), %rcx
xorl %r13d, %r13d
movq %r14, %rdi
xorl %edx, %edx
callq 0x1acf0
movq %rax, %r15
leaq 0x10(%rbp), %rax
movq %rax, (%rbp)
movq %r13, 0x8(%rbp)
movb %r13b, 0x10(%rbp)
leaq 0x30(%rbp), %rax
movq %rax, 0x20(%rbp)
movq %r13, 0x28(%rbp)
movb %r13b, 0x30(%rbp)
xorps %xmm0, %xmm0
movups %xmm0, 0x40(%rbp)
movq %r13, 0x50(%rbp)
leaq 0x68(%rbp), %rax
movq %rax, 0x58(%rbp)
movq %r13, 0x60(%rbp)
movb %r13b, 0x68(%rbp)
leaq 0x169c1(%rip), %rcx # 0xae3dc
movl $0x9, %r8d
movq %rbp, %rdi
xorl %esi, %esi
xorl %edx, %edx
movq %rbp, 0x48(%rsp)
callq 0x1ab90
leaq 0x20(%rbp), %r13
cmpq $-0x1, %r15
je 0x97b5f
movq 0x8(%r12), %r12
leaq 0x60(%rsp), %rdi
movq %r14, %rsi
xorl %edx, %edx
movq %r15, %rcx
callq 0x1a7a0
subq %rbx, %r15
addq %r12, %r15
leaq 0x60(%rsp), %rbx
movq %r13, %rdi
movq %rbx, %rsi
callq 0x1a900
movq (%rbx), %rdi
leaq 0x70(%rsp), %rax
cmpq %rax, %rdi
je 0x97a87
movq 0x70(%rsp), %rsi
incq %rsi
callq 0x1a740
leaq 0x60(%rsp), %rdi
movq %r14, %rsi
movq %r15, %rdx
movq $-0x1, %rcx
callq 0x1a7a0
xorps %xmm0, %xmm0
leaq 0xd0(%rsp), %rdx
movaps %xmm0, 0x10(%rdx)
movaps %xmm0, (%rdx)
leaq 0x50(%rsp), %rbx
leaq 0x60(%rsp), %rsi
movq %rbx, %rdi
movl $0x1, %ecx
xorl %r8d, %r8d
callq 0x6d612
movq 0xe0(%rsp), %rax
testq %rax, %rax
je 0x97ae9
leaq 0xd0(%rsp), %rdi
movq %rdi, %rsi
movl $0x3, %edx
callq *%rax
movq 0x60(%rsp), %rdi
leaq 0x70(%rsp), %rax
cmpq %rax, %rdi
je 0x97b05
movq 0x70(%rsp), %rsi
incq %rsi
callq 0x1a740
movabsq $-0x8000000000000000, %rax # imm = 0x8000000000000000
movq %rbx, 0x28(%rsp)
xorps %xmm0, %xmm0
movups %xmm0, 0x30(%rsp)
movq %rax, 0x40(%rsp)
movzbl 0x50(%rsp), %ecx
testl %ecx, %ecx
je 0x97b9a
cmpl $0x2, %ecx
je 0x97b6f
cmpl $0x1, %ecx
jne 0x97ba5
movq 0x58(%rsp), %rcx
movq (%rcx), %rdx
movq %rdx, 0x30(%rsp)
movq %rbx, 0x8(%rsp)
movq $0x0, 0x18(%rsp)
movq %rax, 0x20(%rsp)
movq 0x8(%rcx), %rax
movq %rax, 0x10(%rsp)
jmp 0x97bc1
movq %r13, %rdi
movq %r14, %rsi
callq 0x1a3f0
jmp 0x97d6f
movq 0x58(%rsp), %rcx
movq (%rcx), %rdx
movq %rdx, 0x38(%rsp)
movq %rbx, 0x8(%rsp)
movq $0x0, 0x10(%rsp)
movq %rax, 0x20(%rsp)
movq 0x8(%rcx), %rax
movq %rax, 0x18(%rsp)
jmp 0x97bc1
movq $0x1, 0x40(%rsp)
jmp 0x97bae
movq $0x0, 0x40(%rsp)
movq %rbx, 0x8(%rsp)
movups %xmm0, 0x10(%rsp)
movq $0x1, 0x20(%rsp)
leaq 0x28(%rsp), %rdi
leaq 0x8(%rsp), %rsi
callq 0x52fcc
testb %al, %al
jne 0x97d65
movq 0x48(%rsp), %rax
leaq 0x40(%rax), %r14
leaq 0x28(%rsp), %r13
leaq 0x60(%rsp), %r12
leaq 0xc0(%rsp), %r15
movq %r13, %rdi
callq 0x52c60
movq %rax, %rbx
movq %rax, %rdi
leaq 0x19684(%rip), %rsi # 0xb128c
callq 0x6df00
movq %rax, %rbp
movq %rbx, %rdi
leaq 0x19c1e(%rip), %rsi # 0xb1838
callq 0x6df00
movq %r12, %rdi
movq %rax, %rsi
callq 0x4468a
cmpb $0x3, (%rbp)
jne 0x97c42
leaq 0x80(%rsp), %rdi
movq %rbp, %rsi
callq 0x4468a
jmp 0x97c62
leaq 0x80(%rsp), %rdi
movq %rbp, %rsi
movl $0xffffffff, %edx # imm = 0xFFFFFFFF
movl $0x20, %ecx
xorl %r8d, %r8d
xorl %r9d, %r9d
callq 0x30c70
movq %rbx, %rdi
leaq 0x16bd8(%rip), %rsi # 0xae844
callq 0x6de9e
testb %al, %al
je 0x97c91
movq %rbx, %rdi
leaq 0x16bc5(%rip), %rsi # 0xae844
callq 0x6df00
movq %r15, %rdi
movq %rax, %rsi
callq 0x2faf6
jmp 0x97ca0
movq %r15, %rdi
leaq 0x14433(%rip), %rsi # 0xac0ce
callq 0x80c9a
leaq 0xa0(%rsp), %rdi
movq %r15, %rsi
callq 0x4468a
movq %r14, %rdi
movq %r12, %rsi
callq 0x9ac5c
movq 0xa0(%rsp), %rdi
leaq 0xb0(%rsp), %rax
cmpq %rax, %rdi
je 0x97ce0
movq 0xb0(%rsp), %rsi
incq %rsi
callq 0x1a740
movq 0x80(%rsp), %rdi
leaq 0x90(%rsp), %rax
cmpq %rax, %rdi
je 0x97d05
movq 0x90(%rsp), %rsi
incq %rsi
callq 0x1a740
movq 0x60(%rsp), %rdi
leaq 0x70(%rsp), %rax
cmpq %rax, %rdi
je 0x97d21
movq 0x70(%rsp), %rsi
incq %rsi
callq 0x1a740
movq %r15, %rdi
callq 0x4f2d0
movq 0x28(%rsp), %rax
movzbl (%rax), %eax
cmpl $0x2, %eax
je 0x97d43
cmpl $0x1, %eax
jne 0x97d4b
addq $0x30, 0x30(%rsp)
jmp 0x97d50
addq $0x10, 0x38(%rsp)
jmp 0x97d50
incq 0x40(%rsp)
movq %r13, %rdi
leaq 0x8(%rsp), %rsi
callq 0x52fcc
testb %al, %al
je 0x97bf3
leaq 0x50(%rsp), %rdi
callq 0x4f2d0
addq $0xf8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x97ddd
jmp 0x97dd1
jmp 0x97e5e
movq %rax, %r14
movq 0xe0(%rsp), %rax
testq %rax, %rax
je 0x97dac
leaq 0xd0(%rsp), %rdi
movq %rdi, %rsi
movl $0x3, %edx
callq *%rax
movq 0x60(%rsp), %rdi
leaq 0x70(%rsp), %rax
cmpq %rax, %rdi
je 0x97e6b
movq 0x70(%rsp), %rsi
incq %rsi
callq 0x1a740
jmp 0x97e6b
movq %rax, %rdi
callq 0x20d77
jmp 0x97ddd
jmp 0x97ddd
movq %rax, %r14
jmp 0x97e6b
movq %rax, %r14
jmp 0x97e40
movq %rax, %r14
leaq 0xc0(%rsp), %rdi
callq 0x4f2d0
jmp 0x97e1b
movq %rax, %r14
leaq 0x60(%rsp), %rdi
callq 0x9aa14
leaq 0xc0(%rsp), %rdi
callq 0x4f2d0
jmp 0x97e61
movq %rax, %r14
movq 0x80(%rsp), %rdi
leaq 0x90(%rsp), %rax
cmpq %rax, %rdi
je 0x97e40
movq 0x90(%rsp), %rsi
incq %rsi
callq 0x1a740
movq 0x60(%rsp), %rdi
leaq 0x70(%rsp), %rax
cmpq %rax, %rdi
je 0x97e61
movq 0x70(%rsp), %rsi
incq %rsi
callq 0x1a740
jmp 0x97e61
movq %rax, %r14
leaq 0x50(%rsp), %rdi
callq 0x4f2d0
movq 0x48(%rsp), %rdi
callq 0x2fd32
movq %r14, %rdi
callq 0x1ad30
| _ZL35parse_prefixed_json_tool_call_arrayRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES6_m:
push rbp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 0F8h
mov rbx, rcx
mov r12, rdx
mov r14, rsi
mov rbp, rdi
mov rsi, [rdx]
mov rcx, [rdx+8]
xor r13d, r13d
mov rdi, r14
xor edx, edx
call __ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4findEPKcmm; std::string::find(char const*,ulong,ulong)
mov r15, rax
lea rax, [rbp+10h]
mov [rbp+0], rax
mov [rbp+8], r13
mov [rbp+10h], r13b
lea rax, [rbp+30h]
mov [rbp+20h], rax
mov [rbp+28h], r13
mov [rbp+30h], r13b
xorps xmm0, xmm0
movups xmmword ptr [rbp+40h], xmm0
mov [rbp+50h], r13
lea rax, [rbp+68h]
mov [rbp+58h], rax
mov [rbp+60h], r13
mov [rbp+68h], r13b
lea rcx, aYouAreAHelpful+12h; "assistant"
mov r8d, 9
mov rdi, rbp
xor esi, esi
xor edx, edx
mov [rsp+128h+var_E0], rbp
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE10_M_replaceEmmPKcm; std::string::_M_replace(ulong,ulong,char const*,ulong)
lea r13, [rbp+20h]
cmp r15, 0FFFFFFFFFFFFFFFFh
jz loc_97B5F
mov r12, [r12+8]
lea rdi, [rsp+128h+var_C8]
mov rsi, r14
xor edx, edx
mov rcx, r15
call __ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6substrEmm; std::string::substr(ulong,ulong)
sub r15, rbx
add r15, r12
lea rbx, [rsp+128h+var_C8]
mov rdi, r13
mov rsi, rbx
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEOS4_; std::string::operator=(std::string&&)
mov rdi, [rbx]; void *
lea rax, [rsp+128h+var_B8]
cmp rdi, rax
jz short loc_97A87
mov rsi, [rsp+128h+var_B8]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_97A87:
lea rdi, [rsp+128h+var_C8]
mov rsi, r14
mov rdx, r15
mov rcx, 0FFFFFFFFFFFFFFFFh
call __ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6substrEmm; std::string::substr(ulong,ulong)
xorps xmm0, xmm0
lea rdx, [rsp+128h+var_58]
movaps xmmword ptr [rdx+10h], xmm0
movaps xmmword ptr [rdx], xmm0
lea rbx, [rsp+128h+var_D8]
lea rsi, [rsp+128h+var_C8]
mov rdi, rbx
mov ecx, 1
xor r8d, r8d
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE5parseIS9_EESD_OT_St8functionIFbiNS0_6detail13parse_event_tERSD_EEbb; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::parse<std::string>(std::string &&,std::function<bool ()(int,nlohmann::json_abi_v3_11_3::detail::parse_event_t,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>&)>,bool,bool)
mov rax, [rsp+128h+var_48]
test rax, rax
jz short loc_97AE9
lea rdi, [rsp+128h+var_58]
mov rsi, rdi
mov edx, 3
call rax
loc_97AE9:
mov rdi, [rsp+128h+var_C8]; void *
lea rax, [rsp+128h+var_B8]
cmp rdi, rax
jz short loc_97B05
mov rsi, [rsp+128h+var_B8]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_97B05:
mov rax, 8000000000000000h
mov [rsp+128h+var_100], rbx
xorps xmm0, xmm0
movups [rsp+128h+var_F8], xmm0
mov [rsp+128h+var_E8], rax
movzx ecx, [rsp+128h+var_D8]
test ecx, ecx
jz short loc_97B9A
cmp ecx, 2
jz short loc_97B6F
cmp ecx, 1
jnz short loc_97BA5
mov rcx, [rsp+128h+var_D0]
mov rdx, [rcx]
mov qword ptr [rsp+128h+var_F8], rdx
mov [rsp+128h+var_120], rbx
mov qword ptr [rsp+128h+var_118+8], 0
mov [rsp+128h+var_108], rax
mov rax, [rcx+8]
mov qword ptr [rsp+128h+var_118], rax
jmp short loc_97BC1
loc_97B5F:
mov rdi, r13
mov rsi, r14
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9_M_assignERKS4_; std::string::_M_assign(std::string const&)
jmp loc_97D6F
loc_97B6F:
mov rcx, [rsp+128h+var_D0]
mov rdx, [rcx]
mov qword ptr [rsp+128h+var_F8+8], rdx
mov [rsp+128h+var_120], rbx
mov qword ptr [rsp+128h+var_118], 0
mov [rsp+128h+var_108], rax
mov rax, [rcx+8]
mov qword ptr [rsp+128h+var_118+8], rax
jmp short loc_97BC1
loc_97B9A:
mov [rsp+128h+var_E8], 1
jmp short loc_97BAE
loc_97BA5:
mov [rsp+128h+var_E8], 0
loc_97BAE:
mov [rsp+128h+var_120], rbx
movups [rsp+128h+var_118], xmm0
mov [rsp+128h+var_108], 1
loc_97BC1:
lea rdi, [rsp+128h+var_100]
lea rsi, [rsp+128h+var_120]
call _ZNK8nlohmann16json_abi_v3_11_36detail9iter_implIKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEEeqISH_TnNSt9enable_ifIXoosr3std7is_sameIT_SH_EE5valuesr3std7is_sameISK_NS2_ISF_EEEE5valueEDnE4typeELDn0EEEbRKSK_
test al, al
jnz loc_97D65
mov rax, [rsp+128h+var_E0]
lea r14, [rax+40h]
lea r13, [rsp+128h+var_100]
lea r12, [rsp+128h+var_C8]
lea r15, [rsp+128h+var_68]
loc_97BF3:
mov rdi, r13
call _ZNK8nlohmann16json_abi_v3_11_36detail9iter_implIKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEEdeEv; nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const>::operator*(void)
mov rbx, rax
mov rdi, rax
lea rsi, aKeywordArgumen+9; "arguments"
call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEixIKcEERKSD_PT_; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::operator[]<char const>(char const *)
mov rbp, rax
mov rdi, rbx
lea rsi, aNamespacedSetO+2Fh; "name"
call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEixIKcEERKSD_PT_; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::operator[]<char const>(char const *)
mov rdi, r12
mov rsi, rax
call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE8get_implIS9_TnNSt9enable_ifIXaasr6detail24is_default_constructibleIT_EE5valuesr6detail13has_from_jsonISD_SG_EE5valueEiE4typeELi0EEESG_NS0_6detail12priority_tagILj0EEE
cmp byte ptr [rbp+0], 3
jnz short loc_97C42
lea rdi, [rsp+128h+var_A8]
mov rsi, rbp
call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE8get_implIS9_TnNSt9enable_ifIXaasr6detail24is_default_constructibleIT_EE5valuesr6detail13has_from_jsonISD_SG_EE5valueEiE4typeELi0EEESG_NS0_6detail12priority_tagILj0EEE
jmp short loc_97C62
loc_97C42:
lea rdi, [rsp+128h+var_A8]
mov rsi, rbp
mov edx, 0FFFFFFFFh
mov ecx, 20h ; ' '
xor r8d, r8d
xor r9d, r9d
call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE4dumpEicbNS0_6detail15error_handler_tE; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::dump(int,char,bool,nlohmann::json_abi_v3_11_3::detail::error_handler_t)
loc_97C62:
mov rdi, rbx
lea rsi, aToolCallId+0Ah; "id"
call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE8containsIRA3_KcTnNSt9enable_ifIXsr6detail32is_usable_as_basic_json_key_typeISD_T_EE5valueEiE4typeELi0EEEbOSJ_
test al, al
jz short loc_97C91
mov rdi, rbx
lea rsi, aToolCallId+0Ah; "id"
call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEixIKcEERKSD_PT_; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::operator[]<char const>(char const *)
mov rdi, r15
mov rsi, rax
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEC2ERKSD_; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::basic_json(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const&)
jmp short loc_97CA0
loc_97C91:
mov rdi, r15
lea rsi, aSUnableToOpenT+2Bh; ""
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEC2IRA1_KcA1_cTnNSt9enable_ifIXaantsr6detail13is_basic_jsonIT0_EE5valuesr6detail18is_compatible_typeISD_SK_EE5valueEiE4typeELi0EEEOT_
loc_97CA0:
lea rdi, [rsp+128h+var_88]
mov rsi, r15
call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE8get_implIS9_TnNSt9enable_ifIXaasr6detail24is_default_constructibleIT_EE5valuesr6detail13has_from_jsonISD_SG_EE5valueEiE4typeELi0EEESG_NS0_6detail12priority_tagILj0EEE
mov rdi, r14
mov rsi, r12
call _ZNSt6vectorI16common_tool_callSaIS0_EE12emplace_backIJS0_EEERS0_DpOT_; std::vector<common_tool_call>::emplace_back<common_tool_call>(common_tool_call &&)
mov rdi, [rsp+128h+var_88]; void *
lea rax, [rsp+128h+var_78]
cmp rdi, rax
jz short loc_97CE0
mov rsi, [rsp+128h+var_78]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_97CE0:
mov rdi, [rsp+128h+var_A8]; void *
lea rax, [rsp+128h+var_98]
cmp rdi, rax
jz short loc_97D05
mov rsi, [rsp+128h+var_98]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_97D05:
mov rdi, [rsp+128h+var_C8]; void *
lea rax, [rsp+128h+var_B8]
cmp rdi, rax
jz short loc_97D21
mov rsi, [rsp+128h+var_B8]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_97D21:
mov rdi, r15
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE4dataD2Ev; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::data::~data()
mov rax, [rsp+128h+var_100]
movzx eax, byte ptr [rax]
cmp eax, 2
jz short loc_97D43
cmp eax, 1
jnz short loc_97D4B
add qword ptr [rsp+128h+var_F8], 30h ; '0'
jmp short loc_97D50
loc_97D43:
add qword ptr [rsp+128h+var_F8+8], 10h
jmp short loc_97D50
loc_97D4B:
inc [rsp+128h+var_E8]
loc_97D50:
mov rdi, r13
lea rsi, [rsp+128h+var_120]
call _ZNK8nlohmann16json_abi_v3_11_36detail9iter_implIKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEEeqISH_TnNSt9enable_ifIXoosr3std7is_sameIT_SH_EE5valuesr3std7is_sameISK_NS2_ISF_EEEE5valueEDnE4typeELDn0EEEbRKSK_
test al, al
jz loc_97BF3
loc_97D65:
lea rdi, [rsp+128h+var_D8]
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE4dataD2Ev; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::data::~data()
loc_97D6F:
add rsp, 0F8h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
jmp short loc_97DDD
jmp short loc_97DD1
jmp loc_97E5E
mov r14, rax
mov rax, [rsp+128h+var_48]
test rax, rax
jz short loc_97DAC
lea rdi, [rsp+128h+var_58]
mov rsi, rdi
mov edx, 3
call rax
loc_97DAC:
mov rdi, [rsp+128h+var_C8]; void *
lea rax, [rsp+128h+var_B8]
cmp rdi, rax
jz loc_97E6B
mov rsi, [rsp+128h+var_B8]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
jmp loc_97E6B
loc_97DD1:
mov rdi, rax
call __clang_call_terminate
jmp short loc_97DDD
jmp short $+2
loc_97DDD:
mov r14, rax
jmp loc_97E6B
mov r14, rax
jmp short loc_97E40
mov r14, rax
lea rdi, [rsp+128h+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_97E1B
mov r14, rax
lea rdi, [rsp+128h+var_C8]; this
call _ZN16common_tool_callD2Ev; common_tool_call::~common_tool_call()
lea rdi, [rsp+128h+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_97E61
mov r14, rax
loc_97E1B:
mov rdi, [rsp+128h+var_A8]; void *
lea rax, [rsp+128h+var_98]
cmp rdi, rax
jz short loc_97E40
mov rsi, [rsp+128h+var_98]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_97E40:
mov rdi, [rsp+128h+var_C8]; void *
lea rax, [rsp+128h+var_B8]
cmp rdi, rax
jz short loc_97E61
mov rsi, [rsp+128h+var_B8]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
jmp short loc_97E61
loc_97E5E:
mov r14, rax
loc_97E61:
lea rdi, [rsp+128h+var_D8]
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE4dataD2Ev; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::data::~data()
loc_97E6B:
mov rdi, [rsp+128h+var_E0]; this
call _ZN15common_chat_msgD2Ev; common_chat_msg::~common_chat_msg()
mov rdi, r14
call __Unwind_Resume
| long long parse_prefixed_json_tool_call_array(long long a1, long long a2, _QWORD *a3, long long a4)
{
long long v6; // r15
long long v7; // r12
long long v8; // r15
long long result; // rax
char *v10; // r14
long long v11; // rbx
_BYTE *v12; // rbp
long long v13; // rax
long long v14; // rax
int v15; // eax
void ***v16; // [rsp+8h] [rbp-120h] BYREF
__int128 v17; // [rsp+10h] [rbp-118h]
long long v18; // [rsp+20h] [rbp-108h]
void ***v19; // [rsp+28h] [rbp-100h] BYREF
__int128 v20; // [rsp+30h] [rbp-F8h]
long long v21; // [rsp+40h] [rbp-E8h]
common_chat_msg *v22; // [rsp+48h] [rbp-E0h]
void **v23; // [rsp+50h] [rbp-D8h] BYREF
_QWORD *v24; // [rsp+58h] [rbp-D0h]
void *v25[2]; // [rsp+60h] [rbp-C8h] BYREF
_QWORD v26[2]; // [rsp+70h] [rbp-B8h] BYREF
void *v27[2]; // [rsp+80h] [rbp-A8h] BYREF
long long v28; // [rsp+90h] [rbp-98h] BYREF
void *v29; // [rsp+A0h] [rbp-88h] BYREF
long long v30; // [rsp+B0h] [rbp-78h] BYREF
void **v31[2]; // [rsp+C0h] [rbp-68h] BYREF
__int128 v32; // [rsp+D0h] [rbp-58h] BYREF
__int128 v33; // [rsp+E0h] [rbp-48h]
v6 = std::string::find(a2, *a3, 0LL, a3[1]);
*(_QWORD *)a1 = a1 + 16;
*(_QWORD *)(a1 + 8) = 0LL;
*(_BYTE *)(a1 + 16) = 0;
*(_QWORD *)(a1 + 32) = a1 + 48;
*(_QWORD *)(a1 + 40) = 0LL;
*(_BYTE *)(a1 + 48) = 0;
*(_OWORD *)(a1 + 64) = 0LL;
*(_QWORD *)(a1 + 80) = 0LL;
*(_QWORD *)(a1 + 88) = a1 + 104;
*(_QWORD *)(a1 + 96) = 0LL;
*(_BYTE *)(a1 + 104) = 0;
v22 = (common_chat_msg *)a1;
std::string::_M_replace(a1, 0LL, 0LL, "assistant", 9LL);
if ( v6 == -1 )
return std::string::_M_assign(a1 + 32, a2);
v7 = a3[1];
std::string::substr(v25, a2, 0LL, v6);
v8 = v7 + v6 - a4;
std::string::operator=(a1 + 32, v25);
if ( v25[0] != v26 )
operator delete(v25[0], v26[0] + 1LL);
std::string::substr(v25, a2, v8, -1LL);
v33 = 0LL;
v32 = 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>::parse<std::string>(
(long long)&v23,
(long long *)v25,
(long long)&v32,
1u,
0);
if ( (_QWORD)v33 )
((void ( *)(__int128 *, __int128 *, long long))v33)(&v32, &v32, 3LL);
if ( v25[0] != v26 )
operator delete(v25[0], v26[0] + 1LL);
v19 = &v23;
v20 = 0LL;
v21 = 0x8000000000000000LL;
if ( !(_BYTE)v23 )
{
v21 = 1LL;
LABEL_16:
v16 = &v23;
v17 = 0LL;
v18 = 1LL;
goto LABEL_17;
}
if ( (unsigned __int8)v23 == 2 )
{
*((_QWORD *)&v20 + 1) = *v24;
v16 = &v23;
*(_QWORD *)&v17 = 0LL;
v18 = 0x8000000000000000LL;
*((_QWORD *)&v17 + 1) = v24[1];
goto LABEL_17;
}
if ( (unsigned __int8)v23 != 1 )
{
v21 = 0LL;
goto LABEL_16;
}
*(_QWORD *)&v20 = *v24;
v16 = &v23;
*((_QWORD *)&v17 + 1) = 0LL;
v18 = 0x8000000000000000LL;
*(_QWORD *)&v17 = v24[1];
LABEL_17:
result = ZNK8nlohmann16json_abi_v3_11_36detail9iter_implIKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEEeqISH_TnNSt9enable_ifIXoosr3std7is_sameIT_SH_EE5valuesr3std7is_sameISK_NS2_ISF_EEEE5valueEDnE4typeELDn0EEEbRKSK_(
&v19,
&v16);
if ( !(_BYTE)result )
{
v10 = (char *)v22 + 64;
do
{
v11 = nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> const>::operator*(&v19);
v12 = (_BYTE *)nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::operator[]<char const>(
v11,
(long long)"arguments");
v13 = nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::operator[]<char const>(
v11,
(long long)"name");
ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE8get_implIS9_TnNSt9enable_ifIXaasr6detail24is_default_constructibleIT_EE5valuesr6detail13has_from_jsonISD_SG_EE5valueEiE4typeELi0EEESG_NS0_6detail12priority_tagILj0EEE(
(long long)v25,
v13);
if ( *v12 == 3 )
ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE8get_implIS9_TnNSt9enable_ifIXaasr6detail24is_default_constructibleIT_EE5valuesr6detail13has_from_jsonISD_SG_EE5valueEiE4typeELi0EEESG_NS0_6detail12priority_tagILj0EEE(
(long long)v27,
(long long)v12);
else
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::dump(
(long long)v27,
(long long)v12,
-1,
32,
0,
0);
if ( ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE8containsIRA3_KcTnNSt9enable_ifIXsr6detail32is_usable_as_basic_json_key_typeISD_T_EE5valueEiE4typeELi0EEEbOSJ_(
v11,
(long long)"id") )
{
v14 = nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::operator[]<char const>(
v11,
(long long)"id");
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::basic_json(
(long long)v31,
v14);
}
else
{
ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEC2IRA1_KcA1_cTnNSt9enable_ifIXaantsr6detail13is_basic_jsonIT0_EE5valuesr6detail18is_compatible_typeISD_SK_EE5valueEiE4typeELi0EEEOT_((char *)v31);
}
ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE8get_implIS9_TnNSt9enable_ifIXaasr6detail24is_default_constructibleIT_EE5valuesr6detail13has_from_jsonISD_SG_EE5valueEiE4typeELi0EEESG_NS0_6detail12priority_tagILj0EEE(
(long long)&v29,
(long long)v31);
std::vector<common_tool_call>::emplace_back<common_tool_call>(v10, v25);
if ( v29 != &v30 )
operator delete(v29, v30 + 1);
if ( v27[0] != &v28 )
operator delete(v27[0], v28 + 1);
if ( v25[0] != v26 )
operator delete(v25[0], v26[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(v31);
v15 = *(unsigned __int8 *)v19;
if ( v15 == 2 )
{
*((_QWORD *)&v20 + 1) += 16LL;
}
else if ( v15 == 1 )
{
*(_QWORD *)&v20 = v20 + 48;
}
else
{
++v21;
}
result = ZNK8nlohmann16json_abi_v3_11_36detail9iter_implIKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEEeqISH_TnNSt9enable_ifIXoosr3std7is_sameIT_SH_EE5valuesr3std7is_sameISK_NS2_ISF_EEEE5valueEDnE4typeELDn0EEEbRKSK_(
&v19,
&v16);
}
while ( !(_BYTE)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(&v23);
return result;
}
| parse_prefixed_json_tool_call_array:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0xf8
MOV RBX,RCX
MOV R12,RDX
MOV R14,RSI
MOV RBP,RDI
MOV RSI,qword ptr [RDX]
MOV RCX,qword ptr [RDX + 0x8]
XOR R13D,R13D
MOV RDI,R14
XOR EDX,EDX
CALL 0x0011acf0
MOV R15,RAX
LEA RAX,[RBP + 0x10]
MOV qword ptr [RBP],RAX
MOV qword ptr [RBP + 0x8],R13
MOV byte ptr [RBP + 0x10],R13B
LEA RAX,[RBP + 0x30]
MOV qword ptr [RBP + 0x20],RAX
MOV qword ptr [RBP + 0x28],R13
MOV byte ptr [RBP + 0x30],R13B
XORPS XMM0,XMM0
MOVUPS xmmword ptr [RBP + 0x40],XMM0
MOV qword ptr [RBP + 0x50],R13
LEA RAX,[RBP + 0x68]
MOV qword ptr [RBP + 0x58],RAX
MOV qword ptr [RBP + 0x60],R13
MOV byte ptr [RBP + 0x68],R13B
LAB_00197a14:
LEA RCX,[0x1ae3dc]
MOV R8D,0x9
MOV RDI,RBP
XOR ESI,ESI
XOR EDX,EDX
MOV qword ptr [RSP + 0x48],RBP
CALL 0x0011ab90
LEA R13,[RBP + 0x20]
CMP R15,-0x1
JZ 0x00197b5f
MOV R12,qword ptr [R12 + 0x8]
LAB_00197a45:
LEA RDI,[RSP + 0x60]
MOV RSI,R14
XOR EDX,EDX
MOV RCX,R15
CALL 0x0011a7a0
SUB R15,RBX
ADD R15,R12
LEA RBX,[RSP + 0x60]
MOV RDI,R13
MOV RSI,RBX
CALL 0x0011a900
MOV RDI,qword ptr [RBX]
LEA RAX,[RSP + 0x70]
CMP RDI,RAX
JZ 0x00197a87
MOV RSI,qword ptr [RSP + 0x70]
INC RSI
CALL 0x0011a740
LAB_00197a87:
LEA RDI,[RSP + 0x60]
MOV RSI,R14
MOV RDX,R15
MOV RCX,-0x1
CALL 0x0011a7a0
XORPS XMM0,XMM0
LEA RDX,[RSP + 0xd0]
MOVAPS xmmword ptr [RDX + 0x10],XMM0
MOVAPS xmmword ptr [RDX],XMM0
LAB_00197ab0:
LEA RBX,[RSP + 0x50]
LEA RSI,[RSP + 0x60]
MOV RDI,RBX
MOV ECX,0x1
XOR R8D,R8D
CALL 0x0016d612
MOV RAX,qword ptr [RSP + 0xe0]
TEST RAX,RAX
JZ 0x00197ae9
LAB_00197ad7:
LEA RDI,[RSP + 0xd0]
MOV RSI,RDI
MOV EDX,0x3
CALL RAX
LAB_00197ae9:
MOV RDI,qword ptr [RSP + 0x60]
LEA RAX,[RSP + 0x70]
CMP RDI,RAX
JZ 0x00197b05
MOV RSI,qword ptr [RSP + 0x70]
INC RSI
CALL 0x0011a740
LAB_00197b05:
MOV RAX,-0x8000000000000000
MOV qword ptr [RSP + 0x28],RBX
XORPS XMM0,XMM0
MOVUPS xmmword ptr [RSP + 0x30],XMM0
MOV qword ptr [RSP + 0x40],RAX
MOVZX ECX,byte ptr [RSP + 0x50]
TEST ECX,ECX
JZ 0x00197b9a
CMP ECX,0x2
JZ 0x00197b6f
CMP ECX,0x1
JNZ 0x00197ba5
MOV RCX,qword ptr [RSP + 0x58]
MOV RDX,qword ptr [RCX]
MOV qword ptr [RSP + 0x30],RDX
MOV qword ptr [RSP + 0x8],RBX
MOV qword ptr [RSP + 0x18],0x0
MOV qword ptr [RSP + 0x20],RAX
MOV RAX,qword ptr [RCX + 0x8]
MOV qword ptr [RSP + 0x10],RAX
JMP 0x00197bc1
LAB_00197b5f:
MOV RDI,R13
MOV RSI,R14
CALL 0x0011a3f0
JMP 0x00197d6f
LAB_00197b6f:
MOV RCX,qword ptr [RSP + 0x58]
MOV RDX,qword ptr [RCX]
MOV qword ptr [RSP + 0x38],RDX
MOV qword ptr [RSP + 0x8],RBX
MOV qword ptr [RSP + 0x10],0x0
MOV qword ptr [RSP + 0x20],RAX
MOV RAX,qword ptr [RCX + 0x8]
MOV qword ptr [RSP + 0x18],RAX
JMP 0x00197bc1
LAB_00197b9a:
MOV qword ptr [RSP + 0x40],0x1
JMP 0x00197bae
LAB_00197ba5:
MOV qword ptr [RSP + 0x40],0x0
LAB_00197bae:
MOV qword ptr [RSP + 0x8],RBX
MOVUPS xmmword ptr [RSP + 0x10],XMM0
MOV qword ptr [RSP + 0x20],0x1
LAB_00197bc1:
LEA RDI,[RSP + 0x28]
LEA RSI,[RSP + 0x8]
CALL 0x00152fcc
TEST AL,AL
JNZ 0x00197d65
MOV RAX,qword ptr [RSP + 0x48]
LEA R14,[RAX + 0x40]
LEA R13,[RSP + 0x28]
LEA R12,[RSP + 0x60]
LEA R15,[RSP + 0xc0]
LAB_00197bf3:
MOV RDI,R13
CALL 0x00152c60
MOV RBX,RAX
MOV RDI,RAX
LEA RSI,[0x1b128c]
CALL 0x0016df00
MOV RBP,RAX
MOV RDI,RBX
LEA RSI,[0x1b1838]
CALL 0x0016df00
MOV RDI,R12
MOV RSI,RAX
CALL 0x0014468a
CMP byte ptr [RBP],0x3
JNZ 0x00197c42
LAB_00197c30:
LEA RDI,[RSP + 0x80]
MOV RSI,RBP
CALL 0x0014468a
JMP 0x00197c62
LAB_00197c42:
LEA RDI,[RSP + 0x80]
MOV RSI,RBP
MOV EDX,0xffffffff
MOV ECX,0x20
XOR R8D,R8D
XOR R9D,R9D
CALL 0x00130c70
LAB_00197c62:
MOV RDI,RBX
LEA RSI,[0x1ae844]
CALL 0x0016de9e
TEST AL,AL
JZ 0x00197c91
MOV RDI,RBX
LEA RSI,[0x1ae844]
CALL 0x0016df00
MOV RDI,R15
MOV RSI,RAX
CALL 0x0012faf6
JMP 0x00197ca0
LAB_00197c91:
MOV RDI,R15
LEA RSI,[0x1ac0ce]
CALL 0x00180c9a
LAB_00197ca0:
LEA RDI,[RSP + 0xa0]
MOV RSI,R15
CALL 0x0014468a
LAB_00197cb0:
MOV RDI,R14
MOV RSI,R12
CALL 0x0019ac5c
MOV RDI,qword ptr [RSP + 0xa0]
LEA RAX,[RSP + 0xb0]
CMP RDI,RAX
JZ 0x00197ce0
MOV RSI,qword ptr [RSP + 0xb0]
INC RSI
CALL 0x0011a740
LAB_00197ce0:
MOV RDI,qword ptr [RSP + 0x80]
LEA RAX,[RSP + 0x90]
CMP RDI,RAX
JZ 0x00197d05
MOV RSI,qword ptr [RSP + 0x90]
INC RSI
CALL 0x0011a740
LAB_00197d05:
MOV RDI,qword ptr [RSP + 0x60]
LEA RAX,[RSP + 0x70]
CMP RDI,RAX
JZ 0x00197d21
MOV RSI,qword ptr [RSP + 0x70]
INC RSI
CALL 0x0011a740
LAB_00197d21:
MOV RDI,R15
CALL 0x0014f2d0
MOV RAX,qword ptr [RSP + 0x28]
MOVZX EAX,byte ptr [RAX]
CMP EAX,0x2
JZ 0x00197d43
CMP EAX,0x1
JNZ 0x00197d4b
ADD qword ptr [RSP + 0x30],0x30
JMP 0x00197d50
LAB_00197d43:
ADD qword ptr [RSP + 0x38],0x10
JMP 0x00197d50
LAB_00197d4b:
INC qword ptr [RSP + 0x40]
LAB_00197d50:
MOV RDI,R13
LEA RSI,[RSP + 0x8]
CALL 0x00152fcc
TEST AL,AL
JZ 0x00197bf3
LAB_00197d65:
LEA RDI,[RSP + 0x50]
CALL 0x0014f2d0
LAB_00197d6f:
ADD RSP,0xf8
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
|
/* parse_prefixed_json_tool_call_array(std::__cxx11::string const&, std::__cxx11::string const&,
unsigned long) */
void parse_prefixed_json_tool_call_array(string *param_1,string *param_2,ulong param_3)
{
vector<common_tool_call,std::allocator<common_tool_call>> *this;
char cVar1;
long lVar2;
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
*this_00;
basic_json *pbVar3;
basic_json *pbVar4;
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
*local_120;
long local_118;
long lStack_110;
int8 local_108;
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,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_100;
long local_f8;
long lStack_f0;
long local_e8;
string *local_e0;
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
local_d8 [8];
long *local_d0;
long *local_c8 [2];
long local_b8 [2];
long *local_a8 [2];
long local_98 [2];
long *local_88 [2];
long local_78 [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>
local_68 [16];
int8 local_58;
int8 uStack_50;
code *local_48;
int8 uStack_40;
lVar2 = std::__cxx11::string::find((char *)param_2,*(ulong *)param_3,0);
*(string **)param_1 = param_1 + 0x10;
*(int8 *)(param_1 + 8) = 0;
param_1[0x10] = (string)0x0;
*(string **)(param_1 + 0x20) = param_1 + 0x30;
*(int8 *)(param_1 + 0x28) = 0;
param_1[0x30] = (string)0x0;
*(int8 *)(param_1 + 0x40) = 0;
*(int8 *)(param_1 + 0x48) = 0;
*(int8 *)(param_1 + 0x50) = 0;
*(string **)(param_1 + 0x58) = param_1 + 0x68;
*(int8 *)(param_1 + 0x60) = 0;
param_1[0x68] = (string)0x0;
local_e0 = param_1;
/* try { // try from 00197a14 to 00197a31 has its CatchHandler @ 00197ddd */
std::__cxx11::string::_M_replace((ulong)param_1,0,(char *)0x0,0x1ae3dc);
if (lVar2 == -1) {
/* try { // try from 00197b5f to 00197b69 has its CatchHandler @ 00197d81 */
std::__cxx11::string::_M_assign(param_1 + 0x20);
return;
}
/* try { // try from 00197a45 to 00197a56 has its CatchHandler @ 00197ddb */
std::__cxx11::string::substr((ulong)local_c8,(ulong)param_2);
std::__cxx11::string::operator=(param_1 + 0x20,(string *)local_c8);
if (local_c8[0] != local_b8) {
operator_delete(local_c8[0],local_b8[0] + 1);
}
/* try { // try from 00197a87 to 00197a9d has its CatchHandler @ 00197dd9 */
std::__cxx11::string::substr((ulong)local_c8,(ulong)param_2);
local_48 = (code *)0x0;
uStack_40 = 0;
local_58 = 0;
uStack_50 = 0;
/* try { // try from 00197ab0 to 00197ac9 has its CatchHandler @ 00197d8a */
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>
::parse<std::__cxx11::string>(local_d8,local_c8,&local_58,1,0);
if (local_48 != (code *)0x0) {
/* try { // try from 00197ad7 to 00197ae8 has its CatchHandler @ 00197d83 */
(*local_48)(&local_58,&local_58,3);
}
if (local_c8[0] != local_b8) {
operator_delete(local_c8[0],local_b8[0] + 1);
}
local_f8 = 0;
lStack_f0 = 0;
local_e8 = -0x8000000000000000;
if (local_d8[0] ==
(basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
)0x0) {
local_e8 = 1;
}
else {
if (local_d8[0] ==
(basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
)0x2) {
lStack_f0 = *local_d0;
local_118 = 0;
local_108 = 0x8000000000000000;
lStack_110 = local_d0[1];
goto LAB_00197bc1;
}
if (local_d8[0] ==
(basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
)0x1) {
local_f8 = *local_d0;
lStack_110 = 0;
local_108 = 0x8000000000000000;
local_118 = local_d0[1];
goto LAB_00197bc1;
}
local_e8 = 0;
}
local_118 = 0;
lStack_110 = 0;
local_108 = 1;
LAB_00197bc1:
/* try { // try from 00197bc1 to 00197bcf has its CatchHandler @ 00197d85 */
local_120 = local_d8;
local_100 = local_d8;
cVar1 = _ZNK8nlohmann16json_abi_v3_11_36detail9iter_implIKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEEeqISH_TnNSt9enable_ifIXoosr3std7is_sameIT_SH_EE5valuesr3std7is_sameISK_NS2_ISF_EEEE5valueEDnE4typeELDn0EEEbRKSK_
(&local_100,&local_120);
if (cVar1 == '\0') {
this = (vector<common_tool_call,std::allocator<common_tool_call>> *)(local_e0 + 0x40);
do {
/* try { // try from 00197bf3 to 00197c29 has its CatchHandler @ 00197e5e */
this_00 = (basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
*)nlohmann::json_abi_v3_11_3::detail::
iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>const>
::operator*((iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>const>
*)&local_100);
pbVar3 = nlohmann::json_abi_v3_11_3::
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::operator[]<char_const>(this_00,"arguments");
pbVar4 = nlohmann::json_abi_v3_11_3::
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::operator[]<char_const>(this_00,"name");
_ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE8get_implIS9_TnNSt9enable_ifIXaasr6detail24is_default_constructibleIT_EE5valuesr6detail13has_from_jsonISD_SG_EE5valueEiE4typeELi0EEESG_NS0_6detail12priority_tagILj0EEE
((common_tool_call *)local_c8,pbVar4);
if (*pbVar3 == (basic_json)0x3) {
/* try { // try from 00197c30 to 00197c61 has its CatchHandler @ 00197de5 */
_ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE8get_implIS9_TnNSt9enable_ifIXaasr6detail24is_default_constructibleIT_EE5valuesr6detail13has_from_jsonISD_SG_EE5valueEiE4typeELi0EEESG_NS0_6detail12priority_tagILj0EEE
(local_a8,pbVar3);
}
else {
nlohmann::json_abi_v3_11_3::
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::dump(local_a8,pbVar3,0xffffffff,0x20,0,0);
}
/* try { // try from 00197c62 to 00197c9f has its CatchHandler @ 00197e18 */
cVar1 = _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE8containsIRA3_KcTnNSt9enable_ifIXsr6detail32is_usable_as_basic_json_key_typeISD_T_EE5valueEiE4typeELi0EEEbOSJ_
(this_00,"id");
if (cVar1 == '\0') {
_ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEC2IRA1_KcA1_cTnNSt9enable_ifIXaantsr6detail13is_basic_jsonIT0_EE5valuesr6detail18is_compatible_typeISD_SK_EE5valueEiE4typeELi0EEEOT_
(local_68,"");
}
else {
pbVar3 = nlohmann::json_abi_v3_11_3::
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::operator[]<char_const>(this_00,"id");
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_68,pbVar3);
}
/* try { // try from 00197ca0 to 00197caf has its CatchHandler @ 00197dea */
_ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE8get_implIS9_TnNSt9enable_ifIXaasr6detail24is_default_constructibleIT_EE5valuesr6detail13has_from_jsonISD_SG_EE5valueEiE4typeELi0EEESG_NS0_6detail12priority_tagILj0EEE
(local_88,local_68);
/* try { // try from 00197cb0 to 00197cba has its CatchHandler @ 00197dfc */
std::vector<common_tool_call,std::allocator<common_tool_call>>::emplace_back<common_tool_call>
(this,(common_tool_call *)local_c8);
if (local_88[0] != local_78) {
operator_delete(local_88[0],local_78[0] + 1);
}
if (local_a8[0] != local_98) {
operator_delete(local_a8[0],local_98[0] + 1);
}
if (local_c8[0] != local_b8) {
operator_delete(local_c8[0],local_b8[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((data *)local_68);
if (*local_100 ==
(basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
)0x2) {
lStack_f0 = lStack_f0 + 0x10;
}
else if (*local_100 ==
(basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
)0x1) {
local_f8 = local_f8 + 0x30;
}
else {
local_e8 = local_e8 + 1;
}
/* try { // try from 00197d50 to 00197d5c has its CatchHandler @ 00197e5e */
cVar1 = _ZNK8nlohmann16json_abi_v3_11_36detail9iter_implIKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEEeqISH_TnNSt9enable_ifIXoosr3std7is_sameIT_SH_EE5valuesr3std7is_sameISK_NS2_ISF_EEEE5valueEDnE4typeELDn0EEEbRKSK_
((iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>const>
*)&local_100,&local_120);
} while (cVar1 == '\0');
}
nlohmann::json_abi_v3_11_3::
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::data::~data((data *)local_d8);
return;
}
| |
42,674 | JS_IteratorClose | bluesky950520[P]quickjs/quickjs.c | static int JS_IteratorClose(JSContext *ctx, JSValue enum_obj,
BOOL is_exception_pending)
{
JSValue method, ret, ex_obj;
int res;
if (is_exception_pending) {
ex_obj = ctx->rt->current_exception;
ctx->rt->current_exception = JS_UNINITIALIZED;
res = -1;
} else {
ex_obj = JS_UNDEFINED;
res = 0;
}
method = JS_GetProperty(ctx, enum_obj, JS_ATOM_return);
if (JS_IsException(method)) {
res = -1;
goto done;
}
if (JS_IsUndefined(method) || JS_IsNull(method)) {
goto done;
}
ret = JS_CallFree(ctx, method, enum_obj, 0, NULL);
if (!is_exception_pending) {
if (JS_IsException(ret)) {
res = -1;
} else if (!JS_IsObject(ret)) {
JS_ThrowTypeErrorNotAnObject(ctx);
res = -1;
}
}
JS_FreeValue(ctx, ret);
done:
if (is_exception_pending) {
JS_Throw(ctx, ex_obj);
}
return res;
} | O0 | c | JS_IteratorClose:
subq $0xc8, %rsp
movq %rsi, 0xb8(%rsp)
movq %rdx, 0xc0(%rsp)
movq %rdi, 0xb0(%rsp)
movl %ecx, 0xac(%rsp)
cmpl $0x0, 0xac(%rsp)
je 0x6e346
movq 0xb0(%rsp), %rax
movq 0x18(%rax), %rax
movq 0xf0(%rax), %rcx
movq %rcx, 0x78(%rsp)
movq 0xf8(%rax), %rax
movq %rax, 0x80(%rsp)
movq 0xb0(%rsp), %rax
movq 0x18(%rax), %rax
movl $0x0, 0x60(%rsp)
movq $0x4, 0x68(%rsp)
movq 0x60(%rsp), %rcx
movq %rcx, 0xf0(%rax)
movq 0x68(%rsp), %rcx
movq %rcx, 0xf8(%rax)
movl $0xffffffff, 0x74(%rsp) # imm = 0xFFFFFFFF
jmp 0x6e376
movl $0x0, 0x50(%rsp)
movq $0x3, 0x58(%rsp)
movq 0x50(%rsp), %rax
movq %rax, 0x78(%rsp)
movq 0x58(%rsp), %rax
movq %rax, 0x80(%rsp)
movl $0x0, 0x74(%rsp)
movq 0xb0(%rsp), %rdi
movq 0xb8(%rsp), %rsi
movq 0xc0(%rsp), %rdx
movl $0x6, %ecx
callq 0x30070
movq %rax, 0x40(%rsp)
movq %rdx, 0x48(%rsp)
movq 0x40(%rsp), %rax
movq %rax, 0x98(%rsp)
movq 0x48(%rsp), %rax
movq %rax, 0xa0(%rsp)
movq 0x98(%rsp), %rdi
movq 0xa0(%rsp), %rsi
callq 0x29fb0
cmpl $0x0, %eax
je 0x6e3e3
movl $0xffffffff, 0x74(%rsp) # imm = 0xFFFFFFFF
jmp 0x6e502
movq 0x98(%rsp), %rdi
movq 0xa0(%rsp), %rsi
callq 0x34550
cmpl $0x0, %eax
jne 0x6e417
movq 0x98(%rsp), %rdi
movq 0xa0(%rsp), %rsi
callq 0x34530
cmpl $0x0, %eax
je 0x6e41c
jmp 0x6e502
movq 0xb0(%rsp), %rdi
movq 0x98(%rsp), %rsi
movq 0xa0(%rsp), %rdx
movq 0xb8(%rsp), %rcx
movq 0xc0(%rsp), %r8
xorl %r9d, %r9d
xorl %eax, %eax
movq $0x0, (%rsp)
callq 0x34570
movq %rax, 0x30(%rsp)
movq %rdx, 0x38(%rsp)
movq 0x30(%rsp), %rax
movq %rax, 0x88(%rsp)
movq 0x38(%rsp), %rax
movq %rax, 0x90(%rsp)
cmpl $0x0, 0xac(%rsp)
jne 0x6e4e5
movq 0x88(%rsp), %rdi
movq 0x90(%rsp), %rsi
callq 0x29fb0
cmpl $0x0, %eax
je 0x6e4a8
movl $0xffffffff, 0x74(%rsp) # imm = 0xFFFFFFFF
jmp 0x6e4e3
movq 0x88(%rsp), %rdi
movq 0x90(%rsp), %rsi
callq 0x31260
cmpl $0x0, %eax
jne 0x6e4e1
movq 0xb0(%rsp), %rdi
callq 0x35890
movq %rax, 0x20(%rsp)
movq %rdx, 0x28(%rsp)
movl $0xffffffff, 0x74(%rsp) # imm = 0xFFFFFFFF
jmp 0x6e4e3
jmp 0x6e4e5
movq 0xb0(%rsp), %rdi
movq 0x88(%rsp), %rsi
movq 0x90(%rsp), %rdx
callq 0x29f80
cmpl $0x0, 0xac(%rsp)
je 0x6e530
movq 0xb0(%rsp), %rdi
movq 0x78(%rsp), %rsi
movq 0x80(%rsp), %rdx
callq 0x331f0
movq %rax, 0x10(%rsp)
movq %rdx, 0x18(%rsp)
movl 0x74(%rsp), %eax
addq $0xc8, %rsp
retq
nopl (%rax)
| JS_IteratorClose:
sub rsp, 0C8h
mov [rsp+0C8h+var_10], rsi
mov [rsp+0C8h+var_8], rdx
mov [rsp+0C8h+var_18], rdi
mov [rsp+0C8h+var_1C], ecx
cmp [rsp+0C8h+var_1C], 0
jz short loc_6E346
mov rax, [rsp+0C8h+var_18]
mov rax, [rax+18h]
mov rcx, [rax+0F0h]
mov [rsp+0C8h+var_50], rcx
mov rax, [rax+0F8h]
mov [rsp+0C8h+var_48], rax
mov rax, [rsp+0C8h+var_18]
mov rax, [rax+18h]
mov dword ptr [rsp+0C8h+var_68], 0
mov [rsp+0C8h+var_60], 4
mov rcx, [rsp+0C8h+var_68]
mov [rax+0F0h], rcx
mov rcx, [rsp+0C8h+var_60]
mov [rax+0F8h], rcx
mov [rsp+0C8h+var_54], 0FFFFFFFFh
jmp short loc_6E376
loc_6E346:
mov dword ptr [rsp+0C8h+var_78], 0
mov [rsp+0C8h+var_70], 3
mov rax, [rsp+0C8h+var_78]
mov [rsp+0C8h+var_50], rax
mov rax, [rsp+0C8h+var_70]
mov [rsp+0C8h+var_48], rax
mov [rsp+0C8h+var_54], 0
loc_6E376:
mov rdi, [rsp+0C8h+var_18]
mov rsi, [rsp+0C8h+var_10]
mov rdx, [rsp+0C8h+var_8]
mov ecx, 6
call JS_GetProperty
mov [rsp+0C8h+var_88], rax
mov [rsp+0C8h+var_80], rdx
mov rax, [rsp+0C8h+var_88]
mov [rsp+0C8h+var_30], rax
mov rax, [rsp+0C8h+var_80]
mov [rsp+0C8h+var_28], rax
mov rdi, [rsp+0C8h+var_30]
mov rsi, [rsp+0C8h+var_28]
call JS_IsException_1
cmp eax, 0
jz short loc_6E3E3
mov [rsp+0C8h+var_54], 0FFFFFFFFh
jmp loc_6E502
loc_6E3E3:
mov rdi, [rsp+0C8h+var_30]
mov rsi, [rsp+0C8h+var_28]
call JS_IsUndefined_1
cmp eax, 0
jnz short loc_6E417
mov rdi, [rsp+0C8h+var_30]
mov rsi, [rsp+0C8h+var_28]
call JS_IsNull_1
cmp eax, 0
jz short loc_6E41C
loc_6E417:
jmp loc_6E502
loc_6E41C:
mov rdi, [rsp+0C8h+var_18]
mov rsi, [rsp+0C8h+var_30]
mov rdx, [rsp+0C8h+var_28]
mov rcx, [rsp+0C8h+var_10]
mov r8, [rsp+0C8h+var_8]
xor r9d, r9d
xor eax, eax
mov [rsp+0C8h+var_C8], 0
call JS_CallFree
mov [rsp+0C8h+var_98], rax
mov [rsp+0C8h+var_90], rdx
mov rax, [rsp+0C8h+var_98]
mov [rsp+0C8h+var_40], rax
mov rax, [rsp+0C8h+var_90]
mov [rsp+0C8h+var_38], rax
cmp [rsp+0C8h+var_1C], 0
jnz short loc_6E4E5
mov rdi, [rsp+0C8h+var_40]
mov rsi, [rsp+0C8h+var_38]
call JS_IsException_1
cmp eax, 0
jz short loc_6E4A8
mov [rsp+0C8h+var_54], 0FFFFFFFFh
jmp short loc_6E4E3
loc_6E4A8:
mov rdi, [rsp+0C8h+var_40]
mov rsi, [rsp+0C8h+var_38]
call JS_IsObject
cmp eax, 0
jnz short loc_6E4E1
mov rdi, [rsp+0C8h+var_18]
call JS_ThrowTypeErrorNotAnObject
mov [rsp+0C8h+var_A8], rax
mov [rsp+0C8h+var_A0], rdx
mov [rsp+0C8h+var_54], 0FFFFFFFFh
loc_6E4E1:
jmp short $+2
loc_6E4E3:
jmp short $+2
loc_6E4E5:
mov rdi, [rsp+0C8h+var_18]
mov rsi, [rsp+0C8h+var_40]
mov rdx, [rsp+0C8h+var_38]
call JS_FreeValue
loc_6E502:
cmp [rsp+0C8h+var_1C], 0
jz short loc_6E530
mov rdi, [rsp+0C8h+var_18]
mov rsi, [rsp+0C8h+var_50]
mov rdx, [rsp+0C8h+var_48]
call JS_Throw
mov [rsp+0C8h+var_B8], rax
mov [rsp+0C8h+var_B0], rdx
loc_6E530:
mov eax, [rsp+0C8h+var_54]
add rsp, 0C8h
retn
| long long JS_IteratorClose(
long long a1,
int a2,
int a3,
int a4,
__m128 a5,
__m128 a6,
__m128 a7,
__m128 a8,
double a9,
double a10,
__m128 a11,
__m128 a12)
{
long long v12; // rax
long long v13; // rdx
long long v14; // rdx
long long v15; // rdx
long long v16; // rcx
long long v17; // r8
long long v18; // r9
__m128 v19; // xmm4
__m128 v20; // xmm5
long long v22; // [rsp+30h] [rbp-98h]
long long Property; // [rsp+40h] [rbp-88h]
long long v24; // [rsp+50h] [rbp-78h]
long long v25; // [rsp+60h] [rbp-68h]
unsigned int v26; // [rsp+74h] [rbp-54h]
long long v27; // [rsp+78h] [rbp-50h]
long long v28; // [rsp+80h] [rbp-48h]
long long v29; // [rsp+90h] [rbp-38h]
long long v30; // [rsp+A0h] [rbp-28h]
if ( a4 )
{
v12 = *(_QWORD *)(a1 + 24);
v27 = *(_QWORD *)(v12 + 240);
v28 = *(_QWORD *)(v12 + 248);
LODWORD(v25) = 0;
*(_QWORD *)(v12 + 240) = v25;
*(_QWORD *)(v12 + 248) = 4LL;
v26 = -1;
}
else
{
LODWORD(v24) = 0;
v27 = v24;
v28 = 3LL;
v26 = 0;
}
Property = JS_GetProperty(a1, a2, a3, 6);
v30 = v13;
if ( JS_IsException_1(Property, v13) )
{
v26 = -1;
}
else if ( !JS_IsUndefined_1(Property, v30) && !JS_IsNull_1(Property, v30) )
{
v22 = JS_CallFree(a1, Property, v30, a2, a3, 0, 0LL);
v29 = v14;
if ( !a4 )
{
if ( JS_IsException_1(v22, v14) )
{
v26 = -1;
}
else if ( !JS_IsObject(v22, v29) )
{
JS_ThrowTypeErrorNotAnObject(a1, a5, a6, a7, a8, v19, v20, a11, a12, v29, v15, v16, v17, v18);
v26 = -1;
}
}
JS_FreeValue(a1, v22, v29);
}
if ( a4 )
JS_Throw(a1, v27, v28);
return v26;
}
| JS_IteratorClose:
SUB RSP,0xc8
MOV qword ptr [RSP + 0xb8],RSI
MOV qword ptr [RSP + 0xc0],RDX
MOV qword ptr [RSP + 0xb0],RDI
MOV dword ptr [RSP + 0xac],ECX
CMP dword ptr [RSP + 0xac],0x0
JZ 0x0016e346
MOV RAX,qword ptr [RSP + 0xb0]
MOV RAX,qword ptr [RAX + 0x18]
MOV RCX,qword ptr [RAX + 0xf0]
MOV qword ptr [RSP + 0x78],RCX
MOV RAX,qword ptr [RAX + 0xf8]
MOV qword ptr [RSP + 0x80],RAX
MOV RAX,qword ptr [RSP + 0xb0]
MOV RAX,qword ptr [RAX + 0x18]
MOV dword ptr [RSP + 0x60],0x0
MOV qword ptr [RSP + 0x68],0x4
MOV RCX,qword ptr [RSP + 0x60]
MOV qword ptr [RAX + 0xf0],RCX
MOV RCX,qword ptr [RSP + 0x68]
MOV qword ptr [RAX + 0xf8],RCX
MOV dword ptr [RSP + 0x74],0xffffffff
JMP 0x0016e376
LAB_0016e346:
MOV dword ptr [RSP + 0x50],0x0
MOV qword ptr [RSP + 0x58],0x3
MOV RAX,qword ptr [RSP + 0x50]
MOV qword ptr [RSP + 0x78],RAX
MOV RAX,qword ptr [RSP + 0x58]
MOV qword ptr [RSP + 0x80],RAX
MOV dword ptr [RSP + 0x74],0x0
LAB_0016e376:
MOV RDI,qword ptr [RSP + 0xb0]
MOV RSI,qword ptr [RSP + 0xb8]
MOV RDX,qword ptr [RSP + 0xc0]
MOV ECX,0x6
CALL 0x00130070
MOV qword ptr [RSP + 0x40],RAX
MOV qword ptr [RSP + 0x48],RDX
MOV RAX,qword ptr [RSP + 0x40]
MOV qword ptr [RSP + 0x98],RAX
MOV RAX,qword ptr [RSP + 0x48]
MOV qword ptr [RSP + 0xa0],RAX
MOV RDI,qword ptr [RSP + 0x98]
MOV RSI,qword ptr [RSP + 0xa0]
CALL 0x00129fb0
CMP EAX,0x0
JZ 0x0016e3e3
MOV dword ptr [RSP + 0x74],0xffffffff
JMP 0x0016e502
LAB_0016e3e3:
MOV RDI,qword ptr [RSP + 0x98]
MOV RSI,qword ptr [RSP + 0xa0]
CALL 0x00134550
CMP EAX,0x0
JNZ 0x0016e417
MOV RDI,qword ptr [RSP + 0x98]
MOV RSI,qword ptr [RSP + 0xa0]
CALL 0x00134530
CMP EAX,0x0
JZ 0x0016e41c
LAB_0016e417:
JMP 0x0016e502
LAB_0016e41c:
MOV RDI,qword ptr [RSP + 0xb0]
MOV RSI,qword ptr [RSP + 0x98]
MOV RDX,qword ptr [RSP + 0xa0]
MOV RCX,qword ptr [RSP + 0xb8]
MOV R8,qword ptr [RSP + 0xc0]
XOR R9D,R9D
XOR EAX,EAX
MOV qword ptr [RSP],0x0
CALL 0x00134570
MOV qword ptr [RSP + 0x30],RAX
MOV qword ptr [RSP + 0x38],RDX
MOV RAX,qword ptr [RSP + 0x30]
MOV qword ptr [RSP + 0x88],RAX
MOV RAX,qword ptr [RSP + 0x38]
MOV qword ptr [RSP + 0x90],RAX
CMP dword ptr [RSP + 0xac],0x0
JNZ 0x0016e4e5
MOV RDI,qword ptr [RSP + 0x88]
MOV RSI,qword ptr [RSP + 0x90]
CALL 0x00129fb0
CMP EAX,0x0
JZ 0x0016e4a8
MOV dword ptr [RSP + 0x74],0xffffffff
JMP 0x0016e4e3
LAB_0016e4a8:
MOV RDI,qword ptr [RSP + 0x88]
MOV RSI,qword ptr [RSP + 0x90]
CALL 0x00131260
CMP EAX,0x0
JNZ 0x0016e4e1
MOV RDI,qword ptr [RSP + 0xb0]
CALL 0x00135890
MOV qword ptr [RSP + 0x20],RAX
MOV qword ptr [RSP + 0x28],RDX
MOV dword ptr [RSP + 0x74],0xffffffff
LAB_0016e4e1:
JMP 0x0016e4e3
LAB_0016e4e3:
JMP 0x0016e4e5
LAB_0016e4e5:
MOV RDI,qword ptr [RSP + 0xb0]
MOV RSI,qword ptr [RSP + 0x88]
MOV RDX,qword ptr [RSP + 0x90]
CALL 0x00129f80
LAB_0016e502:
CMP dword ptr [RSP + 0xac],0x0
JZ 0x0016e530
MOV RDI,qword ptr [RSP + 0xb0]
MOV RSI,qword ptr [RSP + 0x78]
MOV RDX,qword ptr [RSP + 0x80]
CALL 0x001331f0
MOV qword ptr [RSP + 0x10],RAX
MOV qword ptr [RSP + 0x18],RDX
LAB_0016e530:
MOV EAX,dword ptr [RSP + 0x74]
ADD RSP,0xc8
RET
|
int4 JS_IteratorClose(long param_1,int8 param_2,int8 param_3,int param_4)
{
long lVar1;
int iVar2;
int8 uVar3;
int8 uVar4;
int1 auVar5 [16];
uint uStack_74;
uint uStack_64;
int4 local_54;
long local_50;
int8 local_48;
if (param_4 == 0) {
local_50 = (ulong)uStack_74 << 0x20;
local_48 = 3;
local_54 = 0;
}
else {
local_50 = *(long *)(*(long *)(param_1 + 0x18) + 0xf0);
local_48 = *(int8 *)(*(long *)(param_1 + 0x18) + 0xf8);
lVar1 = *(long *)(param_1 + 0x18);
*(ulong *)(lVar1 + 0xf0) = (ulong)uStack_64 << 0x20;
*(int8 *)(lVar1 + 0xf8) = 4;
local_54 = 0xffffffff;
}
auVar5 = JS_GetProperty(param_1,param_2,param_3,6);
uVar4 = auVar5._8_8_;
uVar3 = auVar5._0_8_;
iVar2 = JS_IsException(uVar3,uVar4);
if (iVar2 == 0) {
iVar2 = JS_IsUndefined(uVar3,uVar4);
if ((iVar2 == 0) && (iVar2 = JS_IsNull(uVar3,uVar4), iVar2 == 0)) {
auVar5 = JS_CallFree(param_1,uVar3,uVar4,param_2,param_3,0,0);
uVar4 = auVar5._8_8_;
uVar3 = auVar5._0_8_;
if (param_4 == 0) {
iVar2 = JS_IsException(uVar3,uVar4);
if (iVar2 == 0) {
iVar2 = JS_IsObject(uVar3,uVar4);
if (iVar2 == 0) {
JS_ThrowTypeErrorNotAnObject(param_1);
local_54 = 0xffffffff;
}
}
else {
local_54 = 0xffffffff;
}
}
JS_FreeValue(param_1,uVar3,uVar4);
}
}
else {
local_54 = 0xffffffff;
}
if (param_4 != 0) {
JS_Throw(param_1,local_50,local_48);
}
return local_54;
}
| |
42,675 | JS_IteratorClose | bluesky950520[P]quickjs/quickjs.c | static int JS_IteratorClose(JSContext *ctx, JSValue enum_obj,
BOOL is_exception_pending)
{
JSValue method, ret, ex_obj;
int res;
if (is_exception_pending) {
ex_obj = ctx->rt->current_exception;
ctx->rt->current_exception = JS_UNINITIALIZED;
res = -1;
} else {
ex_obj = JS_UNDEFINED;
res = 0;
}
method = JS_GetProperty(ctx, enum_obj, JS_ATOM_return);
if (JS_IsException(method)) {
res = -1;
goto done;
}
if (JS_IsUndefined(method) || JS_IsNull(method)) {
goto done;
}
ret = JS_CallFree(ctx, method, enum_obj, 0, NULL);
if (!is_exception_pending) {
if (JS_IsException(ret)) {
res = -1;
} else if (!JS_IsObject(ret)) {
JS_ThrowTypeErrorNotAnObject(ctx);
res = -1;
}
}
JS_FreeValue(ctx, ret);
done:
if (is_exception_pending) {
JS_Throw(ctx, ex_obj);
}
return res;
} | O2 | c | JS_IteratorClose:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movl %ecx, %ebp
movq %rdx, %r13
movq %rsi, %r14
movq %rdi, %rbx
pushq $-0x1
popq %r12
testl %ecx, %ecx
je 0x3b959
movq 0x18(%rbx), %rax
movq 0xf0(%rax), %rcx
movq 0xf8(%rax), %rdx
movq %rdx, 0x20(%rsp)
movabsq $-0x100000000, %r15 # imm = 0xFFFFFFFF00000000
andl $0x0, 0xf0(%rax)
andq %rcx, %r15
movq $0x4, 0xf8(%rax)
movl %ecx, %eax
movq %rax, 0x18(%rsp)
movl %r12d, %eax
movq %rax, 0x10(%rsp)
jmp 0x3b976
pushq $0x3
popq %rax
movq %rax, 0x20(%rsp)
movq $0x0, 0x10(%rsp)
movq $0x0, 0x18(%rsp)
xorl %r15d, %r15d
pushq $0x6
popq %rcx
movq %rbx, %rdi
movq %r14, %rsi
movq %r13, %rdx
callq 0x1ebf3
cmpl $0x2, %edx
je 0x3b9d1
cmpl $0x3, %edx
je 0x3b9d1
cmpl $0x6, %edx
je 0x3b9d9
andq $0x0, (%rsp)
movq %rbx, %rdi
movq %rax, %rsi
movq %r14, %rcx
movq %r13, %r8
xorl %r9d, %r9d
callq 0x2093e
movq %rax, %r14
movq %rdx, %r12
testl %ebp, %ebp
je 0x3ba04
movq 0x10(%rsp), %r13
movq %rbx, %rdi
movq %r14, %rsi
movq %r12, %rdx
callq 0x1bbce
movl %r13d, %r12d
jmp 0x3b9d9
movq 0x10(%rsp), %rax
movl %eax, %r12d
testl %ebp, %ebp
je 0x3b9f2
orq 0x18(%rsp), %r15
movq %rbx, %rdi
movq %r15, %rsi
movq 0x20(%rsp), %rdx
callq 0x1fff6
movl %r12d, %eax
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
cmpl $-0x1, %r12d
movq 0x10(%rsp), %r13
je 0x3b9be
pushq $-0x1
popq %r13
cmpl $0x6, %r12d
je 0x3b9be
movq %rbx, %rdi
callq 0x21191
jmp 0x3b9be
| JS_IteratorClose:
push rbp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 28h
mov ebp, ecx
mov r13, rdx
mov r14, rsi
mov rbx, rdi
push 0FFFFFFFFFFFFFFFFh
pop r12
test ecx, ecx
jz short loc_3B959
mov rax, [rbx+18h]
mov rcx, [rax+0F0h]
mov rdx, [rax+0F8h]
mov [rsp+58h+var_38], rdx
mov r15, 0FFFFFFFF00000000h
and dword ptr [rax+0F0h], 0
and r15, rcx
mov qword ptr [rax+0F8h], 4
mov eax, ecx
mov [rsp+58h+var_40], rax
mov eax, r12d
mov [rsp+58h+var_48], rax
jmp short loc_3B976
loc_3B959:
push 3
pop rax
mov [rsp+58h+var_38], rax
mov [rsp+58h+var_48], 0
mov [rsp+58h+var_40], 0
xor r15d, r15d
loc_3B976:
push 6
pop rcx
mov rdi, rbx
mov rsi, r14
mov rdx, r13
call JS_GetProperty
cmp edx, 2
jz short loc_3B9D1
cmp edx, 3
jz short loc_3B9D1
cmp edx, 6
jz short loc_3B9D9
and [rsp+58h+var_58], 0
mov rdi, rbx
mov rsi, rax
mov rcx, r14
mov r8, r13
xor r9d, r9d
call JS_CallFree
mov r14, rax
mov r12, rdx
test ebp, ebp
jz short loc_3BA04
mov r13, [rsp+58h+var_48]
loc_3B9BE:
mov rdi, rbx
mov rsi, r14
mov rdx, r12
call JS_FreeValue
mov r12d, r13d
jmp short loc_3B9D9
loc_3B9D1:
mov rax, [rsp+58h+var_48]
mov r12d, eax
loc_3B9D9:
test ebp, ebp
jz short loc_3B9F2
or r15, [rsp+58h+var_40]
mov rdi, rbx
mov rsi, r15
mov rdx, [rsp+58h+var_38]
call JS_Throw
loc_3B9F2:
mov eax, r12d
add rsp, 28h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
loc_3BA04:
cmp r12d, 0FFFFFFFFh
mov r13, [rsp+58h+var_48]
jz short loc_3B9BE
push 0FFFFFFFFFFFFFFFFh
pop r13
cmp r12d, 6
jz short loc_3B9BE
mov rdi, rbx
call JS_ThrowTypeErrorNotAnObject
jmp short loc_3B9BE
| long long JS_IteratorClose(
long long a1,
int a2,
int a3,
int a4,
__m128 a5,
__m128 a6,
__m128 a7,
__m128 a8,
double a9,
double a10,
__m128 a11,
__m128 a12)
{
unsigned int v15; // r12d
long long v16; // rax
long long v17; // rcx
unsigned long long v18; // r15
long long Property; // rax
long long v20; // rdx
long long v21; // rsi
long long v22; // rdx
long long v23; // rcx
long long v24; // r8
long long v25; // r9
long long v26; // r14
__m128 v27; // xmm4
__m128 v28; // xmm5
long long v29; // r12
int v30; // r13d
char v32; // [rsp+0h] [rbp-58h]
int v33; // [rsp+10h] [rbp-48h]
long long v34; // [rsp+18h] [rbp-40h]
long long v35; // [rsp+20h] [rbp-38h]
v15 = -1;
if ( a4 )
{
v16 = *(_QWORD *)(a1 + 24);
v17 = *(_QWORD *)(v16 + 240);
v35 = *(_QWORD *)(v16 + 248);
*(_DWORD *)(v16 + 240) = 0;
v18 = v17 & 0xFFFFFFFF00000000LL;
*(_QWORD *)(v16 + 248) = 4LL;
v34 = (unsigned int)v17;
v33 = -1;
}
else
{
v35 = 3LL;
v33 = 0;
v34 = 0LL;
v18 = 0LL;
}
Property = JS_GetProperty(a1, a2, a3, 6);
if ( (_DWORD)v20 == 2 || (_DWORD)v20 == 3 )
{
v15 = v33;
}
else if ( (_DWORD)v20 != 6 )
{
v21 = Property;
v26 = JS_CallFree(a1, Property, v20, a2, a3, 0, 0LL);
v29 = v22;
if ( a4 )
{
v30 = v33;
}
else
{
v30 = v33;
if ( (_DWORD)v22 != -1 )
{
v30 = -1;
if ( (_DWORD)v22 != 6 )
JS_ThrowTypeErrorNotAnObject(a1, a5, a6, a7, a8, v27, v28, a11, a12, v21, v22, v23, v24, v25, v32);
}
}
JS_FreeValue(a1, v26, v29);
v15 = v30;
}
if ( a4 )
JS_Throw(a1, v34 | v18, v35);
return v15;
}
| JS_IteratorClose:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x28
MOV EBP,ECX
MOV R13,RDX
MOV R14,RSI
MOV RBX,RDI
PUSH -0x1
POP R12
TEST ECX,ECX
JZ 0x0013b959
MOV RAX,qword ptr [RBX + 0x18]
MOV RCX,qword ptr [RAX + 0xf0]
MOV RDX,qword ptr [RAX + 0xf8]
MOV qword ptr [RSP + 0x20],RDX
MOV R15,-0x100000000
AND dword ptr [RAX + 0xf0],0x0
AND R15,RCX
MOV qword ptr [RAX + 0xf8],0x4
MOV EAX,ECX
MOV qword ptr [RSP + 0x18],RAX
MOV EAX,R12D
MOV qword ptr [RSP + 0x10],RAX
JMP 0x0013b976
LAB_0013b959:
PUSH 0x3
POP RAX
MOV qword ptr [RSP + 0x20],RAX
MOV qword ptr [RSP + 0x10],0x0
MOV qword ptr [RSP + 0x18],0x0
XOR R15D,R15D
LAB_0013b976:
PUSH 0x6
POP RCX
MOV RDI,RBX
MOV RSI,R14
MOV RDX,R13
CALL 0x0011ebf3
CMP EDX,0x2
JZ 0x0013b9d1
CMP EDX,0x3
JZ 0x0013b9d1
CMP EDX,0x6
JZ 0x0013b9d9
AND qword ptr [RSP],0x0
MOV RDI,RBX
MOV RSI,RAX
MOV RCX,R14
MOV R8,R13
XOR R9D,R9D
CALL 0x0012093e
MOV R14,RAX
MOV R12,RDX
TEST EBP,EBP
JZ 0x0013ba04
MOV R13,qword ptr [RSP + 0x10]
LAB_0013b9be:
MOV RDI,RBX
MOV RSI,R14
MOV RDX,R12
CALL 0x0011bbce
MOV R12D,R13D
JMP 0x0013b9d9
LAB_0013b9d1:
MOV RAX,qword ptr [RSP + 0x10]
MOV R12D,EAX
LAB_0013b9d9:
TEST EBP,EBP
JZ 0x0013b9f2
OR R15,qword ptr [RSP + 0x18]
MOV RDI,RBX
MOV RSI,R15
MOV RDX,qword ptr [RSP + 0x20]
CALL 0x0011fff6
LAB_0013b9f2:
MOV EAX,R12D
ADD RSP,0x28
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
LAB_0013ba04:
CMP R12D,-0x1
MOV R13,qword ptr [RSP + 0x10]
JZ 0x0013b9be
PUSH -0x1
POP R13
CMP R12D,0x6
JZ 0x0013b9be
MOV RDI,RBX
CALL 0x00121191
JMP 0x0013b9be
|
int4 JS_IteratorClose(long param_1,int8 param_2,int8 param_3,int param_4)
{
long lVar1;
int iVar2;
int4 uVar3;
int4 uVar4;
ulong uVar5;
int1 auVar6 [16];
ulong local_40;
int8 local_38;
if (param_4 == 0) {
local_38 = 3;
uVar4 = 0;
local_40 = 0;
uVar5 = 0;
}
else {
lVar1 = *(long *)(param_1 + 0x18);
local_40 = *(ulong *)(lVar1 + 0xf0);
local_38 = *(int8 *)(lVar1 + 0xf8);
*(int4 *)(lVar1 + 0xf0) = 0;
uVar5 = local_40 & 0xffffffff00000000;
*(int8 *)(lVar1 + 0xf8) = 4;
local_40 = local_40 & 0xffffffff;
uVar4 = 0xffffffff;
}
auVar6 = JS_GetProperty(param_1,param_2,param_3,6);
iVar2 = auVar6._8_4_;
uVar3 = uVar4;
if (((iVar2 != 2) && (iVar2 != 3)) && (uVar3 = 0xffffffff, iVar2 != 6)) {
auVar6 = JS_CallFree(param_1,auVar6._0_8_,auVar6._8_8_,param_2,param_3,0,0);
if (((param_4 == 0) && (auVar6._8_4_ != -1)) && (uVar4 = 0xffffffff, auVar6._8_4_ != 6)) {
JS_ThrowTypeErrorNotAnObject(param_1);
}
JS_FreeValue(param_1,auVar6._0_8_,auVar6._8_8_);
uVar3 = uVar4;
}
if (param_4 != 0) {
JS_Throw(param_1,uVar5 | local_40,local_38);
}
return uVar3;
}
| |
42,676 | mi_reset | eloqsql/storage/myisam/mi_extra.c | int mi_reset(MI_INFO *info)
{
int error= 0;
MYISAM_SHARE *share=info->s;
DBUG_ENTER("mi_reset");
/*
Free buffers and reset the following flags:
EXTRA_CACHE, EXTRA_WRITE_CACHE, EXTRA_KEYREAD, EXTRA_QUICK
If the row buffer cache is large (for dynamic tables), reduce it
to save memory.
*/
if (info->opt_flag & (READ_CACHE_USED | WRITE_CACHE_USED))
{
info->opt_flag&= ~(READ_CACHE_USED | WRITE_CACHE_USED);
error= end_io_cache(&info->rec_cache);
}
if (share->base.blobs)
mi_alloc_rec_buff(info, -1, &info->rec_buff);
#if defined(HAVE_MMAP) && defined(HAVE_MADVISE)
if (info->opt_flag & MEMMAP_USED)
madvise((char*) share->file_map, share->state.state.data_file_length,
MADV_RANDOM);
#endif
info->opt_flag&= ~(KEY_READ_USED | REMEMBER_OLD_POS);
info->quick_mode=0;
info->lastinx= 0; /* Use first index as def */
info->last_search_keypage= info->lastpos= HA_OFFSET_ERROR;
info->page_changed= 1;
info->update= ((info->update & HA_STATE_CHANGED) | HA_STATE_NEXT_FOUND |
HA_STATE_PREV_FOUND);
DBUG_RETURN(error);
} | O0 | c | mi_reset:
pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movq %rdi, -0x8(%rbp)
movl $0x0, -0xc(%rbp)
movq -0x8(%rbp), %rax
movq (%rax), %rax
movq %rax, -0x18(%rbp)
movq -0x8(%rbp), %rax
movl 0x1c8(%rax), %eax
andl $0x12, %eax
cmpl $0x0, %eax
je 0xadc06
movq -0x8(%rbp), %rax
movl 0x1c8(%rax), %ecx
andl $-0x13, %ecx
movl %ecx, 0x1c8(%rax)
movq -0x8(%rbp), %rdi
addq $0x220, %rdi # imm = 0x220
callq 0xe1f20
movl %eax, -0xc(%rbp)
movq -0x18(%rbp), %rax
cmpl $0x0, 0x188(%rax)
je 0xadc2e
movq -0x8(%rbp), %rdi
movq -0x8(%rbp), %rdx
addq $0x120, %rdx # imm = 0x120
movq $-0x1, %rsi
callq 0xb6b10
movq -0x8(%rbp), %rax
movl 0x1c8(%rax), %eax
andl $0x20, %eax
cmpl $0x0, %eax
je 0xadc5d
movq -0x18(%rbp), %rax
movq 0x270(%rax), %rdi
movq -0x18(%rbp), %rax
movq 0x40(%rax), %rsi
movl $0x1, %edx
callq 0x2a450
movq -0x8(%rbp), %rax
movl 0x1c8(%rax), %ecx
andl $-0x49, %ecx
movl %ecx, 0x1c8(%rax)
movq -0x8(%rbp), %rax
movb $0x0, 0x33b(%rax)
movq -0x8(%rbp), %rax
movl $0x0, 0x1d4(%rax)
movq -0x8(%rbp), %rax
movq $-0x1, 0x170(%rax)
movq -0x8(%rbp), %rax
movq $-0x1, 0x198(%rax)
movq -0x8(%rbp), %rax
movb $0x1, 0x33c(%rax)
movq -0x8(%rbp), %rax
movl 0x1d0(%rax), %ecx
andl $0x1, %ecx
orl $0x10, %ecx
orl $0x20, %ecx
movq -0x8(%rbp), %rax
movl %ecx, 0x1d0(%rax)
movl -0xc(%rbp), %eax
movl %eax, -0x1c(%rbp)
movl -0x1c(%rbp), %eax
addq $0x20, %rsp
popq %rbp
retq
nop
| mi_reset:
push rbp
mov rbp, rsp
sub rsp, 20h
mov [rbp+var_8], rdi
mov [rbp+var_C], 0
mov rax, [rbp+var_8]
mov rax, [rax]
mov [rbp+var_18], rax
mov rax, [rbp+var_8]
mov eax, [rax+1C8h]
and eax, 12h
cmp eax, 0
jz short loc_ADC06
mov rax, [rbp+var_8]
mov ecx, [rax+1C8h]
and ecx, 0FFFFFFEDh
mov [rax+1C8h], ecx
mov rdi, [rbp+var_8]
add rdi, 220h
call end_io_cache
mov [rbp+var_C], eax
loc_ADC06:
mov rax, [rbp+var_18]
cmp dword ptr [rax+188h], 0
jz short loc_ADC2E
mov rdi, [rbp+var_8]
mov rdx, [rbp+var_8]
add rdx, 120h
mov rsi, 0FFFFFFFFFFFFFFFFh
call mi_alloc_rec_buff
loc_ADC2E:
mov rax, [rbp+var_8]
mov eax, [rax+1C8h]
and eax, 20h
cmp eax, 0
jz short loc_ADC5D
mov rax, [rbp+var_18]
mov rdi, [rax+270h]
mov rax, [rbp+var_18]
mov rsi, [rax+40h]
mov edx, 1
call _madvise
loc_ADC5D:
mov rax, [rbp+var_8]
mov ecx, [rax+1C8h]
and ecx, 0FFFFFFB7h
mov [rax+1C8h], ecx
mov rax, [rbp+var_8]
mov byte ptr [rax+33Bh], 0
mov rax, [rbp+var_8]
mov dword ptr [rax+1D4h], 0
mov rax, [rbp+var_8]
mov qword ptr [rax+170h], 0FFFFFFFFFFFFFFFFh
mov rax, [rbp+var_8]
mov qword ptr [rax+198h], 0FFFFFFFFFFFFFFFFh
mov rax, [rbp+var_8]
mov byte ptr [rax+33Ch], 1
mov rax, [rbp+var_8]
mov ecx, [rax+1D0h]
and ecx, 1
or ecx, 10h
or ecx, 20h
mov rax, [rbp+var_8]
mov [rax+1D0h], ecx
mov eax, [rbp+var_C]
mov [rbp+var_1C], eax
mov eax, [rbp+var_1C]
add rsp, 20h
pop rbp
retn
| long long mi_reset(long long *a1)
{
long long v2; // [rsp+8h] [rbp-18h]
unsigned int v3; // [rsp+14h] [rbp-Ch]
v3 = 0;
v2 = *a1;
if ( (a1[57] & 0x12) != 0 )
{
*((_DWORD *)a1 + 114) &= 0xFFFFFFED;
v3 = end_io_cache(a1 + 68);
}
if ( *(_DWORD *)(v2 + 392) )
mi_alloc_rec_buff(a1, -1LL, a1 + 36);
if ( (a1[57] & 0x20) != 0 )
madvise(*(_QWORD *)(v2 + 624), *(_QWORD *)(v2 + 64), 1LL);
*((_DWORD *)a1 + 114) &= 0xFFFFFFB7;
*((_BYTE *)a1 + 827) = 0;
*((_DWORD *)a1 + 117) = 0;
a1[46] = -1LL;
a1[51] = -1LL;
*((_BYTE *)a1 + 828) = 1;
*((_DWORD *)a1 + 116) = a1[58] & 1 | 0x30;
return v3;
}
| mi_reset:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x20
MOV qword ptr [RBP + -0x8],RDI
MOV dword ptr [RBP + -0xc],0x0
MOV RAX,qword ptr [RBP + -0x8]
MOV RAX,qword ptr [RAX]
MOV qword ptr [RBP + -0x18],RAX
MOV RAX,qword ptr [RBP + -0x8]
MOV EAX,dword ptr [RAX + 0x1c8]
AND EAX,0x12
CMP EAX,0x0
JZ 0x001adc06
MOV RAX,qword ptr [RBP + -0x8]
MOV ECX,dword ptr [RAX + 0x1c8]
AND ECX,0xffffffed
MOV dword ptr [RAX + 0x1c8],ECX
MOV RDI,qword ptr [RBP + -0x8]
ADD RDI,0x220
CALL 0x001e1f20
MOV dword ptr [RBP + -0xc],EAX
LAB_001adc06:
MOV RAX,qword ptr [RBP + -0x18]
CMP dword ptr [RAX + 0x188],0x0
JZ 0x001adc2e
MOV RDI,qword ptr [RBP + -0x8]
MOV RDX,qword ptr [RBP + -0x8]
ADD RDX,0x120
MOV RSI,-0x1
CALL 0x001b6b10
LAB_001adc2e:
MOV RAX,qword ptr [RBP + -0x8]
MOV EAX,dword ptr [RAX + 0x1c8]
AND EAX,0x20
CMP EAX,0x0
JZ 0x001adc5d
MOV RAX,qword ptr [RBP + -0x18]
MOV RDI,qword ptr [RAX + 0x270]
MOV RAX,qword ptr [RBP + -0x18]
MOV RSI,qword ptr [RAX + 0x40]
MOV EDX,0x1
CALL 0x0012a450
LAB_001adc5d:
MOV RAX,qword ptr [RBP + -0x8]
MOV ECX,dword ptr [RAX + 0x1c8]
AND ECX,0xffffffb7
MOV dword ptr [RAX + 0x1c8],ECX
MOV RAX,qword ptr [RBP + -0x8]
MOV byte ptr [RAX + 0x33b],0x0
MOV RAX,qword ptr [RBP + -0x8]
MOV dword ptr [RAX + 0x1d4],0x0
MOV RAX,qword ptr [RBP + -0x8]
MOV qword ptr [RAX + 0x170],-0x1
MOV RAX,qword ptr [RBP + -0x8]
MOV qword ptr [RAX + 0x198],-0x1
MOV RAX,qword ptr [RBP + -0x8]
MOV byte ptr [RAX + 0x33c],0x1
MOV RAX,qword ptr [RBP + -0x8]
MOV ECX,dword ptr [RAX + 0x1d0]
AND ECX,0x1
OR ECX,0x10
OR ECX,0x20
MOV RAX,qword ptr [RBP + -0x8]
MOV dword ptr [RAX + 0x1d0],ECX
MOV EAX,dword ptr [RBP + -0xc]
MOV dword ptr [RBP + -0x1c],EAX
MOV EAX,dword ptr [RBP + -0x1c]
ADD RSP,0x20
POP RBP
RET
|
int4 mi_reset(long *param_1)
{
long lVar1;
int4 local_14;
local_14 = 0;
lVar1 = *param_1;
if ((*(uint *)(param_1 + 0x39) & 0x12) != 0) {
*(uint *)(param_1 + 0x39) = *(uint *)(param_1 + 0x39) & 0xffffffed;
local_14 = end_io_cache(param_1 + 0x44);
}
if (*(int *)(lVar1 + 0x188) != 0) {
mi_alloc_rec_buff(param_1,0xffffffffffffffff,param_1 + 0x24);
}
if ((*(uint *)(param_1 + 0x39) & 0x20) != 0) {
madvise(*(void **)(lVar1 + 0x270),*(size_t *)(lVar1 + 0x40),1);
}
*(uint *)(param_1 + 0x39) = *(uint *)(param_1 + 0x39) & 0xffffffb7;
*(int1 *)((long)param_1 + 0x33b) = 0;
*(int4 *)((long)param_1 + 0x1d4) = 0;
param_1[0x2e] = -1;
param_1[0x33] = -1;
*(int1 *)((long)param_1 + 0x33c) = 1;
*(uint *)(param_1 + 0x3a) = *(uint *)(param_1 + 0x3a) & 1 | 0x30;
return local_14;
}
| |
42,677 | mi_reset | eloqsql/storage/myisam/mi_extra.c | int mi_reset(MI_INFO *info)
{
int error= 0;
MYISAM_SHARE *share=info->s;
DBUG_ENTER("mi_reset");
/*
Free buffers and reset the following flags:
EXTRA_CACHE, EXTRA_WRITE_CACHE, EXTRA_KEYREAD, EXTRA_QUICK
If the row buffer cache is large (for dynamic tables), reduce it
to save memory.
*/
if (info->opt_flag & (READ_CACHE_USED | WRITE_CACHE_USED))
{
info->opt_flag&= ~(READ_CACHE_USED | WRITE_CACHE_USED);
error= end_io_cache(&info->rec_cache);
}
if (share->base.blobs)
mi_alloc_rec_buff(info, -1, &info->rec_buff);
#if defined(HAVE_MMAP) && defined(HAVE_MADVISE)
if (info->opt_flag & MEMMAP_USED)
madvise((char*) share->file_map, share->state.state.data_file_length,
MADV_RANDOM);
#endif
info->opt_flag&= ~(KEY_READ_USED | REMEMBER_OLD_POS);
info->quick_mode=0;
info->lastinx= 0; /* Use first index as def */
info->last_search_keypage= info->lastpos= HA_OFFSET_ERROR;
info->page_changed= 1;
info->update= ((info->update & HA_STATE_CHANGED) | HA_STATE_NEXT_FOUND |
HA_STATE_PREV_FOUND);
DBUG_RETURN(error);
} | O3 | c | mi_reset:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
movq (%rdi), %r15
movl 0x1c8(%rdi), %eax
testb $0x12, %al
je 0x7aa3e
andl $-0x13, %eax
movl %eax, 0x1c8(%rbx)
leaq 0x220(%rbx), %rdi
callq 0x96367
movl %eax, %r14d
jmp 0x7aa41
xorl %r14d, %r14d
cmpl $0x0, 0x188(%r15)
je 0x7aa61
leaq 0x120(%rbx), %rdx
movq %rbx, %rdi
movq $-0x1, %rsi
callq 0x7fb5d
movl 0x1c8(%rbx), %eax
testb $0x20, %al
je 0x7aa86
movq 0x270(%r15), %rdi
movq 0x40(%r15), %rsi
movl $0x1, %edx
callq 0x29480
movl 0x1c8(%rbx), %eax
andl $-0x49, %eax
movl %eax, 0x1c8(%rbx)
movw $0x100, 0x33b(%rbx) # imm = 0x100
movl $0x0, 0x1d4(%rbx)
movq $-0x1, %rax
movq %rax, 0x170(%rbx)
movq %rax, 0x198(%rbx)
movl 0x1d0(%rbx), %eax
andl $0x1, %eax
orl $0x30, %eax
movl %eax, 0x1d0(%rbx)
movl %r14d, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
| mi_reset:
push rbp
mov rbp, rsp
push r15
push r14
push rbx
push rax
mov rbx, rdi
mov r15, [rdi]
mov eax, [rdi+1C8h]
test al, 12h
jz short loc_7AA3E
and eax, 0FFFFFFEDh
mov [rbx+1C8h], eax
lea rdi, [rbx+220h]
call end_io_cache
mov r14d, eax
jmp short loc_7AA41
loc_7AA3E:
xor r14d, r14d
loc_7AA41:
cmp dword ptr [r15+188h], 0
jz short loc_7AA61
lea rdx, [rbx+120h]
mov rdi, rbx
mov rsi, 0FFFFFFFFFFFFFFFFh
call mi_alloc_rec_buff
loc_7AA61:
mov eax, [rbx+1C8h]
test al, 20h
jz short loc_7AA86
mov rdi, [r15+270h]
mov rsi, [r15+40h]
mov edx, 1
call _madvise
mov eax, [rbx+1C8h]
loc_7AA86:
and eax, 0FFFFFFB7h
mov [rbx+1C8h], eax
mov word ptr [rbx+33Bh], 100h
mov dword ptr [rbx+1D4h], 0
mov rax, 0FFFFFFFFFFFFFFFFh
mov [rbx+170h], rax
mov [rbx+198h], rax
mov eax, [rbx+1D0h]
and eax, 1
or eax, 30h
mov [rbx+1D0h], eax
mov eax, r14d
add rsp, 8
pop rbx
pop r14
pop r15
pop rbp
retn
| long long mi_reset(long long *a1)
{
long long v1; // r15
int v2; // eax
unsigned int v3; // r14d
int v4; // eax
v1 = *a1;
v2 = *((_DWORD *)a1 + 114);
if ( (v2 & 0x12) != 0 )
{
*((_DWORD *)a1 + 114) = v2 & 0xFFFFFFED;
v3 = end_io_cache(a1 + 68);
}
else
{
v3 = 0;
}
if ( *(_DWORD *)(v1 + 392) )
mi_alloc_rec_buff(a1, -1LL, a1 + 36);
v4 = *((_DWORD *)a1 + 114);
if ( (v4 & 0x20) != 0 )
{
madvise(*(_QWORD *)(v1 + 624), *(_QWORD *)(v1 + 64), 1LL);
v4 = *((_DWORD *)a1 + 114);
}
*((_DWORD *)a1 + 114) = v4 & 0xFFFFFFB7;
*(_WORD *)((char *)a1 + 827) = 256;
*((_DWORD *)a1 + 117) = 0;
a1[46] = -1LL;
a1[51] = -1LL;
*((_DWORD *)a1 + 116) = a1[58] & 1 | 0x30;
return v3;
}
| mi_reset:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH RBX
PUSH RAX
MOV RBX,RDI
MOV R15,qword ptr [RDI]
MOV EAX,dword ptr [RDI + 0x1c8]
TEST AL,0x12
JZ 0x0017aa3e
AND EAX,0xffffffed
MOV dword ptr [RBX + 0x1c8],EAX
LEA RDI,[RBX + 0x220]
CALL 0x00196367
MOV R14D,EAX
JMP 0x0017aa41
LAB_0017aa3e:
XOR R14D,R14D
LAB_0017aa41:
CMP dword ptr [R15 + 0x188],0x0
JZ 0x0017aa61
LEA RDX,[RBX + 0x120]
MOV RDI,RBX
MOV RSI,-0x1
CALL 0x0017fb5d
LAB_0017aa61:
MOV EAX,dword ptr [RBX + 0x1c8]
TEST AL,0x20
JZ 0x0017aa86
MOV RDI,qword ptr [R15 + 0x270]
MOV RSI,qword ptr [R15 + 0x40]
MOV EDX,0x1
CALL 0x00129480
MOV EAX,dword ptr [RBX + 0x1c8]
LAB_0017aa86:
AND EAX,0xffffffb7
MOV dword ptr [RBX + 0x1c8],EAX
MOV word ptr [RBX + 0x33b],0x100
MOV dword ptr [RBX + 0x1d4],0x0
MOV RAX,-0x1
MOV qword ptr [RBX + 0x170],RAX
MOV qword ptr [RBX + 0x198],RAX
MOV EAX,dword ptr [RBX + 0x1d0]
AND EAX,0x1
OR EAX,0x30
MOV dword ptr [RBX + 0x1d0],EAX
MOV EAX,R14D
ADD RSP,0x8
POP RBX
POP R14
POP R15
POP RBP
RET
|
int4 mi_reset(long *param_1)
{
long lVar1;
int4 uVar2;
uint uVar3;
lVar1 = *param_1;
if ((*(uint *)(param_1 + 0x39) & 0x12) == 0) {
uVar2 = 0;
}
else {
*(uint *)(param_1 + 0x39) = *(uint *)(param_1 + 0x39) & 0xffffffed;
uVar2 = end_io_cache(param_1 + 0x44);
}
if (*(int *)(lVar1 + 0x188) != 0) {
mi_alloc_rec_buff(param_1,0xffffffffffffffff,param_1 + 0x24);
}
uVar3 = *(uint *)(param_1 + 0x39);
if ((uVar3 & 0x20) != 0) {
madvise(*(void **)(lVar1 + 0x270),*(size_t *)(lVar1 + 0x40),1);
uVar3 = *(uint *)(param_1 + 0x39);
}
*(uint *)(param_1 + 0x39) = uVar3 & 0xffffffb7;
*(int2 *)((long)param_1 + 0x33b) = 0x100;
*(int4 *)((long)param_1 + 0x1d4) = 0;
param_1[0x2e] = -1;
param_1[0x33] = -1;
*(uint *)(param_1 + 0x3a) = *(uint *)(param_1 + 0x3a) & 1 | 0x30;
return uVar2;
}
| |
42,678 | stbi__bmp_test_raw(stbi__context*) | SDL3Lite/dependencies/stb_image.h | static int stbi__bmp_test_raw(stbi__context *s)
{
int r;
int sz;
if (stbi__get8(s) != 'B') return 0;
if (stbi__get8(s) != 'M') return 0;
stbi__get32le(s); // discard filesize
stbi__get16le(s); // discard reserved
stbi__get16le(s); // discard reserved
stbi__get32le(s); // discard data offset
sz = stbi__get32le(s);
r = (sz == 12 || sz == 40 || sz == 56 || sz == 108 || sz == 124);
return r;
} | O0 | c | stbi__bmp_test_raw(stbi__context*):
pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movq %rdi, -0x10(%rbp)
movq -0x10(%rbp), %rdi
callq 0x2a420
movzbl %al, %eax
cmpl $0x42, %eax
je 0x2a339
movl $0x0, -0x4(%rbp)
jmp 0x2a3ca
movq -0x10(%rbp), %rdi
callq 0x2a420
movzbl %al, %eax
cmpl $0x4d, %eax
je 0x2a353
movl $0x0, -0x4(%rbp)
jmp 0x2a3ca
movq -0x10(%rbp), %rdi
callq 0x2a4b0
movq -0x10(%rbp), %rdi
callq 0x2a4f0
movq -0x10(%rbp), %rdi
callq 0x2a4f0
movq -0x10(%rbp), %rdi
callq 0x2a4b0
movq -0x10(%rbp), %rdi
callq 0x2a4b0
movl %eax, -0x18(%rbp)
movb $0x1, %al
cmpl $0xc, -0x18(%rbp)
movb %al, -0x19(%rbp)
je 0x2a3b9
movb $0x1, %al
cmpl $0x28, -0x18(%rbp)
movb %al, -0x19(%rbp)
je 0x2a3b9
movb $0x1, %al
cmpl $0x38, -0x18(%rbp)
movb %al, -0x19(%rbp)
je 0x2a3b9
movb $0x1, %al
cmpl $0x6c, -0x18(%rbp)
movb %al, -0x19(%rbp)
je 0x2a3b9
cmpl $0x7c, -0x18(%rbp)
sete %al
movb %al, -0x19(%rbp)
movb -0x19(%rbp), %al
andb $0x1, %al
movzbl %al, %eax
movl %eax, -0x14(%rbp)
movl -0x14(%rbp), %eax
movl %eax, -0x4(%rbp)
movl -0x4(%rbp), %eax
addq $0x20, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
| _ZL18stbi__bmp_test_rawP13stbi__context:
push rbp
mov rbp, rsp
sub rsp, 20h
mov [rbp+var_10], rdi
mov rdi, [rbp+var_10]
call _ZL10stbi__get8P13stbi__context; stbi__get8(stbi__context *)
movzx eax, al
cmp eax, 42h ; 'B'
jz short loc_2A339
mov [rbp+var_4], 0
jmp loc_2A3CA
loc_2A339:
mov rdi, [rbp+var_10]
call _ZL10stbi__get8P13stbi__context; stbi__get8(stbi__context *)
movzx eax, al
cmp eax, 4Dh ; 'M'
jz short loc_2A353
mov [rbp+var_4], 0
jmp short loc_2A3CA
loc_2A353:
mov rdi, [rbp+var_10]
call _ZL13stbi__get32leP13stbi__context; stbi__get32le(stbi__context *)
mov rdi, [rbp+var_10]
call _ZL13stbi__get16leP13stbi__context; stbi__get16le(stbi__context *)
mov rdi, [rbp+var_10]
call _ZL13stbi__get16leP13stbi__context; stbi__get16le(stbi__context *)
mov rdi, [rbp+var_10]
call _ZL13stbi__get32leP13stbi__context; stbi__get32le(stbi__context *)
mov rdi, [rbp+var_10]
call _ZL13stbi__get32leP13stbi__context; stbi__get32le(stbi__context *)
mov [rbp+var_18], eax
mov al, 1
cmp [rbp+var_18], 0Ch
mov [rbp+var_19], al
jz short loc_2A3B9
mov al, 1
cmp [rbp+var_18], 28h ; '('
mov [rbp+var_19], al
jz short loc_2A3B9
mov al, 1
cmp [rbp+var_18], 38h ; '8'
mov [rbp+var_19], al
jz short loc_2A3B9
mov al, 1
cmp [rbp+var_18], 6Ch ; 'l'
mov [rbp+var_19], al
jz short loc_2A3B9
cmp [rbp+var_18], 7Ch ; '|'
setz al
mov [rbp+var_19], al
loc_2A3B9:
mov al, [rbp+var_19]
and al, 1
movzx eax, al
mov [rbp+var_14], eax
mov eax, [rbp+var_14]
mov [rbp+var_4], eax
loc_2A3CA:
mov eax, [rbp+var_4]
add rsp, 20h
pop rbp
retn
| _BOOL8 stbi__bmp_test_raw(long long a1)
{
bool v2; // [rsp+7h] [rbp-19h]
int v3; // [rsp+8h] [rbp-18h]
if ( (unsigned __int8)stbi__get8(a1) == 66 )
{
if ( (unsigned __int8)stbi__get8(a1) == 77 )
{
stbi__get32le(a1);
stbi__get16le(a1);
stbi__get16le(a1);
stbi__get32le(a1);
v3 = stbi__get32le(a1);
v2 = 1;
if ( v3 != 12 )
{
v2 = 1;
if ( v3 != 40 )
{
v2 = 1;
if ( v3 != 56 )
{
v2 = 1;
if ( v3 != 108 )
return v3 == 124;
}
}
}
return v2;
}
else
{
return 0;
}
}
else
{
return 0;
}
}
| stbi__bmp_test_raw:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x20
MOV qword ptr [RBP + -0x10],RDI
MOV RDI,qword ptr [RBP + -0x10]
CALL 0x0012a420
MOVZX EAX,AL
CMP EAX,0x42
JZ 0x0012a339
MOV dword ptr [RBP + -0x4],0x0
JMP 0x0012a3ca
LAB_0012a339:
MOV RDI,qword ptr [RBP + -0x10]
CALL 0x0012a420
MOVZX EAX,AL
CMP EAX,0x4d
JZ 0x0012a353
MOV dword ptr [RBP + -0x4],0x0
JMP 0x0012a3ca
LAB_0012a353:
MOV RDI,qword ptr [RBP + -0x10]
CALL 0x0012a4b0
MOV RDI,qword ptr [RBP + -0x10]
CALL 0x0012a4f0
MOV RDI,qword ptr [RBP + -0x10]
CALL 0x0012a4f0
MOV RDI,qword ptr [RBP + -0x10]
CALL 0x0012a4b0
MOV RDI,qword ptr [RBP + -0x10]
CALL 0x0012a4b0
MOV dword ptr [RBP + -0x18],EAX
MOV AL,0x1
CMP dword ptr [RBP + -0x18],0xc
MOV byte ptr [RBP + -0x19],AL
JZ 0x0012a3b9
MOV AL,0x1
CMP dword ptr [RBP + -0x18],0x28
MOV byte ptr [RBP + -0x19],AL
JZ 0x0012a3b9
MOV AL,0x1
CMP dword ptr [RBP + -0x18],0x38
MOV byte ptr [RBP + -0x19],AL
JZ 0x0012a3b9
MOV AL,0x1
CMP dword ptr [RBP + -0x18],0x6c
MOV byte ptr [RBP + -0x19],AL
JZ 0x0012a3b9
CMP dword ptr [RBP + -0x18],0x7c
SETZ AL
MOV byte ptr [RBP + -0x19],AL
LAB_0012a3b9:
MOV AL,byte ptr [RBP + -0x19]
AND AL,0x1
MOVZX EAX,AL
MOV dword ptr [RBP + -0x14],EAX
MOV EAX,dword ptr [RBP + -0x14]
MOV dword ptr [RBP + -0x4],EAX
LAB_0012a3ca:
MOV EAX,dword ptr [RBP + -0x4]
ADD RSP,0x20
POP RBP
RET
|
/* stbi__bmp_test_raw(stbi__context*) */
bool stbi__bmp_test_raw(stbi__context *param_1)
{
char cVar1;
int iVar2;
bool local_21;
cVar1 = stbi__get8(param_1);
if (cVar1 == 'B') {
cVar1 = stbi__get8(param_1);
if (cVar1 == 'M') {
stbi__get32le(param_1);
stbi__get16le(param_1);
stbi__get16le(param_1);
stbi__get32le(param_1);
iVar2 = stbi__get32le(param_1);
local_21 = true;
if ((((iVar2 != 0xc) && (local_21 = true, iVar2 != 0x28)) && (local_21 = true, iVar2 != 0x38))
&& (local_21 = true, iVar2 != 0x6c)) {
local_21 = iVar2 == 0x7c;
}
}
else {
local_21 = false;
}
}
else {
local_21 = false;
}
return local_21;
}
| |
42,679 | google::protobuf::DynamicMessage::DynamicMessage(google::protobuf::DynamicMessageFactory::TypeInfo const*) | aimrt_mujoco_sim/_deps/protobuf-src/src/google/protobuf/dynamic_message.cc | DynamicMessage::DynamicMessage(const DynamicMessageFactory::TypeInfo* type_info)
: type_info_(type_info), cached_byte_size_(0) {
SharedCtor(true);
} | O3 | cpp | google::protobuf::DynamicMessage::DynamicMessage(google::protobuf::DynamicMessageFactory::TypeInfo const*):
pushq %r15
pushq %r14
pushq %rbx
movq %rdi, %r14
leaq 0x8(%rdi), %rbx
movq $0x0, 0x8(%rdi)
leaq 0x9f48d(%rip), %rax # 0xffcb0
movq %rax, (%rdi)
movq %rsi, 0x10(%rdi)
movl $0x0, 0x18(%rdi)
movl $0x1, %esi
callq 0x60862
popq %rbx
popq %r14
popq %r15
retq
movq %rax, %r15
leaq 0xa0ad5(%rip), %rax # 0x101320
addq $0x10, %rax
movq %rax, (%r14)
movq %rbx, %rdi
callq 0x59494
movq %r15, %rdi
callq 0xf570
| _ZN6google8protobuf14DynamicMessageC2EPKNS0_21DynamicMessageFactory8TypeInfoE:
push r15; Alternative name is 'google::protobuf::DynamicMessage::DynamicMessage(google::protobuf::DynamicMessageFactory::TypeInfo const*)'
push r14
push rbx
mov r14, rdi
lea rbx, [rdi+8]
mov qword ptr [rdi+8], 0
lea rax, off_FFCB0
mov [rdi], rax
mov [rdi+10h], rsi
mov dword ptr [rdi+18h], 0
mov esi, 1; bool
call _ZN6google8protobuf14DynamicMessage10SharedCtorEb; google::protobuf::DynamicMessage::SharedCtor(bool)
pop rbx
pop r14
pop r15
retn
mov r15, rax
lea rax, _ZTVN6google8protobuf11MessageLiteE; `vtable for'google::protobuf::MessageLite
add rax, 10h
mov [r14], rax
mov rdi, rbx; this
call _ZN6google8protobuf8internal16InternalMetadataD2Ev; google::protobuf::internal::InternalMetadata::~InternalMetadata()
mov rdi, r15
call __Unwind_Resume
| long long google::protobuf::DynamicMessage::DynamicMessage(
google::protobuf::DynamicMessage *this,
const google::protobuf::DynamicMessageFactory::TypeInfo *a2)
{
*((_QWORD *)this + 1) = 0LL;
*(_QWORD *)this = off_FFCB0;
*((_QWORD *)this + 2) = a2;
*((_DWORD *)this + 6) = 0;
return google::protobuf::DynamicMessage::SharedCtor(this, 1);
}
| DynamicMessage:
PUSH R15
PUSH R14
PUSH RBX
MOV R14,RDI
LEA RBX,[RDI + 0x8]
MOV qword ptr [RDI + 0x8],0x0
LEA RAX,[0x1ffcb0]
MOV qword ptr [RDI],RAX
MOV qword ptr [RDI + 0x10],RSI
MOV dword ptr [RDI + 0x18],0x0
LAB_00160831:
MOV ESI,0x1
CALL 0x00160862
LAB_0016083b:
POP RBX
POP R14
POP R15
RET
|
/* google::protobuf::DynamicMessage::DynamicMessage(google::protobuf::DynamicMessageFactory::TypeInfo
const*) */
void __thiscall
google::protobuf::DynamicMessage::DynamicMessage(DynamicMessage *this,TypeInfo *param_1)
{
*(int8 *)(this + 8) = 0;
*(int ***)this = &PTR__DynamicMessage_001ffcb0;
*(TypeInfo **)(this + 0x10) = param_1;
*(int4 *)(this + 0x18) = 0;
/* try { // try from 00160831 to 0016083a has its CatchHandler @ 00160841 */
SharedCtor(this,true);
return;
}
| |
42,680 | ps_fetch_bin | eloqsql/libmariadb/libmariadb/ma_stmt_codec.c | static
void ps_fetch_bin(MYSQL_BIND *r_param,
const MYSQL_FIELD *field,
unsigned char **row)
{
if (field->charsetnr == 63)
{
ulong field_length= *r_param->length= net_field_length(row);
uchar *current_pos= (*row) + r_param->offset,
*end= (*row) + field_length;
size_t copylen= 0;
if (current_pos < end)
{
copylen= end - current_pos;
if (r_param->buffer_length)
memcpy(r_param->buffer, current_pos, MIN(copylen, r_param->buffer_length));
}
if (copylen < r_param->buffer_length &&
(r_param->buffer_type == MYSQL_TYPE_STRING ||
r_param->buffer_type == MYSQL_TYPE_JSON))
((char *)r_param->buffer)[copylen]= 0;
*r_param->error= copylen > r_param->buffer_length;
(*row)+= field_length;
}
else
ps_fetch_string(r_param, field, row);
} | O3 | c | ps_fetch_bin:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdx, %rbx
movq %rdi, %r15
movl 0x6c(%rsi), %r13d
movq %rdx, %rdi
callq 0x1a1e5
movq %rax, %r14
cmpl $0x3f, %r13d
jne 0x28cab
movq %rax, %r12
movq (%r15), %rax
movq %r14, (%rax)
movq 0x48(%r15), %rsi
subq %rsi, %r12
jle 0x28cbb
movq 0x40(%r15), %rdx
testq %rdx, %rdx
je 0x28cbe
addq (%rbx), %rsi
movq 0x10(%r15), %rdi
cmpq %rdx, %r12
cmovbq %r12, %rdx
callq 0x133a0
jmp 0x28cbe
movq (%rbx), %rsi
movq %r15, %rdi
movq %r14, %rdx
callq 0x290f5
jmp 0x28cf2
xorl %r12d, %r12d
movq 0x40(%r15), %rax
cmpq %rax, %r12
jae 0x28ce8
movl 0x60(%r15), %ecx
cmpl $0xfe, %ecx
je 0x28cdb
cmpl $0xf5, %ecx
jne 0x28ce8
movq 0x10(%r15), %rax
movb $0x0, (%rax,%r12)
movq 0x40(%r15), %rax
cmpq %rax, %r12
movq 0x18(%r15), %rax
seta (%rax)
addq %r14, (%rbx)
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
| ps_fetch_bin:
push rbp
mov rbp, rsp
push r15
push r14
push r13
push r12
push rbx
push rax
mov rbx, rdx
mov r15, rdi
mov r13d, [rsi+6Ch]
mov rdi, rdx
call net_field_length
mov r14, rax
cmp r13d, 3Fh ; '?'
jnz short loc_28CAB
mov r12, rax
mov rax, [r15]
mov [rax], r14
mov rsi, [r15+48h]
sub r12, rsi
jle short loc_28CBB
mov rdx, [r15+40h]
test rdx, rdx
jz short loc_28CBE
add rsi, [rbx]
mov rdi, [r15+10h]
cmp r12, rdx
cmovb rdx, r12
call _memcpy
jmp short loc_28CBE
loc_28CAB:
mov rsi, [rbx]
mov rdi, r15
mov rdx, r14
call convert_froma_string
jmp short loc_28CF2
loc_28CBB:
xor r12d, r12d
loc_28CBE:
mov rax, [r15+40h]
cmp r12, rax
jnb short loc_28CE8
mov ecx, [r15+60h]
cmp ecx, 0FEh
jz short loc_28CDB
cmp ecx, 0F5h
jnz short loc_28CE8
loc_28CDB:
mov rax, [r15+10h]
mov byte ptr [rax+r12], 0
mov rax, [r15+40h]
loc_28CE8:
cmp r12, rax
mov rax, [r15+18h]
setnbe byte ptr [rax]
loc_28CF2:
add [rbx], r14
add rsp, 8
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
| bool * ps_fetch_bin(long long a1, long long a2, unsigned __int8 **a3)
{
int v5; // r13d
signed long long v6; // rax
signed long long v7; // r14
long long v8; // rsi
unsigned long long v9; // r12
unsigned long long v10; // rdx
unsigned __int8 *v11; // rsi
long long v12; // rdi
bool *result; // rax
unsigned long long v14; // rax
int v15; // ecx
bool v16; // cf
bool v17; // zf
v5 = *(_DWORD *)(a2 + 108);
v6 = net_field_length(a3);
v7 = v6;
if ( v5 == 63 )
{
**(_QWORD **)a1 = v6;
v8 = *(_QWORD *)(a1 + 72);
v9 = v6 - v8;
if ( v6 <= v8 )
{
v9 = 0LL;
}
else
{
v10 = *(_QWORD *)(a1 + 64);
if ( v10 )
{
v11 = &(*a3)[v8];
v12 = *(_QWORD *)(a1 + 16);
if ( v9 < v10 )
v10 = v9;
memcpy(v12, v11, v10);
}
}
v14 = *(_QWORD *)(a1 + 64);
if ( v9 < v14 )
{
v15 = *(_DWORD *)(a1 + 96);
if ( v15 == 254 || v15 == 245 )
{
*(_BYTE *)(*(_QWORD *)(a1 + 16) + v9) = 0;
v14 = *(_QWORD *)(a1 + 64);
}
}
v16 = v9 < v14;
v17 = v9 == v14;
result = *(bool **)(a1 + 24);
*result = !v16 && !v17;
}
else
{
result = (bool *)convert_froma_string(a1, *a3, v6);
}
*a3 += v7;
return result;
}
| ps_fetch_bin:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
PUSH RAX
MOV RBX,RDX
MOV R15,RDI
MOV R13D,dword ptr [RSI + 0x6c]
MOV RDI,RDX
CALL 0x0011a1e5
MOV R14,RAX
CMP R13D,0x3f
JNZ 0x00128cab
MOV R12,RAX
MOV RAX,qword ptr [R15]
MOV qword ptr [RAX],R14
MOV RSI,qword ptr [R15 + 0x48]
SUB R12,RSI
JLE 0x00128cbb
MOV RDX,qword ptr [R15 + 0x40]
TEST RDX,RDX
JZ 0x00128cbe
ADD RSI,qword ptr [RBX]
MOV RDI,qword ptr [R15 + 0x10]
CMP R12,RDX
CMOVC RDX,R12
CALL 0x001133a0
JMP 0x00128cbe
LAB_00128cab:
MOV RSI,qword ptr [RBX]
MOV RDI,R15
MOV RDX,R14
CALL 0x001290f5
JMP 0x00128cf2
LAB_00128cbb:
XOR R12D,R12D
LAB_00128cbe:
MOV RAX,qword ptr [R15 + 0x40]
CMP R12,RAX
JNC 0x00128ce8
MOV ECX,dword ptr [R15 + 0x60]
CMP ECX,0xfe
JZ 0x00128cdb
CMP ECX,0xf5
JNZ 0x00128ce8
LAB_00128cdb:
MOV RAX,qword ptr [R15 + 0x10]
MOV byte ptr [RAX + R12*0x1],0x0
MOV RAX,qword ptr [R15 + 0x40]
LAB_00128ce8:
CMP R12,RAX
MOV RAX,qword ptr [R15 + 0x18]
SETA byte ptr [RAX]
LAB_00128cf2:
ADD qword ptr [RBX],R14
ADD RSP,0x8
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
|
void ps_fetch_bin(int8 *param_1,long param_2,long *param_3)
{
int iVar1;
long lVar2;
long lVar3;
ulong uVar4;
ulong uVar5;
iVar1 = *(int *)(param_2 + 0x6c);
lVar3 = net_field_length(param_3);
if (iVar1 == 0x3f) {
*(long *)*param_1 = lVar3;
lVar2 = param_1[9];
uVar5 = lVar3 - lVar2;
if (uVar5 == 0 || lVar3 < lVar2) {
uVar5 = 0;
}
else {
uVar4 = param_1[8];
if (uVar4 != 0) {
if (uVar5 < uVar4) {
uVar4 = uVar5;
}
memcpy((void *)param_1[2],(void *)(lVar2 + *param_3),uVar4);
}
}
uVar4 = param_1[8];
if ((uVar5 < uVar4) && ((*(int *)(param_1 + 0xc) == 0xfe || (*(int *)(param_1 + 0xc) == 0xf5))))
{
*(int1 *)(param_1[2] + uVar5) = 0;
uVar4 = param_1[8];
}
*(bool *)param_1[3] = uVar4 < uVar5;
}
else {
convert_froma_string(param_1,*param_3,lVar3);
}
*param_3 = *param_3 + lVar3;
return;
}
| |
42,681 | rtree_find_first | eloqsql/storage/myisam/rt_index.c | int rtree_find_first(MI_INFO *info, uint keynr, uchar *key, uint key_length,
uint search_flag)
{
my_off_t root;
uint nod_cmp_flag;
MI_KEYDEF *keyinfo = info->s->keyinfo + keynr;
/*
At the moment index can only properly handle the
MBR_INTERSECT, so we use it for all sorts of queries.
TODO: better searsh for CONTAINS/WITHIN.
*/
search_flag= nod_cmp_flag= MBR_INTERSECT;
if ((root = info->s->state.key_root[keynr]) == HA_OFFSET_ERROR)
{
my_errno= HA_ERR_END_OF_FILE;
return -1;
}
/*
Save searched key, include data pointer.
The data pointer is required if the search_flag contains MBR_DATA.
(minimum bounding rectangle)
*/
memcpy(info->first_mbr_key, key, keyinfo->keylength);
info->last_rkey_length = key_length;
info->rtree_recursion_depth = -1;
info->buff_used = 1;
/*
TODO better search for CONTAINS/WITHIN.
nod_cmp_flag= ((search_flag & (MBR_EQUAL | MBR_WITHIN)) ?
MBR_WITHIN : MBR_INTERSECT);
*/
return rtree_find_req(info, keyinfo, search_flag, nod_cmp_flag, root, 0);
} | O0 | c | rtree_find_first:
pushq %rbp
movq %rsp, %rbp
subq $0x40, %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, -0x40(%rbp)
movl $0x400, -0x34(%rbp) # imm = 0x400
movl $0x400, -0x28(%rbp) # imm = 0x400
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 0xc8827
callq 0xf60c0
movl $0x89, (%rax)
movl $0xffffffff, -0x4(%rbp) # imm = 0xFFFFFFFF
jmp 0xc8888
movq -0x10(%rbp), %rax
movq 0x118(%rax), %rdi
movq -0x20(%rbp), %rsi
movq -0x40(%rbp), %rax
movzwl 0x12(%rax), %eax
movl %eax, %edx
callq 0x2a090
movl -0x24(%rbp), %ecx
movq -0x10(%rbp), %rax
movl %ecx, 0x1dc(%rax)
movq -0x10(%rbp), %rax
movl $0xffffffff, 0x3c0(%rax) # imm = 0xFFFFFFFF
movq -0x10(%rbp), %rax
movb $0x1, 0x33d(%rax)
movq -0x10(%rbp), %rdi
movq -0x40(%rbp), %rsi
movl -0x28(%rbp), %edx
movl -0x34(%rbp), %ecx
movq -0x30(%rbp), %r8
xorl %r9d, %r9d
callq 0xc88a0
movl %eax, -0x4(%rbp)
movl -0x4(%rbp), %eax
addq $0x40, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
| rtree_find_first:
push rbp
mov rbp, rsp
sub rsp, 40h
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_40], rax
mov [rbp+var_34], 400h
mov [rbp+var_28], 400h
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 short loc_C8827
call _my_thread_var
mov dword ptr [rax], 89h
mov [rbp+var_4], 0FFFFFFFFh
jmp short loc_C8888
loc_C8827:
mov rax, [rbp+var_10]
mov rdi, [rax+118h]
mov rsi, [rbp+var_20]
mov rax, [rbp+var_40]
movzx eax, word ptr [rax+12h]
mov edx, eax
call _memcpy
mov ecx, [rbp+var_24]
mov rax, [rbp+var_10]
mov [rax+1DCh], ecx
mov rax, [rbp+var_10]
mov dword ptr [rax+3C0h], 0FFFFFFFFh
mov rax, [rbp+var_10]
mov byte ptr [rax+33Dh], 1
mov rdi, [rbp+var_10]
mov rsi, [rbp+var_40]
mov edx, [rbp+var_28]
mov ecx, [rbp+var_34]
mov r8, [rbp+var_30]
xor r9d, r9d
call rtree_find_req
mov [rbp+var_4], eax
loc_C8888:
mov eax, [rbp+var_4]
add rsp, 40h
pop rbp
retn
| long long rtree_find_first(long long a1, const char *a2, long long a3, int a4)
{
long long v5; // [rsp+0h] [rbp-40h]
long long v6; // [rsp+10h] [rbp-30h]
v5 = 112LL * (unsigned int)a2 + *(_QWORD *)(*(_QWORD *)a1 + 536LL);
v6 = *(_QWORD *)(*(_QWORD *)(*(_QWORD *)a1 + 152LL) + 8LL * (unsigned int)a2);
if ( v6 == -1 )
{
*(_DWORD *)my_thread_var(a1, a2) = 137;
return (unsigned int)-1;
}
else
{
memcpy(*(_QWORD *)(a1 + 280), a3, *(unsigned __int16 *)(v5 + 18));
*(_DWORD *)(a1 + 476) = a4;
*(_DWORD *)(a1 + 960) = -1;
*(_BYTE *)(a1 + 829) = 1;
return (unsigned int)rtree_find_req(a1, v5, 1024LL, 1024LL, v6, 0LL);
}
}
| rtree_find_first:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x40
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 + -0x40],RAX
MOV dword ptr [RBP + -0x34],0x400
MOV dword ptr [RBP + -0x28],0x400
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 0x001c8827
CALL 0x001f60c0
MOV dword ptr [RAX],0x89
MOV dword ptr [RBP + -0x4],0xffffffff
JMP 0x001c8888
LAB_001c8827:
MOV RAX,qword ptr [RBP + -0x10]
MOV RDI,qword ptr [RAX + 0x118]
MOV RSI,qword ptr [RBP + -0x20]
MOV RAX,qword ptr [RBP + -0x40]
MOVZX EAX,word ptr [RAX + 0x12]
MOV EDX,EAX
CALL 0x0012a090
MOV ECX,dword ptr [RBP + -0x24]
MOV RAX,qword ptr [RBP + -0x10]
MOV dword ptr [RAX + 0x1dc],ECX
MOV RAX,qword ptr [RBP + -0x10]
MOV dword ptr [RAX + 0x3c0],0xffffffff
MOV RAX,qword ptr [RBP + -0x10]
MOV byte ptr [RAX + 0x33d],0x1
MOV RDI,qword ptr [RBP + -0x10]
MOV RSI,qword ptr [RBP + -0x40]
MOV EDX,dword ptr [RBP + -0x28]
MOV ECX,dword ptr [RBP + -0x34]
MOV R8,qword ptr [RBP + -0x30]
XOR R9D,R9D
CALL 0x001c88a0
MOV dword ptr [RBP + -0x4],EAX
LAB_001c8888:
MOV EAX,dword ptr [RBP + -0x4]
ADD RSP,0x40
POP RBP
RET
|
int4 rtree_find_first(long *param_1,uint param_2,void *param_3,int4 param_4)
{
long lVar1;
long lVar2;
int4 *puVar3;
int4 local_c;
lVar2 = *(long *)(*param_1 + 0x218) + (ulong)param_2 * 0x70;
lVar1 = *(long *)(*(long *)(*param_1 + 0x98) + (ulong)param_2 * 8);
if (lVar1 == -1) {
puVar3 = (int4 *)_my_thread_var();
*puVar3 = 0x89;
local_c = 0xffffffff;
}
else {
memcpy((void *)param_1[0x23],param_3,(ulong)*(ushort *)(lVar2 + 0x12));
*(int4 *)((long)param_1 + 0x1dc) = param_4;
*(int4 *)(param_1 + 0x78) = 0xffffffff;
*(int1 *)((long)param_1 + 0x33d) = 1;
local_c = rtree_find_req(param_1,lVar2,0x400,0x400,lVar1,0);
}
return local_c;
}
| |
42,682 | my_strnxfrm_unicode_full_bin_internal | eloqsql/strings/ctype-utf8.c | size_t
my_strnxfrm_unicode_full_bin_internal(CHARSET_INFO *cs,
uchar *dst, uchar *de, uint *nweights,
const uchar *src, const uchar *se)
{
my_wc_t UNINIT_VAR(wc);
uchar *dst0= dst;
DBUG_ASSERT(src || !se);
DBUG_ASSERT(cs->state & MY_CS_BINSORT);
for (; dst < de && *nweights; (*nweights)--)
{
int res;
if ((res= my_ci_mb_wc(cs, &wc, src, se)) <= 0)
break;
src+= res;
*dst++= (uchar) (wc >> 16);
if (dst < de)
{
*dst++= (uchar) ((wc >> 8) & 0xFF);
if (dst < de)
*dst++= (uchar) (wc & 0xFF);
}
}
return dst - dst0;
} | O3 | c | my_strnxfrm_unicode_full_bin_internal:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %r9, -0x40(%rbp)
movq %rsi, %rax
movq %rsi, -0x38(%rbp)
cmpq %rdx, %rsi
jae 0xccb05
movq %r8, %r15
movq %rcx, %r12
movq %rdx, %r13
movq %rdi, %rbx
movl (%rcx), %ecx
movq -0x38(%rbp), %r14
testl %ecx, %ecx
je 0xccb02
movq 0xb8(%rbx), %rax
movq %rbx, %rdi
leaq -0x30(%rbp), %rsi
movq %r15, %rdx
movq -0x40(%rbp), %rcx
callq *0x28(%rax)
testl %eax, %eax
jle 0xccb02
movl %eax, %ecx
movb -0x2e(%rbp), %dl
leaq 0x1(%r14), %rax
movb %dl, (%r14)
cmpq %r13, %rax
jae 0xccae9
movb -0x2f(%rbp), %dl
leaq 0x2(%r14), %rax
movb %dl, 0x1(%r14)
cmpq %r13, %rax
jae 0xccae9
movb -0x30(%rbp), %al
movb %al, 0x2(%r14)
addq $0x3, %r14
movq %r14, %rax
movl %ecx, %ecx
addq %rcx, %r15
movl (%r12), %ecx
decl %ecx
movl %ecx, (%r12)
movq %rax, %r14
cmpq %r13, %rax
jb 0xcca9a
jmp 0xccb05
movq %r14, %rax
subq -0x38(%rbp), %rax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
| my_strnxfrm_unicode_full_bin_internal:
push rbp
mov rbp, rsp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 18h
mov [rbp+var_40], r9
mov rax, rsi
mov [rbp+var_38], rsi
cmp rsi, rdx
jnb short loc_CCB05
mov r15, r8
mov r12, rcx
mov r13, rdx
mov rbx, rdi
mov ecx, [rcx]
mov r14, [rbp+var_38]
loc_CCA9A:
test ecx, ecx
jz short loc_CCB02
mov rax, [rbx+0B8h]
mov rdi, rbx
lea rsi, [rbp+var_30]
mov rdx, r15
mov rcx, [rbp+var_40]
call qword ptr [rax+28h]
test eax, eax
jle short loc_CCB02
mov ecx, eax
mov dl, [rbp+var_2E]
lea rax, [r14+1]
mov [r14], dl
cmp rax, r13
jnb short loc_CCAE9
mov dl, [rbp+var_2F]
lea rax, [r14+2]
mov [r14+1], dl
cmp rax, r13
jnb short loc_CCAE9
mov al, [rbp+var_30]
mov [r14+2], al
add r14, 3
mov rax, r14
loc_CCAE9:
mov ecx, ecx
add r15, rcx
mov ecx, [r12]
dec ecx
mov [r12], ecx
mov r14, rax
cmp rax, r13
jb short loc_CCA9A
jmp short loc_CCB05
loc_CCB02:
mov rax, r14
loc_CCB05:
sub rax, [rbp+var_38]
add rsp, 18h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
| long long my_strnxfrm_unicode_full_bin_internal(
long long a1,
_BYTE *a2,
unsigned long long a3,
int *a4,
long long a5,
long long a6)
{
_BYTE *v6; // rax
int v10; // ecx
_BYTE *v11; // r14
int v12; // eax
unsigned int v13; // ecx
_BYTE v16[48]; // [rsp+10h] [rbp-30h] BYREF
v6 = a2;
if ( (unsigned long long)a2 < a3 )
{
v10 = *a4;
v11 = a2;
while ( v10 )
{
v12 = (*(long long ( **)(long long, _BYTE *, long long, long long))(*(_QWORD *)(a1 + 184) + 40LL))(
a1,
v16,
a5,
a6);
if ( v12 <= 0 )
break;
v13 = v12;
v6 = v11 + 1;
*v11 = v16[2];
if ( (unsigned long long)(v11 + 1) < a3 )
{
v6 = v11 + 2;
v11[1] = v16[1];
if ( (unsigned long long)(v11 + 2) < a3 )
{
v11[2] = v16[0];
v6 = v11 + 3;
}
}
a5 += v13;
v10 = *a4 - 1;
*a4 = v10;
v11 = v6;
if ( (unsigned long long)v6 >= a3 )
return v6 - a2;
}
v6 = v11;
}
return v6 - a2;
}
| my_strnxfrm_unicode_full_bin_internal:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x18
MOV qword ptr [RBP + -0x40],R9
MOV RAX,RSI
MOV qword ptr [RBP + -0x38],RSI
CMP RSI,RDX
JNC 0x001ccb05
MOV R15,R8
MOV R12,RCX
MOV R13,RDX
MOV RBX,RDI
MOV ECX,dword ptr [RCX]
MOV R14,qword ptr [RBP + -0x38]
LAB_001cca9a:
TEST ECX,ECX
JZ 0x001ccb02
MOV RAX,qword ptr [RBX + 0xb8]
MOV RDI,RBX
LEA RSI,[RBP + -0x30]
MOV RDX,R15
MOV RCX,qword ptr [RBP + -0x40]
CALL qword ptr [RAX + 0x28]
TEST EAX,EAX
JLE 0x001ccb02
MOV ECX,EAX
MOV DL,byte ptr [RBP + -0x2e]
LEA RAX,[R14 + 0x1]
MOV byte ptr [R14],DL
CMP RAX,R13
JNC 0x001ccae9
MOV DL,byte ptr [RBP + -0x2f]
LEA RAX,[R14 + 0x2]
MOV byte ptr [R14 + 0x1],DL
CMP RAX,R13
JNC 0x001ccae9
MOV AL,byte ptr [RBP + -0x30]
MOV byte ptr [R14 + 0x2],AL
ADD R14,0x3
MOV RAX,R14
LAB_001ccae9:
MOV ECX,ECX
ADD R15,RCX
MOV ECX,dword ptr [R12]
DEC ECX
MOV dword ptr [R12],ECX
MOV R14,RAX
CMP RAX,R13
JC 0x001cca9a
JMP 0x001ccb05
LAB_001ccb02:
MOV RAX,R14
LAB_001ccb05:
SUB RAX,qword ptr [RBP + -0x38]
ADD RSP,0x18
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
|
long my_strnxfrm_unicode_full_bin_internal
(long param_1,int1 *param_2,int1 *param_3,int *param_4,long param_5,
int8 param_6)
{
uint uVar1;
int iVar2;
int1 *puVar3;
int1 *puVar4;
int1 local_38;
int1 local_37;
int1 local_36;
puVar4 = param_2;
if (param_2 < param_3) {
iVar2 = *param_4;
puVar3 = param_2;
do {
puVar4 = puVar3;
if ((iVar2 == 0) ||
(uVar1 = (**(code **)(*(long *)(param_1 + 0xb8) + 0x28))(param_1,&local_38,param_5,param_6)
, (int)uVar1 < 1)) break;
puVar4 = puVar3 + 1;
*puVar3 = local_36;
if (puVar4 < param_3) {
puVar4 = puVar3 + 2;
puVar3[1] = local_37;
if (puVar4 < param_3) {
puVar3[2] = local_38;
puVar4 = puVar3 + 3;
}
}
param_5 = param_5 + (ulong)uVar1;
iVar2 = *param_4 + -1;
*param_4 = iVar2;
puVar3 = puVar4;
} while (puVar4 < param_3);
}
return (long)puVar4 - (long)param_2;
}
| |
42,683 | free_property | bluesky950520[P]quickjs/quickjs.c | static void free_property(JSRuntime *rt, JSProperty *pr, int prop_flags)
{
if (unlikely(prop_flags & JS_PROP_TMASK)) {
if ((prop_flags & JS_PROP_TMASK) == JS_PROP_GETSET) {
if (pr->u.getset.getter)
JS_FreeValueRT(rt, JS_MKPTR(JS_TAG_OBJECT, pr->u.getset.getter));
if (pr->u.getset.setter)
JS_FreeValueRT(rt, JS_MKPTR(JS_TAG_OBJECT, pr->u.getset.setter));
} else if ((prop_flags & JS_PROP_TMASK) == JS_PROP_VARREF) {
free_var_ref(rt, pr->u.var_ref);
} else if ((prop_flags & JS_PROP_TMASK) == JS_PROP_AUTOINIT) {
js_autoinit_free(rt, pr);
}
} else {
JS_FreeValueRT(rt, pr->u.value);
}
} | O1 | c | free_property:
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %r14
movq %rdi, %rbx
shrl $0x4, %edx
andl $0x3, %edx
jne 0x3c8e1
movq (%r14), %rsi
movq 0x8(%r14), %rdx
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0x1d8c6
cmpl $0x1, %edx
jne 0x3c912
movq (%r14), %rsi
testq %rsi, %rsi
je 0x3c8fd
movq %rbx, %rdi
movq $-0x1, %rdx
callq 0x1d8c6
movq 0x8(%r14), %rsi
testq %rsi, %rsi
je 0x3c929
movq %rbx, %rdi
movq $-0x1, %rdx
jmp 0x3c8d5
cmpl $0x2, %edx
jne 0x3c931
movq (%r14), %rsi
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0x263ec
addq $0x8, %rsp
popq %rbx
popq %r14
retq
movq (%r14), %rdi
andq $-0x4, %rdi
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0x1faa0
| free_property:
push r14
push rbx
push rax
mov r14, rsi
mov rbx, rdi
shr edx, 4
and edx, 3
jnz short loc_3C8E1
mov rsi, [r14]
mov rdx, [r14+8]
mov rdi, rbx
loc_3C8D5:
add rsp, 8
pop rbx
pop r14
jmp JS_FreeValueRT
loc_3C8E1:
cmp edx, 1
jnz short loc_3C912
mov rsi, [r14]
test rsi, rsi
jz short loc_3C8FD
mov rdi, rbx
mov rdx, 0FFFFFFFFFFFFFFFFh
call JS_FreeValueRT
loc_3C8FD:
mov rsi, [r14+8]
test rsi, rsi
jz short loc_3C929
mov rdi, rbx
mov rdx, 0FFFFFFFFFFFFFFFFh
jmp short loc_3C8D5
loc_3C912:
cmp edx, 2
jnz short loc_3C931
mov rsi, [r14]
mov rdi, rbx
add rsp, 8
pop rbx
pop r14
jmp free_var_ref
loc_3C929:
add rsp, 8
pop rbx
pop r14
retn
loc_3C931:
mov rdi, [r14]
and rdi, 0FFFFFFFFFFFFFFFCh
add rsp, 8
pop rbx
pop r14
jmp JS_FreeContext
| long long free_property(long long a1, long long *a2, unsigned int a3)
{
int v4; // edx
_DWORD *v5; // rsi
long long v6; // rdx
long long result; // rax
_DWORD *v8; // rsi
v4 = (a3 >> 4) & 3;
switch ( v4 )
{
case 0:
v5 = (_DWORD *)*a2;
v6 = a2[1];
return JS_FreeValueRT(a1, v5, v6);
case 1:
v8 = (_DWORD *)*a2;
if ( *a2 )
result = JS_FreeValueRT(a1, v8, -1LL);
v5 = (_DWORD *)a2[1];
if ( v5 )
{
v6 = -1LL;
return JS_FreeValueRT(a1, v5, v6);
}
break;
case 2:
return free_var_ref(a1, *a2);
default:
return JS_FreeContext((unsigned int *)(*a2 & 0xFFFFFFFFFFFFFFFCLL));
}
return result;
}
| |||
42,684 | free_property | bluesky950520[P]quickjs/quickjs.c | static void free_property(JSRuntime *rt, JSProperty *pr, int prop_flags)
{
if (unlikely(prop_flags & JS_PROP_TMASK)) {
if ((prop_flags & JS_PROP_TMASK) == JS_PROP_GETSET) {
if (pr->u.getset.getter)
JS_FreeValueRT(rt, JS_MKPTR(JS_TAG_OBJECT, pr->u.getset.getter));
if (pr->u.getset.setter)
JS_FreeValueRT(rt, JS_MKPTR(JS_TAG_OBJECT, pr->u.getset.setter));
} else if ((prop_flags & JS_PROP_TMASK) == JS_PROP_VARREF) {
free_var_ref(rt, pr->u.var_ref);
} else if ((prop_flags & JS_PROP_TMASK) == JS_PROP_AUTOINIT) {
js_autoinit_free(rt, pr);
}
} else {
JS_FreeValueRT(rt, pr->u.value);
}
} | O2 | c | free_property:
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %r14
movq %rdi, %rbx
shrl $0x4, %edx
andl $0x3, %edx
leaq 0x4e60e(%rip), %rax # 0x83b74
movslq (%rax,%rdx,4), %rcx
addq %rax, %rcx
jmpq *%rcx
movq (%r14), %rsi
movq 0x8(%r14), %rdx
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0x18031
movq (%r14), %rsi
testq %rsi, %rsi
je 0x35598
pushq $-0x1
popq %rdx
movq %rbx, %rdi
callq 0x18031
movq 0x8(%r14), %rsi
testq %rsi, %rsi
je 0x355b8
pushq $-0x1
popq %rdx
jmp 0x35576
movq (%r14), %rsi
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0x1fed9
addq $0x8, %rsp
popq %rbx
popq %r14
retq
movq %r14, %rdi
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0x355cc
| free_property:
push r14
push rbx
push rax
mov r14, rsi
mov rbx, rdi
shr edx, 4
and edx, 3
lea rax, jpt_3556D
movsxd rcx, ds:(jpt_3556D - 83B74h)[rax+rdx*4]; switch 4 cases
add rcx, rax
jmp rcx; switch jump
loc_3556F:
mov rsi, [r14]; jumptable 000000000003556D case 0
mov rdx, [r14+8]
loc_35576:
mov rdi, rbx
add rsp, 8
pop rbx
pop r14
jmp JS_FreeValueRT
loc_35585:
mov rsi, [r14]; jumptable 000000000003556D case 1
test rsi, rsi
jz short loc_35598
push 0FFFFFFFFFFFFFFFFh
pop rdx
mov rdi, rbx
call JS_FreeValueRT
loc_35598:
mov rsi, [r14+8]
test rsi, rsi
jz short loc_355B8
push 0FFFFFFFFFFFFFFFFh
pop rdx
jmp short loc_35576
loc_355A6:
mov rsi, [r14]; jumptable 000000000003556D case 2
mov rdi, rbx
add rsp, 8
pop rbx
pop r14
jmp free_var_ref
loc_355B8:
add rsp, 8
pop rbx
pop r14
retn
loc_355C0:
mov rdi, r14; jumptable 000000000003556D case 3
add rsp, 8
pop rbx
pop r14
jmp short $+2
| long long free_property(long long a1, long long *a2, unsigned int a3)
{
unsigned int *v4; // rsi
long long v5; // rdx
long long result; // rax
unsigned int *v7; // rsi
switch ( (a3 >> 4) & 3 )
{
case 0u:
v4 = (unsigned int *)*a2;
v5 = a2[1];
goto LABEL_3;
case 1u:
v7 = (unsigned int *)*a2;
if ( *a2 )
result = JS_FreeValueRT(a1, v7, 0xFFFFFFFF);
v4 = (unsigned int *)a2[1];
if ( v4 )
{
LODWORD(v5) = -1;
LABEL_3:
result = JS_FreeValueRT(a1, v4, v5);
}
break;
case 2u:
result = free_var_ref(a1, *a2);
break;
case 3u:
result = js_autoinit_free(a2);
break;
}
return result;
}
| free_property:
PUSH R14
PUSH RBX
PUSH RAX
MOV R14,RSI
MOV RBX,RDI
SHR EDX,0x4
AND EDX,0x3
LEA RAX,[0x183b74]
MOVSXD RCX,dword ptr [RAX + RDX*0x4]
ADD RCX,RAX
switchD:
JMP RCX
caseD_0:
MOV RSI,qword ptr [R14]
MOV RDX,qword ptr [R14 + 0x8]
LAB_00135576:
MOV RDI,RBX
ADD RSP,0x8
POP RBX
POP R14
JMP 0x00118031
caseD_1:
MOV RSI,qword ptr [R14]
TEST RSI,RSI
JZ 0x00135598
PUSH -0x1
POP RDX
MOV RDI,RBX
CALL 0x00118031
LAB_00135598:
MOV RSI,qword ptr [R14 + 0x8]
TEST RSI,RSI
JZ 0x001355b8
PUSH -0x1
POP RDX
JMP 0x00135576
caseD_2:
MOV RSI,qword ptr [R14]
MOV RDI,RBX
ADD RSP,0x8
POP RBX
POP R14
JMP 0x0011fed9
LAB_001355b8:
ADD RSP,0x8
POP RBX
POP R14
RET
caseD_3:
MOV RDI,R14
ADD RSP,0x8
POP RBX
POP R14
JMP 0x001355cc
|
void free_property(int8 param_1,long *param_2,uint param_3)
{
long lVar1;
long lStack_20;
switch(param_3 >> 4 & 3) {
case 0:
lVar1 = *param_2;
lStack_20 = param_2[1];
break;
case 1:
if (*param_2 != 0) {
JS_FreeValueRT(param_1,*param_2,0xffffffffffffffff);
}
lVar1 = param_2[1];
if (lVar1 == 0) {
return;
}
lStack_20 = -1;
break;
case 2:
free_var_ref(param_1,*param_2);
return;
case 3:
js_autoinit_free(param_2);
return;
}
JS_FreeValueRT(param_1,lVar1,lStack_20);
return;
}
| |
42,685 | SchemaConverter::SchemaConverter(std::function<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void> (std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&)> const&, bool, bool) | monkey531[P]llama/common/json-schema-to-grammar.cpp | SchemaConverter(
const std::function<json(const std::string &)> & fetch_json,
bool dotall,
bool compact_spaces)
: _fetch_json(fetch_json), _dotall(dotall)
{
_rules["space"] = compact_spaces ? "\" \"?" : SPACE_RULE;
} | O0 | cpp | SchemaConverter::SchemaConverter(std::function<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void> (std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&)> const&, bool, bool):
subq $0xc8, %rsp
movb %cl, %al
movb %dl, %cl
movq %rdi, 0xc0(%rsp)
movq %rsi, 0xb8(%rsp)
andb $0x1, %cl
movb %cl, 0xb7(%rsp)
andb $0x1, %al
movb %al, 0xb6(%rsp)
movq 0xc0(%rsp), %rdi
movq %rdi, 0x40(%rsp)
movq 0xb8(%rsp), %rsi
callq 0x1b1310
movq 0x40(%rsp), %rdi
movb 0xb7(%rsp), %al
andb $0x1, %al
movb %al, 0x20(%rdi)
addq $0x28, %rdi
movq %rdi, 0x20(%rsp)
callq 0x1b13c0
movq 0x40(%rsp), %rdi
addq $0x58, %rdi
movq %rdi, 0x28(%rsp)
callq 0x1b13d0
movq 0x40(%rsp), %rdi
addq $0x90, %rdi
movq %rdi, 0x30(%rsp)
callq 0x1082f0
movq 0x40(%rsp), %rdi
addq $0xc8, %rdi
movq %rdi, 0x38(%rsp)
callq 0x6cd90
movq 0x40(%rsp), %rdi
addq $0xe0, %rdi
movq %rdi, 0x48(%rsp)
callq 0x6cd90
movb 0xb6(%rsp), %al
movb $0x0, 0x8e(%rsp)
testb $0x1, %al
je 0x1aff26
leaq 0x8f(%rsp), %rdi
movq %rdi, 0x18(%rsp)
callq 0x5f150
movq 0x18(%rsp), %rdx
movb $0x1, 0x8e(%rsp)
leaq 0x7444f(%rip), %rsi # 0x224364
leaq 0x90(%rsp), %rdi
callq 0x6b630
jmp 0x1aff24
jmp 0x1aff3e
leaq 0x1045ab(%rip), %rsi # 0x2b44d8
leaq 0x90(%rsp), %rdi
callq 0x5e200
jmp 0x1aff3c
jmp 0x1aff3e
movq 0x40(%rsp), %rax
addq $0x28, %rax
movq %rax, 0x8(%rsp)
leaq 0x57(%rsp), %rdi
movq %rdi, 0x10(%rsp)
callq 0x5f150
movq 0x10(%rsp), %rdx
leaq 0x74620(%rip), %rsi # 0x224587
leaq 0x58(%rsp), %rdi
callq 0x6b630
jmp 0x1aff73
movq 0x8(%rsp), %rdi
leaq 0x58(%rsp), %rsi
callq 0x1b13e0
movq %rax, (%rsp)
jmp 0x1aff88
movq (%rsp), %rdi
leaq 0x90(%rsp), %rsi
callq 0x5f490
jmp 0x1aff9b
leaq 0x58(%rsp), %rdi
callq 0x5f5d8
leaq 0x57(%rsp), %rdi
callq 0x5f5b0
leaq 0x90(%rsp), %rdi
callq 0x5f5d8
testb $0x1, 0x8e(%rsp)
jne 0x1affc8
jmp 0x1affd5
leaq 0x8f(%rsp), %rdi
callq 0x5f5b0
addq $0xc8, %rsp
retq
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x80(%rsp)
movl %eax, 0x7c(%rsp)
jmp 0x1b0035
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x80(%rsp)
movl %eax, 0x7c(%rsp)
jmp 0x1b001e
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x80(%rsp)
movl %eax, 0x7c(%rsp)
leaq 0x58(%rsp), %rdi
callq 0x5f5d8
leaq 0x57(%rsp), %rdi
callq 0x5f5b0
leaq 0x90(%rsp), %rdi
callq 0x5f5d8
testb $0x1, 0x8e(%rsp)
jne 0x1b0041
jmp 0x1b004e
leaq 0x8f(%rsp), %rdi
callq 0x5f5b0
movq 0x48(%rsp), %rdi
callq 0x699d0
movq 0x38(%rsp), %rdi
callq 0x699d0
movq 0x30(%rsp), %rdi
callq 0x1084d0
movq 0x28(%rsp), %rdi
callq 0x1b14d0
movq 0x20(%rsp), %rdi
callq 0x1b14e0
movq 0x40(%rsp), %rdi
callq 0x1b00a0
movq 0x80(%rsp), %rdi
callq 0x5ebf0
nopw (%rax,%rax)
| _ZN15SchemaConverterC2ERKSt8functionIFN8nlohmann16json_abi_v3_11_310basic_jsonINS2_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS2_14adl_serializerES5_IhSaIhEEvEERKSB_EEbb:
sub rsp, 0C8h
mov al, cl
mov cl, dl
mov [rsp+0C8h+var_8], rdi
mov [rsp+0C8h+var_10], rsi
and cl, 1
mov [rsp+0C8h+var_11], cl
and al, 1
mov [rsp+0C8h+var_12], al
mov rdi, [rsp+0C8h+var_8]
mov [rsp+0C8h+var_88], rdi
mov rsi, [rsp+0C8h+var_10]
call _ZNSt8functionIFN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES4_IhSaIhEEvEERKSA_EEC2ERKSI_; std::function<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> ()(std::string const&)>::function(std::function<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> ()(std::string const&)> const&)
mov rdi, [rsp+0C8h+var_88]
mov al, [rsp+0C8h+var_11]
and al, 1
mov [rdi+20h], al
add rdi, 28h ; '('
mov [rsp+0C8h+var_A8], rdi
call _ZNSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES5_St4lessIS5_ESaISt4pairIKS5_S5_EEEC2Ev; std::map<std::string,std::string>::map(void)
mov rdi, [rsp+0C8h+var_88]
add rdi, 58h ; 'X'
mov [rsp+0C8h+var_A0], rdi
call _ZNSt13unordered_mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN8nlohmann16json_abi_v3_11_310basic_jsonINS7_11ordered_mapESt6vectorS5_blmdSaNS7_14adl_serializerESA_IhSaIhEEvEESt4hashIS5_ESt8equal_toIS5_ESaISt4pairIKS5_SE_EEEC2Ev; std::unordered_map<std::string,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>::unordered_map(void)
mov rdi, [rsp+0C8h+var_88]
add rdi, 90h
mov [rsp+0C8h+var_98], rdi
call _ZNSt13unordered_setINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4hashIS5_ESt8equal_toIS5_ESaIS5_EEC2Ev; std::unordered_set<std::string>::unordered_set(void)
mov rdi, [rsp+0C8h+var_88]
add rdi, 0C8h
mov [rsp+0C8h+var_90], rdi
call _ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EEC2Ev; std::vector<std::string>::vector(void)
mov rdi, [rsp+0C8h+var_88]
add rdi, 0E0h
mov [rsp+0C8h+var_80], rdi
call _ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EEC2Ev; std::vector<std::string>::vector(void)
mov al, [rsp+0C8h+var_12]
mov [rsp+0C8h+var_3A], 0
test al, 1
jz short loc_1AFF26
lea rdi, [rsp+0C8h+var_39]
mov [rsp+0C8h+var_B0], rdi
call __ZNSaIcEC1Ev; std::allocator<char>::allocator(void)
mov rdx, [rsp+0C8h+var_B0]
mov [rsp+0C8h+var_3A], 1
lea rsi, asc_224364; "\" \"?"
lea rdi, [rsp+0C8h+var_38]
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_; std::string::basic_string<std::allocator<char>>(char const*,std::allocator<char> const&)
jmp short $+2
loc_1AFF24:
jmp short loc_1AFF3E
loc_1AFF26:
lea rsi, _ZL10SPACE_RULEB5cxx11; SPACE_RULE
lea rdi, [rsp+0C8h+var_38]
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC1ERKS4_; std::string::basic_string(std::string const&)
jmp short $+2
loc_1AFF3C:
jmp short $+2
loc_1AFF3E:
mov rax, [rsp+0C8h+var_88]
add rax, 28h ; '('
mov [rsp+0C8h+var_C0], rax
lea rdi, [rsp+0C8h+var_71]
mov [rsp+0C8h+var_B8], rdi
call __ZNSaIcEC1Ev; std::allocator<char>::allocator(void)
mov rdx, [rsp+0C8h+var_B8]
lea rsi, aSpace+7; "space"
lea rdi, [rsp+0C8h+var_70]
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_; std::string::basic_string<std::allocator<char>>(char const*,std::allocator<char> const&)
jmp short $+2
loc_1AFF73:
mov rdi, [rsp+0C8h+var_C0]
lea rsi, [rsp+0C8h+var_70]
call _ZNSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES5_St4lessIS5_ESaISt4pairIKS5_S5_EEEixEOS5_; std::map<std::string,std::string>::operator[](std::string&&)
mov [rsp+0C8h+var_C8], rax
jmp short $+2
loc_1AFF88:
mov rdi, [rsp+0C8h+var_C8]
lea rsi, [rsp+0C8h+var_38]
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSERKS4_; std::string::operator=(std::string const&)
jmp short $+2
loc_1AFF9B:
lea rdi, [rsp+0C8h+var_70]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string()
lea rdi, [rsp+0C8h+var_71]
call __ZNSaIcED1Ev; std::allocator<char>::~allocator()
lea rdi, [rsp+0C8h+var_38]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string()
test [rsp+0C8h+var_3A], 1
jnz short loc_1AFFC8
jmp short loc_1AFFD5
loc_1AFFC8:
lea rdi, [rsp+0C8h+var_39]
call __ZNSaIcED1Ev; std::allocator<char>::~allocator()
loc_1AFFD5:
add rsp, 0C8h
retn
mov rcx, rax
mov eax, edx
mov [rsp+arg_78], rcx
mov [rsp+arg_74], eax
jmp short loc_1B0035
mov rcx, rax
mov eax, edx
mov [rsp+arg_78], rcx
mov [rsp+arg_74], eax
jmp short loc_1B001E
mov rcx, rax
mov eax, edx
mov [rsp+arg_78], rcx
mov [rsp+arg_74], eax
lea rdi, [rsp+arg_50]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string()
loc_1B001E:
lea rdi, [rsp+arg_4F]
call __ZNSaIcED1Ev; std::allocator<char>::~allocator()
lea rdi, [rsp+arg_88]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string()
loc_1B0035:
test [rsp+arg_86], 1
jnz short loc_1B0041
jmp short loc_1B004E
loc_1B0041:
lea rdi, [rsp+arg_87]
call __ZNSaIcED1Ev; std::allocator<char>::~allocator()
loc_1B004E:
mov rdi, [rsp+arg_40]; void *
call _ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EED2Ev; std::vector<std::string>::~vector()
mov rdi, [rsp+arg_30]; void *
call _ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EED2Ev; std::vector<std::string>::~vector()
mov rdi, [rsp+arg_28]; void *
call _ZNSt13unordered_setINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4hashIS5_ESt8equal_toIS5_ESaIS5_EED2Ev; std::unordered_set<std::string>::~unordered_set()
mov rdi, [rsp+arg_20]
call _ZNSt13unordered_mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN8nlohmann16json_abi_v3_11_310basic_jsonINS7_11ordered_mapESt6vectorS5_blmdSaNS7_14adl_serializerESA_IhSaIhEEvEESt4hashIS5_ESt8equal_toIS5_ESaISt4pairIKS5_SE_EEED2Ev; std::unordered_map<std::string,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>::~unordered_map()
mov rdi, [rsp+arg_18]
call _ZNSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES5_St4lessIS5_ESaISt4pairIKS5_S5_EEED2Ev; std::map<std::string,std::string>::~map()
mov rdi, [rsp+arg_38]
call _ZNSt8functionIFN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES4_IhSaIhEEvEERKSA_EED2Ev; std::function<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> ()(std::string const&)>::~function()
mov rdi, [rsp+arg_78]
call __Unwind_Resume
| void SchemaConverter::SchemaConverter(long long a1, long long a2, int a3, int a4, int a5, int a6)
{
char v6; // al
const char *v7; // rsi
long long v8; // [rsp+0h] [rbp-C8h]
char v9; // [rsp+57h] [rbp-71h] BYREF
_BYTE v10[54]; // [rsp+58h] [rbp-70h] BYREF
char v11; // [rsp+8Eh] [rbp-3Ah]
char v12; // [rsp+8Fh] [rbp-39h] BYREF
_BYTE v13[38]; // [rsp+90h] [rbp-38h] BYREF
char v14; // [rsp+B6h] [rbp-12h]
char v15; // [rsp+B7h] [rbp-11h]
long long v16; // [rsp+B8h] [rbp-10h]
long long v17; // [rsp+C0h] [rbp-8h]
v6 = a4;
v17 = a1;
v16 = a2;
LOBYTE(a4) = a3 & 1;
v15 = a3 & 1;
v14 = v6 & 1;
std::function<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> ()(std::string const&)>::function(
a1,
a2,
a3,
a4,
a5,
a6);
*(_BYTE *)(a1 + 32) = v15 & 1;
std::map<std::string,std::string>::map();
std::unordered_map<std::string,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>::unordered_map();
std::unordered_set<std::string>::unordered_set(a1 + 144);
std::vector<std::string>::vector(a1 + 200);
std::vector<std::string>::vector(a1 + 224);
v11 = 0;
if ( (v14 & 1) != 0 )
{
std::allocator<char>::allocator(&v12, a2);
v11 = 1;
v7 = "\" \"?";
std::string::basic_string<std::allocator<char>>((long long)v13, (long long)"\" \"?", (long long)&v12);
}
else
{
v7 = (const char *)&SPACE_RULE[abi:cxx11];
std::string::basic_string(v13, &SPACE_RULE[abi:cxx11]);
}
std::allocator<char>::allocator(&v9, v7);
std::string::basic_string<std::allocator<char>>((long long)v10, (long long)"space", (long long)&v9);
v8 = std::map<std::string,std::string>::operator[](a1 + 40, v10);
std::string::operator=(v8, v13);
std::string::~string(v10);
std::allocator<char>::~allocator(&v9);
std::string::~string(v13);
if ( (v11 & 1) != 0 )
std::allocator<char>::~allocator(&v12);
}
| |||
42,686 | SchemaConverter::SchemaConverter(std::function<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void> (std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&)> const&, bool, bool) | monkey531[P]llama/common/json-schema-to-grammar.cpp | SchemaConverter(
const std::function<json(const std::string &)> & fetch_json,
bool dotall,
bool compact_spaces)
: _fetch_json(fetch_json), _dotall(dotall)
{
_rules["space"] = compact_spaces ? "\" \"?" : SPACE_RULE;
} | O3 | cpp | SchemaConverter::SchemaConverter(std::function<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void> (std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&)> const&, bool, bool):
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x48, %rsp
movl %ecx, %ebp
movl %edx, %r14d
movq %rdi, %rbx
callq 0xc3ce6
movb %r14b, 0x20(%rbx)
leaq 0x28(%rbx), %r14
leaq 0x30(%rbx), %rax
movl $0x0, 0x30(%rbx)
xorl %ecx, %ecx
movq %rcx, 0x38(%rbx)
movq %rax, 0x40(%rbx)
movq %rax, 0x48(%rbx)
movq %rcx, 0x50(%rbx)
leaq 0x88(%rbx), %rax
movq %rax, 0x58(%rbx)
movl $0x1, %eax
movq %rax, 0x60(%rbx)
xorps %xmm0, %xmm0
movups %xmm0, 0x68(%rbx)
movl $0x3f800000, %ecx # imm = 0x3F800000
movl %ecx, 0x78(%rbx)
movups %xmm0, 0x80(%rbx)
leaq 0xc0(%rbx), %rdx
movq %rdx, 0x90(%rbx)
movq %rax, 0x98(%rbx)
movups %xmm0, 0xa0(%rbx)
movl %ecx, 0xb0(%rbx)
movups %xmm0, 0xb8(%rbx)
movups %xmm0, 0xc8(%rbx)
movups %xmm0, 0xd8(%rbx)
movups %xmm0, 0xe8(%rbx)
leaq 0x18(%rsp), %r12
movq %r12, -0x10(%r12)
testl %ebp, %ebp
je 0xc3644
leaq 0x3632c(%rip), %rsi # 0xf995d
leaq 0x36329(%rip), %rdx # 0xf9961
leaq 0x8(%rsp), %rdi
callq 0x289be
jmp 0xc365f
movq 0x6ecbd(%rip), %rsi # 0x132308
movq 0x6ecbe(%rip), %rdx # 0x132310
addq %rsi, %rdx
leaq 0x8(%rsp), %rdi
callq 0x28a54
leaq 0x38(%rsp), %r13
movq %r13, -0x10(%r13)
leaq 0x36511(%rip), %rsi # 0xf9b80
leaq 0x3650f(%rip), %rdx # 0xf9b85
leaq 0x28(%rsp), %rdi
callq 0x289be
leaq 0x28(%rsp), %rsi
movq %r14, %rdi
callq 0xc3d44
leaq 0x8(%rsp), %rsi
movq %rax, %rdi
callq 0x1b4c0
movq 0x28(%rsp), %rdi
cmpq %r13, %rdi
je 0xc36b1
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x1b910
movq 0x8(%rsp), %rdi
cmpq %r12, %rdi
je 0xc36c8
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x1b910
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %r15
jmp 0xc36fb
movq %rax, %r15
jmp 0xc3712
movq %rax, %r15
movq 0x28(%rsp), %rdi
cmpq %r13, %rdi
je 0xc36fb
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x1b910
movq 0x8(%rsp), %rdi
cmpq %r12, %rdi
je 0xc3712
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x1b910
leaq 0x58(%rbx), %r12
leaq 0x90(%rbx), %r13
leaq 0xc8(%rbx), %rbp
leaq 0xe0(%rbx), %rdi
callq 0x24272
movq %rbp, %rdi
callq 0x24272
movq %r13, %rdi
callq 0x846b0
movq %r12, %rdi
callq 0xc4152
movq %r14, %rdi
callq 0xc4234
movq 0x10(%rbx), %rax
testq %rax, %rax
je 0xc3766
movq %rbx, %rdi
movq %rbx, %rsi
movl $0x3, %edx
callq *%rax
movq %r15, %rdi
callq 0x1bff0
movq %rax, %rdi
callq 0x259fd
| _ZN15SchemaConverterC2ERKSt8functionIFN8nlohmann16json_abi_v3_11_310basic_jsonINS2_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS2_14adl_serializerES5_IhSaIhEEvEERKSB_EEbb:
push rbp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 48h
mov ebp, ecx
mov r14d, edx
mov rbx, rdi
call _ZNSt8functionIFN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES4_IhSaIhEEvEERKSA_EEC2ERKSI_; std::function<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> ()(std::string const&)>::function(std::function<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> ()(std::string const&)> const&)
mov [rbx+20h], r14b
lea r14, [rbx+28h]
lea rax, [rbx+30h]
mov dword ptr [rbx+30h], 0
xor ecx, ecx
mov [rbx+38h], rcx
mov [rbx+40h], rax
mov [rbx+48h], rax
mov [rbx+50h], rcx
lea rax, [rbx+88h]
mov [rbx+58h], rax
mov eax, 1
mov [rbx+60h], rax
xorps xmm0, xmm0
movups xmmword ptr [rbx+68h], xmm0
mov ecx, 3F800000h
mov [rbx+78h], ecx
movups xmmword ptr [rbx+80h], xmm0
lea rdx, [rbx+0C0h]
mov [rbx+90h], rdx
mov [rbx+98h], rax
movups xmmword ptr [rbx+0A0h], xmm0
mov [rbx+0B0h], ecx
movups xmmword ptr [rbx+0B8h], xmm0
movups xmmword ptr [rbx+0C8h], xmm0
movups xmmword ptr [rbx+0D8h], xmm0
movups xmmword ptr [rbx+0E8h], xmm0
lea r12, [rsp+78h+var_60]
mov [r12-10h], r12
test ebp, ebp
jz short loc_C3644
lea rsi, asc_F995D; "\" \"?"
lea rdx, asc_F995D+4; ""
lea rdi, [rsp+78h+var_70]
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPKcEEvT_S8_St20forward_iterator_tag; std::string::_M_construct<char const*>(char const*,char const*,std::forward_iterator_tag)
jmp short loc_C365F
loc_C3644:
mov rsi, cs:_ZL10SPACE_RULEB5cxx11; SPACE_RULE
mov rdx, cs:qword_132310
add rdx, rsi
lea rdi, [rsp+78h+var_70]
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPcEEvT_S7_St20forward_iterator_tag; std::string::_M_construct<char *>(char *,char *,std::forward_iterator_tag)
loc_C365F:
lea r13, [rsp+78h+var_40]
mov [r13-10h], r13
lea rsi, aSpace+7; "space"
lea rdx, aSpace+0Ch; ""
lea rdi, [rsp+78h+var_50]
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPKcEEvT_S8_St20forward_iterator_tag; std::string::_M_construct<char const*>(char const*,char const*,std::forward_iterator_tag)
lea rsi, [rsp+78h+var_50]
mov rdi, r14
call _ZNSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES5_St4lessIS5_ESaISt4pairIKS5_S5_EEEixEOS5_; std::map<std::string,std::string>::operator[](std::string&&)
lea rsi, [rsp+78h+var_70]
mov rdi, rax
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9_M_assignERKS4_; std::string::_M_assign(std::string const&)
mov rdi, [rsp+78h+var_50]; void *
cmp rdi, r13
jz short loc_C36B1
mov rsi, [rsp+78h+var_40]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_C36B1:
mov rdi, [rsp+78h+var_70]; void *
cmp rdi, r12
jz short loc_C36C8
mov rsi, [rsp+78h+var_60]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_C36C8:
add rsp, 48h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
mov r15, rax
jmp short loc_C36FB
mov r15, rax
jmp short loc_C3712
mov r15, rax
mov rdi, [rsp+arg_20]; void *
cmp rdi, r13
jz short loc_C36FB
mov rsi, [rsp+arg_30]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_C36FB:
mov rdi, [rsp+arg_0]; void *
cmp rdi, r12
jz short loc_C3712
mov rsi, [rsp+arg_10]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_C3712:
lea r12, [rbx+58h]
lea r13, [rbx+90h]
lea rbp, [rbx+0C8h]
lea rdi, [rbx+0E0h]; void *
call _ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EED2Ev; std::vector<std::string>::~vector()
mov rdi, rbp; void *
call _ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EED2Ev; std::vector<std::string>::~vector()
mov rdi, r13
call _ZNSt10_HashtableINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES5_SaIS5_ENSt8__detail9_IdentityESt8equal_toIS5_ESt4hashIS5_ENS7_18_Mod_range_hashingENS7_20_Default_ranged_hashENS7_20_Prime_rehash_policyENS7_17_Hashtable_traitsILb1ELb1ELb1EEEED2Ev; std::_Hashtable<std::string,std::string,std::allocator<std::string>,std::__detail::_Identity,std::equal_to<std::string>,std::hash<std::string>,std::__detail::_Mod_range_hashing,std::__detail::_Default_ranged_hash,std::__detail::_Prime_rehash_policy,std::__detail::_Hashtable_traits<true,true,true>>::~_Hashtable()
mov rdi, r12
call _ZNSt10_HashtableINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4pairIKS5_N8nlohmann16json_abi_v3_11_310basic_jsonINS9_11ordered_mapESt6vectorS5_blmdSaNS9_14adl_serializerESC_IhSaIhEEvEEESaISH_ENSt8__detail10_Select1stESt8equal_toIS5_ESt4hashIS5_ENSJ_18_Mod_range_hashingENSJ_20_Default_ranged_hashENSJ_20_Prime_rehash_policyENSJ_17_Hashtable_traitsILb1ELb0ELb1EEEED2Ev; std::_Hashtable<std::string,std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>,std::allocator<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>>,std::__detail::_Select1st,std::equal_to<std::string>,std::hash<std::string>,std::__detail::_Mod_range_hashing,std::__detail::_Default_ranged_hash,std::__detail::_Prime_rehash_policy,std::__detail::_Hashtable_traits<true,false,true>>::~_Hashtable()
mov rdi, r14
call _ZNSt8_Rb_treeINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4pairIKS5_S5_ESt10_Select1stIS8_ESt4lessIS5_ESaIS8_EED2Ev; std::_Rb_tree<std::string,std::pair<std::string const,std::string>,std::_Select1st<std::pair<std::string const,std::string>>,std::less<std::string>,std::allocator<std::pair<std::string const,std::string>>>::~_Rb_tree()
mov rax, [rbx+10h]
test rax, rax
jz short loc_C3766
mov rdi, rbx
mov rsi, rbx
mov edx, 3
call rax
loc_C3766:
mov rdi, r15
call __Unwind_Resume
mov rdi, rax
call __clang_call_terminate
| void SchemaConverter::SchemaConverter(long long a1, int a2, char a3, int a4)
{
long long v6; // rax
void *v7[2]; // [rsp+8h] [rbp-70h] BYREF
_QWORD v8[2]; // [rsp+18h] [rbp-60h] BYREF
void *v9[2]; // [rsp+28h] [rbp-50h] BYREF
_QWORD v10[8]; // [rsp+38h] [rbp-40h] BYREF
std::function<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> ()(std::string const&)>::function();
*(_BYTE *)(a1 + 32) = a3;
*(_DWORD *)(a1 + 48) = 0;
*(_QWORD *)(a1 + 56) = 0LL;
*(_QWORD *)(a1 + 64) = a1 + 48;
*(_QWORD *)(a1 + 72) = a1 + 48;
*(_QWORD *)(a1 + 80) = 0LL;
*(_QWORD *)(a1 + 88) = a1 + 136;
*(_QWORD *)(a1 + 96) = 1LL;
*(_OWORD *)(a1 + 104) = 0LL;
*(_DWORD *)(a1 + 120) = 1065353216;
*(_OWORD *)(a1 + 128) = 0LL;
*(_QWORD *)(a1 + 144) = a1 + 192;
*(_QWORD *)(a1 + 152) = 1LL;
*(_OWORD *)(a1 + 160) = 0LL;
*(_DWORD *)(a1 + 176) = 1065353216;
*(_OWORD *)(a1 + 184) = 0LL;
*(_OWORD *)(a1 + 200) = 0LL;
*(_OWORD *)(a1 + 216) = 0LL;
*(_OWORD *)(a1 + 232) = 0LL;
v7[0] = v8;
if ( a4 )
std::string::_M_construct<char const*>((long long)v7, "\" \"?", (long long)"");
else
std::string::_M_construct<char *>((long long)v7, (_BYTE *)SPACE_RULE[abi:cxx11], SPACE_RULE[abi:cxx11] + qword_132310);
v9[0] = v10;
std::string::_M_construct<char const*>((long long)v9, "space", (long long)"");
v6 = std::map<std::string,std::string>::operator[](a1 + 40, v9);
std::string::_M_assign(v6, v7);
if ( v9[0] != v10 )
operator delete(v9[0], v10[0] + 1LL);
if ( v7[0] != v8 )
operator delete(v7[0], v8[0] + 1LL);
}
| SchemaConverter:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x48
MOV EBP,ECX
MOV R14D,EDX
MOV RBX,RDI
CALL 0x001c3ce6
MOV byte ptr [RBX + 0x20],R14B
LEA R14,[RBX + 0x28]
LEA RAX,[RBX + 0x30]
MOV dword ptr [RBX + 0x30],0x0
XOR ECX,ECX
MOV qword ptr [RBX + 0x38],RCX
MOV qword ptr [RBX + 0x40],RAX
MOV qword ptr [RBX + 0x48],RAX
MOV qword ptr [RBX + 0x50],RCX
LEA RAX,[RBX + 0x88]
MOV qword ptr [RBX + 0x58],RAX
MOV EAX,0x1
MOV qword ptr [RBX + 0x60],RAX
XORPS XMM0,XMM0
MOVUPS xmmword ptr [RBX + 0x68],XMM0
MOV ECX,0x3f800000
MOV dword ptr [RBX + 0x78],ECX
MOVUPS xmmword ptr [RBX + 0x80],XMM0
LEA RDX,[RBX + 0xc0]
MOV qword ptr [RBX + 0x90],RDX
MOV qword ptr [RBX + 0x98],RAX
MOVUPS xmmword ptr [RBX + 0xa0],XMM0
MOV dword ptr [RBX + 0xb0],ECX
MOVUPS xmmword ptr [RBX + 0xb8],XMM0
MOVUPS xmmword ptr [RBX + 0xc8],XMM0
MOVUPS xmmword ptr [RBX + 0xd8],XMM0
MOVUPS xmmword ptr [RBX + 0xe8],XMM0
LEA R12,[RSP + 0x18]
MOV qword ptr [R12 + -0x10],R12
TEST EBP,EBP
JZ 0x001c3644
LAB_001c362a:
LEA RSI,[0x1f995d]
LEA RDX,[0x1f9961]
LEA RDI,[RSP + 0x8]
CALL 0x001289be
JMP 0x001c365f
LAB_001c3644:
MOV RSI,qword ptr [0x00232308]
MOV RDX,qword ptr [0x00232310]
ADD RDX,RSI
LEA RDI,[RSP + 0x8]
CALL 0x00128a54
LAB_001c365f:
LEA R13,[RSP + 0x38]
MOV qword ptr [R13 + -0x10],R13
LAB_001c3668:
LEA RSI,[0x1f9b80]
LEA RDX,[0x1f9b85]
LEA RDI,[RSP + 0x28]
CALL 0x001289be
LAB_001c3680:
LEA RSI,[RSP + 0x28]
MOV RDI,R14
CALL 0x001c3d44
LEA RSI,[RSP + 0x8]
MOV RDI,RAX
CALL 0x0011b4c0
MOV RDI,qword ptr [RSP + 0x28]
CMP RDI,R13
JZ 0x001c36b1
MOV RSI,qword ptr [RSP + 0x38]
INC RSI
CALL 0x0011b910
LAB_001c36b1:
MOV RDI,qword ptr [RSP + 0x8]
CMP RDI,R12
JZ 0x001c36c8
MOV RSI,qword ptr [RSP + 0x18]
INC RSI
CALL 0x0011b910
LAB_001c36c8:
ADD RSP,0x48
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
|
/* SchemaConverter::SchemaConverter(std::function<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,
std::vector, std::__cxx11::string, bool, long, unsigned long, double, std::allocator,
nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned
char> >, void> (std::__cxx11::string const&)> const&, bool, bool) */
void __thiscall
SchemaConverter::SchemaConverter(SchemaConverter *this,function *param_1,bool param_2,bool param_3)
{
string *psVar1;
int7 in_register_00000009;
long *local_70 [2];
long local_60 [2];
long *local_50 [2];
long local_40 [2];
std::
function<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>(std::__cxx11::string_const&)>
::function((function<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>(std::__cxx11::string_const&)>
*)this,param_1);
this[0x20] = (SchemaConverter)param_2;
*(int4 *)(this + 0x30) = 0;
*(int8 *)(this + 0x38) = 0;
*(SchemaConverter **)(this + 0x40) = this + 0x30;
*(SchemaConverter **)(this + 0x48) = this + 0x30;
*(int8 *)(this + 0x50) = 0;
*(SchemaConverter **)(this + 0x58) = this + 0x88;
*(int8 *)(this + 0x60) = 1;
*(int8 *)(this + 0x68) = 0;
*(int8 *)(this + 0x70) = 0;
*(int4 *)(this + 0x78) = 0x3f800000;
*(int8 *)(this + 0x80) = 0;
*(int8 *)(this + 0x88) = 0;
*(SchemaConverter **)(this + 0x90) = this + 0xc0;
*(int8 *)(this + 0x98) = 1;
*(int8 *)(this + 0xa0) = 0;
*(int8 *)(this + 0xa8) = 0;
*(int4 *)(this + 0xb0) = 0x3f800000;
*(int8 *)(this + 0xb8) = 0;
*(int8 *)(this + 0xc0) = 0;
*(int8 *)(this + 200) = 0;
*(int8 *)(this + 0xd0) = 0;
*(int8 *)(this + 0xd8) = 0;
*(int8 *)(this + 0xe0) = 0;
*(int8 *)(this + 0xe8) = 0;
*(int8 *)(this + 0xf0) = 0;
local_70[0] = local_60;
if ((int)CONCAT71(in_register_00000009,param_3) == 0) {
std::__cxx11::string::_M_construct<char*>
(local_70,SPACE_RULE_abi_cxx11_,DAT_00232310 + SPACE_RULE_abi_cxx11_);
}
else {
/* try { // try from 001c362a to 001c365e has its CatchHandler @ 001c36dc */
std::__cxx11::string::_M_construct<char_const*>(local_70,&DAT_001f995d,&DAT_001f9961);
}
/* try { // try from 001c3668 to 001c367f has its CatchHandler @ 001c36d7 */
local_50[0] = local_40;
std::__cxx11::string::_M_construct<char_const*>(local_50,"space","");
/* try { // try from 001c3680 to 001c3699 has its CatchHandler @ 001c36e1 */
psVar1 = (string *)
std::
map<std::__cxx11::string,std::__cxx11::string,std::less<std::__cxx11::string>,std::allocator<std::pair<std::__cxx11::string_const,std::__cxx11::string>>>
::operator[]((map<std::__cxx11::string,std::__cxx11::string,std::less<std::__cxx11::string>,std::allocator<std::pair<std::__cxx11::string_const,std::__cxx11::string>>>
*)(this + 0x28),(string *)local_50);
std::__cxx11::string::_M_assign(psVar1);
if (local_50[0] != local_40) {
operator_delete(local_50[0],local_40[0] + 1);
}
if (local_70[0] != local_60) {
operator_delete(local_70[0],local_60[0] + 1);
}
return;
}
| |
42,687 | testing::TestSuite::TestSuite(char const*, char const*, void (*)(), void (*)()) | seiftnesse[P]memoryallocator/build_O1/_deps/googletest-src/googletest/src/gtest.cc | TestSuite::TestSuite(const char* a_name, const char* a_type_param,
internal::SetUpTestSuiteFunc set_up_tc,
internal::TearDownTestSuiteFunc tear_down_tc)
: name_(a_name),
type_param_(a_type_param ? new std::string(a_type_param) : nullptr),
set_up_tc_(set_up_tc),
tear_down_tc_(tear_down_tc),
should_run_(false),
start_timestamp_(0),
elapsed_time_(0) {} | O1 | cpp | testing::TestSuite::TestSuite(char const*, char const*, void (*)(), void (*)()):
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x10, %rsp
movq %r8, %r14
movq %rcx, %r15
movq %rdx, %r12
movq %rdi, %rbx
leaq 0x33774(%rip), %rax # 0x58ec8
movq %rax, (%rdi)
addq $0x8, %rdi
leaq 0xf(%rsp), %rdx
callq 0x3518c
testq %r12, %r12
je 0x25798
movl $0x20, %edi
callq 0x9490
movq %rax, %r13
addq $0x10, %rax
movq %rax, (%r13)
movq %r12, %rdi
callq 0x91f0
leaq (%rax,%r12), %rdx
movq %r13, %rdi
movq %r12, %rsi
callq 0xfdfe
jmp 0x2579b
xorl %r13d, %r13d
leaq 0x28(%rbx), %r12
movq %r13, 0x28(%rbx)
leaq 0x30(%rbx), %r13
xorps %xmm0, %xmm0
movups %xmm0, 0x30(%rbx)
movups %xmm0, 0x40(%rbx)
movups %xmm0, 0x50(%rbx)
movq %r15, 0x60(%rbx)
movq %r14, 0x68(%rbx)
movb $0x0, 0x70(%rbx)
leaq 0x88(%rbx), %rdi
movups %xmm0, 0x78(%rbx)
callq 0x36db8
xorps %xmm0, %xmm0
movups %xmm0, 0xe0(%rbx)
movups %xmm0, 0xd0(%rbx)
movups %xmm0, 0xc0(%rbx)
movl $0x0, 0xf0(%rbx)
movups %xmm0, 0xf8(%rbx)
addq $0x10, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
movq %rax, %r14
movl $0x20, %esi
movq %r13, %rdi
callq 0x94c0
jmp 0x25846
movq %rax, %r14
jmp 0x25846
movq %rax, %r14
movq 0x48(%rbx), %rdi
testq %rdi, %rdi
je 0x25838
movq 0x58(%rbx), %rsi
subq %rdi, %rsi
callq 0x94c0
movq %r13, %rdi
movq %r12, %rsi
movq %rbx, %rdx
callq 0x9d69
movq 0x8(%rbx), %rdi
addq $0x18, %rbx
cmpq %rbx, %rdi
je 0x2585e
movq (%rbx), %rsi
incq %rsi
callq 0x94c0
movq %r14, %rdi
callq 0x99a0
| _ZN7testing9TestSuiteC2EPKcS2_PFvvES4_:
push r15
push r14
push r13
push r12
push rbx
sub rsp, 10h
mov r14, r8
mov r15, rcx
mov r12, rdx
mov rbx, rdi
lea rax, off_58EC8
mov [rdi], rax
add rdi, 8
lea rdx, [rsp+38h+var_29]
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_; std::string::basic_string<std::allocator<char>>(char const*,std::allocator<char> const&)
test r12, r12
jz short loc_25798
mov edi, 20h ; ' '; unsigned __int64
call __Znwm; operator new(ulong)
mov r13, rax
add rax, 10h
mov [r13+0], rax
mov rdi, r12
call _strlen
lea rdx, [rax+r12]
mov rdi, r13
mov rsi, r12
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPKcEEvT_S8_St20forward_iterator_tag; std::string::_M_construct<char const*>(char const*,char const*,std::forward_iterator_tag)
jmp short loc_2579B
loc_25798:
xor r13d, r13d
loc_2579B:
lea r12, [rbx+28h]
mov [rbx+28h], r13
lea r13, [rbx+30h]
xorps xmm0, xmm0
movups xmmword ptr [rbx+30h], xmm0
movups xmmword ptr [rbx+40h], xmm0
movups xmmword ptr [rbx+50h], xmm0
mov [rbx+60h], r15
mov [rbx+68h], r14
mov byte ptr [rbx+70h], 0
lea rdi, [rbx+88h]; this
movups xmmword ptr [rbx+78h], xmm0
call _ZN7testing8internal5MutexC2Ev; testing::internal::Mutex::Mutex(void)
xorps xmm0, xmm0
movups xmmword ptr [rbx+0E0h], xmm0
movups xmmword ptr [rbx+0D0h], xmm0
movups xmmword ptr [rbx+0C0h], xmm0
mov dword ptr [rbx+0F0h], 0
movups xmmword ptr [rbx+0F8h], xmm0
add rsp, 10h
pop rbx
pop r12
pop r13
pop r14
pop r15
retn
mov r14, rax
mov esi, 20h ; ' '; unsigned __int64
mov rdi, r13; void *
call __ZdlPvm; operator delete(void *,ulong)
jmp short loc_25846
mov r14, rax
jmp short loc_25846
mov r14, rax
mov rdi, [rbx+48h]; void *
test rdi, rdi
jz short loc_25838
mov rsi, [rbx+58h]
sub rsi, rdi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_25838:
mov rdi, r13
mov rsi, r12
mov rdx, rbx
call _ZN7testing9TestSuiteC2EPKcS2_PFvvES4__cold_1; testing::TestSuite::TestSuite(char const*,char const*,void (*)(void),void (*)(void)) [clone]
loc_25846:
mov rdi, [rbx+8]; void *
add rbx, 18h
cmp rdi, rbx
jz short loc_2585E
mov rsi, [rbx]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_2585E:
mov rdi, r14
call __Unwind_Resume
| long long testing::TestSuite::TestSuite(
testing::TestSuite *this,
const char *a2,
char *a3,
void (*a4)(void),
void (*a5)(void))
{
_QWORD *v8; // r13
long long v9; // rax
long long result; // rax
_BYTE v11[41]; // [rsp+Fh] [rbp-29h] BYREF
*(_QWORD *)this = off_58EC8;
std::string::basic_string<std::allocator<char>>((char *)this + 8, a2, v11);
if ( a3 )
{
v8 = (_QWORD *)operator new(0x20uLL);
*v8 = v8 + 2;
v9 = strlen(a3);
std::string::_M_construct<char const*>(v8, a3, (long long)&a3[v9]);
}
else
{
v8 = 0LL;
}
*((_QWORD *)this + 5) = v8;
*((_OWORD *)this + 3) = 0LL;
*((_OWORD *)this + 4) = 0LL;
*((_OWORD *)this + 5) = 0LL;
*((_QWORD *)this + 12) = a4;
*((_QWORD *)this + 13) = a5;
*((_BYTE *)this + 112) = 0;
*(_OWORD *)((char *)this + 120) = 0LL;
result = testing::internal::Mutex::Mutex((testing::TestSuite *)((char *)this + 136));
*((_OWORD *)this + 14) = 0LL;
*((_OWORD *)this + 13) = 0LL;
*((_OWORD *)this + 12) = 0LL;
*((_DWORD *)this + 60) = 0;
*(_OWORD *)((char *)this + 248) = 0LL;
return result;
}
| TestSuite:
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x10
MOV R14,R8
MOV R15,RCX
MOV R12,RDX
MOV RBX,RDI
LEA RAX,[0x158ec8]
MOV qword ptr [RDI],RAX
ADD RDI,0x8
LEA RDX,[RSP + 0xf]
CALL 0x0013518c
TEST R12,R12
JZ 0x00125798
LAB_0012576a:
MOV EDI,0x20
CALL 0x00109490
MOV R13,RAX
ADD RAX,0x10
MOV qword ptr [R13],RAX
MOV RDI,R12
CALL 0x001091f0
LEA RDX,[RAX + R12*0x1]
LAB_0012578b:
MOV RDI,R13
MOV RSI,R12
CALL 0x0010fdfe
JMP 0x0012579b
LAB_00125798:
XOR R13D,R13D
LAB_0012579b:
LEA R12,[RBX + 0x28]
MOV qword ptr [RBX + 0x28],R13
LEA R13,[RBX + 0x30]
XORPS XMM0,XMM0
MOVUPS xmmword ptr [RBX + 0x30],XMM0
MOVUPS xmmword ptr [RBX + 0x40],XMM0
MOVUPS xmmword ptr [RBX + 0x50],XMM0
MOV qword ptr [RBX + 0x60],R15
MOV qword ptr [RBX + 0x68],R14
MOV byte ptr [RBX + 0x70],0x0
LEA RDI,[RBX + 0x88]
MOVUPS xmmword ptr [RBX + 0x78],XMM0
LAB_001257cd:
CALL 0x00136db8
LAB_001257d2:
XORPS XMM0,XMM0
MOVUPS xmmword ptr [RBX + 0xe0],XMM0
MOVUPS xmmword ptr [RBX + 0xd0],XMM0
MOVUPS xmmword ptr [RBX + 0xc0],XMM0
MOV dword ptr [RBX + 0xf0],0x0
MOVUPS xmmword ptr [RBX + 0xf8],XMM0
ADD RSP,0x10
POP RBX
POP R12
POP R13
POP R14
POP R15
RET
|
/* testing::TestSuite::TestSuite(char const*, char const*, void (*)(), void (*)()) */
void __thiscall
testing::TestSuite::TestSuite
(TestSuite *this,char *param_1,char *param_2,_func_void *param_3,_func_void *param_4)
{
long *plVar1;
size_t sVar2;
allocator local_29;
*(int ***)this = &PTR__TestSuite_00158ec8;
std::__cxx11::string::string<std::allocator<char>>((string *)(this + 8),param_1,&local_29);
if (param_2 == (char *)0x0) {
plVar1 = (long *)0x0;
}
else {
/* try { // try from 0012576a to 00125773 has its CatchHandler @ 0012581b */
plVar1 = (long *)operator_new(0x20);
*plVar1 = (long)(plVar1 + 2);
sVar2 = strlen(param_2);
/* try { // try from 0012578b to 00125795 has its CatchHandler @ 00125809 */
std::__cxx11::string::_M_construct<char_const*>(plVar1,param_2,param_2 + sVar2);
}
*(long **)(this + 0x28) = plVar1;
*(int8 *)(this + 0x30) = 0;
*(int8 *)(this + 0x38) = 0;
*(int8 *)(this + 0x40) = 0;
*(int8 *)(this + 0x48) = 0;
*(int8 *)(this + 0x50) = 0;
*(int8 *)(this + 0x58) = 0;
*(_func_void **)(this + 0x60) = param_3;
*(_func_void **)(this + 0x68) = param_4;
this[0x70] = (TestSuite)0x0;
*(int8 *)(this + 0x78) = 0;
*(int8 *)(this + 0x80) = 0;
/* try { // try from 001257cd to 001257d1 has its CatchHandler @ 00125820 */
internal::Mutex::Mutex((Mutex *)(this + 0x88));
*(int8 *)(this + 0xe0) = 0;
*(int8 *)(this + 0xe8) = 0;
*(int8 *)(this + 0xd0) = 0;
*(int8 *)(this + 0xd8) = 0;
*(int8 *)(this + 0xc0) = 0;
*(int8 *)(this + 200) = 0;
*(int4 *)(this + 0xf0) = 0;
*(int8 *)(this + 0xf8) = 0;
*(int8 *)(this + 0x100) = 0;
return;
}
| |
42,688 | uf_space_endspace | eloqsql/storage/myisam/mi_packrec.c | static void uf_space_endspace(MI_COLUMNDEF *rec, MI_BIT_BUFF *bit_buff, uchar *to,
uchar *end)
{
uint spaces;
if (get_bit(bit_buff))
bfill((uchar*) to,(end-to),' ');
else
{
if ((spaces=get_bits(bit_buff,rec->space_length_bits))+to > end)
{
bit_buff->error=1;
return;
}
if (to+spaces != end)
decode_bytes(rec,bit_buff,to,end-spaces);
bfill((uchar*) end-spaces,spaces,' ');
}
} | O3 | c | uf_space_endspace:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rcx, %rbx
movq %rdx, %r14
movq %rsi, %r15
movq %rdi, %r13
movl 0x4(%rsi), %eax
testl %eax, %eax
je 0x8309e
movl (%r15), %r12d
decl %eax
movl %eax, 0x4(%r15)
btl %eax, %r12d
jae 0x830bb
subq %r14, %rbx
movq %r14, %rdi
movl $0x20, %esi
movq %rbx, %rdx
jmp 0x8316b
movq %r15, %rdi
callq 0x823cd
movl $0x1f, 0x4(%r15)
movl (%r15), %r12d
movl $0x1f, %eax
testl %r12d, %r12d
js 0x8308b
movq %r13, %rdx
movl 0x1c(%r13), %r13d
movl %eax, %ecx
subl %r13d, %ecx
movq %rdx, -0x30(%rbp)
jae 0x83107
subl %eax, %r13d
movl %eax, %eax
leaq 0x5e997(%rip), %rcx # 0xe1a70
andl (%rcx,%rax,4), %r12d
movl %r13d, %ecx
shll %cl, %r12d
movq %r15, %rdi
callq 0x823cd
movl $0x20, %eax
subl %r13d, %eax
movl %eax, 0x4(%r15)
movl (%r15), %eax
negl %r13d
movl %r13d, %ecx
shrl %cl, %eax
addl %eax, %r12d
jmp 0x8311c
movl %ecx, 0x4(%r15)
shrl %cl, %r12d
movl 0x1c(%rdx), %eax
leaq 0x5e958(%rip), %rcx # 0xe1a70
andl (%rcx,%rax,4), %r12d
movl %r12d, %r13d
leaq (%r14,%r13), %rax
cmpq %rbx, %rax
jbe 0x8313f
movl $0x1, 0x28(%r15)
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %r13, %r12
negq %r12
cmpq %rbx, %rax
je 0x8315d
leaq (%rbx,%r12), %rcx
movq -0x30(%rbp), %rdi
movq %r15, %rsi
movq %r14, %rdx
callq 0x82cbe
addq %r12, %rbx
movq %rbx, %rdi
movl $0x20, %esi
movq %r13, %rdx
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x292c0
| uf_space_endspace_0:
push rbp
mov rbp, rsp
push r15
push r14
push r13
push r12
push rbx
push rax
mov rbx, rcx
mov r14, rdx
mov r15, rsi
mov r13, rdi
mov eax, [rsi+4]
test eax, eax
jz short loc_8309E
mov r12d, [r15]
dec eax
mov [r15+4], eax
bt r12d, eax
jnb short loc_830BB
loc_8308B:
sub rbx, r14
mov rdi, r14
mov esi, 20h ; ' '
mov rdx, rbx
jmp loc_8316B
loc_8309E:
mov rdi, r15
call fill_buffer_0
mov dword ptr [r15+4], 1Fh
mov r12d, [r15]
mov eax, 1Fh
test r12d, r12d
js short loc_8308B
loc_830BB:
mov rdx, r13
mov r13d, [r13+1Ch]
mov ecx, eax
sub ecx, r13d
mov [rbp+var_30], rdx
jnb short loc_83107
sub r13d, eax
mov eax, eax
lea rcx, mask_0
and r12d, [rcx+rax*4]
mov ecx, r13d
shl r12d, cl
mov rdi, r15
call fill_buffer_0
mov eax, 20h ; ' '
sub eax, r13d
mov [r15+4], eax
mov eax, [r15]
neg r13d
mov ecx, r13d
shr eax, cl
add r12d, eax
jmp short loc_8311C
loc_83107:
mov [r15+4], ecx
shr r12d, cl
mov eax, [rdx+1Ch]
lea rcx, mask_0
and r12d, [rcx+rax*4]
loc_8311C:
mov r13d, r12d
lea rax, [r14+r13]
cmp rax, rbx
jbe short loc_8313F
mov dword ptr [r15+28h], 1
add rsp, 8
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
loc_8313F:
mov r12, r13
neg r12
cmp rax, rbx
jz short loc_8315D
lea rcx, [rbx+r12]
mov rdi, [rbp+var_30]
mov rsi, r15
mov rdx, r14
call decode_bytes_0
loc_8315D:
add rbx, r12
mov rdi, rbx
mov esi, 20h ; ' '
mov rdx, r13
loc_8316B:
add rsp, 8
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
jmp _memset
| unsigned long long uf_space_endspace_0(long long a1, unsigned int *a2, _BYTE *a3, unsigned long long a4)
{
unsigned int v6; // eax
unsigned int v7; // r12d
unsigned int v8; // eax
unsigned long long result; // rax
unsigned int v10; // r13d
unsigned int v11; // ecx
int v12; // r13d
int v13; // r12d
unsigned int v14; // r12d
v6 = a2[1];
if ( v6 )
{
v7 = *a2;
v8 = v6 - 1;
a2[1] = v8;
if ( _bittest((const int *)&v7, v8) )
return memset(a3, 32LL, a4 - (_QWORD)a3);
}
else
{
fill_buffer_0((long long)a2);
a2[1] = 31;
v7 = *a2;
v8 = 31;
if ( (*a2 & 0x80000000) != 0 )
return memset(a3, 32LL, a4 - (_QWORD)a3);
}
v10 = *(_DWORD *)(a1 + 28);
v11 = v8 - v10;
if ( v8 >= v10 )
{
a2[1] = v11;
v14 = mask_0[*(unsigned int *)(a1 + 28)] & (v7 >> v11);
}
else
{
v12 = v10 - v8;
v13 = (mask_0[v8] & v7) << v12;
fill_buffer_0((long long)a2);
a2[1] = 32 - v12;
v14 = (*a2 >> -(char)v12) + v13;
}
result = (unsigned long long)&a3[v14];
if ( result <= a4 )
{
if ( result != a4 )
decode_bytes_0(a1, (long long)a2, a3, (_BYTE *)(a4 - v14));
return memset(a4 - v14, 32LL, v14);
}
else
{
a2[10] = 1;
}
return result;
}
| uf_space_endspace:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
PUSH RAX
MOV RBX,RCX
MOV R14,RDX
MOV R15,RSI
MOV R13,RDI
MOV EAX,dword ptr [RSI + 0x4]
TEST EAX,EAX
JZ 0x0018309e
MOV R12D,dword ptr [R15]
DEC EAX
MOV dword ptr [R15 + 0x4],EAX
BT R12D,EAX
JNC 0x001830bb
LAB_0018308b:
SUB RBX,R14
MOV RDI,R14
MOV ESI,0x20
MOV RDX,RBX
JMP 0x0018316b
LAB_0018309e:
MOV RDI,R15
CALL 0x001823cd
MOV dword ptr [R15 + 0x4],0x1f
MOV R12D,dword ptr [R15]
MOV EAX,0x1f
TEST R12D,R12D
JS 0x0018308b
LAB_001830bb:
MOV RDX,R13
MOV R13D,dword ptr [R13 + 0x1c]
MOV ECX,EAX
SUB ECX,R13D
MOV qword ptr [RBP + -0x30],RDX
JNC 0x00183107
SUB R13D,EAX
MOV EAX,EAX
LEA RCX,[0x1e1a70]
AND R12D,dword ptr [RCX + RAX*0x4]
MOV ECX,R13D
SHL R12D,CL
MOV RDI,R15
CALL 0x001823cd
MOV EAX,0x20
SUB EAX,R13D
MOV dword ptr [R15 + 0x4],EAX
MOV EAX,dword ptr [R15]
NEG R13D
MOV ECX,R13D
SHR EAX,CL
ADD R12D,EAX
JMP 0x0018311c
LAB_00183107:
MOV dword ptr [R15 + 0x4],ECX
SHR R12D,CL
MOV EAX,dword ptr [RDX + 0x1c]
LEA RCX,[0x1e1a70]
AND R12D,dword ptr [RCX + RAX*0x4]
LAB_0018311c:
MOV R13D,R12D
LEA RAX,[R14 + R13*0x1]
CMP RAX,RBX
JBE 0x0018313f
MOV dword ptr [R15 + 0x28],0x1
ADD RSP,0x8
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
LAB_0018313f:
MOV R12,R13
NEG R12
CMP RAX,RBX
JZ 0x0018315d
LEA RCX,[RBX + R12*0x1]
MOV RDI,qword ptr [RBP + -0x30]
MOV RSI,R15
MOV RDX,R14
CALL 0x00182cbe
LAB_0018315d:
ADD RBX,R12
MOV RDI,RBX
MOV ESI,0x20
MOV RDX,R13
LAB_0018316b:
ADD RSP,0x8
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
JMP 0x001292c0
|
void uf_space_endspace(long param_1,uint *param_2,void *param_3,ulong param_4)
{
uint uVar1;
uint uVar2;
uint uVar3;
byte bVar4;
size_t __n;
uint uVar5;
if (param_2[1] == 0) {
fill_buffer(param_2);
param_2[1] = 0x1f;
uVar5 = *param_2;
uVar3 = 0x1f;
if (-1 < (int)uVar5) goto LAB_001830bb;
}
else {
uVar5 = *param_2;
uVar3 = param_2[1] - 1;
param_2[1] = uVar3;
if ((uVar5 >> (uVar3 & 0x1f) & 1) == 0) {
LAB_001830bb:
uVar1 = *(uint *)(param_1 + 0x1c);
if (uVar3 < uVar1) {
uVar2 = (&mask)[uVar3];
bVar4 = (byte)(uVar1 - uVar3);
fill_buffer(param_2);
param_2[1] = 0x20 - (uVar1 - uVar3);
uVar5 = ((uVar5 & uVar2) << (bVar4 & 0x1f)) + (*param_2 >> (-bVar4 & 0x1f));
}
else {
param_2[1] = uVar3 - uVar1;
uVar5 = uVar5 >> ((byte)(uVar3 - uVar1) & 0x1f) & (&mask)[*(uint *)(param_1 + 0x1c)];
}
__n = (size_t)uVar5;
if (param_4 < (long)param_3 + __n) {
param_2[10] = 1;
return;
}
if ((long)param_3 + __n != param_4) {
decode_bytes(param_1,param_2,param_3,param_4 + -__n);
}
param_3 = (void *)(param_4 + -__n);
goto LAB_0018316b;
}
}
__n = param_4 - (long)param_3;
LAB_0018316b:
memset(param_3,0x20,__n);
return;
}
| |
42,689 | DotCloud::toJson[abi:cxx11]() const | 11AgReS1SoR11[P]Graph/Common/Figures/DotCloud.cpp | std::string DotCloud::toJson() const
{
std::string json = "{\n"
"\t\"type\": \"DotCloud\","
+ Shape::toJson() + ",\n"
"\t\"property\": {\n"
"\t\t\"grid\": " + ((grid) ? "\"true\"" : "\"false\"") + ",\n"
"\t\t\"dots\": [\n";
for (size_t i = 0; i < dots.size(); ++i)
{
if (dots[i])
{
json += dots[i]->toJson();
if (i < dots.size() - 1) { json += ",\n"; }
}
}
json += "]\n}\n}";
return json;
} | O0 | cpp | DotCloud::toJson[abi:cxx11]() const:
pushq %rbp
movq %rsp, %rbp
subq $0x100, %rsp # imm = 0x100
movq %rdi, -0xf0(%rbp)
movq %rdi, %rax
movq %rax, -0xe8(%rbp)
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq -0x10(%rbp), %rsi
movq %rsi, -0xe0(%rbp)
movb $0x0, -0x11(%rbp)
leaq -0x98(%rbp), %rdi
movq %rdi, -0xd8(%rbp)
callq 0x93e0
movq -0xd8(%rbp), %rdx
leaq 0x4ab0(%rip), %rsi # 0xf164
leaq -0x78(%rbp), %rdi
callq 0x9a60
jmp 0xa6bf
leaq 0x4ab5(%rip), %rdx # 0xf17b
leaq -0x58(%rbp), %rdi
leaq -0x78(%rbp), %rsi
callq 0x9100
jmp 0xa6d5
movq -0xe0(%rbp), %rax
movb 0x78(%rax), %cl
leaq 0x4ab1(%rip), %rax # 0xf197
leaq 0x4ab1(%rip), %rdx # 0xf19e
testb $0x1, %cl
cmovneq %rax, %rdx
leaq -0x38(%rbp), %rdi
leaq -0x58(%rbp), %rsi
callq 0x9100
jmp 0xa703
movq -0xf0(%rbp), %rdi
leaq 0x4a95(%rip), %rdx # 0xf1a6
leaq -0x38(%rbp), %rsi
callq 0x9100
jmp 0xa71c
leaq -0x38(%rbp), %rdi
callq 0x93d0
leaq -0x58(%rbp), %rdi
callq 0x93d0
leaq -0x78(%rbp), %rdi
callq 0x93d0
leaq -0x98(%rbp), %rdi
callq 0x93d0
movq $0x0, -0xb0(%rbp)
movq -0xe0(%rbp), %rdi
movq -0xb0(%rbp), %rax
movq %rax, -0xf8(%rbp)
addq $0x60, %rdi
callq 0x9550
movq %rax, %rcx
movq -0xf8(%rbp), %rax
cmpq %rcx, %rax
jae 0xa904
movq -0xe0(%rbp), %rdi
addq $0x60, %rdi
movq -0xb0(%rbp), %rsi
callq 0x96c0
cmpq $0x0, (%rax)
je 0xa8eb
movq -0xe0(%rbp), %rdi
addq $0x60, %rdi
movq -0xb0(%rbp), %rsi
callq 0x96c0
movq (%rax), %rsi
movq (%rsi), %rax
movq (%rax), %rax
leaq -0xd0(%rbp), %rdi
callq *%rax
jmp 0xa7cb
movq -0xf0(%rbp), %rdi
leaq -0xd0(%rbp), %rsi
callq 0x9790
jmp 0xa7e0
leaq -0xd0(%rbp), %rdi
callq 0x93d0
movq -0xe0(%rbp), %rdi
movq -0xb0(%rbp), %rax
movq %rax, -0x100(%rbp)
addq $0x60, %rdi
callq 0x9550
movq %rax, %rcx
movq -0x100(%rbp), %rax
subq $0x1, %rcx
cmpq %rcx, %rax
jae 0xa8e9
movq -0xf0(%rbp), %rdi
leaq 0x4986(%rip), %rsi # 0xf1b5
callq 0x95b0
jmp 0xa836
jmp 0xa8e9
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0xa0(%rbp)
movl %eax, -0xa4(%rbp)
jmp 0xa8a4
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0xa0(%rbp)
movl %eax, -0xa4(%rbp)
jmp 0xa89b
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0xa0(%rbp)
movl %eax, -0xa4(%rbp)
jmp 0xa892
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0xa0(%rbp)
movl %eax, -0xa4(%rbp)
leaq -0x38(%rbp), %rdi
callq 0x93d0
leaq -0x58(%rbp), %rdi
callq 0x93d0
leaq -0x78(%rbp), %rdi
callq 0x93d0
leaq -0x98(%rbp), %rdi
callq 0x93d0
jmp 0xa94b
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0xa0(%rbp)
movl %eax, -0xa4(%rbp)
jmp 0xa93f
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0xa0(%rbp)
movl %eax, -0xa4(%rbp)
leaq -0xd0(%rbp), %rdi
callq 0x93d0
jmp 0xa93f
jmp 0xa8eb
jmp 0xa8ed
movq -0xb0(%rbp), %rax
addq $0x1, %rax
movq %rax, -0xb0(%rbp)
jmp 0xa74e
movq -0xf0(%rbp), %rdi
leaq 0x48a6(%rip), %rsi # 0xf1b8
callq 0x95b0
jmp 0xa919
movb $0x1, -0x11(%rbp)
testb $0x1, -0x11(%rbp)
jne 0xa92f
movq -0xf0(%rbp), %rdi
callq 0x93d0
movq -0xe8(%rbp), %rax
addq $0x100, %rsp # imm = 0x100
popq %rbp
retq
movq -0xf0(%rbp), %rdi
callq 0x93d0
movq -0xa0(%rbp), %rdi
callq 0x9ab0
nopw (%rax,%rax)
| _ZNK8DotCloud6toJsonB5cxx11Ev:
push rbp
mov rbp, rsp
sub rsp, 100h
mov [rbp+var_F0], rdi
mov rax, rdi
mov [rbp+var_E8], rax
mov [rbp+var_8], rdi
mov [rbp+var_10], rsi
mov rsi, [rbp+var_10]
mov [rbp+var_E0], rsi
mov [rbp+var_11], 0
lea rdi, [rbp+var_98]
mov [rbp+var_D8], rdi
call __ZNK5Shape6toJsonB5cxx11Ev; Shape::toJson(void)
mov rdx, [rbp+var_D8]
lea rsi, aTypeDotcloud; "{\n\t\"type\": \"DotCloud\","
lea rdi, [rbp+var_78]
call __ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_OS8_; std::operator+<char>(char const*,std::string&&)
jmp short $+2
loc_A6BF:
lea rdx, aPropertyGrid; ",\n\t\"property\": {\n\t\t\"grid\": "
lea rdi, [rbp+var_58]
lea rsi, [rbp+var_78]
call __ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEOS8_PKS5_; std::operator+<char>(std::string&&,char const*)
jmp short $+2
loc_A6D5:
mov rax, [rbp+var_E0]
mov cl, [rax+78h]
lea rax, aTrue; "\"true\""
lea rdx, aFalse; "\"false\""
test cl, 1
cmovnz rdx, rax
lea rdi, [rbp+var_38]
lea rsi, [rbp+var_58]
call __ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEOS8_PKS5_; std::operator+<char>(std::string&&,char const*)
jmp short $+2
loc_A703:
mov rdi, [rbp+var_F0]
lea rdx, aDots; ",\n\t\t\"dots\": [\n"
lea rsi, [rbp+var_38]
call __ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEOS8_PKS5_; std::operator+<char>(std::string&&,char const*)
jmp short $+2
loc_A71C:
lea rdi, [rbp+var_38]
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string()
lea rdi, [rbp+var_58]
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string()
lea rdi, [rbp+var_78]
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string()
lea rdi, [rbp+var_98]
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string()
mov [rbp+var_B0], 0
loc_A74E:
mov rdi, [rbp+var_E0]
mov rax, [rbp+var_B0]
mov [rbp+var_F8], rax
add rdi, 60h ; '`'
call __ZNKSt6vectorIP6CircleSaIS1_EE4sizeEv; std::vector<Circle *>::size(void)
mov rcx, rax
mov rax, [rbp+var_F8]
cmp rax, rcx
jnb loc_A904
mov rdi, [rbp+var_E0]
add rdi, 60h ; '`'
mov rsi, [rbp+var_B0]
call __ZNKSt6vectorIP6CircleSaIS1_EEixEm; std::vector<Circle *>::operator[](ulong)
cmp qword ptr [rax], 0
jz loc_A8EB
mov rdi, [rbp+var_E0]
add rdi, 60h ; '`'
mov rsi, [rbp+var_B0]
call __ZNKSt6vectorIP6CircleSaIS1_EEixEm; std::vector<Circle *>::operator[](ulong)
mov rsi, [rax]
mov rax, [rsi]
mov rax, [rax]
lea rdi, [rbp+var_D0]
call rax
jmp short $+2
loc_A7CB:
mov rdi, [rbp+var_F0]
lea rsi, [rbp+var_D0]
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEpLERKS4_; std::string::operator+=(std::string const&)
jmp short $+2
loc_A7E0:
lea rdi, [rbp+var_D0]
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string()
mov rdi, [rbp+var_E0]
mov rax, [rbp+var_B0]
mov [rbp+var_100], rax
add rdi, 60h ; '`'
call __ZNKSt6vectorIP6CircleSaIS1_EE4sizeEv; std::vector<Circle *>::size(void)
mov rcx, rax
mov rax, [rbp+var_100]
sub rcx, 1
cmp rax, rcx
jnb loc_A8E9
mov rdi, [rbp+var_F0]
lea rsi, asc_F1B5; ",\n"
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEpLEPKc; std::string::operator+=(char const*)
jmp short $+2
loc_A836:
jmp loc_A8E9
mov rcx, rax
mov eax, edx
mov [rbp+var_A0], rcx
mov [rbp+var_A4], eax
jmp short loc_A8A4
mov rcx, rax
mov eax, edx
mov [rbp+var_A0], rcx
mov [rbp+var_A4], eax
jmp short loc_A89B
mov rcx, rax
mov eax, edx
mov [rbp+var_A0], rcx
mov [rbp+var_A4], eax
jmp short loc_A892
mov rcx, rax
mov eax, edx
mov [rbp+var_A0], rcx
mov [rbp+var_A4], eax
lea rdi, [rbp+var_38]
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string()
loc_A892:
lea rdi, [rbp+var_58]
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string()
loc_A89B:
lea rdi, [rbp+var_78]
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string()
loc_A8A4:
lea rdi, [rbp+var_98]
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string()
jmp loc_A94B
mov rcx, rax
mov eax, edx
mov [rbp+var_A0], rcx
mov [rbp+var_A4], eax
jmp short loc_A93F
mov rcx, rax
mov eax, edx
mov [rbp+var_A0], rcx
mov [rbp+var_A4], eax
lea rdi, [rbp+var_D0]
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string()
jmp short loc_A93F
loc_A8E9:
jmp short $+2
loc_A8EB:
jmp short $+2
loc_A8ED:
mov rax, [rbp+var_B0]
add rax, 1
mov [rbp+var_B0], rax
jmp loc_A74E
loc_A904:
mov rdi, [rbp+var_F0]
lea rsi, asc_F1B8; "]\n}\n}"
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEpLEPKc; std::string::operator+=(char const*)
jmp short $+2
loc_A919:
mov [rbp+var_11], 1
test [rbp+var_11], 1
jnz short loc_A92F
mov rdi, [rbp+var_F0]
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string()
loc_A92F:
mov rax, [rbp+var_E8]
add rsp, 100h
pop rbp
retn
loc_A93F:
mov rdi, [rbp+var_F0]
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string()
loc_A94B:
mov rdi, [rbp+var_A0]
call __Unwind_Resume
| long long DotCloud::toJson[abi:cxx11](long long a1, long long a2)
{
const char *v2; // rdx
void ( ****v3)(_BYTE *); // rax
unsigned long long v5; // [rsp+0h] [rbp-100h]
unsigned long long v6; // [rsp+8h] [rbp-F8h]
_BYTE v7[32]; // [rsp+30h] [rbp-D0h] BYREF
unsigned long long i; // [rsp+50h] [rbp-B0h]
_BYTE v9[32]; // [rsp+68h] [rbp-98h] BYREF
_BYTE v10[32]; // [rsp+88h] [rbp-78h] BYREF
_BYTE v11[32]; // [rsp+A8h] [rbp-58h] BYREF
_BYTE v12[40]; // [rsp+C8h] [rbp-38h] BYREF
long long v13; // [rsp+F0h] [rbp-10h]
long long v14; // [rsp+F8h] [rbp-8h]
v14 = a1;
v13 = a2;
v12[39] = 0;
Shape::toJson[abi:cxx11]();
std::operator+<char>(v10, "{\n\t\"type\": \"DotCloud\",", v9);
std::operator+<char>(v11, v10, ",\n\t\"property\": {\n\t\t\"grid\": ");
v2 = "\"false\"";
if ( (*(_BYTE *)(a2 + 120) & 1) != 0 )
v2 = "\"true\"";
std::operator+<char>(v12, v11, v2);
std::operator+<char>(a1, v12, ",\n\t\t\"dots\": [\n");
std::string::~string(v12);
std::string::~string(v11);
std::string::~string(v10);
std::string::~string(v9);
for ( i = 0LL; ; ++i )
{
v6 = i;
if ( v6 >= std::vector<Circle *>::size(a2 + 96) )
break;
if ( *(_QWORD *)std::vector<Circle *>::operator[](a2 + 96, i) )
{
v3 = (void ( ****)(_BYTE *))std::vector<Circle *>::operator[](a2 + 96, i);
(***v3)(v7);
std::string::operator+=(a1, v7);
std::string::~string(v7);
v5 = i;
if ( v5 < std::vector<Circle *>::size(a2 + 96) - 1 )
std::string::operator+=(a1, ",\n");
}
}
std::string::operator+=(a1, "]\n}\n}");
return a1;
}
| toJson[abi:cxx11]:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x100
MOV qword ptr [RBP + -0xf0],RDI
MOV RAX,RDI
MOV qword ptr [RBP + -0xe8],RAX
MOV qword ptr [RBP + -0x8],RDI
MOV qword ptr [RBP + -0x10],RSI
MOV RSI,qword ptr [RBP + -0x10]
MOV qword ptr [RBP + -0xe0],RSI
MOV byte ptr [RBP + -0x11],0x0
LEA RDI,[RBP + -0x98]
MOV qword ptr [RBP + -0xd8],RDI
CALL 0x001093e0
MOV RDX,qword ptr [RBP + -0xd8]
LAB_0010a6ad:
LEA RSI,[0x10f164]
LEA RDI,[RBP + -0x78]
CALL 0x00109a60
JMP 0x0010a6bf
LAB_0010a6bf:
LEA RDX,[0x10f17b]
LEA RDI,[RBP + -0x58]
LEA RSI,[RBP + -0x78]
CALL 0x00109100
JMP 0x0010a6d5
LAB_0010a6d5:
MOV RAX,qword ptr [RBP + -0xe0]
MOV CL,byte ptr [RAX + 0x78]
LEA RAX,[0x10f197]
LEA RDX,[0x10f19e]
TEST CL,0x1
CMOVNZ RDX,RAX
LAB_0010a6f4:
LEA RDI,[RBP + -0x38]
LEA RSI,[RBP + -0x58]
CALL 0x00109100
JMP 0x0010a703
LAB_0010a703:
MOV RDI,qword ptr [RBP + -0xf0]
LEA RDX,[0x10f1a6]
LEA RSI,[RBP + -0x38]
CALL 0x00109100
JMP 0x0010a71c
LAB_0010a71c:
LEA RDI,[RBP + -0x38]
CALL 0x001093d0
LEA RDI,[RBP + -0x58]
CALL 0x001093d0
LEA RDI,[RBP + -0x78]
CALL 0x001093d0
LEA RDI,[RBP + -0x98]
CALL 0x001093d0
MOV qword ptr [RBP + -0xb0],0x0
LAB_0010a74e:
MOV RDI,qword ptr [RBP + -0xe0]
MOV RAX,qword ptr [RBP + -0xb0]
MOV qword ptr [RBP + -0xf8],RAX
ADD RDI,0x60
CALL 0x00109550
MOV RCX,RAX
MOV RAX,qword ptr [RBP + -0xf8]
CMP RAX,RCX
JNC 0x0010a904
MOV RDI,qword ptr [RBP + -0xe0]
ADD RDI,0x60
MOV RSI,qword ptr [RBP + -0xb0]
CALL 0x001096c0
CMP qword ptr [RAX],0x0
JZ 0x0010a8eb
MOV RDI,qword ptr [RBP + -0xe0]
ADD RDI,0x60
MOV RSI,qword ptr [RBP + -0xb0]
CALL 0x001096c0
MOV RSI,qword ptr [RAX]
MOV RAX,qword ptr [RSI]
MOV RAX,qword ptr [RAX]
LAB_0010a7c0:
LEA RDI,[RBP + -0xd0]
CALL RAX
JMP 0x0010a7cb
LAB_0010a7cb:
MOV RDI,qword ptr [RBP + -0xf0]
LEA RSI,[RBP + -0xd0]
CALL 0x00109790
JMP 0x0010a7e0
LAB_0010a7e0:
LEA RDI,[RBP + -0xd0]
CALL 0x001093d0
MOV RDI,qword ptr [RBP + -0xe0]
MOV RAX,qword ptr [RBP + -0xb0]
MOV qword ptr [RBP + -0x100],RAX
ADD RDI,0x60
CALL 0x00109550
MOV RCX,RAX
MOV RAX,qword ptr [RBP + -0x100]
SUB RCX,0x1
CMP RAX,RCX
JNC 0x0010a8e9
LAB_0010a821:
MOV RDI,qword ptr [RBP + -0xf0]
LEA RSI,[0x10f1b5]
CALL 0x001095b0
JMP 0x0010a836
LAB_0010a836:
JMP 0x0010a8e9
LAB_0010a8e9:
JMP 0x0010a8eb
LAB_0010a8eb:
JMP 0x0010a8ed
LAB_0010a8ed:
MOV RAX,qword ptr [RBP + -0xb0]
ADD RAX,0x1
MOV qword ptr [RBP + -0xb0],RAX
JMP 0x0010a74e
LAB_0010a904:
MOV RDI,qword ptr [RBP + -0xf0]
LEA RSI,[0x10f1b8]
CALL 0x001095b0
LAB_0010a917:
JMP 0x0010a919
LAB_0010a919:
MOV byte ptr [RBP + -0x11],0x1
TEST byte ptr [RBP + -0x11],0x1
JNZ 0x0010a92f
MOV RDI,qword ptr [RBP + -0xf0]
CALL 0x001093d0
LAB_0010a92f:
MOV RAX,qword ptr [RBP + -0xe8]
ADD RSP,0x100
POP RBP
RET
|
/* WARNING: Removing unreachable block (ram,0x0010a923) */
/* DotCloud::toJson[abi:cxx11]() const */
string * DotCloud::toJson_abi_cxx11_(void)
{
ulong uVar1;
ulong uVar2;
long *plVar3;
int8 *puVar4;
long lVar5;
long in_RSI;
string *in_RDI;
string local_d8 [32];
ulong local_b8;
string local_a0 [32];
string local_80 [32];
string local_60 [32];
string local_40 [39];
int1 local_19;
local_19 = 0;
Shape::toJson_abi_cxx11_();
/* try { // try from 0010a6ad to 0010a6bc has its CatchHandler @ 0010a83b */
std::operator+((char *)local_80,(string *)"{\n\t\"type\": \"DotCloud\",");
/* try { // try from 0010a6bf to 0010a6d2 has its CatchHandler @ 0010a84f */
std::operator+(local_60,(char *)local_80);
/* try { // try from 0010a6f4 to 0010a700 has its CatchHandler @ 0010a863 */
std::operator+(local_40,(char *)local_60);
/* try { // try from 0010a703 to 0010a719 has its CatchHandler @ 0010a877 */
std::operator+(in_RDI,(char *)local_40);
std::__cxx11::string::~string(local_40);
std::__cxx11::string::~string(local_60);
std::__cxx11::string::~string(local_80);
std::__cxx11::string::~string(local_a0);
for (local_b8 = 0; uVar1 = local_b8,
uVar2 = std::vector<Circle*,std::allocator<Circle*>>::size
((vector<Circle*,std::allocator<Circle*>> *)(in_RSI + 0x60)), uVar1 < uVar2;
local_b8 = local_b8 + 1) {
plVar3 = (long *)std::vector<Circle*,std::allocator<Circle*>>::operator[]
((vector<Circle*,std::allocator<Circle*>> *)(in_RSI + 0x60),local_b8)
;
if (*plVar3 != 0) {
puVar4 = (int8 *)
std::vector<Circle*,std::allocator<Circle*>>::operator[]
((vector<Circle*,std::allocator<Circle*>> *)(in_RSI + 0x60),local_b8);
/* try { // try from 0010a7c0 to 0010a7c8 has its CatchHandler @ 0010a8b5 */
(*(code *)**(int8 **)*puVar4)(local_d8);
/* try { // try from 0010a7cb to 0010a7dd has its CatchHandler @ 0010a8c9 */
std::__cxx11::string::operator+=(in_RDI,local_d8);
std::__cxx11::string::~string(local_d8);
uVar1 = local_b8;
lVar5 = std::vector<Circle*,std::allocator<Circle*>>::size
((vector<Circle*,std::allocator<Circle*>> *)(in_RSI + 0x60));
if (uVar1 < lVar5 - 1U) {
/* try { // try from 0010a821 to 0010a916 has its CatchHandler @ 0010a8b5 */
std::__cxx11::string::operator+=(in_RDI,",\n");
}
}
}
std::__cxx11::string::operator+=(in_RDI,"]\n}\n}");
return in_RDI;
}
| |
42,690 | DotCloud::toJson[abi:cxx11]() const | 11AgReS1SoR11[P]Graph/Common/Figures/DotCloud.cpp | std::string DotCloud::toJson() const
{
std::string json = "{\n"
"\t\"type\": \"DotCloud\","
+ Shape::toJson() + ",\n"
"\t\"property\": {\n"
"\t\t\"grid\": " + ((grid) ? "\"true\"" : "\"false\"") + ",\n"
"\t\t\"dots\": [\n";
for (size_t i = 0; i < dots.size(); ++i)
{
if (dots[i])
{
json += dots[i]->toJson();
if (i < dots.size() - 1) { json += ",\n"; }
}
}
json += "]\n}\n}";
return json;
} | O2 | cpp | DotCloud::toJson[abi:cxx11]() const:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x80, %rsp
movq %rsi, %r14
movq %rdi, %rbx
leaq 0x60(%rsp), %r15
movq %r15, %rdi
callq 0x41e0
leaq 0x267a(%rip), %rsi # 0x7164
leaq 0x20(%rsp), %rdi
movq %r15, %rdx
callq 0x4440
leaq 0x267d(%rip), %rdx # 0x717b
leaq 0x40(%rsp), %rdi
leaq 0x20(%rsp), %rsi
callq 0x4080
leaq 0x2683(%rip), %rax # 0x7197
leaq 0x2683(%rip), %rdx # 0x719e
cmpb $0x0, 0x78(%r14)
cmovneq %rax, %rdx
movq %rsp, %rdi
leaq 0x40(%rsp), %rsi
callq 0x4080
leaq 0x266e(%rip), %rdx # 0x71a6
movq %rsp, %rsi
movq %rbx, %rdi
callq 0x4080
movq %rsp, %r15
movq %r15, %rdi
callq 0x4180
leaq 0x40(%rsp), %rdi
callq 0x4180
leaq 0x20(%rsp), %rdi
callq 0x4180
leaq 0x60(%rsp), %rdi
callq 0x4180
xorl %r13d, %r13d
leaq 0x263f(%rip), %r12 # 0x71b5
movq 0x60(%r14), %rax
movq 0x68(%r14), %rcx
subq %rax, %rcx
sarq $0x3, %rcx
cmpq %rcx, %r13
jae 0x4bd2
movq (%rax,%r13,8), %rsi
testq %rsi, %rsi
je 0x4bcd
movq (%rsi), %rax
movq %r15, %rdi
callq *(%rax)
movq %rbx, %rdi
movq %r15, %rsi
callq 0x44b0
movq %r15, %rdi
callq 0x4180
movq 0x68(%r14), %rax
subq 0x60(%r14), %rax
sarq $0x3, %rax
decq %rax
cmpq %rax, %r13
jae 0x4bcd
movq %rbx, %rdi
movq %r12, %rsi
callq 0x44a0
incq %r13
jmp 0x4b76
leaq 0x25df(%rip), %rsi # 0x71b8
movq %rbx, %rdi
callq 0x44a0
movq %rbx, %rax
addq $0x80, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
jmp 0x4c2e
movq %rax, %r14
movq %rsp, %rdi
callq 0x4180
jmp 0x4c07
movq %rax, %r14
leaq 0x40(%rsp), %rdi
callq 0x4180
jmp 0x4c16
movq %rax, %r14
leaq 0x20(%rsp), %rdi
callq 0x4180
jmp 0x4c25
movq %rax, %r14
leaq 0x60(%rsp), %rdi
jmp 0x4c41
jmp 0x4c2e
movq %rax, %r14
jmp 0x4c3e
movq %rax, %r14
movq %rsp, %rdi
callq 0x4180
movq %rbx, %rdi
callq 0x4180
movq %r14, %rdi
callq 0x4460
nop
| _ZNK8DotCloud6toJsonB5cxx11Ev:
push r15
push r14
push r13
push r12
push rbx
sub rsp, 80h
mov r14, rsi
mov rbx, rdi
lea r15, [rsp+0A8h+var_48]
mov rdi, r15
call __ZNK5Shape6toJsonB5cxx11Ev; Shape::toJson(void)
lea rsi, aTypeDotcloud; "{\n\t\"type\": \"DotCloud\","
lea rdi, [rsp+0A8h+var_88]
mov rdx, r15
call __ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_OS8_; std::operator+<char>(char const*,std::string&&)
lea rdx, aPropertyGrid; ",\n\t\"property\": {\n\t\t\"grid\": "
lea rdi, [rsp+0A8h+var_68]
lea rsi, [rsp+0A8h+var_88]
call __ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEOS8_PKS5_; std::operator+<char>(std::string&&,char const*)
lea rax, aTrue; "\"true\""
lea rdx, aFalse; "\"false\""
cmp byte ptr [r14+78h], 0
cmovnz rdx, rax
mov rdi, rsp
lea rsi, [rsp+0A8h+var_68]
call __ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEOS8_PKS5_; std::operator+<char>(std::string&&,char const*)
lea rdx, aDots; ",\n\t\t\"dots\": [\n"
mov rsi, rsp
mov rdi, rbx
call __ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEOS8_PKS5_; std::operator+<char>(std::string&&,char const*)
mov r15, rsp
mov rdi, r15
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
lea rdi, [rsp+0A8h+var_68]
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
lea rdi, [rsp+0A8h+var_88]
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
lea rdi, [rsp+0A8h+var_48]
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
xor r13d, r13d
lea r12, asc_71B5; ",\n"
loc_4B76:
mov rax, [r14+60h]
mov rcx, [r14+68h]
sub rcx, rax
sar rcx, 3
cmp r13, rcx
jnb short loc_4BD2
mov rsi, [rax+r13*8]
test rsi, rsi
jz short loc_4BCD
mov rax, [rsi]
mov rdi, r15
call qword ptr [rax]
mov rdi, rbx
mov rsi, r15
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6appendERKS4_; std::string::append(std::string const&)
mov rdi, r15
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
mov rax, [r14+68h]
sub rax, [r14+60h]
sar rax, 3
dec rax
cmp r13, rax
jnb short loc_4BCD
mov rdi, rbx
mov rsi, r12
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6appendEPKc; std::string::append(char const*)
loc_4BCD:
inc r13
jmp short loc_4B76
loc_4BD2:
lea rsi, asc_71B8; "]\n}\n}"
mov rdi, rbx
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6appendEPKc; std::string::append(char const*)
mov rax, rbx
add rsp, 80h
pop rbx
pop r12
pop r13
pop r14
pop r15
retn
jmp short loc_4C2E
mov r14, rax
mov rdi, rsp
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
jmp short loc_4C07
mov r14, rax
loc_4C07:
lea rdi, [rsp+arg_38]
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
jmp short loc_4C16
mov r14, rax
loc_4C16:
lea rdi, [rsp+arg_18]
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
jmp short loc_4C25
mov r14, rax
loc_4C25:
lea rdi, [rsp+arg_58]
jmp short loc_4C41
jmp short $+2
loc_4C2E:
mov r14, rax
jmp short loc_4C3E
mov r14, rax
mov rdi, rsp
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
loc_4C3E:
mov rdi, rbx
loc_4C41:
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
mov rdi, r14
call __Unwind_Resume
| toJson[abi:cxx11]:
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x80
MOV R14,RSI
MOV RBX,RDI
LEA R15,[RSP + 0x60]
MOV RDI,R15
CALL 0x001041e0
LAB_00104ae3:
LEA RSI,[0x107164]
LEA RDI,[RSP + 0x20]
MOV RDX,R15
CALL 0x00104440
LAB_00104af7:
LEA RDX,[0x10717b]
LEA RDI,[RSP + 0x40]
LEA RSI,[RSP + 0x20]
CALL 0x00104080
LEA RAX,[0x107197]
LEA RDX,[0x10719e]
CMP byte ptr [R14 + 0x78],0x0
CMOVNZ RDX,RAX
LAB_00104b24:
MOV RDI,RSP
LEA RSI,[RSP + 0x40]
CALL 0x00104080
LAB_00104b31:
LEA RDX,[0x1071a6]
MOV RSI,RSP
MOV RDI,RBX
CALL 0x00104080
MOV R15,RSP
MOV RDI,R15
CALL 0x00104180
LEA RDI,[RSP + 0x40]
CALL 0x00104180
LEA RDI,[RSP + 0x20]
CALL 0x00104180
LEA RDI,[RSP + 0x60]
CALL 0x00104180
XOR R13D,R13D
LEA R12,[0x1071b5]
LAB_00104b76:
MOV RAX,qword ptr [R14 + 0x60]
MOV RCX,qword ptr [R14 + 0x68]
SUB RCX,RAX
SAR RCX,0x3
CMP R13,RCX
JNC 0x00104bd2
MOV RSI,qword ptr [RAX + R13*0x8]
TEST RSI,RSI
JZ 0x00104bcd
MOV RAX,qword ptr [RSI]
LAB_00104b96:
MOV RDI,R15
CALL qword ptr [RAX]
LAB_00104b9b:
MOV RDI,RBX
MOV RSI,R15
CALL 0x001044b0
MOV RDI,R15
CALL 0x00104180
MOV RAX,qword ptr [R14 + 0x68]
SUB RAX,qword ptr [R14 + 0x60]
SAR RAX,0x3
DEC RAX
CMP R13,RAX
JNC 0x00104bcd
LAB_00104bc2:
MOV RDI,RBX
MOV RSI,R12
CALL 0x001044a0
LAB_00104bcd:
INC R13
JMP 0x00104b76
LAB_00104bd2:
LEA RSI,[0x1071b8]
MOV RDI,RBX
CALL 0x001044a0
LAB_00104be1:
MOV RAX,RBX
ADD RSP,0x80
POP RBX
POP R12
POP R13
POP R14
POP R15
RET
|
/* DotCloud::toJson[abi:cxx11]() const */
void DotCloud::toJson_abi_cxx11_(void)
{
int8 *puVar1;
long in_RSI;
string *in_RDI;
ulong uVar2;
string asStack_a8 [32];
string local_88 [32];
string local_68 [32];
string local_48 [32];
Shape::toJson_abi_cxx11_();
/* try { // try from 00104ae3 to 00104af6 has its CatchHandler @ 00104c22 */
std::operator+((char *)local_88,(string *)"{\n\t\"type\": \"DotCloud\",");
/* try { // try from 00104af7 to 00104b0c has its CatchHandler @ 00104c13 */
std::operator+(local_68,(char *)local_88);
/* try { // try from 00104b24 to 00104b30 has its CatchHandler @ 00104c04 */
std::operator+(asStack_a8,(char *)local_68);
/* try { // try from 00104b31 to 00104b42 has its CatchHandler @ 00104bf7 */
std::operator+(in_RDI,(char *)asStack_a8);
std::__cxx11::string::~string(asStack_a8);
std::__cxx11::string::~string(local_68);
std::__cxx11::string::~string(local_88);
std::__cxx11::string::~string(local_48);
for (uVar2 = 0; uVar2 < (ulong)(*(long *)(in_RSI + 0x68) - *(long *)(in_RSI + 0x60) >> 3);
uVar2 = uVar2 + 1) {
puVar1 = *(int8 **)(*(long *)(in_RSI + 0x60) + uVar2 * 8);
if (puVar1 != (int8 *)0x0) {
/* try { // try from 00104b96 to 00104b9a has its CatchHandler @ 00104c2e */
(**(code **)*puVar1)(asStack_a8);
/* try { // try from 00104b9b to 00104ba5 has its CatchHandler @ 00104c33 */
std::__cxx11::string::append(in_RDI);
std::__cxx11::string::~string(asStack_a8);
if (uVar2 < (*(long *)(in_RSI + 0x68) - *(long *)(in_RSI + 0x60) >> 3) - 1U) {
/* try { // try from 00104bc2 to 00104bcc has its CatchHandler @ 00104c2c */
std::__cxx11::string::append((char *)in_RDI);
}
}
}
/* try { // try from 00104bd2 to 00104be0 has its CatchHandler @ 00104bf5 */
std::__cxx11::string::append((char *)in_RDI);
return;
}
| ||
42,691 | real_open_cached_file | eloqsql/mysys/mf_cache.c | my_bool real_open_cached_file(IO_CACHE *cache)
{
char name_buff[FN_REFLEN];
int error=1;
DBUG_ENTER("real_open_cached_file");
if ((cache->file= create_temp_file(name_buff, cache->dir,
cache->prefix[0] ? cache->prefix : 0,
O_BINARY, MYF(MY_WME | MY_TEMPORARY))) >= 0)
{
error=0;
}
DBUG_RETURN(error);
} | O0 | c | real_open_cached_file:
pushq %rbp
movq %rsp, %rbp
subq $0x240, %rsp # imm = 0x240
movq %fs:0x28, %rax
movq %rax, -0x8(%rbp)
movq %rdi, -0x218(%rbp)
movl $0x1, -0x21c(%rbp)
leaq -0x210(%rbp), %rax
movq %rax, -0x230(%rbp)
movq -0x218(%rbp), %rax
movq 0xc8(%rax), %rax
movq %rax, -0x228(%rbp)
movq -0x218(%rbp), %rax
movsbl 0xd0(%rax), %eax
cmpl $0x0, %eax
je 0x3f1f5
movq -0x218(%rbp), %rax
addq $0xd0, %rax
movq %rax, -0x238(%rbp)
jmp 0x3f200
xorl %eax, %eax
movq %rax, -0x238(%rbp)
jmp 0x3f200
movq -0x228(%rbp), %rsi
movq -0x230(%rbp), %rdi
movq -0x238(%rbp), %rdx
xorl %ecx, %ecx
movl $0x50, %r8d
callq 0x42430
movq -0x218(%rbp), %rcx
movl %eax, 0xd4(%rcx)
cmpl $0x0, %eax
jl 0x3f23e
movl $0x0, -0x21c(%rbp)
jmp 0x3f240
movl -0x21c(%rbp), %eax
movb %al, -0x239(%rbp)
movq %fs:0x28, %rax
movq -0x8(%rbp), %rcx
cmpq %rcx, %rax
jne 0x3f26d
movb -0x239(%rbp), %al
addq $0x240, %rsp # imm = 0x240
popq %rbp
retq
callq 0x25380
nopw %cs:(%rax,%rax)
| real_open_cached_file:
push rbp
mov rbp, rsp
sub rsp, 240h
mov rax, fs:28h
mov [rbp+var_8], rax
mov [rbp+var_218], rdi
mov [rbp+var_21C], 1
lea rax, [rbp+var_210]
mov [rbp+var_230], rax
mov rax, [rbp+var_218]
mov rax, [rax+0C8h]
mov [rbp+var_228], rax
mov rax, [rbp+var_218]
movsx eax, byte ptr [rax+0D0h]
cmp eax, 0
jz short loc_3F1F5
mov rax, [rbp+var_218]
add rax, 0D0h
mov [rbp+var_238], rax
jmp short loc_3F200
loc_3F1F5:
xor eax, eax
mov [rbp+var_238], rax
jmp short $+2
loc_3F200:
mov rsi, [rbp+var_228]
mov rdi, [rbp+var_230]
mov rdx, [rbp+var_238]
xor ecx, ecx
mov r8d, 50h ; 'P'
call create_temp_file
mov rcx, [rbp+var_218]
mov [rcx+0D4h], eax
cmp eax, 0
jl short loc_3F23E
mov [rbp+var_21C], 0
loc_3F23E:
jmp short $+2
loc_3F240:
mov eax, [rbp+var_21C]
mov [rbp+var_239], al
mov rax, fs:28h
mov rcx, [rbp+var_8]
cmp rax, rcx
jnz short loc_3F26D
mov al, [rbp+var_239]
add rsp, 240h
pop rbp
retn
loc_3F26D:
call ___stack_chk_fail
| char real_open_cached_file(long long a1)
{
int temp_file; // eax
long long v3; // [rsp+18h] [rbp-228h]
char v4; // [rsp+24h] [rbp-21Ch]
_BYTE v5[520]; // [rsp+30h] [rbp-210h] BYREF
unsigned long long v6; // [rsp+238h] [rbp-8h]
v6 = __readfsqword(0x28u);
v4 = 1;
v3 = *(_QWORD *)(a1 + 200);
if ( *(_BYTE *)(a1 + 208) )
temp_file = create_temp_file(v5, v3, a1 + 208, 0LL, 80LL);
else
temp_file = create_temp_file(v5, v3, 0LL, 0LL, 80LL);
*(_DWORD *)(a1 + 212) = temp_file;
if ( temp_file >= 0 )
return 0;
return v4;
}
| real_open_cached_file:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x240
MOV RAX,qword ptr FS:[0x28]
MOV qword ptr [RBP + -0x8],RAX
MOV qword ptr [RBP + -0x218],RDI
MOV dword ptr [RBP + -0x21c],0x1
LEA RAX,[RBP + -0x210]
MOV qword ptr [RBP + -0x230],RAX
MOV RAX,qword ptr [RBP + -0x218]
MOV RAX,qword ptr [RAX + 0xc8]
MOV qword ptr [RBP + -0x228],RAX
MOV RAX,qword ptr [RBP + -0x218]
MOVSX EAX,byte ptr [RAX + 0xd0]
CMP EAX,0x0
JZ 0x0013f1f5
MOV RAX,qword ptr [RBP + -0x218]
ADD RAX,0xd0
MOV qword ptr [RBP + -0x238],RAX
JMP 0x0013f200
LAB_0013f1f5:
XOR EAX,EAX
MOV qword ptr [RBP + -0x238],RAX
JMP 0x0013f200
LAB_0013f200:
MOV RSI,qword ptr [RBP + -0x228]
MOV RDI,qword ptr [RBP + -0x230]
MOV RDX,qword ptr [RBP + -0x238]
XOR ECX,ECX
MOV R8D,0x50
CALL 0x00142430
MOV RCX,qword ptr [RBP + -0x218]
MOV dword ptr [RCX + 0xd4],EAX
CMP EAX,0x0
JL 0x0013f23e
MOV dword ptr [RBP + -0x21c],0x0
LAB_0013f23e:
JMP 0x0013f240
LAB_0013f240:
MOV EAX,dword ptr [RBP + -0x21c]
MOV byte ptr [RBP + -0x239],AL
MOV RAX,qword ptr FS:[0x28]
MOV RCX,qword ptr [RBP + -0x8]
CMP RAX,RCX
JNZ 0x0013f26d
MOV AL,byte ptr [RBP + -0x239]
ADD RSP,0x240
POP RBP
RET
LAB_0013f26d:
CALL 0x00125380
|
int8 real_open_cached_file(long param_1)
{
int iVar1;
long in_FS_OFFSET;
long local_240;
int1 local_218 [520];
long local_10;
local_10 = *(long *)(in_FS_OFFSET + 0x28);
if (*(char *)(param_1 + 0xd0) == '\0') {
local_240 = 0;
}
else {
local_240 = param_1 + 0xd0;
}
iVar1 = create_temp_file(local_218,*(int8 *)(param_1 + 200),local_240,0,0x50);
*(int *)(param_1 + 0xd4) = iVar1;
if (*(long *)(in_FS_OFFSET + 0x28) == local_10) {
return CONCAT71((int7)((ulong)*(long *)(in_FS_OFFSET + 0x28) >> 8),iVar1 < 0);
}
/* WARNING: Subroutine does not return */
__stack_chk_fail();
}
| |
42,692 | real_open_cached_file | eloqsql/mysys/mf_cache.c | my_bool real_open_cached_file(IO_CACHE *cache)
{
char name_buff[FN_REFLEN];
int error=1;
DBUG_ENTER("real_open_cached_file");
if ((cache->file= create_temp_file(name_buff, cache->dir,
cache->prefix[0] ? cache->prefix : 0,
O_BINARY, MYF(MY_WME | MY_TEMPORARY))) >= 0)
{
error=0;
}
DBUG_RETURN(error);
} | O3 | c | real_open_cached_file:
pushq %rbp
movq %rsp, %rbp
pushq %rbx
subq $0x208, %rsp # imm = 0x208
movq %rdi, %rbx
movq %fs:0x28, %rax
movq %rax, -0x10(%rbp)
movq 0xc8(%rdi), %rsi
leaq 0xd0(%rdi), %rax
xorl %edx, %edx
cmpb $0x0, 0xd0(%rdi)
cmovneq %rax, %rdx
leaq -0x210(%rbp), %rdi
movl $0x50, %r8d
xorl %ecx, %ecx
callq 0x35dac
movl %eax, 0xd4(%rbx)
movq %fs:0x28, %rcx
cmpq -0x10(%rbp), %rcx
jne 0x347ef
shrl $0x1f, %eax
addq $0x208, %rsp # imm = 0x208
popq %rbx
popq %rbp
retq
callq 0x243e0
| real_open_cached_file:
push rbp
mov rbp, rsp
push rbx
sub rsp, 208h
mov rbx, rdi
mov rax, fs:28h
mov [rbp+var_10], rax
mov rsi, [rdi+0C8h]
lea rax, [rdi+0D0h]
xor edx, edx
cmp byte ptr [rdi+0D0h], 0
cmovnz rdx, rax
lea rdi, [rbp+var_210]
mov r8d, 50h ; 'P'
xor ecx, ecx
call create_temp_file
mov [rbx+0D4h], eax
mov rcx, fs:28h
cmp rcx, [rbp+var_10]
jnz short loc_347EF
shr eax, 1Fh
add rsp, 208h
pop rbx
pop rbp
retn
loc_347EF:
call ___stack_chk_fail
| long long real_open_cached_file(long long a1)
{
long long v1; // rdx
unsigned int temp_file; // eax
_BYTE v4[512]; // [rsp+0h] [rbp-210h] BYREF
unsigned long long v5; // [rsp+200h] [rbp-10h]
v5 = __readfsqword(0x28u);
v1 = 0LL;
if ( *(_BYTE *)(a1 + 208) )
v1 = a1 + 208;
temp_file = create_temp_file(v4, *(_QWORD *)(a1 + 200), v1, 0LL, 80LL);
*(_DWORD *)(a1 + 212) = temp_file;
return temp_file >> 31;
}
| real_open_cached_file:
PUSH RBP
MOV RBP,RSP
PUSH RBX
SUB RSP,0x208
MOV RBX,RDI
MOV RAX,qword ptr FS:[0x28]
MOV qword ptr [RBP + -0x10],RAX
MOV RSI,qword ptr [RDI + 0xc8]
LEA RAX,[RDI + 0xd0]
XOR EDX,EDX
CMP byte ptr [RDI + 0xd0],0x0
CMOVNZ RDX,RAX
LEA RDI,[RBP + -0x210]
MOV R8D,0x50
XOR ECX,ECX
CALL 0x00135dac
MOV dword ptr [RBX + 0xd4],EAX
MOV RCX,qword ptr FS:[0x28]
CMP RCX,qword ptr [RBP + -0x10]
JNZ 0x001347ef
SHR EAX,0x1f
ADD RSP,0x208
POP RBX
POP RBP
RET
LAB_001347ef:
CALL 0x001243e0
|
uint real_open_cached_file(long param_1)
{
uint uVar1;
long lVar2;
long in_FS_OFFSET;
int1 local_218 [512];
long local_18;
local_18 = *(long *)(in_FS_OFFSET + 0x28);
lVar2 = 0;
if (*(char *)(param_1 + 0xd0) != '\0') {
lVar2 = param_1 + 0xd0;
}
uVar1 = create_temp_file(local_218,*(int8 *)(param_1 + 200),lVar2,0,0x50);
*(uint *)(param_1 + 0xd4) = uVar1;
if (*(long *)(in_FS_OFFSET + 0x28) == local_18) {
return uVar1 >> 0x1f;
}
/* WARNING: Subroutine does not return */
__stack_chk_fail();
}
| |
42,693 | plan | eloqsql/unittest/mytap/tap.c | void
plan(int count)
{
char *config= getenv("MYTAP_CONFIG");
size_t i;
start_time= start_timer();
if (config)
skip_big_tests= strcmp(config, "big");
setvbuf(tapout, 0, _IONBF, 0); /* provide output at once */
/*
Install signal handler
*/
for (i= 0; i < sizeof(install_signal)/sizeof(*install_signal); ++i)
signal(install_signal[i].signo, install_signal[i].handler);
g_test.plan= count;
switch (count)
{
case NO_PLAN:
break;
default:
if (count > 0)
{
fprintf(tapout, "1..%d\n", count);
fflush(tapout);
}
break;
}
} | O3 | c | plan:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movl %edi, %ebx
leaq 0x2efed(%rip), %rdi # 0x5cf36
callq 0x24420
movq %rax, %r14
leaq -0x48(%rbp), %rdi
callq 0x24560
movq %rax, 0x340aef(%rip) # 0x36ea50
testq %r14, %r14
je 0x2df7b
leaq 0x325b1(%rip), %rsi # 0x6051e
movq %r14, %rdi
callq 0x24470
movl %eax, 0x2c1a3d(%rip) # 0x2ef9b8
movq 0x2c102e(%rip), %r15 # 0x2eefb0
movq (%r15), %rdi
xorl %r12d, %r12d
xorl %esi, %esi
movl $0x2, %edx
xorl %ecx, %ecx
callq 0x24050
leaq 0x2b8d43(%rip), %r13 # 0x2e6ce0
leaq 0x8e2(%rip), %r14 # 0x2e886
movl (%r12,%r13), %edi
movq %r14, %rsi
callq 0x243e0
addq $0x10, %r12
cmpq $0xb0, %r12
jne 0x2dfa4
movl %ebx, 0x3409fd(%rip) # 0x36e9c0
testl %ebx, %ebx
jle 0x2dff5
movq (%r15), %rdi
leaq 0x2ef72(%rip), %rdx # 0x5cf43
movl $0x1, %esi
movl %ebx, %ecx
xorl %eax, %eax
callq 0x24590
movq (%r15), %rdi
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x243c0
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
| plan:
push rbp
mov rbp, rsp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 28h
mov ebx, edi
lea rdi, aMytapConfig; "MYTAP_CONFIG"
call _getenv
mov r14, rax
lea rdi, [rbp+var_48]
call _times
mov cs:start_time, rax
test r14, r14
jz short loc_2DF7B
lea rsi, aUndoRecordTooB+10h; "big"
mov rdi, r14
call _strcmp
mov cs:skip_big_tests, eax
loc_2DF7B:
mov r15, cs:stdout_ptr
mov rdi, [r15]
xor r12d, r12d
xor esi, esi
mov edx, 2
xor ecx, ecx
call _setvbuf
lea r13, install_signal
lea r14, handle_core_signal
loc_2DFA4:
mov edi, [r12+r13]
mov rsi, r14
call _signal
add r12, 10h
cmp r12, 0B0h
jnz short loc_2DFA4
mov cs:g_test, ebx
test ebx, ebx
jle short loc_2DFF5
mov rdi, [r15]
lea rdx, a1D; "1..%d\n"
mov esi, 1
mov ecx, ebx
xor eax, eax
call ___fprintf_chk
mov rdi, [r15]
add rsp, 28h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
jmp _fflush
loc_2DFF5:
add rsp, 28h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
| long long plan(int a1)
{
long long v1; // r14
long long v2; // r12
long long result; // rax
_BYTE v4[72]; // [rsp+8h] [rbp-48h] BYREF
v1 = getenv("MYTAP_CONFIG");
start_time = times(v4);
if ( v1 )
skip_big_tests = strcmp(v1, "big");
v2 = 0LL;
setvbuf(stdout, 0LL, 2LL, 0LL);
do
{
result = signal(*(unsigned int *)((char *)&install_signal + v2), handle_core_signal);
v2 += 16LL;
}
while ( v2 != 176 );
g_test = a1;
if ( a1 > 0 )
{
__fprintf_chk(stdout, 1LL, "1..%d\n", a1);
return fflush(stdout);
}
return result;
}
| plan:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x28
MOV EBX,EDI
LEA RDI,[0x15cf36]
CALL 0x00124420
MOV R14,RAX
LEA RDI,[RBP + -0x48]
CALL 0x00124560
MOV qword ptr [0x0046ea50],RAX
TEST R14,R14
JZ 0x0012df7b
LEA RSI,[0x16051e]
MOV RDI,R14
CALL 0x00124470
MOV dword ptr [0x003ef9b8],EAX
LAB_0012df7b:
MOV R15,qword ptr [0x003eefb0]
MOV RDI,qword ptr [R15]
XOR R12D,R12D
XOR ESI,ESI
MOV EDX,0x2
XOR ECX,ECX
CALL 0x00124050
LEA R13,[0x3e6ce0]
LEA R14,[0x12e886]
LAB_0012dfa4:
MOV EDI,dword ptr [R12 + R13*0x1]
MOV RSI,R14
CALL 0x001243e0
ADD R12,0x10
CMP R12,0xb0
JNZ 0x0012dfa4
MOV dword ptr [0x0046e9c0],EBX
TEST EBX,EBX
JLE 0x0012dff5
MOV RDI,qword ptr [R15]
LEA RDX,[0x15cf43]
MOV ESI,0x1
MOV ECX,EBX
XOR EAX,EAX
CALL 0x00124590
MOV RDI,qword ptr [R15]
ADD RSP,0x28
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
JMP 0x001243c0
LAB_0012dff5:
ADD RSP,0x28
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
|
void plan(int param_1)
{
int *puVar1;
char *__s1;
long lVar2;
tms local_50;
__s1 = getenv("MYTAP_CONFIG");
start_time = times(&local_50);
if (__s1 != (char *)0x0) {
skip_big_tests = strcmp(__s1,"big");
}
puVar1 = PTR_stdout_003eefb0;
lVar2 = 0;
setvbuf(*(FILE **)PTR_stdout_003eefb0,(char *)0x0,2,0);
do {
signal(*(int *)((long)&install_signal + lVar2),handle_core_signal);
lVar2 = lVar2 + 0x10;
} while (lVar2 != 0xb0);
g_test = param_1;
if (0 < param_1) {
__fprintf_chk(*(int8 *)puVar1,1,"1..%d\n",param_1);
fflush(*(FILE **)puVar1);
return;
}
return;
}
| |
42,694 | js_string_concat | bluesky950520[P]quickjs/quickjs.c | static JSValue js_string_concat(JSContext *ctx, JSValue this_val,
int argc, JSValue *argv)
{
JSValue r;
int i;
/* XXX: Use more efficient method */
/* XXX: This method is OK if r has a single refcount */
/* XXX: should use string_buffer? */
r = JS_ToStringCheckObject(ctx, this_val);
for (i = 0; i < argc; i++) {
if (JS_IsException(r))
break;
r = JS_ConcatString(ctx, r, js_dup(argv[i]));
}
return r;
} | O0 | c | js_string_concat:
subq $0x78, %rsp
movq %rsi, 0x58(%rsp)
movq %rdx, 0x60(%rsp)
movq %rdi, 0x50(%rsp)
movl %ecx, 0x4c(%rsp)
movq %r8, 0x40(%rsp)
movq 0x50(%rsp), %rdi
movq 0x58(%rsp), %rsi
movq 0x60(%rsp), %rdx
callq 0x76ac0
movq %rax, 0x28(%rsp)
movq %rdx, 0x30(%rsp)
movq 0x28(%rsp), %rax
movq %rax, 0x68(%rsp)
movq 0x30(%rsp), %rax
movq %rax, 0x70(%rsp)
movl $0x0, 0x3c(%rsp)
movl 0x3c(%rsp), %eax
cmpl 0x4c(%rsp), %eax
jge 0xd96e5
movq 0x68(%rsp), %rdi
movq 0x70(%rsp), %rsi
callq 0x29fb0
cmpl $0x0, %eax
je 0xd966a
jmp 0xd96e5
movq 0x50(%rsp), %rax
movq %rax, (%rsp)
movq 0x40(%rsp), %rax
movslq 0x3c(%rsp), %rcx
shlq $0x4, %rcx
addq %rcx, %rax
movq (%rax), %rdi
movq 0x8(%rax), %rsi
callq 0x279c0
movq (%rsp), %rdi
movq %rax, 0x8(%rsp)
movq %rdx, 0x10(%rsp)
movq 0x68(%rsp), %rsi
movq 0x70(%rsp), %rdx
movq 0x8(%rsp), %rcx
movq 0x10(%rsp), %r8
callq 0x70e80
movq %rax, 0x18(%rsp)
movq %rdx, 0x20(%rsp)
movq 0x18(%rsp), %rax
movq %rax, 0x68(%rsp)
movq 0x20(%rsp), %rax
movq %rax, 0x70(%rsp)
movl 0x3c(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x3c(%rsp)
jmp 0xd9646
movq 0x68(%rsp), %rax
movq 0x70(%rsp), %rdx
addq $0x78, %rsp
retq
nopw %cs:(%rax,%rax)
| js_string_concat:
sub rsp, 78h
mov [rsp+78h+var_20], rsi
mov [rsp+78h+var_18], rdx
mov [rsp+78h+var_28], rdi
mov [rsp+78h+var_2C], ecx
mov [rsp+78h+var_38], r8
mov rdi, [rsp+78h+var_28]
mov rsi, [rsp+78h+var_20]
mov rdx, [rsp+78h+var_18]
call JS_ToStringCheckObject
mov [rsp+78h+var_50], rax
mov [rsp+78h+var_48], rdx
mov rax, [rsp+78h+var_50]
mov [rsp+78h+var_10], rax
mov rax, [rsp+78h+var_48]
mov [rsp+78h+var_8], rax
mov [rsp+78h+var_3C], 0
loc_D9646:
mov eax, [rsp+78h+var_3C]
cmp eax, [rsp+78h+var_2C]
jge loc_D96E5
mov rdi, [rsp+78h+var_10]
mov rsi, [rsp+78h+var_8]
call JS_IsException_1
cmp eax, 0
jz short loc_D966A
jmp short loc_D96E5
loc_D966A:
mov rax, [rsp+78h+var_28]
mov [rsp+78h+var_78], rax
mov rax, [rsp+78h+var_38]
movsxd rcx, [rsp+78h+var_3C]
shl rcx, 4
add rax, rcx
mov rdi, [rax]
mov rsi, [rax+8]
call js_dup
mov rdi, [rsp+78h+var_78]
mov [rsp+78h+var_70], rax
mov [rsp+78h+var_68], rdx
mov rsi, [rsp+78h+var_10]
mov rdx, [rsp+78h+var_8]
mov rcx, [rsp+78h+var_70]
mov r8, [rsp+78h+var_68]
call JS_ConcatString
mov [rsp+78h+var_60], rax
mov [rsp+78h+var_58], rdx
mov rax, [rsp+78h+var_60]
mov [rsp+78h+var_10], rax
mov rax, [rsp+78h+var_58]
mov [rsp+78h+var_8], rax
mov eax, [rsp+78h+var_3C]
add eax, 1
mov [rsp+78h+var_3C], eax
jmp loc_D9646
loc_D96E5:
mov rax, [rsp+78h+var_10]
mov rdx, [rsp+78h+var_8]
add rsp, 78h
retn
| long long js_string_concat(
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)
{
long long v14; // rdx
long long v15; // rdx
long long v16; // r9
long long v17; // rdx
_DWORD *v19; // [rsp+8h] [rbp-70h]
int i; // [rsp+3Ch] [rbp-3Ch]
int v22; // [rsp+4Ch] [rbp-2Ch]
long long v23; // [rsp+68h] [rbp-10h]
long long v24; // [rsp+70h] [rbp-8h]
v22 = a4;
v23 = JS_ToStringCheckObject(a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11, a12, a13, a14);
v24 = v14;
for ( i = 0; i < v22 && !JS_IsException_1(v23, v24); ++i )
{
v19 = js_dup(*(_DWORD **)(16LL * i + a5), *(_QWORD *)(16LL * i + a5 + 8));
v23 = JS_ConcatString(a1, v23, v24, (long long)v19, v15, v16);
v24 = v17;
}
return v23;
}
| js_string_concat:
SUB RSP,0x78
MOV qword ptr [RSP + 0x58],RSI
MOV qword ptr [RSP + 0x60],RDX
MOV qword ptr [RSP + 0x50],RDI
MOV dword ptr [RSP + 0x4c],ECX
MOV qword ptr [RSP + 0x40],R8
MOV RDI,qword ptr [RSP + 0x50]
MOV RSI,qword ptr [RSP + 0x58]
MOV RDX,qword ptr [RSP + 0x60]
CALL 0x00176ac0
MOV qword ptr [RSP + 0x28],RAX
MOV qword ptr [RSP + 0x30],RDX
MOV RAX,qword ptr [RSP + 0x28]
MOV qword ptr [RSP + 0x68],RAX
MOV RAX,qword ptr [RSP + 0x30]
MOV qword ptr [RSP + 0x70],RAX
MOV dword ptr [RSP + 0x3c],0x0
LAB_001d9646:
MOV EAX,dword ptr [RSP + 0x3c]
CMP EAX,dword ptr [RSP + 0x4c]
JGE 0x001d96e5
MOV RDI,qword ptr [RSP + 0x68]
MOV RSI,qword ptr [RSP + 0x70]
CALL 0x00129fb0
CMP EAX,0x0
JZ 0x001d966a
JMP 0x001d96e5
LAB_001d966a:
MOV RAX,qword ptr [RSP + 0x50]
MOV qword ptr [RSP],RAX
MOV RAX,qword ptr [RSP + 0x40]
MOVSXD RCX,dword ptr [RSP + 0x3c]
SHL RCX,0x4
ADD RAX,RCX
MOV RDI,qword ptr [RAX]
MOV RSI,qword ptr [RAX + 0x8]
CALL 0x001279c0
MOV RDI,qword ptr [RSP]
MOV qword ptr [RSP + 0x8],RAX
MOV qword ptr [RSP + 0x10],RDX
MOV RSI,qword ptr [RSP + 0x68]
MOV RDX,qword ptr [RSP + 0x70]
MOV RCX,qword ptr [RSP + 0x8]
MOV R8,qword ptr [RSP + 0x10]
CALL 0x00170e80
MOV qword ptr [RSP + 0x18],RAX
MOV qword ptr [RSP + 0x20],RDX
MOV RAX,qword ptr [RSP + 0x18]
MOV qword ptr [RSP + 0x68],RAX
MOV RAX,qword ptr [RSP + 0x20]
MOV qword ptr [RSP + 0x70],RAX
MOV EAX,dword ptr [RSP + 0x3c]
ADD EAX,0x1
MOV dword ptr [RSP + 0x3c],EAX
JMP 0x001d9646
LAB_001d96e5:
MOV RAX,qword ptr [RSP + 0x68]
MOV RDX,qword ptr [RSP + 0x70]
ADD RSP,0x78
RET
|
int1 [16]
js_string_concat(int8 param_1,int8 param_2,int8 param_3,int param_4,long param_5)
{
int iVar1;
int8 *puVar2;
int1 auVar3 [16];
int local_3c;
int8 local_10;
int8 local_8;
auVar3 = JS_ToStringCheckObject(param_1,param_2,param_3);
local_3c = 0;
while( true ) {
local_8 = auVar3._8_8_;
local_10 = auVar3._0_8_;
if ((param_4 <= local_3c) || (iVar1 = JS_IsException(local_10,local_8), iVar1 != 0)) break;
puVar2 = (int8 *)(param_5 + (long)local_3c * 0x10);
auVar3 = js_dup(*puVar2,puVar2[1]);
auVar3 = JS_ConcatString(param_1,local_10,local_8,auVar3._0_8_,auVar3._8_8_);
local_3c = local_3c + 1;
}
return auVar3;
}
| |
42,695 | my_strnxfrm_uca_pad | eloqsql/strings/ctype-uca.c | static uchar *
my_strnxfrm_uca_pad(uchar *dst, uchar *de, int weight)
{
for ( ; dst < de; )
{
*dst++= weight >> 8;
if (dst < de)
*dst++= weight & 0xFF;
}
return dst;
} | O0 | c | my_strnxfrm_uca_pad:
pushq %rbp
movq %rsp, %rbp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movl %edx, -0x14(%rbp)
movq -0x8(%rbp), %rax
cmpq -0x10(%rbp), %rax
jae 0x52369
movl -0x14(%rbp), %eax
sarl $0x8, %eax
movb %al, %cl
movq -0x8(%rbp), %rax
movq %rax, %rdx
addq $0x1, %rdx
movq %rdx, -0x8(%rbp)
movb %cl, (%rax)
movq -0x8(%rbp), %rax
cmpq -0x10(%rbp), %rax
jae 0x52367
movl -0x14(%rbp), %eax
andl $0xff, %eax
movb %al, %cl
movq -0x8(%rbp), %rax
movq %rax, %rdx
addq $0x1, %rdx
movq %rdx, -0x8(%rbp)
movb %cl, (%rax)
jmp 0x5231f
movq -0x8(%rbp), %rax
popq %rbp
retq
nop
| my_strnxfrm_uca_pad:
push rbp
mov rbp, rsp
mov [rbp+var_8], rdi
mov [rbp+var_10], rsi
mov [rbp+var_14], edx
loc_5231F:
mov rax, [rbp+var_8]
cmp rax, [rbp+var_10]
jnb short loc_52369
mov eax, [rbp+var_14]
sar eax, 8
mov cl, al
mov rax, [rbp+var_8]
mov rdx, rax
add rdx, 1
mov [rbp+var_8], rdx
mov [rax], cl
mov rax, [rbp+var_8]
cmp rax, [rbp+var_10]
jnb short loc_52367
mov eax, [rbp+var_14]
and eax, 0FFh
mov cl, al
mov rax, [rbp+var_8]
mov rdx, rax
add rdx, 1
mov [rbp+var_8], rdx
mov [rax], cl
loc_52367:
jmp short loc_5231F
loc_52369:
mov rax, [rbp+var_8]
pop rbp
retn
| _BYTE * my_strnxfrm_uca_pad(_BYTE *a1, unsigned long long a2, __int16 a3)
{
_BYTE *v3; // rax
_BYTE *v4; // rax
while ( (unsigned long long)a1 < a2 )
{
v3 = a1++;
*v3 = HIBYTE(a3);
if ( (unsigned long long)a1 < a2 )
{
v4 = a1++;
*v4 = a3;
}
}
return a1;
}
| my_strnxfrm_uca_pad:
PUSH RBP
MOV RBP,RSP
MOV qword ptr [RBP + -0x8],RDI
MOV qword ptr [RBP + -0x10],RSI
MOV dword ptr [RBP + -0x14],EDX
LAB_0015231f:
MOV RAX,qword ptr [RBP + -0x8]
CMP RAX,qword ptr [RBP + -0x10]
JNC 0x00152369
MOV EAX,dword ptr [RBP + -0x14]
SAR EAX,0x8
MOV CL,AL
MOV RAX,qword ptr [RBP + -0x8]
MOV RDX,RAX
ADD RDX,0x1
MOV qword ptr [RBP + -0x8],RDX
MOV byte ptr [RAX],CL
MOV RAX,qword ptr [RBP + -0x8]
CMP RAX,qword ptr [RBP + -0x10]
JNC 0x00152367
MOV EAX,dword ptr [RBP + -0x14]
AND EAX,0xff
MOV CL,AL
MOV RAX,qword ptr [RBP + -0x8]
MOV RDX,RAX
ADD RDX,0x1
MOV qword ptr [RBP + -0x8],RDX
MOV byte ptr [RAX],CL
LAB_00152367:
JMP 0x0015231f
LAB_00152369:
MOV RAX,qword ptr [RBP + -0x8]
POP RBP
RET
|
int1 * my_strnxfrm_uca_pad(int1 *param_1,int1 *param_2,int4 param_3)
{
int1 *puVar1;
int1 *local_10;
puVar1 = param_1;
while (local_10 = puVar1, local_10 < param_2) {
puVar1 = local_10 + 1;
*local_10 = (char)((uint)param_3 >> 8);
if (puVar1 < param_2) {
*puVar1 = (char)param_3;
puVar1 = local_10 + 2;
}
}
return local_10;
}
| |
42,696 | MNN::Convolution3DCommonT::Convolution3DCommonT() | mnn-tts/MNN/schema/current/CaffeOp_generated.h | Convolution3DCommonT()
: padMode(PadMode_CAFFE),
inputCount(0),
outputCount(0),
relu(false),
relu6(false),
group(1),
hasOutputShape(false) {
} | O0 | c | MNN::Convolution3DCommonT::Convolution3DCommonT():
subq $0x18, %rsp
movq %rdi, 0x10(%rsp)
movq 0x10(%rsp), %rdi
movq %rdi, 0x8(%rsp)
callq 0x63a00
movq 0x8(%rsp), %rdi
addq $0x18, %rdi
callq 0x63a00
movq 0x8(%rsp), %rdi
addq $0x30, %rdi
callq 0x63a00
movq 0x8(%rsp), %rdi
addq $0x48, %rdi
callq 0x63a00
movq 0x8(%rsp), %rdi
movl $0x0, 0x60(%rdi)
movl $0x0, 0x64(%rdi)
movl $0x0, 0x68(%rdi)
movb $0x0, 0x6c(%rdi)
movb $0x0, 0x6d(%rdi)
movl $0x1, 0x70(%rdi)
addq $0x78, %rdi
callq 0x63a00
movq 0x8(%rsp), %rax
movb $0x0, 0x90(%rax)
addq $0x18, %rsp
retq
nopw %cs:(%rax,%rax)
nop
| _ZN3MNN20Convolution3DCommonTC2Ev:
sub rsp, 18h
mov [rsp+18h+var_8], rdi
mov rdi, [rsp+18h+var_8]
mov [rsp+18h+var_10], rdi
call _ZNSt3__16vectorIiNS_9allocatorIiEEEC2B8nn200100Ev; std::vector<int>::vector(void)
mov rdi, [rsp+18h+var_10]
add rdi, 18h
call _ZNSt3__16vectorIiNS_9allocatorIiEEEC2B8nn200100Ev; std::vector<int>::vector(void)
mov rdi, [rsp+18h+var_10]
add rdi, 30h ; '0'
call _ZNSt3__16vectorIiNS_9allocatorIiEEEC2B8nn200100Ev; std::vector<int>::vector(void)
mov rdi, [rsp+18h+var_10]
add rdi, 48h ; 'H'
call _ZNSt3__16vectorIiNS_9allocatorIiEEEC2B8nn200100Ev; std::vector<int>::vector(void)
mov rdi, [rsp+18h+var_10]
mov dword ptr [rdi+60h], 0
mov dword ptr [rdi+64h], 0
mov dword ptr [rdi+68h], 0
mov byte ptr [rdi+6Ch], 0
mov byte ptr [rdi+6Dh], 0
mov dword ptr [rdi+70h], 1
add rdi, 78h ; 'x'
call _ZNSt3__16vectorIiNS_9allocatorIiEEEC2B8nn200100Ev; std::vector<int>::vector(void)
mov rax, [rsp+18h+var_10]
mov byte ptr [rax+90h], 0
add rsp, 18h
retn
| MNN::Convolution3DCommonT * MNN::Convolution3DCommonT::Convolution3DCommonT(MNN::Convolution3DCommonT *this)
{
MNN::Convolution3DCommonT *result; // rax
std::vector<int>::vector[abi:nn200100](this);
std::vector<int>::vector[abi:nn200100]((_QWORD *)this + 3);
std::vector<int>::vector[abi:nn200100]((_QWORD *)this + 6);
std::vector<int>::vector[abi:nn200100]((_QWORD *)this + 9);
*((_DWORD *)this + 24) = 0;
*((_DWORD *)this + 25) = 0;
*((_DWORD *)this + 26) = 0;
*((_BYTE *)this + 108) = 0;
*((_BYTE *)this + 109) = 0;
*((_DWORD *)this + 28) = 1;
std::vector<int>::vector[abi:nn200100]((_QWORD *)this + 15);
result = this;
*((_BYTE *)this + 144) = 0;
return result;
}
| Convolution3DCommonT:
SUB RSP,0x18
MOV qword ptr [RSP + 0x10],RDI
MOV RDI,qword ptr [RSP + 0x10]
MOV qword ptr [RSP + 0x8],RDI
CALL 0x00163a00
MOV RDI,qword ptr [RSP + 0x8]
ADD RDI,0x18
CALL 0x00163a00
MOV RDI,qword ptr [RSP + 0x8]
ADD RDI,0x30
CALL 0x00163a00
MOV RDI,qword ptr [RSP + 0x8]
ADD RDI,0x48
CALL 0x00163a00
MOV RDI,qword ptr [RSP + 0x8]
MOV dword ptr [RDI + 0x60],0x0
MOV dword ptr [RDI + 0x64],0x0
MOV dword ptr [RDI + 0x68],0x0
MOV byte ptr [RDI + 0x6c],0x0
MOV byte ptr [RDI + 0x6d],0x0
MOV dword ptr [RDI + 0x70],0x1
ADD RDI,0x78
CALL 0x00163a00
MOV RAX,qword ptr [RSP + 0x8]
MOV byte ptr [RAX + 0x90],0x0
ADD RSP,0x18
RET
|
/* MNN::Convolution3DCommonT::Convolution3DCommonT() */
void __thiscall MNN::Convolution3DCommonT::Convolution3DCommonT(Convolution3DCommonT *this)
{
std::vector<int,std::allocator<int>>::vector_abi_nn200100_
((vector<int,std::allocator<int>> *)this);
std::vector<int,std::allocator<int>>::vector_abi_nn200100_
((vector<int,std::allocator<int>> *)(this + 0x18));
std::vector<int,std::allocator<int>>::vector_abi_nn200100_
((vector<int,std::allocator<int>> *)(this + 0x30));
std::vector<int,std::allocator<int>>::vector_abi_nn200100_
((vector<int,std::allocator<int>> *)(this + 0x48));
*(int4 *)(this + 0x60) = 0;
*(int4 *)(this + 100) = 0;
*(int4 *)(this + 0x68) = 0;
this[0x6c] = (Convolution3DCommonT)0x0;
this[0x6d] = (Convolution3DCommonT)0x0;
*(int4 *)(this + 0x70) = 1;
std::vector<int,std::allocator<int>>::vector_abi_nn200100_
((vector<int,std::allocator<int>> *)(this + 0x78));
this[0x90] = (Convolution3DCommonT)0x0;
return;
}
| |
42,697 | mi_ft_segiterator_dummy_init | eloqsql/storage/myisam/ft_update.c | void _mi_ft_segiterator_dummy_init(const uchar *record, uint len,
FT_SEG_ITERATOR *ftsi)
{
DBUG_ENTER("_mi_ft_segiterator_dummy_init");
ftsi->num=1;
ftsi->seg=0;
ftsi->pos=record;
ftsi->len=len;
DBUG_VOID_RETURN;
} | O0 | c | mi_ft_segiterator_dummy_init:
pushq %rbp
movq %rsp, %rbp
movq %rdi, -0x8(%rbp)
movl %esi, -0xc(%rbp)
movq %rdx, -0x18(%rbp)
movq -0x18(%rbp), %rax
movl $0x1, (%rax)
movq -0x18(%rbp), %rax
movq $0x0, 0x8(%rax)
movq -0x8(%rbp), %rcx
movq -0x18(%rbp), %rax
movq %rcx, 0x18(%rax)
movl -0xc(%rbp), %ecx
movq -0x18(%rbp), %rax
movl %ecx, 0x4(%rax)
jmp 0xa290d
popq %rbp
retq
nop
| _mi_ft_segiterator_dummy_init:
push rbp
mov rbp, rsp
mov [rbp+var_8], rdi
mov [rbp+var_C], esi
mov [rbp+var_18], rdx
mov rax, [rbp+var_18]
mov dword ptr [rax], 1
mov rax, [rbp+var_18]
mov qword ptr [rax+8], 0
mov rcx, [rbp+var_8]
mov rax, [rbp+var_18]
mov [rax+18h], rcx
mov ecx, [rbp+var_C]
mov rax, [rbp+var_18]
mov [rax+4], ecx
jmp short $+2
loc_A290D:
pop rbp
retn
| long long mi_ft_segiterator_dummy_init(long long a1, int a2, long long a3)
{
long long result; // rax
*(_DWORD *)a3 = 1;
*(_QWORD *)(a3 + 8) = 0LL;
*(_QWORD *)(a3 + 24) = a1;
result = a3;
*(_DWORD *)(a3 + 4) = a2;
return result;
}
| _mi_ft_segiterator_dummy_init:
PUSH RBP
MOV RBP,RSP
MOV qword ptr [RBP + -0x8],RDI
MOV dword ptr [RBP + -0xc],ESI
MOV qword ptr [RBP + -0x18],RDX
MOV RAX,qword ptr [RBP + -0x18]
MOV dword ptr [RAX],0x1
MOV RAX,qword ptr [RBP + -0x18]
MOV qword ptr [RAX + 0x8],0x0
MOV RCX,qword ptr [RBP + -0x8]
MOV RAX,qword ptr [RBP + -0x18]
MOV qword ptr [RAX + 0x18],RCX
MOV ECX,dword ptr [RBP + -0xc]
MOV RAX,qword ptr [RBP + -0x18]
MOV dword ptr [RAX + 0x4],ECX
JMP 0x001a290d
LAB_001a290d:
POP RBP
RET
|
void _mi_ft_segiterator_dummy_init(int8 param_1,int4 param_2,int4 *param_3)
{
*param_3 = 1;
*(int8 *)(param_3 + 2) = 0;
*(int8 *)(param_3 + 6) = param_1;
param_3[1] = param_2;
return;
}
| |
42,698 | mi_ft_segiterator_dummy_init | eloqsql/storage/myisam/ft_update.c | void _mi_ft_segiterator_dummy_init(const uchar *record, uint len,
FT_SEG_ITERATOR *ftsi)
{
DBUG_ENTER("_mi_ft_segiterator_dummy_init");
ftsi->num=1;
ftsi->seg=0;
ftsi->pos=record;
ftsi->len=len;
DBUG_VOID_RETURN;
} | O3 | c | mi_ft_segiterator_dummy_init:
pushq %rbp
movq %rsp, %rbp
movl $0x1, (%rdx)
movq $0x0, 0x8(%rdx)
movq %rdi, 0x18(%rdx)
movl %esi, 0x4(%rdx)
popq %rbp
retq
| _mi_ft_segiterator_dummy_init:
push rbp
mov rbp, rsp
mov dword ptr [rdx], 1
mov qword ptr [rdx+8], 0
mov [rdx+18h], rdi
mov [rdx+4], esi
pop rbp
retn
| void mi_ft_segiterator_dummy_init(long long a1, int a2, long long a3)
{
*(_DWORD *)a3 = 1;
*(_QWORD *)(a3 + 8) = 0LL;
*(_QWORD *)(a3 + 24) = a1;
*(_DWORD *)(a3 + 4) = a2;
}
| _mi_ft_segiterator_dummy_init:
PUSH RBP
MOV RBP,RSP
MOV dword ptr [RDX],0x1
MOV qword ptr [RDX + 0x8],0x0
MOV qword ptr [RDX + 0x18],RDI
MOV dword ptr [RDX + 0x4],ESI
POP RBP
RET
|
void _mi_ft_segiterator_dummy_init(int8 param_1,int4 param_2,int4 *param_3)
{
*param_3 = 1;
*(int8 *)(param_3 + 2) = 0;
*(int8 *)(param_3 + 6) = param_1;
param_3[1] = param_2;
return;
}
| |
42,699 | bf_sincos | bluesky950520[P]quickjs/libbf.c | static int bf_sincos(bf_t *s, bf_t *c, const bf_t *a, limb_t prec)
{
bf_context_t *s1 = a->ctx;
bf_t T_s, *T = &T_s;
bf_t U_s, *U = &U_s;
bf_t r_s, *r = &r_s;
slimb_t K, prec1, i, l, mod, prec2;
int is_neg;
assert(c != a && s != a);
bf_init(s1, T);
bf_init(s1, U);
bf_init(s1, r);
/* XXX: precision analysis */
K = bf_isqrt(prec / 2);
l = prec / (2 * K) + 1;
prec1 = prec + 2 * K + l + 8;
/* after the modulo reduction, -pi/4 <= T <= pi/4 */
if (a->expn <= -1) {
/* abs(a) <= 0.25: no modulo reduction needed */
bf_set(T, a);
mod = 0;
} else {
slimb_t cancel;
cancel = 0;
for(;;) {
prec2 = prec1 + a->expn + cancel;
bf_const_pi(U, prec2, BF_RNDF);
bf_mul_2exp(U, -1, BF_PREC_INF, BF_RNDZ);
bf_remquo(&mod, T, a, U, prec2, BF_RNDN, BF_RNDN);
// printf("T.expn=%ld prec2=%ld\n", T->expn, prec2);
if (mod == 0 || (T->expn != BF_EXP_ZERO &&
(T->expn + prec2) >= (prec1 - 1)))
break;
/* increase the number of bits until the precision is good enough */
cancel = bf_max(-T->expn, (cancel + 1) * 3 / 2);
}
mod &= 3;
}
is_neg = T->sign;
/* compute cosm1(x) = cos(x) - 1 */
bf_mul(T, T, T, prec1, BF_RNDN);
bf_mul_2exp(T, -2 * K, BF_PREC_INF, BF_RNDZ);
/* Taylor expansion:
-x^2/2 + x^4/4! - x^6/6! + ...
*/
bf_set_ui(r, 1);
for(i = l ; i >= 1; i--) {
bf_set_ui(U, 2 * i - 1);
bf_mul_ui(U, U, 2 * i, BF_PREC_INF, BF_RNDZ);
bf_div(U, T, U, prec1, BF_RNDN);
bf_mul(r, r, U, prec1, BF_RNDN);
bf_neg(r);
if (i != 1)
bf_add_si(r, r, 1, prec1, BF_RNDN);
}
bf_delete(U);
/* undo argument reduction:
cosm1(2*x)= 2*(2*cosm1(x)+cosm1(x)^2)
*/
for(i = 0; i < K; i++) {
bf_mul(T, r, r, prec1, BF_RNDN);
bf_mul_2exp(r, 1, BF_PREC_INF, BF_RNDZ);
bf_add(r, r, T, prec1, BF_RNDN);
bf_mul_2exp(r, 1, BF_PREC_INF, BF_RNDZ);
}
bf_delete(T);
if (c) {
if ((mod & 1) == 0) {
bf_add_si(c, r, 1, prec1, BF_RNDN);
} else {
bf_sqrt_sin(c, r, prec1);
c->sign = is_neg ^ 1;
}
c->sign ^= mod >> 1;
}
if (s) {
if ((mod & 1) == 0) {
bf_sqrt_sin(s, r, prec1);
s->sign = is_neg;
} else {
bf_add_si(s, r, 1, prec1, BF_RNDN);
}
s->sign ^= mod >> 1;
}
bf_delete(r);
return BF_ST_INEXACT;
} | O0 | c | bf_sincos:
subq $0x108, %rsp # imm = 0x108
movq %rdi, 0x100(%rsp)
movq %rsi, 0xf8(%rsp)
movq %rdx, 0xf0(%rsp)
movq %rcx, 0xe8(%rsp)
movq 0xf0(%rsp), %rax
movq (%rax), %rax
movq %rax, 0xe0(%rsp)
leaq 0xb8(%rsp), %rax
movq %rax, 0xb0(%rsp)
leaq 0x88(%rsp), %rax
movq %rax, 0x80(%rsp)
leaq 0x58(%rsp), %rax
movq %rax, 0x50(%rsp)
movq 0xe0(%rsp), %rdi
movq 0xb0(%rsp), %rsi
callq 0xe5f70
movq 0xe0(%rsp), %rdi
movq 0x80(%rsp), %rsi
callq 0xe5f70
movq 0xe0(%rsp), %rdi
movq 0x50(%rsp), %rsi
callq 0xe5f70
movq 0xe8(%rsp), %rdi
shrq %rdi
callq 0xe94f0
movq %rax, 0x48(%rsp)
movq 0xe8(%rsp), %rax
movq 0x48(%rsp), %rcx
shlq %rcx
xorl %edx, %edx
divq %rcx
addq $0x1, %rax
movq %rax, 0x30(%rsp)
movq 0xe8(%rsp), %rax
movq 0x48(%rsp), %rcx
shlq %rcx
addq %rcx, %rax
addq 0x30(%rsp), %rax
addq $0x8, %rax
movq %rax, 0x40(%rsp)
movq 0xf0(%rsp), %rax
cmpq $-0x1, 0x10(%rax)
jg 0xf9466
movq 0xb0(%rsp), %rdi
movq 0xf0(%rsp), %rsi
callq 0xe62c0
movq $0x0, 0x28(%rsp)
jmp 0xf957d
movq $0x0, 0x10(%rsp)
movq 0x40(%rsp), %rax
movq 0xf0(%rsp), %rcx
addq 0x10(%rcx), %rax
addq 0x10(%rsp), %rax
movq %rax, 0x20(%rsp)
movq 0x80(%rsp), %rdi
movq 0x20(%rsp), %rsi
movl $0x6, %edx
callq 0xede50
movq 0x80(%rsp), %rdi
movq $-0x1, %rsi
movabsq $0x3fffffffffffffff, %rdx # imm = 0x3FFFFFFFFFFFFFFF
movl $0x1, %ecx
callq 0xe8b10
movq 0xb0(%rsp), %rsi
movq 0xf0(%rsp), %rdx
movq 0x80(%rsp), %rcx
movq 0x20(%rsp), %r8
leaq 0x28(%rsp), %rdi
xorl %r9d, %r9d
movl $0x0, (%rsp)
callq 0xe9420
cmpq $0x0, 0x28(%rsp)
je 0xf9534
movq 0xb0(%rsp), %rax
movabsq $-0x8000000000000000, %rcx # imm = 0x8000000000000000
cmpq %rcx, 0x10(%rax)
je 0xf9536
movq 0xb0(%rsp), %rax
movq 0x10(%rax), %rax
addq 0x20(%rsp), %rax
movq 0x40(%rsp), %rcx
subq $0x1, %rcx
cmpq %rcx, %rax
jl 0xf9536
jmp 0xf956f
movq 0xb0(%rsp), %rax
xorl %ecx, %ecx
movl %ecx, %edi
subq 0x10(%rax), %rdi
movq 0x10(%rsp), %rax
addq $0x1, %rax
imulq $0x3, %rax, %rax
movl $0x2, %ecx
cqto
idivq %rcx
movq %rax, %rsi
callq 0xe7060
movq %rax, 0x10(%rsp)
jmp 0xf946f
movq 0x28(%rsp), %rax
andq $0x3, %rax
movq %rax, 0x28(%rsp)
movq 0xb0(%rsp), %rax
movl 0x8(%rax), %eax
movl %eax, 0x1c(%rsp)
movq 0xb0(%rsp), %rdi
movq 0xb0(%rsp), %rsi
movq 0xb0(%rsp), %rdx
movq 0x40(%rsp), %rcx
xorl %r8d, %r8d
callq 0xe8680
movq 0xb0(%rsp), %rdi
imulq $-0x2, 0x48(%rsp), %rsi
movabsq $0x3fffffffffffffff, %rdx # imm = 0x3FFFFFFFFFFFFFFF
movl $0x1, %ecx
callq 0xe8b10
movq 0x50(%rsp), %rdi
movl $0x1, %esi
callq 0xe60a0
movq 0x30(%rsp), %rax
movq %rax, 0x38(%rsp)
cmpq $0x1, 0x38(%rsp)
jl 0xf96c5
movq 0x80(%rsp), %rdi
movq 0x38(%rsp), %rsi
shlq %rsi
subq $0x1, %rsi
callq 0xe60a0
movq 0x80(%rsp), %rdi
movq 0x80(%rsp), %rsi
movq 0x38(%rsp), %rdx
shlq %rdx
movabsq $0x3fffffffffffffff, %rcx # imm = 0x3FFFFFFFFFFFFFFF
movl $0x1, %r8d
callq 0xea7e0
movq 0x80(%rsp), %rdi
movq 0xb0(%rsp), %rsi
movq 0x80(%rsp), %rdx
movq 0x40(%rsp), %rcx
xorl %r8d, %r8d
callq 0xea3d0
movq 0x50(%rsp), %rdi
movq 0x50(%rsp), %rsi
movq 0x80(%rsp), %rdx
movq 0x40(%rsp), %rcx
xorl %r8d, %r8d
callq 0xe8680
movq 0x50(%rsp), %rdi
callq 0xea150
cmpq $0x1, 0x38(%rsp)
je 0xf96b0
movq 0x50(%rsp), %rdi
movq 0x50(%rsp), %rsi
movq 0x40(%rsp), %rcx
movl $0x1, %edx
xorl %r8d, %r8d
callq 0xe9280
jmp 0xf96b2
movq 0x38(%rsp), %rax
addq $-0x1, %rax
movq %rax, 0x38(%rsp)
jmp 0xf95ec
movq 0x80(%rsp), %rdi
callq 0xe93d0
movq $0x0, 0x38(%rsp)
movq 0x38(%rsp), %rax
cmpq 0x48(%rsp), %rax
jge 0xf9778
movq 0xb0(%rsp), %rdi
movq 0x50(%rsp), %rsi
movq 0x50(%rsp), %rdx
movq 0x40(%rsp), %rcx
xorl %r8d, %r8d
callq 0xe8680
movq 0x50(%rsp), %rdi
movl $0x1, %esi
movabsq $0x3fffffffffffffff, %rdx # imm = 0x3FFFFFFFFFFFFFFF
movl $0x1, %ecx
callq 0xe8b10
movq 0x50(%rsp), %rdi
movq 0x50(%rsp), %rsi
movq 0xb0(%rsp), %rdx
movq 0x40(%rsp), %rcx
xorl %r8d, %r8d
callq 0xea170
movq 0x50(%rsp), %rdi
movl $0x1, %esi
movabsq $0x3fffffffffffffff, %rdx # imm = 0x3FFFFFFFFFFFFFFF
movl $0x1, %ecx
callq 0xe8b10
movq 0x38(%rsp), %rax
addq $0x1, %rax
movq %rax, 0x38(%rsp)
jmp 0xf96db
movq 0xb0(%rsp), %rdi
callq 0xe93d0
cmpq $0x0, 0xf8(%rsp)
je 0xf9803
movq 0x28(%rsp), %rax
andq $0x1, %rax
cmpq $0x0, %rax
jne 0xf97c0
movq 0xf8(%rsp), %rdi
movq 0x50(%rsp), %rsi
movq 0x40(%rsp), %rcx
movl $0x1, %edx
xorl %r8d, %r8d
callq 0xe9280
jmp 0xf97e9
movq 0xf8(%rsp), %rdi
movq 0x50(%rsp), %rsi
movq 0x40(%rsp), %rdx
callq 0xf98a0
movl 0x1c(%rsp), %ecx
xorl $0x1, %ecx
movq 0xf8(%rsp), %rax
movl %ecx, 0x8(%rax)
movq 0x28(%rsp), %rdx
sarq %rdx
movq 0xf8(%rsp), %rax
movslq 0x8(%rax), %rcx
xorq %rdx, %rcx
movl %ecx, 0x8(%rax)
cmpq $0x0, 0x100(%rsp)
je 0xf987e
movq 0x28(%rsp), %rax
andq $0x1, %rax
cmpq $0x0, %rax
jne 0xf9845
movq 0x100(%rsp), %rdi
movq 0x50(%rsp), %rsi
movq 0x40(%rsp), %rdx
callq 0xf98a0
movl 0x1c(%rsp), %ecx
movq 0x100(%rsp), %rax
movl %ecx, 0x8(%rax)
jmp 0xf9864
movq 0x100(%rsp), %rdi
movq 0x50(%rsp), %rsi
movq 0x40(%rsp), %rcx
movl $0x1, %edx
xorl %r8d, %r8d
callq 0xe9280
movq 0x28(%rsp), %rdx
sarq %rdx
movq 0x100(%rsp), %rax
movslq 0x8(%rax), %rcx
xorq %rdx, %rcx
movl %ecx, 0x8(%rax)
movq 0x50(%rsp), %rdi
callq 0xe93d0
movl $0x10, %eax
addq $0x108, %rsp # imm = 0x108
retq
nopw %cs:(%rax,%rax)
| bf_sincos:
sub rsp, 108h
mov [rsp+108h+var_8], rdi
mov [rsp+108h+var_10], rsi
mov [rsp+108h+var_18], rdx
mov [rsp+108h+var_20], rcx
mov rax, [rsp+108h+var_18]
mov rax, [rax]
mov [rsp+108h+var_28], rax
lea rax, [rsp+108h+var_50]
mov [rsp+108h+var_58], rax
lea rax, [rsp+108h+var_80]
mov [rsp+108h+var_88], rax
lea rax, [rsp+108h+var_B0]
mov [rsp+108h+var_B8], rax
mov rdi, [rsp+108h+var_28]
mov rsi, [rsp+108h+var_58]
call bf_init
mov rdi, [rsp+108h+var_28]
mov rsi, [rsp+108h+var_88]
call bf_init
mov rdi, [rsp+108h+var_28]
mov rsi, [rsp+108h+var_B8]
call bf_init
mov rdi, [rsp+108h+var_20]
shr rdi, 1
call bf_isqrt
mov [rsp+108h+var_C0], rax
mov rax, [rsp+108h+var_20]
mov rcx, [rsp+108h+var_C0]
shl rcx, 1
xor edx, edx
div rcx
add rax, 1
mov [rsp+108h+var_D8], rax
mov rax, [rsp+108h+var_20]
mov rcx, [rsp+108h+var_C0]
shl rcx, 1
add rax, rcx
add rax, [rsp+108h+var_D8]
add rax, 8
mov [rsp+108h+var_C8], rax
mov rax, [rsp+108h+var_18]
cmp qword ptr [rax+10h], 0FFFFFFFFFFFFFFFFh
jg short loc_F9466
mov rdi, [rsp+108h+var_58]
mov rsi, [rsp+108h+var_18]
call bf_set
mov [rsp+108h+var_E0], 0
jmp loc_F957D
loc_F9466:
mov [rsp+108h+var_F8], 0
loc_F946F:
mov rax, [rsp+108h+var_C8]
mov rcx, [rsp+108h+var_18]
add rax, [rcx+10h]
add rax, [rsp+108h+var_F8]
mov [rsp+108h+var_E8], rax
mov rdi, [rsp+108h+var_88]
mov rsi, [rsp+108h+var_E8]
mov edx, 6
call bf_const_pi
mov rdi, [rsp+108h+var_88]
mov rsi, 0FFFFFFFFFFFFFFFFh
mov rdx, 3FFFFFFFFFFFFFFFh
mov ecx, 1
call bf_mul_2exp
mov rsi, [rsp+108h+var_58]
mov rdx, [rsp+108h+var_18]
mov rcx, [rsp+108h+var_88]
mov r8, [rsp+108h+var_E8]
lea rdi, [rsp+108h+var_E0]
xor r9d, r9d
mov [rsp+108h+var_108], 0
call bf_remquo
cmp [rsp+108h+var_E0], 0
jz short loc_F9534
mov rax, [rsp+108h+var_58]
mov rcx, 8000000000000000h
cmp [rax+10h], rcx
jz short loc_F9536
mov rax, [rsp+108h+var_58]
mov rax, [rax+10h]
add rax, [rsp+108h+var_E8]
mov rcx, [rsp+108h+var_C8]
sub rcx, 1
cmp rax, rcx
jl short loc_F9536
loc_F9534:
jmp short loc_F956F
loc_F9536:
mov rax, [rsp+108h+var_58]
xor ecx, ecx
mov edi, ecx
sub rdi, [rax+10h]
mov rax, [rsp+108h+var_F8]
add rax, 1
imul rax, 3
mov ecx, 2
cqo
idiv rcx
mov rsi, rax
call bf_max
mov [rsp+108h+var_F8], rax
jmp loc_F946F
loc_F956F:
mov rax, [rsp+108h+var_E0]
and rax, 3
mov [rsp+108h+var_E0], rax
loc_F957D:
mov rax, [rsp+108h+var_58]
mov eax, [rax+8]
mov [rsp+108h+var_EC], eax
mov rdi, [rsp+108h+var_58]
mov rsi, [rsp+108h+var_58]
mov rdx, [rsp+108h+var_58]
mov rcx, [rsp+108h+var_C8]
xor r8d, r8d
call bf_mul
mov rdi, [rsp+108h+var_58]
imul rsi, [rsp+108h+var_C0], -2
mov rdx, 3FFFFFFFFFFFFFFFh
mov ecx, 1
call bf_mul_2exp
mov rdi, [rsp+108h+var_B8]
mov esi, 1
call bf_set_ui
mov rax, [rsp+108h+var_D8]
mov [rsp+108h+var_D0], rax
loc_F95EC:
cmp [rsp+108h+var_D0], 1
jl loc_F96C5
mov rdi, [rsp+108h+var_88]
mov rsi, [rsp+108h+var_D0]
shl rsi, 1
sub rsi, 1
call bf_set_ui
mov rdi, [rsp+108h+var_88]
mov rsi, [rsp+108h+var_88]
mov rdx, [rsp+108h+var_D0]
shl rdx, 1
mov rcx, 3FFFFFFFFFFFFFFFh
mov r8d, 1
call bf_mul_ui
mov rdi, [rsp+108h+var_88]
mov rsi, [rsp+108h+var_58]
mov rdx, [rsp+108h+var_88]
mov rcx, [rsp+108h+var_C8]
xor r8d, r8d
call bf_div
mov rdi, [rsp+108h+var_B8]
mov rsi, [rsp+108h+var_B8]
mov rdx, [rsp+108h+var_88]
mov rcx, [rsp+108h+var_C8]
xor r8d, r8d
call bf_mul
mov rdi, [rsp+108h+var_B8]
call bf_neg_0
cmp [rsp+108h+var_D0], 1
jz short loc_F96B0
mov rdi, [rsp+108h+var_B8]
mov rsi, [rsp+108h+var_B8]
mov rcx, [rsp+108h+var_C8]
mov edx, 1
xor r8d, r8d
call bf_add_si
loc_F96B0:
jmp short $+2
loc_F96B2:
mov rax, [rsp+108h+var_D0]
add rax, 0FFFFFFFFFFFFFFFFh
mov [rsp+108h+var_D0], rax
jmp loc_F95EC
loc_F96C5:
mov rdi, [rsp+108h+var_88]
call bf_delete_0
mov [rsp+108h+var_D0], 0
loc_F96DB:
mov rax, [rsp+108h+var_D0]
cmp rax, [rsp+108h+var_C0]
jge loc_F9778
mov rdi, [rsp+108h+var_58]
mov rsi, [rsp+108h+var_B8]
mov rdx, [rsp+108h+var_B8]
mov rcx, [rsp+108h+var_C8]
xor r8d, r8d
call bf_mul
mov rdi, [rsp+108h+var_B8]
mov esi, 1
mov rdx, 3FFFFFFFFFFFFFFFh
mov ecx, 1
call bf_mul_2exp
mov rdi, [rsp+108h+var_B8]
mov rsi, [rsp+108h+var_B8]
mov rdx, [rsp+108h+var_58]
mov rcx, [rsp+108h+var_C8]
xor r8d, r8d
call bf_add
mov rdi, [rsp+108h+var_B8]
mov esi, 1
mov rdx, 3FFFFFFFFFFFFFFFh
mov ecx, 1
call bf_mul_2exp
mov rax, [rsp+108h+var_D0]
add rax, 1
mov [rsp+108h+var_D0], rax
jmp loc_F96DB
loc_F9778:
mov rdi, [rsp+108h+var_58]
call bf_delete_0
cmp [rsp+108h+var_10], 0
jz short loc_F9803
mov rax, [rsp+108h+var_E0]
and rax, 1
cmp rax, 0
jnz short loc_F97C0
mov rdi, [rsp+108h+var_10]
mov rsi, [rsp+108h+var_B8]
mov rcx, [rsp+108h+var_C8]
mov edx, 1
xor r8d, r8d
call bf_add_si
jmp short loc_F97E9
loc_F97C0:
mov rdi, [rsp+108h+var_10]
mov rsi, [rsp+108h+var_B8]
mov rdx, [rsp+108h+var_C8]
call bf_sqrt_sin
mov ecx, [rsp+108h+var_EC]
xor ecx, 1
mov rax, [rsp+108h+var_10]
mov [rax+8], ecx
loc_F97E9:
mov rdx, [rsp+108h+var_E0]
sar rdx, 1
mov rax, [rsp+108h+var_10]
movsxd rcx, dword ptr [rax+8]
xor rcx, rdx
mov [rax+8], ecx
loc_F9803:
cmp [rsp+108h+var_8], 0
jz short loc_F987E
mov rax, [rsp+108h+var_E0]
and rax, 1
cmp rax, 0
jnz short loc_F9845
mov rdi, [rsp+108h+var_8]
mov rsi, [rsp+108h+var_B8]
mov rdx, [rsp+108h+var_C8]
call bf_sqrt_sin
mov ecx, [rsp+108h+var_EC]
mov rax, [rsp+108h+var_8]
mov [rax+8], ecx
jmp short loc_F9864
loc_F9845:
mov rdi, [rsp+108h+var_8]
mov rsi, [rsp+108h+var_B8]
mov rcx, [rsp+108h+var_C8]
mov edx, 1
xor r8d, r8d
call bf_add_si
loc_F9864:
mov rdx, [rsp+108h+var_E0]
sar rdx, 1
mov rax, [rsp+108h+var_8]
movsxd rcx, dword ptr [rax+8]
xor rcx, rdx
mov [rax+8], ecx
loc_F987E:
mov rdi, [rsp+108h+var_B8]
call bf_delete_0
mov eax, 10h
add rsp, 108h
retn
| long long bf_sincos(long long *a1, long long *a2, long long *a3, unsigned long long a4)
{
long long *v4; // rsi
long long v5; // rdx
long long v6; // rcx
long long v7; // r8
long long v8; // r9
long long v9; // rdx
long long v10; // rcx
long long v11; // r8
long long v12; // r9
long long v13; // rdx
long long v14; // rcx
long long v15; // r8
long long v16; // r9
long long i; // [rsp+10h] [rbp-F8h]
int v19; // [rsp+1Ch] [rbp-ECh]
long long v20; // [rsp+20h] [rbp-E8h]
long long v21; // [rsp+28h] [rbp-E0h] BYREF
unsigned long long v22; // [rsp+30h] [rbp-D8h]
long long j; // [rsp+38h] [rbp-D0h]
long long v24; // [rsp+40h] [rbp-C8h]
signed long long v25; // [rsp+48h] [rbp-C0h]
long long *v26; // [rsp+50h] [rbp-B8h]
_BYTE v27[40]; // [rsp+58h] [rbp-B0h] BYREF
long long *v28; // [rsp+80h] [rbp-88h]
char v29; // [rsp+88h] [rbp-80h] BYREF
long long *v30; // [rsp+B0h] [rbp-58h]
_BYTE v31[40]; // [rsp+B8h] [rbp-50h] BYREF
long long v32; // [rsp+E0h] [rbp-28h]
unsigned long long v33; // [rsp+E8h] [rbp-20h]
long long *v34; // [rsp+F0h] [rbp-18h]
long long *v35; // [rsp+F8h] [rbp-10h]
long long *v36; // [rsp+100h] [rbp-8h]
v36 = a1;
v35 = a2;
v34 = a3;
v33 = a4;
v32 = *a3;
v30 = (long long *)v31;
v28 = (long long *)&v29;
v26 = (long long *)v27;
bf_init(v32, (long long)v31);
bf_init(v32, (long long)v28);
bf_init(v32, (long long)v27);
v25 = bf_isqrt(v33 >> 1);
v22 = v33 / (2 * v25) + 1;
v24 = v22 + 2 * v25 + v33 + 8;
if ( v34[2] > -1 )
{
for ( i = 0LL; ; i = bf_max(-v30[2], 3 * (i + 1) / 2) )
{
v20 = i + v34[2] + v24;
bf_const_pi((long long)v28, v20, 6u);
bf_mul_2exp(v28, -1LL, 0x3FFFFFFFFFFFFFFFLL, 1u);
bf_remquo((long long)&v21, v30, (long long)v34, (long long)v28, v20, 0, 0);
if ( !v21 || v30[2] != 0x8000000000000000LL && v20 + v30[2] >= v24 - 1 )
break;
}
v21 &= 3u;
}
else
{
bf_set((long long)v30, (long long)v34);
v21 = 0LL;
}
v19 = *((_DWORD *)v30 + 2);
bf_mul(v30, (long long)v30, (long long)v30, v24, 0);
bf_mul_2exp(v30, -2 * v25, 0x3FFFFFFFFFFFFFFFLL, 1u);
v4 = (_QWORD *)(&dword_0 + 1);
bf_set_ui((long long)v26, 1LL);
for ( j = v22; j >= 1; --j )
{
bf_set_ui((long long)v28, 2 * j - 1);
bf_mul_ui(v28, (long long)v28, 2 * j, 0x3FFFFFFFFFFFFFFFLL, 1u);
bf_div(v28, v30, v28, v24, 0);
v4 = v26;
bf_mul(v26, (long long)v26, (long long)v28, v24, 0);
bf_neg_0((long long)v26);
if ( j != 1 )
{
v4 = v26;
bf_add_si(v26, (long long)v26, 1LL, v24, 0);
}
}
bf_delete_0(v28, (long long)v4, v5, v6, v7, v8);
for ( j = 0LL; j < v25; ++j )
{
bf_mul(v30, (long long)v26, (long long)v26, v24, 0);
bf_mul_2exp(v26, 1LL, 0x3FFFFFFFFFFFFFFFLL, 1u);
bf_add((long long)v26, (long long)v26, (long long)v30, v24, 0);
v4 = (_QWORD *)(&dword_0 + 1);
bf_mul_2exp(v26, 1LL, 0x3FFFFFFFFFFFFFFFLL, 1u);
}
bf_delete_0(v30, (long long)v4, v9, v10, v11, v12);
if ( v35 )
{
v4 = v26;
if ( (v21 & 1) != 0 )
{
bf_sqrt_sin(v35, v26, v24);
*((_DWORD *)v35 + 2) = v19 ^ 1;
}
else
{
bf_add_si(v35, (long long)v26, 1LL, v24, 0);
}
v13 = v21 >> 1;
v14 = (v21 >> 1) ^ *((int *)v35 + 2);
*((_DWORD *)v35 + 2) = v14;
}
if ( v36 )
{
v4 = v26;
if ( (v21 & 1) != 0 )
{
bf_add_si(v36, (long long)v26, 1LL, v24, 0);
}
else
{
bf_sqrt_sin(v36, v26, v24);
*((_DWORD *)v36 + 2) = v19;
}
v13 = v21 >> 1;
v14 = (v21 >> 1) ^ *((int *)v36 + 2);
*((_DWORD *)v36 + 2) = v14;
}
bf_delete_0(v26, (long long)v4, v13, v14, v15, v16);
return 16LL;
}
| bf_sincos:
SUB RSP,0x108
MOV qword ptr [RSP + 0x100],RDI
MOV qword ptr [RSP + 0xf8],RSI
MOV qword ptr [RSP + 0xf0],RDX
MOV qword ptr [RSP + 0xe8],RCX
MOV RAX,qword ptr [RSP + 0xf0]
MOV RAX,qword ptr [RAX]
MOV qword ptr [RSP + 0xe0],RAX
LEA RAX,[RSP + 0xb8]
MOV qword ptr [RSP + 0xb0],RAX
LEA RAX,[RSP + 0x88]
MOV qword ptr [RSP + 0x80],RAX
LEA RAX,[RSP + 0x58]
MOV qword ptr [RSP + 0x50],RAX
MOV RDI,qword ptr [RSP + 0xe0]
MOV RSI,qword ptr [RSP + 0xb0]
CALL 0x001e5f70
MOV RDI,qword ptr [RSP + 0xe0]
MOV RSI,qword ptr [RSP + 0x80]
CALL 0x001e5f70
MOV RDI,qword ptr [RSP + 0xe0]
MOV RSI,qword ptr [RSP + 0x50]
CALL 0x001e5f70
MOV RDI,qword ptr [RSP + 0xe8]
SHR RDI,0x1
CALL 0x001e94f0
MOV qword ptr [RSP + 0x48],RAX
MOV RAX,qword ptr [RSP + 0xe8]
MOV RCX,qword ptr [RSP + 0x48]
SHL RCX,0x1
XOR EDX,EDX
DIV RCX
ADD RAX,0x1
MOV qword ptr [RSP + 0x30],RAX
MOV RAX,qword ptr [RSP + 0xe8]
MOV RCX,qword ptr [RSP + 0x48]
SHL RCX,0x1
ADD RAX,RCX
ADD RAX,qword ptr [RSP + 0x30]
ADD RAX,0x8
MOV qword ptr [RSP + 0x40],RAX
MOV RAX,qword ptr [RSP + 0xf0]
CMP qword ptr [RAX + 0x10],-0x1
JG 0x001f9466
MOV RDI,qword ptr [RSP + 0xb0]
MOV RSI,qword ptr [RSP + 0xf0]
CALL 0x001e62c0
MOV qword ptr [RSP + 0x28],0x0
JMP 0x001f957d
LAB_001f9466:
MOV qword ptr [RSP + 0x10],0x0
LAB_001f946f:
MOV RAX,qword ptr [RSP + 0x40]
MOV RCX,qword ptr [RSP + 0xf0]
ADD RAX,qword ptr [RCX + 0x10]
ADD RAX,qword ptr [RSP + 0x10]
MOV qword ptr [RSP + 0x20],RAX
MOV RDI,qword ptr [RSP + 0x80]
MOV RSI,qword ptr [RSP + 0x20]
MOV EDX,0x6
CALL 0x001ede50
MOV RDI,qword ptr [RSP + 0x80]
MOV RSI,-0x1
MOV RDX,0x3fffffffffffffff
MOV ECX,0x1
CALL 0x001e8b10
MOV RSI,qword ptr [RSP + 0xb0]
MOV RDX,qword ptr [RSP + 0xf0]
MOV RCX,qword ptr [RSP + 0x80]
MOV R8,qword ptr [RSP + 0x20]
LEA RDI,[RSP + 0x28]
XOR R9D,R9D
MOV dword ptr [RSP],0x0
CALL 0x001e9420
CMP qword ptr [RSP + 0x28],0x0
JZ 0x001f9534
MOV RAX,qword ptr [RSP + 0xb0]
MOV RCX,-0x8000000000000000
CMP qword ptr [RAX + 0x10],RCX
JZ 0x001f9536
MOV RAX,qword ptr [RSP + 0xb0]
MOV RAX,qword ptr [RAX + 0x10]
ADD RAX,qword ptr [RSP + 0x20]
MOV RCX,qword ptr [RSP + 0x40]
SUB RCX,0x1
CMP RAX,RCX
JL 0x001f9536
LAB_001f9534:
JMP 0x001f956f
LAB_001f9536:
MOV RAX,qword ptr [RSP + 0xb0]
XOR ECX,ECX
MOV EDI,ECX
SUB RDI,qword ptr [RAX + 0x10]
MOV RAX,qword ptr [RSP + 0x10]
ADD RAX,0x1
IMUL RAX,RAX,0x3
MOV ECX,0x2
CQO
IDIV RCX
MOV RSI,RAX
CALL 0x001e7060
MOV qword ptr [RSP + 0x10],RAX
JMP 0x001f946f
LAB_001f956f:
MOV RAX,qword ptr [RSP + 0x28]
AND RAX,0x3
MOV qword ptr [RSP + 0x28],RAX
LAB_001f957d:
MOV RAX,qword ptr [RSP + 0xb0]
MOV EAX,dword ptr [RAX + 0x8]
MOV dword ptr [RSP + 0x1c],EAX
MOV RDI,qword ptr [RSP + 0xb0]
MOV RSI,qword ptr [RSP + 0xb0]
MOV RDX,qword ptr [RSP + 0xb0]
MOV RCX,qword ptr [RSP + 0x40]
XOR R8D,R8D
CALL 0x001e8680
MOV RDI,qword ptr [RSP + 0xb0]
IMUL RSI,qword ptr [RSP + 0x48],-0x2
MOV RDX,0x3fffffffffffffff
MOV ECX,0x1
CALL 0x001e8b10
MOV RDI,qword ptr [RSP + 0x50]
MOV ESI,0x1
CALL 0x001e60a0
MOV RAX,qword ptr [RSP + 0x30]
MOV qword ptr [RSP + 0x38],RAX
LAB_001f95ec:
CMP qword ptr [RSP + 0x38],0x1
JL 0x001f96c5
MOV RDI,qword ptr [RSP + 0x80]
MOV RSI,qword ptr [RSP + 0x38]
SHL RSI,0x1
SUB RSI,0x1
CALL 0x001e60a0
MOV RDI,qword ptr [RSP + 0x80]
MOV RSI,qword ptr [RSP + 0x80]
MOV RDX,qword ptr [RSP + 0x38]
SHL RDX,0x1
MOV RCX,0x3fffffffffffffff
MOV R8D,0x1
CALL 0x001ea7e0
MOV RDI,qword ptr [RSP + 0x80]
MOV RSI,qword ptr [RSP + 0xb0]
MOV RDX,qword ptr [RSP + 0x80]
MOV RCX,qword ptr [RSP + 0x40]
XOR R8D,R8D
CALL 0x001ea3d0
MOV RDI,qword ptr [RSP + 0x50]
MOV RSI,qword ptr [RSP + 0x50]
MOV RDX,qword ptr [RSP + 0x80]
MOV RCX,qword ptr [RSP + 0x40]
XOR R8D,R8D
CALL 0x001e8680
MOV RDI,qword ptr [RSP + 0x50]
CALL 0x001ea150
CMP qword ptr [RSP + 0x38],0x1
JZ 0x001f96b0
MOV RDI,qword ptr [RSP + 0x50]
MOV RSI,qword ptr [RSP + 0x50]
MOV RCX,qword ptr [RSP + 0x40]
MOV EDX,0x1
XOR R8D,R8D
CALL 0x001e9280
LAB_001f96b0:
JMP 0x001f96b2
LAB_001f96b2:
MOV RAX,qword ptr [RSP + 0x38]
ADD RAX,-0x1
MOV qword ptr [RSP + 0x38],RAX
JMP 0x001f95ec
LAB_001f96c5:
MOV RDI,qword ptr [RSP + 0x80]
CALL 0x001e93d0
MOV qword ptr [RSP + 0x38],0x0
LAB_001f96db:
MOV RAX,qword ptr [RSP + 0x38]
CMP RAX,qword ptr [RSP + 0x48]
JGE 0x001f9778
MOV RDI,qword ptr [RSP + 0xb0]
MOV RSI,qword ptr [RSP + 0x50]
MOV RDX,qword ptr [RSP + 0x50]
MOV RCX,qword ptr [RSP + 0x40]
XOR R8D,R8D
CALL 0x001e8680
MOV RDI,qword ptr [RSP + 0x50]
MOV ESI,0x1
MOV RDX,0x3fffffffffffffff
MOV ECX,0x1
CALL 0x001e8b10
MOV RDI,qword ptr [RSP + 0x50]
MOV RSI,qword ptr [RSP + 0x50]
MOV RDX,qword ptr [RSP + 0xb0]
MOV RCX,qword ptr [RSP + 0x40]
XOR R8D,R8D
CALL 0x001ea170
MOV RDI,qword ptr [RSP + 0x50]
MOV ESI,0x1
MOV RDX,0x3fffffffffffffff
MOV ECX,0x1
CALL 0x001e8b10
MOV RAX,qword ptr [RSP + 0x38]
ADD RAX,0x1
MOV qword ptr [RSP + 0x38],RAX
JMP 0x001f96db
LAB_001f9778:
MOV RDI,qword ptr [RSP + 0xb0]
CALL 0x001e93d0
CMP qword ptr [RSP + 0xf8],0x0
JZ 0x001f9803
MOV RAX,qword ptr [RSP + 0x28]
AND RAX,0x1
CMP RAX,0x0
JNZ 0x001f97c0
MOV RDI,qword ptr [RSP + 0xf8]
MOV RSI,qword ptr [RSP + 0x50]
MOV RCX,qword ptr [RSP + 0x40]
MOV EDX,0x1
XOR R8D,R8D
CALL 0x001e9280
JMP 0x001f97e9
LAB_001f97c0:
MOV RDI,qword ptr [RSP + 0xf8]
MOV RSI,qword ptr [RSP + 0x50]
MOV RDX,qword ptr [RSP + 0x40]
CALL 0x001f98a0
MOV ECX,dword ptr [RSP + 0x1c]
XOR ECX,0x1
MOV RAX,qword ptr [RSP + 0xf8]
MOV dword ptr [RAX + 0x8],ECX
LAB_001f97e9:
MOV RDX,qword ptr [RSP + 0x28]
SAR RDX,0x1
MOV RAX,qword ptr [RSP + 0xf8]
MOVSXD RCX,dword ptr [RAX + 0x8]
XOR RCX,RDX
MOV dword ptr [RAX + 0x8],ECX
LAB_001f9803:
CMP qword ptr [RSP + 0x100],0x0
JZ 0x001f987e
MOV RAX,qword ptr [RSP + 0x28]
AND RAX,0x1
CMP RAX,0x0
JNZ 0x001f9845
MOV RDI,qword ptr [RSP + 0x100]
MOV RSI,qword ptr [RSP + 0x50]
MOV RDX,qword ptr [RSP + 0x40]
CALL 0x001f98a0
MOV ECX,dword ptr [RSP + 0x1c]
MOV RAX,qword ptr [RSP + 0x100]
MOV dword ptr [RAX + 0x8],ECX
JMP 0x001f9864
LAB_001f9845:
MOV RDI,qword ptr [RSP + 0x100]
MOV RSI,qword ptr [RSP + 0x50]
MOV RCX,qword ptr [RSP + 0x40]
MOV EDX,0x1
XOR R8D,R8D
CALL 0x001e9280
LAB_001f9864:
MOV RDX,qword ptr [RSP + 0x28]
SAR RDX,0x1
MOV RAX,qword ptr [RSP + 0x100]
MOVSXD RCX,dword ptr [RAX + 0x8]
XOR RCX,RDX
MOV dword ptr [RAX + 0x8],ECX
LAB_001f987e:
MOV RDI,qword ptr [RSP + 0x50]
CALL 0x001e93d0
MOV EAX,0x10
ADD RSP,0x108
RET
|
int8 bf_sincos(long param_1,long param_2,int8 *param_3,ulong param_4)
{
uint uVar1;
long lVar2;
long local_f8;
ulong local_e0;
long local_d8;
long local_d0;
long local_c8;
long local_c0;
int1 *local_b8;
int1 local_b0 [40];
int1 *local_88;
int1 local_80 [40];
int1 *local_58;
int1 local_50 [40];
int8 local_28;
ulong local_20;
int8 *local_18;
long local_10;
long local_8;
local_28 = *param_3;
local_58 = local_50;
local_88 = local_80;
local_b8 = local_b0;
local_20 = param_4;
local_18 = param_3;
local_10 = param_2;
local_8 = param_1;
bf_init(local_28,local_58);
bf_init(local_28,local_88);
bf_init(local_28,local_b8);
local_c0 = bf_isqrt(local_20 >> 1);
local_d8 = local_20 / (ulong)(local_c0 << 1) + 1;
local_c8 = local_20 + local_c0 * 2 + local_d8 + 8;
if ((ulong)local_18[2] < 0x8000000000000000) {
local_f8 = 0;
while( true ) {
lVar2 = local_c8 + local_18[2] + local_f8;
bf_const_pi(local_88,lVar2,6);
bf_mul_2exp(local_88,0xffffffffffffffff,0x3fffffffffffffff,1);
bf_remquo(&local_e0,local_58,local_18,local_88,lVar2,0,0);
if ((local_e0 == 0) ||
((*(long *)(local_58 + 0x10) != -0x8000000000000000 &&
(local_c8 + -1 <= *(long *)(local_58 + 0x10) + lVar2)))) break;
lVar2 = (local_f8 + 1) * 3;
local_f8 = bf_max(-*(long *)(local_58 + 0x10),lVar2 / 2,lVar2 % 2);
}
local_e0 = local_e0 & 3;
}
else {
bf_set(local_58,local_18,local_20 % (ulong)(local_c0 << 1));
local_e0 = 0;
}
uVar1 = *(uint *)(local_58 + 8);
bf_mul(local_58,local_58,local_58,local_c8,0);
bf_mul_2exp(local_58,local_c0 * -2,0x3fffffffffffffff,1);
bf_set_ui(local_b8,1);
for (local_d0 = local_d8; 0 < local_d0; local_d0 = local_d0 + -1) {
bf_set_ui(local_88,local_d0 * 2 + -1);
bf_mul_ui(local_88,local_88,local_d0 << 1,0x3fffffffffffffff);
bf_div(local_88,local_58,local_88,local_c8);
bf_mul(local_b8,local_b8,local_88,local_c8);
bf_neg(local_b8);
if (local_d0 != 1) {
bf_add_si(local_b8,local_b8,1,local_c8,0);
}
}
bf_delete(local_88);
for (local_d0 = 0; local_d0 < local_c0; local_d0 = local_d0 + 1) {
bf_mul(local_58,local_b8,local_b8,local_c8);
bf_mul_2exp(local_b8,1,0x3fffffffffffffff,1);
bf_add(local_b8,local_b8,local_58,local_c8);
bf_mul_2exp(local_b8,1,0x3fffffffffffffff,1);
}
bf_delete(local_58);
if (local_10 != 0) {
if ((local_e0 & 1) == 0) {
bf_add_si(local_10,local_b8,1,local_c8,0);
}
else {
bf_sqrt_sin(local_10,local_b8,local_c8);
*(uint *)(local_10 + 8) = uVar1 ^ 1;
}
*(uint *)(local_10 + 8) = *(uint *)(local_10 + 8) ^ (uint)((long)local_e0 >> 1);
}
if (local_8 != 0) {
if ((local_e0 & 1) == 0) {
bf_sqrt_sin(local_8,local_b8,local_c8);
*(uint *)(local_8 + 8) = uVar1;
}
else {
bf_add_si(local_8,local_b8,1,local_c8,0);
}
*(uint *)(local_8 + 8) = *(uint *)(local_8 + 8) ^ (uint)((long)local_e0 >> 1);
}
bf_delete(local_b8);
return 0x10;
}
|
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.