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
|
|---|---|---|---|---|---|---|---|---|---|---|---|
58,000
|
testing::internal::MatcherBase<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&>::operator=(testing::internal::MatcherBase<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&>&&)
|
giladroyz[P]FindPeaks/build_O3/_deps/googletest-src/googletest/include/gtest/gtest-matchers.h
|
MatcherBase& operator=(MatcherBase&& other) {
if (this == &other) return *this;
Destroy();
vtable_ = other.vtable_;
buffer_ = other.buffer_;
other.vtable_ = nullptr;
return *this;
}
|
O3
|
c
|
testing::internal::MatcherBase<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&>::operator=(testing::internal::MatcherBase<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&>&&):
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
cmpq %rsi, %rdi
je 0x35ec9
movq %rsi, %r14
movq 0x8(%rbx), %rax
testq %rax, %rax
je 0x35eb1
cmpq $0x0, 0x18(%rax)
je 0x35eb1
movq 0x10(%rbx), %rax
lock
decl (%rax)
jne 0x35eb1
movq 0x8(%rbx), %rax
movq 0x10(%rbx), %rdi
callq *0x18(%rax)
movq 0x8(%r14), %rax
movq %rax, 0x8(%rbx)
movq 0x10(%r14), %rax
movq %rax, 0x10(%rbx)
movq $0x0, 0x8(%r14)
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
|
_ZN7testing8internal11MatcherBaseINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEaSEOS8_:
push r14
push rbx
push rax
mov rbx, rdi
cmp rdi, rsi
jz short loc_35EC9
mov r14, rsi
mov rax, [rbx+8]
test rax, rax
jz short loc_35EB1
cmp qword ptr [rax+18h], 0
jz short loc_35EB1
mov rax, [rbx+10h]
lock dec dword ptr [rax]
jnz short loc_35EB1
mov rax, [rbx+8]
mov rdi, [rbx+10h]
call qword ptr [rax+18h]
loc_35EB1:
mov rax, [r14+8]
mov [rbx+8], rax
mov rax, [r14+10h]
mov [rbx+10h], rax
mov qword ptr [r14+8], 0
loc_35EC9:
mov rax, rbx
add rsp, 8
pop rbx
pop r14
retn
|
long long testing::internal::MatcherBase<std::string>::operator=(long long a1, long long a2)
{
long long v2; // rax
if ( a1 != a2 )
{
v2 = *(_QWORD *)(a1 + 8);
if ( v2 && *(_QWORD *)(v2 + 24) && !_InterlockedDecrement(*(volatile signed __int32 **)(a1 + 16)) )
(*(void ( **)(_QWORD))(*(_QWORD *)(a1 + 8) + 24LL))(*(_QWORD *)(a1 + 16));
*(_QWORD *)(a1 + 8) = *(_QWORD *)(a2 + 8);
*(_QWORD *)(a1 + 16) = *(_QWORD *)(a2 + 16);
*(_QWORD *)(a2 + 8) = 0LL;
}
return a1;
}
|
operator=:
PUSH R14
PUSH RBX
PUSH RAX
MOV RBX,RDI
CMP RDI,RSI
JZ 0x00135ec9
MOV R14,RSI
MOV RAX,qword ptr [RBX + 0x8]
TEST RAX,RAX
JZ 0x00135eb1
CMP qword ptr [RAX + 0x18],0x0
JZ 0x00135eb1
MOV RAX,qword ptr [RBX + 0x10]
DEC.LOCK dword ptr [RAX]
JNZ 0x00135eb1
MOV RAX,qword ptr [RBX + 0x8]
MOV RDI,qword ptr [RBX + 0x10]
CALL qword ptr [RAX + 0x18]
LAB_00135eb1:
MOV RAX,qword ptr [R14 + 0x8]
MOV qword ptr [RBX + 0x8],RAX
MOV RAX,qword ptr [R14 + 0x10]
MOV qword ptr [RBX + 0x10],RAX
MOV qword ptr [R14 + 0x8],0x0
LAB_00135ec9:
MOV RAX,RBX
ADD RSP,0x8
POP RBX
POP R14
RET
|
/* testing::internal::MatcherBase<std::__cxx11::string
>::TEMPNAMEPLACEHOLDERVALUE(testing::internal::MatcherBase<std::__cxx11::string >&&) */
MatcherBase<std::__cxx11::string> * __thiscall
testing::internal::MatcherBase<std::__cxx11::string>::operator=
(MatcherBase<std::__cxx11::string> *this,MatcherBase *param_1)
{
int *piVar1;
if (this != (MatcherBase<std::__cxx11::string> *)param_1) {
if ((*(long *)(this + 8) != 0) && (*(long *)(*(long *)(this + 8) + 0x18) != 0)) {
piVar1 = *(int **)(this + 0x10);
LOCK();
*piVar1 = *piVar1 + -1;
UNLOCK();
if (*piVar1 == 0) {
(**(code **)(*(long *)(this + 8) + 0x18))(*(int8 *)(this + 0x10));
}
}
*(int8 *)(this + 8) = *(int8 *)(param_1 + 8);
*(int8 *)(this + 0x10) = *(int8 *)(param_1 + 0x10);
*(int8 *)(param_1 + 8) = 0;
}
return this;
}
|
|
58,001
|
minja::Value::to_int() const
|
monkey531[P]llama/common/minja.hpp
|
int64_t to_int() const {
if (is_null()) return 0;
if (is_boolean()) return get<bool>() ? 1 : 0;
if (is_number()) return static_cast<int64_t>(get<double>());
if (is_string()) {
try {
return std::stol(get<std::string>());
} catch (const std::exception &) {
return 0;
}
}
return 0;
}
|
O3
|
cpp
|
minja::Value::to_int() const:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x30, %rsp
movq %rdi, %rsi
cmpq $0x0, 0x20(%rdi)
movb 0x40(%rdi), %al
jne 0xb0c80
cmpq $0x0, 0x10(%rsi)
jne 0xb0c80
testb %al, %al
jne 0xb0c80
cmpq $0x0, 0x30(%rsi)
jne 0xb0c80
xorl %ebx, %ebx
jmp 0xb0d22
cmpb $0x4, %al
jne 0xb0c94
movq %rsi, %rdi
callq 0x870b6
movzbl %al, %ebx
jmp 0xb0d22
leal -0x5(%rax), %ecx
cmpb $0x2, %cl
ja 0xb0cab
movq %rsi, %rdi
callq 0x8622c
cvttsd2si %xmm0, %rbx
jmp 0xb0d22
cmpb $0x3, %al
jne 0xb0c79
leaq 0x8(%rsp), %rdi
callq 0x871c6
movq 0x8(%rsp), %r15
callq 0x1a070
movq %rax, %r14
movl (%rax), %ebp
movl $0x0, (%rax)
leaq 0x28(%rsp), %r12
movq %r15, %rdi
movq %r12, %rsi
movl $0xa, %edx
callq 0x1ac70
cmpq %r15, (%r12)
je 0xb0d32
movq %rax, %rbx
movl (%r14), %eax
testl %eax, %eax
je 0xb0d04
cmpl $0x22, %eax
jne 0xb0d07
leaq 0x4045a(%rip), %rdi # 0xf1159
callq 0x1acd0
movl %ebp, (%r14)
leaq 0x18(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0xb0d22
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x1a8d0
movq %rbx, %rax
addq $0x30, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
leaq 0x40420(%rip), %rdi # 0xf1159
callq 0x1a570
movq %rdx, %r15
movq %rax, %rbx
jmp 0xb0d70
movq %rdx, %r15
movq %rax, %rbx
cmpl $0x0, (%r14)
jne 0xb0d55
movl %ebp, (%r14)
leaq 0x18(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0xb0d70
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x1a8d0
movq %rbx, %rdi
cmpl $0x1, %r15d
jne 0xb0d88
callq 0x1a390
callq 0x1ae80
jmp 0xb0c79
callq 0x1afc0
nop
|
_ZNK5minja5Value6to_intEv:
push rbp
push r15
push r14
push r12
push rbx
sub rsp, 30h
mov rsi, rdi
cmp qword ptr [rdi+20h], 0
mov al, [rdi+40h]
jnz short loc_B0C80
cmp qword ptr [rsi+10h], 0
jnz short loc_B0C80
test al, al
jnz short loc_B0C80
cmp qword ptr [rsi+30h], 0
jnz short loc_B0C80
loc_B0C79:
xor ebx, ebx
jmp loc_B0D22
loc_B0C80:
cmp al, 4
jnz short loc_B0C94
mov rdi, rsi
call _ZNK5minja5Value3getIbEET_v; minja::Value::get<bool>(void)
movzx ebx, al
jmp loc_B0D22
loc_B0C94:
lea ecx, [rax-5]
cmp cl, 2
ja short loc_B0CAB
mov rdi, rsi
call _ZNK5minja5Value3getIdEET_v; minja::Value::get<double>(void)
cvttsd2si rbx, xmm0
jmp short loc_B0D22
loc_B0CAB:
cmp al, 3
jnz short loc_B0C79
lea rdi, [rsp+58h+var_50]
call _ZNK5minja5Value3getINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEET_v; minja::Value::get<std::string>(void)
mov r15, [rsp+58h+var_50]
call ___errno_location
mov r14, rax
mov ebp, [rax]
mov dword ptr [rax], 0
lea r12, [rsp+58h+var_30]
mov rdi, r15
mov rsi, r12
mov edx, 0Ah
call _strtol
cmp [r12], r15
jz short loc_B0D32
mov rbx, rax
mov eax, [r14]
test eax, eax
jz short loc_B0D04
cmp eax, 22h ; '"'
jnz short loc_B0D07
lea rdi, aStol; "stol"
call __ZSt20__throw_out_of_rangePKc; std::__throw_out_of_range(char const*)
loc_B0D04:
mov [r14], ebp
loc_B0D07:
lea rax, [rsp+58h+var_40]
mov rdi, [rax-10h]; void *
cmp rdi, rax
jz short loc_B0D22
mov rsi, [rsp+58h+var_40]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_B0D22:
mov rax, rbx
add rsp, 30h
pop rbx
pop r12
pop r14
pop r15
pop rbp
retn
loc_B0D32:
lea rdi, aStol; "stol"
call __ZSt24__throw_invalid_argumentPKc; std::__throw_invalid_argument(char const*)
mov r15, rdx
mov rbx, rax
jmp short loc_B0D70
mov r15, rdx
mov rbx, rax
cmp dword ptr [r14], 0
jnz short loc_B0D55
mov [r14], ebp
loc_B0D55:
lea rax, [rsp+58h+var_40]
mov rdi, [rax-10h]; void *
cmp rdi, rax
jz short loc_B0D70
mov rsi, [rsp+58h+var_40]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_B0D70:
mov rdi, rbx; void *
cmp r15d, 1
jnz short loc_B0D88
call ___cxa_begin_catch
call ___cxa_end_catch
jmp loc_B0C79
loc_B0D88:
call __Unwind_Resume
|
long long minja::Value::to_int(minja::Value *this, double a2)
{
char v2; // al
long long v3; // rbx
long long *v4; // r15
int *v5; // r14
int v6; // ebp
long long v7; // rax
void *v9; // rdi
int v10; // edx
long long *v11; // [rsp+8h] [rbp-50h] BYREF
long long v12; // [rsp+18h] [rbp-40h] BYREF
long long *v13; // [rsp+28h] [rbp-30h] BYREF
v2 = *((_BYTE *)this + 64);
if ( !*((_QWORD *)this + 4) && !*((_QWORD *)this + 2) && !v2 && !*((_QWORD *)this + 6) )
return 0LL;
if ( v2 == 4 )
return (unsigned __int8)minja::Value::get<bool>(this);
if ( (unsigned __int8)(v2 - 5) <= 2u )
return (unsigned int)(int)minja::Value::get<double>(this);
if ( v2 != 3 )
return 0LL;
minja::Value::get<std::string>((long long)&v11, this);
v4 = v11;
v5 = (int *)__errno_location(a2);
v6 = *v5;
*v5 = 0;
v7 = strtol(v4, &v13, 10LL);
if ( v13 == v4 )
{
v9 = (void *)std::__throw_invalid_argument("stol");
if ( v10 != 1 )
_Unwind_Resume(v9);
__cxa_begin_catch(v9);
__cxa_end_catch();
return 0LL;
}
v3 = v7;
if ( *v5 )
{
if ( *v5 == 34 )
std::__throw_out_of_range("stol");
}
else
{
*v5 = v6;
}
if ( v11 != &v12 )
operator delete(v11, v12 + 1);
return v3;
}
|
to_int:
PUSH RBP
PUSH R15
PUSH R14
PUSH R12
PUSH RBX
SUB RSP,0x30
MOV RSI,RDI
CMP qword ptr [RDI + 0x20],0x0
MOV AL,byte ptr [RDI + 0x40]
JNZ 0x001b0c80
CMP qword ptr [RSI + 0x10],0x0
JNZ 0x001b0c80
TEST AL,AL
JNZ 0x001b0c80
CMP qword ptr [RSI + 0x30],0x0
JNZ 0x001b0c80
LAB_001b0c79:
XOR EBX,EBX
JMP 0x001b0d22
LAB_001b0c80:
CMP AL,0x4
JNZ 0x001b0c94
MOV RDI,RSI
CALL 0x001870b6
MOVZX EBX,AL
JMP 0x001b0d22
LAB_001b0c94:
LEA ECX,[RAX + -0x5]
CMP CL,0x2
JA 0x001b0cab
MOV RDI,RSI
CALL 0x0018622c
CVTTSD2SI RBX,XMM0
JMP 0x001b0d22
LAB_001b0cab:
CMP AL,0x3
JNZ 0x001b0c79
LAB_001b0caf:
LEA RDI,[RSP + 0x8]
CALL 0x001871c6
MOV R15,qword ptr [RSP + 0x8]
CALL 0x0011a070
MOV R14,RAX
MOV EBP,dword ptr [RAX]
MOV dword ptr [RAX],0x0
LEA R12,[RSP + 0x28]
MOV RDI,R15
MOV RSI,R12
MOV EDX,0xa
CALL 0x0011ac70
CMP qword ptr [R12],R15
JZ 0x001b0d32
MOV RBX,RAX
MOV EAX,dword ptr [R14]
TEST EAX,EAX
JZ 0x001b0d04
CMP EAX,0x22
JNZ 0x001b0d07
LAB_001b0cf8:
LEA RDI,[0x1f1159]
CALL 0x0011acd0
LAB_001b0d04:
MOV dword ptr [R14],EBP
LAB_001b0d07:
LEA RAX,[RSP + 0x18]
MOV RDI,qword ptr [RAX + -0x10]
CMP RDI,RAX
JZ 0x001b0d22
MOV RSI,qword ptr [RSP + 0x18]
INC RSI
CALL 0x0011a8d0
LAB_001b0d22:
MOV RAX,RBX
ADD RSP,0x30
POP RBX
POP R12
POP R14
POP R15
POP RBP
RET
LAB_001b0d32:
LEA RDI,[0x1f1159]
CALL 0x0011a570
LAB_001b0d3e:
MOV R15,RDX
MOV RBX,RAX
JMP 0x001b0d70
LAB_001b0d70:
MOV RDI,RBX
CMP R15D,0x1
JNZ 0x001b0d88
CALL 0x0011a390
CALL 0x0011ae80
JMP 0x001b0c79
LAB_001b0d88:
CALL 0x0011afc0
|
/* minja::Value::to_int() const */
ulong __thiscall minja::Value::to_int(Value *this)
{
Value VVar1;
int iVar2;
bool bVar3;
int *piVar4;
ulong uVar5;
double dVar6;
int1 auVar7 [12];
long *local_50;
long local_40 [2];
long *local_30;
VVar1 = this[0x40];
if ((((*(long *)(this + 0x20) == 0) && (*(long *)(this + 0x10) == 0)) && (VVar1 == (Value)0x0)) &&
(*(long *)(this + 0x30) == 0)) {
return 0;
}
if (VVar1 == (Value)0x4) {
bVar3 = get<bool>(this);
return (ulong)bVar3;
}
if ((byte)((char)VVar1 - 5U) < 3) {
dVar6 = get<double>(this);
return (long)dVar6;
}
if (VVar1 != (Value)0x3) {
return 0;
}
/* try { // try from 001b0caf to 001b0cb8 has its CatchHandler @ 001b0d3e */
get<std::__cxx11::string>();
piVar4 = __errno_location();
iVar2 = *piVar4;
*piVar4 = 0;
uVar5 = strtol((char *)local_50,(char **)&local_30,10);
if (local_30 == local_50) {
auVar7 = std::__throw_invalid_argument("stol");
/* catch(type#1 @ 0022e940, ) { ... } // from try @ 001b0caf with catch @
001b0d3e */
if (auVar7._8_4_ == 1) {
__cxa_begin_catch();
__cxa_end_catch();
return 0;
}
/* WARNING: Subroutine does not return */
_Unwind_Resume(auVar7._0_8_);
}
if (*piVar4 != 0) {
if (*piVar4 != 0x22) goto LAB_001b0d07;
/* try { // try from 001b0cf8 to 001b0d3d has its CatchHandler @ 001b0d46 */
std::__throw_out_of_range("stol");
}
*piVar4 = iVar2;
LAB_001b0d07:
if (local_50 != local_40) {
operator_delete(local_50,local_40[0] + 1);
return uVar5;
}
return uVar5;
}
|
|
58,002
|
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void> nlohmann::json_abi_v3_11_3::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>::parse<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&>(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, std::function<bool (int, nlohmann::json_abi_v3_11_3::detail::parse_event_t, nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>&)>, bool, bool)
|
llama.cpp/common/json.hpp
|
JSON_HEDLEY_WARN_UNUSED_RESULT
static basic_json parse(InputType&& i,
const parser_callback_t cb = nullptr,
const bool allow_exceptions = true,
const bool ignore_comments = false)
{
basic_json result;
parser(detail::input_adapter(std::forward<InputType>(i)), cb, allow_exceptions, ignore_comments).parse(true, result);
return result;
}
|
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> 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>::parse<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&>(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, std::function<bool (int, nlohmann::json_abi_v3_11_3::detail::parse_event_t, nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>&)>, bool, bool):
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xe8, %rsp
movl %r8d, %ebp
movl %ecx, %r14d
movq %rdx, %r13
movq %rsi, %r12
movq %rdi, %rbx
movb $0x0, (%rdi)
movq $0x0, 0x8(%rdi)
movl $0x1, %esi
callq 0x8400e
movq %rbx, %rdi
movl $0x1, %esi
callq 0x8400e
movq (%r12), %r15
movq 0x8(%r12), %r12
movq %rsp, %rdi
movq %r13, %rsi
callq 0x839b0
addq %r15, %r12
movzbl %r14b, %r8d
movzbl %bpl, %r9d
leaq 0x20(%rsp), %rdi
movq %rsp, %rcx
movq %r15, %rsi
movq %r12, %rdx
callq 0x83904
leaq 0x20(%rsp), %rdi
movl $0x1, %esi
movq %rbx, %rdx
callq 0x83a0e
leaq 0x48(%rsp), %r14
movq %r14, %rdi
callq 0x84256
movq -0x18(%r14), %rax
testq %rax, %rax
je 0x83883
leaq 0x20(%rsp), %rdi
movq %rdi, %rsi
movl $0x3, %edx
callq *%rax
movq 0x10(%rsp), %rax
testq %rax, %rax
je 0x8389a
movq %rsp, %rdi
movq %rdi, %rsi
movl $0x3, %edx
callq *%rax
movq %rbx, %rax
addq $0xe8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x838de
jmp 0x838de
movq %rax, %r14
leaq 0x20(%rsp), %rdi
callq 0x83fe0
jmp 0x838c5
movq %rax, %r14
movq 0x10(%rsp), %rax
testq %rax, %rax
je 0x838e9
movq %rsp, %rdi
movq %rdi, %rsi
movl $0x3, %edx
callq *%rax
jmp 0x838e9
movq %rax, %rdi
callq 0x2777d
movq %rax, %r14
movq %rbx, %rdi
xorl %esi, %esi
callq 0x8400e
movq %rbx, %rdi
callq 0x88728
movq %r14, %rdi
callq 0x20b00
nop
|
_ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE5parseIRKS9_EESD_OT_St8functionIFbiNS0_6detail13parse_event_tERSD_EEbb:
push rbp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 0E8h
mov ebp, r8d
mov r14d, ecx
mov r13, rdx
mov r12, rsi
mov rbx, rdi
mov byte ptr [rdi], 0
mov qword ptr [rdi+8], 0
mov esi, 1
call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE16assert_invariantEb; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::assert_invariant(bool)
mov rdi, rbx
mov esi, 1
call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE16assert_invariantEb; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::assert_invariant(bool)
mov r15, [r12]
mov r12, [r12+8]
mov rdi, rsp
mov rsi, r13
call _ZNSt8functionIFbiN8nlohmann16json_abi_v3_11_36detail13parse_event_tERNS1_10basic_jsonINS1_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES6_IhSaIhEEvEEEEC2ERKSJ_; 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> &)>::function(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> &)> const&)
add r12, r15
movzx r8d, r14b
movzx r9d, bpl
lea rdi, [rsp+118h+var_F8]
mov rcx, rsp
mov rsi, r15
mov rdx, r12
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE6parserINS0_6detail22iterator_input_adapterIN9__gnu_cxx17__normal_iteratorIPKcS9_EEEEEENSF_6parserISD_T_EESO_St8functionIFbiNSF_13parse_event_tERSD_EEbb; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::parser<nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>>(nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>,std::function<bool ()(int,nlohmann::json_abi_v3_11_3::detail::parse_event_t,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>&)>,bool,bool)
lea rdi, [rsp+118h+var_F8]; int
mov esi, 1
mov rdx, rbx
call _ZN8nlohmann16json_abi_v3_11_36detail6parserINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEENS1_22iterator_input_adapterIN9__gnu_cxx17__normal_iteratorIPKcSB_EEEEE5parseEbRSF_; nlohmann::json_abi_v3_11_3::detail::parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>>::parse(bool,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>&)
lea r14, [rsp+118h+var_D0]
mov rdi, r14
call _ZN8nlohmann16json_abi_v3_11_36detail5lexerINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEENS1_22iterator_input_adapterIN9__gnu_cxx17__normal_iteratorIPKcSB_EEEEED2Ev; nlohmann::json_abi_v3_11_3::detail::lexer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>>::~lexer()
mov rax, [r14-18h]
test rax, rax
jz short loc_83883
lea rdi, [rsp+118h+var_F8]
mov rsi, rdi
mov edx, 3
call rax
loc_83883:
mov rax, [rsp+118h+var_108]
test rax, rax
jz short loc_8389A
mov rdi, rsp
mov rsi, rdi
mov edx, 3
call rax
loc_8389A:
mov rax, rbx
add rsp, 0E8h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
jmp short loc_838DE
jmp short loc_838DE
mov r14, rax
lea rdi, [rsp+118h+var_F8]
call _ZN8nlohmann16json_abi_v3_11_36detail6parserINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEENS1_22iterator_input_adapterIN9__gnu_cxx17__normal_iteratorIPKcSB_EEEEED2Ev; nlohmann::json_abi_v3_11_3::detail::parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>>::~parser()
jmp short loc_838C5
mov r14, rax
loc_838C5:
mov rax, [rsp+118h+var_108]
test rax, rax
jz short loc_838E9
mov rdi, rsp
mov rsi, rdi
mov edx, 3
call rax
jmp short loc_838E9
loc_838DE:
mov rdi, rax
call __clang_call_terminate
mov r14, rax
loc_838E9:
mov rdi, rbx
xor esi, esi
call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE16assert_invariantEb; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::assert_invariant(bool)
mov rdi, rbx
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE4dataD2Ev; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::data::~data()
mov rdi, r14
call __Unwind_Resume
|
long long nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::parse<std::string const&>(
long long a1,
long long *a2,
long long a3,
unsigned __int8 a4,
unsigned __int8 a5)
{
long long v8; // r15
long long v9; // r12
_BYTE v11[16]; // [rsp+0h] [rbp-118h] BYREF
void ( *v12)(_BYTE *, _BYTE *, long long); // [rsp+10h] [rbp-108h]
int v13[4]; // [rsp+20h] [rbp-F8h] BYREF
void ( *v14)(int *, int *, long long); // [rsp+30h] [rbp-E8h]
_BYTE v15[208]; // [rsp+48h] [rbp-D0h] BYREF
*(_BYTE *)a1 = 0;
*(_QWORD *)(a1 + 8) = 0LL;
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::assert_invariant(
a1,
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>::assert_invariant(
a1,
1LL);
v8 = *a2;
v9 = a2[1];
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,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> &)>::function(
v11,
a3);
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::parser<nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>>(
v13,
v8,
v8 + v9,
v11,
a4,
a5);
nlohmann::json_abi_v3_11_3::detail::parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>>::parse((int)v13);
nlohmann::json_abi_v3_11_3::detail::lexer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>>::~lexer(
v15,
1LL);
if ( v14 )
v14(v13, v13, 3LL);
if ( v12 )
v12(v11, v11, 3LL);
return a1;
}
|
parse<std::__cxx11::string_const&>:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0xe8
MOV EBP,R8D
MOV R14D,ECX
MOV R13,RDX
MOV R12,RSI
MOV RBX,RDI
MOV byte ptr [RDI],0x0
MOV qword ptr [RDI + 0x8],0x0
MOV ESI,0x1
CALL 0x0018400e
MOV RDI,RBX
MOV ESI,0x1
CALL 0x0018400e
MOV R15,qword ptr [R12]
MOV R12,qword ptr [R12 + 0x8]
LAB_00183823:
MOV RDI,RSP
MOV RSI,R13
CALL 0x001839b0
ADD R12,R15
LAB_00183831:
MOVZX R8D,R14B
MOVZX R9D,BPL
LEA RDI,[RSP + 0x20]
MOV RCX,RSP
MOV RSI,R15
MOV RDX,R12
CALL 0x00183904
LAB_0018384c:
LEA RDI,[RSP + 0x20]
MOV ESI,0x1
MOV RDX,RBX
CALL 0x00183a0e
LEA R14,[RSP + 0x48]
MOV RDI,R14
CALL 0x00184256
MOV RAX,qword ptr [R14 + -0x18]
TEST RAX,RAX
JZ 0x00183883
LAB_00183874:
LEA RDI,[RSP + 0x20]
MOV RSI,RDI
MOV EDX,0x3
CALL RAX
LAB_00183883:
MOV RAX,qword ptr [RSP + 0x10]
TEST RAX,RAX
JZ 0x0018389a
LAB_0018388d:
MOV RDI,RSP
MOV RSI,RDI
MOV EDX,0x3
CALL RAX
LAB_0018389a:
MOV RAX,RBX
ADD RSP,0xe8
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
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> 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 const&>(std::__cxx11::string const&,
std::function<bool (int, nlohmann::json_abi_v3_11_3::detail::parse_event_t,
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector,
std::__cxx11::string, bool, long, unsigned long, double, std::allocator,
nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned
char> >, void>&)>, bool, bool) */
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
* __thiscall
nlohmann::json_abi_v3_11_3::
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::parse<std::__cxx11::string_const&>
(basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
*this,long *param_1,function *param_3,int1 param_4,int1 param_5)
{
long lVar1;
long lVar2;
function<bool(int,nlohmann::json_abi_v3_11_3::detail::parse_event_t,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>&)>
afStack_118 [16];
code *local_108;
parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char_const*,std::__cxx11::string>>>
local_f8 [16];
code *local_e8;
lexer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char_const*,std::__cxx11::string>>>
local_d0 [160];
*this = (basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
)0x0;
*(int8 *)(this + 8) = 0;
assert_invariant(SUB81(this,0));
assert_invariant(SUB81(this,0));
lVar1 = *param_1;
lVar2 = param_1[1];
/* try { // try from 00183823 to 0018382d has its CatchHandler @ 001838e6 */
std::
function<bool(int,nlohmann::json_abi_v3_11_3::detail::parse_event_t,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>&)>
::function(afStack_118,param_3);
/* try { // try from 00183831 to 0018384b has its CatchHandler @ 001838c2 */
parser<nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char_const*,std::__cxx11::string>>>
(local_f8,lVar1,lVar2 + lVar1,afStack_118,param_4,param_5);
/* try { // try from 0018384c to 0018385d has its CatchHandler @ 001838b3 */
detail::
parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char_const*,std::__cxx11::string>>>
::parse(local_f8,true,(basic_json *)this);
detail::
lexer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char_const*,std::__cxx11::string>>>
::~lexer(local_d0);
if (local_e8 != (code *)0x0) {
/* try { // try from 00183874 to 00183882 has its CatchHandler @ 001838b1 */
(*local_e8)(local_f8,local_f8,3);
}
if (local_108 != (code *)0x0) {
/* try { // try from 0018388d to 00183899 has its CatchHandler @ 001838af */
(*local_108)(afStack_118,afStack_118,3);
}
return this;
}
|
|
58,003
|
js_parseFloat
|
bluesky950520[P]quickjs/quickjs.c
|
static JSValue js_parseFloat(JSContext *ctx, JSValue this_val,
int argc, JSValue *argv)
{
const char *str;
JSValue ret;
int flags;
size_t len;
str = JS_ToCStringLen(ctx, &len, argv[0]);
if (!str)
return JS_EXCEPTION;
flags = ATOD_TRIM_SPACES | ATOD_ACCEPT_FLOAT | ATOD_ACCEPT_INFINITY;
ret = js_atof(ctx, str, len, NULL, 10, flags);
JS_FreeCString(ctx, str);
return ret;
}
|
O1
|
c
|
js_parseFloat:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %r15
movq (%r8), %rdx
movq 0x8(%r8), %rcx
movq %rsp, %rsi
xorl %ebx, %ebx
xorl %r8d, %r8d
callq 0x24c53
testq %rax, %rax
je 0x7d467
movq %rax, %r12
movq (%rsp), %rdx
movq %r15, %rdi
movq %rax, %rsi
xorl %ecx, %ecx
movl $0xa, %r8d
movl $0xd, %r9d
callq 0x4266a
movq %rax, %rbx
movq %rdx, %r14
movq 0x18(%r15), %rdi
movl -0x18(%r12), %eax
leal -0x1(%rax), %ecx
movl %ecx, -0x18(%r12)
cmpl $0x1, %eax
jg 0x7d46d
addq $-0x18, %r12
movq %r12, %rsi
movq $-0x7, %rdx
callq 0x252c2
jmp 0x7d46d
movl $0x6, %r14d
movq %rbx, %rax
movq %r14, %rdx
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
|
js_parseFloat:
push r15
push r14
push r12
push rbx
push rax
mov r15, rdi
mov rdx, [r8]
mov rcx, [r8+8]
mov rsi, rsp
xor ebx, ebx
xor r8d, r8d
call JS_ToCStringLen2
test rax, rax
jz short loc_7D467
mov r12, rax
mov rdx, [rsp+28h+var_28]
mov rdi, r15
mov rsi, rax
xor ecx, ecx
mov r8d, 0Ah
mov r9d, 0Dh
call js_atof
mov rbx, rax
mov r14, rdx
mov rdi, [r15+18h]
mov eax, [r12-18h]
lea ecx, [rax-1]
mov [r12-18h], ecx
cmp eax, 1
jg short loc_7D46D
add r12, 0FFFFFFFFFFFFFFE8h
mov rsi, r12
mov rdx, 0FFFFFFFFFFFFFFF9h
call js_free_value_rt
jmp short loc_7D46D
loc_7D467:
mov r14d, 6
loc_7D46D:
mov rax, rbx
mov rdx, r14
add rsp, 8
pop rbx
pop r12
pop r14
pop r15
retn
|
long long js_parseFloat(long long a1, double a2, __m128d a3, long long a4, long long a5, long long a6, long long *a7)
{
long long v7; // rax
long long v8; // rbx
unsigned __int8 *v9; // rax
unsigned __int8 *v10; // r12
long long v11; // r8
long long v12; // r9
long long v13; // rdi
int v14; // eax
long long v15; // rcx
long long v17[5]; // [rsp+0h] [rbp-28h] BYREF
v17[0] = v7;
v8 = 0LL;
v9 = (unsigned __int8 *)JS_ToCStringLen2(a1, v17, *a7, a7[1], 0);
if ( v9 )
{
v10 = v9;
v8 = js_atof(a1, v9, v17[0], 0LL, 10, 13, a2, a3);
v13 = *(_QWORD *)(a1 + 24);
v14 = *((_DWORD *)v10 - 6);
v15 = (unsigned int)(v14 - 1);
*((_DWORD *)v10 - 6) = v15;
if ( v14 <= 1 )
js_free_value_rt(v13, (_QWORD *)v10 - 3, -7LL, v15, v11, v12);
}
return v8;
}
|
js_parseFloat:
PUSH R15
PUSH R14
PUSH R12
PUSH RBX
PUSH RAX
MOV R15,RDI
MOV RDX,qword ptr [R8]
MOV RCX,qword ptr [R8 + 0x8]
MOV RSI,RSP
XOR EBX,EBX
XOR R8D,R8D
CALL 0x00124c53
TEST RAX,RAX
JZ 0x0017d467
MOV R12,RAX
MOV RDX,qword ptr [RSP]
MOV RDI,R15
MOV RSI,RAX
XOR ECX,ECX
MOV R8D,0xa
MOV R9D,0xd
CALL 0x0014266a
MOV RBX,RAX
MOV R14,RDX
MOV RDI,qword ptr [R15 + 0x18]
MOV EAX,dword ptr [R12 + -0x18]
LEA ECX,[RAX + -0x1]
MOV dword ptr [R12 + -0x18],ECX
CMP EAX,0x1
JG 0x0017d46d
ADD R12,-0x18
MOV RSI,R12
MOV RDX,-0x7
CALL 0x001252c2
JMP 0x0017d46d
LAB_0017d467:
MOV R14D,0x6
LAB_0017d46d:
MOV RAX,RBX
MOV RDX,R14
ADD RSP,0x8
POP RBX
POP R12
POP R14
POP R15
RET
|
int1 [16] js_parseFloat(long param_1)
{
int iVar1;
int8 uVar2;
int8 in_RAX;
long lVar3;
int8 *in_R8;
int1 auVar4 [16];
int8 local_28;
local_28 = in_RAX;
lVar3 = JS_ToCStringLen2(param_1,&local_28,*in_R8,in_R8[1],0);
if (lVar3 == 0) {
auVar4 = ZEXT816(6) << 0x40;
}
else {
auVar4 = js_atof(param_1,lVar3,local_28,0,10,0xd);
uVar2 = *(int8 *)(param_1 + 0x18);
iVar1 = *(int *)(lVar3 + -0x18);
*(int *)(lVar3 + -0x18) = iVar1 + -1;
if (iVar1 < 2) {
js_free_value_rt(uVar2,lVar3 + -0x18,0xfffffffffffffff9);
}
}
return auVar4;
}
|
|
58,004
|
js_parseFloat
|
bluesky950520[P]quickjs/quickjs.c
|
static JSValue js_parseFloat(JSContext *ctx, JSValue this_val,
int argc, JSValue *argv)
{
const char *str;
JSValue ret;
int flags;
size_t len;
str = JS_ToCStringLen(ctx, &len, argv[0]);
if (!str)
return JS_EXCEPTION;
flags = ATOD_TRIM_SPACES | ATOD_ACCEPT_FLOAT | ATOD_ACCEPT_INFINITY;
ret = js_atof(ctx, str, len, NULL, 10, flags);
JS_FreeCString(ctx, str);
return ret;
}
|
O2
|
c
|
js_parseFloat:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %rbx
movq (%r8), %rdx
movq 0x8(%r8), %rcx
movq %rsp, %rsi
callq 0x3a79e
testq %rax, %rax
je 0x699d2
movq %rax, %r14
movq (%rsp), %rdx
pushq $0xa
popq %r8
pushq $0xd
popq %r9
movq %rbx, %rdi
movq %rax, %rsi
xorl %ecx, %ecx
callq 0x3a7a6
movq %rax, %r12
movq %rdx, %r15
movq %rbx, %rdi
movq %r14, %rsi
callq 0x1ec07
jmp 0x699d9
pushq $0x6
popq %r15
xorl %r12d, %r12d
movq %r12, %rax
movq %r15, %rdx
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
|
js_parseFloat:
push r15
push r14
push r12
push rbx
push rax
mov rbx, rdi
mov rdx, [r8]
mov rcx, [r8+8]
mov rsi, rsp
call JS_ToCStringLen_0
test rax, rax
jz short loc_699D2
mov r14, rax
mov rdx, [rsp+28h+var_28]
push 0Ah
pop r8
push 0Dh
pop r9
mov rdi, rbx
mov rsi, rax
xor ecx, ecx
call js_atof
mov r12, rax
mov r15, rdx
mov rdi, rbx
mov rsi, r14
call JS_FreeCString
jmp short loc_699D9
loc_699D2:
push 6
pop r15
xor r12d, r12d
loc_699D9:
mov rax, r12
mov rdx, r15
add rsp, 8
pop rbx
pop r12
pop r14
pop r15
retn
|
long long js_parseFloat(long long a1, long long a2, long long a3, long long a4, long long *a5)
{
long long v5; // rax
unsigned __int8 *v6; // rax
long long v7; // r14
long long v8; // r12
long long v10[5]; // [rsp+0h] [rbp-28h] BYREF
v10[0] = v5;
v6 = (unsigned __int8 *)JS_ToCStringLen_0(a1, v10, *a5, a5[1]);
if ( !v6 )
return 0LL;
v7 = (long long)v6;
v8 = js_atof(a1, v6, v10[0], 0LL, 0xAu, 13);
JS_FreeCString(a1, v7);
return v8;
}
|
js_parseFloat:
PUSH R15
PUSH R14
PUSH R12
PUSH RBX
PUSH RAX
MOV RBX,RDI
MOV RDX,qword ptr [R8]
MOV RCX,qword ptr [R8 + 0x8]
MOV RSI,RSP
CALL 0x0013a79e
TEST RAX,RAX
JZ 0x001699d2
MOV R14,RAX
MOV RDX,qword ptr [RSP]
PUSH 0xa
POP R8
PUSH 0xd
POP R9
MOV RDI,RBX
MOV RSI,RAX
XOR ECX,ECX
CALL 0x0013a7a6
MOV R12,RAX
MOV R15,RDX
MOV RDI,RBX
MOV RSI,R14
CALL 0x0011ec07
JMP 0x001699d9
LAB_001699d2:
PUSH 0x6
POP R15
XOR R12D,R12D
LAB_001699d9:
MOV RAX,R12
MOV RDX,R15
ADD RSP,0x8
POP RBX
POP R12
POP R14
POP R15
RET
|
int1 [16] js_parseFloat(int8 param_1)
{
int8 in_RAX;
long lVar1;
int8 *in_R8;
int1 auVar2 [16];
int8 local_28;
local_28 = in_RAX;
lVar1 = JS_ToCStringLen(param_1,&local_28,*in_R8,in_R8[1]);
if (lVar1 == 0) {
auVar2 = ZEXT816(6) << 0x40;
}
else {
auVar2 = js_atof(param_1,lVar1,local_28,0,10,0xd);
JS_FreeCString(param_1,lVar1);
}
return auVar2;
}
|
|
58,005
|
rtree_find_next
|
eloqsql/storage/myisam/rt_index.c
|
int rtree_find_next(MI_INFO *info, uint keynr, 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 (info->update & HA_STATE_DELETED)
return rtree_find_first(info, keynr, info->lastkey, info->lastkey_length,
search_flag);
if (!info->buff_used)
{
uchar *key= info->int_keypos;
while (key < info->int_maxpos)
{
if (!rtree_key_cmp(keyinfo->seg, info->first_mbr_key, key,
info->last_rkey_length, search_flag))
{
uchar *after_key = key + keyinfo->keylength;
info->lastpos= _mi_dpos(info, 0, after_key);
memcpy(info->lastkey, key, info->lastkey_length);
if (after_key < info->int_maxpos)
info->int_keypos= after_key;
else
info->buff_used= 1;
return 0;
}
key+= keyinfo->keylength;
}
}
if ((root = info->s->state.key_root[keynr]) == HA_OFFSET_ERROR)
{
my_errno= HA_ERR_END_OF_FILE;
return -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_next:
pushq %rbp
movq %rsp, %rbp
subq $0x40, %rsp
movq %rdi, -0x10(%rbp)
movl %esi, -0x14(%rbp)
movl %edx, -0x18(%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, -0x30(%rbp)
movl $0x400, -0x24(%rbp) # imm = 0x400
movl $0x400, -0x18(%rbp) # imm = 0x400
movq -0x10(%rbp), %rax
movl 0x1d0(%rax), %eax
andl $0x8, %eax
cmpl $0x0, %eax
je 0xcab1b
movq -0x10(%rbp), %rdi
movl -0x14(%rbp), %esi
movq -0x10(%rbp), %rax
movq 0x108(%rax), %rdx
movq -0x10(%rbp), %rax
movl 0x1d8(%rax), %ecx
movl -0x18(%rbp), %r8d
callq 0xca520
movl %eax, -0x4(%rbp)
jmp 0xcac79
movq -0x10(%rbp), %rax
cmpb $0x0, 0x33d(%rax)
jne 0xcac29
movq -0x10(%rbp), %rax
movq 0x128(%rax), %rax
movq %rax, -0x38(%rbp)
movq -0x38(%rbp), %rax
movq -0x10(%rbp), %rcx
cmpq 0x130(%rcx), %rax
jae 0xcac27
movq -0x30(%rbp), %rax
movq 0x28(%rax), %rdi
movq -0x10(%rbp), %rax
movq 0x118(%rax), %rsi
movq -0x38(%rbp), %rdx
movq -0x10(%rbp), %rax
movl 0x1dc(%rax), %ecx
movl -0x18(%rbp), %r8d
callq 0xccf00
cmpl $0x0, %eax
jne 0xcac0c
movq -0x38(%rbp), %rax
movq -0x30(%rbp), %rcx
movzwl 0x12(%rcx), %ecx
movslq %ecx, %rcx
addq %rcx, %rax
movq %rax, -0x40(%rbp)
movq -0x10(%rbp), %rdi
movq -0x40(%rbp), %rdx
xorl %esi, %esi
callq 0xc0fb0
movq %rax, %rcx
movq -0x10(%rbp), %rax
movq %rcx, 0x170(%rax)
movq -0x10(%rbp), %rax
movq 0x108(%rax), %rdi
movq -0x38(%rbp), %rsi
movq -0x10(%rbp), %rax
movl 0x1d8(%rax), %eax
movl %eax, %edx
callq 0x2a0b0
movq -0x40(%rbp), %rax
movq -0x10(%rbp), %rcx
cmpq 0x130(%rcx), %rax
jae 0xcabf8
movq -0x40(%rbp), %rcx
movq -0x10(%rbp), %rax
movq %rcx, 0x128(%rax)
jmp 0xcac03
movq -0x10(%rbp), %rax
movb $0x1, 0x33d(%rax)
movl $0x0, -0x4(%rbp)
jmp 0xcac79
movq -0x30(%rbp), %rax
movzwl 0x12(%rax), %ecx
movq -0x38(%rbp), %rax
movslq %ecx, %rcx
addq %rcx, %rax
movq %rax, -0x38(%rbp)
jmp 0xcab3b
jmp 0xcac29
movq -0x10(%rbp), %rax
movq (%rax), %rax
movq 0x98(%rax), %rax
movl -0x14(%rbp), %ecx
movq (%rax,%rcx,8), %rax
movq %rax, -0x20(%rbp)
cmpq $-0x1, %rax
jne 0xcac5c
callq 0xfe880
movl $0x89, (%rax)
movl $0xffffffff, -0x4(%rbp) # imm = 0xFFFFFFFF
jmp 0xcac79
movq -0x10(%rbp), %rdi
movq -0x30(%rbp), %rsi
movl -0x18(%rbp), %edx
movl -0x24(%rbp), %ecx
movq -0x20(%rbp), %r8
xorl %r9d, %r9d
callq 0xca610
movl %eax, -0x4(%rbp)
movl -0x4(%rbp), %eax
addq $0x40, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
|
rtree_find_next:
push rbp
mov rbp, rsp
sub rsp, 40h
mov [rbp+var_10], rdi
mov [rbp+var_14], esi
mov [rbp+var_18], edx
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_30], rax
mov [rbp+var_24], 400h
mov [rbp+var_18], 400h
mov rax, [rbp+var_10]
mov eax, [rax+1D0h]
and eax, 8
cmp eax, 0
jz short loc_CAB1B
mov rdi, [rbp+var_10]
mov esi, [rbp+var_14]
mov rax, [rbp+var_10]
mov rdx, [rax+108h]
mov rax, [rbp+var_10]
mov ecx, [rax+1D8h]
mov r8d, [rbp+var_18]
call rtree_find_first
mov [rbp+var_4], eax
jmp loc_CAC79
loc_CAB1B:
mov rax, [rbp+var_10]
cmp byte ptr [rax+33Dh], 0
jnz loc_CAC29
mov rax, [rbp+var_10]
mov rax, [rax+128h]
mov [rbp+var_38], rax
loc_CAB3B:
mov rax, [rbp+var_38]
mov rcx, [rbp+var_10]
cmp rax, [rcx+130h]
jnb loc_CAC27
mov rax, [rbp+var_30]
mov rdi, [rax+28h]
mov rax, [rbp+var_10]
mov rsi, [rax+118h]
mov rdx, [rbp+var_38]
mov rax, [rbp+var_10]
mov ecx, [rax+1DCh]
mov r8d, [rbp+var_18]
call rtree_key_cmp
cmp eax, 0
jnz loc_CAC0C
mov rax, [rbp+var_38]
mov rcx, [rbp+var_30]
movzx ecx, word ptr [rcx+12h]
movsxd rcx, ecx
add rax, rcx
mov [rbp+var_40], rax
mov rdi, [rbp+var_10]
mov rdx, [rbp+var_40]
xor esi, esi
call _mi_dpos
mov rcx, rax
mov rax, [rbp+var_10]
mov [rax+170h], rcx
mov rax, [rbp+var_10]
mov rdi, [rax+108h]
mov rsi, [rbp+var_38]
mov rax, [rbp+var_10]
mov eax, [rax+1D8h]
mov edx, eax
call _memcpy
mov rax, [rbp+var_40]
mov rcx, [rbp+var_10]
cmp rax, [rcx+130h]
jnb short loc_CABF8
mov rcx, [rbp+var_40]
mov rax, [rbp+var_10]
mov [rax+128h], rcx
jmp short loc_CAC03
loc_CABF8:
mov rax, [rbp+var_10]
mov byte ptr [rax+33Dh], 1
loc_CAC03:
mov [rbp+var_4], 0
jmp short loc_CAC79
loc_CAC0C:
mov rax, [rbp+var_30]
movzx ecx, word ptr [rax+12h]
mov rax, [rbp+var_38]
movsxd rcx, ecx
add rax, rcx
mov [rbp+var_38], rax
jmp loc_CAB3B
loc_CAC27:
jmp short $+2
loc_CAC29:
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_20], rax
cmp rax, 0FFFFFFFFFFFFFFFFh
jnz short loc_CAC5C
call _my_thread_var
mov dword ptr [rax], 89h
mov [rbp+var_4], 0FFFFFFFFh
jmp short loc_CAC79
loc_CAC5C:
mov rdi, [rbp+var_10]
mov rsi, [rbp+var_30]
mov edx, [rbp+var_18]
mov ecx, [rbp+var_24]
mov r8, [rbp+var_20]
xor r9d, r9d
call rtree_find_req
mov [rbp+var_4], eax
loc_CAC79:
mov eax, [rbp+var_4]
add rsp, 40h
pop rbp
retn
|
long long rtree_find_next(long long a1, const char *a2)
{
unsigned long long v3; // [rsp+0h] [rbp-40h]
unsigned long long i; // [rsp+8h] [rbp-38h]
long long v5; // [rsp+10h] [rbp-30h]
long long v6; // [rsp+20h] [rbp-20h]
unsigned int v7; // [rsp+2Ch] [rbp-14h]
_QWORD *v8; // [rsp+30h] [rbp-10h]
v8 = (_QWORD *)a1;
v7 = (unsigned int)a2;
v5 = 112LL * (unsigned int)a2 + *(_QWORD *)(*(_QWORD *)a1 + 536LL);
if ( (*(_DWORD *)(a1 + 464) & 8) != 0 )
{
return (unsigned int)rtree_find_first(
a1,
(const char *)(unsigned int)a2,
*(_QWORD *)(a1 + 264),
*(_DWORD *)(a1 + 472));
}
else
{
if ( !*(_BYTE *)(a1 + 829) )
{
for ( i = *(_QWORD *)(a1 + 296); i < v8[38]; i += *(unsigned __int16 *)(v5 + 18) )
{
a1 = *(_QWORD *)(v5 + 40);
a2 = (const char *)v8[35];
if ( !(unsigned int)rtree_key_cmp(a1, a2, i, *((unsigned int *)v8 + 119), 1024LL) )
{
v3 = *(unsigned __int16 *)(v5 + 18) + i;
v8[46] = mi_dpos((long long)v8, 0, v3);
memcpy(v8[33], i, *((unsigned int *)v8 + 118));
if ( v3 >= v8[38] )
*((_BYTE *)v8 + 829) = 1;
else
v8[37] = v3;
return 0;
}
}
}
v6 = *(_QWORD *)(*(_QWORD *)(*v8 + 152LL) + 8LL * v7);
if ( v6 == -1 )
{
*(_DWORD *)my_thread_var(a1, a2) = 137;
return (unsigned int)-1;
}
else
{
return (unsigned int)rtree_find_req(v8, v5, 0x400u, 0x400u, v6, 0);
}
}
}
|
rtree_find_next:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x40
MOV qword ptr [RBP + -0x10],RDI
MOV dword ptr [RBP + -0x14],ESI
MOV dword ptr [RBP + -0x18],EDX
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 + -0x30],RAX
MOV dword ptr [RBP + -0x24],0x400
MOV dword ptr [RBP + -0x18],0x400
MOV RAX,qword ptr [RBP + -0x10]
MOV EAX,dword ptr [RAX + 0x1d0]
AND EAX,0x8
CMP EAX,0x0
JZ 0x001cab1b
MOV RDI,qword ptr [RBP + -0x10]
MOV ESI,dword ptr [RBP + -0x14]
MOV RAX,qword ptr [RBP + -0x10]
MOV RDX,qword ptr [RAX + 0x108]
MOV RAX,qword ptr [RBP + -0x10]
MOV ECX,dword ptr [RAX + 0x1d8]
MOV R8D,dword ptr [RBP + -0x18]
CALL 0x001ca520
MOV dword ptr [RBP + -0x4],EAX
JMP 0x001cac79
LAB_001cab1b:
MOV RAX,qword ptr [RBP + -0x10]
CMP byte ptr [RAX + 0x33d],0x0
JNZ 0x001cac29
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX + 0x128]
MOV qword ptr [RBP + -0x38],RAX
LAB_001cab3b:
MOV RAX,qword ptr [RBP + -0x38]
MOV RCX,qword ptr [RBP + -0x10]
CMP RAX,qword ptr [RCX + 0x130]
JNC 0x001cac27
MOV RAX,qword ptr [RBP + -0x30]
MOV RDI,qword ptr [RAX + 0x28]
MOV RAX,qword ptr [RBP + -0x10]
MOV RSI,qword ptr [RAX + 0x118]
MOV RDX,qword ptr [RBP + -0x38]
MOV RAX,qword ptr [RBP + -0x10]
MOV ECX,dword ptr [RAX + 0x1dc]
MOV R8D,dword ptr [RBP + -0x18]
CALL 0x001ccf00
CMP EAX,0x0
JNZ 0x001cac0c
MOV RAX,qword ptr [RBP + -0x38]
MOV RCX,qword ptr [RBP + -0x30]
MOVZX ECX,word ptr [RCX + 0x12]
MOVSXD RCX,ECX
ADD RAX,RCX
MOV qword ptr [RBP + -0x40],RAX
MOV RDI,qword ptr [RBP + -0x10]
MOV RDX,qword ptr [RBP + -0x40]
XOR ESI,ESI
CALL 0x001c0fb0
MOV RCX,RAX
MOV RAX,qword ptr [RBP + -0x10]
MOV qword ptr [RAX + 0x170],RCX
MOV RAX,qword ptr [RBP + -0x10]
MOV RDI,qword ptr [RAX + 0x108]
MOV RSI,qword ptr [RBP + -0x38]
MOV RAX,qword ptr [RBP + -0x10]
MOV EAX,dword ptr [RAX + 0x1d8]
MOV EDX,EAX
CALL 0x0012a0b0
MOV RAX,qword ptr [RBP + -0x40]
MOV RCX,qword ptr [RBP + -0x10]
CMP RAX,qword ptr [RCX + 0x130]
JNC 0x001cabf8
MOV RCX,qword ptr [RBP + -0x40]
MOV RAX,qword ptr [RBP + -0x10]
MOV qword ptr [RAX + 0x128],RCX
JMP 0x001cac03
LAB_001cabf8:
MOV RAX,qword ptr [RBP + -0x10]
MOV byte ptr [RAX + 0x33d],0x1
LAB_001cac03:
MOV dword ptr [RBP + -0x4],0x0
JMP 0x001cac79
LAB_001cac0c:
MOV RAX,qword ptr [RBP + -0x30]
MOVZX ECX,word ptr [RAX + 0x12]
MOV RAX,qword ptr [RBP + -0x38]
MOVSXD RCX,ECX
ADD RAX,RCX
MOV qword ptr [RBP + -0x38],RAX
JMP 0x001cab3b
LAB_001cac27:
JMP 0x001cac29
LAB_001cac29:
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 + -0x20],RAX
CMP RAX,-0x1
JNZ 0x001cac5c
CALL 0x001fe880
MOV dword ptr [RAX],0x89
MOV dword ptr [RBP + -0x4],0xffffffff
JMP 0x001cac79
LAB_001cac5c:
MOV RDI,qword ptr [RBP + -0x10]
MOV RSI,qword ptr [RBP + -0x30]
MOV EDX,dword ptr [RBP + -0x18]
MOV ECX,dword ptr [RBP + -0x24]
MOV R8,qword ptr [RBP + -0x20]
XOR R9D,R9D
CALL 0x001ca610
MOV dword ptr [RBP + -0x4],EAX
LAB_001cac79:
MOV EAX,dword ptr [RBP + -0x4]
ADD RSP,0x40
POP RBP
RET
|
int4 rtree_find_next(long *param_1,uint param_2)
{
long lVar1;
int iVar2;
long lVar3;
ulong uVar4;
int4 *puVar5;
void *local_40;
int4 local_c;
lVar3 = *(long *)(*param_1 + 0x218) + (ulong)param_2 * 0x70;
if ((*(uint *)(param_1 + 0x3a) & 8) == 0) {
if (*(char *)((long)param_1 + 0x33d) == '\0') {
for (local_40 = (void *)param_1[0x25]; local_40 < (void *)param_1[0x26];
local_40 = (void *)((long)local_40 + (long)(int)(uint)*(ushort *)(lVar3 + 0x12))) {
iVar2 = rtree_key_cmp(*(int8 *)(lVar3 + 0x28),param_1[0x23],local_40,
*(int4 *)((long)param_1 + 0x1dc),0x400);
if (iVar2 == 0) {
uVar4 = (long)local_40 + (long)(int)(uint)*(ushort *)(lVar3 + 0x12);
lVar3 = _mi_dpos(param_1,0,uVar4);
param_1[0x2e] = lVar3;
memcpy((void *)param_1[0x21],local_40,(ulong)*(uint *)(param_1 + 0x3b));
if (uVar4 < (ulong)param_1[0x26]) {
param_1[0x25] = uVar4;
}
else {
*(int1 *)((long)param_1 + 0x33d) = 1;
}
return 0;
}
}
}
lVar1 = *(long *)(*(long *)(*param_1 + 0x98) + (ulong)param_2 * 8);
if (lVar1 == -1) {
puVar5 = (int4 *)_my_thread_var();
*puVar5 = 0x89;
local_c = 0xffffffff;
}
else {
local_c = rtree_find_req(param_1,lVar3,0x400,0x400,lVar1,0);
}
}
else {
local_c = rtree_find_first(param_1,param_2,param_1[0x21],(int)param_1[0x3b],0x400);
}
return local_c;
}
|
|
58,006
|
inline_mysql_rwlock_unlock
|
eloqsql/include/mysql/psi/mysql_thread.h
|
static inline int inline_mysql_rwlock_unlock(
mysql_rwlock_t *that)
{
int result;
#ifdef HAVE_PSI_RWLOCK_INTERFACE
if (psi_likely(that->m_psi != NULL))
PSI_RWLOCK_CALL(unlock_rwlock)(that->m_psi);
#endif
result= rw_unlock(&that->m_rwlock);
return result;
}
|
O0
|
c
|
inline_mysql_rwlock_unlock:
pushq %rbp
movq %rsp, %rbp
subq $0x10, %rsp
movq %rdi, -0x8(%rbp)
movq -0x8(%rbp), %rax
cmpq $0x0, 0x90(%rax)
setne %al
andb $0x1, %al
movzbl %al, %eax
cmpl $0x0, %eax
setne %al
andb $0x1, %al
movzbl %al, %eax
cltq
cmpq $0x0, %rax
je 0xa7301
leaq 0x218f4e(%rip), %rax # 0x2c0238
movq (%rax), %rax
movq 0x168(%rax), %rax
movq -0x8(%rbp), %rcx
movq 0x90(%rcx), %rdi
callq *%rax
movq -0x8(%rbp), %rdi
callq 0xfa0e0
movl %eax, -0xc(%rbp)
movl -0xc(%rbp), %eax
addq $0x10, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
|
inline_mysql_rwlock_unlock_5:
push rbp
mov rbp, rsp
sub rsp, 10h
mov [rbp+var_8], rdi
mov rax, [rbp+var_8]
cmp qword ptr [rax+90h], 0
setnz al
and al, 1
movzx eax, al
cmp eax, 0
setnz al
and al, 1
movzx eax, al
cdqe
cmp rax, 0
jz short loc_A7301
lea rax, PSI_server
mov rax, [rax]
mov rax, [rax+168h]
mov rcx, [rbp+var_8]
mov rdi, [rcx+90h]
call rax
loc_A7301:
mov rdi, [rbp+var_8]
call my_rw_unlock
mov [rbp+var_C], eax
mov eax, [rbp+var_C]
add rsp, 10h
pop rbp
retn
|
long long inline_mysql_rwlock_unlock_5(long long a1)
{
if ( *(_QWORD *)(a1 + 144) )
((void ( *)(_QWORD))PSI_server[45])(*(_QWORD *)(a1 + 144));
return (unsigned int)my_rw_unlock(a1);
}
|
inline_mysql_rwlock_unlock:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x10
MOV qword ptr [RBP + -0x8],RDI
MOV RAX,qword ptr [RBP + -0x8]
CMP qword ptr [RAX + 0x90],0x0
SETNZ AL
AND AL,0x1
MOVZX EAX,AL
CMP EAX,0x0
SETNZ AL
AND AL,0x1
MOVZX EAX,AL
CDQE
CMP RAX,0x0
JZ 0x001a7301
LEA RAX,[0x3c0238]
MOV RAX,qword ptr [RAX]
MOV RAX,qword ptr [RAX + 0x168]
MOV RCX,qword ptr [RBP + -0x8]
MOV RDI,qword ptr [RCX + 0x90]
CALL RAX
LAB_001a7301:
MOV RDI,qword ptr [RBP + -0x8]
CALL 0x001fa0e0
MOV dword ptr [RBP + -0xc],EAX
MOV EAX,dword ptr [RBP + -0xc]
ADD RSP,0x10
POP RBP
RET
|
int4 inline_mysql_rwlock_unlock(long param_1)
{
int4 uVar1;
if (*(long *)(param_1 + 0x90) != 0) {
(**(code **)(PSI_server + 0x168))(*(int8 *)(param_1 + 0x90));
}
uVar1 = my_rw_unlock(param_1);
return uVar1;
}
|
|
58,007
|
my_instr_mb
|
eloqsql/strings/ctype-mb.c
|
uint my_instr_mb(CHARSET_INFO *cs,
const char *b, size_t b_length,
const char *s, size_t s_length,
my_match_t *match, uint nmatch)
{
register const char *end, *b0;
int res= 0;
if (s_length <= b_length)
{
if (!s_length)
{
if (nmatch)
{
match->beg= 0;
match->end= 0;
match->mb_len= 0;
}
return 1; /* Empty string is always found */
}
b0= b;
end= b+b_length-s_length+1;
while (b < end)
{
int mb_len;
if (!my_ci_strnncoll(cs, (const uchar *) b, s_length,
(const uchar *) s, s_length, 0))
{
if (nmatch)
{
match[0].beg= 0;
match[0].end= (uint) (b-b0);
match[0].mb_len= res;
if (nmatch > 1)
{
match[1].beg= match[0].end;
match[1].end= (uint)(match[0].end+s_length);
match[1].mb_len= 0; /* Not computed */
}
}
return 2;
}
mb_len= (mb_len= my_ismbchar(cs, b, end)) ? mb_len : 1;
b+= mb_len;
b_length-= mb_len;
res++;
}
}
return 0;
}
|
O3
|
c
|
my_instr_mb:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rcx, -0x40(%rbp)
xorl %eax, %eax
cmpq %rdx, %r8
ja 0x6f117
movq %r8, %r14
testq %r8, %r8
je 0x6f0aa
movq %rdx, %r13
addq %rsi, %r13
subq %r14, %r13
incq %r13
cmpq %rsi, %r13
jbe 0x6f117
movq %rdi, %rbx
movq %r9, -0x38(%rbp)
xorl %r12d, %r12d
movq %rsi, -0x30(%rbp)
movq %rsi, %r15
movq 0xc0(%rbx), %rax
movq %rbx, %rdi
movq %r15, %rsi
movq %r14, %rdx
movq -0x40(%rbp), %rcx
movq %r14, %r8
xorl %r9d, %r9d
callq *0x8(%rax)
testl %eax, %eax
je 0x6f0d7
movq 0xb8(%rbx), %rax
movq %rbx, %rdi
movq %r15, %rsi
movq %r13, %rdx
callq *0xc0(%rax)
cmpl $0x2, %eax
movl $0x1, %ecx
cmovbl %ecx, %eax
cmovll %ecx, %eax
cltq
addq %rax, %r15
incl %r12d
cmpq %r13, %r15
jb 0x6f054
xorl %eax, %eax
jmp 0x6f117
cmpl $0x0, 0x10(%rbp)
je 0x6f112
movl $0x0, (%r9)
movl $0x1, %eax
movl $0x8, %ecx
xorl %r14d, %r14d
movl $0x4, %edx
movl %r14d, (%r9,%rdx)
movl $0x0, (%r9,%rcx)
jmp 0x6f117
movl $0x2, %eax
movl 0x10(%rbp), %ecx
testl %ecx, %ecx
je 0x6f117
movq -0x38(%rbp), %r9
movl $0x0, (%r9)
subl -0x30(%rbp), %r15d
movl %r15d, 0x4(%r9)
movl %r12d, 0x8(%r9)
cmpl $0x1, %ecx
je 0x6f117
movl %r15d, 0xc(%r9)
addl %r15d, %r14d
movl $0x14, %ecx
movl $0x10, %edx
jmp 0x6f0c9
movl $0x1, %eax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
|
my_instr_mb:
push rbp
mov rbp, rsp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 18h
mov [rbp+var_40], rcx
xor eax, eax
cmp r8, rdx
ja loc_6F117
mov r14, r8
test r8, r8
jz short loc_6F0AA
mov r13, rdx
add r13, rsi
sub r13, r14
inc r13
cmp r13, rsi
jbe loc_6F117
mov rbx, rdi
mov [rbp+var_38], r9
xor r12d, r12d
mov [rbp+var_30], rsi
mov r15, rsi
loc_6F054:
mov rax, [rbx+0C0h]
mov rdi, rbx
mov rsi, r15
mov rdx, r14
mov rcx, [rbp+var_40]
mov r8, r14
xor r9d, r9d
call qword ptr [rax+8]
test eax, eax
jz short loc_6F0D7
mov rax, [rbx+0B8h]
mov rdi, rbx
mov rsi, r15
mov rdx, r13
call qword ptr [rax+0C0h]
cmp eax, 2
mov ecx, 1
cmovb eax, ecx
cmovl eax, ecx
cdqe
add r15, rax
inc r12d
cmp r15, r13
jb short loc_6F054
xor eax, eax
jmp short loc_6F117
loc_6F0AA:
cmp [rbp+arg_0], 0
jz short loc_6F112
mov dword ptr [r9], 0
mov eax, 1
mov ecx, 8
xor r14d, r14d
mov edx, 4
loc_6F0C9:
mov [r9+rdx], r14d
mov dword ptr [r9+rcx], 0
jmp short loc_6F117
loc_6F0D7:
mov eax, 2
mov ecx, [rbp+arg_0]
test ecx, ecx
jz short loc_6F117
mov r9, [rbp+var_38]
mov dword ptr [r9], 0
sub r15d, dword ptr [rbp+var_30]
mov [r9+4], r15d
mov [r9+8], r12d
cmp ecx, 1
jz short loc_6F117
mov [r9+0Ch], r15d
add r14d, r15d
mov ecx, 14h
mov edx, 10h
jmp short loc_6F0C9
loc_6F112:
mov eax, 1
loc_6F117:
add rsp, 18h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
|
long long my_instr_mb(
long long a1,
unsigned long long a2,
unsigned long long a3,
long long a4,
unsigned long long a5,
_DWORD *a6,
int a7)
{
long long result; // rax
unsigned long long v9; // r13
int v10; // r12d
unsigned long long v11; // r15
int v12; // eax
bool v13; // cc
long long v14; // rcx
int v15; // r14d
long long v16; // rdx
int v17; // r15d
_DWORD *v19; // [rsp+8h] [rbp-38h]
result = 0LL;
if ( a5 <= a3 )
{
if ( a5 )
{
v9 = a2 + a3 - a5 + 1;
if ( v9 > a2 )
{
v19 = a6;
v10 = 0;
v11 = a2;
while ( (*(unsigned int ( **)(long long, unsigned long long, unsigned long long, long long, unsigned long long, _QWORD))(*(_QWORD *)(a1 + 192) + 8LL))(
a1,
v11,
a5,
a4,
a5,
0LL) )
{
v12 = (*(long long ( **)(long long, unsigned long long, unsigned long long))(*(_QWORD *)(a1 + 184) + 192LL))(
a1,
v11,
v9);
v13 = v12 < 2;
if ( (unsigned int)v12 < 2 )
v12 = 1;
if ( v13 )
v12 = 1;
v11 += v12;
++v10;
if ( v11 >= v9 )
return 0LL;
}
result = 2LL;
if ( a7 )
{
a6 = v19;
*v19 = 0;
v17 = v11 - a2;
v19[1] = v17;
v19[2] = v10;
if ( a7 != 1 )
{
v19[3] = v17;
v15 = v17 + a5;
v14 = 5LL;
v16 = 4LL;
goto LABEL_14;
}
}
}
}
else
{
if ( a7 )
{
*a6 = 0;
result = 1LL;
v14 = 2LL;
v15 = 0;
v16 = 1LL;
LABEL_14:
a6[v16] = v15;
a6[v14] = 0;
return result;
}
return 1LL;
}
}
return result;
}
|
my_instr_mb:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x18
MOV qword ptr [RBP + -0x40],RCX
XOR EAX,EAX
CMP R8,RDX
JA 0x0016f117
MOV R14,R8
TEST R8,R8
JZ 0x0016f0aa
MOV R13,RDX
ADD R13,RSI
SUB R13,R14
INC R13
CMP R13,RSI
JBE 0x0016f117
MOV RBX,RDI
MOV qword ptr [RBP + -0x38],R9
XOR R12D,R12D
MOV qword ptr [RBP + -0x30],RSI
MOV R15,RSI
LAB_0016f054:
MOV RAX,qword ptr [RBX + 0xc0]
MOV RDI,RBX
MOV RSI,R15
MOV RDX,R14
MOV RCX,qword ptr [RBP + -0x40]
MOV R8,R14
XOR R9D,R9D
CALL qword ptr [RAX + 0x8]
TEST EAX,EAX
JZ 0x0016f0d7
MOV RAX,qword ptr [RBX + 0xb8]
MOV RDI,RBX
MOV RSI,R15
MOV RDX,R13
CALL qword ptr [RAX + 0xc0]
CMP EAX,0x2
MOV ECX,0x1
CMOVC EAX,ECX
CMOVL EAX,ECX
CDQE
ADD R15,RAX
INC R12D
CMP R15,R13
JC 0x0016f054
XOR EAX,EAX
JMP 0x0016f117
LAB_0016f0aa:
CMP dword ptr [RBP + 0x10],0x0
JZ 0x0016f112
MOV dword ptr [R9],0x0
MOV EAX,0x1
MOV ECX,0x8
XOR R14D,R14D
MOV EDX,0x4
LAB_0016f0c9:
MOV dword ptr [R9 + RDX*0x1],R14D
MOV dword ptr [R9 + RCX*0x1],0x0
JMP 0x0016f117
LAB_0016f0d7:
MOV EAX,0x2
MOV ECX,dword ptr [RBP + 0x10]
TEST ECX,ECX
JZ 0x0016f117
MOV R9,qword ptr [RBP + -0x38]
MOV dword ptr [R9],0x0
SUB R15D,dword ptr [RBP + -0x30]
MOV dword ptr [R9 + 0x4],R15D
MOV dword ptr [R9 + 0x8],R12D
CMP ECX,0x1
JZ 0x0016f117
MOV dword ptr [R9 + 0xc],R15D
ADD R14D,R15D
MOV ECX,0x14
MOV EDX,0x10
JMP 0x0016f0c9
LAB_0016f112:
MOV EAX,0x1
LAB_0016f117:
ADD RSP,0x18
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
|
int8
my_instr_mb(long param_1,ulong param_2,ulong param_3,int8 param_4,ulong param_5,
int4 *param_6,int param_7)
{
int iVar1;
uint uVar2;
uint uVar3;
int8 uVar4;
long lVar5;
long lVar6;
int iVar7;
ulong uVar8;
ulong uVar9;
int local_38;
uVar4 = 0;
if (param_5 <= param_3) {
if (param_5 == 0) {
if (param_7 == 0) {
uVar4 = 1;
}
else {
*param_6 = 0;
uVar4 = 1;
lVar5 = 8;
local_38 = 0;
lVar6 = 4;
LAB_0016f0c9:
*(int *)((long)param_6 + lVar6) = local_38;
*(int4 *)((long)param_6 + lVar5) = 0;
}
}
else {
uVar8 = ((param_3 + param_2) - param_5) + 1;
if (param_2 < uVar8) {
iVar7 = 0;
uVar9 = param_2;
do {
iVar1 = (**(code **)(*(long *)(param_1 + 0xc0) + 8))
(param_1,uVar9,param_5,param_4,param_5,0);
if (iVar1 == 0) {
uVar4 = 2;
if (param_7 == 0) {
return 2;
}
*param_6 = 0;
local_38 = (int)param_2;
local_38 = (int)uVar9 - local_38;
param_6[1] = local_38;
param_6[2] = iVar7;
if (param_7 == 1) {
return 2;
}
param_6[3] = local_38;
local_38 = (int)param_5 + local_38;
lVar5 = 0x14;
lVar6 = 0x10;
goto LAB_0016f0c9;
}
uVar2 = (**(code **)(*(long *)(param_1 + 0xb8) + 0xc0))(param_1,uVar9,uVar8);
uVar3 = uVar2;
if (uVar2 < 2) {
uVar3 = 1;
}
if ((int)uVar2 < 2) {
uVar3 = 1;
}
uVar9 = uVar9 + (long)(int)uVar3;
iVar7 = iVar7 + 1;
} while (uVar9 < uVar8);
uVar4 = 0;
}
}
}
return uVar4;
}
|
|
58,008
|
YAML::SingleDocParser::HandleNode(YAML::EventHandler&)
|
aimrt_mujoco_sim/_deps/yaml-cpp-src/src/singledocparser.cpp
|
void SingleDocParser::HandleNode(EventHandler& eventHandler) {
DepthGuard<500> depthguard(depth, m_scanner.mark(), ErrorMsg::BAD_FILE);
// an empty node *is* a possibility
if (m_scanner.empty()) {
eventHandler.OnNull(m_scanner.mark(), NullAnchor);
return;
}
// save location
Mark mark = m_scanner.peek().mark;
// special case: a value node by itself must be a map, with no header
if (m_scanner.peek().type == Token::VALUE) {
eventHandler.OnMapStart(mark, "?", NullAnchor, EmitterStyle::Default);
HandleMap(eventHandler);
eventHandler.OnMapEnd();
return;
}
// special case: an alias node
if (m_scanner.peek().type == Token::ALIAS) {
eventHandler.OnAlias(mark, LookupAnchor(mark, m_scanner.peek().value));
m_scanner.pop();
return;
}
std::string tag;
std::string anchor_name;
anchor_t anchor;
ParseProperties(tag, anchor, anchor_name);
if (!anchor_name.empty())
eventHandler.OnAnchor(mark, anchor_name);
// after parsing properties, an empty node is again a possibility
if (m_scanner.empty()) {
eventHandler.OnNull(mark, anchor);
return;
}
const Token& token = m_scanner.peek();
// add non-specific tags
if (tag.empty())
tag = (token.type == Token::NON_PLAIN_SCALAR ? "!" : "?");
if (token.type == Token::PLAIN_SCALAR
&& tag.compare("?") == 0 && IsNullString(token.value)) {
eventHandler.OnNull(mark, anchor);
m_scanner.pop();
return;
}
// now split based on what kind of node we should be
switch (token.type) {
case Token::PLAIN_SCALAR:
case Token::NON_PLAIN_SCALAR:
eventHandler.OnScalar(mark, tag, anchor, token.value);
m_scanner.pop();
return;
case Token::FLOW_SEQ_START:
eventHandler.OnSequenceStart(mark, tag, anchor, EmitterStyle::Flow);
HandleSequence(eventHandler);
eventHandler.OnSequenceEnd();
return;
case Token::BLOCK_SEQ_START:
eventHandler.OnSequenceStart(mark, tag, anchor, EmitterStyle::Block);
HandleSequence(eventHandler);
eventHandler.OnSequenceEnd();
return;
case Token::FLOW_MAP_START:
eventHandler.OnMapStart(mark, tag, anchor, EmitterStyle::Flow);
HandleMap(eventHandler);
eventHandler.OnMapEnd();
return;
case Token::BLOCK_MAP_START:
eventHandler.OnMapStart(mark, tag, anchor, EmitterStyle::Block);
HandleMap(eventHandler);
eventHandler.OnMapEnd();
return;
case Token::KEY:
// compact maps can only go in a flow sequence
if (m_pCollectionStack->GetCurCollectionType() ==
CollectionType::FlowSeq) {
eventHandler.OnMapStart(mark, tag, anchor, EmitterStyle::Flow);
HandleMap(eventHandler);
eventHandler.OnMapEnd();
return;
}
break;
default:
break;
}
if (tag == "?")
eventHandler.OnNull(mark, anchor);
else
eventHandler.OnScalar(mark, tag, anchor, "");
}
|
O3
|
cpp
|
YAML::SingleDocParser::HandleNode(YAML::EventHandler&):
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x80, %rsp
movq %rsi, %rbx
movq %rdi, %r14
movq 0x8(%rdi), %rdi
callq 0x63cbe
movq %rax, 0x40(%rsp)
movl %edx, 0x48(%rsp)
leaq 0x28(%rsp), %r12
movq %r12, -0x10(%r12)
leaq 0xf9548(%rip), %rsi # 0x1649c1
leaq 0xf9549(%rip), %rdx # 0x1649c9
leaq 0x18(%rsp), %rdi
callq 0x2c610
leaq 0x38(%rsp), %rdi
leaq 0x40(%rsp), %rdx
leaq 0x18(%rsp), %rcx
movq %r14, %rsi
callq 0x6caa8
movq 0x18(%rsp), %rdi
cmpq %r12, %rdi
je 0x6b4b8
movq 0x28(%rsp), %rsi
incq %rsi
callq 0x2d2d0
movq 0x8(%r14), %rdi
callq 0x63c1a
testb %al, %al
je 0x6b4e9
movq 0x8(%r14), %rdi
callq 0x63cbe
leaq 0x18(%rsp), %rsi
movq %rax, (%rsi)
movl %edx, 0x8(%rsi)
movq (%rbx), %rax
movq %rbx, %rdi
xorl %edx, %edx
callq *0x20(%rax)
jmp 0x6b7bf
movq 0x8(%r14), %rdi
callq 0x63cac
movl 0x10(%rax), %ecx
movl %ecx, 0x8(%rsp)
movq 0x8(%rax), %rax
movq %rax, (%rsp)
movq 0x8(%r14), %rdi
callq 0x63cac
cmpl $0xf, 0x4(%rax)
jne 0x6b571
leaq 0x18(%rsp), %rdi
movq %r12, (%rdi)
leaq 0x111821(%rip), %rsi # 0x17cd40
leaq 0x11181b(%rip), %rdx # 0x17cd41
callq 0x2c610
movq (%rbx), %rax
movq %rsp, %rsi
leaq 0x18(%rsp), %rdx
movq %rbx, %rdi
xorl %ecx, %ecx
xorl %r8d, %r8d
callq *0x48(%rax)
movq 0x18(%rsp), %rdi
cmpq %r12, %rdi
je 0x6b558
movq 0x28(%rsp), %rsi
incq %rsi
callq 0x2d2d0
movq %r14, %rdi
movq %rbx, %rsi
callq 0x6b8ec
movq (%rbx), %rax
movq %rbx, %rdi
callq *0x50(%rax)
jmp 0x6b7bf
movq 0x8(%r14), %rdi
callq 0x63cac
cmpl $0x11, 0x4(%rax)
jne 0x6b5b8
movq 0x8(%r14), %rdi
callq 0x63cac
addq $0x18, %rax
movq %rsp, %rsi
movq %r14, %rdi
movq %rax, %rdx
callq 0x6b96c
movq (%rbx), %rcx
movq %rsp, %rsi
movq %rbx, %rdi
movq %rax, %rdx
callq *0x28(%rcx)
movq 0x8(%r14), %rdi
callq 0x63c84
jmp 0x6b7bf
leaq 0x18(%rsp), %rsi
movq %r12, (%rsi)
xorl %eax, %eax
movq %rax, 0x8(%rsi)
movb %al, 0x10(%rsi)
leaq 0x50(%rsp), %r13
movq %r13, -0x10(%r13)
movq %rax, -0x8(%r13)
movb %al, (%r13)
leaq 0x10(%rsp), %rdx
leaq 0x40(%rsp), %rcx
movq %r14, %rdi
callq 0x6ba88
cmpq $0x0, 0x48(%rsp)
je 0x6b605
movq (%rbx), %rax
movq %rsp, %rsi
leaq 0x40(%rsp), %rdx
movq %rbx, %rdi
callq *0x58(%rax)
movq 0x8(%r14), %rdi
callq 0x63c1a
testb %al, %al
je 0x6b628
movq 0x10(%rsp), %rdx
movq (%rbx), %rax
movq %rsp, %rsi
movq %rbx, %rdi
callq *0x20(%rax)
jmp 0x6b791
movq 0x8(%r14), %rdi
callq 0x63cac
movq %rax, %r15
cmpq $0x0, 0x20(%rsp)
jne 0x6b667
cmpl $0x14, 0x4(%r15)
leaq 0xf9c5d(%rip), %rax # 0x1652a5
leaq 0x1116f1(%rip), %rcx # 0x17cd40
cmoveq %rax, %rcx
leaq 0x18(%rsp), %rdi
movl $0x1, %r8d
xorl %esi, %esi
xorl %edx, %edx
callq 0x2ce90
movl 0x4(%r15), %eax
cmpl $0x13, %eax
jne 0x6b6a9
leaq 0x1116c9(%rip), %rsi # 0x17cd40
leaq 0x18(%rsp), %rdi
callq 0x2d380
testl %eax, %eax
jne 0x6b6a5
leaq 0x18(%r15), %rdi
callq 0x6f084
testb %al, %al
je 0x6b6a5
movq 0x10(%rsp), %rdx
movq (%rbx), %rax
movq %rsp, %rsi
movq %rbx, %rdi
callq *0x20(%rax)
jmp 0x6b722
movl 0x4(%r15), %eax
leal -0x3(%rax), %ecx
cmpl $0xb, %ecx
ja 0x6b6f9
movl $0x2, %r8d
leaq 0xf9736(%rip), %rax # 0x164df4
movslq (%rax,%rcx,4), %rcx
addq %rax, %rcx
jmpq *%rcx
movl $0x1, %r8d
movq 0x10(%rsp), %rcx
movq (%rbx), %rax
movq %rsp, %rsi
leaq 0x18(%rsp), %rdx
movq %rbx, %rdi
callq *0x38(%rax)
movl $0x40, %r15d
movq %r14, %rdi
movq %rbx, %rsi
callq 0x6bb06
jmp 0x6b787
addl $-0x13, %eax
cmpl $0x2, %eax
jae 0x6b7d7
movq 0x10(%rsp), %rcx
addq $0x18, %r15
movq (%rbx), %rax
movq %rsp, %rsi
leaq 0x18(%rsp), %rdx
movq %rbx, %rdi
movq %r15, %r8
callq *0x30(%rax)
movq 0x8(%r14), %rdi
callq 0x63c84
jmp 0x6b791
movl $0x1, %r8d
jmp 0x6b760
movq 0x18(%r14), %rcx
movq 0x30(%rcx), %rax
cmpq 0x10(%rcx), %rax
je 0x6b7d7
cmpq 0x38(%rcx), %rax
jne 0x6b75a
movq 0x48(%rcx), %rcx
movl $0x200, %eax # imm = 0x200
addq -0x8(%rcx), %rax
cmpl $0x4, -0x4(%rax)
jne 0x6b7d7
movq 0x10(%rsp), %rcx
movq (%rbx), %rax
movq %rsp, %rsi
leaq 0x18(%rsp), %rdx
movq %rbx, %rdi
callq *0x48(%rax)
movl $0x50, %r15d
movq %r14, %rdi
movq %rbx, %rsi
callq 0x6b8ec
movq (%rbx), %rax
movq %rbx, %rdi
callq *(%rax,%r15)
movq 0x40(%rsp), %rdi
cmpq %r13, %rdi
je 0x6b7a8
movq 0x50(%rsp), %rsi
incq %rsi
callq 0x2d2d0
movq 0x18(%rsp), %rdi
cmpq %r12, %rdi
je 0x6b7bf
movq 0x28(%rsp), %rsi
incq %rsi
callq 0x2d2d0
movq 0x38(%rsp), %rax
decl (%rax)
addq $0x80, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
leaq 0x111562(%rip), %rsi # 0x17cd40
leaq 0x18(%rsp), %rdi
callq 0x2d380
movq 0x10(%rsp), %r14
testl %eax, %eax
je 0x6b847
leaq 0x70(%rsp), %r15
movq %r15, -0x10(%r15)
leaq 0xf9d04(%rip), %rdx # 0x165505
leaq 0x60(%rsp), %rdi
movq %rdx, %rsi
callq 0x2c610
movq (%rbx), %rax
movq %rsp, %rsi
leaq 0x18(%rsp), %rdx
leaq 0x60(%rsp), %r8
movq %rbx, %rdi
movq %r14, %rcx
callq *0x30(%rax)
movq 0x60(%rsp), %rdi
cmpq %r15, %rdi
je 0x6b791
movq 0x70(%rsp), %rsi
incq %rsi
callq 0x2d2d0
jmp 0x6b791
movq (%rbx), %rax
movq %rsp, %rsi
movq %rbx, %rdi
movq %r14, %rdx
callq *0x20(%rax)
jmp 0x6b791
movq %rax, %rbx
movq 0x60(%rsp), %rdi
cmpq %r15, %rdi
je 0x6b885
movq 0x70(%rsp), %rsi
incq %rsi
callq 0x2d2d0
jmp 0x6b885
jmp 0x6b882
jmp 0x6b882
movq %rax, %rbx
jmp 0x6b89c
jmp 0x6b8da
movq %rax, %rbx
movq 0x40(%rsp), %rdi
cmpq %r13, %rdi
je 0x6b89c
movq 0x50(%rsp), %rsi
incq %rsi
callq 0x2d2d0
movq 0x18(%rsp), %rdi
cmpq %r12, %rdi
je 0x6b8dd
movq 0x28(%rsp), %rsi
incq %rsi
callq 0x2d2d0
jmp 0x6b8dd
jmp 0x6b8da
jmp 0x6b8da
movq %rax, %rbx
movq 0x18(%rsp), %rdi
cmpq %r12, %rdi
je 0x6b8e4
movq 0x28(%rsp), %rsi
incq %rsi
callq 0x2d2d0
jmp 0x6b8e4
movq %rax, %rbx
jmp 0x6b8e4
movq %rax, %rbx
movq 0x38(%rsp), %rax
decl (%rax)
movq %rbx, %rdi
callq 0x2e220
|
_ZN4YAML15SingleDocParser10HandleNodeERNS_12EventHandlerE:
push r15
push r14
push r13
push r12
push rbx
sub rsp, 80h
mov rbx, rsi
mov r14, rdi
mov rdi, [rdi+8]; this
call _ZNK4YAML7Scanner4markEv; YAML::Scanner::mark(void)
mov [rsp+0A8h+var_68], rax
mov dword ptr [rsp+0A8h+var_60], edx
lea r12, [rsp+0A8h+var_80]
mov [r12-10h], r12
lea rsi, aBadFile; "bad file"
lea rdx, aBadFile+8; ""
lea rdi, [rsp+0A8h+var_90]
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_70]
lea rdx, [rsp+0A8h+var_68]
lea rcx, [rsp+0A8h+var_90]
mov rsi, r14
call _ZN4YAML10DepthGuardILi500EEC2ERiRKNS_4MarkERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE; YAML::DepthGuard<500>::DepthGuard(int &,YAML::Mark const&,std::string const&)
mov rdi, [rsp+0A8h+var_90]; void *
cmp rdi, r12
jz short loc_6B4B8
mov rsi, [rsp+0A8h+var_80]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_6B4B8:
mov rdi, [r14+8]; this
call _ZN4YAML7Scanner5emptyEv; YAML::Scanner::empty(void)
test al, al
jz short loc_6B4E9
mov rdi, [r14+8]; this
call _ZNK4YAML7Scanner4markEv; YAML::Scanner::mark(void)
lea rsi, [rsp+0A8h+var_90]
mov [rsi], rax
mov [rsi+8], edx
mov rax, [rbx]
mov rdi, rbx
xor edx, edx
call qword ptr [rax+20h]
jmp loc_6B7BF
loc_6B4E9:
mov rdi, [r14+8]; this
call _ZN4YAML7Scanner4peekEv; YAML::Scanner::peek(void)
mov ecx, [rax+10h]
mov [rsp+0A8h+var_A0], ecx
mov rax, [rax+8]
mov [rsp+0A8h+var_A8], rax
mov rdi, [r14+8]; this
call _ZN4YAML7Scanner4peekEv; YAML::Scanner::peek(void)
cmp dword ptr [rax+4], 0Fh
jnz short loc_6B571
lea rdi, [rsp+0A8h+var_90]
mov [rdi], r12
lea rsi, aEmptyInputBuff+46h; "?"
lea rdx, aEmptyInputBuff+47h; ""
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPKcEEvT_S8_St20forward_iterator_tag; std::string::_M_construct<char const*>(char const*,char const*,std::forward_iterator_tag)
mov rax, [rbx]
mov rsi, rsp
lea rdx, [rsp+0A8h+var_90]
mov rdi, rbx
xor ecx, ecx
xor r8d, r8d
call qword ptr [rax+48h]
mov rdi, [rsp+0A8h+var_90]; void *
cmp rdi, r12
jz short loc_6B558
mov rsi, [rsp+0A8h+var_80]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_6B558:
mov rdi, r14
mov rsi, rbx
call _ZN4YAML15SingleDocParser9HandleMapERNS_12EventHandlerE; YAML::SingleDocParser::HandleMap(YAML::EventHandler &)
mov rax, [rbx]
mov rdi, rbx
call qword ptr [rax+50h]
jmp loc_6B7BF
loc_6B571:
mov rdi, [r14+8]; this
call _ZN4YAML7Scanner4peekEv; YAML::Scanner::peek(void)
cmp dword ptr [rax+4], 11h
jnz short loc_6B5B8
mov rdi, [r14+8]; this
call _ZN4YAML7Scanner4peekEv; YAML::Scanner::peek(void)
add rax, 18h
mov rsi, rsp
mov rdi, r14
mov rdx, rax
call _ZNK4YAML15SingleDocParser12LookupAnchorERKNS_4MarkERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE; YAML::SingleDocParser::LookupAnchor(YAML::Mark const&,std::string const&)
mov rcx, [rbx]
mov rsi, rsp
mov rdi, rbx
mov rdx, rax
call qword ptr [rcx+28h]
mov rdi, [r14+8]; this
call _ZN4YAML7Scanner3popEv; YAML::Scanner::pop(void)
jmp loc_6B7BF
loc_6B5B8:
lea rsi, [rsp+0A8h+var_90]
mov [rsi], r12
xor eax, eax
mov [rsi+8], rax
mov [rsi+10h], al
lea r13, [rsp+0A8h+var_58]
mov [r13-10h], r13
mov [r13-8], rax
mov [r13+0], al
lea rdx, [rsp+0A8h+var_98]
lea rcx, [rsp+0A8h+var_68]
mov rdi, r14
call _ZN4YAML15SingleDocParser15ParsePropertiesERNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERmS7_; YAML::SingleDocParser::ParseProperties(std::string &,ulong &,std::string &)
cmp [rsp+0A8h+var_60], 0
jz short loc_6B605
mov rax, [rbx]
mov rsi, rsp
lea rdx, [rsp+0A8h+var_68]
mov rdi, rbx
call qword ptr [rax+58h]
loc_6B605:
mov rdi, [r14+8]; this
call _ZN4YAML7Scanner5emptyEv; YAML::Scanner::empty(void)
test al, al
jz short loc_6B628
mov rdx, [rsp+0A8h+var_98]
mov rax, [rbx]
mov rsi, rsp
mov rdi, rbx
call qword ptr [rax+20h]
jmp loc_6B791
loc_6B628:
mov rdi, [r14+8]; this
call _ZN4YAML7Scanner4peekEv; YAML::Scanner::peek(void)
mov r15, rax
cmp [rsp+0A8h+var_88], 0
jnz short loc_6B667
cmp dword ptr [r15+4], 14h
lea rax, unk_1652A5
lea rcx, aEmptyInputBuff+46h; "?"
cmovz rcx, rax
lea rdi, [rsp+0A8h+var_90]
mov r8d, 1
xor esi, esi
xor edx, edx
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE10_M_replaceEmmPKcm; std::string::_M_replace(ulong,ulong,char const*,ulong)
loc_6B667:
mov eax, [r15+4]
cmp eax, 13h
jnz short loc_6B6A9
lea rsi, aEmptyInputBuff+46h; "?"
lea rdi, [rsp+0A8h+var_90]
call __ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE7compareEPKc; std::string::compare(char const*)
test eax, eax
jnz short loc_6B6A5
lea rdi, [r15+18h]
call _ZN4YAML12IsNullStringERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE; YAML::IsNullString(std::string const&)
test al, al
jz short loc_6B6A5
mov rdx, [rsp+0A8h+var_98]
mov rax, [rbx]
mov rsi, rsp
mov rdi, rbx
call qword ptr [rax+20h]
jmp short loc_6B722
loc_6B6A5:
mov eax, [r15+4]
loc_6B6A9:
lea ecx, [rax-3]; switch 12 cases
cmp ecx, 0Bh
ja short def_6B6C5; jumptable 000000000006B6C5 default case
mov r8d, 2
lea rax, jpt_6B6C5
movsxd rcx, ds:(jpt_6B6C5 - 164DF4h)[rax+rcx*4]
add rcx, rax
jmp rcx; switch jump
loc_6B6C7:
mov r8d, 1; jumptable 000000000006B6C5 case 3
loc_6B6CD:
mov rcx, [rsp+0A8h+var_98]; jumptable 000000000006B6C5 case 8
mov rax, [rbx]
mov rsi, rsp
lea rdx, [rsp+0A8h+var_90]
mov rdi, rbx
call qword ptr [rax+38h]
mov r15d, 40h ; '@'
mov rdi, r14
mov rsi, rbx
call _ZN4YAML15SingleDocParser14HandleSequenceERNS_12EventHandlerE; YAML::SingleDocParser::HandleSequence(YAML::EventHandler &)
jmp loc_6B787
def_6B6C5:
add eax, 0FFFFFFEDh; jumptable 000000000006B6C5 default case
cmp eax, 2
jnb loc_6B7D7; jumptable 000000000006B6C5 cases 5-7,10-13
mov rcx, [rsp+0A8h+var_98]
add r15, 18h
mov rax, [rbx]
mov rsi, rsp
lea rdx, [rsp+0A8h+var_90]
mov rdi, rbx
mov r8, r15
call qword ptr [rax+30h]
loc_6B722:
mov rdi, [r14+8]; this
call _ZN4YAML7Scanner3popEv; YAML::Scanner::pop(void)
jmp short loc_6B791
loc_6B72D:
mov r8d, 1; jumptable 000000000006B6C5 case 4
jmp short loc_6B760; jumptable 000000000006B6C5 case 9
loc_6B735:
mov rcx, [r14+18h]; jumptable 000000000006B6C5 case 14
mov rax, [rcx+30h]
cmp rax, [rcx+10h]
jz loc_6B7D7; jumptable 000000000006B6C5 cases 5-7,10-13
cmp rax, [rcx+38h]
jnz short loc_6B75A
mov rcx, [rcx+48h]
mov eax, 200h
add rax, [rcx-8]
loc_6B75A:
cmp dword ptr [rax-4], 4
jnz short loc_6B7D7; jumptable 000000000006B6C5 cases 5-7,10-13
loc_6B760:
mov rcx, [rsp+0A8h+var_98]; jumptable 000000000006B6C5 case 9
mov rax, [rbx]
mov rsi, rsp
lea rdx, [rsp+0A8h+var_90]
mov rdi, rbx
call qword ptr [rax+48h]
mov r15d, 50h ; 'P'
mov rdi, r14
mov rsi, rbx
call _ZN4YAML15SingleDocParser9HandleMapERNS_12EventHandlerE; YAML::SingleDocParser::HandleMap(YAML::EventHandler &)
loc_6B787:
mov rax, [rbx]
mov rdi, rbx
call qword ptr [rax+r15]
loc_6B791:
mov rdi, [rsp+0A8h+var_68]; void *
cmp rdi, r13
jz short loc_6B7A8
mov rsi, [rsp+0A8h+var_58]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_6B7A8:
mov rdi, [rsp+0A8h+var_90]; void *
cmp rdi, r12
jz short loc_6B7BF
mov rsi, [rsp+0A8h+var_80]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_6B7BF:
mov rax, [rsp+0A8h+var_70]
dec dword ptr [rax]
add rsp, 80h
pop rbx
pop r12
pop r13
pop r14
pop r15
retn
loc_6B7D7:
lea rsi, aEmptyInputBuff+46h; jumptable 000000000006B6C5 cases 5-7,10-13
lea rdi, [rsp+0A8h+var_90]
call __ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE7compareEPKc; std::string::compare(char const*)
mov r14, [rsp+0A8h+var_98]
test eax, eax
jz short loc_6B847
lea r15, [rsp+0A8h+var_38]
mov [r15-10h], r15
lea rdx, asc_165504+1; "ࠀ\u0B00"
lea rdi, [rsp+0A8h+var_48]
mov rsi, rdx
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPKcEEvT_S8_St20forward_iterator_tag; std::string::_M_construct<char const*>(char const*,char const*,std::forward_iterator_tag)
mov rax, [rbx]
mov rsi, rsp
lea rdx, [rsp+0A8h+var_90]
lea r8, [rsp+0A8h+var_48]
mov rdi, rbx
mov rcx, r14
call qword ptr [rax+30h]
mov rdi, [rsp+0A8h+var_48]; void *
cmp rdi, r15
jz loc_6B791
mov rsi, [rsp+0A8h+var_38]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
jmp loc_6B791
loc_6B847:
mov rax, [rbx]
mov rsi, rsp
mov rdi, rbx
mov rdx, r14
call qword ptr [rax+20h]
jmp loc_6B791
mov rbx, rax
mov rdi, [rsp+arg_58]; void *
cmp rdi, r15
jz short loc_6B885
mov rsi, [rsp+arg_68]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
jmp short loc_6B885
jmp short loc_6B882
jmp short loc_6B882
mov rbx, rax
jmp short loc_6B89C
jmp short loc_6B8DA
loc_6B882:
mov rbx, rax
loc_6B885:
mov rdi, [rsp+arg_38]; void *
cmp rdi, r13
jz short loc_6B89C
mov rsi, [rsp+arg_48]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_6B89C:
mov rdi, [rsp+arg_10]; void *
cmp rdi, r12
jz short loc_6B8DD
mov rsi, [rsp+arg_20]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
jmp short loc_6B8DD
jmp short loc_6B8DA
jmp short loc_6B8DA
mov rbx, rax
mov rdi, [rsp+arg_10]; void *
cmp rdi, r12
jz short loc_6B8E4
mov rsi, [rsp+arg_20]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
jmp short loc_6B8E4
mov rbx, rax
jmp short loc_6B8E4
loc_6B8DA:
mov rbx, rax
loc_6B8DD:
mov rax, [rsp+arg_30]
dec dword ptr [rax]
loc_6B8E4:
mov rdi, rbx
call __Unwind_Resume
|
_DWORD * YAML::SingleDocParser::HandleNode(long long a1, long long a2)
{
int v2; // edx
int v3; // edx
long long v4; // rax
long long v5; // rax
long long v6; // rax
long long v7; // r15
int v8; // eax
long long v9; // r8
long long v10; // r15
_QWORD *v11; // rcx
long long v12; // rax
_DWORD *result; // rax
int v14; // eax
long long v15; // r14
long long v16; // [rsp+0h] [rbp-A8h] BYREF
int v17; // [rsp+8h] [rbp-A0h]
long long v18; // [rsp+10h] [rbp-98h] BYREF
void *v19; // [rsp+18h] [rbp-90h] BYREF
long long v20; // [rsp+20h] [rbp-88h]
_QWORD v21[2]; // [rsp+28h] [rbp-80h] BYREF
_DWORD *v22; // [rsp+38h] [rbp-70h] BYREF
void *v23; // [rsp+40h] [rbp-68h] BYREF
long long v24; // [rsp+48h] [rbp-60h]
_QWORD v25[2]; // [rsp+50h] [rbp-58h] BYREF
void *v26[2]; // [rsp+60h] [rbp-48h] BYREF
_QWORD v27[7]; // [rsp+70h] [rbp-38h] BYREF
v23 = (void *)YAML::Scanner::mark(*(YAML::Scanner **)(a1 + 8));
LODWORD(v24) = v2;
v19 = v21;
std::string::_M_construct<char const*>(&v19, "bad file", "");
YAML::DepthGuard<500>::DepthGuard(&v22, a1, &v23, &v19);
if ( v19 != v21 )
operator delete(v19, v21[0] + 1LL);
if ( YAML::Scanner::empty(*(YAML::Scanner **)(a1 + 8)) )
{
v19 = (void *)YAML::Scanner::mark(*(YAML::Scanner **)(a1 + 8));
LODWORD(v20) = v3;
(*(void ( **)(long long, void **, _QWORD))(*(_QWORD *)a2 + 32LL))(a2, &v19, 0LL);
goto LABEL_39;
}
v4 = YAML::Scanner::peek(*(YAML::Scanner **)(a1 + 8));
v17 = *(_DWORD *)(v4 + 16);
v16 = *(_QWORD *)(v4 + 8);
if ( *(_DWORD *)(YAML::Scanner::peek(*(YAML::Scanner **)(a1 + 8)) + 4) == 15 )
{
v19 = v21;
std::string::_M_construct<char const*>(&v19, "?", "");
(*(void ( **)(long long, long long *, void **, _QWORD, _QWORD))(*(_QWORD *)a2 + 72LL))(
a2,
&v16,
&v19,
0LL,
0LL);
if ( v19 != v21 )
operator delete(v19, v21[0] + 1LL);
YAML::SingleDocParser::HandleMap(a1, a2);
(*(void ( **)(long long))(*(_QWORD *)a2 + 80LL))(a2);
goto LABEL_39;
}
if ( *(_DWORD *)(YAML::Scanner::peek(*(YAML::Scanner **)(a1 + 8)) + 4) == 17 )
{
v5 = YAML::Scanner::peek(*(YAML::Scanner **)(a1 + 8));
v6 = YAML::SingleDocParser::LookupAnchor(a1, &v16, v5 + 24);
(*(void ( **)(long long, long long *, long long))(*(_QWORD *)a2 + 40LL))(a2, &v16, v6);
YAML::Scanner::pop(*(YAML::Scanner **)(a1 + 8));
goto LABEL_39;
}
v19 = v21;
v20 = 0LL;
LOBYTE(v21[0]) = 0;
v23 = v25;
v24 = 0LL;
LOBYTE(v25[0]) = 0;
YAML::SingleDocParser::ParseProperties(a1, &v19, &v18, &v23);
if ( v24 )
(*(void ( **)(long long, long long *, void **))(*(_QWORD *)a2 + 88LL))(a2, &v16, &v23);
if ( !YAML::Scanner::empty(*(YAML::Scanner **)(a1 + 8)) )
{
v7 = YAML::Scanner::peek(*(YAML::Scanner **)(a1 + 8));
if ( !v20 )
std::string::_M_replace(&v19, 0LL, 0LL);
v8 = *(_DWORD *)(v7 + 4);
if ( v8 == 19 )
{
if ( !(unsigned int)std::string::compare(&v19, "?") && (unsigned __int8)YAML::IsNullString(v7 + 24) )
{
(*(void ( **)(long long, long long *, long long))(*(_QWORD *)a2 + 32LL))(a2, &v16, v18);
LABEL_27:
YAML::Scanner::pop(*(YAML::Scanner **)(a1 + 8));
goto LABEL_35;
}
v8 = *(_DWORD *)(v7 + 4);
}
v9 = 2LL;
switch ( v8 )
{
case 3:
v9 = 1LL;
goto LABEL_24;
case 4:
v9 = 1LL;
goto LABEL_33;
case 5:
case 6:
case 7:
case 10:
case 11:
case 12:
case 13:
goto LABEL_40;
case 8:
LABEL_24:
(*(void ( **)(long long, long long *, void **, long long, long long))(*(_QWORD *)a2 + 56LL))(
a2,
&v16,
&v19,
v18,
v9);
v10 = 64LL;
YAML::SingleDocParser::HandleSequence(a1, a2);
goto LABEL_34;
case 9:
goto LABEL_33;
case 14:
v11 = *(_QWORD **)(a1 + 24);
v12 = v11[6];
if ( v12 == v11[2] )
goto LABEL_40;
if ( v12 == v11[7] )
v12 = *(_QWORD *)(v11[9] - 8LL) + 512LL;
if ( *(_DWORD *)(v12 - 4) != 4 )
goto LABEL_40;
LABEL_33:
(*(void ( **)(long long, long long *, void **, long long, long long))(*(_QWORD *)a2 + 72LL))(
a2,
&v16,
&v19,
v18,
v9);
v10 = 80LL;
YAML::SingleDocParser::HandleMap(a1, a2);
LABEL_34:
(*(void ( **)(long long))(*(_QWORD *)a2 + v10))(a2);
goto LABEL_35;
default:
if ( (unsigned int)(v8 - 19) < 2 )
{
(*(void ( **)(long long, long long *, void **, long long, long long))(*(_QWORD *)a2 + 48LL))(
a2,
&v16,
&v19,
v18,
v7 + 24);
goto LABEL_27;
}
LABEL_40:
v14 = std::string::compare(&v19, "?");
v15 = v18;
if ( !v14 )
goto LABEL_14;
v26[0] = v27;
std::string::_M_construct<char const*>(v26, (const char *)asc_165504 + 1);
(*(void ( **)(long long, long long *, void **, long long, void **))(*(_QWORD *)a2 + 48LL))(
a2,
&v16,
&v19,
v15,
v26);
if ( v26[0] != v27 )
operator delete(v26[0], v27[0] + 1LL);
break;
}
goto LABEL_35;
}
LABEL_14:
(*(void ( **)(long long, long long *, long long))(*(_QWORD *)a2 + 32LL))(a2, &v16, v18);
LABEL_35:
if ( v23 != v25 )
operator delete(v23, v25[0] + 1LL);
if ( v19 != v21 )
operator delete(v19, v21[0] + 1LL);
LABEL_39:
result = v22;
--*v22;
return result;
}
|
HandleNode:
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x80
MOV RBX,RSI
MOV R14,RDI
MOV RDI,qword ptr [RDI + 0x8]
CALL 0x00163cbe
MOV qword ptr [RSP + 0x40],RAX
MOV dword ptr [RSP + 0x48],EDX
LEA R12,[RSP + 0x28]
MOV qword ptr [R12 + -0x10],R12
LAB_0016b472:
LEA RSI,[0x2649c1]
LEA RDX,[0x2649c9]
LEA RDI,[RSP + 0x18]
CALL 0x0012c610
LAB_0016b48a:
LEA RDI,[RSP + 0x38]
LEA RDX,[RSP + 0x40]
LEA RCX,[RSP + 0x18]
MOV RSI,R14
CALL 0x0016caa8
MOV RDI,qword ptr [RSP + 0x18]
CMP RDI,R12
JZ 0x0016b4b8
MOV RSI,qword ptr [RSP + 0x28]
INC RSI
CALL 0x0012d2d0
LAB_0016b4b8:
MOV RDI,qword ptr [R14 + 0x8]
LAB_0016b4bc:
CALL 0x00163c1a
TEST AL,AL
JZ 0x0016b4e9
MOV RDI,qword ptr [R14 + 0x8]
LAB_0016b4c9:
CALL 0x00163cbe
LEA RSI,[RSP + 0x18]
MOV qword ptr [RSI],RAX
MOV dword ptr [RSI + 0x8],EDX
MOV RAX,qword ptr [RBX]
MOV RDI,RBX
XOR EDX,EDX
CALL qword ptr [RAX + 0x20]
JMP 0x0016b7bf
LAB_0016b4e9:
MOV RDI,qword ptr [R14 + 0x8]
LAB_0016b4ed:
CALL 0x00163cac
MOV ECX,dword ptr [RAX + 0x10]
MOV dword ptr [RSP + 0x8],ECX
MOV RAX,qword ptr [RAX + 0x8]
MOV qword ptr [RSP],RAX
MOV RDI,qword ptr [R14 + 0x8]
CALL 0x00163cac
CMP dword ptr [RAX + 0x4],0xf
JNZ 0x0016b571
LEA RDI,[RSP + 0x18]
MOV qword ptr [RDI],R12
LAB_0016b518:
LEA RSI,[0x27cd40]
LEA RDX,[0x27cd41]
CALL 0x0012c610
MOV RAX,qword ptr [RBX]
LAB_0016b52e:
MOV RSI,RSP
LEA RDX,[RSP + 0x18]
MOV RDI,RBX
XOR ECX,ECX
XOR R8D,R8D
CALL qword ptr [RAX + 0x48]
MOV RDI,qword ptr [RSP + 0x18]
CMP RDI,R12
JZ 0x0016b558
MOV RSI,qword ptr [RSP + 0x28]
INC RSI
CALL 0x0012d2d0
LAB_0016b558:
MOV RDI,R14
MOV RSI,RBX
CALL 0x0016b8ec
MOV RAX,qword ptr [RBX]
MOV RDI,RBX
CALL qword ptr [RAX + 0x50]
JMP 0x0016b7bf
LAB_0016b571:
MOV RDI,qword ptr [R14 + 0x8]
CALL 0x00163cac
CMP dword ptr [RAX + 0x4],0x11
JNZ 0x0016b5b8
MOV RDI,qword ptr [R14 + 0x8]
CALL 0x00163cac
ADD RAX,0x18
MOV RSI,RSP
MOV RDI,R14
MOV RDX,RAX
CALL 0x0016b96c
MOV RCX,qword ptr [RBX]
MOV RSI,RSP
MOV RDI,RBX
MOV RDX,RAX
CALL qword ptr [RCX + 0x28]
MOV RDI,qword ptr [R14 + 0x8]
CALL 0x00163c84
JMP 0x0016b7bf
LAB_0016b5b8:
LEA RSI,[RSP + 0x18]
MOV qword ptr [RSI],R12
XOR EAX,EAX
MOV qword ptr [RSI + 0x8],RAX
MOV byte ptr [RSI + 0x10],AL
LEA R13,[RSP + 0x50]
MOV qword ptr [R13 + -0x10],R13
MOV qword ptr [R13 + -0x8],RAX
MOV byte ptr [R13],AL
LAB_0016b5da:
LEA RDX,[RSP + 0x10]
LEA RCX,[RSP + 0x40]
MOV RDI,R14
CALL 0x0016ba88
CMP qword ptr [RSP + 0x48],0x0
JZ 0x0016b605
MOV RAX,qword ptr [RBX]
MOV RSI,RSP
LEA RDX,[RSP + 0x40]
MOV RDI,RBX
CALL qword ptr [RAX + 0x58]
LAB_0016b605:
MOV RDI,qword ptr [R14 + 0x8]
CALL 0x00163c1a
TEST AL,AL
JZ 0x0016b628
MOV RDX,qword ptr [RSP + 0x10]
MOV RAX,qword ptr [RBX]
MOV RSI,RSP
MOV RDI,RBX
CALL qword ptr [RAX + 0x20]
JMP 0x0016b791
LAB_0016b628:
MOV RDI,qword ptr [R14 + 0x8]
LAB_0016b62c:
CALL 0x00163cac
MOV R15,RAX
CMP qword ptr [RSP + 0x20],0x0
JNZ 0x0016b667
CMP dword ptr [R15 + 0x4],0x14
LEA RAX,[0x2652a5]
LEA RCX,[0x27cd40]
CMOVZ RCX,RAX
LEA RDI,[RSP + 0x18]
MOV R8D,0x1
XOR ESI,ESI
XOR EDX,EDX
CALL 0x0012ce90
LAB_0016b667:
MOV EAX,dword ptr [R15 + 0x4]
CMP EAX,0x13
JNZ 0x0016b6a9
LEA RSI,[0x27cd40]
LEA RDI,[RSP + 0x18]
CALL 0x0012d380
TEST EAX,EAX
JNZ 0x0016b6a5
LEA RDI,[R15 + 0x18]
CALL 0x0016f084
TEST AL,AL
JZ 0x0016b6a5
MOV RDX,qword ptr [RSP + 0x10]
MOV RAX,qword ptr [RBX]
MOV RSI,RSP
MOV RDI,RBX
CALL qword ptr [RAX + 0x20]
JMP 0x0016b722
LAB_0016b6a5:
MOV EAX,dword ptr [R15 + 0x4]
LAB_0016b6a9:
LEA ECX,[RAX + -0x3]
CMP ECX,0xb
JA 0x0016b6f9
MOV R8D,0x2
LEA RAX,[0x264df4]
MOVSXD RCX,dword ptr [RAX + RCX*0x4]
ADD RCX,RAX
switchD:
JMP RCX
caseD_3:
MOV R8D,0x1
caseD_8:
MOV RCX,qword ptr [RSP + 0x10]
MOV RAX,qword ptr [RBX]
MOV RSI,RSP
LEA RDX,[RSP + 0x18]
MOV RDI,RBX
CALL qword ptr [RAX + 0x38]
MOV R15D,0x40
MOV RDI,R14
MOV RSI,RBX
CALL 0x0016bb06
JMP 0x0016b787
default:
ADD EAX,-0x13
CMP EAX,0x2
JNC 0x0016b7d7
MOV RCX,qword ptr [RSP + 0x10]
ADD R15,0x18
MOV RAX,qword ptr [RBX]
MOV RSI,RSP
LEA RDX,[RSP + 0x18]
MOV RDI,RBX
MOV R8,R15
CALL qword ptr [RAX + 0x30]
LAB_0016b722:
MOV RDI,qword ptr [R14 + 0x8]
CALL 0x00163c84
JMP 0x0016b791
caseD_4:
MOV R8D,0x1
JMP 0x0016b760
caseD_e:
MOV RCX,qword ptr [R14 + 0x18]
MOV RAX,qword ptr [RCX + 0x30]
CMP RAX,qword ptr [RCX + 0x10]
JZ 0x0016b7d7
CMP RAX,qword ptr [RCX + 0x38]
JNZ 0x0016b75a
MOV RCX,qword ptr [RCX + 0x48]
MOV EAX,0x200
ADD RAX,qword ptr [RCX + -0x8]
LAB_0016b75a:
CMP dword ptr [RAX + -0x4],0x4
JNZ 0x0016b7d7
caseD_9:
MOV RCX,qword ptr [RSP + 0x10]
MOV RAX,qword ptr [RBX]
MOV RSI,RSP
LEA RDX,[RSP + 0x18]
MOV RDI,RBX
CALL qword ptr [RAX + 0x48]
MOV R15D,0x50
MOV RDI,R14
MOV RSI,RBX
CALL 0x0016b8ec
LAB_0016b787:
MOV RAX,qword ptr [RBX]
MOV RDI,RBX
CALL qword ptr [RAX + R15*0x1]
LAB_0016b791:
MOV RDI,qword ptr [RSP + 0x40]
CMP RDI,R13
JZ 0x0016b7a8
MOV RSI,qword ptr [RSP + 0x50]
INC RSI
CALL 0x0012d2d0
LAB_0016b7a8:
MOV RDI,qword ptr [RSP + 0x18]
CMP RDI,R12
JZ 0x0016b7bf
MOV RSI,qword ptr [RSP + 0x28]
INC RSI
CALL 0x0012d2d0
LAB_0016b7bf:
MOV RAX,qword ptr [RSP + 0x38]
DEC dword ptr [RAX]
ADD RSP,0x80
POP RBX
POP R12
POP R13
POP R14
POP R15
RET
caseD_5:
LEA RSI,[0x27cd40]
LEA RDI,[RSP + 0x18]
CALL 0x0012d380
MOV R14,qword ptr [RSP + 0x10]
TEST EAX,EAX
JZ 0x0016b847
LEA R15,[RSP + 0x70]
MOV qword ptr [R15 + -0x10],R15
LAB_0016b7fa:
LEA RDX,[0x265505]
LEA RDI,[RSP + 0x60]
MOV RSI,RDX
CALL 0x0012c610
MOV RAX,qword ptr [RBX]
LAB_0016b811:
MOV RSI,RSP
LEA RDX,[RSP + 0x18]
LEA R8,[RSP + 0x60]
MOV RDI,RBX
MOV RCX,R14
CALL qword ptr [RAX + 0x30]
MOV RDI,qword ptr [RSP + 0x60]
CMP RDI,R15
JZ 0x0016b791
MOV RSI,qword ptr [RSP + 0x70]
INC RSI
CALL 0x0012d2d0
JMP 0x0016b791
LAB_0016b847:
MOV RAX,qword ptr [RBX]
LAB_0016b84a:
MOV RSI,RSP
MOV RDI,RBX
MOV RDX,R14
CALL qword ptr [RAX + 0x20]
LAB_0016b856:
JMP 0x0016b791
|
/* YAML::SingleDocParser::HandleNode(YAML::EventHandler&) */
void __thiscall YAML::SingleDocParser::HandleNode(SingleDocParser *this,EventHandler *param_1)
{
char cVar1;
int iVar2;
long lVar3;
int8 uVar4;
long lVar5;
char *pcVar6;
int1 auVar7 [12];
int8 local_a8;
int4 local_a0;
ulong local_98;
int1 *local_90;
long local_88;
int1 local_80;
int7 uStack_7f;
int *local_70;
int1 *local_68;
long local_60;
int1 local_58;
int7 uStack_57;
long *local_48 [2];
long local_38 [2];
auVar7 = Scanner::mark(*(Scanner **)(this + 8));
local_68 = auVar7._0_8_;
local_60 = CONCAT44(local_60._4_4_,auVar7._8_4_);
/* try { // try from 0016b472 to 0016b489 has its CatchHandler @ 0016b8d5 */
local_90 = &local_80;
std::__cxx11::string::_M_construct<char_const*>(&local_90,"bad file","");
/* try { // try from 0016b48a to 0016b4a0 has its CatchHandler @ 0016b8b9 */
DepthGuard<500>::DepthGuard
((DepthGuard<500> *)&local_70,(int *)this,(Mark *)&local_68,(string *)&local_90);
if (local_90 != &local_80) {
operator_delete(local_90,CONCAT71(uStack_7f,local_80) + 1);
}
/* try { // try from 0016b4bc to 0016b4c0 has its CatchHandler @ 0016b8b7 */
cVar1 = Scanner::empty(*(Scanner **)(this + 8));
if (cVar1 != '\0') {
/* try { // try from 0016b4c9 to 0016b4e3 has its CatchHandler @ 0016b8b5 */
auVar7 = Scanner::mark(*(Scanner **)(this + 8));
local_90 = auVar7._0_8_;
local_88 = CONCAT44(local_88._4_4_,auVar7._8_4_);
(**(code **)(*(long *)param_1 + 0x20))(param_1,&local_90,0);
goto LAB_0016b7bf;
}
/* try { // try from 0016b4ed to 0016b509 has its CatchHandler @ 0016b8da */
lVar3 = Scanner::peek(*(Scanner **)(this + 8));
local_a0 = *(int4 *)(lVar3 + 0x10);
local_a8 = *(int8 *)(lVar3 + 8);
lVar3 = Scanner::peek(*(Scanner **)(this + 8));
if (*(int *)(lVar3 + 4) == 0xf) {
local_90 = &local_80;
/* try { // try from 0016b518 to 0016b52a has its CatchHandler @ 0016b880 */
std::__cxx11::string::_M_construct<char_const*>(&local_90,"?","");
/* try { // try from 0016b52e to 0016b540 has its CatchHandler @ 0016b87b */
(**(code **)(*(long *)param_1 + 0x48))(param_1,&local_a8,&local_90,0,0);
if (local_90 != &local_80) {
operator_delete(local_90,CONCAT71(uStack_7f,local_80) + 1);
}
/* try { // try from 0016b558 to 0016b5b2 has its CatchHandler @ 0016b8da */
HandleMap(this,param_1);
(**(code **)(*(long *)param_1 + 0x50))(param_1);
goto LAB_0016b7bf;
}
lVar3 = Scanner::peek(*(Scanner **)(this + 8));
if (*(int *)(lVar3 + 4) == 0x11) {
lVar3 = Scanner::peek(*(Scanner **)(this + 8));
uVar4 = LookupAnchor(this,(Mark *)&local_a8,(string *)(lVar3 + 0x18));
(**(code **)(*(long *)param_1 + 0x28))(param_1,&local_a8,uVar4);
Scanner::pop(*(Scanner **)(this + 8));
goto LAB_0016b7bf;
}
local_88 = 0;
local_80 = 0;
local_60 = 0;
local_58 = 0;
/* try { // try from 0016b5da to 0016b622 has its CatchHandler @ 0016b882 */
local_90 = &local_80;
local_68 = &local_58;
ParseProperties(this,(string *)&local_90,&local_98,(string *)&local_68);
if (local_60 != 0) {
(**(code **)(*(long *)param_1 + 0x58))(param_1,&local_a8,&local_68);
}
cVar1 = Scanner::empty(*(Scanner **)(this + 8));
if (cVar1 != '\0') {
(**(code **)(*(long *)param_1 + 0x20))(param_1,&local_a8,local_98);
goto LAB_0016b791;
}
/* try { // try from 0016b62c to 0016b790 has its CatchHandler @ 0016b879 */
lVar3 = Scanner::peek(*(Scanner **)(this + 8));
if (local_88 == 0) {
pcVar6 = "?";
if (*(int *)(lVar3 + 4) == 0x14) {
pcVar6 = "!";
}
std::__cxx11::string::_M_replace((string *)&local_90,0,0,pcVar6,1);
}
iVar2 = *(int *)(lVar3 + 4);
if (iVar2 == 0x13) {
iVar2 = std::__cxx11::string::compare((string *)&local_90,"?");
if ((iVar2 != 0) || (cVar1 = IsNullString((string *)(lVar3 + 0x18)), cVar1 == '\0')) {
iVar2 = *(int *)(lVar3 + 4);
goto LAB_0016b6a9;
}
(**(code **)(*(long *)param_1 + 0x20))(param_1,&local_a8,local_98);
LAB_0016b722:
Scanner::pop(*(Scanner **)(this + 8));
goto LAB_0016b791;
}
LAB_0016b6a9:
uVar4 = 2;
switch(iVar2) {
case 3:
uVar4 = 1;
case 8:
(**(code **)(*(long *)param_1 + 0x38))(param_1,&local_a8,&local_90,local_98,uVar4);
lVar3 = 0x40;
HandleSequence(this,param_1);
LAB_0016b787:
(**(code **)(*(long *)param_1 + lVar3))(param_1);
goto LAB_0016b791;
case 4:
uVar4 = 1;
case 9:
switchD_0016b6c5_caseD_9:
(**(code **)(*(long *)param_1 + 0x48))(param_1,&local_a8,&local_90,local_98,uVar4);
lVar3 = 0x50;
HandleMap(this,param_1);
goto LAB_0016b787;
case 5:
case 6:
case 7:
case 10:
case 0xb:
case 0xc:
case 0xd:
break;
case 0xe:
lVar3 = *(long *)(this + 0x18);
lVar5 = *(long *)(lVar3 + 0x30);
if (lVar5 != *(long *)(lVar3 + 0x10)) {
if (lVar5 == *(long *)(lVar3 + 0x38)) {
lVar5 = *(long *)(*(long *)(lVar3 + 0x48) + -8) + 0x200;
}
if (*(int *)(lVar5 + -4) == 4) goto switchD_0016b6c5_caseD_9;
}
break;
default:
if (iVar2 - 0x13U < 2) {
(**(code **)(*(long *)param_1 + 0x30))(param_1,&local_a8,&local_90,local_98,lVar3 + 0x18);
goto LAB_0016b722;
}
}
iVar2 = std::__cxx11::string::compare((string *)&local_90,"?");
if (iVar2 == 0) {
/* try { // try from 0016b84a to 0016b855 has its CatchHandler @ 0016b879 */
(**(code **)(*(long *)param_1 + 0x20))(param_1,&local_a8,local_98);
}
else {
/* try { // try from 0016b7fa to 0016b80d has its CatchHandler @ 0016b877 */
local_48[0] = local_38;
std::__cxx11::string::_M_construct<char_const*>(local_48,&DAT_00265505);
/* try { // try from 0016b811 to 0016b826 has its CatchHandler @ 0016b85b */
(**(code **)(*(long *)param_1 + 0x30))(param_1,&local_a8,&local_90,local_98,local_48);
if (local_48[0] != local_38) {
operator_delete(local_48[0],local_38[0] + 1);
}
}
LAB_0016b791:
if (local_68 != &local_58) {
operator_delete(local_68,CONCAT71(uStack_57,local_58) + 1);
}
if (local_90 != &local_80) {
operator_delete(local_90,CONCAT71(uStack_7f,local_80) + 1);
}
LAB_0016b7bf:
*local_70 = *local_70 + -1;
return;
}
|
|
58,009
|
JS_SetPropertyInt64
|
bluesky950520[P]quickjs/quickjs.c
|
int JS_SetPropertyInt64(JSContext *ctx, JSValue this_obj,
int64_t idx, JSValue val)
{
JSAtom prop;
int res;
if ((uint64_t)idx <= INT32_MAX) {
/* fast path for fast arrays */
return JS_SetPropertyValue(ctx, this_obj, js_int32(idx), val,
JS_PROP_THROW);
}
prop = JS_NewAtomInt64(ctx, idx);
if (prop == JS_ATOM_NULL) {
JS_FreeValue(ctx, val);
return -1;
}
res = JS_SetProperty(ctx, this_obj, prop, val);
JS_FreeAtom(ctx, prop);
return res;
}
|
O1
|
c
|
JS_SetPropertyInt64:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x48, %rsp
movq %rdx, %r15
movq %rsi, %r13
movq %rdi, %rbx
movq %r8, 0x28(%rsp)
movq %r9, 0x30(%rsp)
cmpq $0x7fffffff, %rcx # imm = 0x7FFFFFFF
ja 0x253a2
movups 0x28(%rsp), %xmm0
movups %xmm0, (%rsp)
movq %rbx, %rdi
movq %r13, %rsi
movq %r15, %rdx
xorl %r8d, %r8d
movl $0x4000, %r9d # imm = 0x4000
callq 0x24d59
jmp 0x25419
movq %r9, %r14
movq %r8, %r12
movq %rbx, %rdi
movq %rcx, %rsi
callq 0x2428a
testl %eax, %eax
je 0x25405
movl %eax, %ebp
movq %r13, 0x38(%rsp)
movq %r15, 0x40(%rsp)
movups 0x38(%rsp), %xmm0
movups %xmm0, (%rsp)
movq $0x0, 0x18(%rsp)
movl $0x4000, 0x10(%rsp) # imm = 0x4000
movq %rbx, %rdi
movq %r13, %rsi
movq %r15, %rdx
movl %eax, %ecx
movq %r12, %r8
movq %r14, %r9
callq 0x24388
movl %eax, %r14d
movq %rbx, %rdi
movl %ebp, %esi
callq 0x207d8
movl %r14d, %eax
jmp 0x25419
movq 0x18(%rbx), %rdi
movq %r12, %rsi
movq %r14, %rdx
callq 0x1d8c6
movl $0xffffffff, %eax # imm = 0xFFFFFFFF
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
|
JS_SetPropertyInt64:
push rbp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 48h
mov r15, rdx
mov r13, rsi
mov rbx, rdi
mov qword ptr [rsp+78h+var_50], r8
mov qword ptr [rsp+78h+var_50+8], r9
cmp rcx, 7FFFFFFFh
ja short loc_253A2
movups xmm0, [rsp+78h+var_50]
movups [rsp+78h+var_78], xmm0
mov rdi, rbx
mov rsi, r13
mov rdx, r15
xor r8d, r8d
mov r9d, 4000h
call JS_SetPropertyValue
jmp short loc_25419
loc_253A2:
mov r14, r9
mov r12, r8
mov rdi, rbx
mov rsi, rcx
call JS_NewAtomInt64
test eax, eax
jz short loc_25405
mov ebp, eax
mov qword ptr [rsp+78h+var_40], r13
mov qword ptr [rsp+78h+var_40+8], r15
movups xmm0, [rsp+78h+var_40]
movups [rsp+78h+var_78], xmm0
mov [rsp+78h+var_60], 0
mov [rsp+78h+var_68], 4000h
mov rdi, rbx
mov rsi, r13
mov rdx, r15
mov ecx, eax
mov r8, r12
mov r9, r14
call JS_SetPropertyInternal2
mov r14d, eax
mov rdi, rbx
mov esi, ebp
call JS_FreeAtom
mov eax, r14d
jmp short loc_25419
loc_25405:
mov rdi, [rbx+18h]
mov rsi, r12
mov rdx, r14
call JS_FreeValueRT
mov eax, 0FFFFFFFFh
loc_25419:
add rsp, 48h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
|
long long JS_SetPropertyInt64(
long long a1,
unsigned long long a2,
unsigned long long a3,
_DWORD *a4,
_DWORD *a5,
long long a6,
double a7,
__m128 a8,
__m128 a9,
__m128 a10,
double a11,
double a12,
__m128 a13,
__m128 a14)
{
unsigned int v18; // eax
double v19; // xmm4_8
double v20; // xmm5_8
int v21; // ebp
unsigned int v22; // r14d
__int128 v23; // [rsp+28h] [rbp-50h]
__m128 v24; // [rsp+38h] [rbp-40h]
*(_QWORD *)&v23 = a5;
*((_QWORD *)&v23 + 1) = a6;
if ( (unsigned long long)a4 <= 0x7FFFFFFF )
return JS_SetPropertyValue(a1, a2, a3, a4, 0LL, 0x4000u, *(double *)&v23, a8, a9, a10, a11, a12, a13, a14, v23);
v18 = JS_NewAtomInt64(a1, (unsigned long long)a4);
if ( v18 )
{
v21 = v18;
v24.m128_u64[0] = a2;
v24.m128_u64[1] = a3;
v22 = JS_SetPropertyInternal2(a1, a2, a3, v18, a5, a6, v24, a8, a9, a10, v19, v20, a13, a14, a2, a3, 0x4000u, 0LL);
JS_FreeAtom(a1, v21);
return v22;
}
else
{
JS_FreeValueRT(*(_QWORD *)(a1 + 24), a5, a6);
return 0xFFFFFFFFLL;
}
}
|
JS_SetPropertyInt64:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x48
MOV R15,RDX
MOV R13,RSI
MOV RBX,RDI
MOV qword ptr [RSP + 0x28],R8
MOV qword ptr [RSP + 0x30],R9
CMP RCX,0x7fffffff
JA 0x001253a2
MOVUPS XMM0,xmmword ptr [RSP + 0x28]
MOVUPS xmmword ptr [RSP],XMM0
MOV RDI,RBX
MOV RSI,R13
MOV RDX,R15
XOR R8D,R8D
MOV R9D,0x4000
CALL 0x00124d59
JMP 0x00125419
LAB_001253a2:
MOV R14,R9
MOV R12,R8
MOV RDI,RBX
MOV RSI,RCX
CALL 0x0012428a
TEST EAX,EAX
JZ 0x00125405
MOV EBP,EAX
MOV qword ptr [RSP + 0x38],R13
MOV qword ptr [RSP + 0x40],R15
MOVUPS XMM0,xmmword ptr [RSP + 0x38]
MOVUPS xmmword ptr [RSP],XMM0
MOV qword ptr [RSP + 0x18],0x0
MOV dword ptr [RSP + 0x10],0x4000
MOV RDI,RBX
MOV RSI,R13
MOV RDX,R15
MOV ECX,EAX
MOV R8,R12
MOV R9,R14
CALL 0x00124388
MOV R14D,EAX
MOV RDI,RBX
MOV ESI,EBP
CALL 0x001207d8
MOV EAX,R14D
JMP 0x00125419
LAB_00125405:
MOV RDI,qword ptr [RBX + 0x18]
MOV RSI,R12
MOV RDX,R14
CALL 0x0011d8c6
MOV EAX,0xffffffff
LAB_00125419:
ADD RSP,0x48
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
|
ulong JS_SetPropertyInt64(long param_1,int8 param_2,int8 param_3,ulong param_4,
int8 param_5,int8 param_6)
{
int iVar1;
uint uVar2;
ulong uVar3;
int4 local_50;
int4 uStack_48;
int4 local_40;
int4 uStack_38;
if (param_4 < 0x80000000) {
local_50 = (int4)param_5;
uStack_48 = (int4)param_6;
uVar3 = JS_SetPropertyValue(param_1,param_2,param_3,param_4,0,0x4000,local_50,uStack_48);
}
else {
iVar1 = JS_NewAtomInt64(param_1,param_4);
if (iVar1 == 0) {
JS_FreeValueRT(*(int8 *)(param_1 + 0x18),param_5,param_6);
uVar3 = 0xffffffff;
}
else {
local_40 = (int4)param_2;
uStack_38 = (int4)param_3;
uVar2 = JS_SetPropertyInternal2
(param_1,param_2,param_3,iVar1,param_5,param_6,local_40,uStack_38,0x4000,0);
uVar3 = (ulong)uVar2;
JS_FreeAtom(param_1,iVar1);
}
}
return uVar3;
}
|
|
58,010
|
emit_return
|
bluesky950520[P]quickjs/quickjs.c
|
static void emit_return(JSParseState *s, BOOL hasval)
{
BlockEnv *top;
if (s->cur_func->func_kind != JS_FUNC_NORMAL) {
if (!hasval) {
/* no value: direct return in case of async generator */
emit_op(s, OP_undefined);
hasval = TRUE;
} else if (s->cur_func->func_kind == JS_FUNC_ASYNC_GENERATOR) {
/* the await must be done before handling the "finally" in
case it raises an exception */
emit_op(s, OP_await);
}
}
top = s->cur_func->top_break;
while (top != NULL) {
if (top->has_iterator || top->label_finally != -1) {
if (!hasval) {
emit_op(s, OP_undefined);
hasval = TRUE;
}
/* Remove the stack elements up to and including the catch
offset. When 'yield' is used in an expression we have
no easy way to count them, so we use this specific
instruction instead. */
emit_op(s, OP_nip_catch);
/* stack: iter_obj next ret_val */
if (top->has_iterator) {
if (s->cur_func->func_kind == JS_FUNC_ASYNC_GENERATOR) {
int label_next, label_next2;
emit_op(s, OP_nip); /* next */
emit_op(s, OP_swap);
emit_op(s, OP_get_field2);
emit_atom(s, JS_ATOM_return);
emit_ic(s, JS_ATOM_return);
/* stack: iter_obj return_func */
emit_op(s, OP_dup);
emit_op(s, OP_is_undefined_or_null);
label_next = emit_goto(s, OP_if_true, -1);
emit_op(s, OP_call_method);
emit_u16(s, 0);
emit_op(s, OP_iterator_check_object);
emit_op(s, OP_await);
label_next2 = emit_goto(s, OP_goto, -1);
emit_label(s, label_next);
emit_op(s, OP_drop);
emit_label(s, label_next2);
emit_op(s, OP_drop);
} else {
emit_op(s, OP_rot3r);
emit_op(s, OP_undefined); /* dummy catch offset */
emit_op(s, OP_iterator_close);
}
} else {
/* execute the "finally" block */
emit_goto(s, OP_gosub, top->label_finally);
}
}
top = top->prev;
}
if (s->cur_func->is_derived_class_constructor) {
int label_return;
/* 'this' can be uninitialized, so it may be accessed only if
the derived class constructor does not return an object */
if (hasval) {
emit_op(s, OP_check_ctor_return);
label_return = emit_goto(s, OP_if_false, -1);
emit_op(s, OP_drop);
} else {
label_return = -1;
}
/* XXX: if this is not initialized, should throw the
ReferenceError in the caller realm */
emit_op(s, OP_scope_get_var);
emit_atom(s, JS_ATOM_this);
emit_u16(s, 0);
emit_label(s, label_return);
emit_op(s, OP_return);
} else if (s->cur_func->func_kind != JS_FUNC_NORMAL) {
emit_op(s, OP_return_async);
} else {
emit_op(s, hasval ? OP_return : OP_return_undef);
}
}
|
O1
|
c
|
emit_return:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rdi, %rbx
movq 0x90(%rdi), %rax
movzbl 0x84(%rax), %edx
testw %dx, %dx
je 0x5e080
testl %esi, %esi
je 0x5e05e
movl $0x1, %esi
movb $-0x75, %cl
cmpw $0x3, %dx
je 0x5e060
jmp 0x5e080
movb $0x6, %cl
leaq 0x138(%rax), %rdi
movl 0x140(%rax), %edx
movl %edx, 0x168(%rax)
movzbl %cl, %esi
callq 0x1a8bc
movl $0x1, %esi
movq 0x90(%rbx), %rax
movq 0x180(%rax), %r13
testq %r13, %r13
je 0x5e36a
movl $0x138, %r14d # imm = 0x138
leaq 0xc(%rsp), %r12
leaq 0x6(%rsp), %rbp
testb $0x1, 0x20(%r13)
jne 0x5e0b9
cmpl $-0x1, 0x18(%r13)
je 0x5e193
testl %esi, %esi
jne 0x5e0e1
movq 0x90(%rbx), %rax
leaq 0x138(%rax), %rdi
movl 0x140(%rax), %ecx
movl %ecx, 0x168(%rax)
movl $0x6, %esi
callq 0x1a8bc
movq 0x90(%rbx), %rax
leaq 0x138(%rax), %rdi
movl 0x140(%rax), %ecx
movl %ecx, 0x168(%rax)
movl $0x6f, %esi
callq 0x1a8bc
testb $0x1, 0x20(%r13)
jne 0x5e11f
movl 0x18(%r13), %edx
movq %rbx, %rdi
movl $0x6d, %esi
callq 0x6416f
jmp 0x5e18e
movq 0x90(%rbx), %rax
leaq 0x138(%rax), %rdi
cmpb $0x3, 0x84(%rax)
movl 0x140(%rax), %ecx
movl %ecx, 0x168(%rax)
je 0x5e1a5
movl $0x1e, %esi
callq 0x1a8bc
movq 0x90(%rbx), %rax
leaq (%rax,%r14), %rdi
movl 0x140(%rax), %ecx
movl %ecx, 0x168(%rax)
movl $0x6, %esi
callq 0x1a8bc
movq 0x90(%rbx), %rax
leaq (%rax,%r14), %rdi
movl 0x140(%rax), %ecx
movl %ecx, 0x168(%rax)
movl $0x84, %esi
callq 0x1a8bc
movl $0x1, %esi
movq (%r13), %r13
testq %r13, %r13
jne 0x5e0a7
jmp 0x5e36a
movl $0xf, %esi
callq 0x1a8bc
movq 0x90(%rbx), %rax
leaq (%rax,%r14), %rdi
movl 0x140(%rax), %ecx
movl %ecx, 0x168(%rax)
movl $0x1b, %esi
callq 0x1a8bc
movq 0x90(%rbx), %rax
leaq (%rax,%r14), %rdi
movl 0x140(%rax), %ecx
movl %ecx, 0x168(%rax)
movl $0x42, %esi
callq 0x1a8bc
movq 0x90(%rbx), %rdi
addq %r14, %rdi
movl $0x6, 0xc(%rsp)
movl $0x4, %edx
movq %r12, %rsi
callq 0x1a80e
movq %rbx, %rdi
movl $0x6, %esi
callq 0x11a8d
movq 0x90(%rbx), %rax
leaq (%rax,%r14), %rdi
movl 0x140(%rax), %ecx
movl %ecx, 0x168(%rax)
movl $0x11, %esi
callq 0x1a8bc
movq 0x90(%rbx), %rax
leaq (%rax,%r14), %rdi
movl 0x140(%rax), %ecx
movl %ecx, 0x168(%rax)
movl $0xb0, %esi
callq 0x1a8bc
movq %rbx, %rdi
movl $0x6a, %esi
movl $0xffffffff, %edx # imm = 0xFFFFFFFF
callq 0x6416f
movl %eax, 0x8(%rsp)
movq 0x90(%rbx), %rax
leaq (%rax,%r14), %rdi
movl 0x140(%rax), %ecx
movl %ecx, 0x168(%rax)
movl $0x24, %esi
callq 0x1a8bc
movq 0x90(%rbx), %rdi
addq %r14, %rdi
movw $0x0, 0x6(%rsp)
movl $0x2, %edx
movq %rbp, %rsi
callq 0x1a80e
movq 0x90(%rbx), %rax
leaq (%rax,%r14), %rdi
movl 0x140(%rax), %ecx
movl %ecx, 0x168(%rax)
movl $0x82, %esi
callq 0x1a8bc
movq 0x90(%rbx), %rax
leaq (%rax,%r14), %rdi
movl 0x140(%rax), %ecx
movl %ecx, 0x168(%rax)
movl $0x8b, %esi
callq 0x1a8bc
movq %rbx, %rdi
movl $0x6b, %esi
movl $0xffffffff, %edx # imm = 0xFFFFFFFF
callq 0x6416f
movq %r12, %r15
movl %eax, %r12d
movq %rbx, %rdi
movl 0x8(%rsp), %esi
callq 0x642dd
movq 0x90(%rbx), %rax
leaq (%rax,%r14), %rdi
movl 0x140(%rax), %ecx
movl %ecx, 0x168(%rax)
movl $0xe, %esi
callq 0x1a8bc
movq %rbx, %rdi
movl %r12d, %esi
movq %r15, %r12
callq 0x642dd
movq 0x90(%rbx), %rax
leaq (%rax,%r14), %rdi
movl 0x140(%rax), %ecx
movl %ecx, 0x168(%rax)
movl $0xe, %esi
jmp 0x5e189
movq 0x90(%rbx), %rax
cmpl $0x0, 0x78(%rax)
je 0x5e3d4
testl %esi, %esi
je 0x5e3ed
movl $0x138, %r14d # imm = 0x138
leaq (%rax,%r14), %rdi
movl 0x140(%rax), %ecx
movl %ecx, 0x168(%rax)
movl $0x2a, %esi
callq 0x1a8bc
movq %rbx, %rdi
movl $0x69, %esi
movl $0xffffffff, %edx # imm = 0xFFFFFFFF
callq 0x6416f
movl %eax, %ebp
movq 0x90(%rbx), %rax
addq %rax, %r14
movl 0x140(%rax), %ecx
movl %ecx, 0x168(%rax)
movq %r14, %rdi
movl $0xe, %esi
callq 0x1a8bc
jmp 0x5e3f2
movb $0x2e, %cl
cmpb $0x0, 0x84(%rax)
jne 0x5e469
testl %esi, %esi
sete %cl
orb $0x28, %cl
jmp 0x5e469
movl $0xffffffff, %ebp # imm = 0xFFFFFFFF
movq 0x90(%rbx), %rax
movl $0x138, %r14d # imm = 0x138
leaq (%rax,%r14), %rdi
movl 0x140(%rax), %ecx
movl %ecx, 0x168(%rax)
movl $0xb7, %esi
callq 0x1a8bc
movq 0x90(%rbx), %rdi
addq %r14, %rdi
leaq 0x14(%rsp), %rsi
movl $0x8, (%rsi)
movl $0x4, %edx
callq 0x1a80e
addq 0x90(%rbx), %r14
leaq 0x12(%rsp), %rsi
movw $0x0, (%rsi)
movl $0x2, %edx
movq %r14, %rdi
callq 0x1a80e
movq %rbx, %rdi
movl %ebp, %esi
callq 0x642dd
movq 0x90(%rbx), %rax
movb $0x28, %cl
leaq 0x138(%rax), %rdi
movl 0x140(%rax), %edx
movl %edx, 0x168(%rax)
movzbl %cl, %esi
callq 0x1a8bc
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
|
emit_return:
push rbp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 18h
mov rbx, rdi
mov rax, [rdi+90h]
movzx edx, byte ptr [rax+84h]
test dx, dx
jz short loc_5E080
test esi, esi
jz short loc_5E05E
mov esi, 1
mov cl, 8Bh
cmp dx, 3
jz short loc_5E060
jmp short loc_5E080
loc_5E05E:
mov cl, 6
loc_5E060:
lea rdi, [rax+138h]
mov edx, [rax+140h]
mov [rax+168h], edx
movzx esi, cl
call dbuf_putc
mov esi, 1
loc_5E080:
mov rax, [rbx+90h]
mov r13, [rax+180h]
test r13, r13
jz loc_5E36A
mov r14d, 138h
lea r12, [rsp+48h+var_3C]
lea rbp, [rsp+48h+var_42]
loc_5E0A7:
test byte ptr [r13+20h], 1
jnz short loc_5E0B9
cmp dword ptr [r13+18h], 0FFFFFFFFh
jz loc_5E193
loc_5E0B9:
test esi, esi
jnz short loc_5E0E1
mov rax, [rbx+90h]
lea rdi, [rax+138h]
mov ecx, [rax+140h]
mov [rax+168h], ecx
mov esi, 6
call dbuf_putc
loc_5E0E1:
mov rax, [rbx+90h]
lea rdi, [rax+138h]
mov ecx, [rax+140h]
mov [rax+168h], ecx
mov esi, 6Fh ; 'o'
call dbuf_putc
test byte ptr [r13+20h], 1
jnz short loc_5E11F
mov edx, [r13+18h]
mov rdi, rbx
mov esi, 6Dh ; 'm'
call emit_goto
jmp short loc_5E18E
loc_5E11F:
mov rax, [rbx+90h]
lea rdi, [rax+138h]
cmp byte ptr [rax+84h], 3
mov ecx, [rax+140h]
mov [rax+168h], ecx
jz short loc_5E1A5
mov esi, 1Eh
call dbuf_putc
mov rax, [rbx+90h]
lea rdi, [rax+r14]
mov ecx, [rax+140h]
mov [rax+168h], ecx
mov esi, 6
call dbuf_putc
mov rax, [rbx+90h]
lea rdi, [rax+r14]
mov ecx, [rax+140h]
mov [rax+168h], ecx
mov esi, 84h
loc_5E189:
call dbuf_putc
loc_5E18E:
mov esi, 1
loc_5E193:
mov r13, [r13+0]
test r13, r13
jnz loc_5E0A7
jmp loc_5E36A
loc_5E1A5:
mov esi, 0Fh
call dbuf_putc
mov rax, [rbx+90h]
lea rdi, [rax+r14]
mov ecx, [rax+140h]
mov [rax+168h], ecx
mov esi, 1Bh
call dbuf_putc
mov rax, [rbx+90h]
lea rdi, [rax+r14]
mov ecx, [rax+140h]
mov [rax+168h], ecx
mov esi, 42h ; 'B'
call dbuf_putc
mov rdi, [rbx+90h]
add rdi, r14
mov [rsp+48h+var_3C], 6
mov edx, 4
mov rsi, r12
call dbuf_put
mov rdi, rbx
mov esi, 6
call emit_ic
mov rax, [rbx+90h]
lea rdi, [rax+r14]
mov ecx, [rax+140h]
mov [rax+168h], ecx
mov esi, 11h
call dbuf_putc
mov rax, [rbx+90h]
lea rdi, [rax+r14]
mov ecx, [rax+140h]
mov [rax+168h], ecx
mov esi, 0B0h
call dbuf_putc
mov rdi, rbx
mov esi, 6Ah ; 'j'
mov edx, 0FFFFFFFFh
call emit_goto
mov [rsp+48h+var_40], eax
mov rax, [rbx+90h]
lea rdi, [rax+r14]
mov ecx, [rax+140h]
mov [rax+168h], ecx
mov esi, 24h ; '$'
call dbuf_putc
mov rdi, [rbx+90h]
add rdi, r14
mov [rsp+48h+var_42], 0
mov edx, 2
mov rsi, rbp
call dbuf_put
mov rax, [rbx+90h]
lea rdi, [rax+r14]
mov ecx, [rax+140h]
mov [rax+168h], ecx
mov esi, 82h
call dbuf_putc
mov rax, [rbx+90h]
lea rdi, [rax+r14]
mov ecx, [rax+140h]
mov [rax+168h], ecx
mov esi, 8Bh
call dbuf_putc
mov rdi, rbx
mov esi, 6Bh ; 'k'
mov edx, 0FFFFFFFFh
call emit_goto
mov r15, r12
mov r12d, eax
mov rdi, rbx
mov esi, [rsp+48h+var_40]
call emit_label
mov rax, [rbx+90h]
lea rdi, [rax+r14]
mov ecx, [rax+140h]
mov [rax+168h], ecx
mov esi, 0Eh
call dbuf_putc
mov rdi, rbx
mov esi, r12d
mov r12, r15
call emit_label
mov rax, [rbx+90h]
lea rdi, [rax+r14]
mov ecx, [rax+140h]
mov [rax+168h], ecx
mov esi, 0Eh
jmp loc_5E189
loc_5E36A:
mov rax, [rbx+90h]
cmp dword ptr [rax+78h], 0
jz short loc_5E3D4
test esi, esi
jz short loc_5E3ED
mov r14d, 138h
lea rdi, [rax+r14]
mov ecx, [rax+140h]
mov [rax+168h], ecx
mov esi, 2Ah ; '*'
call dbuf_putc
mov rdi, rbx
mov esi, 69h ; 'i'
mov edx, 0FFFFFFFFh
call emit_goto
mov ebp, eax
mov rax, [rbx+90h]
add r14, rax
mov ecx, [rax+140h]
mov [rax+168h], ecx
mov rdi, r14
mov esi, 0Eh
call dbuf_putc
jmp short loc_5E3F2
loc_5E3D4:
mov cl, 2Eh ; '.'
cmp byte ptr [rax+84h], 0
jnz loc_5E469
test esi, esi
setz cl
or cl, 28h
jmp short loc_5E469
loc_5E3ED:
mov ebp, 0FFFFFFFFh
loc_5E3F2:
mov rax, [rbx+90h]
mov r14d, 138h
lea rdi, [rax+r14]
mov ecx, [rax+140h]
mov [rax+168h], ecx
mov esi, 0B7h
call dbuf_putc
mov rdi, [rbx+90h]
add rdi, r14
lea rsi, [rsp+48h+var_34]
mov dword ptr [rsi], 8
mov edx, 4
call dbuf_put
add r14, [rbx+90h]
lea rsi, [rsp+48h+var_36]
mov word ptr [rsi], 0
mov edx, 2
mov rdi, r14
call dbuf_put
mov rdi, rbx
mov esi, ebp
call emit_label
mov rax, [rbx+90h]
mov cl, 28h ; '('
loc_5E469:
lea rdi, [rax+138h]
mov edx, [rax+140h]
mov [rax+168h], edx
movzx esi, cl
call dbuf_putc
add rsp, 18h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
|
long long emit_return(long long *a1, int a2)
{
long long v3; // rax
char v4; // cl
long long *v5; // r13
int *v6; // r12
long long v7; // rax
long long v8; // rax
long long v9; // rax
_QWORD *v10; // rdi
bool v11; // zf
long long v12; // rax
long long v13; // rax
_QWORD *v14; // rdi
char v15; // si
long long v16; // rax
long long v17; // rax
_QWORD *v18; // rdi
long long v19; // rax
long long v20; // rax
long long v21; // rax
_QWORD *v22; // rdi
long long v23; // rax
long long v24; // rax
int *v25; // r15
unsigned int v26; // r12d
long long v27; // rax
long long v28; // rsi
long long v29; // rax
long long v30; // rax
unsigned int v31; // ebp
long long v32; // rax
char v33; // cl
long long v34; // rax
_QWORD *v35; // rdi
_QWORD *v36; // r14
__int16 v38; // [rsp+6h] [rbp-42h] BYREF
unsigned int v39; // [rsp+8h] [rbp-40h]
int v40; // [rsp+Ch] [rbp-3Ch] BYREF
__int16 v41; // [rsp+12h] [rbp-36h] BYREF
int v42[13]; // [rsp+14h] [rbp-34h] BYREF
v3 = a1[18];
if ( *(_BYTE *)(v3 + 132) )
{
if ( a2 )
{
a2 = 1;
v4 = -117;
if ( *(_BYTE *)(v3 + 132) != 3 )
goto LABEL_7;
}
else
{
v4 = 6;
}
*(_DWORD *)(v3 + 360) = *(_DWORD *)(v3 + 320);
dbuf_putc((_QWORD *)(v3 + 312), v4);
a2 = 1;
}
LABEL_7:
v5 = *(long long **)(a1[18] + 384);
if ( v5 )
{
v6 = &v40;
do
{
if ( (v5[4] & 1) != 0 || *((_DWORD *)v5 + 6) != -1 )
{
if ( !a2 )
{
v7 = a1[18];
*(_DWORD *)(v7 + 360) = *(_DWORD *)(v7 + 320);
dbuf_putc((_QWORD *)(v7 + 312), 6);
}
v8 = a1[18];
*(_DWORD *)(v8 + 360) = *(_DWORD *)(v8 + 320);
dbuf_putc((_QWORD *)(v8 + 312), 111);
if ( (v5[4] & 1) != 0 )
{
v9 = a1[18];
v10 = (_QWORD *)(v9 + 312);
v11 = *(_BYTE *)(v9 + 132) == 3;
*(_DWORD *)(v9 + 360) = *(_DWORD *)(v9 + 320);
if ( v11 )
{
dbuf_putc(v10, 15);
v16 = a1[18];
*(_DWORD *)(v16 + 360) = *(_DWORD *)(v16 + 320);
dbuf_putc((_QWORD *)(v16 + 312), 27);
v17 = a1[18];
*(_DWORD *)(v17 + 360) = *(_DWORD *)(v17 + 320);
dbuf_putc((_QWORD *)(v17 + 312), 66);
v18 = (_QWORD *)(a1[18] + 312);
v40 = 6;
dbuf_put(v18, (long long)v6, 4LL);
emit_ic(a1, 6);
v19 = a1[18];
*(_DWORD *)(v19 + 360) = *(_DWORD *)(v19 + 320);
dbuf_putc((_QWORD *)(v19 + 312), 17);
v20 = a1[18];
*(_DWORD *)(v20 + 360) = *(_DWORD *)(v20 + 320);
dbuf_putc((_QWORD *)(v20 + 312), 176);
v39 = emit_goto(a1, 106LL, 0xFFFFFFFFLL);
v21 = a1[18];
*(_DWORD *)(v21 + 360) = *(_DWORD *)(v21 + 320);
dbuf_putc((_QWORD *)(v21 + 312), 36);
v22 = (_QWORD *)(a1[18] + 312);
v38 = 0;
dbuf_put(v22, (long long)&v38, 2LL);
v23 = a1[18];
*(_DWORD *)(v23 + 360) = *(_DWORD *)(v23 + 320);
dbuf_putc((_QWORD *)(v23 + 312), 130);
v24 = a1[18];
*(_DWORD *)(v24 + 360) = *(_DWORD *)(v24 + 320);
dbuf_putc((_QWORD *)(v24 + 312), 139);
v25 = v6;
v26 = emit_goto(a1, 107LL, 0xFFFFFFFFLL);
emit_label(a1, v39);
v27 = a1[18];
*(_DWORD *)(v27 + 360) = *(_DWORD *)(v27 + 320);
dbuf_putc((_QWORD *)(v27 + 312), 14);
v28 = v26;
v6 = v25;
emit_label(a1, v28);
v29 = a1[18];
v14 = (_QWORD *)(v29 + 312);
*(_DWORD *)(v29 + 360) = *(_DWORD *)(v29 + 320);
v15 = 14;
}
else
{
dbuf_putc(v10, 30);
v12 = a1[18];
*(_DWORD *)(v12 + 360) = *(_DWORD *)(v12 + 320);
dbuf_putc((_QWORD *)(v12 + 312), 6);
v13 = a1[18];
v14 = (_QWORD *)(v13 + 312);
*(_DWORD *)(v13 + 360) = *(_DWORD *)(v13 + 320);
v15 = -124;
}
dbuf_putc(v14, v15);
}
else
{
emit_goto(a1, 109LL, *((unsigned int *)v5 + 6));
}
a2 = 1;
}
v5 = (long long *)*v5;
}
while ( v5 );
}
v30 = a1[18];
if ( *(_DWORD *)(v30 + 120) )
{
if ( a2 )
{
*(_DWORD *)(v30 + 360) = *(_DWORD *)(v30 + 320);
dbuf_putc((_QWORD *)(v30 + 312), 42);
v31 = emit_goto(a1, 105LL, 0xFFFFFFFFLL);
v32 = a1[18];
*(_DWORD *)(v32 + 360) = *(_DWORD *)(v32 + 320);
dbuf_putc((_QWORD *)(v32 + 312), 14);
}
else
{
v31 = -1;
}
v34 = a1[18];
*(_DWORD *)(v34 + 360) = *(_DWORD *)(v34 + 320);
dbuf_putc((_QWORD *)(v34 + 312), 183);
v35 = (_QWORD *)(a1[18] + 312);
v42[0] = 8;
dbuf_put(v35, (long long)v42, 4LL);
v36 = (_QWORD *)(a1[18] + 312);
v41 = 0;
dbuf_put(v36, (long long)&v41, 2LL);
emit_label(a1, v31);
v30 = a1[18];
v33 = 40;
}
else
{
v33 = 46;
if ( !*(_BYTE *)(v30 + 132) )
v33 = (a2 == 0) | 0x28;
}
*(_DWORD *)(v30 + 360) = *(_DWORD *)(v30 + 320);
return dbuf_putc((_QWORD *)(v30 + 312), v33);
}
|
emit_return:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x18
MOV RBX,RDI
MOV RAX,qword ptr [RDI + 0x90]
MOVZX EDX,byte ptr [RAX + 0x84]
TEST DX,DX
JZ 0x0015e080
TEST ESI,ESI
JZ 0x0015e05e
MOV ESI,0x1
MOV CL,0x8b
CMP DX,0x3
JZ 0x0015e060
JMP 0x0015e080
LAB_0015e05e:
MOV CL,0x6
LAB_0015e060:
LEA RDI,[RAX + 0x138]
MOV EDX,dword ptr [RAX + 0x140]
MOV dword ptr [RAX + 0x168],EDX
MOVZX ESI,CL
CALL 0x0011a8bc
MOV ESI,0x1
LAB_0015e080:
MOV RAX,qword ptr [RBX + 0x90]
MOV R13,qword ptr [RAX + 0x180]
TEST R13,R13
JZ 0x0015e36a
MOV R14D,0x138
LEA R12,[RSP + 0xc]
LEA RBP,[RSP + 0x6]
LAB_0015e0a7:
TEST byte ptr [R13 + 0x20],0x1
JNZ 0x0015e0b9
CMP dword ptr [R13 + 0x18],-0x1
JZ 0x0015e193
LAB_0015e0b9:
TEST ESI,ESI
JNZ 0x0015e0e1
MOV RAX,qword ptr [RBX + 0x90]
LEA RDI,[RAX + 0x138]
MOV ECX,dword ptr [RAX + 0x140]
MOV dword ptr [RAX + 0x168],ECX
MOV ESI,0x6
CALL 0x0011a8bc
LAB_0015e0e1:
MOV RAX,qword ptr [RBX + 0x90]
LEA RDI,[RAX + 0x138]
MOV ECX,dword ptr [RAX + 0x140]
MOV dword ptr [RAX + 0x168],ECX
MOV ESI,0x6f
CALL 0x0011a8bc
TEST byte ptr [R13 + 0x20],0x1
JNZ 0x0015e11f
MOV EDX,dword ptr [R13 + 0x18]
MOV RDI,RBX
MOV ESI,0x6d
CALL 0x0016416f
JMP 0x0015e18e
LAB_0015e11f:
MOV RAX,qword ptr [RBX + 0x90]
LEA RDI,[RAX + 0x138]
CMP byte ptr [RAX + 0x84],0x3
MOV ECX,dword ptr [RAX + 0x140]
MOV dword ptr [RAX + 0x168],ECX
JZ 0x0015e1a5
MOV ESI,0x1e
CALL 0x0011a8bc
MOV RAX,qword ptr [RBX + 0x90]
LEA RDI,[RAX + R14*0x1]
MOV ECX,dword ptr [RAX + 0x140]
MOV dword ptr [RAX + 0x168],ECX
MOV ESI,0x6
CALL 0x0011a8bc
MOV RAX,qword ptr [RBX + 0x90]
LEA RDI,[RAX + R14*0x1]
MOV ECX,dword ptr [RAX + 0x140]
MOV dword ptr [RAX + 0x168],ECX
MOV ESI,0x84
LAB_0015e189:
CALL 0x0011a8bc
LAB_0015e18e:
MOV ESI,0x1
LAB_0015e193:
MOV R13,qword ptr [R13]
TEST R13,R13
JNZ 0x0015e0a7
JMP 0x0015e36a
LAB_0015e1a5:
MOV ESI,0xf
CALL 0x0011a8bc
MOV RAX,qword ptr [RBX + 0x90]
LEA RDI,[RAX + R14*0x1]
MOV ECX,dword ptr [RAX + 0x140]
MOV dword ptr [RAX + 0x168],ECX
MOV ESI,0x1b
CALL 0x0011a8bc
MOV RAX,qword ptr [RBX + 0x90]
LEA RDI,[RAX + R14*0x1]
MOV ECX,dword ptr [RAX + 0x140]
MOV dword ptr [RAX + 0x168],ECX
MOV ESI,0x42
CALL 0x0011a8bc
MOV RDI,qword ptr [RBX + 0x90]
ADD RDI,R14
MOV dword ptr [RSP + 0xc],0x6
MOV EDX,0x4
MOV RSI,R12
CALL 0x0011a80e
MOV RDI,RBX
MOV ESI,0x6
CALL 0x00111a8d
MOV RAX,qword ptr [RBX + 0x90]
LEA RDI,[RAX + R14*0x1]
MOV ECX,dword ptr [RAX + 0x140]
MOV dword ptr [RAX + 0x168],ECX
MOV ESI,0x11
CALL 0x0011a8bc
MOV RAX,qword ptr [RBX + 0x90]
LEA RDI,[RAX + R14*0x1]
MOV ECX,dword ptr [RAX + 0x140]
MOV dword ptr [RAX + 0x168],ECX
MOV ESI,0xb0
CALL 0x0011a8bc
MOV RDI,RBX
MOV ESI,0x6a
MOV EDX,0xffffffff
CALL 0x0016416f
MOV dword ptr [RSP + 0x8],EAX
MOV RAX,qword ptr [RBX + 0x90]
LEA RDI,[RAX + R14*0x1]
MOV ECX,dword ptr [RAX + 0x140]
MOV dword ptr [RAX + 0x168],ECX
MOV ESI,0x24
CALL 0x0011a8bc
MOV RDI,qword ptr [RBX + 0x90]
ADD RDI,R14
MOV word ptr [RSP + 0x6],0x0
MOV EDX,0x2
MOV RSI,RBP
CALL 0x0011a80e
MOV RAX,qword ptr [RBX + 0x90]
LEA RDI,[RAX + R14*0x1]
MOV ECX,dword ptr [RAX + 0x140]
MOV dword ptr [RAX + 0x168],ECX
MOV ESI,0x82
CALL 0x0011a8bc
MOV RAX,qword ptr [RBX + 0x90]
LEA RDI,[RAX + R14*0x1]
MOV ECX,dword ptr [RAX + 0x140]
MOV dword ptr [RAX + 0x168],ECX
MOV ESI,0x8b
CALL 0x0011a8bc
MOV RDI,RBX
MOV ESI,0x6b
MOV EDX,0xffffffff
CALL 0x0016416f
MOV R15,R12
MOV R12D,EAX
MOV RDI,RBX
MOV ESI,dword ptr [RSP + 0x8]
CALL 0x001642dd
MOV RAX,qword ptr [RBX + 0x90]
LEA RDI,[RAX + R14*0x1]
MOV ECX,dword ptr [RAX + 0x140]
MOV dword ptr [RAX + 0x168],ECX
MOV ESI,0xe
CALL 0x0011a8bc
MOV RDI,RBX
MOV ESI,R12D
MOV R12,R15
CALL 0x001642dd
MOV RAX,qword ptr [RBX + 0x90]
LEA RDI,[RAX + R14*0x1]
MOV ECX,dword ptr [RAX + 0x140]
MOV dword ptr [RAX + 0x168],ECX
MOV ESI,0xe
JMP 0x0015e189
LAB_0015e36a:
MOV RAX,qword ptr [RBX + 0x90]
CMP dword ptr [RAX + 0x78],0x0
JZ 0x0015e3d4
TEST ESI,ESI
JZ 0x0015e3ed
MOV R14D,0x138
LEA RDI,[RAX + R14*0x1]
MOV ECX,dword ptr [RAX + 0x140]
MOV dword ptr [RAX + 0x168],ECX
MOV ESI,0x2a
CALL 0x0011a8bc
MOV RDI,RBX
MOV ESI,0x69
MOV EDX,0xffffffff
CALL 0x0016416f
MOV EBP,EAX
MOV RAX,qword ptr [RBX + 0x90]
ADD R14,RAX
MOV ECX,dword ptr [RAX + 0x140]
MOV dword ptr [RAX + 0x168],ECX
MOV RDI,R14
MOV ESI,0xe
CALL 0x0011a8bc
JMP 0x0015e3f2
LAB_0015e3d4:
MOV CL,0x2e
CMP byte ptr [RAX + 0x84],0x0
JNZ 0x0015e469
TEST ESI,ESI
SETZ CL
OR CL,0x28
JMP 0x0015e469
LAB_0015e3ed:
MOV EBP,0xffffffff
LAB_0015e3f2:
MOV RAX,qword ptr [RBX + 0x90]
MOV R14D,0x138
LEA RDI,[RAX + R14*0x1]
MOV ECX,dword ptr [RAX + 0x140]
MOV dword ptr [RAX + 0x168],ECX
MOV ESI,0xb7
CALL 0x0011a8bc
MOV RDI,qword ptr [RBX + 0x90]
ADD RDI,R14
LEA RSI,[RSP + 0x14]
MOV dword ptr [RSI],0x8
MOV EDX,0x4
CALL 0x0011a80e
ADD R14,qword ptr [RBX + 0x90]
LEA RSI,[RSP + 0x12]
MOV word ptr [RSI],0x0
MOV EDX,0x2
MOV RDI,R14
CALL 0x0011a80e
MOV RDI,RBX
MOV ESI,EBP
CALL 0x001642dd
MOV RAX,qword ptr [RBX + 0x90]
MOV CL,0x28
LAB_0015e469:
LEA RDI,[RAX + 0x138]
MOV EDX,dword ptr [RAX + 0x140]
MOV dword ptr [RAX + 0x168],EDX
MOVZX ESI,CL
CALL 0x0011a8bc
ADD RSP,0x18
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
|
void emit_return(long param_1,int param_2)
{
int4 uVar1;
long lVar2;
byte bVar3;
int8 uVar4;
long *plVar5;
int2 local_42;
int4 local_40;
int4 local_3c;
int2 local_36;
int4 local_34;
lVar2 = *(long *)(param_1 + 0x90);
if (*(char *)(lVar2 + 0x84) != '\0') {
if (param_2 == 0) {
uVar4 = 6;
}
else {
param_2 = 1;
uVar4 = 0x8b;
if (*(char *)(lVar2 + 0x84) != '\x03') goto LAB_0015e080;
}
*(int4 *)(lVar2 + 0x168) = *(int4 *)(lVar2 + 0x140);
dbuf_putc(lVar2 + 0x138,uVar4,*(int4 *)(lVar2 + 0x140),uVar4);
param_2 = 1;
}
LAB_0015e080:
plVar5 = *(long **)(*(long *)(param_1 + 0x90) + 0x180);
if (plVar5 != (long *)0x0) {
do {
if (((*(byte *)(plVar5 + 4) & 1) != 0) || ((int)plVar5[3] != -1)) {
if (param_2 == 0) {
lVar2 = *(long *)(param_1 + 0x90);
*(int4 *)(lVar2 + 0x168) = *(int4 *)(lVar2 + 0x140);
dbuf_putc(lVar2 + 0x138,6);
}
lVar2 = *(long *)(param_1 + 0x90);
*(int4 *)(lVar2 + 0x168) = *(int4 *)(lVar2 + 0x140);
dbuf_putc(lVar2 + 0x138,0x6f);
if ((*(byte *)(plVar5 + 4) & 1) == 0) {
emit_goto(param_1,0x6d,(int)plVar5[3]);
}
else {
lVar2 = *(long *)(param_1 + 0x90);
*(int4 *)(lVar2 + 0x168) = *(int4 *)(lVar2 + 0x140);
if (*(char *)(lVar2 + 0x84) == '\x03') {
dbuf_putc(lVar2 + 0x138,0xf);
lVar2 = *(long *)(param_1 + 0x90);
*(int4 *)(lVar2 + 0x168) = *(int4 *)(lVar2 + 0x140);
dbuf_putc(lVar2 + 0x138,0x1b);
lVar2 = *(long *)(param_1 + 0x90);
*(int4 *)(lVar2 + 0x168) = *(int4 *)(lVar2 + 0x140);
dbuf_putc(lVar2 + 0x138,0x42);
local_3c = 6;
dbuf_put(*(long *)(param_1 + 0x90) + 0x138,&local_3c,4);
emit_ic(param_1,6);
lVar2 = *(long *)(param_1 + 0x90);
*(int4 *)(lVar2 + 0x168) = *(int4 *)(lVar2 + 0x140);
dbuf_putc(lVar2 + 0x138,0x11);
lVar2 = *(long *)(param_1 + 0x90);
*(int4 *)(lVar2 + 0x168) = *(int4 *)(lVar2 + 0x140);
dbuf_putc(lVar2 + 0x138,0xb0);
local_40 = emit_goto(param_1,0x6a,0xffffffff);
lVar2 = *(long *)(param_1 + 0x90);
*(int4 *)(lVar2 + 0x168) = *(int4 *)(lVar2 + 0x140);
dbuf_putc(lVar2 + 0x138,0x24);
local_42 = 0;
dbuf_put(*(long *)(param_1 + 0x90) + 0x138,&local_42,2);
lVar2 = *(long *)(param_1 + 0x90);
*(int4 *)(lVar2 + 0x168) = *(int4 *)(lVar2 + 0x140);
dbuf_putc(lVar2 + 0x138,0x82);
lVar2 = *(long *)(param_1 + 0x90);
*(int4 *)(lVar2 + 0x168) = *(int4 *)(lVar2 + 0x140);
dbuf_putc(lVar2 + 0x138,0x8b);
uVar1 = emit_goto(param_1,0x6b,0xffffffff);
emit_label(param_1,local_40);
lVar2 = *(long *)(param_1 + 0x90);
*(int4 *)(lVar2 + 0x168) = *(int4 *)(lVar2 + 0x140);
dbuf_putc(lVar2 + 0x138,0xe);
emit_label(param_1,uVar1);
lVar2 = *(long *)(param_1 + 0x90);
*(int4 *)(lVar2 + 0x168) = *(int4 *)(lVar2 + 0x140);
uVar4 = 0xe;
}
else {
dbuf_putc(lVar2 + 0x138,0x1e);
lVar2 = *(long *)(param_1 + 0x90);
*(int4 *)(lVar2 + 0x168) = *(int4 *)(lVar2 + 0x140);
dbuf_putc(lVar2 + 0x138,6);
lVar2 = *(long *)(param_1 + 0x90);
*(int4 *)(lVar2 + 0x168) = *(int4 *)(lVar2 + 0x140);
uVar4 = 0x84;
}
dbuf_putc(lVar2 + 0x138,uVar4);
}
param_2 = 1;
}
plVar5 = (long *)*plVar5;
} while (plVar5 != (long *)0x0);
}
lVar2 = *(long *)(param_1 + 0x90);
if (*(int *)(lVar2 + 0x78) == 0) {
bVar3 = 0x2e;
if (*(char *)(lVar2 + 0x84) == '\0') {
bVar3 = param_2 == 0 | 0x28;
}
}
else {
if (param_2 == 0) {
uVar1 = 0xffffffff;
}
else {
*(int4 *)(lVar2 + 0x168) = *(int4 *)(lVar2 + 0x140);
dbuf_putc(lVar2 + 0x138,0x2a);
uVar1 = emit_goto(param_1,0x69,0xffffffff);
lVar2 = *(long *)(param_1 + 0x90);
*(int4 *)(lVar2 + 0x168) = *(int4 *)(lVar2 + 0x140);
dbuf_putc(lVar2 + 0x138,0xe);
}
lVar2 = *(long *)(param_1 + 0x90);
*(int4 *)(lVar2 + 0x168) = *(int4 *)(lVar2 + 0x140);
dbuf_putc(lVar2 + 0x138,0xb7);
local_34 = 8;
dbuf_put(*(long *)(param_1 + 0x90) + 0x138,&local_34,4);
local_36 = 0;
dbuf_put(*(long *)(param_1 + 0x90) + 0x138,&local_36,2);
emit_label(param_1,uVar1);
lVar2 = *(long *)(param_1 + 0x90);
bVar3 = 0x28;
}
*(int4 *)(lVar2 + 0x168) = *(int4 *)(lVar2 + 0x140);
dbuf_putc(lVar2 + 0x138,bVar3,*(int4 *)(lVar2 + 0x140),bVar3);
return;
}
|
|
58,011
|
emit_return
|
bluesky950520[P]quickjs/quickjs.c
|
static void emit_return(JSParseState *s, BOOL hasval)
{
BlockEnv *top;
if (s->cur_func->func_kind != JS_FUNC_NORMAL) {
if (!hasval) {
/* no value: direct return in case of async generator */
emit_op(s, OP_undefined);
hasval = TRUE;
} else if (s->cur_func->func_kind == JS_FUNC_ASYNC_GENERATOR) {
/* the await must be done before handling the "finally" in
case it raises an exception */
emit_op(s, OP_await);
}
}
top = s->cur_func->top_break;
while (top != NULL) {
if (top->has_iterator || top->label_finally != -1) {
if (!hasval) {
emit_op(s, OP_undefined);
hasval = TRUE;
}
/* Remove the stack elements up to and including the catch
offset. When 'yield' is used in an expression we have
no easy way to count them, so we use this specific
instruction instead. */
emit_op(s, OP_nip_catch);
/* stack: iter_obj next ret_val */
if (top->has_iterator) {
if (s->cur_func->func_kind == JS_FUNC_ASYNC_GENERATOR) {
int label_next, label_next2;
emit_op(s, OP_nip); /* next */
emit_op(s, OP_swap);
emit_op(s, OP_get_field2);
emit_atom(s, JS_ATOM_return);
emit_ic(s, JS_ATOM_return);
/* stack: iter_obj return_func */
emit_op(s, OP_dup);
emit_op(s, OP_is_undefined_or_null);
label_next = emit_goto(s, OP_if_true, -1);
emit_op(s, OP_call_method);
emit_u16(s, 0);
emit_op(s, OP_iterator_check_object);
emit_op(s, OP_await);
label_next2 = emit_goto(s, OP_goto, -1);
emit_label(s, label_next);
emit_op(s, OP_drop);
emit_label(s, label_next2);
emit_op(s, OP_drop);
} else {
emit_op(s, OP_rot3r);
emit_op(s, OP_undefined); /* dummy catch offset */
emit_op(s, OP_iterator_close);
}
} else {
/* execute the "finally" block */
emit_goto(s, OP_gosub, top->label_finally);
}
}
top = top->prev;
}
if (s->cur_func->is_derived_class_constructor) {
int label_return;
/* 'this' can be uninitialized, so it may be accessed only if
the derived class constructor does not return an object */
if (hasval) {
emit_op(s, OP_check_ctor_return);
label_return = emit_goto(s, OP_if_false, -1);
emit_op(s, OP_drop);
} else {
label_return = -1;
}
/* XXX: if this is not initialized, should throw the
ReferenceError in the caller realm */
emit_op(s, OP_scope_get_var);
emit_atom(s, JS_ATOM_this);
emit_u16(s, 0);
emit_label(s, label_return);
emit_op(s, OP_return);
} else if (s->cur_func->func_kind != JS_FUNC_NORMAL) {
emit_op(s, OP_return_async);
} else {
emit_op(s, hasval ? OP_return : OP_return_undef);
}
}
|
O3
|
c
|
emit_return:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rdi, %rbx
movq 0x90(%rdi), %rax
movzbl 0x84(%rax), %edx
testw %dx, %dx
je 0x60eb3
testl %esi, %esi
je 0x60e91
movl $0x1, %esi
movb $-0x75, %cl
cmpw $0x3, %dx
je 0x60e93
jmp 0x60eb3
movb $0x6, %cl
leaq 0x138(%rax), %rdi
movl 0x140(%rax), %edx
movl %edx, 0x168(%rax)
movzbl %cl, %esi
callq 0x1b1c5
movl $0x1, %esi
movq 0x90(%rbx), %rax
movq 0x180(%rax), %r13
testq %r13, %r13
je 0x611b2
movl $0x138, %r14d # imm = 0x138
leaq 0xc(%rsp), %r12
leaq 0x6(%rsp), %rbp
testb $0x1, 0x20(%r13)
jne 0x60eec
cmpl $-0x1, 0x18(%r13)
je 0x60fc6
movq 0x90(%rbx), %rax
testl %esi, %esi
jne 0x60f1b
leaq 0x138(%rax), %rdi
movl 0x140(%rax), %ecx
movl %ecx, 0x168(%rax)
movl $0x6, %esi
callq 0x1b1c5
movq 0x90(%rbx), %rax
leaq 0x138(%rax), %rdi
movl 0x140(%rax), %ecx
movl %ecx, 0x168(%rax)
movl $0x6f, %esi
callq 0x1b1c5
testb $0x1, 0x20(%r13)
jne 0x60f52
movl 0x18(%r13), %edx
movq %rbx, %rdi
movl $0x6d, %esi
callq 0x669de
jmp 0x60fc1
movq 0x90(%rbx), %rax
leaq 0x138(%rax), %rdi
cmpb $0x3, 0x84(%rax)
movl 0x140(%rax), %ecx
movl %ecx, 0x168(%rax)
je 0x60fd8
movl $0x1e, %esi
callq 0x1b1c5
movq 0x90(%rbx), %rax
leaq (%rax,%r14), %rdi
movl 0x140(%rax), %ecx
movl %ecx, 0x168(%rax)
movl $0x6, %esi
callq 0x1b1c5
movq 0x90(%rbx), %rax
leaq (%rax,%r14), %rdi
movl 0x140(%rax), %ecx
movl %ecx, 0x168(%rax)
movl $0x84, %esi
callq 0x1b1c5
movl $0x1, %esi
movq (%r13), %r13
testq %r13, %r13
jne 0x60eda
jmp 0x611ab
movl $0xf, %esi
callq 0x1b1c5
movq 0x90(%rbx), %rax
leaq (%rax,%r14), %rdi
movl 0x140(%rax), %ecx
movl %ecx, 0x168(%rax)
movl $0x1b, %esi
callq 0x1b1c5
movq 0x90(%rbx), %rax
leaq (%rax,%r14), %rdi
movl 0x140(%rax), %ecx
movl %ecx, 0x168(%rax)
movl $0x42, %esi
callq 0x1b1c5
movq 0x90(%rbx), %rdi
addq %r14, %rdi
movl $0x6, 0xc(%rsp)
movl $0x4, %edx
movq %r12, %rsi
callq 0x1b116
movq (%rbx), %rdi
movq 0x90(%rbx), %rax
movq 0x230(%rax), %rsi
movl $0x6, %edx
callq 0x1217e
movq 0x90(%rbx), %rax
leaq (%rax,%r14), %rdi
movl 0x140(%rax), %ecx
movl %ecx, 0x168(%rax)
movl $0x11, %esi
callq 0x1b1c5
movq 0x90(%rbx), %rax
leaq (%rax,%r14), %rdi
movl 0x140(%rax), %ecx
movl %ecx, 0x168(%rax)
movl $0xb0, %esi
callq 0x1b1c5
movq %rbx, %rdi
movl $0x6a, %esi
movl $0xffffffff, %edx # imm = 0xFFFFFFFF
callq 0x669de
movl %eax, 0x8(%rsp)
movq 0x90(%rbx), %rax
leaq (%rax,%r14), %rdi
movl 0x140(%rax), %ecx
movl %ecx, 0x168(%rax)
movl $0x24, %esi
callq 0x1b1c5
movq 0x90(%rbx), %rdi
addq %r14, %rdi
movw $0x0, 0x6(%rsp)
movl $0x2, %edx
movq %rbp, %rsi
callq 0x1b116
movq 0x90(%rbx), %rax
leaq (%rax,%r14), %rdi
movl 0x140(%rax), %ecx
movl %ecx, 0x168(%rax)
movl $0x82, %esi
callq 0x1b1c5
movq 0x90(%rbx), %rax
leaq (%rax,%r14), %rdi
movl 0x140(%rax), %ecx
movl %ecx, 0x168(%rax)
movl $0x8b, %esi
callq 0x1b1c5
movq %rbx, %rdi
movl $0x6b, %esi
movl $0xffffffff, %edx # imm = 0xFFFFFFFF
callq 0x669de
movq %r12, %r15
movl %eax, %r12d
movq %rbx, %rdi
movl 0x8(%rsp), %esi
callq 0x66b48
movq 0x90(%rbx), %rax
leaq (%rax,%r14), %rdi
movl 0x140(%rax), %ecx
movl %ecx, 0x168(%rax)
movl $0xe, %esi
callq 0x1b1c5
movq %rbx, %rdi
movl %r12d, %esi
movq %r15, %r12
callq 0x66b48
movq 0x90(%rbx), %rax
leaq (%rax,%r14), %rdi
movl 0x140(%rax), %ecx
movl %ecx, 0x168(%rax)
movl $0xe, %esi
jmp 0x60fbc
movq 0x90(%rbx), %rax
cmpl $0x0, 0x78(%rax)
je 0x6121c
testl %esi, %esi
je 0x61231
movl $0x138, %r14d # imm = 0x138
leaq (%rax,%r14), %rdi
movl 0x140(%rax), %ecx
movl %ecx, 0x168(%rax)
movl $0x2a, %esi
callq 0x1b1c5
movq %rbx, %rdi
movl $0x69, %esi
movl $0xffffffff, %edx # imm = 0xFFFFFFFF
callq 0x669de
movl %eax, %ebp
movq 0x90(%rbx), %rax
addq %rax, %r14
movl 0x140(%rax), %ecx
movl %ecx, 0x168(%rax)
movq %r14, %rdi
movl $0xe, %esi
callq 0x1b1c5
movq 0x90(%rbx), %rax
jmp 0x61236
movb $0x2e, %cl
cmpb $0x0, 0x84(%rax)
jne 0x612a6
testl %esi, %esi
sete %cl
orb $0x28, %cl
jmp 0x612a6
movl $0xffffffff, %ebp # imm = 0xFFFFFFFF
movl $0x138, %r14d # imm = 0x138
leaq (%rax,%r14), %rdi
movl 0x140(%rax), %ecx
movl %ecx, 0x168(%rax)
movl $0xb7, %esi
callq 0x1b1c5
movq 0x90(%rbx), %rdi
addq %r14, %rdi
leaq 0x14(%rsp), %rsi
movl $0x8, (%rsi)
movl $0x4, %edx
callq 0x1b116
addq 0x90(%rbx), %r14
leaq 0x12(%rsp), %rsi
movw $0x0, (%rsi)
movl $0x2, %edx
movq %r14, %rdi
callq 0x1b116
movq %rbx, %rdi
movl %ebp, %esi
callq 0x66b48
movq 0x90(%rbx), %rax
movb $0x28, %cl
leaq 0x138(%rax), %rdi
movl 0x140(%rax), %edx
movl %edx, 0x168(%rax)
movzbl %cl, %esi
callq 0x1b1c5
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
|
emit_return:
push rbp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 18h
mov rbx, rdi
mov rax, [rdi+90h]
movzx edx, byte ptr [rax+84h]
test dx, dx
jz short loc_60EB3
test esi, esi
jz short loc_60E91
mov esi, 1
mov cl, 8Bh
cmp dx, 3
jz short loc_60E93
jmp short loc_60EB3
loc_60E91:
mov cl, 6
loc_60E93:
lea rdi, [rax+138h]
mov edx, [rax+140h]
mov [rax+168h], edx
movzx esi, cl
call dbuf_putc
mov esi, 1
loc_60EB3:
mov rax, [rbx+90h]
mov r13, [rax+180h]
test r13, r13
jz loc_611B2
mov r14d, 138h
lea r12, [rsp+48h+var_3C]
lea rbp, [rsp+48h+var_42]
loc_60EDA:
test byte ptr [r13+20h], 1
jnz short loc_60EEC
cmp dword ptr [r13+18h], 0FFFFFFFFh
jz loc_60FC6
loc_60EEC:
mov rax, [rbx+90h]
test esi, esi
jnz short loc_60F1B
lea rdi, [rax+138h]
mov ecx, [rax+140h]
mov [rax+168h], ecx
mov esi, 6
call dbuf_putc
mov rax, [rbx+90h]
loc_60F1B:
lea rdi, [rax+138h]
mov ecx, [rax+140h]
mov [rax+168h], ecx
mov esi, 6Fh ; 'o'
call dbuf_putc
test byte ptr [r13+20h], 1
jnz short loc_60F52
mov edx, [r13+18h]
mov rdi, rbx
mov esi, 6Dh ; 'm'
call emit_goto
jmp short loc_60FC1
loc_60F52:
mov rax, [rbx+90h]
lea rdi, [rax+138h]
cmp byte ptr [rax+84h], 3
mov ecx, [rax+140h]
mov [rax+168h], ecx
jz short loc_60FD8
mov esi, 1Eh
call dbuf_putc
mov rax, [rbx+90h]
lea rdi, [rax+r14]
mov ecx, [rax+140h]
mov [rax+168h], ecx
mov esi, 6
call dbuf_putc
mov rax, [rbx+90h]
lea rdi, [rax+r14]
mov ecx, [rax+140h]
mov [rax+168h], ecx
mov esi, 84h
loc_60FBC:
call dbuf_putc
loc_60FC1:
mov esi, 1
loc_60FC6:
mov r13, [r13+0]
test r13, r13
jnz loc_60EDA
jmp loc_611AB
loc_60FD8:
mov esi, 0Fh
call dbuf_putc
mov rax, [rbx+90h]
lea rdi, [rax+r14]
mov ecx, [rax+140h]
mov [rax+168h], ecx
mov esi, 1Bh
call dbuf_putc
mov rax, [rbx+90h]
lea rdi, [rax+r14]
mov ecx, [rax+140h]
mov [rax+168h], ecx
mov esi, 42h ; 'B'
call dbuf_putc
mov rdi, [rbx+90h]
add rdi, r14
mov [rsp+48h+var_3C], 6
mov edx, 4
mov rsi, r12
call dbuf_put
mov rdi, [rbx]
mov rax, [rbx+90h]
mov rsi, [rax+230h]
mov edx, 6
call emit_ic
mov rax, [rbx+90h]
lea rdi, [rax+r14]
mov ecx, [rax+140h]
mov [rax+168h], ecx
mov esi, 11h
call dbuf_putc
mov rax, [rbx+90h]
lea rdi, [rax+r14]
mov ecx, [rax+140h]
mov [rax+168h], ecx
mov esi, 0B0h
call dbuf_putc
mov rdi, rbx
mov esi, 6Ah ; 'j'
mov edx, 0FFFFFFFFh
call emit_goto
mov [rsp+48h+var_40], eax
mov rax, [rbx+90h]
lea rdi, [rax+r14]
mov ecx, [rax+140h]
mov [rax+168h], ecx
mov esi, 24h ; '$'
call dbuf_putc
mov rdi, [rbx+90h]
add rdi, r14
mov [rsp+48h+var_42], 0
mov edx, 2
mov rsi, rbp
call dbuf_put
mov rax, [rbx+90h]
lea rdi, [rax+r14]
mov ecx, [rax+140h]
mov [rax+168h], ecx
mov esi, 82h
call dbuf_putc
mov rax, [rbx+90h]
lea rdi, [rax+r14]
mov ecx, [rax+140h]
mov [rax+168h], ecx
mov esi, 8Bh
call dbuf_putc
mov rdi, rbx
mov esi, 6Bh ; 'k'
mov edx, 0FFFFFFFFh
call emit_goto
mov r15, r12
mov r12d, eax
mov rdi, rbx
mov esi, [rsp+48h+var_40]
call emit_label
mov rax, [rbx+90h]
lea rdi, [rax+r14]
mov ecx, [rax+140h]
mov [rax+168h], ecx
mov esi, 0Eh
call dbuf_putc
mov rdi, rbx
mov esi, r12d
mov r12, r15
call emit_label
mov rax, [rbx+90h]
lea rdi, [rax+r14]
mov ecx, [rax+140h]
mov [rax+168h], ecx
mov esi, 0Eh
jmp loc_60FBC
loc_611AB:
mov rax, [rbx+90h]
loc_611B2:
cmp dword ptr [rax+78h], 0
jz short loc_6121C
test esi, esi
jz short loc_61231
mov r14d, 138h
lea rdi, [rax+r14]
mov ecx, [rax+140h]
mov [rax+168h], ecx
mov esi, 2Ah ; '*'
call dbuf_putc
mov rdi, rbx
mov esi, 69h ; 'i'
mov edx, 0FFFFFFFFh
call emit_goto
mov ebp, eax
mov rax, [rbx+90h]
add r14, rax
mov ecx, [rax+140h]
mov [rax+168h], ecx
mov rdi, r14
mov esi, 0Eh
call dbuf_putc
mov rax, [rbx+90h]
jmp short loc_61236
loc_6121C:
mov cl, 2Eh ; '.'
cmp byte ptr [rax+84h], 0
jnz short loc_612A6
test esi, esi
setz cl
or cl, 28h
jmp short loc_612A6
loc_61231:
mov ebp, 0FFFFFFFFh
loc_61236:
mov r14d, 138h
lea rdi, [rax+r14]
mov ecx, [rax+140h]
mov [rax+168h], ecx
mov esi, 0B7h
call dbuf_putc
mov rdi, [rbx+90h]
add rdi, r14
lea rsi, [rsp+48h+var_34]
mov dword ptr [rsi], 8
mov edx, 4
call dbuf_put
add r14, [rbx+90h]
lea rsi, [rsp+48h+var_36]
mov word ptr [rsi], 0
mov edx, 2
mov rdi, r14
call dbuf_put
mov rdi, rbx
mov esi, ebp
call emit_label
mov rax, [rbx+90h]
mov cl, 28h ; '('
loc_612A6:
lea rdi, [rax+138h]
mov edx, [rax+140h]
mov [rax+168h], edx
movzx esi, cl
call dbuf_putc
add rsp, 18h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
|
long long emit_return(long long *a1, int a2)
{
long long v3; // rax
char v4; // cl
long long v5; // rax
long long *v6; // r13
int *v7; // r12
long long v8; // rax
long long v9; // rax
_QWORD *v10; // rdi
bool v11; // zf
long long v12; // rax
long long v13; // rax
_QWORD *v14; // rdi
char v15; // si
long long v16; // rax
long long v17; // rax
_QWORD *v18; // rdi
long long v19; // rax
long long v20; // rax
long long v21; // rax
_QWORD *v22; // rdi
long long v23; // rax
long long v24; // rax
int *v25; // r15
unsigned int v26; // r12d
long long v27; // rax
long long v28; // rsi
long long v29; // rax
unsigned int v30; // ebp
long long v31; // rax
char v32; // cl
_QWORD *v33; // rdi
_QWORD *v34; // r14
__int16 v36; // [rsp+6h] [rbp-42h] BYREF
unsigned int v37; // [rsp+8h] [rbp-40h]
int v38; // [rsp+Ch] [rbp-3Ch] BYREF
__int16 v39; // [rsp+12h] [rbp-36h] BYREF
int v40[13]; // [rsp+14h] [rbp-34h] BYREF
v3 = a1[18];
if ( *(_BYTE *)(v3 + 132) )
{
if ( a2 )
{
a2 = 1;
v4 = -117;
if ( *(_BYTE *)(v3 + 132) != 3 )
goto LABEL_7;
}
else
{
v4 = 6;
}
*(_DWORD *)(v3 + 360) = *(_DWORD *)(v3 + 320);
dbuf_putc((_QWORD *)(v3 + 312), v4);
a2 = 1;
}
LABEL_7:
v5 = a1[18];
v6 = *(long long **)(v5 + 384);
if ( v6 )
{
v7 = &v38;
do
{
if ( (v6[4] & 1) != 0 || *((_DWORD *)v6 + 6) != -1 )
{
v8 = a1[18];
if ( !a2 )
{
*(_DWORD *)(v8 + 360) = *(_DWORD *)(v8 + 320);
dbuf_putc((_QWORD *)(v8 + 312), 6);
v8 = a1[18];
}
*(_DWORD *)(v8 + 360) = *(_DWORD *)(v8 + 320);
dbuf_putc((_QWORD *)(v8 + 312), 111);
if ( (v6[4] & 1) != 0 )
{
v9 = a1[18];
v10 = (_QWORD *)(v9 + 312);
v11 = *(_BYTE *)(v9 + 132) == 3;
*(_DWORD *)(v9 + 360) = *(_DWORD *)(v9 + 320);
if ( v11 )
{
dbuf_putc(v10, 15);
v16 = a1[18];
*(_DWORD *)(v16 + 360) = *(_DWORD *)(v16 + 320);
dbuf_putc((_QWORD *)(v16 + 312), 27);
v17 = a1[18];
*(_DWORD *)(v17 + 360) = *(_DWORD *)(v17 + 320);
dbuf_putc((_QWORD *)(v17 + 312), 66);
v18 = (_QWORD *)(a1[18] + 312);
v38 = 6;
dbuf_put(v18, (long long)v7, 4LL);
emit_ic(*a1, *(_QWORD *)(a1[18] + 560), 6);
v19 = a1[18];
*(_DWORD *)(v19 + 360) = *(_DWORD *)(v19 + 320);
dbuf_putc((_QWORD *)(v19 + 312), 17);
v20 = a1[18];
*(_DWORD *)(v20 + 360) = *(_DWORD *)(v20 + 320);
dbuf_putc((_QWORD *)(v20 + 312), 176);
v37 = emit_goto(a1, 106LL, 0xFFFFFFFFLL);
v21 = a1[18];
*(_DWORD *)(v21 + 360) = *(_DWORD *)(v21 + 320);
dbuf_putc((_QWORD *)(v21 + 312), 36);
v22 = (_QWORD *)(a1[18] + 312);
v36 = 0;
dbuf_put(v22, (long long)&v36, 2LL);
v23 = a1[18];
*(_DWORD *)(v23 + 360) = *(_DWORD *)(v23 + 320);
dbuf_putc((_QWORD *)(v23 + 312), 130);
v24 = a1[18];
*(_DWORD *)(v24 + 360) = *(_DWORD *)(v24 + 320);
dbuf_putc((_QWORD *)(v24 + 312), 139);
v25 = v7;
v26 = emit_goto(a1, 107LL, 0xFFFFFFFFLL);
emit_label(a1, v37);
v27 = a1[18];
*(_DWORD *)(v27 + 360) = *(_DWORD *)(v27 + 320);
dbuf_putc((_QWORD *)(v27 + 312), 14);
v28 = v26;
v7 = v25;
emit_label(a1, v28);
v29 = a1[18];
v14 = (_QWORD *)(v29 + 312);
*(_DWORD *)(v29 + 360) = *(_DWORD *)(v29 + 320);
v15 = 14;
}
else
{
dbuf_putc(v10, 30);
v12 = a1[18];
*(_DWORD *)(v12 + 360) = *(_DWORD *)(v12 + 320);
dbuf_putc((_QWORD *)(v12 + 312), 6);
v13 = a1[18];
v14 = (_QWORD *)(v13 + 312);
*(_DWORD *)(v13 + 360) = *(_DWORD *)(v13 + 320);
v15 = -124;
}
dbuf_putc(v14, v15);
}
else
{
emit_goto(a1, 109LL, *((unsigned int *)v6 + 6));
}
a2 = 1;
}
v6 = (long long *)*v6;
}
while ( v6 );
v5 = a1[18];
}
if ( *(_DWORD *)(v5 + 120) )
{
if ( a2 )
{
*(_DWORD *)(v5 + 360) = *(_DWORD *)(v5 + 320);
dbuf_putc((_QWORD *)(v5 + 312), 42);
v30 = emit_goto(a1, 105LL, 0xFFFFFFFFLL);
v31 = a1[18];
*(_DWORD *)(v31 + 360) = *(_DWORD *)(v31 + 320);
dbuf_putc((_QWORD *)(v31 + 312), 14);
v5 = a1[18];
}
else
{
v30 = -1;
}
*(_DWORD *)(v5 + 360) = *(_DWORD *)(v5 + 320);
dbuf_putc((_QWORD *)(v5 + 312), 183);
v33 = (_QWORD *)(a1[18] + 312);
v40[0] = 8;
dbuf_put(v33, (long long)v40, 4LL);
v34 = (_QWORD *)(a1[18] + 312);
v39 = 0;
dbuf_put(v34, (long long)&v39, 2LL);
emit_label(a1, v30);
v5 = a1[18];
v32 = 40;
}
else
{
v32 = 46;
if ( !*(_BYTE *)(v5 + 132) )
v32 = (a2 == 0) | 0x28;
}
*(_DWORD *)(v5 + 360) = *(_DWORD *)(v5 + 320);
return dbuf_putc((_QWORD *)(v5 + 312), v32);
}
|
emit_return:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x18
MOV RBX,RDI
MOV RAX,qword ptr [RDI + 0x90]
MOVZX EDX,byte ptr [RAX + 0x84]
TEST DX,DX
JZ 0x00160eb3
TEST ESI,ESI
JZ 0x00160e91
MOV ESI,0x1
MOV CL,0x8b
CMP DX,0x3
JZ 0x00160e93
JMP 0x00160eb3
LAB_00160e91:
MOV CL,0x6
LAB_00160e93:
LEA RDI,[RAX + 0x138]
MOV EDX,dword ptr [RAX + 0x140]
MOV dword ptr [RAX + 0x168],EDX
MOVZX ESI,CL
CALL 0x0011b1c5
MOV ESI,0x1
LAB_00160eb3:
MOV RAX,qword ptr [RBX + 0x90]
MOV R13,qword ptr [RAX + 0x180]
TEST R13,R13
JZ 0x001611b2
MOV R14D,0x138
LEA R12,[RSP + 0xc]
LEA RBP,[RSP + 0x6]
LAB_00160eda:
TEST byte ptr [R13 + 0x20],0x1
JNZ 0x00160eec
CMP dword ptr [R13 + 0x18],-0x1
JZ 0x00160fc6
LAB_00160eec:
MOV RAX,qword ptr [RBX + 0x90]
TEST ESI,ESI
JNZ 0x00160f1b
LEA RDI,[RAX + 0x138]
MOV ECX,dword ptr [RAX + 0x140]
MOV dword ptr [RAX + 0x168],ECX
MOV ESI,0x6
CALL 0x0011b1c5
MOV RAX,qword ptr [RBX + 0x90]
LAB_00160f1b:
LEA RDI,[RAX + 0x138]
MOV ECX,dword ptr [RAX + 0x140]
MOV dword ptr [RAX + 0x168],ECX
MOV ESI,0x6f
CALL 0x0011b1c5
TEST byte ptr [R13 + 0x20],0x1
JNZ 0x00160f52
MOV EDX,dword ptr [R13 + 0x18]
MOV RDI,RBX
MOV ESI,0x6d
CALL 0x001669de
JMP 0x00160fc1
LAB_00160f52:
MOV RAX,qword ptr [RBX + 0x90]
LEA RDI,[RAX + 0x138]
CMP byte ptr [RAX + 0x84],0x3
MOV ECX,dword ptr [RAX + 0x140]
MOV dword ptr [RAX + 0x168],ECX
JZ 0x00160fd8
MOV ESI,0x1e
CALL 0x0011b1c5
MOV RAX,qword ptr [RBX + 0x90]
LEA RDI,[RAX + R14*0x1]
MOV ECX,dword ptr [RAX + 0x140]
MOV dword ptr [RAX + 0x168],ECX
MOV ESI,0x6
CALL 0x0011b1c5
MOV RAX,qword ptr [RBX + 0x90]
LEA RDI,[RAX + R14*0x1]
MOV ECX,dword ptr [RAX + 0x140]
MOV dword ptr [RAX + 0x168],ECX
MOV ESI,0x84
LAB_00160fbc:
CALL 0x0011b1c5
LAB_00160fc1:
MOV ESI,0x1
LAB_00160fc6:
MOV R13,qword ptr [R13]
TEST R13,R13
JNZ 0x00160eda
JMP 0x001611ab
LAB_00160fd8:
MOV ESI,0xf
CALL 0x0011b1c5
MOV RAX,qword ptr [RBX + 0x90]
LEA RDI,[RAX + R14*0x1]
MOV ECX,dword ptr [RAX + 0x140]
MOV dword ptr [RAX + 0x168],ECX
MOV ESI,0x1b
CALL 0x0011b1c5
MOV RAX,qword ptr [RBX + 0x90]
LEA RDI,[RAX + R14*0x1]
MOV ECX,dword ptr [RAX + 0x140]
MOV dword ptr [RAX + 0x168],ECX
MOV ESI,0x42
CALL 0x0011b1c5
MOV RDI,qword ptr [RBX + 0x90]
ADD RDI,R14
MOV dword ptr [RSP + 0xc],0x6
MOV EDX,0x4
MOV RSI,R12
CALL 0x0011b116
MOV RDI,qword ptr [RBX]
MOV RAX,qword ptr [RBX + 0x90]
MOV RSI,qword ptr [RAX + 0x230]
MOV EDX,0x6
CALL 0x0011217e
MOV RAX,qword ptr [RBX + 0x90]
LEA RDI,[RAX + R14*0x1]
MOV ECX,dword ptr [RAX + 0x140]
MOV dword ptr [RAX + 0x168],ECX
MOV ESI,0x11
CALL 0x0011b1c5
MOV RAX,qword ptr [RBX + 0x90]
LEA RDI,[RAX + R14*0x1]
MOV ECX,dword ptr [RAX + 0x140]
MOV dword ptr [RAX + 0x168],ECX
MOV ESI,0xb0
CALL 0x0011b1c5
MOV RDI,RBX
MOV ESI,0x6a
MOV EDX,0xffffffff
CALL 0x001669de
MOV dword ptr [RSP + 0x8],EAX
MOV RAX,qword ptr [RBX + 0x90]
LEA RDI,[RAX + R14*0x1]
MOV ECX,dword ptr [RAX + 0x140]
MOV dword ptr [RAX + 0x168],ECX
MOV ESI,0x24
CALL 0x0011b1c5
MOV RDI,qword ptr [RBX + 0x90]
ADD RDI,R14
MOV word ptr [RSP + 0x6],0x0
MOV EDX,0x2
MOV RSI,RBP
CALL 0x0011b116
MOV RAX,qword ptr [RBX + 0x90]
LEA RDI,[RAX + R14*0x1]
MOV ECX,dword ptr [RAX + 0x140]
MOV dword ptr [RAX + 0x168],ECX
MOV ESI,0x82
CALL 0x0011b1c5
MOV RAX,qword ptr [RBX + 0x90]
LEA RDI,[RAX + R14*0x1]
MOV ECX,dword ptr [RAX + 0x140]
MOV dword ptr [RAX + 0x168],ECX
MOV ESI,0x8b
CALL 0x0011b1c5
MOV RDI,RBX
MOV ESI,0x6b
MOV EDX,0xffffffff
CALL 0x001669de
MOV R15,R12
MOV R12D,EAX
MOV RDI,RBX
MOV ESI,dword ptr [RSP + 0x8]
CALL 0x00166b48
MOV RAX,qword ptr [RBX + 0x90]
LEA RDI,[RAX + R14*0x1]
MOV ECX,dword ptr [RAX + 0x140]
MOV dword ptr [RAX + 0x168],ECX
MOV ESI,0xe
CALL 0x0011b1c5
MOV RDI,RBX
MOV ESI,R12D
MOV R12,R15
CALL 0x00166b48
MOV RAX,qword ptr [RBX + 0x90]
LEA RDI,[RAX + R14*0x1]
MOV ECX,dword ptr [RAX + 0x140]
MOV dword ptr [RAX + 0x168],ECX
MOV ESI,0xe
JMP 0x00160fbc
LAB_001611ab:
MOV RAX,qword ptr [RBX + 0x90]
LAB_001611b2:
CMP dword ptr [RAX + 0x78],0x0
JZ 0x0016121c
TEST ESI,ESI
JZ 0x00161231
MOV R14D,0x138
LEA RDI,[RAX + R14*0x1]
MOV ECX,dword ptr [RAX + 0x140]
MOV dword ptr [RAX + 0x168],ECX
MOV ESI,0x2a
CALL 0x0011b1c5
MOV RDI,RBX
MOV ESI,0x69
MOV EDX,0xffffffff
CALL 0x001669de
MOV EBP,EAX
MOV RAX,qword ptr [RBX + 0x90]
ADD R14,RAX
MOV ECX,dword ptr [RAX + 0x140]
MOV dword ptr [RAX + 0x168],ECX
MOV RDI,R14
MOV ESI,0xe
CALL 0x0011b1c5
MOV RAX,qword ptr [RBX + 0x90]
JMP 0x00161236
LAB_0016121c:
MOV CL,0x2e
CMP byte ptr [RAX + 0x84],0x0
JNZ 0x001612a6
TEST ESI,ESI
SETZ CL
OR CL,0x28
JMP 0x001612a6
LAB_00161231:
MOV EBP,0xffffffff
LAB_00161236:
MOV R14D,0x138
LEA RDI,[RAX + R14*0x1]
MOV ECX,dword ptr [RAX + 0x140]
MOV dword ptr [RAX + 0x168],ECX
MOV ESI,0xb7
CALL 0x0011b1c5
MOV RDI,qword ptr [RBX + 0x90]
ADD RDI,R14
LEA RSI,[RSP + 0x14]
MOV dword ptr [RSI],0x8
MOV EDX,0x4
CALL 0x0011b116
ADD R14,qword ptr [RBX + 0x90]
LEA RSI,[RSP + 0x12]
MOV word ptr [RSI],0x0
MOV EDX,0x2
MOV RDI,R14
CALL 0x0011b116
MOV RDI,RBX
MOV ESI,EBP
CALL 0x00166b48
MOV RAX,qword ptr [RBX + 0x90]
MOV CL,0x28
LAB_001612a6:
LEA RDI,[RAX + 0x138]
MOV EDX,dword ptr [RAX + 0x140]
MOV dword ptr [RAX + 0x168],EDX
MOVZX ESI,CL
CALL 0x0011b1c5
ADD RSP,0x18
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
|
void emit_return(int8 *param_1,int param_2)
{
int4 uVar1;
long lVar2;
byte bVar3;
int8 uVar4;
long *plVar5;
int2 local_42;
int4 local_40;
int4 local_3c;
int2 local_36;
int4 local_34;
lVar2 = param_1[0x12];
if (*(char *)(lVar2 + 0x84) != '\0') {
if (param_2 == 0) {
uVar4 = 6;
}
else {
param_2 = 1;
uVar4 = 0x8b;
if (*(char *)(lVar2 + 0x84) != '\x03') goto LAB_00160eb3;
}
*(int4 *)(lVar2 + 0x168) = *(int4 *)(lVar2 + 0x140);
dbuf_putc(lVar2 + 0x138,uVar4,*(int4 *)(lVar2 + 0x140),uVar4);
param_2 = 1;
}
LAB_00160eb3:
lVar2 = param_1[0x12];
plVar5 = *(long **)(lVar2 + 0x180);
if (plVar5 != (long *)0x0) {
do {
if (((*(byte *)(plVar5 + 4) & 1) != 0) || ((int)plVar5[3] != -1)) {
lVar2 = param_1[0x12];
if (param_2 == 0) {
*(int4 *)(lVar2 + 0x168) = *(int4 *)(lVar2 + 0x140);
dbuf_putc(lVar2 + 0x138,6);
lVar2 = param_1[0x12];
}
*(int4 *)(lVar2 + 0x168) = *(int4 *)(lVar2 + 0x140);
dbuf_putc(lVar2 + 0x138,0x6f);
if ((*(byte *)(plVar5 + 4) & 1) == 0) {
emit_goto(param_1,0x6d,(int)plVar5[3]);
}
else {
lVar2 = param_1[0x12];
*(int4 *)(lVar2 + 0x168) = *(int4 *)(lVar2 + 0x140);
if (*(char *)(lVar2 + 0x84) == '\x03') {
dbuf_putc(lVar2 + 0x138,0xf);
lVar2 = param_1[0x12];
*(int4 *)(lVar2 + 0x168) = *(int4 *)(lVar2 + 0x140);
dbuf_putc(lVar2 + 0x138,0x1b);
lVar2 = param_1[0x12];
*(int4 *)(lVar2 + 0x168) = *(int4 *)(lVar2 + 0x140);
dbuf_putc(lVar2 + 0x138,0x42);
local_3c = 6;
dbuf_put(param_1[0x12] + 0x138,&local_3c,4);
emit_ic(*param_1,*(int8 *)(param_1[0x12] + 0x230),6);
lVar2 = param_1[0x12];
*(int4 *)(lVar2 + 0x168) = *(int4 *)(lVar2 + 0x140);
dbuf_putc(lVar2 + 0x138,0x11);
lVar2 = param_1[0x12];
*(int4 *)(lVar2 + 0x168) = *(int4 *)(lVar2 + 0x140);
dbuf_putc(lVar2 + 0x138,0xb0);
local_40 = emit_goto(param_1,0x6a,0xffffffff);
lVar2 = param_1[0x12];
*(int4 *)(lVar2 + 0x168) = *(int4 *)(lVar2 + 0x140);
dbuf_putc(lVar2 + 0x138,0x24);
local_42 = 0;
dbuf_put(param_1[0x12] + 0x138,&local_42,2);
lVar2 = param_1[0x12];
*(int4 *)(lVar2 + 0x168) = *(int4 *)(lVar2 + 0x140);
dbuf_putc(lVar2 + 0x138,0x82);
lVar2 = param_1[0x12];
*(int4 *)(lVar2 + 0x168) = *(int4 *)(lVar2 + 0x140);
dbuf_putc(lVar2 + 0x138,0x8b);
uVar1 = emit_goto(param_1,0x6b,0xffffffff);
emit_label(param_1,local_40);
lVar2 = param_1[0x12];
*(int4 *)(lVar2 + 0x168) = *(int4 *)(lVar2 + 0x140);
dbuf_putc(lVar2 + 0x138,0xe);
emit_label(param_1,uVar1);
lVar2 = param_1[0x12];
*(int4 *)(lVar2 + 0x168) = *(int4 *)(lVar2 + 0x140);
uVar4 = 0xe;
}
else {
dbuf_putc(lVar2 + 0x138,0x1e);
lVar2 = param_1[0x12];
*(int4 *)(lVar2 + 0x168) = *(int4 *)(lVar2 + 0x140);
dbuf_putc(lVar2 + 0x138,6);
lVar2 = param_1[0x12];
*(int4 *)(lVar2 + 0x168) = *(int4 *)(lVar2 + 0x140);
uVar4 = 0x84;
}
dbuf_putc(lVar2 + 0x138,uVar4);
}
param_2 = 1;
}
plVar5 = (long *)*plVar5;
} while (plVar5 != (long *)0x0);
lVar2 = param_1[0x12];
}
if (*(int *)(lVar2 + 0x78) == 0) {
bVar3 = 0x2e;
if (*(char *)(lVar2 + 0x84) == '\0') {
bVar3 = param_2 == 0 | 0x28;
}
}
else {
if (param_2 == 0) {
uVar1 = 0xffffffff;
}
else {
*(int4 *)(lVar2 + 0x168) = *(int4 *)(lVar2 + 0x140);
dbuf_putc(lVar2 + 0x138,0x2a);
uVar1 = emit_goto(param_1,0x69,0xffffffff);
lVar2 = param_1[0x12];
*(int4 *)(lVar2 + 0x168) = *(int4 *)(lVar2 + 0x140);
dbuf_putc(lVar2 + 0x138,0xe);
lVar2 = param_1[0x12];
}
*(int4 *)(lVar2 + 0x168) = *(int4 *)(lVar2 + 0x140);
dbuf_putc(lVar2 + 0x138,0xb7);
local_34 = 8;
dbuf_put(param_1[0x12] + 0x138,&local_34,4);
local_36 = 0;
dbuf_put(param_1[0x12] + 0x138,&local_36,2);
emit_label(param_1,uVar1);
lVar2 = param_1[0x12];
bVar3 = 0x28;
}
*(int4 *)(lVar2 + 0x168) = *(int4 *)(lVar2 + 0x140);
dbuf_putc(lVar2 + 0x138,bVar3,*(int4 *)(lVar2 + 0x140),bVar3);
return;
}
|
|
58,012
|
google::protobuf::compiler::java::RepeatedImmutableEnumFieldGenerator::GenerateBuilderParsingCode(google::protobuf::io::Printer*) const
|
aimrt_mujoco_sim/_deps/protobuf-src/src/google/protobuf/compiler/java/enum_field.cc
|
void RepeatedImmutableEnumFieldGenerator::GenerateBuilderParsingCode(
io::Printer* printer) const {
// Read and store the enum
if (SupportUnknownEnumValue(descriptor_->file())) {
printer->Print(variables_,
"int tmpRaw = input.readEnum();\n"
"ensure$capitalized_name$IsMutable();\n"
"$name$_.add(tmpRaw);\n");
} else {
printer->Print(variables_,
"int tmpRaw = input.readEnum();\n"
"$type$ tmpValue =\n"
" $type$.forNumber(tmpRaw);\n"
"if (tmpValue == null) {\n"
" mergeUnknownVarintField($number$, tmpRaw);\n"
"} else {\n"
" ensure$capitalized_name$IsMutable();\n"
" $name$_.add(tmpRaw);\n"
"}\n");
}
}
|
O3
|
cpp
|
google::protobuf::compiler::java::RepeatedImmutableEnumFieldGenerator::GenerateBuilderParsingCode(google::protobuf::io::Printer*) const:
movq %rsi, %rax
movq 0x8(%rdi), %rcx
movq 0x10(%rcx), %rcx
cmpb $0x3, 0x3(%rcx)
leaq 0xf47c2(%rip), %rcx # 0x1e9d76
leaq 0xf4815(%rip), %rdx # 0x1e9dd0
cmoveq %rcx, %rdx
leaq 0x18(%rdi), %rsi
movq %rax, %rdi
jmp 0x16cd32
nop
|
_ZNK6google8protobuf8compiler4java35RepeatedImmutableEnumFieldGenerator26GenerateBuilderParsingCodeEPNS0_2io7PrinterE:
mov rax, rsi
mov rcx, [rdi+8]
mov rcx, [rcx+10h]
cmp byte ptr [rcx+3], 3
lea rcx, aIntTmprawInput_0; "int tmpRaw = input.readEnum();\nensure$"...
lea rdx, aIntTmprawInput_1; "int tmpRaw = input.readEnum();\n$type$ "...
cmovz rdx, rcx
lea rsi, [rdi+18h]
mov rdi, rax; this
jmp _ZN6google8protobuf2io7Printer5PrintERKSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES9_St4lessIS9_ESaISt4pairIKS9_S9_EEEPKc; google::protobuf::io::Printer::Print(std::map<std::string,std::string> const&,char const*)
|
long long google::protobuf::compiler::java::RepeatedImmutableEnumFieldGenerator::GenerateBuilderParsingCode(
google::protobuf::compiler::java::RepeatedImmutableEnumFieldGenerator *this,
google::protobuf::io::Printer *a2,
long long a3,
long long a4,
long long a5,
long long a6,
void *a7,
int a8,
char a9,
int a10,
int a11,
int a12,
int a13,
int a14,
int a15,
void *a16,
int a17,
char a18)
{
return google::protobuf::io::Printer::Print(a2, a7, a8, a9, a10, a11, a12, a13, a14, a15, a16, a17, a18);
}
|
GenerateBuilderParsingCode:
MOV RAX,RSI
MOV RCX,qword ptr [RDI + 0x8]
MOV RCX,qword ptr [RCX + 0x10]
CMP byte ptr [RCX + 0x3],0x3
LEA RCX,[0x2e9d76]
LEA RDX,[0x2e9dd0]
CMOVZ RDX,RCX
LEA RSI,[RDI + 0x18]
MOV RDI,RAX
JMP 0x0026cd32
|
/* google::protobuf::compiler::java::RepeatedImmutableEnumFieldGenerator::GenerateBuilderParsingCode(google::protobuf::io::Printer*)
const */
void __thiscall
google::protobuf::compiler::java::RepeatedImmutableEnumFieldGenerator::GenerateBuilderParsingCode
(RepeatedImmutableEnumFieldGenerator *this,Printer *param_1)
{
char *pcVar1;
pcVar1 =
"int tmpRaw = input.readEnum();\n$type$ tmpValue =\n $type$.forNumber(tmpRaw);\nif (tmpValue == null) {\n mergeUnknownVarintField($number$, tmpRaw);\n} else {\n ensure$capitalized_name$IsMutable();\n $name$_.add(tmpRaw);\n}\n"
;
if (*(char *)(*(long *)(*(long *)(this + 8) + 0x10) + 3) == '\x03') {
pcVar1 =
"int tmpRaw = input.readEnum();\nensure$capitalized_name$IsMutable();\n$name$_.add(tmpRaw);\n";
}
io::Printer::Print(param_1,(map *)(this + 0x18),pcVar1);
return;
}
|
|
58,013
|
tdefl_compress_mem_to_mem
|
7CodeWizard[P]stablediffusion/thirdparty/miniz.h
|
size_t tdefl_compress_mem_to_mem(void *pOut_buf, size_t out_buf_len,
const void *pSrc_buf, size_t src_buf_len,
int flags) {
tdefl_output_buffer out_buf;
MZ_CLEAR_OBJ(out_buf);
if (!pOut_buf)
return 0;
out_buf.m_pBuf = (mz_uint8 *)pOut_buf;
out_buf.m_capacity = out_buf_len;
if (!tdefl_compress_mem_to_output(
pSrc_buf, src_buf_len, tdefl_output_buffer_putter, &out_buf, flags))
return 0;
return out_buf.m_size;
}
|
O2
|
c
|
tdefl_compress_mem_to_mem:
subq $0x28, %rsp
xorps %xmm0, %xmm0
movaps %xmm0, 0x10(%rsp)
movaps %xmm0, (%rsp)
testq %rdi, %rdi
je 0x5d38c
movq %rsp, %rax
movq %rdi, 0x10(%rax)
movq %rsi, 0x8(%rax)
leaq -0xb2(%rip), %r9 # 0x5d2bf
movq %rdx, %rdi
movq %rcx, %rsi
movq %r9, %rdx
movq %rax, %rcx
callq 0x5d1e2
testl %eax, %eax
je 0x5d38c
movq (%rsp), %rax
jmp 0x5d38e
xorl %eax, %eax
addq $0x28, %rsp
retq
|
tdefl_compress_mem_to_mem:
sub rsp, 28h
xorps xmm0, xmm0
movaps [rsp+28h+var_18], xmm0
movaps [rsp+28h+var_28], xmm0
test rdi, rdi
jz short loc_5D38C
mov rax, rsp
mov [rax+10h], rdi
mov [rax+8], rsi
lea r9, tdefl_output_buffer_putter
mov rdi, rdx
mov rsi, rcx
mov rdx, r9
mov rcx, rax
call tdefl_compress_mem_to_output
test eax, eax
jz short loc_5D38C
mov rax, qword ptr [rsp+28h+var_28]
jmp short loc_5D38E
loc_5D38C:
xor eax, eax
loc_5D38E:
add rsp, 28h
retn
|
long long tdefl_compress_mem_to_mem(long long a1, long long a2, long long a3, long long a4, unsigned int a5)
{
__int128 v6; // [rsp+0h] [rbp-28h] BYREF
__int128 v7; // [rsp+10h] [rbp-18h]
v7 = 0LL;
v6 = 0LL;
if ( a1
&& (*(_QWORD *)&v7 = a1,
*((_QWORD *)&v6 + 1) = a2,
tdefl_compress_mem_to_output(a3, a4, (long long)tdefl_output_buffer_putter, (long long)&v6, a5)) )
{
return v6;
}
else
{
return 0LL;
}
}
|
tdefl_compress_mem_to_mem:
SUB RSP,0x28
XORPS XMM0,XMM0
MOVAPS xmmword ptr [RSP + 0x10],XMM0
MOVAPS xmmword ptr [RSP],XMM0
TEST RDI,RDI
JZ 0x0015d38c
MOV RAX,RSP
MOV qword ptr [RAX + 0x10],RDI
MOV qword ptr [RAX + 0x8],RSI
LEA R9,[0x15d2bf]
MOV RDI,RDX
MOV RSI,RCX
MOV RDX,R9
MOV RCX,RAX
CALL 0x0015d1e2
TEST EAX,EAX
JZ 0x0015d38c
MOV RAX,qword ptr [RSP]
JMP 0x0015d38e
LAB_0015d38c:
XOR EAX,EAX
LAB_0015d38e:
ADD RSP,0x28
RET
|
int8
tdefl_compress_mem_to_mem(long param_1,int8 param_2,int8 param_3,int8 param_4)
{
int iVar1;
int8 local_28;
int8 uStack_20;
long local_18;
int8 uStack_10;
uStack_10 = 0;
local_28 = 0;
if ((param_1 == 0) ||
(uStack_20 = param_2, local_18 = param_1,
iVar1 = tdefl_compress_mem_to_output(param_3,param_4,tdefl_output_buffer_putter,&local_28),
iVar1 == 0)) {
local_28 = 0;
}
return local_28;
}
|
|
58,014
|
Item_splocal_row_field::print(String*, enum_query_type)
|
eloqsql/sql/item.cc
|
void Item_splocal_row_field::print(String *str, enum_query_type)
{
const LEX_CSTRING *prefix= m_rcontext_handler->get_name_prefix();
str->reserve(m_name.length + m_field_name.length + 8 + prefix->length);
str->append(prefix);
str->append(&m_name);
str->append('.');
str->append(&m_field_name);
str->append('@');
str->qs_append(m_var_idx);
str->append('[');
str->qs_append(m_field_idx);
str->append(']');
}
|
O0
|
cpp
|
Item_splocal_row_field::print(String*, enum_query_type):
pushq %rbp
movq %rsp, %rbp
subq $0x30, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movl %edx, -0x14(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x28(%rbp)
movq 0xa8(%rax), %rdi
movq (%rdi), %rax
callq *0x10(%rax)
movq %rax, %rcx
movq -0x28(%rbp), %rax
movq %rcx, -0x20(%rbp)
movq -0x10(%rbp), %rdi
addq $0x8, %rdi
movq 0x78(%rax), %rsi
addq 0xc0(%rax), %rsi
addq $0x8, %rsi
movq -0x20(%rbp), %rax
addq 0x8(%rax), %rsi
callq 0x4adc70
movq -0x10(%rbp), %rdi
movq -0x20(%rbp), %rsi
callq 0x4b6890
movq -0x28(%rbp), %rsi
movq -0x10(%rbp), %rdi
addq $0x70, %rsi
callq 0x4b6890
movq -0x10(%rbp), %rdi
movl $0x2e, %esi
callq 0x4ad5a0
movq -0x28(%rbp), %rsi
movq -0x10(%rbp), %rdi
addq $0xb8, %rsi
callq 0x4b6890
movq -0x10(%rbp), %rdi
movl $0x40, %esi
callq 0x4ad5a0
movq -0x28(%rbp), %rax
movq -0x10(%rbp), %rdi
addq $0x8, %rdi
movl 0xb0(%rax), %esi
callq 0x4e4b40
movq -0x10(%rbp), %rdi
movl $0x5b, %esi
callq 0x4ad5a0
movq -0x28(%rbp), %rax
movq -0x10(%rbp), %rdi
addq $0x8, %rdi
movl 0xc8(%rax), %esi
callq 0x4e4b40
movq -0x10(%rbp), %rdi
movl $0x5d, %esi
callq 0x4ad5a0
addq $0x30, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
|
_ZN22Item_splocal_row_field5printEP6String15enum_query_type:
push rbp
mov rbp, rsp
sub rsp, 30h
mov [rbp+var_8], rdi
mov [rbp+var_10], rsi
mov [rbp+var_14], edx
mov rax, [rbp+var_8]
mov [rbp+var_28], rax
mov rdi, [rax+0A8h]
mov rax, [rdi]
call qword ptr [rax+10h]
mov rcx, rax
mov rax, [rbp+var_28]
mov [rbp+var_20], rcx
mov rdi, [rbp+var_10]
add rdi, 8; this
mov rsi, [rax+78h]
add rsi, [rax+0C0h]
add rsi, 8
mov rax, [rbp+var_20]
add rsi, [rax+8]; unsigned __int64
call _ZN13Binary_string7reserveEm; Binary_string::reserve(ulong)
mov rdi, [rbp+var_10]
mov rsi, [rbp+var_20]
call _ZN6String6appendEPK25st_mysql_const_lex_string; String::append(st_mysql_const_lex_string const*)
mov rsi, [rbp+var_28]
mov rdi, [rbp+var_10]
add rsi, 70h ; 'p'
call _ZN6String6appendEPK25st_mysql_const_lex_string; String::append(st_mysql_const_lex_string const*)
mov rdi, [rbp+var_10]; this
mov esi, 2Eh ; '.'; char
call _ZN6String6appendEc; String::append(char)
mov rsi, [rbp+var_28]
mov rdi, [rbp+var_10]
add rsi, 0B8h
call _ZN6String6appendEPK25st_mysql_const_lex_string; String::append(st_mysql_const_lex_string const*)
mov rdi, [rbp+var_10]; this
mov esi, 40h ; '@'; char
call _ZN6String6appendEc; String::append(char)
mov rax, [rbp+var_28]
mov rdi, [rbp+var_10]
add rdi, 8; this
mov esi, [rax+0B0h]; unsigned int
call _ZN13Binary_string9qs_appendEj; Binary_string::qs_append(uint)
mov rdi, [rbp+var_10]; this
mov esi, 5Bh ; '['; char
call _ZN6String6appendEc; String::append(char)
mov rax, [rbp+var_28]
mov rdi, [rbp+var_10]
add rdi, 8; this
mov esi, [rax+0C8h]; unsigned int
call _ZN13Binary_string9qs_appendEj; Binary_string::qs_append(uint)
mov rdi, [rbp+var_10]; this
mov esi, 5Dh ; ']'; char
call _ZN6String6appendEc; String::append(char)
add rsp, 30h
pop rbp
retn
|
char Item_splocal_row_field::print(long long a1, long long a2)
{
long long v3; // [rsp+10h] [rbp-20h]
v3 = (*(long long ( **)(_QWORD))(**(_QWORD **)(a1 + 168) + 16LL))(*(_QWORD *)(a1 + 168));
Binary_string::reserve(
(Binary_string *)(a2 + 8),
*(_QWORD *)(v3 + 8) + *(_QWORD *)(a1 + 192) + *(_QWORD *)(a1 + 120) + 8LL);
String::append((String *)a2, v3);
String::append((String *)a2, a1 + 112);
String::append((String *)a2, 46);
String::append((String *)a2, a1 + 184);
String::append((String *)a2, 64);
Binary_string::qs_append((Binary_string *)(a2 + 8), *(_DWORD *)(a1 + 176));
String::append((String *)a2, 91);
Binary_string::qs_append((Binary_string *)(a2 + 8), *(_DWORD *)(a1 + 200));
return String::append((String *)a2, 93);
}
|
inline_mysql_cond_broadcast:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x10
MOV qword ptr [RBP + -0x8],RDI
MOV RAX,qword ptr [RBP + -0x8]
CMP qword ptr [RAX + 0x30],0x0
SETNZ AL
AND AL,0x1
MOVZX EAX,AL
CMP EAX,0x0
JZ 0x008f58ff
MOV RAX,qword ptr [RBP + -0x8]
MOV RDI,qword ptr [RAX + 0x30]
CALL 0x00dab110
LAB_008f58ff:
MOV RDI,qword ptr [RBP + -0x8]
CALL 0x005346e0
MOV dword ptr [RBP + -0xc],EAX
MOV EAX,dword ptr [RBP + -0xc]
ADD RSP,0x10
POP RBP
RET
|
/* inline_mysql_cond_broadcast(st_mysql_cond*) */
int inline_mysql_cond_broadcast(st_mysql_cond *param_1)
{
int iVar1;
if (*(long *)(param_1 + 0x30) != 0) {
pfs_broadcast_cond_v1(*(int8 *)(param_1 + 0x30));
}
iVar1 = pthread_cond_broadcast((pthread_cond_t *)param_1);
return iVar1;
}
|
|
58,015
|
my_casedn_str_mb
|
eloqsql/strings/ctype-mb.c
|
size_t my_casedn_str_mb(CHARSET_INFO * cs, char *str)
{
register uint32 l;
register const uchar *map= cs->to_lower;
char *str_orig= str;
while (*str)
{
/* Pointing after the '\0' is safe here. */
if ((l= my_ismbchar(cs, str, str + cs->mbmaxlen)))
str+= l;
else
{
*str= (char) map[(uchar)*str];
str++;
}
}
return (size_t) (str - str_orig);
}
|
O0
|
c
|
my_casedn_str_mb:
pushq %rbp
movq %rsp, %rbp
subq $0x30, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq -0x8(%rbp), %rax
movq 0x48(%rax), %rax
movq %rax, -0x20(%rbp)
movq -0x10(%rbp), %rax
movq %rax, -0x28(%rbp)
movq -0x10(%rbp), %rax
cmpb $0x0, (%rax)
je 0x48f97
movq -0x8(%rbp), %rdi
movq -0x10(%rbp), %rsi
movq -0x10(%rbp), %rdx
movq -0x8(%rbp), %rax
movl 0x9c(%rax), %eax
addq %rax, %rdx
callq 0x48eb0
movl %eax, -0x14(%rbp)
cmpl $0x0, %eax
je 0x48f75
movl -0x14(%rbp), %ecx
movq -0x10(%rbp), %rax
movl %ecx, %ecx
addq %rcx, %rax
movq %rax, -0x10(%rbp)
jmp 0x48f95
movq -0x20(%rbp), %rax
movq -0x10(%rbp), %rcx
movzbl (%rcx), %ecx
movb (%rax,%rcx), %cl
movq -0x10(%rbp), %rax
movb %cl, (%rax)
movq -0x10(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x10(%rbp)
jmp 0x48f34
movq -0x10(%rbp), %rax
movq -0x28(%rbp), %rcx
subq %rcx, %rax
addq $0x30, %rsp
popq %rbp
retq
nopl (%rax,%rax)
|
my_casedn_str_mb:
push rbp
mov rbp, rsp
sub rsp, 30h
mov [rbp+var_8], rdi
mov [rbp+var_10], rsi
mov rax, [rbp+var_8]
mov rax, [rax+48h]
mov [rbp+var_20], rax
mov rax, [rbp+var_10]
mov [rbp+var_28], rax
loc_48F34:
mov rax, [rbp+var_10]
cmp byte ptr [rax], 0
jz short loc_48F97
mov rdi, [rbp+var_8]
mov rsi, [rbp+var_10]
mov rdx, [rbp+var_10]
mov rax, [rbp+var_8]
mov eax, [rax+9Ch]
add rdx, rax
call my_ismbchar_0
mov [rbp+var_14], eax
cmp eax, 0
jz short loc_48F75
mov ecx, [rbp+var_14]
mov rax, [rbp+var_10]
mov ecx, ecx
add rax, rcx
mov [rbp+var_10], rax
jmp short loc_48F95
loc_48F75:
mov rax, [rbp+var_20]
mov rcx, [rbp+var_10]
movzx ecx, byte ptr [rcx]
mov cl, [rax+rcx]
mov rax, [rbp+var_10]
mov [rax], cl
mov rax, [rbp+var_10]
add rax, 1
mov [rbp+var_10], rax
loc_48F95:
jmp short loc_48F34
loc_48F97:
mov rax, [rbp+var_10]
mov rcx, [rbp+var_28]
sub rax, rcx
add rsp, 30h
pop rbp
retn
|
_BYTE * my_casedn_str_mb(long long a1, _BYTE *a2)
{
long long v3; // [rsp+10h] [rbp-20h]
unsigned int v4; // [rsp+1Ch] [rbp-14h]
_BYTE *v5; // [rsp+20h] [rbp-10h]
v5 = a2;
v3 = *(_QWORD *)(a1 + 72);
while ( *v5 )
{
v4 = my_ismbchar_0(a1, (long long)v5, (long long)&v5[*(unsigned int *)(a1 + 156)]);
if ( v4 )
{
v5 += v4;
}
else
{
*v5 = *(_BYTE *)(v3 + (unsigned __int8)*v5);
++v5;
}
}
return (_BYTE *)(v5 - a2);
}
|
my_casedn_str_mb:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x30
MOV qword ptr [RBP + -0x8],RDI
MOV qword ptr [RBP + -0x10],RSI
MOV RAX,qword ptr [RBP + -0x8]
MOV RAX,qword ptr [RAX + 0x48]
MOV qword ptr [RBP + -0x20],RAX
MOV RAX,qword ptr [RBP + -0x10]
MOV qword ptr [RBP + -0x28],RAX
LAB_00148f34:
MOV RAX,qword ptr [RBP + -0x10]
CMP byte ptr [RAX],0x0
JZ 0x00148f97
MOV RDI,qword ptr [RBP + -0x8]
MOV RSI,qword ptr [RBP + -0x10]
MOV RDX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RBP + -0x8]
MOV EAX,dword ptr [RAX + 0x9c]
ADD RDX,RAX
CALL 0x00148eb0
MOV dword ptr [RBP + -0x14],EAX
CMP EAX,0x0
JZ 0x00148f75
MOV ECX,dword ptr [RBP + -0x14]
MOV RAX,qword ptr [RBP + -0x10]
MOV ECX,ECX
ADD RAX,RCX
MOV qword ptr [RBP + -0x10],RAX
JMP 0x00148f95
LAB_00148f75:
MOV RAX,qword ptr [RBP + -0x20]
MOV RCX,qword ptr [RBP + -0x10]
MOVZX ECX,byte ptr [RCX]
MOV CL,byte ptr [RAX + RCX*0x1]
MOV RAX,qword ptr [RBP + -0x10]
MOV byte ptr [RAX],CL
MOV RAX,qword ptr [RBP + -0x10]
ADD RAX,0x1
MOV qword ptr [RBP + -0x10],RAX
LAB_00148f95:
JMP 0x00148f34
LAB_00148f97:
MOV RAX,qword ptr [RBP + -0x10]
MOV RCX,qword ptr [RBP + -0x28]
SUB RAX,RCX
ADD RSP,0x30
POP RBP
RET
|
long my_casedn_str_mb(long param_1,byte *param_2)
{
long lVar1;
uint uVar2;
byte *local_18;
lVar1 = *(long *)(param_1 + 0x48);
local_18 = param_2;
while (*local_18 != 0) {
uVar2 = my_ismbchar(param_1,local_18,local_18 + *(uint *)(param_1 + 0x9c));
if (uVar2 == 0) {
*local_18 = *(byte *)(lVar1 + (ulong)*local_18);
local_18 = local_18 + 1;
}
else {
local_18 = local_18 + uVar2;
}
}
return (long)local_18 - (long)param_2;
}
|
|
58,016
|
OpenSubdiv::v3_6_0::Far::SparseMatrix<double>::Swap(OpenSubdiv::v3_6_0::Far::SparseMatrix<double>&)
|
NVIDIA-RTX[P]OSD-Lite/opensubdiv/far/../far/../far/../far/sparseMatrix.h
|
inline void
SparseMatrix<REAL>::Swap(SparseMatrix & other) {
std::swap(_numRows, other._numRows);
std::swap(_numColumns, other._numColumns);
std::swap(_numElements, other._numElements);
_rowOffsets.swap(other._rowOffsets);
_columns.swap(other._columns);
_elements.swap(other._elements);
}
|
O0
|
c
|
OpenSubdiv::v3_6_0::Far::SparseMatrix<double>::Swap(OpenSubdiv::v3_6_0::Far::SparseMatrix<double>&):
pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq -0x8(%rbp), %rdi
movq %rdi, -0x18(%rbp)
movq -0x10(%rbp), %rsi
callq 0xcacf0
movq -0x18(%rbp), %rdi
addq $0x4, %rdi
movq -0x10(%rbp), %rsi
addq $0x4, %rsi
callq 0xcacf0
movq -0x18(%rbp), %rdi
addq $0x8, %rdi
movq -0x10(%rbp), %rsi
addq $0x8, %rsi
callq 0xcacf0
movq -0x18(%rbp), %rdi
addq $0x10, %rdi
movq -0x10(%rbp), %rsi
addq $0x10, %rsi
callq 0xd4de0
movq -0x18(%rbp), %rdi
addq $0x28, %rdi
movq -0x10(%rbp), %rsi
addq $0x28, %rsi
callq 0xd4de0
movq -0x18(%rbp), %rdi
addq $0x40, %rdi
movq -0x10(%rbp), %rsi
addq $0x40, %rsi
callq 0xcaf40
addq $0x20, %rsp
popq %rbp
retq
|
_ZN10OpenSubdiv6v3_6_03Far12SparseMatrixIdE4SwapERS3_:
push rbp
mov rbp, rsp
sub rsp, 20h
mov [rbp+var_8], rdi
mov [rbp+var_10], rsi
mov rdi, [rbp+var_8]
mov [rbp+var_18], rdi
mov rsi, [rbp+var_10]
call __ZSt4swapIiENSt9enable_ifIXsr6__and_ISt6__not_ISt15__is_tuple_likeIT_EESt21is_move_constructibleIS3_ESt18is_move_assignableIS3_EEE5valueEvE4typeERS3_SC_
mov rdi, [rbp+var_18]
add rdi, 4
mov rsi, [rbp+var_10]
add rsi, 4
call __ZSt4swapIiENSt9enable_ifIXsr6__and_ISt6__not_ISt15__is_tuple_likeIT_EESt21is_move_constructibleIS3_ESt18is_move_assignableIS3_EEE5valueEvE4typeERS3_SC_
mov rdi, [rbp+var_18]
add rdi, 8
mov rsi, [rbp+var_10]
add rsi, 8
call __ZSt4swapIiENSt9enable_ifIXsr6__and_ISt6__not_ISt15__is_tuple_likeIT_EESt21is_move_constructibleIS3_ESt18is_move_assignableIS3_EEE5valueEvE4typeERS3_SC_
mov rdi, [rbp+var_18]
add rdi, 10h
mov rsi, [rbp+var_10]
add rsi, 10h
call __ZNSt6vectorIiSaIiEE4swapERS1_; std::vector<int>::swap(std::vector<int>&)
mov rdi, [rbp+var_18]
add rdi, 28h ; '('
mov rsi, [rbp+var_10]
add rsi, 28h ; '('
call __ZNSt6vectorIiSaIiEE4swapERS1_; std::vector<int>::swap(std::vector<int>&)
mov rdi, [rbp+var_18]
add rdi, 40h ; '@'
mov rsi, [rbp+var_10]
add rsi, 40h ; '@'
call __ZNSt6vectorIdSaIdEE4swapERS1_; std::vector<double>::swap(std::vector<double>&)
add rsp, 20h
pop rbp
retn
|
long long OpenSubdiv::v3_6_0::Far::SparseMatrix<double>::Swap(long long a1, long long a2)
{
std::swap<int>(a1, a2);
std::swap<int>(a1 + 4, a2 + 4);
std::swap<int>(a1 + 8, a2 + 8);
std::vector<int>::swap(a1 + 16, a2 + 16);
std::vector<int>::swap(a1 + 40, a2 + 40);
return std::vector<double>::swap(a1 + 64, a2 + 64);
}
| |||
58,017
|
OpenSubdiv::v3_6_0::Far::SparseMatrix<double>::Swap(OpenSubdiv::v3_6_0::Far::SparseMatrix<double>&)
|
NVIDIA-RTX[P]OSD-Lite/opensubdiv/far/../far/../far/../far/sparseMatrix.h
|
inline void
SparseMatrix<REAL>::Swap(SparseMatrix & other) {
std::swap(_numRows, other._numRows);
std::swap(_numColumns, other._numColumns);
std::swap(_numElements, other._numElements);
_rowOffsets.swap(other._rowOffsets);
_columns.swap(other._columns);
_elements.swap(other._elements);
}
|
O2
|
c
|
OpenSubdiv::v3_6_0::Far::SparseMatrix<double>::Swap(OpenSubdiv::v3_6_0::Far::SparseMatrix<double>&):
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %rbx
movq %rdi, %r14
movl (%rdi), %eax
movl (%rsi), %ecx
movl %ecx, (%rdi)
movl %eax, (%rsi)
movl 0x4(%rdi), %eax
movl 0x4(%rsi), %ecx
movl %ecx, 0x4(%rdi)
movl %eax, 0x4(%rsi)
movl 0x8(%rdi), %eax
movl 0x8(%rsi), %ecx
movl %ecx, 0x8(%rdi)
movl %eax, 0x8(%rsi)
addq $0x10, %rdi
addq $0x10, %rsi
callq 0x4f690
leaq 0x28(%r14), %rdi
leaq 0x28(%rbx), %rsi
callq 0x4f690
addq $0x40, %r14
addq $0x40, %rbx
movq %r14, %rdi
movq %rbx, %rsi
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0x542a0
|
_ZN10OpenSubdiv6v3_6_03Far12SparseMatrixIdE4SwapERS3_:
push r14
push rbx
push rax
mov rbx, rsi
mov r14, rdi
mov eax, [rdi]
mov ecx, [rsi]
mov [rdi], ecx
mov [rsi], eax
mov eax, [rdi+4]
mov ecx, [rsi+4]
mov [rdi+4], ecx
mov [rsi+4], eax
mov eax, [rdi+8]
mov ecx, [rsi+8]
mov [rdi+8], ecx
mov [rsi+8], eax
add rdi, 10h
add rsi, 10h
call __ZNSt12_Vector_baseIiSaIiEE17_Vector_impl_data12_M_swap_dataERS2_; std::_Vector_base<int>::_Vector_impl_data::_M_swap_data(std::_Vector_base<int>::_Vector_impl_data&)
lea rdi, [r14+28h]
lea rsi, [rbx+28h]
call __ZNSt12_Vector_baseIiSaIiEE17_Vector_impl_data12_M_swap_dataERS2_; std::_Vector_base<int>::_Vector_impl_data::_M_swap_data(std::_Vector_base<int>::_Vector_impl_data&)
add r14, 40h ; '@'
add rbx, 40h ; '@'
mov rdi, r14
mov rsi, rbx
add rsp, 8
pop rbx
pop r14
jmp __ZNSt12_Vector_baseIdSaIdEE17_Vector_impl_data12_M_swap_dataERS2_; std::_Vector_base<double>::_Vector_impl_data::_M_swap_data(std::_Vector_base<double>::_Vector_impl_data&)
|
long long OpenSubdiv::v3_6_0::Far::SparseMatrix<double>::Swap(int *a1, int *a2)
{
int v2; // eax
int v3; // eax
int v4; // eax
v2 = *a1;
*a1 = *a2;
*a2 = v2;
v3 = a1[1];
a1[1] = a2[1];
a2[1] = v3;
v4 = a1[2];
a1[2] = a2[2];
a2[2] = v4;
std::_Vector_base<int>::_Vector_impl_data::_M_swap_data(a1 + 4, a2 + 4);
std::_Vector_base<int>::_Vector_impl_data::_M_swap_data(a1 + 10, a2 + 10);
return std::_Vector_base<double>::_Vector_impl_data::_M_swap_data(a1 + 16, a2 + 16);
}
|
Swap:
PUSH R14
PUSH RBX
PUSH RAX
MOV RBX,RSI
MOV R14,RDI
MOV EAX,dword ptr [RDI]
MOV ECX,dword ptr [RSI]
MOV dword ptr [RDI],ECX
MOV dword ptr [RSI],EAX
MOV EAX,dword ptr [RDI + 0x4]
MOV ECX,dword ptr [RSI + 0x4]
MOV dword ptr [RDI + 0x4],ECX
MOV dword ptr [RSI + 0x4],EAX
MOV EAX,dword ptr [RDI + 0x8]
MOV ECX,dword ptr [RSI + 0x8]
MOV dword ptr [RDI + 0x8],ECX
MOV dword ptr [RSI + 0x8],EAX
ADD RDI,0x10
ADD RSI,0x10
CALL 0x0014f690
LEA RDI,[R14 + 0x28]
LEA RSI,[RBX + 0x28]
CALL 0x0014f690
ADD R14,0x40
ADD RBX,0x40
MOV RDI,R14
MOV RSI,RBX
ADD RSP,0x8
POP RBX
POP R14
JMP 0x001542a0
|
/* OpenSubdiv::v3_6_0::Far::SparseMatrix<double>::Swap(OpenSubdiv::v3_6_0::Far::SparseMatrix<double>&)
*/
void __thiscall
OpenSubdiv::v3_6_0::Far::SparseMatrix<double>::Swap
(SparseMatrix<double> *this,SparseMatrix *param_1)
{
int4 uVar1;
uVar1 = *(int4 *)this;
*(int4 *)this = *(int4 *)param_1;
*(int4 *)param_1 = uVar1;
uVar1 = *(int4 *)(this + 4);
*(int4 *)(this + 4) = *(int4 *)(param_1 + 4);
*(int4 *)(param_1 + 4) = uVar1;
uVar1 = *(int4 *)(this + 8);
*(int4 *)(this + 8) = *(int4 *)(param_1 + 8);
*(int4 *)(param_1 + 8) = uVar1;
std::_Vector_base<int,std::allocator<int>>::_Vector_impl_data::_M_swap_data
((_Vector_impl_data *)(this + 0x10),(_Vector_impl_data *)(param_1 + 0x10));
std::_Vector_base<int,std::allocator<int>>::_Vector_impl_data::_M_swap_data
((_Vector_impl_data *)(this + 0x28),(_Vector_impl_data *)(param_1 + 0x28));
std::_Vector_base<double,std::allocator<double>>::_Vector_impl_data::_M_swap_data
((_Vector_impl_data *)(this + 0x40),(_Vector_impl_data *)(param_1 + 0x40));
return;
}
|
|
58,018
|
minja::Value::for_each(std::function<void (minja::Value&)> const&) const
|
monkey531[P]llama/common/minja.hpp
|
void for_each(const std::function<void(Value &)> & callback) const {
if (is_null())
throw std::runtime_error("Undefined value or reference");
if (array_) {
for (auto& item : *array_) {
callback(item);
}
} else if (object_) {
for (auto & item : *object_) {
Value key(item.first);
callback(key);
}
} else if (is_string()) {
for (char c : primitive_.get<std::string>()) {
auto val = Value(std::string(1, c));
callback(val);
}
} else {
throw std::runtime_error("Value is not iterable: " + dump());
}
}
|
O3
|
cpp
|
minja::Value::for_each(std::function<void (minja::Value&)> const&) const:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x98, %rsp
movq %rsi, %rbx
movq %rdi, %r15
movq 0x10(%rdi), %rcx
movq 0x20(%rdi), %rax
movb 0x40(%rdi), %dl
testq %rax, %rax
jne 0x54d1f
testq %rcx, %rcx
jne 0x54d1f
testb %dl, %dl
jne 0x54d1f
cmpq $0x0, 0x30(%r15)
je 0x54f88
testq %rcx, %rcx
je 0x54d4e
movq (%rcx), %r14
movq 0x8(%rcx), %r15
cmpq %r15, %r14
je 0x54f67
cmpq $0x0, 0x10(%rbx)
je 0x54f79
movq %rbx, %rdi
movq %r14, %rsi
callq *0x18(%rbx)
addq $0x50, %r14
jmp 0x54d2b
testq %rax, %rax
je 0x54e1e
movq (%rax), %r14
movq 0x8(%rax), %r13
cmpq %r13, %r14
je 0x54f67
leaq 0x88(%rsp), %r15
leaq 0x48(%rsp), %r12
movq 0x8820d(%rip), %rbp # 0xdcf88
movq %r12, %rdi
movq %r14, %rsi
callq 0x4d5f6
cmpq $0x0, 0x10(%rbx)
je 0x54f7e
movq %rbx, %rdi
movq %r12, %rsi
callq *0x18(%rbx)
movq %r15, %rdi
xorl %esi, %esi
callq 0x3d7c0
movq %r15, %rdi
callq 0x4a3ae
movq 0x80(%rsp), %rdi
testq %rdi, %rdi
je 0x54dbe
callq 0x2f99c
movq 0x70(%rsp), %rdi
testq %rdi, %rdi
je 0x54dcd
callq 0x2f99c
movq 0x60(%rsp), %rdi
testq %rdi, %rdi
je 0x54ddc
callq 0x2f99c
movq 0x50(%rsp), %rdi
testq %rdi, %rdi
je 0x54e0c
cmpb $0x0, (%rbp)
je 0x54df7
movl 0xc(%rdi), %eax
leal -0x1(%rax), %ecx
movl %ecx, 0xc(%rdi)
jmp 0x54e01
movl $0xffffffff, %eax # imm = 0xFFFFFFFF
lock
xaddl %eax, 0xc(%rdi)
cmpl $0x1, %eax
jne 0x54e0c
movq (%rdi), %rax
callq *0x18(%rax)
addq $0x60, %r14
cmpq %r13, %r14
jne 0x54d7b
jmp 0x54f67
cmpb $0x3, %dl
jne 0x54fba
addq $0x40, %r15
leaq 0x8(%rsp), %r12
movq %r12, %rdi
movq %r15, %rsi
callq 0x3f768
movq (%r12), %r14
movq 0x8(%r12), %rbp
testq %rbp, %rbp
je 0x54f4d
xorl %r15d, %r15d
leaq 0x28(%rsp), %r12
movsbl (%r14,%r15), %edx
leaq 0x38(%rsp), %rax
movq %rax, 0x28(%rsp)
movl $0x1, %esi
movq %r12, %rdi
callq 0x187a0
leaq 0x48(%rsp), %rdi
movq %r12, %r13
movq %r12, %rsi
callq 0x423f6
movq 0x28(%rsp), %rdi
leaq 0x38(%rsp), %rax
cmpq %rax, %rdi
je 0x54e9d
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x186a0
cmpq $0x0, 0x10(%rbx)
je 0x54f83
movq %r14, %r12
movq %rbx, %rdi
leaq 0x48(%rsp), %rsi
callq *0x18(%rbx)
leaq 0x88(%rsp), %r14
movq %r14, %rdi
xorl %esi, %esi
callq 0x3d7c0
movq %r14, %rdi
callq 0x4a3ae
movq 0x80(%rsp), %rdi
testq %rdi, %rdi
je 0x54ee2
callq 0x2f99c
movq 0x70(%rsp), %rdi
testq %rdi, %rdi
movq %r12, %r14
je 0x54ef4
callq 0x2f99c
movq 0x60(%rsp), %rdi
testq %rdi, %rdi
je 0x54f03
callq 0x2f99c
movq 0x50(%rsp), %rdi
testq %rdi, %rdi
je 0x54f39
movq 0x88074(%rip), %rax # 0xdcf88
cmpb $0x0, (%rax)
je 0x54f24
movl 0xc(%rdi), %eax
leal -0x1(%rax), %ecx
movl %ecx, 0xc(%rdi)
jmp 0x54f2e
movl $0xffffffff, %eax # imm = 0xFFFFFFFF
lock
xaddl %eax, 0xc(%rdi)
cmpl $0x1, %eax
jne 0x54f39
movq (%rdi), %rax
callq *0x18(%rax)
incq %r15
cmpq %r15, %rbp
movq %r13, %r12
jne 0x54e55
movq 0x8(%rsp), %r14
leaq 0x18(%rsp), %rax
cmpq %rax, %r14
je 0x54f67
movq 0x18(%rsp), %rsi
incq %rsi
movq %r14, %rdi
callq 0x186a0
addq $0x98, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
callq 0x18260
callq 0x18260
callq 0x18260
movl $0x10, %edi
callq 0x18360
movq %rax, %r14
leaq 0x550d6(%rip), %rsi # 0xaa072
movq %rax, %rdi
callq 0x18270
movq 0x8803d(%rip), %rsi # 0xdcfe8
movq 0x87fae(%rip), %rdx # 0xdcf60
movq %r14, %rdi
callq 0x18b30
movl $0x10, %edi
callq 0x18360
movq %rax, %r14
leaq 0x8(%rsp), %rdi
movq %r15, %rsi
movl $0xffffffff, %edx # imm = 0xFFFFFFFF
xorl %ecx, %ecx
callq 0x3daf6
leaq 0x56ba9(%rip), %rsi # 0xabb8b
leaq 0x48(%rsp), %rdi
leaq 0x8(%rsp), %rdx
callq 0x24de1
movb $0x1, %bpl
leaq 0x48(%rsp), %rsi
movq %r14, %rdi
callq 0x18a80
xorl %ebp, %ebp
movq 0x87fde(%rip), %rsi # 0xdcfe8
movq 0x87f4f(%rip), %rdx # 0xdcf60
movq %r14, %rdi
callq 0x18b30
movq %rax, %rbx
leaq 0x58(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x55037
movq 0x58(%rsp), %rsi
incq %rsi
callq 0x186a0
leaq 0x18(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x55052
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x186a0
testb %bpl, %bpl
jne 0x55081
jmp 0x550ec
movq %rax, %rbx
leaq 0x18(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x55081
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x186a0
jmp 0x55081
jmp 0x5507e
movq %rax, %rbx
movq %r14, %rdi
callq 0x184f0
jmp 0x550ec
movq %rax, %rbx
jmp 0x550c0
movq %rax, %rbx
movq 0x28(%rsp), %rdi
leaq 0x38(%rsp), %rax
cmpq %rax, %rdi
je 0x550c0
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x186a0
jmp 0x550c0
jmp 0x550b3
movq %rax, %rbx
leaq 0x48(%rsp), %rdi
callq 0x3d734
leaq 0x18(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x550ec
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x186a0
jmp 0x550ec
jmp 0x550df
movq %rax, %rbx
leaq 0x48(%rsp), %rdi
callq 0x3d734
movq %rbx, %rdi
callq 0x18b90
|
_ZNK5minja5Value8for_eachERKSt8functionIFvRS0_EE:
push rbp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 98h
mov rbx, rsi
mov r15, rdi
mov rcx, [rdi+10h]
mov rax, [rdi+20h]
mov dl, [rdi+40h]
test rax, rax
jnz short loc_54D1F
test rcx, rcx
jnz short loc_54D1F
test dl, dl
jnz short loc_54D1F
cmp qword ptr [r15+30h], 0
jz loc_54F88
loc_54D1F:
test rcx, rcx
jz short loc_54D4E
mov r14, [rcx]
mov r15, [rcx+8]
loc_54D2B:
cmp r14, r15
jz loc_54F67
cmp qword ptr [rbx+10h], 0
jz loc_54F79
mov rdi, rbx
mov rsi, r14
call qword ptr [rbx+18h]
add r14, 50h ; 'P'
jmp short loc_54D2B
loc_54D4E:
test rax, rax
jz loc_54E1E
mov r14, [rax]
mov r13, [rax+8]
cmp r14, r13
jz loc_54F67
lea r15, [rsp+0C8h+var_40]
lea r12, [rsp+0C8h+var_80]
mov rbp, cs:__libc_single_threaded_ptr
loc_54D7B:
mov rdi, r12
mov rsi, r14
call _ZN5minja5ValueC2ERKN8nlohmann16json_abi_v3_11_310basic_jsonINS2_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS2_14adl_serializerES5_IhSaIhEEvEE; minja::Value::Value(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const&)
cmp qword ptr [rbx+10h], 0
jz loc_54F7E
mov rdi, rbx
mov rsi, r12
call qword ptr [rbx+18h]
mov rdi, r15
xor esi, esi
call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE16assert_invariantEb; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::assert_invariant(bool)
mov rdi, r15
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE4dataD2Ev; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::data::~data()
mov rdi, [rsp+0C8h+var_48]
test rdi, rdi
jz short loc_54DBE
call _ZNSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE2EE10_M_releaseEv; std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(void)
loc_54DBE:
mov rdi, [rsp+0C8h+var_58]
test rdi, rdi
jz short loc_54DCD
call _ZNSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE2EE10_M_releaseEv; std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(void)
loc_54DCD:
mov rdi, [rsp+0C8h+var_68]
test rdi, rdi
jz short loc_54DDC
call _ZNSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE2EE10_M_releaseEv; std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(void)
loc_54DDC:
mov rdi, [rsp+0C8h+var_78]
test rdi, rdi
jz short loc_54E0C
cmp byte ptr [rbp+0], 0
jz short loc_54DF7
mov eax, [rdi+0Ch]
lea ecx, [rax-1]
mov [rdi+0Ch], ecx
jmp short loc_54E01
loc_54DF7:
mov eax, 0FFFFFFFFh
lock xadd [rdi+0Ch], eax
loc_54E01:
cmp eax, 1
jnz short loc_54E0C
mov rax, [rdi]
call qword ptr [rax+18h]
loc_54E0C:
add r14, 60h ; '`'
cmp r14, r13
jnz loc_54D7B
jmp loc_54F67
loc_54E1E:
cmp dl, 3
jnz loc_54FBA
add r15, 40h ; '@'
lea r12, [rsp+0C8h+var_C0]
mov rdi, r12
mov rsi, r15
call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE8get_implIS9_TnNSt9enable_ifIXaasr6detail24is_default_constructibleIT_EE5valuesr6detail13has_from_jsonISD_SG_EE5valueEiE4typeELi0EEESG_NS0_6detail12priority_tagILj0EEE
mov r14, [r12]
mov rbp, [r12+8]
test rbp, rbp
jz loc_54F4D
xor r15d, r15d
lea r12, [rsp+0C8h+var_A0]
loc_54E55:
movsx edx, byte ptr [r14+r15]
lea rax, [rsp+0C8h+var_90]
mov [rsp+0C8h+var_A0], rax
mov esi, 1
mov rdi, r12
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructEmc; std::string::_M_construct(ulong,char)
lea rdi, [rsp+0C8h+var_80]
mov r13, r12
mov rsi, r12
call _ZN5minja5ValueC2ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE; minja::Value::Value(std::string const&)
mov rdi, [rsp+0C8h+var_A0]; void *
lea rax, [rsp+0C8h+var_90]
cmp rdi, rax
jz short loc_54E9D
mov rsi, [rsp+0C8h+var_90]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_54E9D:
cmp qword ptr [rbx+10h], 0
jz loc_54F83
mov r12, r14
mov rdi, rbx
lea rsi, [rsp+0C8h+var_80]
call qword ptr [rbx+18h]
lea r14, [rsp+0C8h+var_40]
mov rdi, r14
xor esi, esi
call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE16assert_invariantEb; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::assert_invariant(bool)
mov rdi, r14
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE4dataD2Ev; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::data::~data()
mov rdi, [rsp+0C8h+var_48]
test rdi, rdi
jz short loc_54EE2
call _ZNSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE2EE10_M_releaseEv; std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(void)
loc_54EE2:
mov rdi, [rsp+0C8h+var_58]
test rdi, rdi
mov r14, r12
jz short loc_54EF4
call _ZNSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE2EE10_M_releaseEv; std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(void)
loc_54EF4:
mov rdi, [rsp+0C8h+var_68]
test rdi, rdi
jz short loc_54F03
call _ZNSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE2EE10_M_releaseEv; std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(void)
loc_54F03:
mov rdi, [rsp+0C8h+var_78]
test rdi, rdi
jz short loc_54F39
mov rax, cs:__libc_single_threaded_ptr
cmp byte ptr [rax], 0
jz short loc_54F24
mov eax, [rdi+0Ch]
lea ecx, [rax-1]
mov [rdi+0Ch], ecx
jmp short loc_54F2E
loc_54F24:
mov eax, 0FFFFFFFFh
lock xadd [rdi+0Ch], eax
loc_54F2E:
cmp eax, 1
jnz short loc_54F39
mov rax, [rdi]
call qword ptr [rax+18h]
loc_54F39:
inc r15
cmp rbp, r15
mov r12, r13
jnz loc_54E55
mov r14, [rsp+0C8h+var_C0]
loc_54F4D:
lea rax, [rsp+0C8h+var_B0]
cmp r14, rax
jz short loc_54F67
mov rsi, [rsp+0C8h+var_B0]
inc rsi; unsigned __int64
mov rdi, r14; void *
call __ZdlPvm; operator delete(void *,ulong)
loc_54F67:
add rsp, 98h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
loc_54F79:
call __ZSt25__throw_bad_function_callv; std::__throw_bad_function_call(void)
loc_54F7E:
call __ZSt25__throw_bad_function_callv; std::__throw_bad_function_call(void)
loc_54F83:
call __ZSt25__throw_bad_function_callv; std::__throw_bad_function_call(void)
loc_54F88:
mov edi, 10h; thrown_size
call ___cxa_allocate_exception
mov r14, rax
lea rsi, aUndefinedValue; "Undefined value or reference"
mov rdi, rax; this
call __ZNSt13runtime_errorC1EPKc; std::runtime_error::runtime_error(char const*)
mov rsi, cs:lptinfo; lptinfo
mov rdx, cs:_ZTISt19_Sp_make_shared_tag; void (*)(void *)
mov rdi, r14; void *
call ___cxa_throw
loc_54FBA:
mov edi, 10h; thrown_size
call ___cxa_allocate_exception
mov r14, rax
lea rdi, [rsp+0C8h+var_C0]
mov rsi, r15
mov edx, 0FFFFFFFFh
xor ecx, ecx
call _ZNK5minja5Value4dumpB5cxx11Eib; minja::Value::dump(int,bool)
lea rsi, aValueIsNotIter; "Value is not iterable: "
lea rdi, [rsp+0C8h+var_80]
lea rdx, [rsp+0C8h+var_C0]
call _ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_OS8_; std::operator+<char>(char const*,std::string&&)
mov bpl, 1
lea rsi, [rsp+0C8h+var_80]
mov rdi, r14
call __ZNSt13runtime_errorC1ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE; std::runtime_error::runtime_error(std::string const&)
xor ebp, ebp
mov rsi, cs:lptinfo; lptinfo
mov rdx, cs:_ZTISt19_Sp_make_shared_tag; void (*)(void *)
mov rdi, r14; void *
call ___cxa_throw
mov rbx, rax
lea rax, [rsp+0C8h+var_70]
mov rdi, [rax-10h]; void *
cmp rdi, rax
jz short loc_55037
mov rsi, [rsp+0C8h+var_70]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_55037:
lea rax, [rsp+0C8h+var_B0]
mov rdi, [rax-10h]; void *
cmp rdi, rax
jz short loc_55052
mov rsi, [rsp+0C8h+var_B0]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_55052:
test bpl, bpl
jnz short loc_55081
jmp loc_550EC
mov rbx, rax
lea rax, [rsp+0C8h+var_B0]
mov rdi, [rax-10h]; void *
cmp rdi, rax
jz short loc_55081
mov rsi, [rsp+0C8h+var_B0]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
jmp short loc_55081
jmp short $+2
loc_5507E:
mov rbx, rax
loc_55081:
mov rdi, r14; void *
call ___cxa_free_exception
jmp short loc_550EC
mov rbx, rax
jmp short loc_550C0
mov rbx, rax
mov rdi, [rsp+0C8h+var_A0]; void *
lea rax, [rsp+0C8h+var_90]
cmp rdi, rax
jz short loc_550C0
mov rsi, [rsp+0C8h+var_90]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
jmp short loc_550C0
jmp short $+2
loc_550B3:
mov rbx, rax
lea rdi, [rsp+0C8h+var_80]; this
call _ZN5minja5ValueD2Ev; minja::Value::~Value()
loc_550C0:
lea rax, [rsp+0C8h+var_B0]
mov rdi, [rax-10h]; void *
cmp rdi, rax
jz short loc_550EC
mov rsi, [rsp+0C8h+var_B0]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
jmp short loc_550EC
jmp short $+2
loc_550DF:
mov rbx, rax
lea rdi, [rsp+0C8h+var_80]; this
call _ZN5minja5ValueD2Ev; minja::Value::~Value()
loc_550EC:
mov rdi, rbx
call __Unwind_Resume
|
void minja::Value::for_each(long long a1, long long a2, long long a3)
{
long long *v3; // rcx
unsigned __int8 **v4; // rax
long long v5; // r14
long long v6; // r15
unsigned __int8 *v7; // r14
unsigned __int8 *v8; // r13
long long v9; // rdi
signed __int32 v10; // eax
char *v11; // r14
long long v12; // rbp
long long v13; // r15
long long v14; // rdx
long long v15; // rdi
signed __int32 v16; // eax
std::runtime_error *exception; // r14
void *v18; // r14
char *v19; // [rsp+8h] [rbp-C0h] BYREF
long long v20; // [rsp+10h] [rbp-B8h]
long long v21; // [rsp+18h] [rbp-B0h] BYREF
void *v22; // [rsp+28h] [rbp-A0h] BYREF
_QWORD v23[2]; // [rsp+38h] [rbp-90h] BYREF
__int128 v24; // [rsp+48h] [rbp-80h] BYREF
volatile signed __int32 *v25; // [rsp+60h] [rbp-68h]
volatile signed __int32 *v26; // [rsp+70h] [rbp-58h]
volatile signed __int32 *v27; // [rsp+80h] [rbp-48h]
void **v28[8]; // [rsp+88h] [rbp-40h] BYREF
v3 = *(long long **)(a1 + 16);
v4 = *(unsigned __int8 ***)(a1 + 32);
LOBYTE(a3) = *(_BYTE *)(a1 + 64);
if ( !v4 && !v3 && !(_BYTE)a3 && !*(_QWORD *)(a1 + 48) )
{
exception = (std::runtime_error *)__cxa_allocate_exception(0x10uLL);
std::runtime_error::runtime_error(exception, "Undefined value or reference");
__cxa_throw(
exception,
(struct type_info *)&`typeinfo for'std::runtime_error,
(void (*)(void *))&std::runtime_error::~runtime_error);
}
if ( v3 )
{
v5 = *v3;
v6 = v3[1];
while ( v5 != v6 )
{
if ( !*(_QWORD *)(a2 + 16) )
std::__throw_bad_function_call();
(*(void ( **)(long long, long long, long long))(a2 + 24))(a2, v5, a3);
v5 += 80LL;
}
}
else if ( v4 )
{
v7 = *v4;
v8 = v4[1];
if ( *v4 != v8 )
{
do
{
minja::Value::Value((long long)&v24, v7);
if ( !*(_QWORD *)(a2 + 16) )
std::__throw_bad_function_call();
(*(void ( **)(long long, __int128 *))(a2 + 24))(a2, &v24);
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::assert_invariant((char *)v28);
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::data::~data(v28);
if ( v27 )
std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(v27);
if ( v26 )
std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(v26);
if ( v25 )
std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(v25);
v9 = *((_QWORD *)&v24 + 1);
if ( *((_QWORD *)&v24 + 1) )
{
if ( _libc_single_threaded )
{
v10 = *(_DWORD *)(*((_QWORD *)&v24 + 1) + 12LL);
*(_DWORD *)(*((_QWORD *)&v24 + 1) + 12LL) = v10 - 1;
}
else
{
v10 = _InterlockedExchangeAdd((volatile signed __int32 *)(*((_QWORD *)&v24 + 1) + 12LL), 0xFFFFFFFF);
}
if ( v10 == 1 )
(*(void ( **)(long long, _QWORD))(*(_QWORD *)v9 + 24LL))(v9, 0LL);
}
v7 += 96;
}
while ( v7 != v8 );
}
}
else
{
if ( (_BYTE)a3 != 3 )
{
v18 = __cxa_allocate_exception(0x10uLL);
minja::Value::dump[abi:cxx11]((long long)&v19, a1, 0xFFFFFFFF, 0);
std::operator+<char>((long long)&v24, (long long)"Value is not iterable: ", (long long)&v19);
std::runtime_error::runtime_error(v18, &v24);
__cxa_throw(
v18,
(struct type_info *)&`typeinfo for'std::runtime_error,
(void (*)(void *))&std::runtime_error::~runtime_error);
}
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)&v19,
a1 + 64);
v11 = v19;
v12 = v20;
if ( v20 )
{
v13 = 0LL;
do
{
v14 = (unsigned int)v11[v13];
v22 = v23;
std::string::_M_construct(&v22, 1LL, v14);
minja::Value::Value(&v24);
if ( v22 != v23 )
operator delete(v22, v23[0] + 1LL);
if ( !*(_QWORD *)(a2 + 16) )
std::__throw_bad_function_call();
(*(void ( **)(long long, __int128 *))(a2 + 24))(a2, &v24);
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::assert_invariant((char *)v28);
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::data::~data(v28);
if ( v27 )
std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(v27);
if ( v26 )
std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(v26);
if ( v25 )
std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(v25);
v15 = *((_QWORD *)&v24 + 1);
if ( *((_QWORD *)&v24 + 1) )
{
if ( _libc_single_threaded )
{
v16 = *(_DWORD *)(*((_QWORD *)&v24 + 1) + 12LL);
*(_DWORD *)(*((_QWORD *)&v24 + 1) + 12LL) = v16 - 1;
}
else
{
v16 = _InterlockedExchangeAdd((volatile signed __int32 *)(*((_QWORD *)&v24 + 1) + 12LL), 0xFFFFFFFF);
}
if ( v16 == 1 )
(*(void ( **)(long long, _QWORD))(*(_QWORD *)v15 + 24LL))(v15, 0LL);
}
++v13;
}
while ( v12 != v13 );
v11 = v19;
}
if ( v11 != (char *)&v21 )
operator delete(v11, v21 + 1);
}
}
|
for_each:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x98
MOV RBX,RSI
MOV R15,RDI
MOV RCX,qword ptr [RDI + 0x10]
MOV RAX,qword ptr [RDI + 0x20]
MOV DL,byte ptr [RDI + 0x40]
TEST RAX,RAX
JNZ 0x00154d1f
TEST RCX,RCX
JNZ 0x00154d1f
TEST DL,DL
JNZ 0x00154d1f
CMP qword ptr [R15 + 0x30],0x0
JZ 0x00154f88
LAB_00154d1f:
TEST RCX,RCX
JZ 0x00154d4e
MOV R14,qword ptr [RCX]
MOV R15,qword ptr [RCX + 0x8]
LAB_00154d2b:
CMP R14,R15
JZ 0x00154f67
CMP qword ptr [RBX + 0x10],0x0
JZ 0x00154f79
MOV RDI,RBX
MOV RSI,R14
CALL qword ptr [RBX + 0x18]
ADD R14,0x50
JMP 0x00154d2b
LAB_00154d4e:
TEST RAX,RAX
JZ 0x00154e1e
MOV R14,qword ptr [RAX]
MOV R13,qword ptr [RAX + 0x8]
CMP R14,R13
JZ 0x00154f67
LEA R15,[RSP + 0x88]
LEA R12,[RSP + 0x48]
MOV RBP,qword ptr [0x001dcf88]
LAB_00154d7b:
MOV RDI,R12
MOV RSI,R14
CALL 0x0014d5f6
CMP qword ptr [RBX + 0x10],0x0
JZ 0x00154f7e
LAB_00154d91:
MOV RDI,RBX
MOV RSI,R12
CALL qword ptr [RBX + 0x18]
LAB_00154d9a:
MOV RDI,R15
XOR ESI,ESI
CALL 0x0013d7c0
MOV RDI,R15
CALL 0x0014a3ae
MOV RDI,qword ptr [RSP + 0x80]
TEST RDI,RDI
JZ 0x00154dbe
CALL 0x0012f99c
LAB_00154dbe:
MOV RDI,qword ptr [RSP + 0x70]
TEST RDI,RDI
JZ 0x00154dcd
CALL 0x0012f99c
LAB_00154dcd:
MOV RDI,qword ptr [RSP + 0x60]
TEST RDI,RDI
JZ 0x00154ddc
CALL 0x0012f99c
LAB_00154ddc:
MOV RDI,qword ptr [RSP + 0x50]
TEST RDI,RDI
JZ 0x00154e0c
CMP byte ptr [RBP],0x0
JZ 0x00154df7
MOV EAX,dword ptr [RDI + 0xc]
LEA ECX,[RAX + -0x1]
MOV dword ptr [RDI + 0xc],ECX
JMP 0x00154e01
LAB_00154df7:
MOV EAX,0xffffffff
XADD.LOCK dword ptr [RDI + 0xc],EAX
LAB_00154e01:
CMP EAX,0x1
JNZ 0x00154e0c
MOV RAX,qword ptr [RDI]
CALL qword ptr [RAX + 0x18]
LAB_00154e0c:
ADD R14,0x60
CMP R14,R13
JNZ 0x00154d7b
JMP 0x00154f67
LAB_00154e1e:
CMP DL,0x3
JNZ 0x00154fba
ADD R15,0x40
LEA R12,[RSP + 0x8]
MOV RDI,R12
MOV RSI,R15
CALL 0x0013f768
MOV R14,qword ptr [R12]
MOV RBP,qword ptr [R12 + 0x8]
TEST RBP,RBP
JZ 0x00154f4d
XOR R15D,R15D
LEA R12,[RSP + 0x28]
LAB_00154e55:
MOVSX EDX,byte ptr [R14 + R15*0x1]
LEA RAX,[RSP + 0x38]
MOV qword ptr [RSP + 0x28],RAX
LAB_00154e64:
MOV ESI,0x1
MOV RDI,R12
CALL 0x001187a0
LAB_00154e71:
LEA RDI,[RSP + 0x48]
MOV R13,R12
MOV RSI,R12
CALL 0x001423f6
MOV RDI,qword ptr [RSP + 0x28]
LEA RAX,[RSP + 0x38]
CMP RDI,RAX
JZ 0x00154e9d
MOV RSI,qword ptr [RSP + 0x38]
INC RSI
CALL 0x001186a0
LAB_00154e9d:
CMP qword ptr [RBX + 0x10],0x0
JZ 0x00154f83
LAB_00154ea8:
MOV R12,R14
MOV RDI,RBX
LEA RSI,[RSP + 0x48]
CALL qword ptr [RBX + 0x18]
LAB_00154eb6:
LEA R14,[RSP + 0x88]
MOV RDI,R14
XOR ESI,ESI
CALL 0x0013d7c0
MOV RDI,R14
CALL 0x0014a3ae
MOV RDI,qword ptr [RSP + 0x80]
TEST RDI,RDI
JZ 0x00154ee2
CALL 0x0012f99c
LAB_00154ee2:
MOV RDI,qword ptr [RSP + 0x70]
TEST RDI,RDI
MOV R14,R12
JZ 0x00154ef4
CALL 0x0012f99c
LAB_00154ef4:
MOV RDI,qword ptr [RSP + 0x60]
TEST RDI,RDI
JZ 0x00154f03
CALL 0x0012f99c
LAB_00154f03:
MOV RDI,qword ptr [RSP + 0x50]
TEST RDI,RDI
JZ 0x00154f39
MOV RAX,qword ptr [0x001dcf88]
CMP byte ptr [RAX],0x0
JZ 0x00154f24
MOV EAX,dword ptr [RDI + 0xc]
LEA ECX,[RAX + -0x1]
MOV dword ptr [RDI + 0xc],ECX
JMP 0x00154f2e
LAB_00154f24:
MOV EAX,0xffffffff
XADD.LOCK dword ptr [RDI + 0xc],EAX
LAB_00154f2e:
CMP EAX,0x1
JNZ 0x00154f39
MOV RAX,qword ptr [RDI]
CALL qword ptr [RAX + 0x18]
LAB_00154f39:
INC R15
CMP RBP,R15
MOV R12,R13
JNZ 0x00154e55
MOV R14,qword ptr [RSP + 0x8]
LAB_00154f4d:
LEA RAX,[RSP + 0x18]
CMP R14,RAX
JZ 0x00154f67
MOV RSI,qword ptr [RSP + 0x18]
INC RSI
MOV RDI,R14
CALL 0x001186a0
LAB_00154f67:
ADD RSP,0x98
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
LAB_00154f79:
CALL 0x00118260
LAB_00154f7e:
CALL 0x00118260
LAB_00154f83:
CALL 0x00118260
LAB_00154f88:
MOV EDI,0x10
CALL 0x00118360
MOV R14,RAX
LAB_00154f95:
LEA RSI,[0x1aa072]
MOV RDI,RAX
CALL 0x00118270
LAB_00154fa4:
MOV RSI,qword ptr [0x001dcfe8]
MOV RDX,qword ptr [0x001dcf60]
MOV RDI,R14
CALL 0x00118b30
LAB_00154fba:
MOV EDI,0x10
CALL 0x00118360
MOV R14,RAX
LAB_00154fc7:
LEA RDI,[RSP + 0x8]
MOV RSI,R15
MOV EDX,0xffffffff
XOR ECX,ECX
CALL 0x0013daf6
LAB_00154fdb:
LEA RSI,[0x1abb8b]
LEA RDI,[RSP + 0x48]
LEA RDX,[RSP + 0x8]
CALL 0x00124de1
MOV BPL,0x1
LAB_00154ff4:
LEA RSI,[RSP + 0x48]
MOV RDI,R14
CALL 0x00118a80
XOR EBP,EBP
MOV RSI,qword ptr [0x001dcfe8]
MOV RDX,qword ptr [0x001dcf60]
MOV RDI,R14
CALL 0x00118b30
|
/* minja::Value::for_each(std::function<void (minja::Value&)> const&) const */
void __thiscall minja::Value::for_each(Value *this,function *param_1)
{
int *piVar1;
long *plVar2;
long *plVar3;
long lVar4;
basic_json *pbVar5;
int *puVar6;
int iVar7;
runtime_error *prVar8;
long lVar9;
basic_json *pbVar10;
long *local_c0;
long local_b8;
long local_b0 [2];
long *local_a0 [2];
long local_90 [2];
Value local_80 [8];
long *local_78;
_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *local_68;
_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *local_58;
_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *local_48;
data local_40 [16];
puVar6 = PTR___libc_single_threaded_001dcf88;
plVar2 = *(long **)(this + 0x10);
plVar3 = *(long **)(this + 0x20);
if ((((plVar3 == (long *)0x0) && (plVar2 == (long *)0x0)) && (this[0x40] == (Value)0x0)) &&
(*(long *)(this + 0x30) == 0)) {
prVar8 = (runtime_error *)__cxa_allocate_exception(0x10);
/* try { // try from 00154f95 to 00154fa3 has its CatchHandler @ 0015507e */
std::runtime_error::runtime_error(prVar8,"Undefined value or reference");
/* WARNING: Subroutine does not return */
__cxa_throw(prVar8,PTR_typeinfo_001dcfe8,PTR__runtime_error_001dcf60);
}
if (plVar2 == (long *)0x0) {
if (plVar3 == (long *)0x0) {
if (this[0x40] != (Value)0x3) {
prVar8 = (runtime_error *)__cxa_allocate_exception(0x10);
/* try { // try from 00154fc7 to 00154fda has its CatchHandler @ 0015507c */
dump_abi_cxx11_((int)&local_c0,SUB81(this,0));
/* try { // try from 00154fdb to 00154ff0 has its CatchHandler @ 0015505c */
std::operator+((char *)local_80,(string *)"Value is not iterable: ");
/* try { // try from 00154ff4 to 00155018 has its CatchHandler @ 00155019 */
std::runtime_error::runtime_error(prVar8,(string *)local_80);
/* WARNING: Subroutine does not return */
__cxa_throw(prVar8,PTR_typeinfo_001dcfe8,PTR__runtime_error_001dcf60);
}
_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_c0,this + 0x40);
if (local_b8 != 0) {
lVar9 = 0;
do {
local_a0[0] = local_90;
/* try { // try from 00154e64 to 00154e70 has its CatchHandler @ 0015508b */
std::__cxx11::string::_M_construct((ulong)local_a0,'\x01');
/* try { // try from 00154e71 to 00154e80 has its CatchHandler @ 00155090 */
Value(local_80,(string *)local_a0);
if (local_a0[0] != local_90) {
operator_delete(local_a0[0],local_90[0] + 1);
}
if (*(long *)(param_1 + 0x10) == 0) {
/* WARNING: Subroutine does not return */
/* try { // try from 00154f83 to 00154f87 has its CatchHandler @ 001550b3 */
std::__throw_bad_function_call();
}
/* try { // try from 00154ea8 to 00154eb5 has its CatchHandler @ 001550b1 */
(**(code **)(param_1 + 0x18))(param_1,local_80);
nlohmann::json_abi_v3_11_3::
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::assert_invariant(SUB81(local_40,0));
nlohmann::json_abi_v3_11_3::
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::data::~data(local_40);
if (local_48 != (_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *)0x0) {
std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(local_48);
}
if (local_58 != (_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *)0x0) {
std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(local_58);
}
if (local_68 != (_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *)0x0) {
std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(local_68);
}
if (local_78 != (long *)0x0) {
if (*PTR___libc_single_threaded_001dcf88 == '\0') {
LOCK();
piVar1 = (int *)((long)local_78 + 0xc);
iVar7 = *piVar1;
*piVar1 = *piVar1 + -1;
UNLOCK();
}
else {
iVar7 = *(int *)((long)local_78 + 0xc);
*(int *)((long)local_78 + 0xc) = iVar7 + -1;
}
if (iVar7 == 1) {
(**(code **)(*local_78 + 0x18))();
}
}
lVar9 = lVar9 + 1;
} while (local_b8 != lVar9);
}
if (local_c0 != local_b0) {
operator_delete(local_c0,local_b0[0] + 1);
}
}
else {
pbVar10 = (basic_json *)*plVar3;
pbVar5 = (basic_json *)plVar3[1];
if (pbVar10 != pbVar5) {
do {
Value(local_80,pbVar10);
if (*(long *)(param_1 + 0x10) == 0) {
/* WARNING: Subroutine does not return */
/* try { // try from 00154f7e to 00154f82 has its CatchHandler @ 001550df */
std::__throw_bad_function_call();
}
/* try { // try from 00154d91 to 00154d99 has its CatchHandler @ 001550dd */
(**(code **)(param_1 + 0x18))(param_1,local_80);
nlohmann::json_abi_v3_11_3::
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::assert_invariant(SUB81(local_40,0));
nlohmann::json_abi_v3_11_3::
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::data::~data(local_40);
if (local_48 != (_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *)0x0) {
std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(local_48);
}
if (local_58 != (_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *)0x0) {
std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(local_58);
}
if (local_68 != (_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *)0x0) {
std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(local_68);
}
if (local_78 != (long *)0x0) {
if (*puVar6 == '\0') {
LOCK();
piVar1 = (int *)((long)local_78 + 0xc);
iVar7 = *piVar1;
*piVar1 = *piVar1 + -1;
UNLOCK();
}
else {
iVar7 = *(int *)((long)local_78 + 0xc);
*(int *)((long)local_78 + 0xc) = iVar7 + -1;
}
if (iVar7 == 1) {
(**(code **)(*local_78 + 0x18))();
}
}
pbVar10 = pbVar10 + 0x60;
} while (pbVar10 != pbVar5);
}
}
}
else {
lVar4 = plVar2[1];
for (lVar9 = *plVar2; lVar9 != lVar4; lVar9 = lVar9 + 0x50) {
if (*(long *)(param_1 + 0x10) == 0) {
/* WARNING: Subroutine does not return */
std::__throw_bad_function_call();
}
(**(code **)(param_1 + 0x18))(param_1,lVar9);
}
}
return;
}
|
|
58,019
|
MyCTX_nopad::finish(unsigned char*, unsigned int*)
|
eloqsql/mysys_ssl/my_crypt.cc
|
int finish(uchar *dst, uint *dlen)
{
if (source_tail_len)
{
/*
Not much we can do, block ciphers cannot encrypt data that aren't
a multiple of the block length. At least not without padding.
Let's do something CTR-like for the last partial block.
*/
uchar mask[MY_AES_BLOCK_SIZE];
uint mlen;
int rc= my_aes_crypt(MY_AES_ECB, ENCRYPTION_FLAG_ENCRYPT | ENCRYPTION_FLAG_NOPAD,
oiv, sizeof(mask), mask, &mlen, key, klen, 0, 0);
DBUG_ASSERT(rc == MY_AES_OK);
if (rc)
return rc;
DBUG_ASSERT(mlen == sizeof(mask));
for (uint i=0; i < source_tail_len; i++)
dst[i]= source_tail[i] ^ mask[i];
}
*dlen= source_tail_len;
return MY_AES_OK;
}
|
O0
|
cpp
|
MyCTX_nopad::finish(unsigned char*, unsigned int*):
pushq %rbp
movq %rsp, %rbp
subq $0x80, %rsp
movq %fs:0x28, %rax
movq %rax, -0x8(%rbp)
movq %rdi, -0x30(%rbp)
movq %rsi, -0x38(%rbp)
movq %rdx, -0x40(%rbp)
movq -0x30(%rbp), %rax
movq %rax, -0x58(%rbp)
cmpl $0x0, 0xdc(%rax)
je 0xdf718
movq -0x58(%rbp), %rax
movq %rax, %rdx
addq $0xe0, %rdx
leaq -0x20(%rbp), %r8
movq 0xd0(%rax), %r10
movl 0xd8(%rax), %eax
xorl %edi, %edi
movl $0x3, %esi
movl $0x10, %ecx
leaq -0x44(%rbp), %r9
xorl %r11d, %r11d
movq %r10, (%rsp)
movl %eax, 0x8(%rsp)
movq $0x0, 0x10(%rsp)
movl $0x0, 0x18(%rsp)
callq 0xded40
movl %eax, -0x48(%rbp)
jmp 0xdf6be
cmpl $0x0, -0x48(%rbp)
je 0xdf6cc
movl -0x48(%rbp), %eax
movl %eax, -0x24(%rbp)
jmp 0xdf72f
jmp 0xdf6ce
jmp 0xdf6d0
movl $0x0, -0x4c(%rbp)
movq -0x58(%rbp), %rcx
movl -0x4c(%rbp), %eax
cmpl 0xdc(%rcx), %eax
jae 0xdf716
movq -0x58(%rbp), %rax
movl -0x4c(%rbp), %ecx
movzbl 0xf0(%rax,%rcx), %eax
movl -0x4c(%rbp), %ecx
movzbl -0x20(%rbp,%rcx), %ecx
xorl %ecx, %eax
movb %al, %dl
movq -0x38(%rbp), %rax
movl -0x4c(%rbp), %ecx
movb %dl, (%rax,%rcx)
movl -0x4c(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x4c(%rbp)
jmp 0xdf6d7
jmp 0xdf718
movq -0x58(%rbp), %rax
movl 0xdc(%rax), %ecx
movq -0x40(%rbp), %rax
movl %ecx, (%rax)
movl $0x0, -0x24(%rbp)
movl -0x24(%rbp), %eax
movl %eax, -0x5c(%rbp)
movq %fs:0x28, %rax
movq -0x8(%rbp), %rcx
cmpq %rcx, %rax
jne 0xdf753
movl -0x5c(%rbp), %eax
addq $0x80, %rsp
popq %rbp
retq
callq 0x2a250
nopl (%rax,%rax)
|
_ZN11MyCTX_nopad6finishEPhPj:
push rbp
mov rbp, rsp
sub rsp, 80h
mov rax, fs:28h
mov [rbp+var_8], rax
mov [rbp+var_30], rdi
mov [rbp+var_38], rsi
mov [rbp+var_40], rdx
mov rax, [rbp+var_30]
mov [rbp+var_58], rax
cmp dword ptr [rax+0DCh], 0
jz loc_DF718
mov rax, [rbp+var_58]
mov rdx, rax
add rdx, 0E0h
lea r8, [rbp+var_20]
mov r10, [rax+0D0h]
mov eax, [rax+0D8h]
xor edi, edi
mov esi, 3
mov ecx, 10h
lea r9, [rbp+var_44]
xor r11d, r11d
mov [rsp+80h+var_80], r10
mov [rsp+80h+var_78], eax
mov [rsp+80h+var_70], 0
mov [rsp+80h+var_68], 0
call my_aes_crypt
mov [rbp+var_48], eax
jmp short $+2
loc_DF6BE:
cmp [rbp+var_48], 0
jz short loc_DF6CC
mov eax, [rbp+var_48]
mov [rbp+var_24], eax
jmp short loc_DF72F
loc_DF6CC:
jmp short $+2
loc_DF6CE:
jmp short $+2
loc_DF6D0:
mov [rbp+var_4C], 0
loc_DF6D7:
mov rcx, [rbp+var_58]
mov eax, [rbp+var_4C]
cmp eax, [rcx+0DCh]
jnb short loc_DF716
mov rax, [rbp+var_58]
mov ecx, [rbp+var_4C]
movzx eax, byte ptr [rax+rcx+0F0h]
mov ecx, [rbp+var_4C]
movzx ecx, [rbp+rcx+var_20]
xor eax, ecx
mov dl, al
mov rax, [rbp+var_38]
mov ecx, [rbp+var_4C]
mov [rax+rcx], dl
mov eax, [rbp+var_4C]
add eax, 1
mov [rbp+var_4C], eax
jmp short loc_DF6D7
loc_DF716:
jmp short $+2
loc_DF718:
mov rax, [rbp+var_58]
mov ecx, [rax+0DCh]
mov rax, [rbp+var_40]
mov [rax], ecx
mov [rbp+var_24], 0
loc_DF72F:
mov eax, [rbp+var_24]
mov [rbp+var_5C], eax
mov rax, fs:28h
mov rcx, [rbp+var_8]
cmp rax, rcx
jnz short loc_DF753
mov eax, [rbp+var_5C]
add rsp, 80h
pop rbp
retn
loc_DF753:
call ___stack_chk_fail
|
long long MyCTX_nopad::finish(MyCTX_nopad *this, unsigned __int8 *a2, unsigned int *a3)
{
unsigned int i; // [rsp+34h] [rbp-4Ch]
unsigned int v5; // [rsp+38h] [rbp-48h]
int v6; // [rsp+3Ch] [rbp-44h] BYREF
unsigned int *v7; // [rsp+40h] [rbp-40h]
unsigned __int8 *v8; // [rsp+48h] [rbp-38h]
MyCTX_nopad *v9; // [rsp+50h] [rbp-30h]
_BYTE v11[24]; // [rsp+60h] [rbp-20h] BYREF
unsigned long long v12; // [rsp+78h] [rbp-8h]
v12 = __readfsqword(0x28u);
v9 = this;
v8 = a2;
v7 = a3;
if ( !*((_DWORD *)this + 55) )
goto LABEL_7;
v5 = my_aes_crypt(
0,
3,
(long long)this + 224,
0x10u,
(long long)v11,
&v6,
*((_QWORD *)this + 26),
*((_DWORD *)this + 54),
0LL,
0);
if ( !v5 )
{
for ( i = 0; i < *((_DWORD *)this + 55); ++i )
v8[i] = v11[i] ^ *((_BYTE *)this + i + 240);
LABEL_7:
*v7 = *((_DWORD *)this + 55);
return 0;
}
return v5;
}
|
finish:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x80
MOV RAX,qword ptr FS:[0x28]
MOV qword ptr [RBP + -0x8],RAX
MOV qword ptr [RBP + -0x30],RDI
MOV qword ptr [RBP + -0x38],RSI
MOV qword ptr [RBP + -0x40],RDX
MOV RAX,qword ptr [RBP + -0x30]
MOV qword ptr [RBP + -0x58],RAX
CMP dword ptr [RAX + 0xdc],0x0
JZ 0x001df718
MOV RAX,qword ptr [RBP + -0x58]
MOV RDX,RAX
ADD RDX,0xe0
LEA R8,[RBP + -0x20]
MOV R10,qword ptr [RAX + 0xd0]
MOV EAX,dword ptr [RAX + 0xd8]
XOR EDI,EDI
MOV ESI,0x3
MOV ECX,0x10
LEA R9,[RBP + -0x44]
XOR R11D,R11D
MOV qword ptr [RSP],R10
MOV dword ptr [RSP + 0x8],EAX
MOV qword ptr [RSP + 0x10],0x0
MOV dword ptr [RSP + 0x18],0x0
CALL 0x001ded40
MOV dword ptr [RBP + -0x48],EAX
JMP 0x001df6be
LAB_001df6be:
CMP dword ptr [RBP + -0x48],0x0
JZ 0x001df6cc
MOV EAX,dword ptr [RBP + -0x48]
MOV dword ptr [RBP + -0x24],EAX
JMP 0x001df72f
LAB_001df6cc:
JMP 0x001df6ce
LAB_001df6ce:
JMP 0x001df6d0
LAB_001df6d0:
MOV dword ptr [RBP + -0x4c],0x0
LAB_001df6d7:
MOV RCX,qword ptr [RBP + -0x58]
MOV EAX,dword ptr [RBP + -0x4c]
CMP EAX,dword ptr [RCX + 0xdc]
JNC 0x001df716
MOV RAX,qword ptr [RBP + -0x58]
MOV ECX,dword ptr [RBP + -0x4c]
MOVZX EAX,byte ptr [RAX + RCX*0x1 + 0xf0]
MOV ECX,dword ptr [RBP + -0x4c]
MOVZX ECX,byte ptr [RBP + RCX*0x1 + -0x20]
XOR EAX,ECX
MOV DL,AL
MOV RAX,qword ptr [RBP + -0x38]
MOV ECX,dword ptr [RBP + -0x4c]
MOV byte ptr [RAX + RCX*0x1],DL
MOV EAX,dword ptr [RBP + -0x4c]
ADD EAX,0x1
MOV dword ptr [RBP + -0x4c],EAX
JMP 0x001df6d7
LAB_001df716:
JMP 0x001df718
LAB_001df718:
MOV RAX,qword ptr [RBP + -0x58]
MOV ECX,dword ptr [RAX + 0xdc]
MOV RAX,qword ptr [RBP + -0x40]
MOV dword ptr [RAX],ECX
MOV dword ptr [RBP + -0x24],0x0
LAB_001df72f:
MOV EAX,dword ptr [RBP + -0x24]
MOV dword ptr [RBP + -0x5c],EAX
MOV RAX,qword ptr FS:[0x28]
MOV RCX,qword ptr [RBP + -0x8]
CMP RAX,RCX
JNZ 0x001df753
MOV EAX,dword ptr [RBP + -0x5c]
ADD RSP,0x80
POP RBP
RET
LAB_001df753:
CALL 0x0012a250
|
/* MyCTX_nopad::finish(unsigned char*, unsigned int*) */
int __thiscall MyCTX_nopad::finish(MyCTX_nopad *this,uchar *param_1,uint *param_2)
{
long in_FS_OFFSET;
uint local_54;
int1 local_4c [4];
uint *local_48;
uchar *local_40;
MyCTX_nopad *local_38;
int local_2c;
byte local_28 [24];
long local_10;
local_10 = *(long *)(in_FS_OFFSET + 0x28);
local_48 = param_2;
local_40 = param_1;
local_38 = this;
if (*(int *)(this + 0xdc) != 0) {
local_2c = my_aes_crypt(0,3,this + 0xe0,0x10,local_28,local_4c,*(int8 *)(this + 0xd0),
*(int4 *)(this + 0xd8),0,0);
if (local_2c != 0) goto LAB_001df72f;
for (local_54 = 0; local_54 < *(uint *)(this + 0xdc); local_54 = local_54 + 1) {
local_40[local_54] = (byte)this[(ulong)local_54 + 0xf0] ^ local_28[local_54];
}
}
*local_48 = *(uint *)(this + 0xdc);
local_2c = 0;
LAB_001df72f:
if (*(long *)(in_FS_OFFSET + 0x28) != local_10) {
/* WARNING: Subroutine does not return */
__stack_chk_fail();
}
return local_2c;
}
|
|
58,020
|
inline_mysql_file_pread
|
eloqsql/include/mysql/psi/mysql_file.h
|
static inline size_t
inline_mysql_file_pread(
#ifdef HAVE_PSI_FILE_INTERFACE
const char *src_file, uint src_line,
#endif
File file, uchar *buffer, size_t count, my_off_t offset, myf flags)
{
size_t result;
#ifdef HAVE_PSI_FILE_INTERFACE
struct PSI_file_locker *locker;
PSI_file_locker_state state;
size_t bytes_read;
locker= PSI_FILE_CALL(get_thread_file_descriptor_locker)(&state, file, PSI_FILE_READ);
if (psi_likely(locker != NULL))
{
PSI_FILE_CALL(start_file_wait)(locker, count, src_file, src_line);
result= my_pread(file, buffer, count, offset, flags);
if (flags & (MY_NABP | MY_FNABP))
bytes_read= (result == 0) ? count : 0;
else
bytes_read= (result != MY_FILE_ERROR) ? result : 0;
PSI_FILE_CALL(end_file_wait)(locker, bytes_read);
return result;
}
#endif
result= my_pread(file, buffer, count, offset, flags);
return result;
}
|
O0
|
c
|
inline_mysql_file_pread:
pushq %rbp
movq %rsp, %rbp
subq $0xa0, %rsp
movq 0x10(%rbp), %rax
movq %rdi, -0x10(%rbp)
movl %esi, -0x14(%rbp)
movl %edx, -0x18(%rbp)
movq %rcx, -0x20(%rbp)
movq %r8, -0x28(%rbp)
movq %r9, -0x30(%rbp)
leaq 0x29334c(%rip), %rax # 0x2c2028
movq (%rax), %rax
movq 0x158(%rax), %rax
movl -0x18(%rbp), %esi
leaq -0x88(%rbp), %rdi
movl $0x6, %edx
callq *%rax
movq %rax, -0x40(%rbp)
cmpq $0x0, -0x40(%rbp)
setne %al
andb $0x1, %al
movzbl %al, %eax
cmpl $0x0, %eax
setne %al
andb $0x1, %al
movzbl %al, %eax
cltq
cmpq $0x0, %rax
je 0x2edef
leaq 0x293302(%rip), %rax # 0x2c2028
movq (%rax), %rax
movq 0x210(%rax), %rax
movq -0x40(%rbp), %rdi
movq -0x28(%rbp), %rsi
movq -0x10(%rbp), %rdx
movl -0x14(%rbp), %ecx
callq *%rax
movl -0x18(%rbp), %edi
movq -0x20(%rbp), %rsi
movq -0x28(%rbp), %rdx
movq -0x30(%rbp), %rcx
movq 0x10(%rbp), %r8
callq 0xf7d50
movq %rax, -0x38(%rbp)
movq 0x10(%rbp), %rax
andq $0x6, %rax
cmpq $0x0, %rax
je 0x2ed9a
cmpq $0x0, -0x38(%rbp)
jne 0x2ed7f
movq -0x28(%rbp), %rax
movq %rax, -0x98(%rbp)
jmp 0x2ed8a
xorl %eax, %eax
movq %rax, -0x98(%rbp)
jmp 0x2ed8a
movq -0x98(%rbp), %rax
movq %rax, -0x90(%rbp)
jmp 0x2edc7
cmpq $-0x1, -0x38(%rbp)
je 0x2edae
movq -0x38(%rbp), %rax
movq %rax, -0xa0(%rbp)
jmp 0x2edb9
xorl %eax, %eax
movq %rax, -0xa0(%rbp)
jmp 0x2edb9
movq -0xa0(%rbp), %rax
movq %rax, -0x90(%rbp)
leaq 0x29325a(%rip), %rax # 0x2c2028
movq (%rax), %rax
movq 0x218(%rax), %rax
movq -0x40(%rbp), %rdi
movq -0x90(%rbp), %rsi
callq *%rax
movq -0x38(%rbp), %rax
movq %rax, -0x8(%rbp)
jmp 0x2ee13
movl -0x18(%rbp), %edi
movq -0x20(%rbp), %rsi
movq -0x28(%rbp), %rdx
movq -0x30(%rbp), %rcx
movq 0x10(%rbp), %r8
callq 0xf7d50
movq %rax, -0x38(%rbp)
movq -0x38(%rbp), %rax
movq %rax, -0x8(%rbp)
movq -0x8(%rbp), %rax
addq $0xa0, %rsp
popq %rbp
retq
|
inline_mysql_file_pread:
push rbp
mov rbp, rsp
sub rsp, 0A0h
mov rax, [rbp+arg_0]
mov [rbp+var_10], rdi
mov [rbp+var_14], esi
mov [rbp+var_18], edx
mov [rbp+var_20], rcx
mov [rbp+var_28], r8
mov [rbp+var_30], r9
lea rax, PSI_server
mov rax, [rax]
mov rax, [rax+158h]
mov esi, [rbp+var_18]
lea rdi, [rbp+var_88]
mov edx, 6
call rax
mov [rbp+var_40], rax
cmp [rbp+var_40], 0
setnz al
and al, 1
movzx eax, al
cmp eax, 0
setnz al
and al, 1
movzx eax, al
cdqe
cmp rax, 0
jz loc_2EDEF
lea rax, PSI_server
mov rax, [rax]
mov rax, [rax+210h]
mov rdi, [rbp+var_40]
mov rsi, [rbp+var_28]
mov rdx, [rbp+var_10]
mov ecx, [rbp+var_14]
call rax
mov edi, [rbp+var_18]
mov rsi, [rbp+var_20]
mov rdx, [rbp+var_28]
mov rcx, [rbp+var_30]
mov r8, [rbp+arg_0]
call my_pread
mov [rbp+var_38], rax
mov rax, [rbp+arg_0]
and rax, 6
cmp rax, 0
jz short loc_2ED9A
cmp [rbp+var_38], 0
jnz short loc_2ED7F
mov rax, [rbp+var_28]
mov [rbp+var_98], rax
jmp short loc_2ED8A
loc_2ED7F:
xor eax, eax
mov [rbp+var_98], rax
jmp short $+2
loc_2ED8A:
mov rax, [rbp+var_98]
mov [rbp+var_90], rax
jmp short loc_2EDC7
loc_2ED9A:
cmp [rbp+var_38], 0FFFFFFFFFFFFFFFFh
jz short loc_2EDAE
mov rax, [rbp+var_38]
mov [rbp+var_A0], rax
jmp short loc_2EDB9
loc_2EDAE:
xor eax, eax
mov [rbp+var_A0], rax
jmp short $+2
loc_2EDB9:
mov rax, [rbp+var_A0]
mov [rbp+var_90], rax
loc_2EDC7:
lea rax, PSI_server
mov rax, [rax]
mov rax, [rax+218h]
mov rdi, [rbp+var_40]
mov rsi, [rbp+var_90]
call rax
mov rax, [rbp+var_38]
mov [rbp+var_8], rax
jmp short loc_2EE13
loc_2EDEF:
mov edi, [rbp+var_18]
mov rsi, [rbp+var_20]
mov rdx, [rbp+var_28]
mov rcx, [rbp+var_30]
mov r8, [rbp+arg_0]
call my_pread
mov [rbp+var_38], rax
mov rax, [rbp+var_38]
mov [rbp+var_8], rax
loc_2EE13:
mov rax, [rbp+var_8]
add rsp, 0A0h
pop rbp
retn
|
long long inline_mysql_file_pread(
long long a1,
unsigned int a2,
unsigned int a3,
long long a4,
long long a5,
long long a6,
long long a7)
{
long long v8; // [rsp+0h] [rbp-A0h]
long long v9; // [rsp+8h] [rbp-98h]
_BYTE v10[72]; // [rsp+18h] [rbp-88h] BYREF
long long v11; // [rsp+60h] [rbp-40h]
long long v12; // [rsp+68h] [rbp-38h]
long long v13; // [rsp+70h] [rbp-30h]
long long v14; // [rsp+78h] [rbp-28h]
long long v15; // [rsp+80h] [rbp-20h]
unsigned int v16; // [rsp+88h] [rbp-18h]
unsigned int v17; // [rsp+8Ch] [rbp-14h]
long long v18; // [rsp+90h] [rbp-10h]
v18 = a1;
v17 = a2;
v16 = a3;
v15 = a4;
v14 = a5;
v13 = a6;
v11 = ((long long ( *)(_BYTE *, _QWORD, long long))PSI_server[43])(v10, a3, 6LL);
if ( v11 )
{
((void ( *)(long long, long long, long long, _QWORD))PSI_server[66])(v11, v14, v18, v17);
v12 = my_pread(v16, v15, v14, v13, a7);
if ( (a7 & 6) != 0 )
{
if ( v12 )
v9 = 0LL;
else
v9 = v14;
((void ( *)(long long, long long))PSI_server[67])(v11, v9);
}
else
{
if ( v12 == -1 )
v8 = 0LL;
else
v8 = v12;
((void ( *)(long long, long long))PSI_server[67])(v11, v8);
}
return v12;
}
else
{
return my_pread(v16, v15, v14, v13, a7);
}
}
|
inline_mysql_file_pread:
PUSH RBP
MOV RBP,RSP
SUB RSP,0xa0
MOV RAX,qword ptr [RBP + 0x10]
MOV qword ptr [RBP + -0x10],RDI
MOV dword ptr [RBP + -0x14],ESI
MOV dword ptr [RBP + -0x18],EDX
MOV qword ptr [RBP + -0x20],RCX
MOV qword ptr [RBP + -0x28],R8
MOV qword ptr [RBP + -0x30],R9
LEA RAX,[0x3c2028]
MOV RAX,qword ptr [RAX]
MOV RAX,qword ptr [RAX + 0x158]
MOV ESI,dword ptr [RBP + -0x18]
LEA RDI,[RBP + -0x88]
MOV EDX,0x6
CALL RAX
MOV qword ptr [RBP + -0x40],RAX
CMP qword ptr [RBP + -0x40],0x0
SETNZ AL
AND AL,0x1
MOVZX EAX,AL
CMP EAX,0x0
SETNZ AL
AND AL,0x1
MOVZX EAX,AL
CDQE
CMP RAX,0x0
JZ 0x0012edef
LEA RAX,[0x3c2028]
MOV RAX,qword ptr [RAX]
MOV RAX,qword ptr [RAX + 0x210]
MOV RDI,qword ptr [RBP + -0x40]
MOV RSI,qword ptr [RBP + -0x28]
MOV RDX,qword ptr [RBP + -0x10]
MOV ECX,dword ptr [RBP + -0x14]
CALL RAX
MOV EDI,dword ptr [RBP + -0x18]
MOV RSI,qword ptr [RBP + -0x20]
MOV RDX,qword ptr [RBP + -0x28]
MOV RCX,qword ptr [RBP + -0x30]
MOV R8,qword ptr [RBP + 0x10]
CALL 0x001f7d50
MOV qword ptr [RBP + -0x38],RAX
MOV RAX,qword ptr [RBP + 0x10]
AND RAX,0x6
CMP RAX,0x0
JZ 0x0012ed9a
CMP qword ptr [RBP + -0x38],0x0
JNZ 0x0012ed7f
MOV RAX,qword ptr [RBP + -0x28]
MOV qword ptr [RBP + -0x98],RAX
JMP 0x0012ed8a
LAB_0012ed7f:
XOR EAX,EAX
MOV qword ptr [RBP + -0x98],RAX
JMP 0x0012ed8a
LAB_0012ed8a:
MOV RAX,qword ptr [RBP + -0x98]
MOV qword ptr [RBP + -0x90],RAX
JMP 0x0012edc7
LAB_0012ed9a:
CMP qword ptr [RBP + -0x38],-0x1
JZ 0x0012edae
MOV RAX,qword ptr [RBP + -0x38]
MOV qword ptr [RBP + -0xa0],RAX
JMP 0x0012edb9
LAB_0012edae:
XOR EAX,EAX
MOV qword ptr [RBP + -0xa0],RAX
JMP 0x0012edb9
LAB_0012edb9:
MOV RAX,qword ptr [RBP + -0xa0]
MOV qword ptr [RBP + -0x90],RAX
LAB_0012edc7:
LEA RAX,[0x3c2028]
MOV RAX,qword ptr [RAX]
MOV RAX,qword ptr [RAX + 0x218]
MOV RDI,qword ptr [RBP + -0x40]
MOV RSI,qword ptr [RBP + -0x90]
CALL RAX
MOV RAX,qword ptr [RBP + -0x38]
MOV qword ptr [RBP + -0x8],RAX
JMP 0x0012ee13
LAB_0012edef:
MOV EDI,dword ptr [RBP + -0x18]
MOV RSI,qword ptr [RBP + -0x20]
MOV RDX,qword ptr [RBP + -0x28]
MOV RCX,qword ptr [RBP + -0x30]
MOV R8,qword ptr [RBP + 0x10]
CALL 0x001f7d50
MOV qword ptr [RBP + -0x38],RAX
MOV RAX,qword ptr [RBP + -0x38]
MOV qword ptr [RBP + -0x8],RAX
LAB_0012ee13:
MOV RAX,qword ptr [RBP + -0x8]
ADD RSP,0xa0
POP RBP
RET
|
long inline_mysql_file_pread
(int8 param_1,int4 param_2,int4 param_3,int8 param_4,
long param_5,int8 param_6,ulong param_7)
{
long local_a8;
long local_a0;
long local_98;
int1 local_90 [72];
long local_48;
long local_40;
int8 local_38;
long local_30;
int8 local_28;
int4 local_20;
int4 local_1c;
int8 local_18;
long local_10;
local_38 = param_6;
local_30 = param_5;
local_28 = param_4;
local_20 = param_3;
local_1c = param_2;
local_18 = param_1;
local_48 = (**(code **)(PSI_server + 0x158))(local_90,param_3,6);
if (local_48 == 0) {
local_10 = my_pread(local_20,local_28,local_30,local_38,param_7);
}
else {
(**(code **)(PSI_server + 0x210))(local_48,local_30,local_18,local_1c);
local_40 = my_pread(local_20,local_28,local_30,local_38,param_7);
if ((param_7 & 6) == 0) {
local_a8 = local_40;
if (local_40 == -1) {
local_a8 = 0;
}
local_98 = local_a8;
}
else {
if (local_40 == 0) {
local_a0 = local_30;
}
else {
local_a0 = 0;
}
local_98 = local_a0;
}
(**(code **)(PSI_server + 0x218))(local_48,local_98);
local_10 = local_40;
}
return local_10;
}
|
|
58,021
|
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>& nlohmann::json_abi_v3_11_3::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>::at<char const (&) [9], 0>(char const (&) [9])
|
monkey531[P]llama/common/json.hpp
|
reference at(KeyType && key)
{
// at only works for objects
if (JSON_HEDLEY_UNLIKELY(!is_object()))
{
JSON_THROW(type_error::create(304, detail::concat("cannot use at() with ", type_name()), this));
}
auto it = m_data.m_value.object->find(std::forward<KeyType>(key));
if (it == m_data.m_value.object->end())
{
JSON_THROW(out_of_range::create(403, detail::concat("key '", string_t(std::forward<KeyType>(key)), "' not found"), this));
}
return set_parent(it->second);
}
|
O1
|
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>& 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>::at<char const (&) [9], 0>(char const (&) [9]):
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x40, %rsp
movq %rdi, %r14
cmpb $0x1, (%rdi)
jne 0xcaae2
movq %rsi, %r15
movq 0x8(%r14), %r12
movq (%r12), %rbx
movq 0x8(%r12), %rax
cmpq %rax, %rbx
je 0xcaac7
movq %rbx, %rdi
movq %r15, %rsi
callq 0x1d2a0
testl %eax, %eax
je 0xcaac4
addq $0x30, %rbx
jmp 0xcaaa5
movq %rbx, %rax
movq 0x8(%r14), %rcx
cmpq 0x8(%rcx), %rax
je 0xcab3e
addq $0x20, %rax
addq $0x40, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
movl $0x20, %edi
callq 0x1d5b0
movq %rax, %rbx
movq %r14, %rdi
callq 0x8fd1e
leaq 0x20(%rsp), %rdx
movq %rax, (%rdx)
leaq 0x4ea03(%rip), %rsi # 0x119509
movq %rsp, %rdi
callq 0xd0061
movb $0x1, %bpl
movq %rsp, %rdx
movq %rbx, %rdi
movl $0x130, %esi # imm = 0x130
movq %r14, %rcx
callq 0x8fac6
xorl %ebp, %ebp
leaq 0x8c66b(%rip), %rsi # 0x157198
leaq -0x3ec00(%rip), %rdx # 0x8bf34
movq %rbx, %rdi
callq 0x1e5a0
jmp 0xcabb7
movl $0x20, %edi
callq 0x1d5b0
movq %rax, %rbx
leaq 0x30(%rsp), %r12
movq %r12, -0x10(%r12)
movq %r15, %rdi
callq 0x1d4f0
leaq (%rax,%r15), %rdx
leaq 0x20(%rsp), %rdi
movq %r15, %rsi
callq 0x2698a
leaq 0x4e9c4(%rip), %rsi # 0x119539
leaq 0x4e9c3(%rip), %rcx # 0x11953f
movq %rsp, %rdi
leaq 0x20(%rsp), %rdx
callq 0xd066a
movb $0x1, %bpl
movq %rsp, %rdx
movq %rbx, %rdi
movl $0x193, %esi # imm = 0x193
movq %r14, %rcx
callq 0x8e0f0
xorl %ebp, %ebp
leaq 0x8c570(%rip), %rsi # 0x157118
leaq -0x3ec7b(%rip), %rdx # 0x8bf34
movq %rbx, %rdi
callq 0x1e5a0
movq %rax, %r14
leaq 0x10(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0xcabdd
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x1dc40
jmp 0xcabdd
movq %rax, %r14
movb $0x1, %bpl
movq 0x20(%rsp), %rdi
cmpq %r12, %rdi
je 0xcac16
movq 0x30(%rsp), %rsi
jmp 0xcac06
jmp 0xcac10
movq %rax, %r14
leaq 0x10(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0xcac16
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x1dc40
jmp 0xcac16
movq %rax, %r14
movb $0x1, %bpl
testb %bpl, %bpl
je 0xcac23
movq %rbx, %rdi
callq 0x1d8b0
movq %r14, %rdi
callq 0x1e650
nop
|
_ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE2atIRA13_KcTnNSt9enable_ifIXsr6detail32is_usable_as_basic_json_key_typeISD_T_EE5valueEiE4typeELi0EEERSD_OSJ_:
push rbp; char
push r15; int
push r14; int
push r12; int
push rbx; char
sub rsp, 40h
mov r14, rdi
cmp byte ptr [rdi], 1
jnz short loc_CAAE2
mov r15, rsi
mov r12, [r14+8]
mov rbx, [r12]
loc_CAAA5:
mov rax, [r12+8]
cmp rbx, rax
jz short loc_CAAC7
mov rdi, rbx
mov rsi, r15
call __ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE7compareEPKc; std::string::compare(char const*)
test eax, eax
jz short loc_CAAC4
add rbx, 30h ; '0'
jmp short loc_CAAA5
loc_CAAC4:
mov rax, rbx
loc_CAAC7:
mov rcx, [r14+8]
cmp rax, [rcx+8]
jz short loc_CAB3E
add rax, 20h ; ' '
add rsp, 40h
pop rbx
pop r12
pop r14
pop r15
pop rbp
retn
loc_CAAE2:
mov edi, 20h ; ' '; thrown_size
call ___cxa_allocate_exception
mov rbx, rax
mov rdi, r14
call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE9type_nameEv; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::type_name(void)
lea rdx, [rsp+68h+var_48]
mov [rdx], rax
lea rsi, aCannotUseAtWit; "cannot use at() with "
mov rdi, rsp
call _ZN8nlohmann16json_abi_v3_11_36detail6concatINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEJRA22_KcPS9_EEET_DpOT0_; nlohmann::json_abi_v3_11_3::detail::concat<std::string,char const(&)[22],char const*>(char const(&)[22],char const* &&)
mov bpl, 1
mov rdx, rsp
mov rdi, rbx; this
mov esi, 130h; int
mov rcx, r14
call _ZN8nlohmann16json_abi_v3_11_36detail10type_error6createIPNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SJ_
xor ebp, ebp
lea rsi, _ZTIN8nlohmann16json_abi_v3_11_36detail10type_errorE; lptinfo
lea rdx, _ZN8nlohmann16json_abi_v3_11_36detail9exceptionD2Ev; void (*)(void *)
mov rdi, rbx; void *
call ___cxa_throw
jmp short loc_CABB7
loc_CAB3E:
mov edi, 20h ; ' '; thrown_size
call ___cxa_allocate_exception
mov rbx, rax
lea r12, [rsp+68h+var_38]
mov [r12-10h], r12
mov rdi, r15
call _strlen
lea rdx, [rax+r15]
lea rdi, [rsp+68h+var_48]
mov rsi, r15
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, aKey; "key '"
lea rcx, aNotFound; "' not found"
mov rdi, rsp
lea rdx, [rsp+68h+var_48]
call _ZN8nlohmann16json_abi_v3_11_36detail6concatINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEJRA6_KcS8_RA12_S9_EEET_DpOT0_; nlohmann::json_abi_v3_11_3::detail::concat<std::string,char const(&)[6],std::string,char const(&)[12]>(char const(&)[6],std::string,char const(&)[12] &&)
mov bpl, 1
mov rdx, rsp
mov rdi, rbx; this
mov esi, 193h; int
mov rcx, r14
call _ZN8nlohmann16json_abi_v3_11_36detail12out_of_range6createIPNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SJ_
xor ebp, ebp
lea rsi, _ZTIN8nlohmann16json_abi_v3_11_36detail12out_of_rangeE; lptinfo
lea rdx, _ZN8nlohmann16json_abi_v3_11_36detail9exceptionD2Ev; void (*)(void *)
mov rdi, rbx; void *
call ___cxa_throw
loc_CABB7:
mov r14, rax
lea rax, [rsp+68h+var_58]
mov rdi, [rax-10h]; void *
cmp rdi, rax
jz short loc_CABDD
mov rsi, [rsp+68h+var_58]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
jmp short loc_CABDD
mov r14, rax
mov bpl, 1
loc_CABDD:
mov rdi, [rsp+68h+var_48]
cmp rdi, r12
jz short loc_CAC16
mov rsi, [rsp+68h+var_38]
jmp short loc_CAC06
jmp short loc_CAC10
mov r14, rax
lea rax, [rsp+68h+var_58]
mov rdi, [rax-10h]; void *
cmp rdi, rax
jz short loc_CAC16
mov rsi, [rsp+68h+var_58]
loc_CAC06:
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
jmp short loc_CAC16
loc_CAC10:
mov r14, rax
mov bpl, 1
loc_CAC16:
test bpl, bpl
jz short loc_CAC23
mov rdi, rbx; void *
call ___cxa_free_exception
loc_CAC23:
mov rdi, r14
call __Unwind_Resume
|
long long ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE2atIRA13_KcTnNSt9enable_ifIXsr6detail32is_usable_as_basic_json_key_typeISD_T_EE5valueEiE4typeELi0EEERSD_OSJ_(
long long a1,
_BYTE *a2)
{
long long *v2; // r12
long long i; // rbx
long long v4; // rax
nlohmann::json_abi_v3_11_3::detail::exception *exception; // rbx
nlohmann::json_abi_v3_11_3::detail::exception *v7; // rbx
long long v8; // rax
_QWORD v9[2]; // [rsp+0h] [rbp-68h] BYREF
_QWORD v10[2]; // [rsp+20h] [rbp-48h] BYREF
long long v11; // [rsp+30h] [rbp-38h] BYREF
if ( *(_BYTE *)a1 != 1 )
{
exception = (nlohmann::json_abi_v3_11_3::detail::exception *)__cxa_allocate_exception(0x20uLL);
v10[0] = nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::type_name((unsigned __int8 *)a1);
nlohmann::json_abi_v3_11_3::detail::concat<std::string,char const(&)[22],char const*>(v9, "cannot use at() with ");
ZN8nlohmann16json_abi_v3_11_36detail10type_error6createIPNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SJ_(
exception,
304,
v9);
__cxa_throw(
exception,
(struct type_info *)&`typeinfo for'nlohmann::json_abi_v3_11_3::detail::type_error,
(void (*)(void *))nlohmann::json_abi_v3_11_3::detail::exception::~exception);
}
v2 = *(long long **)(a1 + 8);
for ( i = *v2; ; i += 48LL )
{
v4 = v2[1];
if ( i == v4 )
break;
if ( !(unsigned int)std::string::compare(i, a2) )
{
v4 = i;
break;
}
}
if ( v4 == *(_QWORD *)(*(_QWORD *)(a1 + 8) + 8LL) )
{
v7 = (nlohmann::json_abi_v3_11_3::detail::exception *)__cxa_allocate_exception(0x20uLL);
v10[0] = &v11;
v8 = strlen(a2);
std::string::_M_construct<char const*>(v10, a2, (long long)&a2[v8]);
nlohmann::json_abi_v3_11_3::detail::concat<std::string,char const(&)[6],std::string,char const(&)[12]>(
v9,
"key '",
v10,
"' not found");
ZN8nlohmann16json_abi_v3_11_36detail12out_of_range6createIPNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SJ_(
v7,
403,
v9);
__cxa_throw(
v7,
(struct type_info *)&`typeinfo for'nlohmann::json_abi_v3_11_3::detail::out_of_range,
(void (*)(void *))nlohmann::json_abi_v3_11_3::detail::exception::~exception);
}
return v4 + 32;
}
|
_ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE2atIRA13_KcTnNSt9enable_ifIXsr6detail32is_usable_as_basic_json_key_typeISD_T_EE5valueEiE4typeELi0EEERSD_OSJ_:
PUSH RBP
PUSH R15
PUSH R14
PUSH R12
PUSH RBX
SUB RSP,0x40
MOV R14,RDI
CMP byte ptr [RDI],0x1
JNZ 0x001caae2
MOV R15,RSI
MOV R12,qword ptr [R14 + 0x8]
MOV RBX,qword ptr [R12]
LAB_001caaa5:
MOV RAX,qword ptr [R12 + 0x8]
CMP RBX,RAX
JZ 0x001caac7
MOV RDI,RBX
MOV RSI,R15
CALL 0x0011d2a0
TEST EAX,EAX
JZ 0x001caac4
ADD RBX,0x30
JMP 0x001caaa5
LAB_001caac4:
MOV RAX,RBX
LAB_001caac7:
MOV RCX,qword ptr [R14 + 0x8]
CMP RAX,qword ptr [RCX + 0x8]
JZ 0x001cab3e
ADD RAX,0x20
ADD RSP,0x40
POP RBX
POP R12
POP R14
POP R15
POP RBP
RET
LAB_001caae2:
MOV EDI,0x20
CALL 0x0011d5b0
MOV RBX,RAX
MOV RDI,R14
CALL 0x0018fd1e
LEA RDX,[RSP + 0x20]
MOV qword ptr [RDX],RAX
LAB_001caaff:
LEA RSI,[0x219509]
MOV RDI,RSP
CALL 0x001d0061
MOV BPL,0x1
LAB_001cab11:
MOV RDX,RSP
MOV RDI,RBX
MOV ESI,0x130
MOV RCX,R14
CALL 0x0018fac6
XOR EBP,EBP
LEA RSI,[0x257198]
LEA RDX,[0x18bf34]
MOV RDI,RBX
CALL 0x0011e5a0
LAB_001cab3e:
MOV EDI,0x20
CALL 0x0011d5b0
MOV RBX,RAX
LEA R12,[RSP + 0x30]
MOV qword ptr [R12 + -0x10],R12
MOV RDI,R15
CALL 0x0011d4f0
LEA RDX,[RAX + R15*0x1]
LAB_001cab61:
LEA RDI,[RSP + 0x20]
MOV RSI,R15
CALL 0x0012698a
LAB_001cab6e:
LEA RSI,[0x219539]
LEA RCX,[0x21953f]
MOV RDI,RSP
LEA RDX,[RSP + 0x20]
CALL 0x001d066a
MOV BPL,0x1
LAB_001cab8c:
MOV RDX,RSP
MOV RDI,RBX
MOV ESI,0x193
MOV RCX,R14
CALL 0x0018e0f0
XOR EBP,EBP
LEA RSI,[0x257118]
LEA RDX,[0x18bf34]
MOV RDI,RBX
CALL 0x0011e5a0
|
char * _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE2atIRA13_KcTnNSt9enable_ifIXsr6detail32is_usable_as_basic_json_key_typeISD_T_EE5valueEiE4typeELi0EEERSD_OSJ_
(basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
*param_1,char *param_2)
{
int8 *puVar1;
int iVar2;
char *pcVar3;
int8 uVar4;
size_t sVar5;
char *pcVar6;
detail adStack_68 [32];
char *local_48 [2];
char local_38 [16];
if (*param_1 !=
(basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,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) {
uVar4 = __cxa_allocate_exception(0x20);
local_48[0] = (char *)nlohmann::json_abi_v3_11_3::
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::type_name(param_1);
/* try { // try from 001caaff to 001cab0d has its CatchHandler @ 001cac10 */
nlohmann::json_abi_v3_11_3::detail::concat<std::__cxx11::string,char_const(&)[22],char_const*>
(adStack_68,"cannot use at() with ",local_48);
/* try { // try from 001cab11 to 001cab3b has its CatchHandler @ 001cabf0 */
_ZN8nlohmann16json_abi_v3_11_36detail10type_error6createIPNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SJ_
(uVar4,0x130,adStack_68,param_1);
/* WARNING: Subroutine does not return */
__cxa_throw(uVar4,&nlohmann::json_abi_v3_11_3::detail::type_error::typeinfo,
nlohmann::json_abi_v3_11_3::detail::exception::~exception);
}
puVar1 = *(int8 **)(param_1 + 8);
pcVar6 = (char *)*puVar1;
while ((pcVar3 = (char *)puVar1[1], pcVar6 != pcVar3 &&
(iVar2 = std::__cxx11::string::compare(pcVar6), pcVar3 = pcVar6, iVar2 != 0))) {
pcVar6 = pcVar6 + 0x30;
}
if (pcVar3 == *(char **)(*(long *)(param_1 + 8) + 8)) {
uVar4 = __cxa_allocate_exception(0x20);
local_48[0] = local_38;
sVar5 = strlen(param_2);
/* try { // try from 001cab61 to 001cab6d has its CatchHandler @ 001cabee */
std::__cxx11::string::_M_construct<char_const*>(local_48,param_2,param_2 + sVar5);
/* try { // try from 001cab6e to 001cab88 has its CatchHandler @ 001cabd7 */
nlohmann::json_abi_v3_11_3::detail::
concat<std::__cxx11::string,char_const(&)[6],std::__cxx11::string,char_const(&)[12]>
(adStack_68,"key \'",(string *)local_48,"\' not found");
/* try { // try from 001cab8c to 001cabb6 has its CatchHandler @ 001cabb7 */
_ZN8nlohmann16json_abi_v3_11_36detail12out_of_range6createIPNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SJ_
(uVar4,0x193,adStack_68,param_1);
/* WARNING: Subroutine does not return */
__cxa_throw(uVar4,&nlohmann::json_abi_v3_11_3::detail::out_of_range::typeinfo,
nlohmann::json_abi_v3_11_3::detail::exception::~exception);
}
return pcVar3 + 0x20;
}
|
|
58,022
|
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>& nlohmann::json_abi_v3_11_3::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>::at<char const (&) [9], 0>(char const (&) [9])
|
monkey531[P]llama/common/json.hpp
|
reference at(KeyType && key)
{
// at only works for objects
if (JSON_HEDLEY_UNLIKELY(!is_object()))
{
JSON_THROW(type_error::create(304, detail::concat("cannot use at() with ", type_name()), this));
}
auto it = m_data.m_value.object->find(std::forward<KeyType>(key));
if (it == m_data.m_value.object->end())
{
JSON_THROW(out_of_range::create(403, detail::concat("key '", string_t(std::forward<KeyType>(key)), "' not found"), this));
}
return set_parent(it->second);
}
|
O2
|
cpp
|
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>& 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>::at<char const (&) [9], 0>(char const (&) [9]):
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x48, %rsp
movq %rdi, %r14
cmpb $0x1, (%rdi)
jne 0x9699d
movq %rsi, %r15
movq 0x8(%r14), %rdi
callq 0x9a7e0
movq 0x8(%r14), %rcx
cmpq 0x8(%rcx), %rax
je 0x969fb
addq $0x20, %rax
addq $0x48, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
pushq $0x20
popq %rdi
callq 0x265e0
movq %rax, %rbx
movq %r14, %rdi
callq 0x6ad6a
leaq 0x28(%rsp), %rdx
movq %rax, (%rdx)
leaq 0x3ca3a(%rip), %rsi # 0xd33f9
leaq 0x8(%rsp), %rdi
callq 0x9a241
movb $0x1, %bpl
leaq 0x8(%rsp), %rdx
movq %rbx, %rdi
movl $0x130, %esi # imm = 0x130
movq %r14, %rcx
callq 0x6ac1e
xorl %ebp, %ebp
leaq 0x897be(%rip), %rsi # 0x1201a8
leaq -0x2ef6f(%rip), %rdx # 0x67a82
movq %rbx, %rdi
callq 0x275b0
jmp 0x96a65
pushq $0x20
popq %rdi
callq 0x265e0
movq %rax, %rbx
leaq 0x28(%rsp), %rdi
leaq 0x7(%rsp), %rdx
movq %r15, %rsi
callq 0x2b18e
leaq 0x3ca0a(%rip), %rsi # 0xd3429
leaq 0x3ca09(%rip), %rcx # 0xd342f
leaq 0x8(%rsp), %rdi
leaq 0x28(%rsp), %rdx
callq 0x9a84b
movb $0x1, %bpl
leaq 0x8(%rsp), %rdx
movq %rbx, %rdi
movl $0x193, %esi # imm = 0x193
movq %r14, %rcx
callq 0x69622
xorl %ebp, %ebp
leaq 0x896d2(%rip), %rsi # 0x120128
leaq -0x2efdb(%rip), %rdx # 0x67a82
movq %rbx, %rdi
callq 0x275b0
movq %rax, %r14
leaq 0x8(%rsp), %rdi
callq 0x27998
jmp 0x96a7a
movq %rax, %r14
movb $0x1, %bpl
leaq 0x28(%rsp), %rdi
jmp 0x96a8b
jmp 0x96a97
movq %rax, %r14
leaq 0x8(%rsp), %rdi
callq 0x27998
testb %bpl, %bpl
jne 0x96a9a
jmp 0x96aa2
movq %rax, %r14
movq %rbx, %rdi
callq 0x268f0
movq %r14, %rdi
callq 0x27660
|
_ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE2atIRA5_KcTnNSt9enable_ifIXsr6detail32is_usable_as_basic_json_key_typeISD_T_EE5valueEiE4typeELi0EEERSD_OSJ_:
push rbp; char
push r15; int
push r14; int
push rbx; int
sub rsp, 48h
mov r14, rdi
cmp byte ptr [rdi], 1
jnz short loc_9699D
mov r15, rsi
mov rdi, [r14+8]
call _ZN8nlohmann16json_abi_v3_11_311ordered_mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEENS0_10basic_jsonIS1_St6vectorS7_blmdSaNS0_14adl_serializerES9_IhSaIhEEvEESt4lessIvESaISt4pairIKS7_SD_EEE4findIRA5_KcTnNSt9enable_ifIXsr6detail21is_usable_as_key_typeISt8equal_toIvES7_T_EE5valueEiE4typeELi0EEEN9__gnu_cxx17__normal_iteratorIPSI_S9_ISI_SJ_EEEOSS_
mov rcx, [r14+8]
cmp rax, [rcx+8]
jz short loc_969FB
add rax, 20h ; ' '
add rsp, 48h
pop rbx
pop r14
pop r15
pop rbp
retn
loc_9699D:
push 20h ; ' '
pop rdi; thrown_size
call ___cxa_allocate_exception
mov rbx, rax
mov rdi, r14
call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE9type_nameEv; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::type_name(void)
lea rdx, [rsp+68h+var_40]
mov [rdx], rax
lea rsi, aCannotUseAtWit; "cannot use at() with "
lea rdi, [rsp+68h+var_60]
call _ZN8nlohmann16json_abi_v3_11_36detail6concatINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEJRA22_KcPS9_EEET_DpOT0_; nlohmann::json_abi_v3_11_3::detail::concat<std::string,char const(&)[22],char const*>(char const(&)[22],char const* &&)
mov bpl, 1
lea rdx, [rsp+68h+var_60]
mov rdi, rbx; this
mov esi, 130h; int
mov rcx, r14
call _ZN8nlohmann16json_abi_v3_11_36detail10type_error6createIPNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SJ_
xor ebp, ebp
lea rsi, _ZTIN8nlohmann16json_abi_v3_11_36detail10type_errorE; lptinfo
lea rdx, _ZN8nlohmann16json_abi_v3_11_36detail9exceptionD2Ev; void (*)(void *)
mov rdi, rbx; void *
call ___cxa_throw
jmp short loc_96A65
loc_969FB:
push 20h ; ' '
pop rdi; thrown_size
call ___cxa_allocate_exception
mov rbx, rax
lea rdi, [rsp+68h+var_40]
lea rdx, [rsp+68h+var_61]
mov rsi, r15
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_; std::string::basic_string<std::allocator<char>>(char const*,std::allocator<char> const&)
lea rsi, aKey; "key '"
lea rcx, aNotFound; "' not found"
lea rdi, [rsp+68h+var_60]
lea rdx, [rsp+68h+var_40]
call _ZN8nlohmann16json_abi_v3_11_36detail6concatINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEJRA6_KcS8_RA12_S9_EEET_DpOT0_; nlohmann::json_abi_v3_11_3::detail::concat<std::string,char const(&)[6],std::string,char const(&)[12]>(char const(&)[6],std::string,char const(&)[12] &&)
mov bpl, 1
lea rdx, [rsp+68h+var_60]
mov rdi, rbx; this
mov esi, 193h; int
mov rcx, r14
call _ZN8nlohmann16json_abi_v3_11_36detail12out_of_range6createIPNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SJ_
xor ebp, ebp
lea rsi, _ZTIN8nlohmann16json_abi_v3_11_36detail12out_of_rangeE; lptinfo
lea rdx, _ZN8nlohmann16json_abi_v3_11_36detail9exceptionD2Ev; void (*)(void *)
mov rdi, rbx; void *
call ___cxa_throw
loc_96A65:
mov r14, rax
lea rdi, [rsp+68h+var_60]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
jmp short loc_96A7A
mov r14, rax
mov bpl, 1
loc_96A7A:
lea rdi, [rsp+68h+var_40]
jmp short loc_96A8B
jmp short loc_96A97
mov r14, rax
lea rdi, [rsp+68h+var_60]; void *
loc_96A8B:
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
test bpl, bpl
jnz short loc_96A9A
jmp short loc_96AA2
loc_96A97:
mov r14, rax
loc_96A9A:
mov rdi, rbx; void *
call ___cxa_free_exception
loc_96AA2:
mov rdi, r14
call __Unwind_Resume
|
long long ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE2atIRA5_KcTnNSt9enable_ifIXsr6detail32is_usable_as_basic_json_key_typeISD_T_EE5valueEiE4typeELi0EEERSD_OSJ_(
long long a1,
long long a2)
{
long long v2; // rax
nlohmann::json_abi_v3_11_3::detail::type_error *exception; // rbx
nlohmann::json_abi_v3_11_3::detail::out_of_range *v5; // rbx
_BYTE v6[32]; // [rsp+8h] [rbp-60h] BYREF
_QWORD v7[8]; // [rsp+28h] [rbp-40h] BYREF
if ( *(_BYTE *)a1 != 1 )
{
exception = (nlohmann::json_abi_v3_11_3::detail::type_error *)__cxa_allocate_exception(0x20uLL);
v7[0] = nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::type_name((unsigned __int8 *)a1);
nlohmann::json_abi_v3_11_3::detail::concat<std::string,char const(&)[22],char const*>(v6, "cannot use at() with ");
ZN8nlohmann16json_abi_v3_11_36detail10type_error6createIPNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SJ_(
exception,
304,
(long long)v6);
__cxa_throw(
exception,
(struct type_info *)&`typeinfo for'nlohmann::json_abi_v3_11_3::detail::type_error,
(void (*)(void *))nlohmann::json_abi_v3_11_3::detail::exception::~exception);
}
v2 = ZN8nlohmann16json_abi_v3_11_311ordered_mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEENS0_10basic_jsonIS1_St6vectorS7_blmdSaNS0_14adl_serializerES9_IhSaIhEEvEESt4lessIvESaISt4pairIKS7_SD_EEE4findIRA5_KcTnNSt9enable_ifIXsr6detail21is_usable_as_key_typeISt8equal_toIvES7_T_EE5valueEiE4typeELi0EEEN9__gnu_cxx17__normal_iteratorIPSI_S9_ISI_SJ_EEEOSS_(*(_QWORD *)(a1 + 8));
if ( v2 == *(_QWORD *)(*(_QWORD *)(a1 + 8) + 8LL) )
{
v5 = (nlohmann::json_abi_v3_11_3::detail::out_of_range *)__cxa_allocate_exception(0x20uLL);
std::string::basic_string<std::allocator<char>>(v7, a2);
nlohmann::json_abi_v3_11_3::detail::concat<std::string,char const(&)[6],std::string,char const(&)[12]>(
v6,
"key '",
v7,
"' not found");
ZN8nlohmann16json_abi_v3_11_36detail12out_of_range6createIPNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SJ_(
v5,
403,
(long long)v6,
a1);
__cxa_throw(
v5,
(struct type_info *)&`typeinfo for'nlohmann::json_abi_v3_11_3::detail::out_of_range,
(void (*)(void *))nlohmann::json_abi_v3_11_3::detail::exception::~exception);
}
return v2 + 32;
}
|
_ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE2atIRA5_KcTnNSt9enable_ifIXsr6detail32is_usable_as_basic_json_key_typeISD_T_EE5valueEiE4typeELi0EEERSD_OSJ_:
PUSH RBP
PUSH R15
PUSH R14
PUSH RBX
SUB RSP,0x48
MOV R14,RDI
CMP byte ptr [RDI],0x1
JNZ 0x0019699d
MOV R15,RSI
MOV RDI,qword ptr [R14 + 0x8]
CALL 0x0019a7e0
MOV RCX,qword ptr [R14 + 0x8]
CMP RAX,qword ptr [RCX + 0x8]
JZ 0x001969fb
ADD RAX,0x20
ADD RSP,0x48
POP RBX
POP R14
POP R15
POP RBP
RET
LAB_0019699d:
PUSH 0x20
POP RDI
CALL 0x001265e0
MOV RBX,RAX
MOV RDI,R14
CALL 0x0016ad6a
LEA RDX,[RSP + 0x28]
MOV qword ptr [RDX],RAX
LAB_001969b8:
LEA RSI,[0x1d33f9]
LEA RDI,[RSP + 0x8]
CALL 0x0019a241
MOV BPL,0x1
LAB_001969cc:
LEA RDX,[RSP + 0x8]
MOV RDI,RBX
MOV ESI,0x130
MOV RCX,R14
CALL 0x0016ac1e
XOR EBP,EBP
LEA RSI,[0x2201a8]
LEA RDX,[0x167a82]
MOV RDI,RBX
CALL 0x001275b0
LAB_001969fb:
PUSH 0x20
POP RDI
CALL 0x001265e0
MOV RBX,RAX
LAB_00196a06:
LEA RDI,[RSP + 0x28]
LEA RDX,[RSP + 0x7]
MOV RSI,R15
CALL 0x0012b18e
LAB_00196a18:
LEA RSI,[0x1d3429]
LEA RCX,[0x1d342f]
LEA RDI,[RSP + 0x8]
LEA RDX,[RSP + 0x28]
CALL 0x0019a84b
MOV BPL,0x1
LAB_00196a38:
LEA RDX,[RSP + 0x8]
MOV RDI,RBX
MOV ESI,0x193
MOV RCX,R14
CALL 0x00169622
XOR EBP,EBP
LEA RSI,[0x220128]
LEA RDX,[0x167a82]
MOV RDI,RBX
CALL 0x001275b0
|
long _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE2atIRA5_KcTnNSt9enable_ifIXsr6detail32is_usable_as_basic_json_key_typeISD_T_EE5valueEiE4typeELi0EEERSD_OSJ_
(basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
*param_1,char *param_2)
{
long lVar1;
int8 uVar2;
allocator local_61;
detail local_60 [32];
char *local_40 [4];
if (*param_1 !=
(basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,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) {
uVar2 = __cxa_allocate_exception(0x20);
local_40[0] = (char *)nlohmann::json_abi_v3_11_3::
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::type_name(param_1);
/* try { // try from 001969b8 to 001969c8 has its CatchHandler @ 00196a97 */
nlohmann::json_abi_v3_11_3::detail::concat<std::__cxx11::string,char_const(&)[22],char_const*>
(local_60,"cannot use at() with ",local_40);
/* try { // try from 001969cc to 001969f8 has its CatchHandler @ 00196a83 */
_ZN8nlohmann16json_abi_v3_11_36detail10type_error6createIPNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SJ_
(uVar2,0x130,local_60,param_1);
/* WARNING: Subroutine does not return */
__cxa_throw(uVar2,&nlohmann::json_abi_v3_11_3::detail::type_error::typeinfo,
nlohmann::json_abi_v3_11_3::detail::exception::~exception);
}
lVar1 = _ZN8nlohmann16json_abi_v3_11_311ordered_mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEENS0_10basic_jsonIS1_St6vectorS7_blmdSaNS0_14adl_serializerES9_IhSaIhEEvEESt4lessIvESaISt4pairIKS7_SD_EEE4findIRA5_KcTnNSt9enable_ifIXsr6detail21is_usable_as_key_typeISt8equal_toIvES7_T_EE5valueEiE4typeELi0EEEN9__gnu_cxx17__normal_iteratorIPSI_S9_ISI_SJ_EEEOSS_
(*(int8 *)(param_1 + 8));
if (lVar1 != *(long *)(*(long *)(param_1 + 8) + 8)) {
return lVar1 + 0x20;
}
uVar2 = __cxa_allocate_exception(0x20);
/* try { // try from 00196a06 to 00196a17 has its CatchHandler @ 00196a81 */
std::__cxx11::string::string<std::allocator<char>>((string *)local_40,param_2,&local_61);
/* try { // try from 00196a18 to 00196a34 has its CatchHandler @ 00196a74 */
nlohmann::json_abi_v3_11_3::detail::
concat<std::__cxx11::string,char_const(&)[6],std::__cxx11::string,char_const(&)[12]>
(local_60,"key \'",(string *)local_40,"\' not found");
/* try { // try from 00196a38 to 00196a64 has its CatchHandler @ 00196a65 */
_ZN8nlohmann16json_abi_v3_11_36detail12out_of_range6createIPNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SJ_
(uVar2,0x193,local_60,param_1);
/* WARNING: Subroutine does not return */
__cxa_throw(uVar2,&nlohmann::json_abi_v3_11_3::detail::out_of_range::typeinfo,
nlohmann::json_abi_v3_11_3::detail::exception::~exception);
}
|
|
58,023
|
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>& nlohmann::json_abi_v3_11_3::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>::at<char const (&) [9], 0>(char const (&) [9])
|
monkey531[P]llama/common/json.hpp
|
reference at(KeyType && key)
{
// at only works for objects
if (JSON_HEDLEY_UNLIKELY(!is_object()))
{
JSON_THROW(type_error::create(304, detail::concat("cannot use at() with ", type_name()), this));
}
auto it = m_data.m_value.object->find(std::forward<KeyType>(key));
if (it == m_data.m_value.object->end())
{
JSON_THROW(out_of_range::create(403, detail::concat("key '", string_t(std::forward<KeyType>(key)), "' not found"), this));
}
return set_parent(it->second);
}
|
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>& 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>::at<char const (&) [9], 0>(char const (&) [9]):
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x40, %rsp
movq %rdi, %r14
cmpb $0x1, (%rdi)
jne 0xc99c7
movq %rsi, %r15
movq 0x8(%r14), %r12
movq (%r12), %rbx
movq 0x8(%r12), %rax
cmpq %rax, %rbx
je 0xc99b1
movq %rbx, %rdi
movq %r15, %rsi
callq 0x1d2a0
testl %eax, %eax
je 0xc99a6
addq $0x30, %rbx
movq 0x8(%r12), %rax
cmpq %rax, %rbx
jne 0xc9987
jmp 0xc99a9
movq %rbx, %rax
movq 0x8(%r14), %rcx
movq 0x8(%rcx), %rbx
cmpq %rbx, %rax
je 0xc9a25
addq $0x20, %rax
addq $0x40, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
movl $0x20, %edi
callq 0x1d5b0
movq %rax, %rbx
movq %r14, %rdi
callq 0x8fb52
movq %rsp, %rdx
movq %rax, (%rdx)
leaq 0x4cb20(%rip), %rsi # 0x116509
leaq 0x20(%rsp), %rdi
callq 0xcedcd
movb $0x1, %bpl
leaq 0x20(%rsp), %rdx
movq %rbx, %rdi
movl $0x130, %esi # imm = 0x130
movq %r14, %rcx
callq 0x8f8fa
xorl %ebp, %ebp
leaq 0x8a784(%rip), %rsi # 0x154198
leaq -0x3dbbf(%rip), %rdx # 0x8be5c
movq %rbx, %rdi
callq 0x1e5b0
jmp 0xc9a9e
movl $0x20, %edi
callq 0x1d5b0
movq %rax, %rbx
leaq 0x10(%rsp), %r12
movq %r12, -0x10(%r12)
movq %r15, %rdi
callq 0x1d4f0
leaq (%rax,%r15), %rdx
movq %rsp, %rdi
movq %r15, %rsi
callq 0x26926
leaq 0x4cadf(%rip), %rsi # 0x116539
leaq 0x4cade(%rip), %rcx # 0x11653f
leaq 0x20(%rsp), %rdi
movq %rsp, %rdx
callq 0xcf3aa
movb $0x1, %bpl
leaq 0x20(%rsp), %rdx
movq %rbx, %rdi
movl $0x193, %esi # imm = 0x193
movq %r14, %rcx
callq 0x8dfa2
xorl %ebp, %ebp
leaq 0x8a689(%rip), %rsi # 0x154118
leaq -0x3dc3a(%rip), %rdx # 0x8be5c
movq %rbx, %rdi
callq 0x1e5b0
movq %rax, %r14
leaq 0x30(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0xc9abc
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x1dc50
movq (%rsp), %rdi
cmpq %r12, %rdi
je 0xc9b07
movq 0x10(%rsp), %rsi
jmp 0xc9aff
movq %rax, %r14
movq (%rsp), %rdi
cmpq %r12, %rdi
je 0xc9b11
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x1dc50
jmp 0xc9b11
jmp 0xc9b0e
movq %rax, %r14
leaq 0x30(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0xc9b07
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x1dc50
testb %bpl, %bpl
jne 0xc9b11
jmp 0xc9b19
movq %rax, %r14
movq %rbx, %rdi
callq 0x1d8c0
movq %r14, %rdi
callq 0x1e660
nop
|
_ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE2atIRA13_KcTnNSt9enable_ifIXsr6detail32is_usable_as_basic_json_key_typeISD_T_EE5valueEiE4typeELi0EEERSD_OSJ_:
push rbp; char
push r15; int
push r14; int
push r12; int
push rbx; char
sub rsp, 40h
mov r14, rdi
cmp byte ptr [rdi], 1
jnz short loc_C99C7
mov r15, rsi
mov r12, [r14+8]
mov rbx, [r12]
mov rax, [r12+8]
cmp rbx, rax
jz short loc_C99B1
loc_C9987:
mov rdi, rbx
mov rsi, r15
call __ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE7compareEPKc; std::string::compare(char const*)
test eax, eax
jz short loc_C99A6
add rbx, 30h ; '0'
mov rax, [r12+8]
cmp rbx, rax
jnz short loc_C9987
jmp short loc_C99A9
loc_C99A6:
mov rax, rbx
loc_C99A9:
mov rcx, [r14+8]
mov rbx, [rcx+8]
loc_C99B1:
cmp rax, rbx
jz short loc_C9A25
add rax, 20h ; ' '
add rsp, 40h
pop rbx
pop r12
pop r14
pop r15
pop rbp
retn
loc_C99C7:
mov edi, 20h ; ' '; thrown_size
call ___cxa_allocate_exception
mov rbx, rax
mov rdi, r14
call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE9type_nameEv; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::type_name(void)
mov rdx, rsp
mov [rdx], rax
lea rsi, aCannotUseAtWit; "cannot use at() with "
lea rdi, [rsp+68h+var_48]
call _ZN8nlohmann16json_abi_v3_11_36detail6concatINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEJRA22_KcPS9_EEET_DpOT0_; nlohmann::json_abi_v3_11_3::detail::concat<std::string,char const(&)[22],char const*>(char const(&)[22],char const* &&)
mov bpl, 1
lea rdx, [rsp+68h+var_48]
mov rdi, rbx; this
mov esi, 130h; int
mov rcx, r14
call _ZN8nlohmann16json_abi_v3_11_36detail10type_error6createIPNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SJ_
xor ebp, ebp
lea rsi, _ZTIN8nlohmann16json_abi_v3_11_36detail10type_errorE; lptinfo
lea rdx, _ZN8nlohmann16json_abi_v3_11_36detail9exceptionD2Ev; void (*)(void *)
mov rdi, rbx; void *
call ___cxa_throw
jmp short loc_C9A9E
loc_C9A25:
mov edi, 20h ; ' '; thrown_size
call ___cxa_allocate_exception
mov rbx, rax
lea r12, [rsp+68h+var_58]
mov [r12-10h], r12
mov rdi, r15
call _strlen
lea rdx, [rax+r15]
mov rdi, rsp
mov rsi, r15
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, aKey; "key '"
lea rcx, aNotFound; "' not found"
lea rdi, [rsp+68h+var_48]
mov rdx, rsp
call _ZN8nlohmann16json_abi_v3_11_36detail6concatINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEJRA6_KcS8_RA12_S9_EEET_DpOT0_; nlohmann::json_abi_v3_11_3::detail::concat<std::string,char const(&)[6],std::string,char const(&)[12]>(char const(&)[6],std::string,char const(&)[12] &&)
mov bpl, 1
lea rdx, [rsp+68h+var_48]
mov rdi, rbx; this
mov esi, 193h; int
mov rcx, r14
call _ZN8nlohmann16json_abi_v3_11_36detail12out_of_range6createIPNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SJ_
xor ebp, ebp
lea rsi, _ZTIN8nlohmann16json_abi_v3_11_36detail12out_of_rangeE; lptinfo
lea rdx, _ZN8nlohmann16json_abi_v3_11_36detail9exceptionD2Ev; void (*)(void *)
mov rdi, rbx; void *
call ___cxa_throw
loc_C9A9E:
mov r14, rax
lea rax, [rsp+68h+var_38]
mov rdi, [rax-10h]; void *
cmp rdi, rax
jz short loc_C9ABC
mov rsi, [rsp+68h+var_38]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_C9ABC:
mov rdi, [rsp+68h+var_68]
cmp rdi, r12
jz short loc_C9B07
mov rsi, [rsp+68h+var_58]
jmp short loc_C9AFF
mov r14, rax
mov rdi, [rsp+68h+var_68]; void *
cmp rdi, r12
jz short loc_C9B11
mov rsi, [rsp+68h+var_58]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
jmp short loc_C9B11
jmp short loc_C9B0E
mov r14, rax
lea rax, [rsp+68h+var_38]
mov rdi, [rax-10h]; void *
cmp rdi, rax
jz short loc_C9B07
mov rsi, [rsp+68h+var_38]
loc_C9AFF:
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_C9B07:
test bpl, bpl
jnz short loc_C9B11
jmp short loc_C9B19
loc_C9B0E:
mov r14, rax
loc_C9B11:
mov rdi, rbx; void *
call ___cxa_free_exception
loc_C9B19:
mov rdi, r14
call __Unwind_Resume
|
long long ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE2atIRA13_KcTnNSt9enable_ifIXsr6detail32is_usable_as_basic_json_key_typeISD_T_EE5valueEiE4typeELi0EEERSD_OSJ_(
long long a1,
_BYTE *a2)
{
long long *v2; // r12
long long v3; // rbx
long long v4; // rax
nlohmann::json_abi_v3_11_3::detail::exception *exception; // rbx
nlohmann::json_abi_v3_11_3::detail::exception *v7; // rbx
long long v8; // rax
void *v9[2]; // [rsp+0h] [rbp-68h] BYREF
long long v10; // [rsp+10h] [rbp-58h] BYREF
_QWORD v11[2]; // [rsp+20h] [rbp-48h] BYREF
if ( *(_BYTE *)a1 != 1 )
{
exception = (nlohmann::json_abi_v3_11_3::detail::exception *)__cxa_allocate_exception(0x20uLL);
v9[0] = (void *)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);
nlohmann::json_abi_v3_11_3::detail::concat<std::string,char const(&)[22],char const*>(v11, "cannot use at() with ");
ZN8nlohmann16json_abi_v3_11_36detail10type_error6createIPNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SJ_(
exception,
304,
v11);
__cxa_throw(
exception,
(struct type_info *)&`typeinfo for'nlohmann::json_abi_v3_11_3::detail::type_error,
(void (*)(void *))nlohmann::json_abi_v3_11_3::detail::exception::~exception);
}
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 )
goto LABEL_7;
}
v4 = v3;
LABEL_7:
v3 = *(_QWORD *)(*(_QWORD *)(a1 + 8) + 8LL);
}
if ( v4 == v3 )
{
v7 = (nlohmann::json_abi_v3_11_3::detail::exception *)__cxa_allocate_exception(0x20uLL);
v9[0] = &v10;
v8 = strlen(a2);
std::string::_M_construct<char const*>((long long)v9, a2, (long long)&a2[v8]);
nlohmann::json_abi_v3_11_3::detail::concat<std::string,char const(&)[6],std::string,char const(&)[12]>(
v11,
"key '",
v9,
"' not found");
ZN8nlohmann16json_abi_v3_11_36detail12out_of_range6createIPNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SJ_(
v7,
403,
v11);
__cxa_throw(
v7,
(struct type_info *)&`typeinfo for'nlohmann::json_abi_v3_11_3::detail::out_of_range,
(void (*)(void *))nlohmann::json_abi_v3_11_3::detail::exception::~exception);
}
return v4 + 32;
}
|
_ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE2atIRA13_KcTnNSt9enable_ifIXsr6detail32is_usable_as_basic_json_key_typeISD_T_EE5valueEiE4typeELi0EEERSD_OSJ_:
PUSH RBP
PUSH R15
PUSH R14
PUSH R12
PUSH RBX
SUB RSP,0x40
MOV R14,RDI
CMP byte ptr [RDI],0x1
JNZ 0x001c99c7
MOV R15,RSI
MOV R12,qword ptr [R14 + 0x8]
MOV RBX,qword ptr [R12]
MOV RAX,qword ptr [R12 + 0x8]
CMP RBX,RAX
JZ 0x001c99b1
LAB_001c9987:
MOV RDI,RBX
MOV RSI,R15
CALL 0x0011d2a0
TEST EAX,EAX
JZ 0x001c99a6
ADD RBX,0x30
MOV RAX,qword ptr [R12 + 0x8]
CMP RBX,RAX
JNZ 0x001c9987
JMP 0x001c99a9
LAB_001c99a6:
MOV RAX,RBX
LAB_001c99a9:
MOV RCX,qword ptr [R14 + 0x8]
MOV RBX,qword ptr [RCX + 0x8]
LAB_001c99b1:
CMP RAX,RBX
JZ 0x001c9a25
ADD RAX,0x20
ADD RSP,0x40
POP RBX
POP R12
POP R14
POP R15
POP RBP
RET
LAB_001c99c7:
MOV EDI,0x20
CALL 0x0011d5b0
MOV RBX,RAX
MOV RDI,R14
CALL 0x0018fb52
MOV RDX,RSP
MOV qword ptr [RDX],RAX
LAB_001c99e2:
LEA RSI,[0x216509]
LEA RDI,[RSP + 0x20]
CALL 0x001cedcd
MOV BPL,0x1
LAB_001c99f6:
LEA RDX,[RSP + 0x20]
MOV RDI,RBX
MOV ESI,0x130
MOV RCX,R14
CALL 0x0018f8fa
XOR EBP,EBP
LEA RSI,[0x254198]
LEA RDX,[0x18be5c]
MOV RDI,RBX
CALL 0x0011e5b0
LAB_001c9a25:
MOV EDI,0x20
CALL 0x0011d5b0
MOV RBX,RAX
LEA R12,[RSP + 0x10]
MOV qword ptr [R12 + -0x10],R12
MOV RDI,R15
CALL 0x0011d4f0
LEA RDX,[RAX + R15*0x1]
LAB_001c9a48:
MOV RDI,RSP
MOV RSI,R15
CALL 0x00126926
LAB_001c9a53:
LEA RSI,[0x216539]
LEA RCX,[0x21653f]
LEA RDI,[RSP + 0x20]
MOV RDX,RSP
CALL 0x001cf3aa
MOV BPL,0x1
LAB_001c9a71:
LEA RDX,[RSP + 0x20]
MOV RDI,RBX
MOV ESI,0x193
MOV RCX,R14
CALL 0x0018dfa2
XOR EBP,EBP
LEA RSI,[0x254118]
LEA RDX,[0x18be5c]
MOV RDI,RBX
CALL 0x0011e5b0
|
char * _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE2atIRA13_KcTnNSt9enable_ifIXsr6detail32is_usable_as_basic_json_key_typeISD_T_EE5valueEiE4typeELi0EEERSD_OSJ_
(basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
*param_1,char *param_2)
{
long *plVar1;
int iVar2;
char *pcVar3;
int8 uVar4;
size_t sVar5;
char *pcVar6;
char *local_68 [2];
char local_58 [16];
detail local_48 [32];
if (*param_1 !=
(basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,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) {
uVar4 = __cxa_allocate_exception(0x20);
local_68[0] = (char *)nlohmann::json_abi_v3_11_3::
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::type_name(param_1);
/* try { // try from 001c99e2 to 001c99f2 has its CatchHandler @ 001c9b0e */
nlohmann::json_abi_v3_11_3::detail::concat<std::__cxx11::string,char_const(&)[22],char_const*>
(local_48,"cannot use at() with ",local_68);
/* try { // try from 001c99f6 to 001c9a22 has its CatchHandler @ 001c9ae9 */
_ZN8nlohmann16json_abi_v3_11_36detail10type_error6createIPNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SJ_
(uVar4,0x130,local_48,param_1);
/* WARNING: Subroutine does not return */
__cxa_throw(uVar4,&nlohmann::json_abi_v3_11_3::detail::type_error::typeinfo,
nlohmann::json_abi_v3_11_3::detail::exception::~exception);
}
plVar1 = *(long **)(param_1 + 8);
pcVar6 = (char *)*plVar1;
pcVar3 = (char *)plVar1[1];
if (pcVar6 != pcVar3) {
do {
pcVar3 = pcVar6;
iVar2 = std::__cxx11::string::compare(pcVar3);
if (iVar2 == 0) break;
pcVar6 = pcVar3 + 0x30;
pcVar3 = (char *)plVar1[1];
} while (pcVar6 != pcVar3);
pcVar6 = *(char **)(*(long *)(param_1 + 8) + 8);
}
if (pcVar3 == pcVar6) {
uVar4 = __cxa_allocate_exception(0x20);
local_68[0] = local_58;
sVar5 = strlen(param_2);
/* try { // try from 001c9a48 to 001c9a52 has its CatchHandler @ 001c9ae7 */
std::__cxx11::string::_M_construct<char_const*>(local_68,param_2,param_2 + sVar5);
/* try { // try from 001c9a53 to 001c9a6d has its CatchHandler @ 001c9acc */
nlohmann::json_abi_v3_11_3::detail::
concat<std::__cxx11::string,char_const(&)[6],std::__cxx11::string,char_const(&)[12]>
(local_48,"key \'",(string *)local_68,"\' not found");
/* try { // try from 001c9a71 to 001c9a9d has its CatchHandler @ 001c9a9e */
_ZN8nlohmann16json_abi_v3_11_36detail12out_of_range6createIPNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SJ_
(uVar4,0x193,local_48,param_1);
/* WARNING: Subroutine does not return */
__cxa_throw(uVar4,&nlohmann::json_abi_v3_11_3::detail::out_of_range::typeinfo,
nlohmann::json_abi_v3_11_3::detail::exception::~exception);
}
return pcVar3 + 0x20;
}
|
|
58,024
|
svc_tasks_schedule
|
navaro[P]qoraal-tictactoe/build_O3/_deps/qoraal-src/src/svc/svc_tasks.c
|
int32_t
svc_tasks_schedule (SVC_TASKS_T* task, SVC_TASKS_CALLBACK_T callback, uintptr_t parm, uint16_t prio, uint32_t ticks)
{
SVC_TASKS_T* previous ;
SVC_TASKS_T* start ;
if (ticks >= (((uint32_t)-1) / 2)) {
DBG_MESSAGE_SVC_TASKS (DBG_MESSAGE_SEVERITY_WARNING,
"SVC : : svc_tasks_schedule timeout %d out of range", ticks);
ticks = (((uint32_t)-1) / 2) - 1 ;
}
DBG_ASSERT_SVC_TASKS (ticks < ((uint32_t)-1) / 2,
"svc_tasks_schedule invalid ticks %d!!", ticks) ;
if (task->flags & SVC_TASKS_FLAGS_WAITABLE) {
p_event_t event = ((SVC_WAITABLE_TASKS_T*)task)->event ;
os_event_clear (&event, 1) ;
}
if (ticks == 0) {
return svc_tasks_add ((SVC_TASKS_T*) task, callback, parm, prio) ;
}
os_mutex_lock (&_svc_task_mutex) ;
if (svc_tasks_status(task) == SERVICE_STATUS_QUEUED) {
os_mutex_unlock (&_svc_task_mutex) ;
return E_BUSY ;
}
task->callback = callback ;
task->parm = parm ;
task->status = SERVICE_STATUS_QUEUED ;
task->prio = prio ;
task->ticks = ticks + os_sys_ticks () ;
start = (SVC_TASKS_T*)linked_head (&_svc_tasks_list) ;
previous = NULL_LLO ;
for ( ;
(start!=NULL_LLO) &&
((int32_t)(task->ticks - start->ticks) >= 0);
) {
DBG_ASSERT_SVC_TASKS (start != task,
"svc_tasks_schedule task already in list!!") ;
previous = start ;
start = (SVC_TASKS_T*)linked_next (start, OFFSETOF(SVC_TASKS_T, next));
}
if (previous == NULL_LLO) {
linked_add_head (&_svc_tasks_list, task, OFFSETOF(SVC_TASKS_T, next)) ;
_svc_tasks_list_count++ ;
os_mutex_unlock (&_svc_task_mutex) ;
if (ticks) {
os_timer_set (&_svc_tasks_virtual_timer, ticks) ;
} else {
svc_tasks_task_event(SVC_EVENTS_TASK, 0) ;
}
} else {
linked_add_next (&_svc_tasks_list, previous, task, OFFSETOF(SVC_TASKS_T, next)) ;
_svc_tasks_list_count++ ;
os_mutex_unlock (&_svc_task_mutex) ;
if (!os_timer_is_set (&_svc_tasks_virtual_timer)) {
svc_tasks_task_event(SVC_EVENTS_TASK, 0) ;
}
}
return EOK ;
}
|
O3
|
c
|
svc_tasks_schedule:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movl %r8d, %r14d
movl %ecx, %r15d
movq %rdx, %r12
movq %rsi, %r13
movq %rdi, %rbx
cmpl $0x7fffffff, %r8d # imm = 0x7FFFFFFF
jb 0x19166
leaq 0x18e3c(%rip), %rdx # 0x31f8b
movl $0x3, %edi
xorl %esi, %esi
movl %r14d, %ecx
xorl %eax, %eax
callq 0x160ad
movl $0x7ffffffe, %r14d # imm = 0x7FFFFFFE
testb $0x1, 0x12(%rbx)
je 0x19181
movq 0x28(%rbx), %rax
leaq -0x30(%rbp), %rdi
movq %rax, (%rdi)
movl $0x1, %esi
callq 0x15446
testl %r14d, %r14d
je 0x191b2
leaq 0x259c3(%rip), %rdi # 0x3eb50
callq 0x14ff0
movb 0x10(%rbx), %al
andb $0x7, %al
cmpb $0x1, %al
jne 0x191cc
leaq 0x259ae(%rip), %rdi # 0x3eb50
callq 0x15015
movl $0xfffff6fe, %r15d # imm = 0xFFFFF6FE
jmp 0x192a4
movzwl %r15w, %ecx
movq %rbx, %rdi
movq %r13, %rsi
movq %r12, %rdx
callq 0x18ffd
movl %eax, %r15d
jmp 0x192a4
movq %r13, 0x8(%rbx)
movq %r12, 0x18(%rbx)
movb $0x1, 0x10(%rbx)
movb %r15b, 0x11(%rbx)
callq 0x14d4c
addl %r14d, %eax
movl %eax, 0x20(%rbx)
movq 0x27e12(%rip), %rax # 0x41000
testq %rax, %rax
je 0x1926f
movl 0x20(%rbx), %ecx
cmpl 0x20(%rax), %ecx
js 0x19227
leaq 0x18dbe(%rip), %r15 # 0x31fc0
movq %rax, %r12
cmpq %rbx, %rax
jne 0x19214
movq %r15, %rdi
xorl %eax, %eax
callq 0x1433a
movq (%r12), %rax
testq %rax, %rax
je 0x1922f
movl 0x20(%rbx), %ecx
cmpl 0x20(%rax), %ecx
jns 0x19202
jmp 0x1922a
xorl %r12d, %r12d
testq %r12, %r12
je 0x1926f
leaq 0x27dca(%rip), %rdi # 0x41000
xorl %r15d, %r15d
movq %r12, %rsi
movq %rbx, %rdx
xorl %ecx, %ecx
callq 0x19f25
incl 0x27ef4(%rip) # 0x41140
leaq 0x258fd(%rip), %rdi # 0x3eb50
callq 0x15015
leaq 0x258e1(%rip), %rdi # 0x3eb40
callq 0x15a92
testl %eax, %eax
jne 0x192a4
callq 0x189d0
jmp 0x192a4
leaq 0x27d8a(%rip), %rdi # 0x41000
xorl %r15d, %r15d
movq %rbx, %rsi
xorl %edx, %edx
callq 0x19de4
incl 0x27eb7(%rip) # 0x41140
leaq 0x258c0(%rip), %rdi # 0x3eb50
callq 0x15015
leaq 0x258a4(%rip), %rdi # 0x3eb40
movl %r14d, %esi
callq 0x15983
movl %r15d, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
|
svc_tasks_schedule:
push rbp
mov rbp, rsp
push r15
push r14
push r13
push r12
push rbx
push rax
mov r14d, r8d
mov r15d, ecx
mov r12, rdx
mov r13, rsi
mov rbx, rdi
cmp r8d, 7FFFFFFFh
jb short loc_19166
lea rdx, aSvcSvcTasksSch; "SVC : : svc_tasks_schedule timeout %d"...
mov edi, 3
xor esi, esi
mov ecx, r14d
xor eax, eax
call svc_logger_type_log
mov r14d, 7FFFFFFEh
loc_19166:
test byte ptr [rbx+12h], 1
jz short loc_19181
mov rax, [rbx+28h]
lea rdi, [rbp+var_30]
mov [rdi], rax
mov esi, 1
call os_event_clear
loc_19181:
test r14d, r14d
jz short loc_191B2
lea rdi, _svc_task_mutex
call os_mutex_lock
mov al, [rbx+10h]
and al, 7
cmp al, 1
jnz short loc_191CC
lea rdi, _svc_task_mutex
call os_mutex_unlock
mov r15d, 0FFFFF6FEh
jmp loc_192A4
loc_191B2:
movzx ecx, r15w
mov rdi, rbx
mov rsi, r13
mov rdx, r12
call svc_tasks_add
mov r15d, eax
jmp loc_192A4
loc_191CC:
mov [rbx+8], r13
mov [rbx+18h], r12
mov byte ptr [rbx+10h], 1
mov [rbx+11h], r15b
call os_sys_ticks
add eax, r14d
mov [rbx+20h], eax
mov rax, cs:_svc_tasks_list
test rax, rax
jz short loc_1926F
mov ecx, [rbx+20h]
cmp ecx, [rax+20h]
js short loc_19227
lea r15, aSvcTasksSchedu; "svc_tasks_schedule task already in list"...
loc_19202:
mov r12, rax
cmp rax, rbx
jnz short loc_19214
mov rdi, r15
xor eax, eax
call debug_assert
loc_19214:
mov rax, [r12]
test rax, rax
jz short loc_1922F
mov ecx, [rbx+20h]
cmp ecx, [rax+20h]
jns short loc_19202
jmp short loc_1922A
loc_19227:
xor r12d, r12d
loc_1922A:
test r12, r12
jz short loc_1926F
loc_1922F:
lea rdi, _svc_tasks_list
xor r15d, r15d
mov rsi, r12
mov rdx, rbx
xor ecx, ecx
call linked_add_next
inc cs:_svc_tasks_list_count
lea rdi, _svc_task_mutex
call os_mutex_unlock
lea rdi, _svc_tasks_virtual_timer
call os_timer_is_set
test eax, eax
jnz short loc_192A4
call svc_tasks_task_event
jmp short loc_192A4
loc_1926F:
lea rdi, _svc_tasks_list
xor r15d, r15d
mov rsi, rbx
xor edx, edx
call linked_add_head
inc cs:_svc_tasks_list_count
lea rdi, _svc_task_mutex
call os_mutex_unlock
lea rdi, _svc_tasks_virtual_timer
mov esi, r14d
call os_timer_set
loc_192A4:
mov eax, r15d
add rsp, 8
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
|
long long svc_tasks_schedule(
long long a1,
long long a2,
long long a3,
char 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; // rax
unsigned int v15; // r14d
long long v18; // r13
unsigned int v19; // r15d
long long v20; // rdx
long long v21; // r8
long long v22; // r9
__m128 v23; // xmm4
__m128 v24; // xmm5
long long v25; // rax
long long v26; // rcx
long long *v27; // r12
double v28; // xmm4_8
double v29; // xmm5_8
long long v31[6]; // [rsp+0h] [rbp-30h] BYREF
v31[0] = v14;
v15 = a5;
v18 = a2;
if ( (unsigned int)a5 >= 0x7FFFFFFF )
{
a2 = 0LL;
svc_logger_type_log(
3LL,
0,
(long long)aSvcSvcTasksSch,
(unsigned int)a5,
a5,
a6,
a7,
a8,
a9,
a10,
a11,
a12,
a13,
a14,
v31[0]);
v15 = 2147483646;
}
if ( (*(_BYTE *)(a1 + 18) & 1) != 0 )
{
v31[0] = *(_QWORD *)(a1 + 40);
a2 = 1LL;
os_event_clear(v31, 1);
}
if ( !v15 )
return (unsigned int)svc_tasks_add(a1, v18, a3, a4);
os_mutex_lock((long long *)&svc_task_mutex);
if ( (*(_BYTE *)(a1 + 16) & 7) == 1 )
{
os_mutex_unlock((long long *)&svc_task_mutex);
return (unsigned int)-2306;
}
*(_QWORD *)(a1 + 8) = v18;
*(_QWORD *)(a1 + 24) = a3;
*(_BYTE *)(a1 + 16) = 1;
*(_BYTE *)(a1 + 17) = a4;
*(_DWORD *)(a1 + 32) = v15 + os_sys_ticks();
v25 = svc_tasks_list;
if ( !svc_tasks_list )
goto LABEL_20;
v26 = *(unsigned int *)(a1 + 32);
if ( (int)v26 - *(_DWORD *)(svc_tasks_list + 32) < 0 )
{
v27 = 0LL;
LABEL_17:
if ( v27 )
goto LABEL_18;
LABEL_20:
v19 = 0;
linked_add_head(&svc_tasks_list, a1, 0LL);
++svc_tasks_list_count;
os_mutex_unlock((long long *)&svc_task_mutex);
os_timer_set((long long *)&svc_tasks_virtual_timer, v15);
return v19;
}
while ( 1 )
{
v27 = (long long *)v25;
if ( v25 == a1 )
debug_assert((long long)aSvcTasksSchedu, a2, v20, v26, v21, v22, a7, a8, a9, a10, v23, v24, a13, a14, v31[0]);
v25 = *v27;
if ( !*v27 )
break;
v26 = *(unsigned int *)(a1 + 32);
if ( (int)v26 - *(_DWORD *)(v25 + 32) < 0 )
goto LABEL_17;
}
LABEL_18:
v19 = 0;
linked_add_next(&svc_tasks_list, v27, a1, 0LL);
++svc_tasks_list_count;
os_mutex_unlock((long long *)&svc_task_mutex);
if ( !os_timer_is_set((long long)&svc_tasks_virtual_timer) )
svc_tasks_task_event(a7, a8, a9, a10, v28, v29, a13, a14);
return v19;
}
|
svc_tasks_schedule:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
PUSH RAX
MOV R14D,R8D
MOV R15D,ECX
MOV R12,RDX
MOV R13,RSI
MOV RBX,RDI
CMP R8D,0x7fffffff
JC 0x00119166
LEA RDX,[0x131f8b]
MOV EDI,0x3
XOR ESI,ESI
MOV ECX,R14D
XOR EAX,EAX
CALL 0x001160ad
MOV R14D,0x7ffffffe
LAB_00119166:
TEST byte ptr [RBX + 0x12],0x1
JZ 0x00119181
MOV RAX,qword ptr [RBX + 0x28]
LEA RDI,[RBP + -0x30]
MOV qword ptr [RDI],RAX
MOV ESI,0x1
CALL 0x00115446
LAB_00119181:
TEST R14D,R14D
JZ 0x001191b2
LEA RDI,[0x13eb50]
CALL 0x00114ff0
MOV AL,byte ptr [RBX + 0x10]
AND AL,0x7
CMP AL,0x1
JNZ 0x001191cc
LEA RDI,[0x13eb50]
CALL 0x00115015
MOV R15D,0xfffff6fe
JMP 0x001192a4
LAB_001191b2:
MOVZX ECX,R15W
MOV RDI,RBX
MOV RSI,R13
MOV RDX,R12
CALL 0x00118ffd
MOV R15D,EAX
JMP 0x001192a4
LAB_001191cc:
MOV qword ptr [RBX + 0x8],R13
MOV qword ptr [RBX + 0x18],R12
MOV byte ptr [RBX + 0x10],0x1
MOV byte ptr [RBX + 0x11],R15B
CALL 0x00114d4c
ADD EAX,R14D
MOV dword ptr [RBX + 0x20],EAX
MOV RAX,qword ptr [0x00141000]
TEST RAX,RAX
JZ 0x0011926f
MOV ECX,dword ptr [RBX + 0x20]
CMP ECX,dword ptr [RAX + 0x20]
JS 0x00119227
LEA R15,[0x131fc0]
LAB_00119202:
MOV R12,RAX
CMP RAX,RBX
JNZ 0x00119214
MOV RDI,R15
XOR EAX,EAX
CALL 0x0011433a
LAB_00119214:
MOV RAX,qword ptr [R12]
TEST RAX,RAX
JZ 0x0011922f
MOV ECX,dword ptr [RBX + 0x20]
CMP ECX,dword ptr [RAX + 0x20]
JNS 0x00119202
JMP 0x0011922a
LAB_00119227:
XOR R12D,R12D
LAB_0011922a:
TEST R12,R12
JZ 0x0011926f
LAB_0011922f:
LEA RDI,[0x141000]
XOR R15D,R15D
MOV RSI,R12
MOV RDX,RBX
XOR ECX,ECX
CALL 0x00119f25
INC dword ptr [0x00141140]
LEA RDI,[0x13eb50]
CALL 0x00115015
LEA RDI,[0x13eb40]
CALL 0x00115a92
TEST EAX,EAX
JNZ 0x001192a4
CALL 0x001189d0
JMP 0x001192a4
LAB_0011926f:
LEA RDI,[0x141000]
XOR R15D,R15D
MOV RSI,RBX
XOR EDX,EDX
CALL 0x00119de4
INC dword ptr [0x00141140]
LEA RDI,[0x13eb50]
CALL 0x00115015
LEA RDI,[0x13eb40]
MOV ESI,R14D
CALL 0x00115983
LAB_001192a4:
MOV EAX,R15D
ADD RSP,0x8
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
|
int4
svc_tasks_schedule(long *param_1,long param_2,long param_3,int2 param_4,uint param_5)
{
long *plVar1;
int4 uVar2;
int iVar3;
long in_RAX;
long *plVar4;
long local_38;
local_38 = in_RAX;
if (0x7ffffffe < param_5) {
svc_logger_type_log(3,0,s_SVC_____svc_tasks_schedule_timeo_00131f8b,param_5);
param_5 = 0x7ffffffe;
}
if ((*(byte *)((long)param_1 + 0x12) & 1) != 0) {
local_38 = param_1[5];
os_event_clear(&local_38,1);
}
if (param_5 == 0) {
uVar2 = svc_tasks_add(param_1,param_2,param_3,param_4);
}
else {
os_mutex_lock(&_svc_task_mutex);
if ((*(byte *)(param_1 + 2) & 7) == 1) {
os_mutex_unlock(&_svc_task_mutex);
uVar2 = 0xfffff6fe;
}
else {
param_1[1] = param_2;
param_1[3] = param_3;
*(int1 *)(param_1 + 2) = 1;
*(char *)((long)param_1 + 0x11) = (char)param_4;
iVar3 = os_sys_ticks();
*(uint *)(param_1 + 4) = iVar3 + param_5;
if (_svc_tasks_list != (long *)0x0) {
plVar1 = _svc_tasks_list;
if ((int)param_1[4] - (int)_svc_tasks_list[4] < 0) {
plVar4 = (long *)0x0;
}
else {
do {
plVar4 = plVar1;
if (plVar4 == param_1) {
debug_assert(s_svc_tasks_schedule_task_already_i_00131fc0);
}
plVar1 = (long *)*plVar4;
if (plVar1 == (long *)0x0) goto LAB_0011922f;
} while (-1 < (int)param_1[4] - *(int *)(plVar1 + 4));
}
if (plVar4 != (long *)0x0) {
LAB_0011922f:
linked_add_next(&_svc_tasks_list,plVar4,param_1,0);
_svc_tasks_list_count = _svc_tasks_list_count + 1;
os_mutex_unlock(&_svc_task_mutex);
iVar3 = os_timer_is_set(&_svc_tasks_virtual_timer);
if (iVar3 != 0) {
return 0;
}
svc_tasks_task_event();
return 0;
}
}
uVar2 = 0;
linked_add_head(&_svc_tasks_list,param_1,0);
_svc_tasks_list_count = _svc_tasks_list_count + 1;
os_mutex_unlock(&_svc_task_mutex);
os_timer_set(&_svc_tasks_virtual_timer,param_5);
}
}
return uVar2;
}
|
|
58,025
|
nlohmann::json_abi_v3_11_3::detail::dtoa_impl::grisu2_round(char*, int, unsigned long, unsigned long, unsigned long, unsigned long)
|
llama.cpp/common/./json.hpp
|
inline void grisu2_round(char* buf, int len, std::uint64_t dist, std::uint64_t delta,
std::uint64_t rest, std::uint64_t ten_k)
{
JSON_ASSERT(len >= 1);
JSON_ASSERT(dist <= delta);
JSON_ASSERT(rest <= delta);
JSON_ASSERT(ten_k > 0);
// <--------------------------- delta ---->
// <---- dist --------->
// --------------[------------------+-------------------]--------------
// M- w M+
//
// ten_k
// <------>
// <---- rest ---->
// --------------[------------------+----+--------------]--------------
// w V
// = buf * 10^k
//
// ten_k represents a unit-in-the-last-place in the decimal representation
// stored in buf.
// Decrement buf by ten_k while this takes buf closer to w.
// The tests are written in this order to avoid overflow in unsigned
// integer arithmetic.
while (rest < dist
&& delta - rest >= ten_k
&& (rest + ten_k < dist || dist - rest > rest + ten_k - dist))
{
JSON_ASSERT(buf[len - 1] != '0');
buf[len - 1]--;
rest += ten_k;
}
}
|
O3
|
cpp
|
nlohmann::json_abi_v3_11_3::detail::dtoa_impl::grisu2_round(char*, int, unsigned long, unsigned long, unsigned long, unsigned long):
pushq %rax
testl %esi, %esi
jle 0x7c178
cmpq %rcx, %rdx
ja 0x7c194
movq %rcx, %r10
subq %r8, %r10
jb 0x7c1b0
testq %r9, %r9
je 0x7c1cc
movq %rdx, %rax
subq %r8, %rax
setbe %r11b
cmpq %r9, %r10
setb %r10b
orb %r11b, %r10b
jne 0x7c155
movl %esi, %esi
addq %r9, %r8
subq %r8, %rcx
movq %rdx, %r10
negq %r10
cmpq %rdx, %r8
jb 0x7c12b
leaq (%r10,%r8), %r11
cmpq %r11, %rax
jbe 0x7c155
movb -0x1(%rdi,%rsi), %r11b
cmpb $0x30, %r11b
je 0x7c157
decb %r11b
movb %r11b, -0x1(%rdi,%rsi)
subq %r9, %rcx
setb %r11b
cmpq %rdx, %r8
jae 0x7c155
subq %r9, %rax
addq %r9, %r8
testb %r11b, %r11b
je 0x7c11d
popq %rax
retq
leaq 0xf6c77(%rip), %rdi # 0x172dd5
leaq 0xf6cad(%rip), %rdx # 0x172e12
leaq 0xf8a90(%rip), %rcx # 0x174bfc
movl $0x444d, %esi # imm = 0x444D
xorl %eax, %eax
callq 0x26090
leaq 0xf6c56(%rip), %rdi # 0x172dd5
leaq 0xf6c8c(%rip), %rdx # 0x172e12
leaq 0xf8a40(%rip), %rcx # 0x174bcd
movl $0x4431, %esi # imm = 0x4431
jmp 0x7c171
leaq 0xf6c3a(%rip), %rdi # 0x172dd5
leaq 0xf6c70(%rip), %rdx # 0x172e12
leaq 0xf8a2d(%rip), %rcx # 0x174bd6
movl $0x4432, %esi # imm = 0x4432
jmp 0x7c171
leaq 0xf6c1e(%rip), %rdi # 0x172dd5
leaq 0xf6c54(%rip), %rdx # 0x172e12
leaq 0xf8a1f(%rip), %rcx # 0x174be4
movl $0x4433, %esi # imm = 0x4433
jmp 0x7c171
leaq 0xf6c02(%rip), %rdi # 0x172dd5
leaq 0xf6c38(%rip), %rdx # 0x172e12
leaq 0xf8a11(%rip), %rcx # 0x174bf2
movl $0x4434, %esi # imm = 0x4434
jmp 0x7c171
|
_ZN8nlohmann16json_abi_v3_11_36detail9dtoa_impl12grisu2_roundEPcimmmm:
push rax
test esi, esi
jle loc_7C178
cmp rdx, rcx
ja loc_7C194
mov r10, rcx
sub r10, r8
jb loc_7C1B0
test r9, r9
jz loc_7C1CC
mov rax, rdx
sub rax, r8
setbe r11b
cmp r10, r9
setb r10b
or r10b, r11b
jnz short loc_7C155
mov esi, esi
add r8, r9
sub rcx, r8
mov r10, rdx
neg r10
loc_7C11D:
cmp r8, rdx
jb short loc_7C12B
lea r11, [r10+r8]
cmp rax, r11
jbe short loc_7C155
loc_7C12B:
mov r11b, [rdi+rsi-1]
cmp r11b, 30h ; '0'
jz short loc_7C157
dec r11b
mov [rdi+rsi-1], r11b
sub rcx, r9
setb r11b
cmp r8, rdx
jnb short loc_7C155
sub rax, r9
add r8, r9
test r11b, r11b
jz short loc_7C11D
loc_7C155:
pop rax
retn
loc_7C157:
lea rdi, aWorkspaceLlm4b_0; "/workspace/llm4binary/github2025/llama."...
lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed"
lea rcx, aBufLen10; "buf[len - 1] != '0'"
mov esi, 444Dh
loc_7C171:
xor eax, eax
call _ggml_abort
loc_7C178:
lea rdi, aWorkspaceLlm4b_0; "/workspace/llm4binary/github2025/llama."...
lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed"
lea rcx, aLen1; "len >= 1"
mov esi, 4431h
jmp short loc_7C171
loc_7C194:
lea rdi, aWorkspaceLlm4b_0; "/workspace/llm4binary/github2025/llama."...
lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed"
lea rcx, aDistDelta; "dist <= delta"
mov esi, 4432h
jmp short loc_7C171
loc_7C1B0:
lea rdi, aWorkspaceLlm4b_0; "/workspace/llm4binary/github2025/llama."...
lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed"
lea rcx, aRestDelta; "rest <= delta"
mov esi, 4433h
jmp short loc_7C171
loc_7C1CC:
lea rdi, aWorkspaceLlm4b_0; "/workspace/llm4binary/github2025/llama."...
lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed"
lea rcx, aTenK0; "ten_k > 0"
mov esi, 4434h
jmp short loc_7C171
|
void __spoils<rdx,rcx,r8,r9,r10,r11,xmm0,xmm4,xmm5> nlohmann::json_abi_v3_11_3::detail::dtoa_impl::grisu2_round(
nlohmann::json_abi_v3_11_3::detail::dtoa_impl *this,
char *a2,
unsigned long long a3,
unsigned long long a4,
unsigned long long a5,
unsigned long long a6)
{
unsigned long long v6; // rax
unsigned long long v7; // r8
unsigned long long v8; // rcx
char v9; // r11
bool v10; // cf
if ( (int)a2 <= 0 )
goto LABEL_14;
if ( a3 > a4 )
{
ggml_abort(
"/workspace/llm4binary/github2025/llama.cpp/common/./json.hpp",
17458LL,
"GGML_ASSERT(%s) failed",
"dist <= delta");
goto LABEL_14;
}
if ( a4 < a5 )
{
ggml_abort(
"/workspace/llm4binary/github2025/llama.cpp/common/./json.hpp",
17459LL,
"GGML_ASSERT(%s) failed",
"rest <= delta");
goto LABEL_14;
}
if ( !a6 )
{
ggml_abort(
"/workspace/llm4binary/github2025/llama.cpp/common/./json.hpp",
17460LL,
"GGML_ASSERT(%s) failed",
"ten_k > 0");
goto LABEL_14;
}
v6 = a3 - a5;
if ( a3 > a5 && a4 - a5 >= a6 )
{
v7 = a6 + a5;
v8 = a4 - v7;
while ( 1 )
{
if ( v7 >= a3 && v6 <= v7 - a3 )
return;
v9 = *((_BYTE *)this + (unsigned int)a2 - 1);
if ( v9 == 48 )
break;
*((_BYTE *)this + (unsigned int)a2 - 1) = v9 - 1;
v10 = v8 < a6;
v8 -= a6;
if ( v7 < a3 )
{
v6 -= a6;
v7 += a6;
if ( !v10 )
continue;
}
return;
}
ggml_abort(
"/workspace/llm4binary/github2025/llama.cpp/common/./json.hpp",
17485LL,
"GGML_ASSERT(%s) failed",
"buf[len - 1] != '0'");
while ( 1 )
LABEL_14:
ggml_abort(
"/workspace/llm4binary/github2025/llama.cpp/common/./json.hpp",
17457LL,
"GGML_ASSERT(%s) failed",
"len >= 1");
}
}
|
grisu2_round:
PUSH RAX
TEST ESI,ESI
JLE 0x0017c178
CMP RDX,RCX
JA 0x0017c194
MOV R10,RCX
SUB R10,R8
JC 0x0017c1b0
TEST R9,R9
JZ 0x0017c1cc
MOV RAX,RDX
SUB RAX,R8
SETBE R11B
CMP R10,R9
SETC R10B
OR R10B,R11B
JNZ 0x0017c155
MOV ESI,ESI
ADD R8,R9
SUB RCX,R8
MOV R10,RDX
NEG R10
LAB_0017c11d:
CMP R8,RDX
JC 0x0017c12b
LEA R11,[R10 + R8*0x1]
CMP RAX,R11
JBE 0x0017c155
LAB_0017c12b:
MOV R11B,byte ptr [RDI + RSI*0x1 + -0x1]
CMP R11B,0x30
JZ 0x0017c157
DEC R11B
MOV byte ptr [RDI + RSI*0x1 + -0x1],R11B
SUB RCX,R9
SETC R11B
CMP R8,RDX
JNC 0x0017c155
SUB RAX,R9
ADD R8,R9
TEST R11B,R11B
JZ 0x0017c11d
LAB_0017c155:
POP RAX
RET
LAB_0017c157:
LEA RDI,[0x272dd5]
LEA RDX,[0x272e12]
LEA RCX,[0x274bfc]
MOV ESI,0x444d
LAB_0017c171:
XOR EAX,EAX
CALL 0x00126090
LAB_0017c178:
LEA RDI,[0x272dd5]
LEA RDX,[0x272e12]
LEA RCX,[0x274bcd]
MOV ESI,0x4431
JMP 0x0017c171
LAB_0017c194:
LEA RDI,[0x272dd5]
LEA RDX,[0x272e12]
LEA RCX,[0x274bd6]
MOV ESI,0x4432
JMP 0x0017c171
LAB_0017c1b0:
LEA RDI,[0x272dd5]
LEA RDX,[0x272e12]
LEA RCX,[0x274be4]
MOV ESI,0x4433
JMP 0x0017c171
LAB_0017c1cc:
LEA RDI,[0x272dd5]
LEA RDX,[0x272e12]
LEA RCX,[0x274bf2]
MOV ESI,0x4434
JMP 0x0017c171
|
/* nlohmann::json_abi_v3_11_3::detail::dtoa_impl::grisu2_round(char*, int, unsigned long, unsigned
long, unsigned long, unsigned long) */
int8
nlohmann::json_abi_v3_11_3::detail::dtoa_impl::grisu2_round
(char *param_1,int param_2,ulong param_3,ulong param_4,ulong param_5,ulong param_6)
{
int8 in_RAX;
ulong uVar1;
ulong uVar2;
char *pcVar3;
int8 uVar4;
ulong uVar5;
bool bVar6;
if (param_2 < 1) {
pcVar3 = "len >= 1";
uVar4 = 0x4431;
}
else if (param_4 < param_3) {
pcVar3 = "dist <= delta";
uVar4 = 0x4432;
}
else if (param_4 < param_5) {
pcVar3 = "rest <= delta";
uVar4 = 0x4433;
}
else {
if (param_6 != 0) {
uVar1 = param_3 - param_5;
if (param_6 <= param_4 - param_5 && (param_5 <= param_3 && uVar1 != 0)) {
uVar5 = param_5 + param_6;
uVar2 = param_4 - uVar5;
do {
if ((param_3 <= uVar5) && (uVar1 <= uVar5 - param_3)) {
return in_RAX;
}
if (param_1[(ulong)(uint)param_2 - 1] == '0') {
pcVar3 = "buf[len - 1] != \'0\'";
uVar4 = 0x444d;
goto LAB_0017c171;
}
param_1[(ulong)(uint)param_2 - 1] = param_1[(ulong)(uint)param_2 - 1] + -1;
bVar6 = param_6 <= uVar2;
uVar2 = uVar2 - param_6;
if (param_3 <= uVar5) {
return in_RAX;
}
uVar1 = uVar1 - param_6;
uVar5 = uVar5 + param_6;
} while (bVar6);
}
return in_RAX;
}
pcVar3 = "ten_k > 0";
uVar4 = 0x4434;
}
LAB_0017c171:
/* WARNING: Subroutine does not return */
ggml_abort("/workspace/llm4binary/github2025/llama.cpp/common/./json.hpp",uVar4,
"GGML_ASSERT(%s) failed",pcVar3);
}
|
|
58,026
|
trnman_get_max_trid
|
eloqsql/storage/maria/trnman.c
|
TrID trnman_get_max_trid()
{
TrID id;
/* Check if trnman has been initalized */
if (short_trid_to_active_trn == NULL)
return 0;
mysql_mutex_lock(&LOCK_trn_list);
id= global_trid_generator;
mysql_mutex_unlock(&LOCK_trn_list);
return id;
}
|
O3
|
c
|
trnman_get_max_trid:
pushq %rbp
movq %rsp, %rbp
pushq %rbx
pushq %rax
cmpq $0x0, 0x3b603d(%rip) # 0x3fd170
je 0x4716c
cmpq $0x0, 0x3b6423(%rip) # 0x3fd560
jne 0x47178
leaq 0x3b63da(%rip), %rdi # 0x3fd520
callq 0x29220
movq 0x3b62fe(%rip), %rbx # 0x3fd450
movq 0x3b6407(%rip), %rdi # 0x3fd560
testq %rdi, %rdi
jne 0x4717f
leaq 0x3b63bb(%rip), %rdi # 0x3fd520
callq 0x291e0
jmp 0x4716e
xorl %ebx, %ebx
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
callq 0x2a5d1
jmp 0x4714b
leaq 0x33ee8a(%rip), %rax # 0x386010
movq (%rax), %rax
callq *0x160(%rax)
jmp 0x4715e
|
trnman_get_max_trid:
push rbp
mov rbp, rsp
push rbx
push rax
cmp cs:short_trid_to_active_trn, 0
jz short loc_4716C
cmp cs:qword_3FD560, 0
jnz short loc_47178
lea rdi, LOCK_trn_list
call _pthread_mutex_lock
loc_4714B:
mov rbx, cs:global_trid_generator
mov rdi, cs:qword_3FD560
test rdi, rdi
jnz short loc_4717F
loc_4715E:
lea rdi, LOCK_trn_list
call _pthread_mutex_unlock
jmp short loc_4716E
loc_4716C:
xor ebx, ebx
loc_4716E:
mov rax, rbx
add rsp, 8
pop rbx
pop rbp
retn
loc_47178:
call trnman_get_max_trid_cold_1
jmp short loc_4714B
loc_4717F:
lea rax, PSI_server
mov rax, [rax]
call qword ptr [rax+160h]
jmp short loc_4715E
|
long long trnman_get_max_trid(long long a1)
{
long long v1; // rbx
if ( !short_trid_to_active_trn )
return 0LL;
if ( qword_3FD560 )
trnman_get_max_trid_cold_1(a1);
else
pthread_mutex_lock(&LOCK_trn_list);
v1 = global_trid_generator;
if ( qword_3FD560 )
((void ( *)(long long))PSI_server[44])(qword_3FD560);
pthread_mutex_unlock(&LOCK_trn_list);
return v1;
}
|
trnman_get_max_trid:
PUSH RBP
MOV RBP,RSP
PUSH RBX
PUSH RAX
CMP qword ptr [0x004fd170],0x0
JZ 0x0014716c
CMP qword ptr [0x004fd560],0x0
JNZ 0x00147178
LEA RDI,[0x4fd520]
CALL 0x00129220
LAB_0014714b:
MOV RBX,qword ptr [0x004fd450]
MOV RDI,qword ptr [0x004fd560]
TEST RDI,RDI
JNZ 0x0014717f
LAB_0014715e:
LEA RDI,[0x4fd520]
CALL 0x001291e0
JMP 0x0014716e
LAB_0014716c:
XOR EBX,EBX
LAB_0014716e:
MOV RAX,RBX
ADD RSP,0x8
POP RBX
POP RBP
RET
LAB_00147178:
CALL 0x0012a5d1
JMP 0x0014714b
LAB_0014717f:
LEA RAX,[0x486010]
MOV RAX,qword ptr [RAX]
CALL qword ptr [RAX + 0x160]
JMP 0x0014715e
|
int8 trnman_get_max_trid(void)
{
int8 uVar1;
if (short_trid_to_active_trn == 0) {
uVar1 = 0;
}
else {
if (LOCK_trn_list._64_8_ == 0) {
pthread_mutex_lock((pthread_mutex_t *)LOCK_trn_list);
}
else {
trnman_get_max_trid_cold_1();
}
uVar1 = global_trid_generator;
if (LOCK_trn_list._64_8_ != 0) {
(**(code **)(PSI_server + 0x160))();
}
pthread_mutex_unlock((pthread_mutex_t *)LOCK_trn_list);
}
return uVar1;
}
|
|
58,027
|
cached_zero_hash
|
corpus-core[P]colibri-stateless/src/util/ssz_merkle.c
|
static void cached_zero_hash(int depth, uint8_t* out) {
if (depth < 0) {
memset(out, 0, 32);
return;
}
while (inited_zero_hashed < depth + 1) {
if (inited_zero_hashed == 0) {
bytes32_t zeros = {0};
sha256_merkle(bytes(zeros, 32), bytes(zeros, 32), ZERO_HASHES[inited_zero_hashed]);
}
else
sha256_merkle(bytes(ZERO_HASHES[inited_zero_hashed - 1], 32), bytes(ZERO_HASHES[inited_zero_hashed - 1], 32), ZERO_HASHES[inited_zero_hashed]);
inited_zero_hashed++;
}
memcpy(out, ZERO_HASHES[depth], 32);
}
|
O0
|
c
|
cached_zero_hash:
pushq %rbp
movq %rsp, %rbp
subq $0x70, %rsp
movl %edi, -0x4(%rbp)
movq %rsi, -0x10(%rbp)
cmpl $0x0, -0x4(%rbp)
jge 0xa34ba
movq -0x10(%rbp), %rdi
xorl %esi, %esi
movl $0x20, %edx
callq 0x231c0
jmp 0xa35eb
jmp 0xa34bc
movl 0x960de(%rip), %eax # 0x1395a0
movl -0x4(%rbp), %ecx
addl $0x1, %ecx
cmpl %ecx, %eax
jge 0xa35b7
cmpl $0x0, 0x960c9(%rip) # 0x1395a0
jne 0xa3531
leaq -0x30(%rbp), %rdi
xorl %esi, %esi
movl $0x20, %edx
callq 0x231c0
movl $0x20, -0x40(%rbp)
leaq -0x30(%rbp), %rax
movq %rax, -0x38(%rbp)
movl $0x20, -0x50(%rbp)
leaq -0x30(%rbp), %rax
movq %rax, -0x48(%rbp)
movslq 0x96092(%rip), %rax # 0x1395a0
leaq 0x9609b(%rip), %r8 # 0x1395b0
shlq $0x5, %rax
addq %rax, %r8
movl -0x40(%rbp), %edi
movq -0x38(%rbp), %rsi
movl -0x50(%rbp), %edx
movq -0x48(%rbp), %rcx
callq 0xa49e0
jmp 0xa35a3
movl $0x20, -0x60(%rbp)
movl 0x96062(%rip), %eax # 0x1395a0
subl $0x1, %eax
movslq %eax, %rcx
leaq 0x96065(%rip), %rax # 0x1395b0
shlq $0x5, %rcx
addq %rcx, %rax
movq %rax, -0x58(%rbp)
movl $0x20, -0x70(%rbp)
movl 0x9603d(%rip), %eax # 0x1395a0
subl $0x1, %eax
movslq %eax, %rcx
leaq 0x96040(%rip), %rax # 0x1395b0
shlq $0x5, %rcx
addq %rcx, %rax
movq %rax, -0x68(%rbp)
movslq 0x9601e(%rip), %rax # 0x1395a0
leaq 0x96027(%rip), %r8 # 0x1395b0
shlq $0x5, %rax
addq %rax, %r8
movl -0x60(%rbp), %edi
movq -0x58(%rbp), %rsi
movl -0x70(%rbp), %edx
movq -0x68(%rbp), %rcx
callq 0xa49e0
movl 0x95ff7(%rip), %eax # 0x1395a0
addl $0x1, %eax
movl %eax, 0x95fee(%rip) # 0x1395a0
jmp 0xa34bc
movq -0x10(%rbp), %rax
movslq -0x4(%rbp), %rdx
leaq 0x95fea(%rip), %rcx # 0x1395b0
shlq $0x5, %rdx
addq %rdx, %rcx
movq (%rcx), %rdx
movq %rdx, (%rax)
movq 0x8(%rcx), %rdx
movq %rdx, 0x8(%rax)
movq 0x10(%rcx), %rdx
movq %rdx, 0x10(%rax)
movq 0x18(%rcx), %rcx
movq %rcx, 0x18(%rax)
addq $0x70, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
|
cached_zero_hash:
push rbp
mov rbp, rsp
sub rsp, 70h
mov [rbp+var_4], edi
mov [rbp+var_10], rsi
cmp [rbp+var_4], 0
jge short loc_A34BA
mov rdi, [rbp+var_10]
xor esi, esi
mov edx, 20h ; ' '
call _memset
jmp loc_A35EB
loc_A34BA:
jmp short $+2
loc_A34BC:
mov eax, cs:inited_zero_hashed
mov ecx, [rbp+var_4]
add ecx, 1
cmp eax, ecx
jge loc_A35B7
cmp cs:inited_zero_hashed, 0
jnz short loc_A3531
lea rdi, [rbp+var_30]
xor esi, esi
mov edx, 20h ; ' '
call _memset
mov [rbp+var_40], 20h ; ' '
lea rax, [rbp+var_30]
mov [rbp+var_38], rax
mov [rbp+var_50], 20h ; ' '
lea rax, [rbp+var_30]
mov [rbp+var_48], rax
movsxd rax, cs:inited_zero_hashed
lea r8, ZERO_HASHES
shl rax, 5
add r8, rax
mov edi, [rbp+var_40]
mov rsi, [rbp+var_38]
mov edx, [rbp+var_50]
mov rcx, [rbp+var_48]
call sha256_merkle
jmp short loc_A35A3
loc_A3531:
mov [rbp+var_60], 20h ; ' '
mov eax, cs:inited_zero_hashed
sub eax, 1
movsxd rcx, eax
lea rax, ZERO_HASHES
shl rcx, 5
add rax, rcx
mov [rbp+var_58], rax
mov [rbp+var_70], 20h ; ' '
mov eax, cs:inited_zero_hashed
sub eax, 1
movsxd rcx, eax
lea rax, ZERO_HASHES
shl rcx, 5
add rax, rcx
mov [rbp+var_68], rax
movsxd rax, cs:inited_zero_hashed
lea r8, ZERO_HASHES
shl rax, 5
add r8, rax
mov edi, [rbp+var_60]
mov rsi, [rbp+var_58]
mov edx, [rbp+var_70]
mov rcx, [rbp+var_68]
call sha256_merkle
loc_A35A3:
mov eax, cs:inited_zero_hashed
add eax, 1
mov cs:inited_zero_hashed, eax
jmp loc_A34BC
loc_A35B7:
mov rax, [rbp+var_10]
movsxd rdx, [rbp+var_4]
lea rcx, ZERO_HASHES
shl rdx, 5
add rcx, rdx
mov rdx, [rcx]
mov [rax], rdx
mov rdx, [rcx+8]
mov [rax+8], rdx
mov rdx, [rcx+10h]
mov [rax+10h], rdx
mov rcx, [rcx+18h]
mov [rax+18h], rcx
loc_A35EB:
add rsp, 70h
pop rbp
retn
|
_QWORD * cached_zero_hash(int a1, _QWORD *a2)
{
_QWORD *result; // rax
long long v3; // rdx
_BYTE v4[32]; // [rsp+40h] [rbp-30h] BYREF
_QWORD *v5; // [rsp+60h] [rbp-10h]
int v6; // [rsp+6Ch] [rbp-4h]
v6 = a1;
v5 = a2;
if ( a1 < 0 )
return (_QWORD *)memset(v5, 0LL, 32LL);
while ( inited_zero_hashed < v6 + 1 )
{
if ( inited_zero_hashed )
{
sha256_merkle(
32LL,
(char *)&ZERO_HASHES + 32 * inited_zero_hashed - 32,
32LL,
(char *)&ZERO_HASHES + 32 * inited_zero_hashed - 32,
(char *)&ZERO_HASHES + 32 * inited_zero_hashed);
}
else
{
memset(v4, 0LL, sizeof(v4));
sha256_merkle(32LL, v4, 32LL, v4, (char *)&ZERO_HASHES + 32 * inited_zero_hashed);
}
++inited_zero_hashed;
}
result = v5;
v3 = 32LL * v6;
*v5 = *(_QWORD *)((char *)&ZERO_HASHES + v3);
result[1] = *(_QWORD *)((char *)&ZERO_HASHES + v3 + 8);
result[2] = *(_QWORD *)((char *)&ZERO_HASHES + v3 + 16);
result[3] = *(_QWORD *)((char *)&ZERO_HASHES + v3 + 24);
return result;
}
|
cached_zero_hash:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x70
MOV dword ptr [RBP + -0x4],EDI
MOV qword ptr [RBP + -0x10],RSI
CMP dword ptr [RBP + -0x4],0x0
JGE 0x001a34ba
MOV RDI,qword ptr [RBP + -0x10]
XOR ESI,ESI
MOV EDX,0x20
CALL 0x001231c0
JMP 0x001a35eb
LAB_001a34ba:
JMP 0x001a34bc
LAB_001a34bc:
MOV EAX,dword ptr [0x002395a0]
MOV ECX,dword ptr [RBP + -0x4]
ADD ECX,0x1
CMP EAX,ECX
JGE 0x001a35b7
CMP dword ptr [0x002395a0],0x0
JNZ 0x001a3531
LEA RDI,[RBP + -0x30]
XOR ESI,ESI
MOV EDX,0x20
CALL 0x001231c0
MOV dword ptr [RBP + -0x40],0x20
LEA RAX,[RBP + -0x30]
MOV qword ptr [RBP + -0x38],RAX
MOV dword ptr [RBP + -0x50],0x20
LEA RAX,[RBP + -0x30]
MOV qword ptr [RBP + -0x48],RAX
MOVSXD RAX,dword ptr [0x002395a0]
LEA R8,[0x2395b0]
SHL RAX,0x5
ADD R8,RAX
MOV EDI,dword ptr [RBP + -0x40]
MOV RSI,qword ptr [RBP + -0x38]
MOV EDX,dword ptr [RBP + -0x50]
MOV RCX,qword ptr [RBP + -0x48]
CALL 0x001a49e0
JMP 0x001a35a3
LAB_001a3531:
MOV dword ptr [RBP + -0x60],0x20
MOV EAX,dword ptr [0x002395a0]
SUB EAX,0x1
MOVSXD RCX,EAX
LEA RAX,[0x2395b0]
SHL RCX,0x5
ADD RAX,RCX
MOV qword ptr [RBP + -0x58],RAX
MOV dword ptr [RBP + -0x70],0x20
MOV EAX,dword ptr [0x002395a0]
SUB EAX,0x1
MOVSXD RCX,EAX
LEA RAX,[0x2395b0]
SHL RCX,0x5
ADD RAX,RCX
MOV qword ptr [RBP + -0x68],RAX
MOVSXD RAX,dword ptr [0x002395a0]
LEA R8,[0x2395b0]
SHL RAX,0x5
ADD R8,RAX
MOV EDI,dword ptr [RBP + -0x60]
MOV RSI,qword ptr [RBP + -0x58]
MOV EDX,dword ptr [RBP + -0x70]
MOV RCX,qword ptr [RBP + -0x68]
CALL 0x001a49e0
LAB_001a35a3:
MOV EAX,dword ptr [0x002395a0]
ADD EAX,0x1
MOV dword ptr [0x002395a0],EAX
JMP 0x001a34bc
LAB_001a35b7:
MOV RAX,qword ptr [RBP + -0x10]
MOVSXD RDX,dword ptr [RBP + -0x4]
LEA RCX,[0x2395b0]
SHL RDX,0x5
ADD RCX,RDX
MOV RDX,qword ptr [RCX]
MOV qword ptr [RAX],RDX
MOV RDX,qword ptr [RCX + 0x8]
MOV qword ptr [RAX + 0x8],RDX
MOV RDX,qword ptr [RCX + 0x10]
MOV qword ptr [RAX + 0x10],RDX
MOV RCX,qword ptr [RCX + 0x18]
MOV qword ptr [RAX + 0x18],RCX
LAB_001a35eb:
ADD RSP,0x70
POP RBP
RET
|
void cached_zero_hash(int param_1,int8 *param_2)
{
long lVar1;
int1 local_38 [32];
int8 *local_18;
int local_c;
local_18 = param_2;
local_c = param_1;
if (param_1 < 0) {
memset(param_2,0,0x20);
}
else {
for (; inited_zero_hashed < local_c + 1; inited_zero_hashed = inited_zero_hashed + 1) {
if (inited_zero_hashed == 0) {
memset(local_38,0,0x20);
sha256_merkle(0x20,local_38,0x20,local_38,ZERO_HASHES + (long)inited_zero_hashed * 0x20);
}
else {
sha256_merkle(0x20,ZERO_HASHES + (long)(inited_zero_hashed + -1) * 0x20,0x20,
ZERO_HASHES + (long)(inited_zero_hashed + -1) * 0x20,
ZERO_HASHES + (long)inited_zero_hashed * 0x20);
}
}
lVar1 = (long)local_c * 0x20;
*local_18 = *(int8 *)(ZERO_HASHES + lVar1);
local_18[1] = *(int8 *)(ZERO_HASHES + lVar1 + 8);
local_18[2] = *(int8 *)(ZERO_HASHES + lVar1 + 0x10);
local_18[3] = *(int8 *)(ZERO_HASHES + lVar1 + 0x18);
}
return;
}
|
|
58,028
|
set_dynamic
|
eloqsql/mysys/array.c
|
my_bool set_dynamic(DYNAMIC_ARRAY *array, const void *element, uint idx)
{
if (idx >= array->elements)
{
if (idx >= array->max_element && allocate_dynamic(array, idx))
return TRUE;
bzero((uchar*) (array->buffer+array->elements*array->size_of_element),
(idx - array->elements)*array->size_of_element);
array->elements=idx+1;
}
memcpy(array->buffer+(idx * array->size_of_element),element,
(size_t) array->size_of_element);
return FALSE;
}
|
O3
|
c
|
set_dynamic:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movl %edx, %r14d
movq %rsi, %rbx
movq %rdi, %r15
movl 0x8(%rdi), %eax
cmpl %edx, %eax
ja 0x91b1e
cmpl %r14d, 0xc(%r15)
ja 0x91afb
movq %r15, %rdi
movl %r14d, %esi
callq 0x91b41
movl %eax, %ecx
movb $0x1, %al
testb %cl, %cl
jne 0x91b36
movl 0x8(%r15), %eax
movl 0x14(%r15), %ecx
movl %r14d, %edx
subl %eax, %edx
imull %ecx, %edx
movl %ecx, %edi
imull %eax, %edi
addq (%r15), %rdi
xorl %esi, %esi
callq 0x292a0
leal 0x1(%r14), %eax
movl %eax, 0x8(%r15)
movl 0x14(%r15), %edx
imull %edx, %r14d
addq (%r15), %r14
movq %r14, %rdi
movq %rbx, %rsi
callq 0x29080
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
|
set_dynamic:
push rbp
mov rbp, rsp
push r15
push r14
push rbx
push rax
mov r14d, edx
mov rbx, rsi
mov r15, rdi
mov eax, [rdi+8]
cmp eax, edx
ja short loc_91B1E
cmp [r15+0Ch], r14d
ja short loc_91AFB
mov rdi, r15
mov esi, r14d
call allocate_dynamic
mov ecx, eax
mov al, 1
test cl, cl
jnz short loc_91B36
mov eax, [r15+8]
loc_91AFB:
mov ecx, [r15+14h]
mov edx, r14d
sub edx, eax
imul edx, ecx
mov edi, ecx
imul edi, eax
add rdi, [r15]
xor esi, esi
call _memset
lea eax, [r14+1]
mov [r15+8], eax
loc_91B1E:
mov edx, [r15+14h]
imul r14d, edx
add r14, [r15]
mov rdi, r14
mov rsi, rbx
call _memcpy
xor eax, eax
loc_91B36:
add rsp, 8
pop rbx
pop r14
pop r15
pop rbp
retn
|
char set_dynamic(long long a1, long long a2, unsigned int a3)
{
unsigned int v4; // eax
char dynamic; // cl
char result; // al
v4 = *(_DWORD *)(a1 + 8);
if ( v4 <= a3 )
{
if ( *(_DWORD *)(a1 + 12) <= a3 )
{
dynamic = allocate_dynamic(a1, a3);
result = 1;
if ( dynamic )
return result;
v4 = *(_DWORD *)(a1 + 8);
}
memset(*(_QWORD *)a1 + v4 * *(_DWORD *)(a1 + 20), 0LL, *(_DWORD *)(a1 + 20) * (a3 - v4));
*(_DWORD *)(a1 + 8) = a3 + 1;
}
memcpy(*(_QWORD *)a1 + *(_DWORD *)(a1 + 20) * a3, a2, *(unsigned int *)(a1 + 20));
return 0;
}
|
set_dynamic:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH RBX
PUSH RAX
MOV R14D,EDX
MOV RBX,RSI
MOV R15,RDI
MOV EAX,dword ptr [RDI + 0x8]
CMP EAX,EDX
JA 0x00191b1e
CMP dword ptr [R15 + 0xc],R14D
JA 0x00191afb
MOV RDI,R15
MOV ESI,R14D
CALL 0x00191b41
MOV ECX,EAX
MOV AL,0x1
TEST CL,CL
JNZ 0x00191b36
MOV EAX,dword ptr [R15 + 0x8]
LAB_00191afb:
MOV ECX,dword ptr [R15 + 0x14]
MOV EDX,R14D
SUB EDX,EAX
IMUL EDX,ECX
MOV EDI,ECX
IMUL EDI,EAX
ADD RDI,qword ptr [R15]
XOR ESI,ESI
CALL 0x001292a0
LEA EAX,[R14 + 0x1]
MOV dword ptr [R15 + 0x8],EAX
LAB_00191b1e:
MOV EDX,dword ptr [R15 + 0x14]
IMUL R14D,EDX
ADD R14,qword ptr [R15]
MOV RDI,R14
MOV RSI,RBX
CALL 0x00129080
XOR EAX,EAX
LAB_00191b36:
ADD RSP,0x8
POP RBX
POP R14
POP R15
POP RBP
RET
|
int8 set_dynamic(long *param_1,void *param_2,uint param_3)
{
char cVar1;
uint uVar2;
uVar2 = *(uint *)(param_1 + 1);
if (uVar2 <= param_3) {
if (*(uint *)((long)param_1 + 0xc) <= param_3) {
cVar1 = allocate_dynamic(param_1);
if (cVar1 != '\0') {
return 1;
}
uVar2 = *(uint *)(param_1 + 1);
}
memset((void *)((ulong)(*(int *)((long)param_1 + 0x14) * uVar2) + *param_1),0,
(ulong)((param_3 - uVar2) * *(int *)((long)param_1 + 0x14)));
*(uint *)(param_1 + 1) = param_3 + 1;
}
memcpy((void *)((ulong)(param_3 * *(uint *)((long)param_1 + 0x14)) + *param_1),param_2,
(ulong)*(uint *)((long)param_1 + 0x14));
return 0;
}
|
|
58,029
|
my_hash_first_from_hash_value
|
eloqsql/mysys/hash.c
|
uchar* my_hash_first_from_hash_value(const HASH *hash,
my_hash_value_type hash_value,
const uchar *key,
size_t length,
HASH_SEARCH_STATE *current_record)
{
HASH_LINK *pos;
DBUG_ENTER("my_hash_first_from_hash_value");
if (hash->records)
{
uint flag= 1;
uint idx= my_hash_mask(hash_value,
hash->blength, hash->records);
do
{
pos= dynamic_element(&hash->array,idx,HASH_LINK*);
if (!hashcmp(hash,pos,key,length))
{
DBUG_PRINT("exit",("found key at %d",idx));
*current_record= idx;
DBUG_RETURN (pos->data);
}
if (flag)
{
flag=0; /* Reset flag */
if (my_hash_rec_mask(pos, hash->blength, hash->records) != idx)
break; /* Wrong link */
}
}
while ((idx=pos->next) != NO_RECORD);
}
*current_record= NO_RECORD;
DBUG_RETURN(0);
}
|
O3
|
c
|
my_hash_first_from_hash_value:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %r8, -0x30(%rbp)
movq %rcx, -0x38(%rbp)
movq 0x18(%rdi), %rax
testq %rax, %rax
je 0x93bc6
movq %rdx, %r15
movq %rdi, %r12
movl $0xffffffff, %ecx # imm = 0xFFFFFFFF
movq 0x10(%rdi), %rbx
addl %ebx, %ecx
andl %esi, %ecx
shrq %rbx
decl %ebx
andl %esi, %ebx
cmpq %rax, %rcx
cmovbl %ecx, %ebx
xorl %r14d, %r14d
movq 0x28(%r12), %rax
movl %ebx, %ecx
shlq $0x4, %rcx
leaq (%rax,%rcx), %r13
movq 0x8(%rax,%rcx), %rsi
movq %r12, %rdi
movq %r15, %rdx
movq -0x38(%rbp), %rcx
callq 0x93bed
testl %eax, %eax
je 0x93bd4
testb $0x1, %r14b
jne 0x93bba
movq 0x10(%r12), %rax
movl 0x4(%r13), %ecx
movl $0xffffffff, %edx # imm = 0xFFFFFFFF
addl %eax, %edx
andl %ecx, %edx
shrq %rax
decl %eax
andl %ecx, %eax
cmpq 0x18(%r12), %rdx
cmovbl %edx, %eax
cmpl %ebx, %eax
jne 0x93bc6
movl (%r13), %ebx
movb $0x1, %r14b
cmpl $-0x1, %ebx
jne 0x93b68
movq -0x30(%rbp), %rax
movl $0xffffffff, (%rax) # imm = 0xFFFFFFFF
xorl %eax, %eax
jmp 0x93bde
movq -0x30(%rbp), %rax
movl %ebx, (%rax)
movq 0x8(%r13), %rax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
|
my_hash_first_from_hash_value:
push rbp
mov rbp, rsp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 18h
mov [rbp+var_30], r8
mov [rbp+var_38], rcx
mov rax, [rdi+18h]
test rax, rax
jz loc_93BC6
mov r15, rdx
mov r12, rdi
mov ecx, 0FFFFFFFFh
mov rbx, [rdi+10h]
add ecx, ebx
and ecx, esi
shr rbx, 1
dec ebx
and ebx, esi
cmp rcx, rax
cmovb ebx, ecx
xor r14d, r14d
loc_93B68:
mov rax, [r12+28h]
mov ecx, ebx
shl rcx, 4
lea r13, [rax+rcx]
mov rsi, [rax+rcx+8]
mov rdi, r12
mov rdx, r15
mov rcx, [rbp+var_38]
call hashcmp
test eax, eax
jz short loc_93BD4
test r14b, 1
jnz short loc_93BBA
mov rax, [r12+10h]
mov ecx, [r13+4]
mov edx, 0FFFFFFFFh
add edx, eax
and edx, ecx
shr rax, 1
dec eax
and eax, ecx
cmp rdx, [r12+18h]
cmovb eax, edx
cmp eax, ebx
jnz short loc_93BC6
loc_93BBA:
mov ebx, [r13+0]
mov r14b, 1
cmp ebx, 0FFFFFFFFh
jnz short loc_93B68
loc_93BC6:
mov rax, [rbp+var_30]
mov dword ptr [rax], 0FFFFFFFFh
xor eax, eax
jmp short loc_93BDE
loc_93BD4:
mov rax, [rbp+var_30]
mov [rax], ebx
mov rax, [r13+8]
loc_93BDE:
add rsp, 18h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
|
long long my_hash_first_from_hash_value(_QWORD *a1, int a2, long long a3, long long a4, unsigned int *a5)
{
unsigned long long v5; // rax
unsigned long long v7; // rbx
unsigned long long v8; // rcx
unsigned int v9; // ebx
char v10; // r14
long long v11; // r13
unsigned long long v12; // rax
int v13; // ecx
unsigned long long v14; // rdx
int v15; // eax
v5 = a1[3];
if ( v5 )
{
v7 = a1[2];
v8 = a2 & (unsigned int)(v7 - 1);
v9 = a2 & ((v7 >> 1) - 1);
if ( v8 < v5 )
v9 = v8;
v10 = 0;
while ( 1 )
{
v11 = a1[5] + 16LL * v9;
if ( !(unsigned int)hashcmp(a1, *(_QWORD *)(v11 + 8), a3, a4) )
break;
if ( (v10 & 1) != 0 )
goto LABEL_15;
v12 = a1[2];
v13 = *(_DWORD *)(v11 + 4);
v14 = v13 & (unsigned int)(v12 - 1);
v15 = v13 & ((v12 >> 1) - 1);
if ( v14 < a1[3] )
v15 = v14;
if ( v15 == v9 )
{
LABEL_15:
v9 = *(_DWORD *)v11;
v10 = 1;
if ( *(_DWORD *)v11 != -1 )
continue;
}
goto LABEL_11;
}
*a5 = v9;
return *(_QWORD *)(v11 + 8);
}
else
{
LABEL_11:
*a5 = -1;
return 0LL;
}
}
|
my_hash_first_from_hash_value:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x18
MOV qword ptr [RBP + -0x30],R8
MOV qword ptr [RBP + -0x38],RCX
MOV RAX,qword ptr [RDI + 0x18]
TEST RAX,RAX
JZ 0x00193bc6
MOV R15,RDX
MOV R12,RDI
MOV ECX,0xffffffff
MOV RBX,qword ptr [RDI + 0x10]
ADD ECX,EBX
AND ECX,ESI
SHR RBX,0x1
DEC EBX
AND EBX,ESI
CMP RCX,RAX
CMOVC EBX,ECX
XOR R14D,R14D
LAB_00193b68:
MOV RAX,qword ptr [R12 + 0x28]
MOV ECX,EBX
SHL RCX,0x4
LEA R13,[RAX + RCX*0x1]
MOV RSI,qword ptr [RAX + RCX*0x1 + 0x8]
MOV RDI,R12
MOV RDX,R15
MOV RCX,qword ptr [RBP + -0x38]
CALL 0x00193bed
TEST EAX,EAX
JZ 0x00193bd4
TEST R14B,0x1
JNZ 0x00193bba
MOV RAX,qword ptr [R12 + 0x10]
MOV ECX,dword ptr [R13 + 0x4]
MOV EDX,0xffffffff
ADD EDX,EAX
AND EDX,ECX
SHR RAX,0x1
DEC EAX
AND EAX,ECX
CMP RDX,qword ptr [R12 + 0x18]
CMOVC EAX,EDX
CMP EAX,EBX
JNZ 0x00193bc6
LAB_00193bba:
MOV EBX,dword ptr [R13]
MOV R14B,0x1
CMP EBX,-0x1
JNZ 0x00193b68
LAB_00193bc6:
MOV RAX,qword ptr [RBP + -0x30]
MOV dword ptr [RAX],0xffffffff
XOR EAX,EAX
JMP 0x00193bde
LAB_00193bd4:
MOV RAX,qword ptr [RBP + -0x30]
MOV dword ptr [RAX],EBX
MOV RAX,qword ptr [R13 + 0x8]
LAB_00193bde:
ADD RSP,0x18
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
|
int8
my_hash_first_from_hash_value
(long param_1,uint param_2,int8 param_3,int8 param_4,uint *param_5)
{
uint *puVar1;
uint uVar2;
int iVar3;
uint uVar4;
uint uVar5;
bool bVar6;
if (*(ulong *)(param_1 + 0x18) != 0) {
uVar4 = (int)*(ulong *)(param_1 + 0x10) - 1U & param_2;
uVar2 = (int)(*(ulong *)(param_1 + 0x10) >> 1) - 1U & param_2;
if ((ulong)uVar4 < *(ulong *)(param_1 + 0x18)) {
uVar2 = uVar4;
}
bVar6 = false;
do {
puVar1 = (uint *)(*(long *)(param_1 + 0x28) + (ulong)uVar2 * 0x10);
iVar3 = hashcmp(param_1,*(int8 *)(*(long *)(param_1 + 0x28) + 8 + (ulong)uVar2 * 0x10),
param_3,param_4);
if (iVar3 == 0) {
*param_5 = uVar2;
return *(int8 *)(puVar1 + 2);
}
if (!bVar6) {
uVar5 = (int)*(ulong *)(param_1 + 0x10) - 1U & puVar1[1];
uVar4 = (int)(*(ulong *)(param_1 + 0x10) >> 1) - 1U & puVar1[1];
if ((ulong)uVar5 < *(ulong *)(param_1 + 0x18)) {
uVar4 = uVar5;
}
if (uVar4 != uVar2) break;
}
uVar2 = *puVar1;
bVar6 = true;
} while (uVar2 != 0xffffffff);
}
*param_5 = 0xffffffff;
return 0;
}
|
|
58,030
|
nglog::InitializeVLOG3(nglog::SiteFlag*, int*, char const*, int)
|
ng-log[P]ng-log/src/vlog_is_on.cc
|
bool InitializeVLOG3(SiteFlag* site_flag, int32* level_default,
const char* fname, int32 verbose_level) {
std::lock_guard<std::mutex> l(vmodule_mutex);
bool read_vmodule_flag = inited_vmodule;
if (!read_vmodule_flag) {
VLOG2Initializer();
}
// protect the errno global in case someone writes:
// VLOG(..) << "The last error was " << strerror(errno)
int old_errno = errno;
// site_default normally points to FLAGS_v
int32* site_flag_value = level_default;
// Get basename for file
const char* base = strrchr(fname, '/');
#ifdef _WIN32
if (!base) {
base = strrchr(fname, '\\');
}
#endif
base = base ? (base + 1) : fname;
const char* base_end = strchr(base, '.');
size_t base_length =
base_end ? static_cast<size_t>(base_end - base) : strlen(base);
// Trim out trailing "-inl" if any
if (base_length >= 4 && (memcmp(base + base_length - 4, "-inl", 4) == 0)) {
base_length -= 4;
}
// TODO: Trim out _unittest suffix? Perhaps it is better to have
// the extra control and just leave it there.
// find target in vector of modules, replace site_flag_value with
// a module-specific verbose level, if any.
for (const VModuleInfo* info = vmodule_list; info != nullptr;
info = info->next) {
if (SafeFNMatch_(info->module_pattern.c_str(), info->module_pattern.size(),
base, base_length)) {
site_flag_value = &info->vlog_level;
// value at info->vlog_level is now what controls
// the VLOG at the caller site forever
break;
}
}
// Cache the vlog value pointer if --vmodule flag has been parsed.
ANNOTATE_BENIGN_RACE(site_flag,
"*site_flag may be written by several threads,"
" but the value will be the same");
if (read_vmodule_flag) {
site_flag->level = site_flag_value;
// If VLOG flag has been cached to the default site pointer,
// we want to add to the cached list in order to invalidate in case
// SetVModule is called afterwards with new modules.
// The performance penalty here is neglible, because InitializeVLOG3 is
// called once per site.
if (site_flag_value == level_default && !site_flag->base_name) {
site_flag->base_name = base;
site_flag->base_len = base_length;
site_flag->next = cached_site_list;
cached_site_list = site_flag;
}
}
// restore the errno in case something recoverable went wrong during
// the initialization of the VLOG mechanism (see above note "protect the..")
errno = old_errno;
return *site_flag_value >= verbose_level;
}
|
O1
|
cpp
|
nglog::InitializeVLOG3(nglog::SiteFlag*, int*, char const*, int):
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x48, %rsp
movl %ecx, %ebp
movq %rdx, %r14
movq %rsi, %r13
movq %rdi, %r15
leaq 0x1e33d(%rip), %rdi # 0x3fa90
callq 0x7810
testl %eax, %eax
jne 0x21980
movb 0x1e322(%rip), %al # 0x3fa88
movb %al, 0x7(%rsp)
testb %al, %al
jne 0x2189f
movq %r14, 0x10(%rsp)
movq %r13, 0x18(%rsp)
movq %r15, 0x20(%rsp)
movl %ebp, 0x8(%rsp)
movb $0x0, 0x1e2fc(%rip) # 0x3fa88
leaq 0xce25(%rip), %rax # 0x2e5b8
movq (%rax), %rax
movq (%rax), %r15
leaq 0x38(%rsp), %r12
leaq 0x28(%rsp), %r13
xorl %ebp, %ebp
xorl %ebx, %ebx
movq %r15, %rdi
movl $0x3d, %esi
callq 0x71a0
testq %rax, %rax
je 0x2186e
movq %rax, %r14
movq %r12, 0x28(%rsp)
movq %r13, %rdi
movq %r15, %rsi
movq %rax, %rdx
callq 0x9426
movq %r14, %rdi
leaq 0x27a1(%rip), %rsi # 0x23f7e
leaq 0xc(%rsp), %rdx
xorl %eax, %eax
callq 0x74f0
cmpl $0x1, %eax
jne 0x21833
movl $0x30, %edi
callq 0x7520
movq %rax, %r15
addq $0x10, %rax
movq %rax, (%r15)
movq $0x0, 0x8(%r15)
movb $0x0, 0x10(%r15)
movq %r15, %rdi
movq %r13, %rsi
callq 0x72a0
movl 0xc(%rsp), %eax
movl %eax, 0x20(%r15)
testq %rbp, %rbp
je 0x2182d
movq %r15, 0x28(%rbx)
jmp 0x21830
movq %r15, %rbp
movq %r15, %rbx
movq %r14, %rdi
movl $0x2c, %esi
callq 0x71a0
movq %rax, %r14
leaq 0x1(%rax), %r15
testq %rax, %rax
cmoveq %rax, %r15
movq 0x28(%rsp), %rdi
cmpq %r12, %rdi
je 0x21865
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x7530
testq %r14, %r14
jne 0x217a7
testq %rbp, %rbp
je 0x21885
movq 0x1e1de(%rip), %rax # 0x3fa58
movq %rax, 0x28(%rbx)
movq %rbp, 0x1e1d3(%rip) # 0x3fa58
movb $0x1, 0x1e1fc(%rip) # 0x3fa88
movl 0x8(%rsp), %ebp
movq 0x20(%rsp), %r15
movq 0x18(%rsp), %r13
movq 0x10(%rsp), %r14
movq %r14, %rdi
movl $0x2f, %esi
callq 0x75c0
leaq 0x1(%rax), %rbx
testq %rax, %rax
cmoveq %r14, %rbx
movq %rbx, %rdi
movl $0x2e, %esi
callq 0x71a0
testq %rax, %rax
je 0x218d1
movq %rax, %r12
subq %rbx, %r12
jmp 0x218dc
movq %rbx, %rdi
callq 0x71f0
movq %rax, %r12
cmpq $0x4, %r12
jb 0x218f4
leaq -0x4(%r12), %rax
cmpl $0x6c6e692d, -0x4(%rbx,%r12) # imm = 0x6C6E692D
cmoveq %rax, %r12
movq 0x1e15d(%rip), %r14 # 0x3fa58
movq %r13, %rax
testq %r14, %r14
je 0x2192e
movq (%r14), %rdi
movq 0x8(%r14), %rsi
movq %rbx, %rdx
movq %r12, %rcx
callq 0x21490
testb %al, %al
jne 0x21927
movq 0x28(%r14), %r14
testq %r14, %r14
jne 0x21903
movq %r13, %rax
jmp 0x2192e
addq $0x20, %r14
movq %r14, %rax
cmpb $0x0, 0x7(%rsp)
je 0x2195e
movq %rax, (%r15)
cmpq %r13, %rax
jne 0x2195e
cmpq $0x0, 0x8(%r15)
jne 0x2195e
movq %rbx, 0x8(%r15)
movq %r12, 0x10(%r15)
movq 0x1e10d(%rip), %rcx # 0x3fa60
movq %rcx, 0x18(%r15)
movq %r15, 0x1e102(%rip) # 0x3fa60
cmpl %ebp, (%rax)
setge %bl
leaq 0x1e126(%rip), %rdi # 0x3fa90
callq 0x73e0
movl %ebx, %eax
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movl %eax, %edi
callq 0x7350
movq %rax, %rbx
movq 0x28(%rsp), %rdi
cmpq %r12, %rdi
je 0x219a6
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x7530
jmp 0x219a6
movq %rax, %rbx
leaq 0x1e0e3(%rip), %rdi # 0x3fa90
callq 0x73e0
movq %rbx, %rdi
callq 0x7970
|
_ZN5nglog15InitializeVLOG3EPNS_8SiteFlagEPiPKci:
push rbp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 48h
mov ebp, ecx
mov r14, rdx
mov r13, rsi
mov r15, rdi
lea rdi, _ZN5nglogL13vmodule_mutexE; nglog::vmodule_mutex
call _pthread_mutex_lock
test eax, eax
jnz loc_21980
mov al, cs:_ZN5nglogL14inited_vmoduleE; nglog::inited_vmodule
mov [rsp+78h+var_71], al
test al, al
jnz loc_2189F
mov [rsp+78h+var_68], r14
mov [rsp+78h+var_60], r13
mov [rsp+78h+var_58], r15
mov [rsp+78h+var_70], ebp
mov cs:_ZN5nglogL14inited_vmoduleE, 0; nglog::inited_vmodule
lea rax, _ZN3fLS13FLAGS_vmoduleB5cxx11E; fLS::FLAGS_vmodule
mov rax, [rax]
mov r15, [rax]
lea r12, [rsp+78h+var_40]
lea r13, [rsp+78h+var_50]
xor ebp, ebp
xor ebx, ebx
loc_217A7:
mov rdi, r15
mov esi, 3Dh ; '='
call _strchr
test rax, rax
jz loc_2186E
mov r14, rax
mov [rsp+78h+var_50], r12
mov rdi, r13
mov rsi, r15
mov rdx, rax
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, r14
lea rsi, aD; "=%d"
lea rdx, [rsp+78h+var_6C]
xor eax, eax
call ___isoc99_sscanf
cmp eax, 1
jnz short loc_21833
mov edi, 30h ; '0'; unsigned __int64
call __Znwm; operator new(ulong)
mov r15, rax
add rax, 10h
mov [r15], rax
mov qword ptr [r15+8], 0
mov byte ptr [r15+10h], 0
mov rdi, r15
mov rsi, r13
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9_M_assignERKS4_; std::string::_M_assign(std::string const&)
mov eax, [rsp+78h+var_6C]
mov [r15+20h], eax
test rbp, rbp
jz short loc_2182D
mov [rbx+28h], r15
jmp short loc_21830
loc_2182D:
mov rbp, r15
loc_21830:
mov rbx, r15
loc_21833:
mov rdi, r14
mov esi, 2Ch ; ','
call _strchr
mov r14, rax
lea r15, [rax+1]
test rax, rax
cmovz r15, rax
mov rdi, [rsp+78h+var_50]; void *
cmp rdi, r12
jz short loc_21865
mov rsi, [rsp+78h+var_40]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_21865:
test r14, r14
jnz loc_217A7
loc_2186E:
test rbp, rbp
jz short loc_21885
mov rax, cs:_ZN5nglogL12vmodule_listE; nglog::vmodule_list
mov [rbx+28h], rax
mov cs:_ZN5nglogL12vmodule_listE, rbp; nglog::vmodule_list
loc_21885:
mov cs:_ZN5nglogL14inited_vmoduleE, 1; nglog::inited_vmodule
mov ebp, [rsp+78h+var_70]
mov r15, [rsp+78h+var_58]
mov r13, [rsp+78h+var_60]
mov r14, [rsp+78h+var_68]
loc_2189F:
mov rdi, r14
mov esi, 2Fh ; '/'
call _strrchr
lea rbx, [rax+1]
test rax, rax
cmovz rbx, r14
mov rdi, rbx
mov esi, 2Eh ; '.'
call _strchr
test rax, rax
jz short loc_218D1
mov r12, rax
sub r12, rbx
jmp short loc_218DC
loc_218D1:
mov rdi, rbx
call _strlen
mov r12, rax
loc_218DC:
cmp r12, 4
jb short loc_218F4
lea rax, [r12-4]
cmp dword ptr [rbx+r12-4], 6C6E692Dh
cmovz r12, rax
loc_218F4:
mov r14, cs:_ZN5nglogL12vmodule_listE; nglog::vmodule_list
mov rax, r13
test r14, r14
jz short loc_2192E
loc_21903:
mov rdi, [r14]; this
mov rsi, [r14+8]; char *
mov rdx, rbx; unsigned __int64
mov rcx, r12; char *
call _ZN5nglog5tools12SafeFNMatch_EPKcmS2_m; nglog::tools::SafeFNMatch_(char const*,ulong,char const*,ulong)
test al, al
jnz short loc_21927
mov r14, [r14+28h]
test r14, r14
jnz short loc_21903
mov rax, r13
jmp short loc_2192E
loc_21927:
add r14, 20h ; ' '
mov rax, r14
loc_2192E:
cmp [rsp+78h+var_71], 0
jz short loc_2195E
mov [r15], rax
cmp rax, r13
jnz short loc_2195E
cmp qword ptr [r15+8], 0
jnz short loc_2195E
mov [r15+8], rbx
mov [r15+10h], r12
mov rcx, cs:_ZN5nglogL16cached_site_listE; nglog::cached_site_list
mov [r15+18h], rcx
mov cs:_ZN5nglogL16cached_site_listE, r15; nglog::cached_site_list
loc_2195E:
cmp [rax], ebp
setnl bl
lea rdi, _ZN5nglogL13vmodule_mutexE; nglog::vmodule_mutex
call _pthread_mutex_unlock
mov eax, ebx
add rsp, 48h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
loc_21980:
mov edi, eax; int
call __ZSt20__throw_system_errori; std::__throw_system_error(int)
mov rbx, rax
mov rdi, [rsp+78h+var_50]; void *
cmp rdi, r12
jz short loc_219A6
mov rsi, [rsp+78h+var_40]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
jmp short loc_219A6
mov rbx, rax
loc_219A6:
lea rdi, _ZN5nglogL13vmodule_mutexE; nglog::vmodule_mutex
call _pthread_mutex_unlock
mov rdi, rbx
call __Unwind_Resume
|
long long nglog::InitializeVLOG3(_QWORD *a1, _DWORD *a2, long long a3, int a4)
{
_DWORD *v6; // r13
_QWORD *v7; // r15
int v8; // eax
_BYTE *v9; // r15
long long v10; // rbp
long long v11; // rbx
long long v12; // rax
long long v13; // r14
long long v14; // r15
long long v15; // r14
long long v16; // rax
long long v17; // rbx
long long v18; // rax
unsigned long long v19; // r8
const char *v20; // r12
long long v21; // r14
_DWORD *v22; // rax
char v24; // [rsp+7h] [rbp-71h]
int v25; // [rsp+8h] [rbp-70h]
int v26; // [rsp+Ch] [rbp-6Ch] BYREF
long long v27; // [rsp+10h] [rbp-68h]
_DWORD *v28; // [rsp+18h] [rbp-60h]
_QWORD *v29; // [rsp+20h] [rbp-58h]
void *v30[2]; // [rsp+28h] [rbp-50h] BYREF
_QWORD v31[8]; // [rsp+38h] [rbp-40h] BYREF
v6 = a2;
v7 = a1;
v8 = pthread_mutex_lock(&nglog::vmodule_mutex);
if ( v8 )
std::__throw_system_error(v8);
v24 = nglog::inited_vmodule;
if ( !nglog::inited_vmodule )
{
v27 = a3;
v28 = a2;
v29 = a1;
v25 = a4;
nglog::inited_vmodule = 0;
v9 = (_BYTE *)fLS::FLAGS_vmodule_buf[abi:cxx11];
v10 = 0LL;
v11 = 0LL;
do
{
v12 = strchr(v9, 61LL);
if ( !v12 )
break;
v13 = v12;
v30[0] = v31;
std::string::_M_construct<char const*>(v30, v9, v12);
if ( (unsigned int)__isoc99_sscanf(v13, "=%d", &v26) == 1 )
{
v14 = operator new(0x30uLL);
*(_QWORD *)v14 = v14 + 16;
*(_QWORD *)(v14 + 8) = 0LL;
*(_BYTE *)(v14 + 16) = 0;
std::string::_M_assign(v14, v30);
*(_DWORD *)(v14 + 32) = v26;
if ( v10 )
*(_QWORD *)(v11 + 40) = v14;
else
v10 = v14;
v11 = v14;
}
v15 = strchr(v13, 44LL);
v9 = (_BYTE *)(v15 + 1);
if ( !v15 )
v9 = 0LL;
if ( v30[0] != v31 )
operator delete(v30[0], v31[0] + 1LL);
}
while ( v15 );
if ( v10 )
{
*(_QWORD *)(v11 + 40) = nglog::vmodule_list;
nglog::vmodule_list = v10;
}
nglog::inited_vmodule = 1;
a4 = v25;
v7 = v29;
v6 = v28;
a3 = v27;
}
v16 = strrchr(a3, 47LL);
v17 = v16 + 1;
if ( !v16 )
v17 = a3;
v18 = strchr(v17, 46LL);
if ( v18 )
v20 = (const char *)(v18 - v17);
else
v20 = (const char *)strlen(v17);
if ( (unsigned long long)v20 >= 4 && *(_DWORD *)&v20[v17 - 4] == 1819175213 )
v20 -= 4;
v21 = nglog::vmodule_list;
v22 = v6;
if ( nglog::vmodule_list )
{
while ( !nglog::tools::SafeFNMatch_(*(nglog::tools **)v21, *(const char **)(v21 + 8), v17, v20, v19) )
{
v21 = *(_QWORD *)(v21 + 40);
if ( !v21 )
{
v22 = v6;
goto LABEL_31;
}
}
v22 = (_DWORD *)(v21 + 32);
}
LABEL_31:
if ( v24 )
{
*v7 = v22;
if ( v22 == v6 && !v7[1] )
{
v7[1] = v17;
v7[2] = v20;
v7[3] = nglog::cached_site_list;
nglog::cached_site_list = (long long)v7;
}
}
LOBYTE(v17) = *v22 >= a4;
pthread_mutex_unlock(&nglog::vmodule_mutex);
return (unsigned int)v17;
}
|
InitializeVLOG3:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x48
MOV EBP,ECX
MOV R14,RDX
MOV R13,RSI
MOV R15,RDI
LEA RDI,[0x13fa90]
CALL 0x00107810
TEST EAX,EAX
JNZ 0x00121980
MOV AL,byte ptr [0x0013fa88]
MOV byte ptr [RSP + 0x7],AL
TEST AL,AL
JNZ 0x0012189f
MOV qword ptr [RSP + 0x10],R14
MOV qword ptr [RSP + 0x18],R13
MOV qword ptr [RSP + 0x20],R15
MOV dword ptr [RSP + 0x8],EBP
MOV byte ptr [0x0013fa88],0x0
LEA RAX,[0x12e5b8]
MOV RAX,qword ptr [RAX]
MOV R15,qword ptr [RAX]
LEA R12,[RSP + 0x38]
LEA R13,[RSP + 0x28]
XOR EBP,EBP
XOR EBX,EBX
LAB_001217a7:
MOV RDI,R15
MOV ESI,0x3d
CALL 0x001071a0
TEST RAX,RAX
JZ 0x0012186e
MOV R14,RAX
MOV qword ptr [RSP + 0x28],R12
LAB_001217c5:
MOV RDI,R13
MOV RSI,R15
MOV RDX,RAX
CALL 0x00109426
MOV RDI,R14
LEA RSI,[0x123f7e]
LEA RDX,[RSP + 0xc]
XOR EAX,EAX
CALL 0x001074f0
CMP EAX,0x1
JNZ 0x00121833
LAB_001217ee:
MOV EDI,0x30
CALL 0x00107520
MOV R15,RAX
ADD RAX,0x10
MOV qword ptr [R15],RAX
MOV qword ptr [R15 + 0x8],0x0
MOV byte ptr [R15 + 0x10],0x0
MOV RDI,R15
MOV RSI,R13
CALL 0x001072a0
LAB_0012181a:
MOV EAX,dword ptr [RSP + 0xc]
MOV dword ptr [R15 + 0x20],EAX
TEST RBP,RBP
JZ 0x0012182d
MOV qword ptr [RBX + 0x28],R15
JMP 0x00121830
LAB_0012182d:
MOV RBP,R15
LAB_00121830:
MOV RBX,R15
LAB_00121833:
MOV RDI,R14
MOV ESI,0x2c
CALL 0x001071a0
MOV R14,RAX
LEA R15,[RAX + 0x1]
TEST RAX,RAX
CMOVZ R15,RAX
MOV RDI,qword ptr [RSP + 0x28]
CMP RDI,R12
JZ 0x00121865
MOV RSI,qword ptr [RSP + 0x38]
INC RSI
CALL 0x00107530
LAB_00121865:
TEST R14,R14
JNZ 0x001217a7
LAB_0012186e:
TEST RBP,RBP
JZ 0x00121885
MOV RAX,qword ptr [0x0013fa58]
MOV qword ptr [RBX + 0x28],RAX
MOV qword ptr [0x0013fa58],RBP
LAB_00121885:
MOV byte ptr [0x0013fa88],0x1
MOV EBP,dword ptr [RSP + 0x8]
MOV R15,qword ptr [RSP + 0x20]
MOV R13,qword ptr [RSP + 0x18]
MOV R14,qword ptr [RSP + 0x10]
LAB_0012189f:
MOV RDI,R14
MOV ESI,0x2f
CALL 0x001075c0
LEA RBX,[RAX + 0x1]
TEST RAX,RAX
CMOVZ RBX,R14
MOV RDI,RBX
MOV ESI,0x2e
CALL 0x001071a0
TEST RAX,RAX
JZ 0x001218d1
MOV R12,RAX
SUB R12,RBX
JMP 0x001218dc
LAB_001218d1:
MOV RDI,RBX
CALL 0x001071f0
MOV R12,RAX
LAB_001218dc:
CMP R12,0x4
JC 0x001218f4
LEA RAX,[R12 + -0x4]
CMP dword ptr [RBX + R12*0x1 + -0x4],0x6c6e692d
CMOVZ R12,RAX
LAB_001218f4:
MOV R14,qword ptr [0x0013fa58]
MOV RAX,R13
TEST R14,R14
JZ 0x0012192e
LAB_00121903:
MOV RDI,qword ptr [R14]
MOV RSI,qword ptr [R14 + 0x8]
MOV RDX,RBX
MOV RCX,R12
CALL 0x00121490
TEST AL,AL
JNZ 0x00121927
MOV R14,qword ptr [R14 + 0x28]
TEST R14,R14
JNZ 0x00121903
MOV RAX,R13
JMP 0x0012192e
LAB_00121927:
ADD R14,0x20
MOV RAX,R14
LAB_0012192e:
CMP byte ptr [RSP + 0x7],0x0
JZ 0x0012195e
MOV qword ptr [R15],RAX
CMP RAX,R13
JNZ 0x0012195e
CMP qword ptr [R15 + 0x8],0x0
JNZ 0x0012195e
MOV qword ptr [R15 + 0x8],RBX
MOV qword ptr [R15 + 0x10],R12
MOV RCX,qword ptr [0x0013fa60]
MOV qword ptr [R15 + 0x18],RCX
MOV qword ptr [0x0013fa60],R15
LAB_0012195e:
CMP dword ptr [RAX],EBP
SETGE BL
LEA RDI,[0x13fa90]
CALL 0x001073e0
MOV EAX,EBX
ADD RSP,0x48
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
LAB_00121980:
MOV EDI,EAX
CALL 0x00107350
|
/* nglog::InitializeVLOG3(nglog::SiteFlag*, int*, char const*, int) */
ulong nglog::InitializeVLOG3(SiteFlag *param_1,int *param_2,char *param_3,int param_4)
{
char cVar1;
char cVar2;
int iVar3;
char *pcVar4;
string *psVar5;
string *psVar6;
char *pcVar7;
string *psVar8;
ulong uVar9;
string *psVar10;
int4 local_6c;
char *local_68;
string *local_60;
SiteFlag *local_58;
long *local_50 [2];
long local_40 [2];
iVar3 = pthread_mutex_lock((pthread_mutex_t *)vmodule_mutex);
cVar1 = inited_vmodule;
if (iVar3 != 0) {
/* WARNING: Subroutine does not return */
std::__throw_system_error(iVar3);
}
if (inited_vmodule == '\0') {
inited_vmodule = 0;
pcVar7 = *(char **)fLS::FLAGS_vmodule_abi_cxx11_;
psVar6 = (string *)0x0;
psVar10 = (string *)0x0;
local_68 = param_3;
local_60 = (string *)param_2;
local_58 = param_1;
do {
pcVar4 = strchr(pcVar7,0x3d);
psVar5 = psVar6;
psVar8 = psVar10;
if (pcVar4 == (char *)0x0) break;
local_50[0] = local_40;
/* try { // try from 001217c5 to 001217d2 has its CatchHandler @ 001219a3 */
std::__cxx11::string::_M_construct<char_const*>(local_50,pcVar7,pcVar4);
iVar3 = __isoc99_sscanf(pcVar4,&DAT_00123f7e,&local_6c);
if (iVar3 == 1) {
/* try { // try from 001217ee to 00121819 has its CatchHandler @ 00121987 */
psVar5 = (string *)operator_new(0x30);
*(string **)psVar5 = psVar5 + 0x10;
*(int8 *)(psVar5 + 8) = 0;
psVar5[0x10] = (string)0x0;
std::__cxx11::string::_M_assign(psVar5);
*(int4 *)(psVar5 + 0x20) = local_6c;
psVar8 = psVar5;
if (psVar10 != (string *)0x0) {
*(string **)(psVar6 + 0x28) = psVar5;
psVar8 = psVar10;
}
}
pcVar4 = strchr(pcVar4,0x2c);
pcVar7 = pcVar4 + 1;
if (pcVar4 == (char *)0x0) {
pcVar7 = (char *)0x0;
}
if (local_50[0] != local_40) {
operator_delete(local_50[0],local_40[0] + 1);
}
psVar6 = psVar5;
psVar10 = psVar8;
} while (pcVar4 != (char *)0x0);
if (psVar8 != (string *)0x0) {
*(string **)(psVar5 + 0x28) = vmodule_list;
vmodule_list = psVar8;
}
inited_vmodule = '\x01';
param_2 = (int *)local_60;
param_3 = local_68;
param_1 = local_58;
}
pcVar4 = strrchr(param_3,0x2f);
pcVar7 = pcVar4 + 1;
if (pcVar4 == (char *)0x0) {
pcVar7 = param_3;
}
pcVar4 = strchr(pcVar7,0x2e);
if (pcVar4 == (char *)0x0) {
uVar9 = strlen(pcVar7);
}
else {
uVar9 = (long)pcVar4 - (long)pcVar7;
}
psVar6 = vmodule_list;
if ((3 < uVar9) && (*(int *)(pcVar7 + (uVar9 - 4)) == 0x6c6e692d)) {
uVar9 = uVar9 - 4;
}
do {
psVar10 = (string *)param_2;
if (psVar6 == (string *)0x0) {
LAB_0012192e:
if (((cVar1 != '\0') && (*(string **)param_1 = psVar10, psVar10 == (string *)param_2)) &&
(*(long *)(param_1 + 8) == 0)) {
*(char **)(param_1 + 8) = pcVar7;
*(ulong *)(param_1 + 0x10) = uVar9;
*(SiteFlag **)(param_1 + 0x18) = cached_site_list;
cached_site_list = param_1;
}
iVar3 = *(int *)psVar10;
pthread_mutex_unlock((pthread_mutex_t *)vmodule_mutex);
return CONCAT71((int7)((ulong)pcVar7 >> 8),param_4 <= iVar3) & 0xffffffff;
}
cVar2 = tools::SafeFNMatch_(*(char **)psVar6,*(ulong *)(psVar6 + 8),pcVar7,uVar9);
if (cVar2 != '\0') {
psVar10 = psVar6 + 0x20;
goto LAB_0012192e;
}
psVar6 = *(string **)(psVar6 + 0x28);
} while( true );
}
|
|
58,031
|
my_coll_parser_scan_reset_sequence
|
eloqsql/strings/ctype-uca.c
|
static int
my_coll_parser_scan_reset_sequence(MY_COLL_RULE_PARSER *p)
{
my_coll_rule_reset(&p->rule);
/* Scan "[before x]" option, if exists */
if (my_coll_parser_curr(p)->term == MY_COLL_LEXEM_OPTION)
my_coll_parser_scan_reset_before(p);
/* Try logical reset position */
if (my_coll_parser_curr(p)->term == MY_COLL_LEXEM_OPTION)
{
if (!my_coll_parser_scan_logical_position(p, p->rule.base, 1))
return 0;
}
else
{
/* Scan single reset character or expansion */
if (!my_coll_parser_scan_character_list(p, p->rule.base,
MY_UCA_MAX_EXPANSION, "Expansion"))
return 0;
}
return 1;
}
|
O0
|
c
|
my_coll_parser_scan_reset_sequence:
pushq %rbp
movq %rsp, %rbp
subq $0x10, %rsp
movq %rdi, -0x10(%rbp)
movq -0x10(%rbp), %rdi
addq $0x50, %rdi
callq 0xa2b80
movq -0x10(%rbp), %rdi
callq 0xa2080
cmpl $0x7, (%rax)
jne 0xa28e0
movq -0x10(%rbp), %rdi
callq 0xa2bb0
movq -0x10(%rbp), %rdi
callq 0xa2080
cmpl $0x7, (%rax)
jne 0xa2914
movq -0x10(%rbp), %rdi
movq -0x10(%rbp), %rsi
addq $0x50, %rsi
movl $0x1, %edx
callq 0xa2d20
cmpl $0x0, %eax
jne 0xa2912
movl $0x0, -0x4(%rbp)
jmp 0xa2948
jmp 0xa2941
movq -0x10(%rbp), %rdi
movq -0x10(%rbp), %rsi
addq $0x50, %rsi
movl $0xa, %edx
leaq 0x31356(%rip), %rcx # 0xd3c82
callq 0xa3040
cmpl $0x0, %eax
jne 0xa293f
movl $0x0, -0x4(%rbp)
jmp 0xa2948
jmp 0xa2941
movl $0x1, -0x4(%rbp)
movl -0x4(%rbp), %eax
addq $0x10, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
|
my_coll_parser_scan_reset_sequence:
push rbp
mov rbp, rsp
sub rsp, 10h
mov [rbp+var_10], rdi
mov rdi, [rbp+var_10]
add rdi, 50h ; 'P'
call my_coll_rule_reset
mov rdi, [rbp+var_10]
call my_coll_parser_curr
cmp dword ptr [rax], 7
jnz short loc_A28E0
mov rdi, [rbp+var_10]
call my_coll_parser_scan_reset_before
loc_A28E0:
mov rdi, [rbp+var_10]
call my_coll_parser_curr
cmp dword ptr [rax], 7
jnz short loc_A2914
mov rdi, [rbp+var_10]
mov rsi, [rbp+var_10]
add rsi, 50h ; 'P'
mov edx, 1
call my_coll_parser_scan_logical_position
cmp eax, 0
jnz short loc_A2912
mov [rbp+var_4], 0
jmp short loc_A2948
loc_A2912:
jmp short loc_A2941
loc_A2914:
mov rdi, [rbp+var_10]
mov rsi, [rbp+var_10]
add rsi, 50h ; 'P'
mov edx, 0Ah
lea rcx, aExpansion; "Expansion"
call my_coll_parser_scan_character_list
cmp eax, 0
jnz short loc_A293F
mov [rbp+var_4], 0
jmp short loc_A2948
loc_A293F:
jmp short $+2
loc_A2941:
mov [rbp+var_4], 1
loc_A2948:
mov eax, [rbp+var_4]
add rsp, 10h
pop rbp
retn
|
_BOOL8 my_coll_parser_scan_reset_sequence(long long a1)
{
my_coll_rule_reset(a1 + 80);
if ( *(_DWORD *)my_coll_parser_curr(a1) == 7 )
my_coll_parser_scan_reset_before(a1);
if ( *(_DWORD *)my_coll_parser_curr(a1) != 7 )
return (unsigned int)my_coll_parser_scan_character_list(a1, a1 + 80, 10LL, "Expansion") != 0;
return (unsigned int)my_coll_parser_scan_logical_position(a1, a1 + 80, 1LL) != 0;
}
|
my_coll_parser_scan_reset_sequence:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x10
MOV qword ptr [RBP + -0x10],RDI
MOV RDI,qword ptr [RBP + -0x10]
ADD RDI,0x50
CALL 0x001a2b80
MOV RDI,qword ptr [RBP + -0x10]
CALL 0x001a2080
CMP dword ptr [RAX],0x7
JNZ 0x001a28e0
MOV RDI,qword ptr [RBP + -0x10]
CALL 0x001a2bb0
LAB_001a28e0:
MOV RDI,qword ptr [RBP + -0x10]
CALL 0x001a2080
CMP dword ptr [RAX],0x7
JNZ 0x001a2914
MOV RDI,qword ptr [RBP + -0x10]
MOV RSI,qword ptr [RBP + -0x10]
ADD RSI,0x50
MOV EDX,0x1
CALL 0x001a2d20
CMP EAX,0x0
JNZ 0x001a2912
MOV dword ptr [RBP + -0x4],0x0
JMP 0x001a2948
LAB_001a2912:
JMP 0x001a2941
LAB_001a2914:
MOV RDI,qword ptr [RBP + -0x10]
MOV RSI,qword ptr [RBP + -0x10]
ADD RSI,0x50
MOV EDX,0xa
LEA RCX,[0x1d3c82]
CALL 0x001a3040
CMP EAX,0x0
JNZ 0x001a293f
MOV dword ptr [RBP + -0x4],0x0
JMP 0x001a2948
LAB_001a293f:
JMP 0x001a2941
LAB_001a2941:
MOV dword ptr [RBP + -0x4],0x1
LAB_001a2948:
MOV EAX,dword ptr [RBP + -0x4]
ADD RSP,0x10
POP RBP
RET
|
int4 my_coll_parser_scan_reset_sequence(long param_1)
{
int iVar1;
int *piVar2;
my_coll_rule_reset(param_1 + 0x50);
piVar2 = (int *)my_coll_parser_curr(param_1);
if (*piVar2 == 7) {
my_coll_parser_scan_reset_before(param_1);
}
piVar2 = (int *)my_coll_parser_curr(param_1);
if (*piVar2 == 7) {
iVar1 = my_coll_parser_scan_logical_position(param_1,param_1 + 0x50,1);
if (iVar1 == 0) {
return 0;
}
}
else {
iVar1 = my_coll_parser_scan_character_list(param_1,param_1 + 0x50,10,"Expansion");
if (iVar1 == 0) {
return 0;
}
}
return 1;
}
|
|
58,032
|
Rpl_filter::db_ok_with_wild_table(char const*)
|
eloqsql/sql/rpl_filter.cc
|
bool
Rpl_filter::db_ok_with_wild_table(const char *db)
{
DBUG_ENTER("Rpl_filter::db_ok_with_wild_table");
char hash_key[SAFE_NAME_LEN+2];
char *end;
int len;
end= strmov(hash_key, db);
*end++= '.';
len= (int)(end - hash_key);
if (wild_do_table_inited && find_wild(&wild_do_table, hash_key, len))
{
DBUG_PRINT("return",("1"));
DBUG_RETURN(1);
}
if (wild_ignore_table_inited && find_wild(&wild_ignore_table, hash_key, len))
{
DBUG_PRINT("return",("0"));
DBUG_RETURN(0);
}
/*
If no explicit rule found and there was a do list, do not replicate.
If there was no do list, go ahead
*/
DBUG_PRINT("return",("db=%s,retval=%d", db, !wild_do_table_inited));
DBUG_RETURN(!wild_do_table_inited);
}
|
O0
|
cpp
|
Rpl_filter::db_ok_with_wild_table(char const*):
pushq %rbp
movq %rsp, %rbp
subq $0x160, %rsp # imm = 0x160
movq %fs:0x28, %rax
movq %rax, -0x8(%rbp)
movq %rdi, -0x130(%rbp)
movq %rsi, -0x138(%rbp)
movq -0x130(%rbp), %rax
movq %rax, -0x150(%rbp)
leaq -0x120(%rbp), %rdi
movq -0x138(%rbp), %rsi
callq 0x3bb10
movq %rax, %rcx
movq -0x150(%rbp), %rax
movq %rcx, -0x140(%rbp)
movq -0x140(%rbp), %rcx
movq %rcx, %rdx
addq $0x1, %rdx
movq %rdx, -0x140(%rbp)
movb $0x2e, (%rcx)
movq -0x140(%rbp), %rcx
leaq -0x120(%rbp), %rdx
subq %rdx, %rcx
movl %ecx, -0x144(%rbp)
testb $0x1, 0x137(%rax)
je 0x60f08
movq -0x150(%rbp), %rdi
movq %rdi, %rsi
addq $0xe0, %rsi
leaq -0x120(%rbp), %rdx
movl -0x144(%rbp), %ecx
callq 0x60fb0
cmpq $0x0, %rax
je 0x60f08
jmp 0x60efb
jmp 0x60efd
jmp 0x60eff
movb $0x1, -0x121(%rbp)
jmp 0x60f6d
movq -0x150(%rbp), %rax
testb $0x1, 0x138(%rax)
je 0x60f50
movq -0x150(%rbp), %rdi
movq %rdi, %rsi
addq $0x108, %rsi # imm = 0x108
leaq -0x120(%rbp), %rdx
movl -0x144(%rbp), %ecx
callq 0x60fb0
cmpq $0x0, %rax
je 0x60f50
jmp 0x60f43
jmp 0x60f45
jmp 0x60f47
movb $0x0, -0x121(%rbp)
jmp 0x60f6d
jmp 0x60f52
jmp 0x60f54
jmp 0x60f56
movq -0x150(%rbp), %rax
movb 0x137(%rax), %al
xorb $-0x1, %al
andb $0x1, %al
movb %al, -0x121(%rbp)
movb -0x121(%rbp), %al
movb %al, -0x151(%rbp)
movq %fs:0x28, %rax
movq -0x8(%rbp), %rcx
cmpq %rcx, %rax
jne 0x60f9c
movb -0x151(%rbp), %al
andb $0x1, %al
addq $0x160, %rsp # imm = 0x160
popq %rbp
retq
callq 0x3b340
nopw %cs:(%rax,%rax)
|
_ZN10Rpl_filter21db_ok_with_wild_tableEPKc:
push rbp
mov rbp, rsp
sub rsp, 160h
mov rax, fs:28h
mov [rbp+var_8], rax
mov [rbp+var_130], rdi
mov [rbp+var_138], rsi
mov rax, [rbp+var_130]
mov [rbp+var_150], rax
lea rdi, [rbp+var_120]
mov rsi, [rbp+var_138]
call _stpcpy
mov rcx, rax
mov rax, [rbp+var_150]
mov [rbp+var_140], rcx
mov rcx, [rbp+var_140]
mov rdx, rcx
add rdx, 1
mov [rbp+var_140], rdx
mov byte ptr [rcx], 2Eh ; '.'
mov rcx, [rbp+var_140]
lea rdx, [rbp+var_120]
sub rcx, rdx
mov [rbp+var_144], ecx
test byte ptr [rax+137h], 1
jz short loc_60F08
mov rdi, [rbp+var_150]
mov rsi, rdi
add rsi, 0E0h
lea rdx, [rbp+var_120]
mov ecx, [rbp+var_144]
call _ZN10Rpl_filter9find_wildEP16st_dynamic_arrayPKci; Rpl_filter::find_wild(st_dynamic_array *,char const*,int)
cmp rax, 0
jz short loc_60F08
jmp short $+2
loc_60EFB:
jmp short $+2
loc_60EFD:
jmp short $+2
loc_60EFF:
mov [rbp+var_121], 1
jmp short loc_60F6D
loc_60F08:
mov rax, [rbp+var_150]
test byte ptr [rax+138h], 1
jz short loc_60F50
mov rdi, [rbp+var_150]
mov rsi, rdi
add rsi, 108h
lea rdx, [rbp+var_120]
mov ecx, [rbp+var_144]
call _ZN10Rpl_filter9find_wildEP16st_dynamic_arrayPKci; Rpl_filter::find_wild(st_dynamic_array *,char const*,int)
cmp rax, 0
jz short loc_60F50
jmp short $+2
loc_60F43:
jmp short $+2
loc_60F45:
jmp short $+2
loc_60F47:
mov [rbp+var_121], 0
jmp short loc_60F6D
loc_60F50:
jmp short $+2
loc_60F52:
jmp short $+2
loc_60F54:
jmp short $+2
loc_60F56:
mov rax, [rbp+var_150]
mov al, [rax+137h]
xor al, 0FFh
and al, 1
mov [rbp+var_121], al
loc_60F6D:
mov al, [rbp+var_121]
mov [rbp+var_151], al
mov rax, fs:28h
mov rcx, [rbp+var_8]
cmp rax, rcx
jnz short loc_60F9C
mov al, [rbp+var_151]
and al, 1
add rsp, 160h
pop rbp
retn
loc_60F9C:
call ___stack_chk_fail
|
bool Rpl_filter::db_ok_with_wild_table(Rpl_filter *this, const char *a2)
{
_BYTE *v2; // rcx
unsigned int v4; // [rsp+1Ch] [rbp-144h]
_BYTE v6[280]; // [rsp+40h] [rbp-120h] BYREF
unsigned long long v7; // [rsp+158h] [rbp-8h]
v7 = __readfsqword(0x28u);
v2 = (_BYTE *)stpcpy(v6, a2);
*v2 = 46;
v4 = v2 + 1 - v6;
return (*((_BYTE *)this + 311) & 1) != 0 && Rpl_filter::find_wild(this, (char *)this + 224, v6, v4)
|| ((*((_BYTE *)this + 312) & 1) == 0 || !Rpl_filter::find_wild(this, (char *)this + 264, v6, v4))
&& (*((_BYTE *)this + 311) & 1) == 0;
}
|
db_ok_with_wild_table:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x160
MOV RAX,qword ptr FS:[0x28]
MOV qword ptr [RBP + -0x8],RAX
MOV qword ptr [RBP + -0x130],RDI
MOV qword ptr [RBP + -0x138],RSI
MOV RAX,qword ptr [RBP + -0x130]
MOV qword ptr [RBP + -0x150],RAX
LEA RDI,[RBP + -0x120]
MOV RSI,qword ptr [RBP + -0x138]
CALL 0x0013bb10
MOV RCX,RAX
MOV RAX,qword ptr [RBP + -0x150]
MOV qword ptr [RBP + -0x140],RCX
MOV RCX,qword ptr [RBP + -0x140]
MOV RDX,RCX
ADD RDX,0x1
MOV qword ptr [RBP + -0x140],RDX
MOV byte ptr [RCX],0x2e
MOV RCX,qword ptr [RBP + -0x140]
LEA RDX,[RBP + -0x120]
SUB RCX,RDX
MOV dword ptr [RBP + -0x144],ECX
TEST byte ptr [RAX + 0x137],0x1
JZ 0x00160f08
MOV RDI,qword ptr [RBP + -0x150]
MOV RSI,RDI
ADD RSI,0xe0
LEA RDX,[RBP + -0x120]
MOV ECX,dword ptr [RBP + -0x144]
CALL 0x00160fb0
CMP RAX,0x0
JZ 0x00160f08
JMP 0x00160efb
LAB_00160efb:
JMP 0x00160efd
LAB_00160efd:
JMP 0x00160eff
LAB_00160eff:
MOV byte ptr [RBP + -0x121],0x1
JMP 0x00160f6d
LAB_00160f08:
MOV RAX,qword ptr [RBP + -0x150]
TEST byte ptr [RAX + 0x138],0x1
JZ 0x00160f50
MOV RDI,qword ptr [RBP + -0x150]
MOV RSI,RDI
ADD RSI,0x108
LEA RDX,[RBP + -0x120]
MOV ECX,dword ptr [RBP + -0x144]
CALL 0x00160fb0
CMP RAX,0x0
JZ 0x00160f50
JMP 0x00160f43
LAB_00160f43:
JMP 0x00160f45
LAB_00160f45:
JMP 0x00160f47
LAB_00160f47:
MOV byte ptr [RBP + -0x121],0x0
JMP 0x00160f6d
LAB_00160f50:
JMP 0x00160f52
LAB_00160f52:
JMP 0x00160f54
LAB_00160f54:
JMP 0x00160f56
LAB_00160f56:
MOV RAX,qword ptr [RBP + -0x150]
MOV AL,byte ptr [RAX + 0x137]
XOR AL,0xff
AND AL,0x1
MOV byte ptr [RBP + -0x121],AL
LAB_00160f6d:
MOV AL,byte ptr [RBP + -0x121]
MOV byte ptr [RBP + -0x151],AL
MOV RAX,qword ptr FS:[0x28]
MOV RCX,qword ptr [RBP + -0x8]
CMP RAX,RCX
JNZ 0x00160f9c
MOV AL,byte ptr [RBP + -0x151]
AND AL,0x1
ADD RSP,0x160
POP RBP
RET
LAB_00160f9c:
CALL 0x0013b340
|
/* Rpl_filter::db_ok_with_wild_table(char const*) */
int8 __thiscall Rpl_filter::db_ok_with_wild_table(Rpl_filter *this,char *param_1)
{
char *pcVar1;
long lVar2;
int iVar3;
long in_FS_OFFSET;
byte local_129;
char local_128 [280];
long local_10;
local_10 = *(long *)(in_FS_OFFSET + 0x28);
pcVar1 = stpcpy(local_128,param_1);
*pcVar1 = '.';
iVar3 = ((int)pcVar1 + 1) - (int)local_128;
if (((byte)this[0x137] & 1) != 0) {
lVar2 = find_wild(this,(st_dynamic_array *)(this + 0xe0),local_128,iVar3);
if (lVar2 != 0) {
local_129 = 1;
goto LAB_00160f6d;
}
}
if (((byte)this[0x138] & 1) != 0) {
lVar2 = find_wild(this,(st_dynamic_array *)(this + 0x108),local_128,iVar3);
if (lVar2 != 0) {
local_129 = 0;
goto LAB_00160f6d;
}
}
local_129 = ((byte)this[0x137] ^ 0xff) & 1;
LAB_00160f6d:
if (*(long *)(in_FS_OFFSET + 0x28) == local_10) {
return CONCAT71((int7)((ulong)*(long *)(in_FS_OFFSET + 0x28) >> 8),local_129);
}
/* WARNING: Subroutine does not return */
__stack_chk_fail();
}
|
|
58,033
|
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>::json_value::json_value(nlohmann::json_abi_v3_11_3::detail::value_t)
|
llama.cpp/common/json.hpp
|
json_value(value_t t)
{
switch (t)
{
case value_t::object:
{
object = create<object_t>();
break;
}
case value_t::array:
{
array = create<array_t>();
break;
}
case value_t::string:
{
string = create<string_t>("");
break;
}
case value_t::binary:
{
binary = create<binary_t>();
break;
}
case value_t::boolean:
{
boolean = static_cast<boolean_t>(false);
break;
}
case value_t::number_integer:
{
number_integer = static_cast<number_integer_t>(0);
break;
}
case value_t::number_unsigned:
{
number_unsigned = static_cast<number_unsigned_t>(0);
break;
}
case value_t::number_float:
{
number_float = static_cast<number_float_t>(0.0);
break;
}
case value_t::null:
{
object = nullptr; // silence warning, see #821
break;
}
case value_t::discarded:
default:
{
object = nullptr; // silence warning, see #821
if (JSON_HEDLEY_UNLIKELY(t == value_t::null))
{
JSON_THROW(other_error::create(500, "961c151d2e87f2686a955a9be24d316f1362bf21 3.11.3", nullptr)); // LCOV_EXCL_LINE
}
break;
}
}
}
|
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>::json_value::json_value(nlohmann::json_abi_v3_11_3::detail::value_t):
pushq %rbx
movq %rdi, %rbx
cmpl $0x8, %esi
ja 0x88b31
movl %esi, %eax
leaq 0x8d6c0(%rip), %rcx # 0x1161e8
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movq $0x0, (%rbx)
jmp 0x88b89
movl $0x20, %edi
jmp 0x88b4b
movb $0x0, (%rbx)
jmp 0x88b89
movl $0x18, %edi
callq 0x20220
xorps %xmm0, %xmm0
movups %xmm0, (%rax)
movq $0x0, 0x10(%rax)
jmp 0x88b86
leaq 0x9a06a(%rip), %rdi # 0x122bd1
callq 0x88b8c
jmp 0x88b86
movl $0x28, %edi
callq 0x20220
xorps %xmm0, %xmm0
movups %xmm0, (%rax)
movups %xmm0, 0x10(%rax)
movb $0x0, 0x20(%rax)
movq %rax, (%rbx)
popq %rbx
retq
nop
|
_ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE10json_valueC2ENS0_6detail7value_tE:
push rbx
mov rbx, rdi
cmp esi, 8; switch 9 cases
ja short def_88B2F; jumptable 0000000000088B2F default case, cases 0,5-7
mov eax, esi
lea rcx, jpt_88B2F
movsxd rax, ds:(jpt_88B2F - 1161E8h)[rcx+rax*4]
add rax, rcx
jmp rax; switch jump
def_88B2F:
mov qword ptr [rbx], 0; jumptable 0000000000088B2F default case, cases 0,5-7
jmp short loc_88B89
loc_88B3A:
mov edi, 20h ; ' '; jumptable 0000000000088B2F case 1
jmp short loc_88B4B
loc_88B41:
mov byte ptr [rbx], 0; jumptable 0000000000088B2F case 4
jmp short loc_88B89
loc_88B46:
mov edi, 18h; jumptable 0000000000088B2F case 2
loc_88B4B:
call __Znwm; operator new(ulong)
xorps xmm0, xmm0
movups xmmword ptr [rax], xmm0
mov qword ptr [rax+10h], 0
jmp short loc_88B86
loc_88B60:
lea rdi, aExampleToolCal+1Dh; jumptable 0000000000088B2F case 3
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE6createIS9_JRA1_KcEEEPT_DpOT0_; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::create<std::string,char const(&)[1]>(char const(&)[1] &&)
jmp short loc_88B86
loc_88B6E:
mov edi, 28h ; '('; jumptable 0000000000088B2F case 8
call __Znwm; operator new(ulong)
xorps xmm0, xmm0
movups xmmword ptr [rax], xmm0
movups xmmword ptr [rax+10h], xmm0
mov byte ptr [rax+20h], 0
loc_88B86:
mov [rbx], rax
loc_88B89:
pop rbx
retn
|
long long nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::json_value::json_value(
_BYTE *a1,
unsigned int a2)
{
long long result; // rax
unsigned long long v4; // rdi
result = a2;
switch ( a2 )
{
case 1u:
v4 = 32LL;
goto LABEL_6;
case 2u:
v4 = 24LL;
LABEL_6:
result = operator new(v4);
*(_OWORD *)result = 0LL;
*(_QWORD *)(result + 16) = 0LL;
goto LABEL_9;
case 3u:
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>::create<std::string,char const(&)[1]>("");
goto LABEL_9;
case 4u:
*a1 = 0;
return result;
case 8u:
result = operator new(0x28uLL);
*(_OWORD *)result = 0LL;
*(_OWORD *)(result + 16) = 0LL;
*(_BYTE *)(result + 32) = 0;
LABEL_9:
*(_QWORD *)a1 = result;
break;
default:
*(_QWORD *)a1 = 0LL;
break;
}
return result;
}
|
json_value:
PUSH RBX
MOV RBX,RDI
CMP ESI,0x8
JA 0x00188b31
MOV EAX,ESI
LEA RCX,[0x2161e8]
MOVSXD RAX,dword ptr [RCX + RAX*0x4]
ADD RAX,RCX
switchD:
JMP RAX
caseD_0:
MOV qword ptr [RBX],0x0
JMP 0x00188b89
caseD_1:
MOV EDI,0x20
JMP 0x00188b4b
caseD_4:
MOV byte ptr [RBX],0x0
JMP 0x00188b89
caseD_2:
MOV EDI,0x18
LAB_00188b4b:
CALL 0x00120220
XORPS XMM0,XMM0
MOVUPS xmmword ptr [RAX],XMM0
MOV qword ptr [RAX + 0x10],0x0
JMP 0x00188b86
caseD_3:
LEA RDI,[0x222bd1]
CALL 0x00188b8c
JMP 0x00188b86
caseD_8:
MOV EDI,0x28
CALL 0x00120220
XORPS XMM0,XMM0
MOVUPS xmmword ptr [RAX],XMM0
MOVUPS xmmword ptr [RAX + 0x10],XMM0
MOV byte ptr [RAX + 0x20],0x0
LAB_00188b86:
MOV qword ptr [RBX],RAX
LAB_00188b89:
POP RBX
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>::json_value::json_value(nlohmann::json_abi_v3_11_3::detail::value_t) */
void __thiscall
nlohmann::json_abi_v3_11_3::
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::json_value::json_value(json_value *this,int4 param_2)
{
string *psVar1;
ulong uVar2;
switch(param_2) {
default:
*(int8 *)this = 0;
return;
case 1:
uVar2 = 0x20;
break;
case 2:
uVar2 = 0x18;
break;
case 3:
psVar1 = create<std::__cxx11::string,char_const(&)[1]>("");
goto LAB_00188b86;
case 4:
*this = (json_value)0x0;
return;
case 8:
psVar1 = (string *)operator_new(0x28);
*(int8 *)psVar1 = 0;
*(int8 *)(psVar1 + 8) = 0;
*(int8 *)(psVar1 + 0x10) = 0;
*(int8 *)(psVar1 + 0x18) = 0;
psVar1[0x20] = (string)0x0;
goto LAB_00188b86;
}
psVar1 = (string *)operator_new(uVar2);
*(int8 *)psVar1 = 0;
*(int8 *)(psVar1 + 8) = 0;
*(int8 *)(psVar1 + 0x10) = 0;
LAB_00188b86:
*(string **)this = psVar1;
return;
}
|
|
58,034
|
my_fprintf
|
eloqsql/strings/my_vsnprintf.c
|
int my_fprintf(FILE *stream, const char* format, ...)
{
int result;
va_list args;
va_start(args, format);
result= my_vfprintf(stream, format, args);
va_end(args);
return result;
}
|
O0
|
c
|
my_fprintf:
pushq %rbp
movq %rsp, %rbp
subq $0xe0, %rsp
testb %al, %al
je 0x75d28
movaps %xmm0, -0xb0(%rbp)
movaps %xmm1, -0xa0(%rbp)
movaps %xmm2, -0x90(%rbp)
movaps %xmm3, -0x80(%rbp)
movaps %xmm4, -0x70(%rbp)
movaps %xmm5, -0x60(%rbp)
movaps %xmm6, -0x50(%rbp)
movaps %xmm7, -0x40(%rbp)
movq %r9, -0xb8(%rbp)
movq %r8, -0xc0(%rbp)
movq %rcx, -0xc8(%rbp)
movq %rdx, -0xd0(%rbp)
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
leaq -0xe0(%rbp), %rax
movq %rax, -0x20(%rbp)
leaq 0x10(%rbp), %rax
movq %rax, -0x28(%rbp)
movl $0x30, -0x2c(%rbp)
movl $0x10, -0x30(%rbp)
movq -0x8(%rbp), %rdi
movq -0x10(%rbp), %rsi
leaq -0x30(%rbp), %rdx
callq 0x75b40
movl %eax, -0x14(%rbp)
movl -0x14(%rbp), %eax
addq $0xe0, %rsp
popq %rbp
retq
nopl (%rax)
|
my_fprintf:
push rbp
mov rbp, rsp
sub rsp, 0E0h
test al, al
jz short loc_75D28
movaps [rbp+var_B0], xmm0
movaps [rbp+var_A0], xmm1
movaps [rbp+var_90], xmm2
movaps [rbp+var_80], xmm3
movaps [rbp+var_70], xmm4
movaps [rbp+var_60], xmm5
movaps [rbp+var_50], xmm6
movaps [rbp+var_40], xmm7
loc_75D28:
mov [rbp+var_B8], r9
mov [rbp+var_C0], r8
mov [rbp+var_C8], rcx
mov [rbp+var_D0], rdx
mov [rbp+var_8], rdi
mov [rbp+var_10], rsi
lea rax, [rbp+var_E0]
mov [rbp+var_20], rax
lea rax, [rbp+arg_0]
mov [rbp+var_28], rax
mov [rbp+var_2C], 30h ; '0'
mov [rbp+var_30], 10h
mov rdi, [rbp+var_8]
mov rsi, [rbp+var_10]
lea rdx, [rbp+var_30]
call my_vfprintf
mov [rbp+var_14], eax
mov eax, [rbp+var_14]
add rsp, 0E0h
pop rbp
retn
|
long long my_fprintf(
long long a1,
char *a2,
long long a3,
long long a4,
long long a5,
long long a6,
__m128 a7,
__m128 a8,
__m128 a9,
__m128 a10,
__m128 a11,
__m128 a12,
__m128 a13,
__m128 a14,
char a15)
{
char v16; // [rsp+0h] [rbp-E0h] BYREF
long long v17; // [rsp+10h] [rbp-D0h]
long long v18; // [rsp+18h] [rbp-C8h]
long long v19; // [rsp+20h] [rbp-C0h]
long long v20; // [rsp+28h] [rbp-B8h]
__m128 v21; // [rsp+30h] [rbp-B0h]
__m128 v22; // [rsp+40h] [rbp-A0h]
__m128 v23; // [rsp+50h] [rbp-90h]
__m128 v24; // [rsp+60h] [rbp-80h]
__m128 v25; // [rsp+70h] [rbp-70h]
__m128 v26; // [rsp+80h] [rbp-60h]
__m128 v27; // [rsp+90h] [rbp-50h]
__m128 v28; // [rsp+A0h] [rbp-40h]
int v29[2]; // [rsp+B0h] [rbp-30h] BYREF
char *v30; // [rsp+B8h] [rbp-28h]
char *v31; // [rsp+C0h] [rbp-20h]
char *v32; // [rsp+D0h] [rbp-10h]
long long v33; // [rsp+D8h] [rbp-8h]
v21 = a7;
v22 = a8;
v23 = a9;
v24 = a10;
v25 = a11;
v26 = a12;
v27 = a13;
v28 = a14;
v20 = a6;
v19 = a5;
v18 = a4;
v17 = a3;
v33 = a1;
v32 = a2;
v31 = &v16;
v30 = &a15;
v29[1] = 48;
v29[0] = 16;
return (unsigned int)my_vfprintf(a1, a2, v29);
}
|
my_fprintf:
PUSH RBP
MOV RBP,RSP
SUB RSP,0xe0
TEST AL,AL
JZ 0x00175d28
MOVAPS xmmword ptr [RBP + -0xb0],XMM0
MOVAPS xmmword ptr [RBP + -0xa0],XMM1
MOVAPS xmmword ptr [RBP + -0x90],XMM2
MOVAPS xmmword ptr [RBP + -0x80],XMM3
MOVAPS xmmword ptr [RBP + -0x70],XMM4
MOVAPS xmmword ptr [RBP + -0x60],XMM5
MOVAPS xmmword ptr [RBP + -0x50],XMM6
MOVAPS xmmword ptr [RBP + -0x40],XMM7
LAB_00175d28:
MOV qword ptr [RBP + -0xb8],R9
MOV qword ptr [RBP + -0xc0],R8
MOV qword ptr [RBP + -0xc8],RCX
MOV qword ptr [RBP + -0xd0],RDX
MOV qword ptr [RBP + -0x8],RDI
MOV qword ptr [RBP + -0x10],RSI
LEA RAX,[RBP + -0xe0]
MOV qword ptr [RBP + -0x20],RAX
LEA RAX,[RBP + 0x10]
MOV qword ptr [RBP + -0x28],RAX
MOV dword ptr [RBP + -0x2c],0x30
MOV dword ptr [RBP + -0x30],0x10
MOV RDI,qword ptr [RBP + -0x8]
MOV RSI,qword ptr [RBP + -0x10]
LEA RDX,[RBP + -0x30]
CALL 0x00175b40
MOV dword ptr [RBP + -0x14],EAX
MOV EAX,dword ptr [RBP + -0x14]
ADD RSP,0xe0
POP RBP
RET
|
int4
my_fprintf(int8 param_1,int8 param_2,int8 param_3,int8 param_4,
int8 param_5,int8 param_6,int8 param_7,int8 param_8,
int8 param_9,int8 param_10,int8 param_11,int8 param_12,
int8 param_13,int8 param_14)
{
char in_AL;
int4 uVar1;
int1 local_e8 [16];
int8 local_d8;
int8 local_d0;
int8 local_c8;
int8 local_c0;
int8 local_b8;
int8 local_a8;
int8 local_98;
int8 local_88;
int8 local_78;
int8 local_68;
int8 local_58;
int8 local_48;
int4 local_38;
int4 local_34;
int1 *local_30;
int1 *local_28;
int8 local_18;
int8 local_10;
if (in_AL != '\0') {
local_b8 = param_1;
local_a8 = param_2;
local_98 = param_3;
local_88 = param_4;
local_78 = param_5;
local_68 = param_6;
local_58 = param_7;
local_48 = param_8;
}
local_28 = local_e8;
local_30 = &stack0x00000008;
local_34 = 0x30;
local_38 = 0x10;
local_d8 = param_11;
local_d0 = param_12;
local_c8 = param_13;
local_c0 = param_14;
local_18 = param_10;
local_10 = param_9;
uVar1 = my_vfprintf(param_9,param_10,&local_38);
return uVar1;
}
|
|
58,035
|
js_iterator_wrap_finalizer
|
bluesky950520[P]quickjs/quickjs.c
|
static void js_iterator_wrap_finalizer(JSRuntime *rt, JSValue val)
{
JSObject *p = JS_VALUE_GET_OBJ(val);
JSIteratorWrapData *it = p->u.iterator_wrap_data;
if (it) {
JS_FreeValueRT(rt, it->wrapped_iter);
JS_FreeValueRT(rt, it->wrapped_next);
js_free_rt(rt, it);
}
}
|
O1
|
c
|
js_iterator_wrap_finalizer:
pushq %r14
pushq %rbx
pushq %rax
movq 0x30(%rsi), %rbx
testq %rbx, %rbx
je 0x3b103
movq %rdi, %r14
movq (%rbx), %rsi
movq 0x8(%rbx), %rdx
callq 0x1d8c6
movq 0x10(%rbx), %rsi
movq 0x18(%rbx), %rdx
movq %r14, %rdi
callq 0x1d8c6
decq 0x28(%r14)
movq %rbx, %rdi
callq *0x20(%r14)
movq 0x10(%r14), %rcx
movq 0x30(%r14), %rdx
subq %rax, %rdx
addq $-0x8, %rdx
movq %rdx, 0x30(%r14)
movq 0x40(%r14), %rdi
movq %rbx, %rsi
addq $0x8, %rsp
popq %rbx
popq %r14
jmpq *%rcx
addq $0x8, %rsp
popq %rbx
popq %r14
retq
|
js_iterator_wrap_finalizer:
push r14
push rbx
push rax
mov rbx, [rsi+30h]
test rbx, rbx
jz short loc_3B103
mov r14, rdi
mov rsi, [rbx]
mov rdx, [rbx+8]
call JS_FreeValueRT
mov rsi, [rbx+10h]
mov rdx, [rbx+18h]
mov rdi, r14
call JS_FreeValueRT
dec qword ptr [r14+28h]
mov rdi, rbx
call qword ptr [r14+20h]
mov rcx, [r14+10h]
mov rdx, [r14+30h]
sub rdx, rax
add rdx, 0FFFFFFFFFFFFFFF8h
mov [r14+30h], rdx
mov rdi, [r14+40h]
mov rsi, rbx
add rsp, 8
pop rbx
pop r14
jmp rcx
loc_3B103:
add rsp, 8
pop rbx
pop r14
retn
|
long long js_iterator_wrap_finalizer(long long a1, long long a2)
{
long long v2; // rbx
long long v3; // rax
long long ( *v4)(_QWORD, long long); // rcx
long long result; // rax
v2 = *(_QWORD *)(a2 + 48);
if ( v2 )
{
JS_FreeValueRT(a1, *(_DWORD **)v2, *(_QWORD *)(v2 + 8));
JS_FreeValueRT(a1, *(_DWORD **)(v2 + 16), *(_QWORD *)(v2 + 24));
--*(_QWORD *)(a1 + 40);
v3 = (*(long long ( **)(long long))(a1 + 32))(v2);
v4 = *(long long ( **)(_QWORD, long long))(a1 + 16);
*(_QWORD *)(a1 + 48) = *(_QWORD *)(a1 + 48) - v3 - 8;
return v4(*(_QWORD *)(a1 + 64), v2);
}
return result;
}
| |||
58,036
|
js_iterator_wrap_finalizer
|
bluesky950520[P]quickjs/quickjs.c
|
static void js_iterator_wrap_finalizer(JSRuntime *rt, JSValue val)
{
JSObject *p = JS_VALUE_GET_OBJ(val);
JSIteratorWrapData *it = p->u.iterator_wrap_data;
if (it) {
JS_FreeValueRT(rt, it->wrapped_iter);
JS_FreeValueRT(rt, it->wrapped_next);
js_free_rt(rt, it);
}
}
|
O2
|
c
|
js_iterator_wrap_finalizer:
pushq %r14
pushq %rbx
pushq %rax
movq 0x30(%rsi), %rbx
testq %rbx, %rbx
je 0x33fa1
movq %rdi, %r14
movq (%rbx), %rsi
movq 0x8(%rbx), %rdx
callq 0x18031
movq 0x10(%rbx), %rsi
movq 0x18(%rbx), %rdx
movq %r14, %rdi
callq 0x18031
movq %r14, %rdi
movq %rbx, %rsi
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0x170cb
addq $0x8, %rsp
popq %rbx
popq %r14
retq
|
js_iterator_wrap_finalizer:
push r14
push rbx
push rax
mov rbx, [rsi+30h]
test rbx, rbx
jz short loc_33FA1
mov r14, rdi
mov rsi, [rbx]
mov rdx, [rbx+8]
call JS_FreeValueRT
mov rsi, [rbx+10h]
mov rdx, [rbx+18h]
mov rdi, r14
call JS_FreeValueRT
mov rdi, r14
mov rsi, rbx
add rsp, 8
pop rbx
pop r14
jmp js_free_rt
loc_33FA1:
add rsp, 8
pop rbx
pop r14
retn
|
long long js_iterator_wrap_finalizer(long long a1, long long a2)
{
long long v2; // rbx
long long result; // rax
v2 = *(_QWORD *)(a2 + 48);
if ( v2 )
{
JS_FreeValueRT(a1, *(unsigned int **)v2, *(_QWORD *)(v2 + 8));
JS_FreeValueRT(a1, *(unsigned int **)(v2 + 16), *(_QWORD *)(v2 + 24));
return js_free_rt(a1, v2);
}
return result;
}
|
js_iterator_wrap_finalizer:
PUSH R14
PUSH RBX
PUSH RAX
MOV RBX,qword ptr [RSI + 0x30]
TEST RBX,RBX
JZ 0x00133fa1
MOV R14,RDI
MOV RSI,qword ptr [RBX]
MOV RDX,qword ptr [RBX + 0x8]
CALL 0x00118031
MOV RSI,qword ptr [RBX + 0x10]
MOV RDX,qword ptr [RBX + 0x18]
MOV RDI,R14
CALL 0x00118031
MOV RDI,R14
MOV RSI,RBX
ADD RSP,0x8
POP RBX
POP R14
JMP 0x001170cb
LAB_00133fa1:
ADD RSP,0x8
POP RBX
POP R14
RET
|
void js_iterator_wrap_finalizer(int8 param_1,long param_2)
{
int8 *puVar1;
puVar1 = *(int8 **)(param_2 + 0x30);
if (puVar1 != (int8 *)0x0) {
JS_FreeValueRT(param_1,*puVar1,puVar1[1]);
JS_FreeValueRT(param_1,puVar1[2],puVar1[3]);
js_free_rt(param_1,puVar1);
return;
}
return;
}
|
|
58,037
|
cpu_get_num_math()
|
llama.cpp/common/common.cpp
|
int32_t cpu_get_num_math() {
#if defined(__x86_64__) && defined(__linux__) && !defined(__ANDROID__)
int n_cpu = sysconf(_SC_NPROCESSORS_ONLN);
if (n_cpu < 1) {
return cpu_get_num_physical_cores();
}
if (is_hybrid_cpu()) {
cpu_set_t affinity;
if (!pthread_getaffinity_np(pthread_self(), sizeof(affinity), &affinity)) {
int result = cpu_count_math_cpus(n_cpu);
pthread_setaffinity_np(pthread_self(), sizeof(affinity), &affinity);
if (result > 0) {
return result;
}
}
}
#endif
return cpu_get_num_physical_cores();
}
|
O3
|
cpp
|
cpu_get_num_math():
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x100, %rsp # imm = 0x100
movl $0x54, %edi
callq 0x17650
movq %rax, %rbx
testl %ebx, %ebx
jle 0x53095
movl $0x7, %eax
xorl %ecx, %ecx
movq %rbx, %rsi
cpuid
xchgq %rbx, %rsi
testw %dx, %dx
jns 0x530be
callq 0x177d0
movq %rax, %r14
leaq 0x80(%rsp), %rdx
movl $0x80, %esi
movq %rax, %rdi
callq 0x17c60
testl %eax, %eax
jne 0x530be
xorl %r15d, %r15d
movq %rsp, %r12
xorl %ebp, %ebp
xorps %xmm0, %xmm0
movaps %xmm0, 0x70(%rsp)
movaps %xmm0, 0x60(%rsp)
movaps %xmm0, 0x50(%rsp)
movaps %xmm0, 0x40(%rsp)
movaps %xmm0, 0x30(%rsp)
movaps %xmm0, 0x20(%rsp)
movaps %xmm0, 0x10(%rsp)
movaps %xmm0, (%rsp)
cmpl $0x3ff, %r15d # imm = 0x3FF
ja 0x53037
movl $0x1, %eax
movl %r15d, %ecx
shlq %cl, %rax
movl %r15d, %ecx
shrl $0x6, %ecx
orq %rax, (%rsp,%rcx,8)
movl $0x80, %esi
movq %r14, %rdi
movq %r12, %rdx
callq 0x17730
testl %eax, %eax
jne 0x530a9
xorl %ecx, %ecx
movl $0x1a, %eax
movq %rbx, %rsi
cpuid
xchgq %rbx, %rsi
andl $0xff000000, %eax # imm = 0xFF000000
xorl %ecx, %ecx
cmpl $0x20000000, %eax # imm = 0x20000000
setne %cl
addl %ecx, %ebp
addl %ecx, %r15d
incl %r15d
cmpl %ebx, %r15d
jl 0x52fef
leaq 0x80(%rsp), %rdx
movl $0x80, %esi
movq %r14, %rdi
callq 0x17730
testl %ebp, %ebp
jne 0x530c5
jmp 0x530be
addq $0x100, %rsp # imm = 0x100
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
jmp 0x52bd8
leaq 0x80(%rsp), %rdx
movl $0x80, %esi
movq %r14, %rdi
callq 0x17730
callq 0x52bd8
movl %eax, %ebp
movl %ebp, %eax
addq $0x100, %rsp # imm = 0x100
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
|
_Z16cpu_get_num_mathv:
push rbp
push r15
push r14
push r12
push rbx
sub rsp, 100h
mov edi, 54h ; 'T'
call _sysconf
mov rbx, rax
test ebx, ebx
jle loc_53095
mov eax, 7
xor ecx, ecx
mov rsi, rbx
cpuid
xchg rsi, rbx
test dx, dx
jns loc_530BE
call _pthread_self
mov r14, rax
lea rdx, [rsp+128h+var_A8]
mov esi, 80h
mov rdi, rax
call _pthread_getaffinity_np
test eax, eax
jnz loc_530BE
xor r15d, r15d
mov r12, rsp
xor ebp, ebp
loc_52FEF:
xorps xmm0, xmm0
movaps [rsp+128h+var_B8], xmm0
movaps [rsp+128h+var_C8], xmm0
movaps [rsp+128h+var_D8], xmm0
movaps [rsp+128h+var_E8], xmm0
movaps [rsp+128h+var_F8], xmm0
movaps [rsp+128h+var_108], xmm0
movaps [rsp+128h+var_118], xmm0
movaps [rsp+128h+var_128], xmm0
cmp r15d, 3FFh
ja short loc_53037
mov eax, 1
mov ecx, r15d
shl rax, cl
mov ecx, r15d
shr ecx, 6
or qword ptr [rsp+rcx*8+128h+var_128], rax
loc_53037:
mov esi, 80h
mov rdi, r14
mov rdx, r12
call _pthread_setaffinity_np
test eax, eax
jnz short loc_530A9
xor ecx, ecx
mov eax, 1Ah
mov rsi, rbx
cpuid
xchg rsi, rbx
and eax, 0FF000000h
xor ecx, ecx
cmp eax, 20000000h
setnz cl
add ebp, ecx
add r15d, ecx
inc r15d
cmp r15d, ebx
jl loc_52FEF
lea rdx, [rsp+128h+var_A8]
mov esi, 80h
mov rdi, r14
call _pthread_setaffinity_np
test ebp, ebp
jnz short loc_530C5
jmp short loc_530BE
loc_53095:
add rsp, 100h
pop rbx
pop r12
pop r14
pop r15
pop rbp
jmp _Z26cpu_get_num_physical_coresv; cpu_get_num_physical_cores(void)
loc_530A9:
lea rdx, [rsp+128h+var_A8]
mov esi, 80h
mov rdi, r14
call _pthread_setaffinity_np
loc_530BE:
call _Z26cpu_get_num_physical_coresv; cpu_get_num_physical_cores(void)
mov ebp, eax
loc_530C5:
mov eax, ebp
add rsp, 100h
pop rbx
pop r12
pop r14
pop r15
pop rbp
retn
|
long long cpu_get_num_math(void)
{
long long v0; // rbx
long long v2; // rsi
long long v7; // rbx
long long v8; // rsi
long long v9; // rt0
long long v10; // r14
unsigned int v11; // r15d
unsigned int v12; // ebp
long long v13; // rcx
long long v14; // r8
long long v15; // r9
long long v17; // rsi
long long v22; // rcx
__int128 v24; // [rsp+0h] [rbp-128h] BYREF
__int128 v25; // [rsp+10h] [rbp-118h]
__int128 v26; // [rsp+20h] [rbp-108h]
__int128 v27; // [rsp+30h] [rbp-F8h]
__int128 v28; // [rsp+40h] [rbp-E8h]
__int128 v29; // [rsp+50h] [rbp-D8h]
__int128 v30; // [rsp+60h] [rbp-C8h]
__int128 v31; // [rsp+70h] [rbp-B8h]
_BYTE v32[168]; // [rsp+80h] [rbp-A8h] BYREF
v0 = sysconf(84LL);
if ( (int)v0 <= 0 )
return cpu_get_num_physical_cores();
_RAX = 7LL;
v2 = v0;
__asm { cpuid }
v9 = v2;
v8 = _RBX;
v7 = v9;
if ( (_RDX & 0x8000u) != 0LL )
{
v10 = pthread_self(84LL, v8, _RDX, _RCX);
if ( !(unsigned int)pthread_getaffinity_np(v10, 128LL, v32) )
{
v11 = 0;
v12 = 0;
do
{
v31 = 0LL;
v30 = 0LL;
v29 = 0LL;
v28 = 0LL;
v27 = 0LL;
v26 = 0LL;
v25 = 0LL;
v24 = 0LL;
if ( v11 <= 0x3FF )
*((_QWORD *)&v24 + (v11 >> 6)) |= 1LL << v11;
if ( (unsigned int)((long long ( *)(long long, long long, __int128 *))pthread_setaffinity_np)(
v10,
128LL,
&v24) )
{
pthread_setaffinity_np(
v10,
128LL,
v32,
v13,
v14,
v15,
v24,
*((_QWORD *)&v24 + 1),
v25,
*((_QWORD *)&v25 + 1),
v26,
*((_QWORD *)&v26 + 1),
v27,
*((_QWORD *)&v27 + 1),
v28,
*((_QWORD *)&v28 + 1),
v29,
*((_QWORD *)&v29 + 1),
v30,
*((_QWORD *)&v30 + 1),
v31,
*((_QWORD *)&v31 + 1));
return (unsigned int)cpu_get_num_physical_cores();
}
_RAX = 26LL;
v17 = v7;
__asm { cpuid }
v7 = v17;
v22 = (_RAX & 0xFF000000) != 0x20000000;
v12 += v22;
v11 += v22 + 1;
}
while ( (int)v11 < (int)v17 );
pthread_setaffinity_np(
v10,
128LL,
v32,
v22,
v14,
v15,
v24,
*((_QWORD *)&v24 + 1),
v25,
*((_QWORD *)&v25 + 1),
v26,
*((_QWORD *)&v26 + 1),
v27,
*((_QWORD *)&v27 + 1),
v28,
*((_QWORD *)&v28 + 1),
v29,
*((_QWORD *)&v29 + 1),
v30,
*((_QWORD *)&v30 + 1),
v31,
*((_QWORD *)&v31 + 1));
if ( v12 )
return v12;
}
}
return (unsigned int)cpu_get_num_physical_cores();
}
|
cpu_get_num_math:
PUSH RBP
PUSH R15
PUSH R14
PUSH R12
PUSH RBX
SUB RSP,0x100
MOV EDI,0x54
CALL 0x00117650
MOV RBX,RAX
TEST EBX,EBX
JLE 0x00153095
MOV EAX,0x7
XOR ECX,ECX
MOV RSI,RBX
CPUID
XCHG RBX,RSI
TEST DX,DX
JNS 0x001530be
CALL 0x001177d0
MOV R14,RAX
LEA RDX,[RSP + 0x80]
MOV ESI,0x80
MOV RDI,RAX
CALL 0x00117c60
TEST EAX,EAX
JNZ 0x001530be
XOR R15D,R15D
MOV R12,RSP
XOR EBP,EBP
LAB_00152fef:
XORPS XMM0,XMM0
MOVAPS xmmword ptr [RSP + 0x70],XMM0
MOVAPS xmmword ptr [RSP + 0x60],XMM0
MOVAPS xmmword ptr [RSP + 0x50],XMM0
MOVAPS xmmword ptr [RSP + 0x40],XMM0
MOVAPS xmmword ptr [RSP + 0x30],XMM0
MOVAPS xmmword ptr [RSP + 0x20],XMM0
MOVAPS xmmword ptr [RSP + 0x10],XMM0
MOVAPS xmmword ptr [RSP],XMM0
CMP R15D,0x3ff
JA 0x00153037
MOV EAX,0x1
MOV ECX,R15D
SHL RAX,CL
MOV ECX,R15D
SHR ECX,0x6
OR qword ptr [RSP + RCX*0x8],RAX
LAB_00153037:
MOV ESI,0x80
MOV RDI,R14
MOV RDX,R12
CALL 0x00117730
TEST EAX,EAX
JNZ 0x001530a9
XOR ECX,ECX
MOV EAX,0x1a
MOV RSI,RBX
CPUID
XCHG RBX,RSI
AND EAX,0xff000000
XOR ECX,ECX
CMP EAX,0x20000000
SETNZ CL
ADD EBP,ECX
ADD R15D,ECX
INC R15D
CMP R15D,EBX
JL 0x00152fef
LEA RDX,[RSP + 0x80]
MOV ESI,0x80
MOV RDI,R14
CALL 0x00117730
TEST EBP,EBP
JNZ 0x001530c5
JMP 0x001530be
LAB_00153095:
ADD RSP,0x100
POP RBX
POP R12
POP R14
POP R15
POP RBP
JMP 0x00152bd8
LAB_001530a9:
LEA RDX,[RSP + 0x80]
MOV ESI,0x80
MOV RDI,R14
CALL 0x00117730
LAB_001530be:
CALL 0x00152bd8
MOV EBP,EAX
LAB_001530c5:
MOV EAX,EBP
ADD RSP,0x100
POP RBX
POP R12
POP R14
POP R15
POP RBP
RET
|
/* WARNING: Removing unreachable block (ram,0x00153055) */
/* WARNING: Removing unreachable block (ram,0x00152fb4) */
/* WARNING: Unknown calling convention -- yet parameter storage is locked */
/* cpu_get_num_math() */
ulong cpu_get_num_math(void)
{
long lVar1;
uint *puVar2;
uint uVar3;
int iVar4;
long lVar5;
pthread_t __th;
ulong uVar6;
uint uVar7;
uint uVar8;
cpu_set_t local_128;
cpu_set_t local_a8;
lVar5 = sysconf(0x54);
if ((int)lVar5 < 1) {
uVar6 = cpu_get_num_physical_cores();
return uVar6;
}
lVar1 = cpuid_Extended_Feature_Enumeration_info(7);
if ((short)*(int4 *)(lVar1 + 8) < 0) {
__th = pthread_self();
iVar4 = pthread_getaffinity_np(__th,0x80,&local_a8);
if (iVar4 == 0) {
uVar8 = 0;
uVar7 = 0;
do {
local_128.__bits[0xe] = 0;
local_128.__bits[0xf] = 0;
local_128.__bits[0xc] = 0;
local_128.__bits[0xd] = 0;
local_128.__bits[10] = 0;
local_128.__bits[0xb] = 0;
local_128.__bits[8] = 0;
local_128.__bits[9] = 0;
local_128.__bits[6] = 0;
local_128.__bits[7] = 0;
local_128.__bits[4] = 0;
local_128.__bits[5] = 0;
local_128.__bits[2] = 0;
local_128.__bits[3] = 0;
local_128.__bits[0] = 0;
local_128.__bits[1] = 0;
if (uVar8 < 0x400) {
local_128.__bits[uVar8 >> 6] = local_128.__bits[uVar8 >> 6] | 1L << ((byte)uVar8 & 0x3f);
}
iVar4 = pthread_setaffinity_np(__th,0x80,&local_128);
if (iVar4 != 0) {
pthread_setaffinity_np(__th,0x80,&local_a8);
goto LAB_001530be;
}
puVar2 = (uint *)cpuid(0x1a);
uVar3 = (uint)((*puVar2 & 0xff000000) != 0x20000000);
uVar7 = uVar7 + uVar3;
uVar8 = uVar8 + uVar3 + 1;
} while ((int)uVar8 < (int)lVar5);
pthread_setaffinity_np(__th,0x80,&local_a8);
if (uVar7 != 0) goto LAB_001530c5;
}
}
LAB_001530be:
uVar7 = cpu_get_num_physical_cores();
LAB_001530c5:
return (ulong)uVar7;
}
|
|
58,038
|
JS_IsArray
|
bluesky950520[P]quickjs/quickjs.c
|
int JS_IsArray(JSContext *ctx, JSValue val)
{
JSObject *p;
if (JS_VALUE_GET_TAG(val) == JS_TAG_OBJECT) {
p = JS_VALUE_GET_OBJ(val);
if (unlikely(p->class_id == JS_CLASS_PROXY))
return js_proxy_isArray(ctx, val);
else
return p->class_id == JS_CLASS_ARRAY;
} else {
return FALSE;
}
}
|
O2
|
c
|
JS_IsArray:
pushq %rbp
movq %rsp, %rbp
xorl %eax, %eax
cmpl $-0x1, %edx
jne 0x258f3
movzwl 0x6(%rsi), %ecx
cmpw $0x30, %cx
jne 0x258ea
movq 0x30(%rsi), %rcx
testq %rcx, %rcx
je 0x258f3
movq 0x18(%rdi), %rax
cmpq %rbp, 0xe8(%rax)
ja 0x258f5
cmpb $0x0, 0x21(%rcx)
jne 0x258fc
movq (%rcx), %rsi
movl 0x8(%rcx), %edx
jmp 0x258b5
xorl %eax, %eax
cmpw $0x2, %cx
sete %al
popq %rbp
retq
callq 0x39941
jmp 0x25901
callq 0x3994f
pushq $-0x1
popq %rax
jmp 0x258f3
|
JS_IsArray:
push rbp
mov rbp, rsp
loc_258B5:
xor eax, eax
cmp edx, 0FFFFFFFFh
jnz short loc_258F3
movzx ecx, word ptr [rsi+6]
cmp cx, 30h ; '0'
jnz short loc_258EA
mov rcx, [rsi+30h]
test rcx, rcx
jz short loc_258F3
mov rax, [rdi+18h]
cmp [rax+0E8h], rbp
ja short loc_258F5
cmp byte ptr [rcx+21h], 0
jnz short loc_258FC
mov rsi, [rcx]
mov edx, [rcx+8]
jmp short loc_258B5
loc_258EA:
xor eax, eax
cmp cx, 2
setz al
loc_258F3:
pop rbp
retn
loc_258F5:
call JS_ThrowStackOverflow
jmp short loc_25901
loc_258FC:
call JS_ThrowTypeErrorRevokedProxy
loc_25901:
push 0FFFFFFFFFFFFFFFFh
pop rax
jmp short loc_258F3
|
long long JS_IsArray(long long a1, long long a2, int a3)
{
long long result; // rax
__int16 v4; // cx
long long *v5; // rcx
long long savedregs; // [rsp+0h] [rbp+0h] BYREF
while ( 1 )
{
result = 0LL;
if ( a3 != -1 )
break;
v4 = *(_WORD *)(a2 + 6);
if ( v4 != 48 )
return v4 == 2;
v5 = *(long long **)(a2 + 48);
if ( !v5 )
return result;
if ( *(_QWORD *)(*(_QWORD *)(a1 + 24) + 232LL) > (unsigned long long)&savedregs )
{
JS_ThrowStackOverflow(a1);
return -1LL;
}
if ( *((_BYTE *)v5 + 33) )
{
JS_ThrowTypeErrorRevokedProxy();
return -1LL;
}
a2 = *v5;
a3 = *((_DWORD *)v5 + 2);
}
return result;
}
|
JS_IsArray:
PUSH RBP
MOV RBP,RSP
LAB_001258b5:
XOR EAX,EAX
CMP EDX,-0x1
JNZ 0x001258f3
MOVZX ECX,word ptr [RSI + 0x6]
CMP CX,0x30
JNZ 0x001258ea
MOV RCX,qword ptr [RSI + 0x30]
TEST RCX,RCX
JZ 0x001258f3
MOV RAX,qword ptr [RDI + 0x18]
CMP qword ptr [RAX + 0xe8],RBP
JA 0x001258f5
CMP byte ptr [RCX + 0x21],0x0
JNZ 0x001258fc
MOV RSI,qword ptr [RCX]
MOV EDX,dword ptr [RCX + 0x8]
JMP 0x001258b5
LAB_001258ea:
XOR EAX,EAX
CMP CX,0x2
SETZ AL
LAB_001258f3:
POP RBP
RET
LAB_001258f5:
CALL 0x00139941
JMP 0x00125901
LAB_001258fc:
CALL 0x0013994f
LAB_00125901:
PUSH -0x1
POP RAX
JMP 0x001258f3
|
ulong JS_IsArray(long param_1,long param_2,int param_3)
{
long *plVar1;
while( true ) {
if (param_3 != -1) {
return 0;
}
if (*(short *)(param_2 + 6) != 0x30) {
return (ulong)(*(short *)(param_2 + 6) == 2);
}
plVar1 = *(long **)(param_2 + 0x30);
if (plVar1 == (long *)0x0) {
return 0;
}
if (&stack0xfffffffffffffff8 < *(int1 **)(*(long *)(param_1 + 0x18) + 0xe8)) break;
if (*(char *)((long)plVar1 + 0x21) != '\0') {
JS_ThrowTypeErrorRevokedProxy();
return 0xffffffffffffffff;
}
param_2 = *plVar1;
param_3 = (int)plVar1[1];
}
JS_ThrowStackOverflow();
return 0xffffffffffffffff;
}
|
|
58,039
|
partition_int
|
davidesantangelo[P]vsort/vsort.c
|
static int partition_int(int arr[], int low, int high)
{
int mid = low + (high - low) / 2;
// Sort low, mid, high to find median
if (arr[low] > arr[mid])
swap_int(&arr[low], &arr[mid]);
if (arr[mid] > arr[high])
swap_int(&arr[mid], &arr[high]);
if (arr[low] > arr[mid])
swap_int(&arr[low], &arr[mid]); // Ensure low <= mid
// Median is now at mid, swap it to the end (high) to use as pivot
swap_int(&arr[mid], &arr[high]);
int pivot = arr[high];
int i = low - 1; // Index of smaller element
for (int j = low; j < high; j++)
{
if (VSORT_LIKELY(arr[j] <= pivot))
{
i++;
if (i != j)
swap_int(&arr[i], &arr[j]); // Avoid swap if i==j
}
}
swap_int(&arr[i + 1], &arr[high]); // Place pivot in correct spot
return i + 1; // Return pivot index
}
|
O0
|
c
|
partition_int:
subq $0x28, %rsp
movq %rdi, 0x20(%rsp)
movl %esi, 0x1c(%rsp)
movl %edx, 0x18(%rsp)
movl 0x1c(%rsp), %eax
movl %eax, 0x4(%rsp)
movl 0x18(%rsp), %eax
subl 0x1c(%rsp), %eax
movl $0x2, %ecx
cltd
idivl %ecx
movl %eax, %ecx
movl 0x4(%rsp), %eax
addl %ecx, %eax
movl %eax, 0x14(%rsp)
movq 0x20(%rsp), %rax
movslq 0x1c(%rsp), %rcx
movl (%rax,%rcx,4), %eax
movq 0x20(%rsp), %rcx
movslq 0x14(%rsp), %rdx
cmpl (%rcx,%rdx,4), %eax
jle 0x3328
movq 0x20(%rsp), %rdi
movslq 0x1c(%rsp), %rax
shlq $0x2, %rax
addq %rax, %rdi
movq 0x20(%rsp), %rsi
movslq 0x14(%rsp), %rax
shlq $0x2, %rax
addq %rax, %rsi
callq 0x34b0
movq 0x20(%rsp), %rax
movslq 0x14(%rsp), %rcx
movl (%rax,%rcx,4), %eax
movq 0x20(%rsp), %rcx
movslq 0x18(%rsp), %rdx
cmpl (%rcx,%rdx,4), %eax
jle 0x336b
movq 0x20(%rsp), %rdi
movslq 0x14(%rsp), %rax
shlq $0x2, %rax
addq %rax, %rdi
movq 0x20(%rsp), %rsi
movslq 0x18(%rsp), %rax
shlq $0x2, %rax
addq %rax, %rsi
callq 0x34b0
movq 0x20(%rsp), %rax
movslq 0x1c(%rsp), %rcx
movl (%rax,%rcx,4), %eax
movq 0x20(%rsp), %rcx
movslq 0x14(%rsp), %rdx
cmpl (%rcx,%rdx,4), %eax
jle 0x33ae
movq 0x20(%rsp), %rdi
movslq 0x1c(%rsp), %rax
shlq $0x2, %rax
addq %rax, %rdi
movq 0x20(%rsp), %rsi
movslq 0x14(%rsp), %rax
shlq $0x2, %rax
addq %rax, %rsi
callq 0x34b0
movq 0x20(%rsp), %rdi
movslq 0x14(%rsp), %rax
shlq $0x2, %rax
addq %rax, %rdi
movq 0x20(%rsp), %rsi
movslq 0x18(%rsp), %rax
shlq $0x2, %rax
addq %rax, %rsi
callq 0x34b0
movq 0x20(%rsp), %rax
movslq 0x18(%rsp), %rcx
movl (%rax,%rcx,4), %eax
movl %eax, 0x10(%rsp)
movl 0x1c(%rsp), %eax
subl $0x1, %eax
movl %eax, 0xc(%rsp)
movl 0x1c(%rsp), %eax
movl %eax, 0x8(%rsp)
movl 0x8(%rsp), %eax
cmpl 0x18(%rsp), %eax
jge 0x3475
movq 0x20(%rsp), %rax
movslq 0x8(%rsp), %rcx
movl (%rax,%rcx,4), %eax
cmpl 0x10(%rsp), %eax
setle %al
xorb $-0x1, %al
xorb $-0x1, %al
andb $0x1, %al
movzbl %al, %eax
cltq
cmpq $0x0, %rax
je 0x3466
movl 0xc(%rsp), %eax
addl $0x1, %eax
movl %eax, 0xc(%rsp)
movl 0xc(%rsp), %eax
cmpl 0x8(%rsp), %eax
je 0x3464
movq 0x20(%rsp), %rdi
movslq 0xc(%rsp), %rax
shlq $0x2, %rax
addq %rax, %rdi
movq 0x20(%rsp), %rsi
movslq 0x8(%rsp), %rax
shlq $0x2, %rax
addq %rax, %rsi
callq 0x34b0
jmp 0x3466
jmp 0x3468
movl 0x8(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x8(%rsp)
jmp 0x33f9
movq 0x20(%rsp), %rdi
movl 0xc(%rsp), %eax
addl $0x1, %eax
cltq
shlq $0x2, %rax
addq %rax, %rdi
movq 0x20(%rsp), %rsi
movslq 0x18(%rsp), %rax
shlq $0x2, %rax
addq %rax, %rsi
callq 0x34b0
movl 0xc(%rsp), %eax
addl $0x1, %eax
addq $0x28, %rsp
retq
nopl (%rax)
|
partition_int:
sub rsp, 28h
mov [rsp+28h+var_8], rdi
mov [rsp+28h+var_C], esi
mov [rsp+28h+var_10], edx
mov eax, [rsp+28h+var_C]
mov [rsp+28h+var_24], eax
mov eax, [rsp+28h+var_10]
sub eax, [rsp+28h+var_C]
mov ecx, 2
cdq
idiv ecx
mov ecx, eax
mov eax, [rsp+28h+var_24]
add eax, ecx
mov [rsp+28h+var_14], eax
mov rax, [rsp+28h+var_8]
movsxd rcx, [rsp+28h+var_C]
mov eax, [rax+rcx*4]
mov rcx, [rsp+28h+var_8]
movsxd rdx, [rsp+28h+var_14]
cmp eax, [rcx+rdx*4]
jle short loc_3328
mov rdi, [rsp+28h+var_8]
movsxd rax, [rsp+28h+var_C]
shl rax, 2
add rdi, rax
mov rsi, [rsp+28h+var_8]
movsxd rax, [rsp+28h+var_14]
shl rax, 2
add rsi, rax
call swap_int
loc_3328:
mov rax, [rsp+28h+var_8]
movsxd rcx, [rsp+28h+var_14]
mov eax, [rax+rcx*4]
mov rcx, [rsp+28h+var_8]
movsxd rdx, [rsp+28h+var_10]
cmp eax, [rcx+rdx*4]
jle short loc_336B
mov rdi, [rsp+28h+var_8]
movsxd rax, [rsp+28h+var_14]
shl rax, 2
add rdi, rax
mov rsi, [rsp+28h+var_8]
movsxd rax, [rsp+28h+var_10]
shl rax, 2
add rsi, rax
call swap_int
loc_336B:
mov rax, [rsp+28h+var_8]
movsxd rcx, [rsp+28h+var_C]
mov eax, [rax+rcx*4]
mov rcx, [rsp+28h+var_8]
movsxd rdx, [rsp+28h+var_14]
cmp eax, [rcx+rdx*4]
jle short loc_33AE
mov rdi, [rsp+28h+var_8]
movsxd rax, [rsp+28h+var_C]
shl rax, 2
add rdi, rax
mov rsi, [rsp+28h+var_8]
movsxd rax, [rsp+28h+var_14]
shl rax, 2
add rsi, rax
call swap_int
loc_33AE:
mov rdi, [rsp+28h+var_8]
movsxd rax, [rsp+28h+var_14]
shl rax, 2
add rdi, rax
mov rsi, [rsp+28h+var_8]
movsxd rax, [rsp+28h+var_10]
shl rax, 2
add rsi, rax
call swap_int
mov rax, [rsp+28h+var_8]
movsxd rcx, [rsp+28h+var_10]
mov eax, [rax+rcx*4]
mov [rsp+28h+var_18], eax
mov eax, [rsp+28h+var_C]
sub eax, 1
mov [rsp+28h+var_1C], eax
mov eax, [rsp+28h+var_C]
mov [rsp+28h+var_20], eax
loc_33F9:
mov eax, [rsp+28h+var_20]
cmp eax, [rsp+28h+var_10]
jge short loc_3475
mov rax, [rsp+28h+var_8]
movsxd rcx, [rsp+28h+var_20]
mov eax, [rax+rcx*4]
cmp eax, [rsp+28h+var_18]
setle al
xor al, 0FFh
xor al, 0FFh
and al, 1
movzx eax, al
cdqe
cmp rax, 0
jz short loc_3466
mov eax, [rsp+28h+var_1C]
add eax, 1
mov [rsp+28h+var_1C], eax
mov eax, [rsp+28h+var_1C]
cmp eax, [rsp+28h+var_20]
jz short loc_3464
mov rdi, [rsp+28h+var_8]
movsxd rax, [rsp+28h+var_1C]
shl rax, 2
add rdi, rax
mov rsi, [rsp+28h+var_8]
movsxd rax, [rsp+28h+var_20]
shl rax, 2
add rsi, rax
call swap_int
loc_3464:
jmp short $+2
loc_3466:
jmp short $+2
loc_3468:
mov eax, [rsp+28h+var_20]
add eax, 1
mov [rsp+28h+var_20], eax
jmp short loc_33F9
loc_3475:
mov rdi, [rsp+28h+var_8]
mov eax, [rsp+28h+var_1C]
add eax, 1
cdqe
shl rax, 2
add rdi, rax
mov rsi, [rsp+28h+var_8]
movsxd rax, [rsp+28h+var_10]
shl rax, 2
add rsi, rax
call swap_int
mov eax, [rsp+28h+var_1C]
add eax, 1
add rsp, 28h
retn
|
long long partition_int(long long a1, int a2, int a3)
{
int i; // [rsp+8h] [rbp-20h]
int v5; // [rsp+Ch] [rbp-1Ch]
int v6; // [rsp+10h] [rbp-18h]
int v7; // [rsp+14h] [rbp-14h]
v7 = (a3 - a2) / 2 + a2;
if ( *(_DWORD *)(a1 + 4LL * a2) > *(_DWORD *)(a1 + 4LL * v7) )
swap_int(4LL * a2 + a1, 4LL * v7 + a1);
if ( *(_DWORD *)(a1 + 4LL * v7) > *(_DWORD *)(a1 + 4LL * a3) )
swap_int(4LL * v7 + a1, 4LL * a3 + a1);
if ( *(_DWORD *)(a1 + 4LL * a2) > *(_DWORD *)(a1 + 4LL * v7) )
swap_int(4LL * a2 + a1, 4LL * v7 + a1);
swap_int(4LL * v7 + a1, 4LL * a3 + a1);
v6 = *(_DWORD *)(a1 + 4LL * a3);
v5 = a2 - 1;
for ( i = a2; i < a3; ++i )
{
if ( *(_DWORD *)(a1 + 4LL * i) <= v6 && ++v5 != i )
swap_int(4LL * v5 + a1, 4LL * i + a1);
}
swap_int(4LL * (v5 + 1) + a1, 4LL * a3 + a1);
return (unsigned int)(v5 + 1);
}
|
partition_int:
SUB RSP,0x28
MOV qword ptr [RSP + 0x20],RDI
MOV dword ptr [RSP + 0x1c],ESI
MOV dword ptr [RSP + 0x18],EDX
MOV EAX,dword ptr [RSP + 0x1c]
MOV dword ptr [RSP + 0x4],EAX
MOV EAX,dword ptr [RSP + 0x18]
SUB EAX,dword ptr [RSP + 0x1c]
MOV ECX,0x2
CDQ
IDIV ECX
MOV ECX,EAX
MOV EAX,dword ptr [RSP + 0x4]
ADD EAX,ECX
MOV dword ptr [RSP + 0x14],EAX
MOV RAX,qword ptr [RSP + 0x20]
MOVSXD RCX,dword ptr [RSP + 0x1c]
MOV EAX,dword ptr [RAX + RCX*0x4]
MOV RCX,qword ptr [RSP + 0x20]
MOVSXD RDX,dword ptr [RSP + 0x14]
CMP EAX,dword ptr [RCX + RDX*0x4]
JLE 0x00103328
MOV RDI,qword ptr [RSP + 0x20]
MOVSXD RAX,dword ptr [RSP + 0x1c]
SHL RAX,0x2
ADD RDI,RAX
MOV RSI,qword ptr [RSP + 0x20]
MOVSXD RAX,dword ptr [RSP + 0x14]
SHL RAX,0x2
ADD RSI,RAX
CALL 0x001034b0
LAB_00103328:
MOV RAX,qword ptr [RSP + 0x20]
MOVSXD RCX,dword ptr [RSP + 0x14]
MOV EAX,dword ptr [RAX + RCX*0x4]
MOV RCX,qword ptr [RSP + 0x20]
MOVSXD RDX,dword ptr [RSP + 0x18]
CMP EAX,dword ptr [RCX + RDX*0x4]
JLE 0x0010336b
MOV RDI,qword ptr [RSP + 0x20]
MOVSXD RAX,dword ptr [RSP + 0x14]
SHL RAX,0x2
ADD RDI,RAX
MOV RSI,qword ptr [RSP + 0x20]
MOVSXD RAX,dword ptr [RSP + 0x18]
SHL RAX,0x2
ADD RSI,RAX
CALL 0x001034b0
LAB_0010336b:
MOV RAX,qword ptr [RSP + 0x20]
MOVSXD RCX,dword ptr [RSP + 0x1c]
MOV EAX,dword ptr [RAX + RCX*0x4]
MOV RCX,qword ptr [RSP + 0x20]
MOVSXD RDX,dword ptr [RSP + 0x14]
CMP EAX,dword ptr [RCX + RDX*0x4]
JLE 0x001033ae
MOV RDI,qword ptr [RSP + 0x20]
MOVSXD RAX,dword ptr [RSP + 0x1c]
SHL RAX,0x2
ADD RDI,RAX
MOV RSI,qword ptr [RSP + 0x20]
MOVSXD RAX,dword ptr [RSP + 0x14]
SHL RAX,0x2
ADD RSI,RAX
CALL 0x001034b0
LAB_001033ae:
MOV RDI,qword ptr [RSP + 0x20]
MOVSXD RAX,dword ptr [RSP + 0x14]
SHL RAX,0x2
ADD RDI,RAX
MOV RSI,qword ptr [RSP + 0x20]
MOVSXD RAX,dword ptr [RSP + 0x18]
SHL RAX,0x2
ADD RSI,RAX
CALL 0x001034b0
MOV RAX,qword ptr [RSP + 0x20]
MOVSXD RCX,dword ptr [RSP + 0x18]
MOV EAX,dword ptr [RAX + RCX*0x4]
MOV dword ptr [RSP + 0x10],EAX
MOV EAX,dword ptr [RSP + 0x1c]
SUB EAX,0x1
MOV dword ptr [RSP + 0xc],EAX
MOV EAX,dword ptr [RSP + 0x1c]
MOV dword ptr [RSP + 0x8],EAX
LAB_001033f9:
MOV EAX,dword ptr [RSP + 0x8]
CMP EAX,dword ptr [RSP + 0x18]
JGE 0x00103475
MOV RAX,qword ptr [RSP + 0x20]
MOVSXD RCX,dword ptr [RSP + 0x8]
MOV EAX,dword ptr [RAX + RCX*0x4]
CMP EAX,dword ptr [RSP + 0x10]
SETLE AL
XOR AL,0xff
XOR AL,0xff
AND AL,0x1
MOVZX EAX,AL
CDQE
CMP RAX,0x0
JZ 0x00103466
MOV EAX,dword ptr [RSP + 0xc]
ADD EAX,0x1
MOV dword ptr [RSP + 0xc],EAX
MOV EAX,dword ptr [RSP + 0xc]
CMP EAX,dword ptr [RSP + 0x8]
JZ 0x00103464
MOV RDI,qword ptr [RSP + 0x20]
MOVSXD RAX,dword ptr [RSP + 0xc]
SHL RAX,0x2
ADD RDI,RAX
MOV RSI,qword ptr [RSP + 0x20]
MOVSXD RAX,dword ptr [RSP + 0x8]
SHL RAX,0x2
ADD RSI,RAX
CALL 0x001034b0
LAB_00103464:
JMP 0x00103466
LAB_00103466:
JMP 0x00103468
LAB_00103468:
MOV EAX,dword ptr [RSP + 0x8]
ADD EAX,0x1
MOV dword ptr [RSP + 0x8],EAX
JMP 0x001033f9
LAB_00103475:
MOV RDI,qword ptr [RSP + 0x20]
MOV EAX,dword ptr [RSP + 0xc]
ADD EAX,0x1
CDQE
SHL RAX,0x2
ADD RDI,RAX
MOV RSI,qword ptr [RSP + 0x20]
MOVSXD RAX,dword ptr [RSP + 0x18]
SHL RAX,0x2
ADD RSI,RAX
CALL 0x001034b0
MOV EAX,dword ptr [RSP + 0xc]
ADD EAX,0x1
ADD RSP,0x28
RET
|
int partition_int(long param_1,int param_2,int param_3)
{
int iVar1;
int local_20;
int local_1c;
iVar1 = param_2 + (param_3 - param_2) / 2;
if (*(int *)(param_1 + (long)iVar1 * 4) < *(int *)(param_1 + (long)param_2 * 4)) {
swap_int(param_1 + (long)param_2 * 4,param_1 + (long)iVar1 * 4);
}
if (*(int *)(param_1 + (long)param_3 * 4) < *(int *)(param_1 + (long)iVar1 * 4)) {
swap_int(param_1 + (long)iVar1 * 4,param_1 + (long)param_3 * 4);
}
if (*(int *)(param_1 + (long)iVar1 * 4) < *(int *)(param_1 + (long)param_2 * 4)) {
swap_int(param_1 + (long)param_2 * 4,param_1 + (long)iVar1 * 4);
}
swap_int(param_1 + (long)iVar1 * 4,param_1 + (long)param_3 * 4);
iVar1 = *(int *)(param_1 + (long)param_3 * 4);
local_1c = param_2 + -1;
for (local_20 = param_2; local_20 < param_3; local_20 = local_20 + 1) {
if ((*(int *)(param_1 + (long)local_20 * 4) <= iVar1) &&
(local_1c = local_1c + 1, local_1c != local_20)) {
swap_int(param_1 + (long)local_1c * 4,param_1 + (long)local_20 * 4);
}
}
swap_int(param_1 + (long)(local_1c + 1) * 4,param_1 + (long)param_3 * 4);
return local_1c + 1;
}
|
|
58,040
|
Catch::ReporterFactory<Catch::CompactReporter>::getDescription[abi:cxx11]() const
|
AlayaLite/build_O3/_deps/libcoro-src/test/catch_amalgamated.hpp
|
std::string getDescription() const override {
return T::getDescription();
}
|
O3
|
cpp
|
Catch::ReporterFactory<Catch::CompactReporter>::getDescription[abi:cxx11]() const:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
leaq 0x10(%rdi), %rax
movq %rax, (%rdi)
movq %rsp, %r14
movq $0x38, (%r14)
movq %r14, %rsi
xorl %edx, %edx
callq 0x2513a
movq %rax, (%rbx)
movq (%r14), %rcx
movq %rcx, 0x10(%rbx)
movabsq $0x7345444920726f66, %rdx # imm = 0x7345444920726F66
movq %rdx, 0x30(%rax)
movups 0x580a3(%rip), %xmm0 # 0xde216
movups %xmm0, 0x20(%rax)
movups 0x58088(%rip), %xmm0 # 0xde206
movups %xmm0, 0x10(%rax)
movups 0x5806d(%rip), %xmm0 # 0xde1f6
movups %xmm0, (%rax)
movq %rcx, 0x8(%rbx)
movb $0x0, (%rax,%rcx)
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
|
_ZNK5Catch15ReporterFactoryINS_15CompactReporterEE14getDescriptionB5cxx11Ev:
push r14
push rbx
push rax
mov rbx, rdi
lea rax, [rdi+10h]
mov [rdi], rax
mov r14, rsp
mov qword ptr [r14], 38h ; '8'
mov rsi, r14
xor edx, edx
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9_M_createERmm; std::string::_M_create(ulong &,ulong)
mov [rbx], rax
mov rcx, [r14]
mov [rbx+10h], rcx
mov rdx, 7345444920726F66h
mov [rax+30h], rdx
movups xmm0, xmmword ptr cs:aReportsTestRes+20h; " line, suitable for IDEs"
movups xmmword ptr [rax+20h], xmm0
movups xmm0, xmmword ptr cs:aReportsTestRes+10h; "ults on a single line, suitable for IDE"...
movups xmmword ptr [rax+10h], xmm0
movups xmm0, xmmword ptr cs:aReportsTestRes; "Reports test results on a single line, "...
movups xmmword ptr [rax], xmm0
mov [rbx+8], rcx
mov byte ptr [rax+rcx], 0
mov rax, rbx
add rsp, 8
pop rbx
pop r14
retn
|
_QWORD * Catch::ReporterFactory<Catch::CompactReporter>::getDescription[abi:cxx11](_QWORD *a1)
{
void *v1; // rax
unsigned long long v2; // rcx
unsigned long long v4; // [rsp-8h] [rbp-18h] BYREF
*a1 = a1 + 2;
v4 = 56LL;
v1 = (void *)std::string::_M_create((long long)a1, &v4, 0LL);
*a1 = v1;
v2 = v4;
a1[2] = v4;
qmemcpy(v1, "Reports test results on a single line, suitable for IDEs", 56);
a1[1] = v2;
*((_BYTE *)v1 + v2) = 0;
return a1;
}
|
getDescription[abi:cxx11]:
PUSH R14
PUSH RBX
PUSH RAX
MOV RBX,RDI
LEA RAX,[RDI + 0x10]
MOV qword ptr [RDI],RAX
MOV R14,RSP
MOV qword ptr [R14],0x38
MOV RSI,R14
XOR EDX,EDX
CALL 0x0012513a
MOV qword ptr [RBX],RAX
MOV RCX,qword ptr [R14]
MOV qword ptr [RBX + 0x10],RCX
MOV RDX,0x7345444920726f66
MOV qword ptr [RAX + 0x30],RDX
MOVUPS XMM0,xmmword ptr [0x001de216]
MOVUPS xmmword ptr [RAX + 0x20],XMM0
MOVUPS XMM0,xmmword ptr [0x001de206]
MOVUPS xmmword ptr [RAX + 0x10],XMM0
MOVUPS XMM0,xmmword ptr [0x001de1f6]
MOVUPS xmmword ptr [RAX],XMM0
MOV qword ptr [RBX + 0x8],RCX
MOV byte ptr [RAX + RCX*0x1],0x0
MOV RAX,RBX
ADD RSP,0x8
POP RBX
POP R14
RET
|
/* Catch::ReporterFactory<Catch::CompactReporter>::getDescription[abi:cxx11]() const */
ReporterFactory<Catch::CompactReporter> * __thiscall
Catch::ReporterFactory<Catch::CompactReporter>::getDescription_abi_cxx11_
(ReporterFactory<Catch::CompactReporter> *this)
{
int8 uVar1;
char *pcVar2;
ulong local_18;
*(ReporterFactory<Catch::CompactReporter> **)this = this + 0x10;
local_18 = 0x38;
pcVar2 = (char *)std::__cxx11::string::_M_create((string *)this,&local_18,0);
*(char **)this = pcVar2;
*(ulong *)(this + 0x10) = local_18;
pcVar2[0x30] = 'f';
uVar1 = s_Reports_test_results_on_a_single_001de1f6._40_8_;
pcVar2[0x31] = 'o';
pcVar2[0x32] = 'r';
pcVar2[0x33] = ' ';
pcVar2[0x34] = 'I';
pcVar2[0x35] = 'D';
pcVar2[0x36] = 'E';
pcVar2[0x37] = 's';
*(int8 *)(pcVar2 + 0x20) = s_Reports_test_results_on_a_single_001de1f6._32_8_;
*(int8 *)(pcVar2 + 0x28) = uVar1;
uVar1 = s_Reports_test_results_on_a_single_001de1f6._24_8_;
*(int8 *)(pcVar2 + 0x10) = s_Reports_test_results_on_a_single_001de1f6._16_8_;
*(int8 *)(pcVar2 + 0x18) = uVar1;
uVar1 = s_Reports_test_results_on_a_single_001de1f6._8_8_;
*(int8 *)pcVar2 = s_Reports_test_results_on_a_single_001de1f6._0_8_;
*(int8 *)(pcVar2 + 8) = uVar1;
*(ulong *)(this + 8) = local_18;
pcVar2[local_18] = '\0';
return this;
}
|
|
58,041
|
common_chat_format_example[abi:cxx11](minja::chat_template const&, bool)
|
monkey531[P]llama/common/common.cpp
|
std::string common_chat_format_example(const common_chat_template & tmpl, bool use_jinja) {
std::vector<common_chat_msg> msgs = {
{"system", "You are a helpful assistant", {}},
{"user", "Hello", {}},
{"assistant", "Hi there", {}},
{"user", "How are you?", {}},
};
return common_chat_apply_template(tmpl, msgs, true, use_jinja);
}
|
O3
|
cpp
|
common_chat_format_example[abi:cxx11](minja::chat_template const&, bool):
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x208, %rsp # imm = 0x208
movl %edx, %r14d
movq %rsi, %rbp
movq %rdi, %r15
leaq 0x38(%rsp), %r13
movq %r13, -0x10(%r13)
leaq 0x2d0df(%rip), %rsi # 0xad850
leaq 0x2d0de(%rip), %rdx # 0xad856
leaq 0x28(%rsp), %rbx
movq %rbx, %rdi
callq 0x590a2
movl %r14d, 0xc(%rsp)
leaq 0x48(%rsp), %rdi
leaq 0x58(%rsp), %r12
movq %r12, -0x10(%r12)
leaq 0x2d0b7(%rip), %rsi # 0xad857
leaq 0x2d0cb(%rip), %rdx # 0xad872
callq 0x590a2
leaq 0x68(%rsp), %r14
leaq 0x80(%rsp), %rdi
leaq 0x90(%rsp), %rax
xorps %xmm0, %xmm0
movups %xmm0, -0x28(%rax)
movq $0x0, -0x18(%rax)
movq %rax, -0x10(%rax)
leaq 0x34c60(%rip), %rdx # 0xb543b
movq %rdx, %rsi
callq 0x590a2
movq %rbp, %r12
leaq 0xa0(%rsp), %r14
leaq 0xb0(%rsp), %rax
movq %rax, -0x10(%rax)
leaq 0x2d072(%rip), %rsi # 0xad873
leaq 0x2d06f(%rip), %rdx # 0xad877
movq %r14, %rdi
callq 0x590a2
leaq 0xc0(%rsp), %rdi
leaq 0xd0(%rsp), %rbp
movq %rbp, -0x10(%rbp)
leaq 0x2d04d(%rip), %rsi # 0xad878
leaq 0x2d04b(%rip), %rdx # 0xad87d
callq 0x590a2
leaq 0xe0(%rsp), %r13
leaq 0xf8(%rsp), %rdi
leaq 0x108(%rsp), %rax
xorps %xmm0, %xmm0
movups %xmm0, -0x28(%rax)
movq $0x0, -0x18(%rax)
movq %rax, -0x10(%rax)
leaq 0x34bd2(%rip), %rdx # 0xb543b
movq %rdx, %rsi
callq 0x590a2
leaq 0x118(%rsp), %r14
leaq 0x128(%rsp), %rax
movq %rax, -0x10(%rax)
leaq 0x2cfdd(%rip), %rsi # 0xad869
leaq 0x2cfdf(%rip), %rdx # 0xad872
movq %r14, %rdi
callq 0x590a2
leaq 0x138(%rsp), %rdi
leaq 0x148(%rsp), %rbp
movq %rbp, -0x10(%rbp)
leaq 0x2cfc8(%rip), %rsi # 0xad87e
leaq 0x2cfc9(%rip), %rdx # 0xad886
callq 0x590a2
leaq 0x158(%rsp), %r13
leaq 0x170(%rsp), %rdi
leaq 0x180(%rsp), %rax
xorps %xmm0, %xmm0
movups %xmm0, -0x28(%rax)
movq $0x0, -0x18(%rax)
movq %rax, -0x10(%rax)
leaq 0x34b47(%rip), %rdx # 0xb543b
movq %rdx, %rsi
callq 0x590a2
leaq 0x190(%rsp), %r14
leaq 0x1a0(%rsp), %rax
movq %rax, -0x10(%rax)
leaq 0x2cf5c(%rip), %rsi # 0xad873
leaq 0x2cf59(%rip), %rdx # 0xad877
movq %r14, %rdi
callq 0x590a2
leaq 0x1b0(%rsp), %rdi
leaq 0x1c0(%rsp), %rbp
movq %rbp, -0x10(%rbp)
leaq 0x40510(%rip), %rsi # 0xc0e51
leaq 0x40515(%rip), %rdx # 0xc0e5d
callq 0x590a2
leaq 0x1d0(%rsp), %r13
leaq 0x1e8(%rsp), %rdi
leaq 0x1f8(%rsp), %rax
xorps %xmm0, %xmm0
movups %xmm0, -0x28(%rax)
movq $0x0, -0x18(%rax)
movq %rax, -0x10(%rax)
leaq 0x34abc(%rip), %rdx # 0xb543b
movq %rdx, %rsi
callq 0x590a2
leaq 0x10(%rsp), %rdi
leaq 0x28(%rsp), %rsi
leaq 0xb(%rsp), %rcx
movl $0x4, %edx
callq 0x82dfe
movl $0x1e0, %r14d # imm = 0x1E0
leaq (%rsp,%r14), %rax
addq $0x18, %rax
movq -0x10(%rax), %rdi
cmpq %rdi, %rax
je 0x809c2
movq (%rax), %rsi
incq %rsi
callq 0x186a0
leaq (%rsp,%r14), %rbx
addq $-0x10, %rbx
movq %rbx, %rdi
callq 0x2ad7e
movq -0x20(%rbx), %rdi
leaq (%rsp,%r14), %rax
addq $-0x20, %rax
cmpq %rdi, %rax
je 0x809ee
movq (%rax), %rsi
incq %rsi
callq 0x186a0
leaq (%rsp,%r14), %rax
addq $-0x40, %rax
movq -0x10(%rax), %rdi
cmpq %rdi, %rax
je 0x80a0a
movq (%rax), %rsi
incq %rsi
callq 0x186a0
addq $-0x78, %r14
jne 0x809a6
movzbl 0xc(%rsp), %r8d
leaq 0x10(%rsp), %rdx
movq %r15, %rdi
movq %r12, %rsi
movl $0x1, %ecx
callq 0x7fda8
leaq 0x10(%rsp), %rdi
callq 0x2ae06
movq %r15, %rax
addq $0x208, %rsp # imm = 0x208
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %r15
leaq 0x10(%rsp), %rdi
callq 0x2ae06
jmp 0x80b8e
movq %rax, %r15
movl $0x168, %ebx # imm = 0x168
leaq (%rsp,%rbx), %rdi
addq $0x28, %rdi
callq 0x2adae
addq $-0x78, %rbx
cmpq $-0x78, %rbx
jne 0x80a64
jmp 0x80b8e
movq %rax, %r15
movq %r13, %rdi
callq 0x2ad7e
movq 0x1b0(%rsp), %rdi
cmpq %rbp, %rdi
je 0x80aad
movq 0x1c0(%rsp), %rsi
incq %rsi
callq 0x186a0
jmp 0x80aad
movq %rax, %r15
movq 0x190(%rsp), %rdi
leaq 0x1a0(%rsp), %rax
cmpq %rax, %rdi
je 0x80b7d
movq 0x1a0(%rsp), %rsi
jmp 0x80b70
jmp 0x80b7a
movq %rax, %r15
movq %r13, %rdi
callq 0x2ad7e
movq 0x138(%rsp), %rdi
cmpq %rbp, %rdi
je 0x80b05
movq 0x148(%rsp), %rsi
incq %rsi
callq 0x186a0
jmp 0x80b05
movq %rax, %r15
movq 0x118(%rsp), %rdi
leaq 0x128(%rsp), %rax
cmpq %rax, %rdi
je 0x80b7d
movq 0x128(%rsp), %rsi
jmp 0x80b70
jmp 0x80b7a
movq %rax, %r15
movq %r13, %rdi
callq 0x2ad7e
movq 0xc0(%rsp), %rdi
cmpq %rbp, %rdi
je 0x80b53
movq 0xd0(%rsp), %rsi
incq %rsi
callq 0x186a0
jmp 0x80b53
movq %rax, %r15
movq 0xa0(%rsp), %rdi
leaq 0xb0(%rsp), %rax
cmpq %rax, %rdi
je 0x80b7d
movq 0xb0(%rsp), %rsi
incq %rsi
callq 0x186a0
jmp 0x80b7d
movq %rax, %r15
addq $-0x78, %r14
movq %r14, %rdi
callq 0x2adae
cmpq %rbx, %r14
jne 0x80b7d
movq %r15, %rdi
callq 0x18b90
movq %rax, %r15
movq %r14, %rdi
callq 0x2ad7e
movq 0x48(%rsp), %rdi
cmpq %r12, %rdi
je 0x80bbd
movq 0x58(%rsp), %rsi
incq %rsi
callq 0x186a0
jmp 0x80bbd
movq %rax, %r15
movq 0x28(%rsp), %rdi
cmpq %r13, %rdi
je 0x80b8e
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x186a0
jmp 0x80b8e
movq %rax, %r15
jmp 0x80b8e
|
_Z26common_chat_format_exampleB5cxx11RKN5minja13chat_templateEb:
push rbp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 208h
mov r14d, edx
mov rbp, rsi
mov r15, rdi
lea r13, [rsp+238h+var_200]
mov [r13-10h], r13
lea rsi, aSystem; "system"
lea rdx, aSystem+6; ""
lea rbx, [rsp+238h+var_210]
mov rdi, rbx
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPKcEEvT_S8_St20forward_iterator_tag; std::string::_M_construct<char const*>(char const*,char const*,std::forward_iterator_tag)
mov [rsp+238h+var_22C], r14d
lea rdi, [rsp+238h+var_1F0]
lea r12, [rsp+238h+var_1E0]
mov [r12-10h], r12
lea rsi, aYouAreAHelpful_1; "You are a helpful assistant"
lea rdx, aYouAreAHelpful_1+1Bh; ""
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPKcEEvT_S8_St20forward_iterator_tag; std::string::_M_construct<char const*>(char const*,char const*,std::forward_iterator_tag)
lea r14, [rsp+238h+var_1D0]
lea rdi, [rsp+238h+var_1B8]
lea rax, [rsp+238h+var_1A8]
xorps xmm0, xmm0
movups xmmword ptr [rax-28h], xmm0
mov qword ptr [rax-18h], 0
mov [rax-10h], rax
lea rdx, aSJinja+16h; ""
mov rsi, rdx
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPKcEEvT_S8_St20forward_iterator_tag; std::string::_M_construct<char const*>(char const*,char const*,std::forward_iterator_tag)
mov r12, rbp
lea r14, [rsp+238h+var_198]
lea rax, [rsp+238h+var_188]
mov [rax-10h], rax
lea rsi, aUser; "user"
lea rdx, aUser+4; ""
mov rdi, r14
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+238h+var_178]
lea rbp, [rsp+238h+var_168]
mov [rbp-10h], rbp
lea rsi, aHello; "Hello"
lea rdx, aHello+5; ""
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPKcEEvT_S8_St20forward_iterator_tag; std::string::_M_construct<char const*>(char const*,char const*,std::forward_iterator_tag)
lea r13, [rsp+238h+var_158]
lea rdi, [rsp+238h+var_140]
lea rax, [rsp+238h+var_130]
xorps xmm0, xmm0
movups xmmword ptr [rax-28h], xmm0
mov qword ptr [rax-18h], 0
mov [rax-10h], rax
lea rdx, aSJinja+16h; ""
mov rsi, rdx
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPKcEEvT_S8_St20forward_iterator_tag; std::string::_M_construct<char const*>(char const*,char const*,std::forward_iterator_tag)
lea r14, [rsp+238h+var_120]
lea rax, [rsp+238h+var_110]
mov [rax-10h], rax
lea rsi, aYouAreAHelpful_1+12h; "assistant"
lea rdx, aYouAreAHelpful_1+1Bh; ""
mov rdi, r14
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+238h+var_100]
lea rbp, [rsp+238h+var_F0]
mov [rbp-10h], rbp
lea rsi, aHiThere; "Hi there"
lea rdx, aHiThere+8; ""
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPKcEEvT_S8_St20forward_iterator_tag; std::string::_M_construct<char const*>(char const*,char const*,std::forward_iterator_tag)
lea r13, [rsp+238h+var_E0]
lea rdi, [rsp+238h+var_C8]
lea rax, [rsp+238h+var_B8]
xorps xmm0, xmm0
movups xmmword ptr [rax-28h], xmm0
mov qword ptr [rax-18h], 0
mov [rax-10h], rax
lea rdx, aSJinja+16h; ""
mov rsi, rdx
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPKcEEvT_S8_St20forward_iterator_tag; std::string::_M_construct<char const*>(char const*,char const*,std::forward_iterator_tag)
lea r14, [rsp+238h+var_A8]
lea rax, [rsp+238h+var_98]
mov [rax-10h], rax
lea rsi, aUser; "user"
lea rdx, aUser+4; ""
mov rdi, r14
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+238h+var_88]
lea rbp, [rsp+238h+var_78]
mov [rbp-10h], rbp
lea rsi, aHowAreYou_0; "How are you?"
lea rdx, aHowAreYou_0+0Ch; ""
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPKcEEvT_S8_St20forward_iterator_tag; std::string::_M_construct<char const*>(char const*,char const*,std::forward_iterator_tag)
lea r13, [rsp+238h+var_68]
lea rdi, [rsp+238h+var_50]
lea rax, [rsp+238h+var_40]
xorps xmm0, xmm0
movups xmmword ptr [rax-28h], xmm0
mov qword ptr [rax-18h], 0
mov [rax-10h], rax
lea rdx, aSJinja+16h; ""
mov rsi, rdx
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPKcEEvT_S8_St20forward_iterator_tag; std::string::_M_construct<char const*>(char const*,char const*,std::forward_iterator_tag)
lea rdi, [rsp+238h+var_228]
lea rsi, [rsp+238h+var_210]
lea rcx, [rsp+238h+var_22D]
mov edx, 4
call _ZNSt6vectorI15common_chat_msgSaIS0_EEC2ESt16initializer_listIS0_ERKS1_; std::vector<common_chat_msg>::vector(std::initializer_list<common_chat_msg>,std::allocator<common_chat_msg> const&)
mov r14d, 1E0h
loc_809A6:
lea rax, [rsp+r14+238h+var_238]
add rax, 18h
mov rdi, [rax-10h]; void *
cmp rax, rdi
jz short loc_809C2
mov rsi, [rax]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_809C2:
lea rbx, [rsp+r14+238h+var_238]
add rbx, 0FFFFFFFFFFFFFFF0h
mov rdi, rbx
call _ZNSt6vectorI16common_tool_callSaIS0_EED2Ev; std::vector<common_tool_call>::~vector()
mov rdi, [rbx-20h]; void *
lea rax, [rsp+r14+238h+var_238]
add rax, 0FFFFFFFFFFFFFFE0h
cmp rax, rdi
jz short loc_809EE
mov rsi, [rax]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_809EE:
lea rax, [rsp+r14+238h+var_238]
add rax, 0FFFFFFFFFFFFFFC0h
mov rdi, [rax-10h]; void *
cmp rax, rdi
jz short loc_80A0A
mov rsi, [rax]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_80A0A:
add r14, 0FFFFFFFFFFFFFF88h
jnz short loc_809A6
movzx r8d, byte ptr [rsp+238h+var_22C]
lea rdx, [rsp+238h+var_228]
mov rdi, r15
mov rsi, r12
mov ecx, 1
call _Z26common_chat_apply_templateB5cxx11RKN5minja13chat_templateERKSt6vectorI15common_chat_msgSaIS4_EEbb; common_chat_apply_template(minja::chat_template const&,std::vector<common_chat_msg> const&,bool,bool)
lea rdi, [rsp+238h+var_228]
call _ZNSt6vectorI15common_chat_msgSaIS0_EED2Ev; std::vector<common_chat_msg>::~vector()
mov rax, r15
add rsp, 208h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
mov r15, rax
lea rdi, [rsp+arg_8]
call _ZNSt6vectorI15common_chat_msgSaIS0_EED2Ev; std::vector<common_chat_msg>::~vector()
jmp loc_80B8E
mov r15, rax
mov ebx, 168h
loc_80A64:
lea rdi, [rsp+rbx+0]
add rdi, 28h ; '('; this
call _ZN15common_chat_msgD2Ev; common_chat_msg::~common_chat_msg()
add rbx, 0FFFFFFFFFFFFFF88h
cmp rbx, 0FFFFFFFFFFFFFF88h
jnz short loc_80A64
jmp loc_80B8E
mov r15, rax
mov rdi, r13
call _ZNSt6vectorI16common_tool_callSaIS0_EED2Ev; std::vector<common_tool_call>::~vector()
mov rdi, [rsp+arg_1A8]; void *
cmp rdi, rbp
jz short loc_80AAD
mov rsi, [rsp+arg_1B8]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
jmp short loc_80AAD
mov r15, rax
loc_80AAD:
mov rdi, [rsp+arg_188]
lea rax, [rsp+arg_198]
cmp rdi, rax
jz loc_80B7D
mov rsi, [rsp+arg_198]
jmp loc_80B70
jmp loc_80B7A
mov r15, rax
mov rdi, r13
call _ZNSt6vectorI16common_tool_callSaIS0_EED2Ev; std::vector<common_tool_call>::~vector()
mov rdi, [rsp+arg_130]; void *
cmp rdi, rbp
jz short loc_80B05
mov rsi, [rsp+arg_140]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
jmp short loc_80B05
mov r15, rax
loc_80B05:
mov rdi, [rsp+arg_110]
lea rax, [rsp+arg_120]
cmp rdi, rax
jz short loc_80B7D
mov rsi, [rsp+arg_120]
jmp short loc_80B70
jmp short loc_80B7A
mov r15, rax
mov rdi, r13
call _ZNSt6vectorI16common_tool_callSaIS0_EED2Ev; std::vector<common_tool_call>::~vector()
mov rdi, [rsp+arg_B8]; void *
cmp rdi, rbp
jz short loc_80B53
mov rsi, [rsp+arg_C8]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
jmp short loc_80B53
mov r15, rax
loc_80B53:
mov rdi, [rsp+arg_98]; void *
lea rax, [rsp+arg_A8]
cmp rdi, rax
jz short loc_80B7D
mov rsi, [rsp+arg_A8]
loc_80B70:
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
jmp short loc_80B7D
loc_80B7A:
mov r15, rax
loc_80B7D:
add r14, 0FFFFFFFFFFFFFF88h
mov rdi, r14; this
call _ZN15common_chat_msgD2Ev; common_chat_msg::~common_chat_msg()
cmp r14, rbx
jnz short loc_80B7D
loc_80B8E:
mov rdi, r15
call __Unwind_Resume
mov r15, rax
mov rdi, r14
call _ZNSt6vectorI16common_tool_callSaIS0_EED2Ev; std::vector<common_tool_call>::~vector()
mov rdi, [rsp+arg_40]; void *
cmp rdi, r12
jz short loc_80BBD
mov rsi, [rsp+arg_50]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
jmp short loc_80BBD
mov r15, rax
loc_80BBD:
mov rdi, [rsp+arg_20]; void *
cmp rdi, r13
jz short loc_80B8E
mov rsi, [rsp+arg_30]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
jmp short loc_80B8E
mov r15, rax
jmp short loc_80B8E
|
_QWORD * common_chat_format_example[abi:cxx11](_QWORD *a1, const common_chat_inputs *a2, int a3)
{
unsigned long long v5; // r14
long long *v6; // rdi
_QWORD *v7; // rdi
_QWORD *v8; // rax
_QWORD *v9; // rax
_QWORD *v10; // rdi
_BYTE v12[11]; // [rsp+0h] [rbp-238h] BYREF
char v13; // [rsp+Bh] [rbp-22Dh] BYREF
int v14; // [rsp+Ch] [rbp-22Ch]
long long v15[3]; // [rsp+10h] [rbp-228h] BYREF
_QWORD v16[2]; // [rsp+28h] [rbp-210h] BYREF
char v17; // [rsp+38h] [rbp-200h] BYREF
char *v18; // [rsp+48h] [rbp-1F0h] BYREF
char v19; // [rsp+58h] [rbp-1E0h] BYREF
__int128 v20; // [rsp+68h] [rbp-1D0h]
long long v21; // [rsp+78h] [rbp-1C0h]
char *v22; // [rsp+80h] [rbp-1B8h] BYREF
char v23; // [rsp+90h] [rbp-1A8h] BYREF
char *v24; // [rsp+A0h] [rbp-198h] BYREF
char v25; // [rsp+B0h] [rbp-188h] BYREF
char *v26; // [rsp+C0h] [rbp-178h] BYREF
char v27; // [rsp+D0h] [rbp-168h] BYREF
__int128 v28; // [rsp+E0h] [rbp-158h]
long long v29; // [rsp+F0h] [rbp-148h]
char *v30; // [rsp+F8h] [rbp-140h] BYREF
char v31; // [rsp+108h] [rbp-130h] BYREF
char *v32; // [rsp+118h] [rbp-120h] BYREF
char v33; // [rsp+128h] [rbp-110h] BYREF
char *v34; // [rsp+138h] [rbp-100h] BYREF
char v35; // [rsp+148h] [rbp-F0h] BYREF
__int128 v36; // [rsp+158h] [rbp-E0h]
long long v37; // [rsp+168h] [rbp-D0h]
char *v38; // [rsp+170h] [rbp-C8h] BYREF
char v39; // [rsp+180h] [rbp-B8h] BYREF
char *v40; // [rsp+190h] [rbp-A8h] BYREF
char v41; // [rsp+1A0h] [rbp-98h] BYREF
char *v42; // [rsp+1B0h] [rbp-88h] BYREF
char v43; // [rsp+1C0h] [rbp-78h] BYREF
__int128 v44; // [rsp+1D0h] [rbp-68h]
long long v45; // [rsp+1E0h] [rbp-58h]
char *v46; // [rsp+1E8h] [rbp-50h] BYREF
char v47; // [rsp+1F8h] [rbp-40h] BYREF
v16[0] = &v17;
std::string::_M_construct<char const*>((long long)v16, "system", (long long)"");
v14 = a3;
v18 = &v19;
std::string::_M_construct<char const*>((long long)&v18, "You are a helpful assistant", (long long)"");
v20 = 0LL;
v21 = 0LL;
v22 = &v23;
std::string::_M_construct<char const*>((long long)&v22, "", (long long)"");
v24 = &v25;
std::string::_M_construct<char const*>((long long)&v24, "user", (long long)"");
v26 = &v27;
std::string::_M_construct<char const*>((long long)&v26, "Hello", (long long)"");
v28 = 0LL;
v29 = 0LL;
v30 = &v31;
std::string::_M_construct<char const*>((long long)&v30, "", (long long)"");
v32 = &v33;
std::string::_M_construct<char const*>((long long)&v32, "assistant", (long long)"");
v34 = &v35;
std::string::_M_construct<char const*>((long long)&v34, "Hi there", (long long)"");
v36 = 0LL;
v37 = 0LL;
v38 = &v39;
std::string::_M_construct<char const*>((long long)&v38, "", (long long)"");
v40 = &v41;
std::string::_M_construct<char const*>((long long)&v40, "user", (long long)"");
v42 = &v43;
std::string::_M_construct<char const*>((long long)&v42, "How are you?", (long long)"");
v44 = 0LL;
v45 = 0LL;
v46 = &v47;
std::string::_M_construct<char const*>((long long)&v46, "", (long long)"");
std::vector<common_chat_msg>::vector(v15, v16, 4LL, &v13);
v5 = 480LL;
do
{
v6 = *(long long **)&v12[v5 + 8];
if ( &v15[v5 / 8 + 1] != v6 )
operator delete(v6, v15[v5 / 8 + 1] + 1);
std::vector<common_tool_call>::~vector(&v12[v5 - 16]);
v7 = *(_QWORD **)&v12[v5 - 48];
v8 = &v12[v5 - 32];
if ( v8 != v7 )
operator delete(v7, *v8 + 1LL);
v9 = &v12[v5 - 64];
v10 = (_QWORD *)*(v9 - 2);
if ( v9 != v10 )
operator delete(v10, *v9 + 1LL);
v5 -= 120LL;
}
while ( v5 );
common_chat_apply_template[abi:cxx11](a1, a2, v15, 1u, (unsigned __int8)v14);
std::vector<common_chat_msg>::~vector(v15);
return a1;
}
|
common_chat_format_example[abi:cxx11]:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x208
MOV R14D,EDX
MOV RBP,RSI
MOV R15,RDI
LEA R13,[RSP + 0x38]
MOV qword ptr [R13 + -0x10],R13
LAB_0018076a:
LEA RSI,[0x1ad850]
LEA RDX,[0x1ad856]
LEA RBX,[RSP + 0x28]
MOV RDI,RBX
CALL 0x001590a2
MOV dword ptr [RSP + 0xc],R14D
LEA RDI,[RSP + 0x48]
LEA R12,[RSP + 0x58]
MOV qword ptr [R12 + -0x10],R12
LAB_00180799:
LEA RSI,[0x1ad857]
LEA RDX,[0x1ad872]
CALL 0x001590a2
LEA R14,[RSP + 0x68]
LEA RDI,[RSP + 0x80]
LEA RAX,[RSP + 0x90]
XORPS XMM0,XMM0
MOVUPS xmmword ptr [RAX + -0x28],XMM0
MOV qword ptr [RAX + -0x18],0x0
MOV qword ptr [RAX + -0x10],RAX
LAB_001807d4:
LEA RDX,[0x1b543b]
MOV RSI,RDX
CALL 0x001590a2
MOV R12,RBP
LEA R14,[RSP + 0xa0]
LEA RAX,[RSP + 0xb0]
MOV qword ptr [RAX + -0x10],RAX
LAB_001807fa:
LEA RSI,[0x1ad873]
LEA RDX,[0x1ad877]
MOV RDI,R14
CALL 0x001590a2
LEA RDI,[RSP + 0xc0]
LEA RBP,[RSP + 0xd0]
MOV qword ptr [RBP + -0x10],RBP
LAB_00180824:
LEA RSI,[0x1ad878]
LEA RDX,[0x1ad87d]
CALL 0x001590a2
LEA R13,[RSP + 0xe0]
LEA RDI,[RSP + 0xf8]
LEA RAX,[RSP + 0x108]
XORPS XMM0,XMM0
MOVUPS xmmword ptr [RAX + -0x28],XMM0
MOV qword ptr [RAX + -0x18],0x0
MOV qword ptr [RAX + -0x10],RAX
LAB_00180862:
LEA RDX,[0x1b543b]
MOV RSI,RDX
CALL 0x001590a2
LEA R14,[RSP + 0x118]
LEA RAX,[RSP + 0x128]
MOV qword ptr [RAX + -0x10],RAX
LAB_00180885:
LEA RSI,[0x1ad869]
LEA RDX,[0x1ad872]
MOV RDI,R14
CALL 0x001590a2
LEA RDI,[RSP + 0x138]
LEA RBP,[RSP + 0x148]
MOV qword ptr [RBP + -0x10],RBP
LAB_001808af:
LEA RSI,[0x1ad87e]
LEA RDX,[0x1ad886]
CALL 0x001590a2
LEA R13,[RSP + 0x158]
LEA RDI,[RSP + 0x170]
LEA RAX,[RSP + 0x180]
XORPS XMM0,XMM0
MOVUPS xmmword ptr [RAX + -0x28],XMM0
MOV qword ptr [RAX + -0x18],0x0
MOV qword ptr [RAX + -0x10],RAX
LAB_001808ed:
LEA RDX,[0x1b543b]
MOV RSI,RDX
CALL 0x001590a2
LEA R14,[RSP + 0x190]
LEA RAX,[RSP + 0x1a0]
MOV qword ptr [RAX + -0x10],RAX
LAB_00180910:
LEA RSI,[0x1ad873]
LEA RDX,[0x1ad877]
MOV RDI,R14
CALL 0x001590a2
LEA RDI,[RSP + 0x1b0]
LEA RBP,[RSP + 0x1c0]
MOV qword ptr [RBP + -0x10],RBP
LAB_0018093a:
LEA RSI,[0x1c0e51]
LEA RDX,[0x1c0e5d]
CALL 0x001590a2
LEA R13,[RSP + 0x1d0]
LEA RDI,[RSP + 0x1e8]
LEA RAX,[RSP + 0x1f8]
XORPS XMM0,XMM0
MOVUPS xmmword ptr [RAX + -0x28],XMM0
MOV qword ptr [RAX + -0x18],0x0
MOV qword ptr [RAX + -0x10],RAX
LAB_00180978:
LEA RDX,[0x1b543b]
MOV RSI,RDX
CALL 0x001590a2
LAB_00180987:
LEA RDI,[RSP + 0x10]
LEA RSI,[RSP + 0x28]
LEA RCX,[RSP + 0xb]
MOV EDX,0x4
CALL 0x00182dfe
MOV R14D,0x1e0
LAB_001809a6:
LEA RAX,[RSP + R14*0x1]
ADD RAX,0x18
MOV RDI,qword ptr [RAX + -0x10]
CMP RAX,RDI
JZ 0x001809c2
MOV RSI,qword ptr [RAX]
INC RSI
CALL 0x001186a0
LAB_001809c2:
LEA RBX,[RSP + R14*0x1]
ADD RBX,-0x10
MOV RDI,RBX
CALL 0x0012ad7e
MOV RDI,qword ptr [RBX + -0x20]
LEA RAX,[RSP + R14*0x1]
ADD RAX,-0x20
CMP RAX,RDI
JZ 0x001809ee
MOV RSI,qword ptr [RAX]
INC RSI
CALL 0x001186a0
LAB_001809ee:
LEA RAX,[RSP + R14*0x1]
ADD RAX,-0x40
MOV RDI,qword ptr [RAX + -0x10]
CMP RAX,RDI
JZ 0x00180a0a
MOV RSI,qword ptr [RAX]
INC RSI
CALL 0x001186a0
LAB_00180a0a:
ADD R14,-0x78
JNZ 0x001809a6
LAB_00180a10:
MOVZX R8D,byte ptr [RSP + 0xc]
LEA RDX,[RSP + 0x10]
MOV RDI,R15
MOV RSI,R12
MOV ECX,0x1
CALL 0x0017fda8
LAB_00180a2b:
LEA RDI,[RSP + 0x10]
CALL 0x0012ae06
MOV RAX,R15
ADD RSP,0x208
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
|
/* common_chat_format_example[abi:cxx11](minja::chat_template const&, bool) */
chat_template * common_chat_format_example_abi_cxx11_(chat_template *param_1,bool param_2)
{
long *plVar1;
long *plVar2;
int7 in_register_00000031;
long lVar3;
long alStack_288 [8];
vector<common_tool_call,std::allocator<common_tool_call>> avStack_248 [8];
int8 uStack_240;
int8 uStack_230;
vector<common_chat_msg,std::allocator<common_chat_msg>> local_228 [8];
long alStack_220 [2];
int1 *local_210 [2];
int1 local_200 [16];
int1 *local_1f0 [2];
int1 local_1e0 [16];
int8 local_1d0;
int8 uStack_1c8;
int8 local_1c0;
int1 *local_1b8 [2];
int1 local_1a8 [16];
int1 *local_198 [2];
int1 local_188 [16];
int1 *local_178 [2];
int1 local_168 [16];
int8 local_158;
int8 uStack_150;
int8 local_148;
int1 *local_140 [2];
int1 local_130 [16];
int1 *local_120 [2];
int1 local_110 [16];
int1 *local_100 [2];
int1 local_f0 [16];
int8 local_e0;
int8 uStack_d8;
int8 local_d0;
int1 *local_c8 [2];
int1 local_b8 [16];
int1 *local_a8 [2];
int1 local_98 [16];
int1 *local_88 [2];
int1 local_78 [16];
int8 local_68;
int8 uStack_60;
int8 local_58;
int1 *local_50 [2];
int1 local_40 [16];
local_210[0] = local_200;
/* try { // try from 0018076a to 00180784 has its CatchHandler @ 00180bd6 */
uStack_240 = 0x180785;
std::__cxx11::string::_M_construct<char_const*>(local_210,"system","");
local_1f0[0] = local_1e0;
/* try { // try from 00180799 to 001807ab has its CatchHandler @ 00180bba */
uStack_240 = 0x1807ac;
std::__cxx11::string::_M_construct<char_const*>(local_1f0,"You are a helpful assistant","");
local_1b8[0] = local_1a8;
local_1d0 = 0;
uStack_1c8 = 0;
local_1c0 = 0;
/* try { // try from 001807d4 to 001807e2 has its CatchHandler @ 00180b96 */
uStack_240 = 0x1807e3;
std::__cxx11::string::_M_construct<char_const*>(local_1b8,"");
local_198[0] = local_188;
/* try { // try from 001807fa to 0018080f has its CatchHandler @ 00180b7a */
uStack_240 = 0x180810;
std::__cxx11::string::_M_construct<char_const*>(local_198,&DAT_001ad873,&DAT_001ad877);
local_178[0] = local_168;
/* try { // try from 00180824 to 00180836 has its CatchHandler @ 00180b50 */
uStack_240 = 0x180837;
std::__cxx11::string::_M_construct<char_const*>(local_178,"Hello","");
local_140[0] = local_130;
local_158 = 0;
uStack_150 = 0;
local_148 = 0;
/* try { // try from 00180862 to 00180870 has its CatchHandler @ 00180b26 */
uStack_240 = 0x180871;
std::__cxx11::string::_M_construct<char_const*>(local_140,"");
local_120[0] = local_110;
/* try { // try from 00180885 to 0018089a has its CatchHandler @ 00180b24 */
uStack_240 = 0x18089b;
std::__cxx11::string::_M_construct<char_const*>(local_120,"assistant","");
local_100[0] = local_f0;
/* try { // try from 001808af to 001808c1 has its CatchHandler @ 00180b02 */
uStack_240 = 0x1808c2;
std::__cxx11::string::_M_construct<char_const*>(local_100,"Hi there","");
local_c8[0] = local_b8;
local_e0 = 0;
uStack_d8 = 0;
local_d0 = 0;
/* try { // try from 001808ed to 001808fb has its CatchHandler @ 00180ad8 */
uStack_240 = 0x1808fc;
std::__cxx11::string::_M_construct<char_const*>(local_c8,"");
local_a8[0] = local_98;
/* try { // try from 00180910 to 00180925 has its CatchHandler @ 00180ad3 */
uStack_240 = 0x180926;
std::__cxx11::string::_M_construct<char_const*>(local_a8,&DAT_001ad873,&DAT_001ad877);
local_88[0] = local_78;
/* try { // try from 0018093a to 0018094c has its CatchHandler @ 00180aaa */
uStack_240 = 0x18094d;
std::__cxx11::string::_M_construct<char_const*>(local_88,"How are you?","");
local_50[0] = local_40;
local_68 = 0;
uStack_60 = 0;
local_58 = 0;
/* try { // try from 00180978 to 00180986 has its CatchHandler @ 00180a80 */
uStack_240 = 0x180987;
std::__cxx11::string::_M_construct<char_const*>(local_50,"");
/* try { // try from 00180987 to 0018099f has its CatchHandler @ 00180a5c */
uStack_240 = 0x1809a0;
std::vector<common_chat_msg,std::allocator<common_chat_msg>>::vector
(local_228,local_210,4,(long)&uStack_230 + 3);
lVar3 = 0x1e0;
do {
if ((long *)((long)alStack_220 + lVar3) != *(long **)((long)&uStack_230 + lVar3)) {
uStack_240 = 0x1809c2;
operator_delete(*(long **)((long)&uStack_230 + lVar3),*(long *)((long)alStack_220 + lVar3) + 1
);
}
uStack_240 = 0x1809d2;
std::vector<common_tool_call,std::allocator<common_tool_call>>::~vector(avStack_248 + lVar3);
plVar2 = *(long **)((long)alStack_288 + lVar3 + 0x20);
plVar1 = (long *)((long)alStack_288 + lVar3 + 0x30);
if (plVar1 != plVar2) {
uStack_240 = 0x1809ee;
operator_delete(plVar2,*plVar1 + 1);
}
plVar2 = (long *)((long)alStack_288 + lVar3 + 0x10);
if (plVar2 != *(long **)((long)alStack_288 + lVar3)) {
uStack_240 = 0x180a0a;
operator_delete(*(long **)((long)alStack_288 + lVar3),*plVar2 + 1);
}
lVar3 = lVar3 + -0x78;
} while (lVar3 != 0);
/* try { // try from 00180a10 to 00180a2a has its CatchHandler @ 00180a4a */
uStack_240 = 0x180a2b;
common_chat_apply_template_abi_cxx11_
(param_1,(vector *)CONCAT71(in_register_00000031,param_2),SUB81(local_228,0),true);
uStack_240 = 0x180a35;
std::vector<common_chat_msg,std::allocator<common_chat_msg>>::~vector(local_228);
return param_1;
}
|
|
58,042
|
nlohmann::json_abi_v3_11_3::detail::json_sax_dom_parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>>::start_object(unsigned long)
|
monkey531[P]llama/common/./json.hpp
|
bool start_object(std::size_t len)
{
ref_stack.push_back(handle_value(BasicJsonType::value_t::object));
if (JSON_HEDLEY_UNLIKELY(len != static_cast<std::size_t>(-1) && len > ref_stack.back()->max_size()))
{
JSON_THROW(out_of_range::create(408, concat("excessive object size: ", std::to_string(len)), ref_stack.back()));
}
return true;
}
|
O0
|
cpp
|
nlohmann::json_abi_v3_11_3::detail::json_sax_dom_parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>>::start_object(unsigned long):
subq $0x98, %rsp
movq %rdi, 0x90(%rsp)
movq %rsi, 0x88(%rsp)
movq 0x90(%rsp), %rdi
movq %rdi, 0x18(%rsp)
movq %rdi, %rax
addq $0x8, %rax
movq %rax, 0x20(%rsp)
movb $0x1, 0x7f(%rsp)
leaq 0x7f(%rsp), %rsi
callq 0xc3dc0
movq 0x20(%rsp), %rdi
movq %rax, 0x80(%rsp)
leaq 0x80(%rsp), %rsi
callq 0xc3d90
xorl %eax, %eax
cmpq $-0x1, 0x88(%rsp)
movb %al, 0x2a(%rsp)
je 0xc371f
movq 0x18(%rsp), %rdi
movq 0x88(%rsp), %rax
movq %rax, 0x10(%rsp)
addq $0x8, %rdi
callq 0xb9880
movq (%rax), %rdi
callq 0xb98c0
movq %rax, %rcx
movq 0x10(%rsp), %rax
cmpq %rcx, %rax
seta %al
movb %al, 0x2a(%rsp)
movb 0x2a(%rsp), %al
xorb $-0x1, %al
xorb $-0x1, %al
testb $0x1, %al
jne 0xc3730
jmp 0xc380d
movb $0x1, 0x2b(%rsp)
movl $0x20, %edi
callq 0x50540
movq %rax, 0x8(%rsp)
movq 0x88(%rsp), %rsi
leaq 0x38(%rsp), %rdi
callq 0xb9ba0
jmp 0xc3758
leaq 0x10b4bd(%rip), %rsi # 0x1cec1c
leaq 0x58(%rsp), %rdi
leaq 0x38(%rsp), %rdx
callq 0xb9af0
jmp 0xc3770
movq 0x18(%rsp), %rdi
addq $0x8, %rdi
callq 0xb9880
movq 0x8(%rsp), %rdi
movq (%rax), %rcx
movl $0x198, %esi # imm = 0x198
leaq 0x58(%rsp), %rdx
callq 0xb9940
jmp 0xc3797
movq 0x8(%rsp), %rdi
movb $0x0, 0x2b(%rsp)
leaq 0x18ea38(%rip), %rsi # 0x2521e0
leaq -0xa86f(%rip), %rdx # 0xb8f40
callq 0x508f0
jmp 0xc3823
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x30(%rsp)
movl %eax, 0x2c(%rsp)
jmp 0xc37f8
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x30(%rsp)
movl %eax, 0x2c(%rsp)
jmp 0xc37ee
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x30(%rsp)
movl %eax, 0x2c(%rsp)
leaq 0x58(%rsp), %rdi
callq 0x510c0
leaq 0x38(%rsp), %rdi
callq 0x510c0
testb $0x1, 0x2b(%rsp)
jne 0xc3801
jmp 0xc380b
movq 0x8(%rsp), %rdi
callq 0x50c40
jmp 0xc3819
movb $0x1, %al
andb $0x1, %al
addq $0x98, %rsp
retq
movq 0x30(%rsp), %rdi
callq 0x50940
nopw %cs:(%rax,%rax)
nopl (%rax)
|
_ZN8nlohmann16json_abi_v3_11_36detail19json_sax_dom_parserINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEE12start_objectEm:
sub rsp, 98h
mov qword ptr [rsp+98h+var_8], rdi; char
mov [rsp+98h+var_10], rsi; int
mov rdi, qword ptr [rsp+98h+var_8]
mov qword ptr [rsp+98h+var_80], rdi; char
mov rax, rdi
add rax, 8
mov qword ptr [rsp+98h+var_78], rax; int
mov [rsp+98h+var_19], 1
lea rsi, [rsp+98h+var_19]
call _ZN8nlohmann16json_abi_v3_11_36detail19json_sax_dom_parserINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEE12handle_valueINS1_7value_tEEEPSF_OT_; nlohmann::json_abi_v3_11_3::detail::json_sax_dom_parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>::handle_value<nlohmann::json_abi_v3_11_3::detail::value_t>(nlohmann::json_abi_v3_11_3::detail::value_t &&)
mov rdi, qword ptr [rsp+98h+var_78]
mov qword ptr [rsp+98h+var_18], rax; int
lea rsi, [rsp+98h+var_18]
call _ZNSt6vectorIPN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapES_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES_IhSaIhEEvEESaISE_EE9push_backEOSE_; std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> *,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> *>>::push_back(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> *&&)
xor eax, eax
cmp [rsp+98h+var_10], 0FFFFFFFFFFFFFFFFh
mov [rsp+98h+var_6E], al
jz short loc_C371F
mov rdi, qword ptr [rsp+98h+var_80]
mov rax, [rsp+98h+var_10]
mov qword ptr [rsp+98h+var_88], rax; int
add rdi, 8
call _ZNSt6vectorIPN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapES_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES_IhSaIhEEvEESaISE_EE4backEv; std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> *,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> *>>::back(void)
mov rdi, [rax]
call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE8max_sizeEv; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::max_size(void)
mov rcx, rax
mov rax, qword ptr [rsp+98h+var_88]
cmp rax, rcx
setnbe al
mov [rsp+98h+var_6E], al
loc_C371F:
mov al, [rsp+98h+var_6E]
xor al, 0FFh
xor al, 0FFh
test al, 1
jnz short loc_C3730
jmp loc_C380D
loc_C3730:
mov [rsp+98h+var_6D], 1
mov edi, 20h ; ' '; thrown_size
call ___cxa_allocate_exception
mov [rsp+98h+var_90], rax; int
mov rsi, [rsp+98h+var_10]; unsigned __int64
lea rdi, [rsp+98h+var_60]; this
call _ZNSt7__cxx119to_stringEm; std::to_string(ulong)
jmp short $+2
loc_C3758:
lea rsi, aExcessiveObjec; "excessive object size: "
lea rdi, [rsp+98h+var_40]
lea rdx, [rsp+98h+var_60]
call _ZN8nlohmann16json_abi_v3_11_36detail6concatINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEJRA24_KcS8_EEET_DpOT0_; nlohmann::json_abi_v3_11_3::detail::concat<std::string,char const(&)[24],std::string>(char const(&)[24],std::string &&)
jmp short $+2
loc_C3770:
mov rdi, qword ptr [rsp+98h+var_80]
add rdi, 8
call _ZNSt6vectorIPN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapES_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES_IhSaIhEEvEESaISE_EE4backEv; std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> *,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> *>>::back(void)
mov rdi, [rsp+98h+var_90]; int
mov rcx, [rax]
mov esi, 198h
lea rdx, [rsp+98h+var_40]
call _ZN8nlohmann16json_abi_v3_11_36detail12out_of_range6createIPNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SJ_
jmp short $+2
loc_C3797:
mov rdi, [rsp+98h+var_90]; void *
mov [rsp+98h+var_6D], 0
lea rsi, _ZTIN8nlohmann16json_abi_v3_11_36detail12out_of_rangeE; lptinfo
lea rdx, _ZN8nlohmann16json_abi_v3_11_36detail12out_of_rangeD2Ev; void (*)(void *)
call ___cxa_throw
jmp short loc_C3823
mov rcx, rax
mov eax, edx
mov [rsp+arg_28], rcx
mov [rsp+arg_24], eax
jmp short loc_C37F8
mov rcx, rax
mov eax, edx
mov [rsp+arg_28], rcx
mov [rsp+arg_24], eax
jmp short loc_C37EE
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_C37EE:
lea rdi, [rsp+arg_30]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string()
loc_C37F8:
test [rsp+arg_23], 1
jnz short loc_C3801
jmp short loc_C380B
loc_C3801:
mov rdi, [rsp+arg_0]; void *
call ___cxa_free_exception
loc_C380B:
jmp short loc_C3819
loc_C380D:
mov al, 1
and al, 1
add rsp, 98h
retn
loc_C3819:
mov rdi, [rsp+arg_28]
call __Unwind_Resume
loc_C3823:
nop word ptr [rax+rax+00000000h]
nop dword ptr [rax]
|
char nlohmann::json_abi_v3_11_3::detail::json_sax_dom_parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>::start_object(
long long a1,
unsigned long long a2)
{
long long *v2; // rax
long long *v3; // rax
nlohmann::json_abi_v3_11_3::detail::out_of_range *exception; // [rsp+8h] [rbp-90h]
unsigned long long v6; // [rsp+10h] [rbp-88h]
bool v7; // [rsp+2Ah] [rbp-6Eh]
_BYTE v8[32]; // [rsp+38h] [rbp-60h] BYREF
_BYTE v9[39]; // [rsp+58h] [rbp-40h] BYREF
char v10; // [rsp+7Fh] [rbp-19h] BYREF
int v11[2]; // [rsp+80h] [rbp-18h] BYREF
unsigned long long v12; // [rsp+88h] [rbp-10h]
char v13[8]; // [rsp+90h] [rbp-8h]
*(_QWORD *)v13 = a1;
v12 = a2;
v10 = 1;
*(_QWORD *)v11 = nlohmann::json_abi_v3_11_3::detail::json_sax_dom_parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>::handle_value<nlohmann::json_abi_v3_11_3::detail::value_t>(
a1,
&v10);
std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> *,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> *>>::push_back(
a1 + 8,
v11);
v7 = 0;
if ( v12 != -1LL )
{
v6 = v12;
v2 = (long long *)std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> *,std::allocator<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> *>>::back(a1 + 8);
v7 = v6 > nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::max_size(*v2);
}
if ( v7 )
{
exception = (nlohmann::json_abi_v3_11_3::detail::out_of_range *)__cxa_allocate_exception(0x20uLL);
std::to_string((std::__cxx11 *)v8, v12);
nlohmann::json_abi_v3_11_3::detail::concat<std::string,char const(&)[24],std::string>(
(long long)v9,
(long long)"excessive object size: ",
(long long)v8);
v3 = (long long *)std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> *,std::allocator<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> *>>::back(a1 + 8);
ZN8nlohmann16json_abi_v3_11_36detail12out_of_range6createIPNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SJ_(
exception,
408,
(long long)v9,
*v3);
__cxa_throw(
exception,
(struct type_info *)&`typeinfo for'nlohmann::json_abi_v3_11_3::detail::out_of_range,
(void (*)(void *))nlohmann::json_abi_v3_11_3::detail::out_of_range::~out_of_range);
}
return 1;
}
|
start_object:
SUB RSP,0x98
MOV qword ptr [RSP + 0x90],RDI
MOV qword ptr [RSP + 0x88],RSI
MOV RDI,qword ptr [RSP + 0x90]
MOV qword ptr [RSP + 0x18],RDI
MOV RAX,RDI
ADD RAX,0x8
MOV qword ptr [RSP + 0x20],RAX
MOV byte ptr [RSP + 0x7f],0x1
LEA RSI,[RSP + 0x7f]
CALL 0x001c3dc0
MOV RDI,qword ptr [RSP + 0x20]
MOV qword ptr [RSP + 0x80],RAX
LEA RSI,[RSP + 0x80]
CALL 0x001c3d90
XOR EAX,EAX
CMP qword ptr [RSP + 0x88],-0x1
MOV byte ptr [RSP + 0x2a],AL
JZ 0x001c371f
MOV RDI,qword ptr [RSP + 0x18]
MOV RAX,qword ptr [RSP + 0x88]
MOV qword ptr [RSP + 0x10],RAX
ADD RDI,0x8
CALL 0x001b9880
MOV RDI,qword ptr [RAX]
CALL 0x001b98c0
MOV RCX,RAX
MOV RAX,qword ptr [RSP + 0x10]
CMP RAX,RCX
SETA AL
MOV byte ptr [RSP + 0x2a],AL
LAB_001c371f:
MOV AL,byte ptr [RSP + 0x2a]
XOR AL,0xff
XOR AL,0xff
TEST AL,0x1
JNZ 0x001c3730
JMP 0x001c380d
LAB_001c3730:
MOV byte ptr [RSP + 0x2b],0x1
MOV EDI,0x20
CALL 0x00150540
MOV qword ptr [RSP + 0x8],RAX
MOV RSI,qword ptr [RSP + 0x88]
LAB_001c374c:
LEA RDI,[RSP + 0x38]
CALL 0x001b9ba0
JMP 0x001c3758
LAB_001c3758:
LEA RSI,[0x2cec1c]
LEA RDI,[RSP + 0x58]
LEA RDX,[RSP + 0x38]
CALL 0x001b9af0
JMP 0x001c3770
LAB_001c3770:
MOV RDI,qword ptr [RSP + 0x18]
ADD RDI,0x8
CALL 0x001b9880
MOV RDI,qword ptr [RSP + 0x8]
MOV RCX,qword ptr [RAX]
LAB_001c3786:
MOV ESI,0x198
LEA RDX,[RSP + 0x58]
CALL 0x001b9940
JMP 0x001c3797
LAB_001c3797:
MOV RDI,qword ptr [RSP + 0x8]
MOV byte ptr [RSP + 0x2b],0x0
LEA RSI,[0x3521e0]
LEA RDX,[0x1b8f40]
CALL 0x001508f0
LAB_001c380d:
MOV AL,0x1
AND AL,0x1
ADD RSP,0x98
RET
|
/* nlohmann::json_abi_v3_11_3::detail::json_sax_dom_parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,
std::vector, std::__cxx11::string, bool, long, unsigned long, double, std::allocator,
nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned
char> >, void> >::start_object(unsigned long) */
int8 __thiscall
nlohmann::json_abi_v3_11_3::detail::
json_sax_dom_parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>
::start_object(json_sax_dom_parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>
*this,ulong param_1)
{
bool bVar1;
ulong uVar2;
int8 *puVar3;
ulong uVar4;
int7 uVar6;
int8 uVar5;
__cxx11 local_60 [32];
detail local_40 [39];
value_t local_19;
basic_json *local_18;
ulong local_10;
json_sax_dom_parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>
*local_8;
local_19 = 1;
local_10 = param_1;
local_8 = this;
local_18 = handle_value<nlohmann::json_abi_v3_11_3::detail::value_t>(this,&local_19);
std::
vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*>>
::push_back((vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*>>
*)(this + 8),&local_18);
uVar2 = local_10;
uVar6 = 0;
bVar1 = false;
if (local_10 != 0xffffffffffffffff) {
puVar3 = (int8 *)
std::
vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*>>
::back((vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*>>
*)(this + 8));
uVar4 = basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::max_size((basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
*)*puVar3);
bVar1 = uVar4 < uVar2;
uVar6 = (int7)(uVar2 >> 8);
}
if (!bVar1) {
return CONCAT71(uVar6,1);
}
uVar5 = __cxa_allocate_exception(0x20);
/* try { // try from 001c374c to 001c3755 has its CatchHandler @ 001c37b6 */
std::__cxx11::to_string(local_60,local_10);
/* try { // try from 001c3758 to 001c376d has its CatchHandler @ 001c37c6 */
concat<std::__cxx11::string,char_const(&)[24],std::__cxx11::string>
(local_40,"excessive object size: ",(string *)local_60);
puVar3 = (int8 *)
std::
vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*>>
::back((vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*>>
*)(this + 8));
/* try { // try from 001c3786 to 001c37b3 has its CatchHandler @ 001c37d6 */
_ZN8nlohmann16json_abi_v3_11_36detail12out_of_range6createIPNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SJ_
(uVar5,0x198,local_40,*puVar3);
/* WARNING: Subroutine does not return */
__cxa_throw(uVar5,&out_of_range::typeinfo,out_of_range::~out_of_range);
}
|
|
58,043
|
LefDefParser::lefiMacro::addForeign(char const*, int, double, double, int)
|
Efficient-TDP/thirdparty/Limbo/limbo/thirdparty/lefdef/5.8/lef/lef/lefiMacro.cpp
|
void
lefiMacro::addForeign(const char *name,
int hasPnt,
double x,
double y,
int orient)
{
int i;
int *hfo;
int *hfp;
int *fo;
double *fx;
double *fy;
char **f;
if (foreignAllocated_ == numForeigns_) {
if (foreignAllocated_ == 0)
foreignAllocated_ = 16; // since it involves char*, it will
// costly in the number is too small
else
foreignAllocated_ *= 2;
hfo = (int*) lefMalloc(sizeof(int) * foreignAllocated_);
hfp = (int*) lefMalloc(sizeof(int) * foreignAllocated_);
fo = (int*) lefMalloc(sizeof(int) * foreignAllocated_);
fx = (double*) lefMalloc(sizeof(double) * foreignAllocated_);
fy = (double*) lefMalloc(sizeof(double) * foreignAllocated_);
f = (char**) lefMalloc(sizeof(char*) * foreignAllocated_);
if (numForeigns_ != 0) {
for (i = 0; i < numForeigns_; i++) {
hfo[i] = hasForeignOrigin_[i];
hfp[i] = hasForeignPoint_[i];
fo[i] = foreignOrient_[i];
fx[i] = foreignX_[i];
fy[i] = foreignY_[i];
f[i] = foreign_[i];
}
lefFree((char*) (hasForeignOrigin_));
lefFree((char*) (hasForeignPoint_));
lefFree((char*) (foreignOrient_));
lefFree((char*) (foreignX_));
lefFree((char*) (foreignY_));
lefFree((char*) (foreign_));
}
hasForeignOrigin_ = hfo;
hasForeignPoint_ = hfp;
foreignOrient_ = fo;
foreignX_ = fx;
foreignY_ = fy;
foreign_ = f;
}
// orient=-1 means no orient was specified.
hasForeignOrigin_[numForeigns_] = orient;
hasForeignPoint_[numForeigns_] = hasPnt;
foreignOrient_[numForeigns_] = orient;
foreignX_[numForeigns_] = x;
foreignY_[numForeigns_] = y;
foreign_[numForeigns_] = (char*) lefMalloc(strlen(name) + 1);
strcpy(foreign_[numForeigns_], CASE(name));
numForeigns_ += 1;
}
|
O3
|
cpp
|
LefDefParser::lefiMacro::addForeign(char const*, int, double, double, int):
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %rsi, %r12
movq %rdi, %rbx
movl 0xd0(%rdi), %eax
movl 0xd4(%rdi), %esi
cmpl %eax, %esi
jne 0x2ba3d
movl %edx, (%rsp)
movl %ecx, 0x4(%rsp)
movsd %xmm0, 0x10(%rsp)
movsd %xmm1, 0x18(%rsp)
movq %r12, 0x20(%rsp)
leal (%rsi,%rsi), %eax
testl %esi, %esi
movl $0x10, %ecx
cmovnel %eax, %ecx
movl %ecx, 0xd4(%rbx)
movslq %ecx, %rdi
shlq $0x2, %rdi
callq 0x24985
movq %rax, 0x8(%rsp)
movslq 0xd4(%rbx), %rdi
shlq $0x2, %rdi
callq 0x24985
movq %rax, %r13
movslq 0xd4(%rbx), %rdi
shlq $0x2, %rdi
callq 0x24985
movq %rax, %r15
movslq 0xd4(%rbx), %rdi
shlq $0x3, %rdi
callq 0x24985
movq %rax, %r14
movslq 0xd4(%rbx), %rdi
shlq $0x3, %rdi
callq 0x24985
movq %rax, %rbp
movslq 0xd4(%rbx), %rdi
shlq $0x3, %rdi
callq 0x24985
movq %rax, %r12
cmpl $0x0, 0xd0(%rbx)
je 0x2ba62
movq 0x8(%rsp), %rdx
jle 0x2b9ed
xorl %eax, %eax
movq 0xd8(%rbx), %rcx
movl (%rcx,%rax,4), %ecx
movl %ecx, (%rdx,%rax,4)
movq 0xe0(%rbx), %rcx
movl (%rcx,%rax,4), %ecx
movl %ecx, (%r13,%rax,4)
movq 0xe8(%rbx), %rcx
movl (%rcx,%rax,4), %ecx
movl %ecx, (%r15,%rax,4)
movq 0xf0(%rbx), %rcx
movsd (%rcx,%rax,8), %xmm0
movsd %xmm0, (%r14,%rax,8)
movq 0xf8(%rbx), %rcx
movsd (%rcx,%rax,8), %xmm0
movsd %xmm0, (%rbp,%rax,8)
movq 0x100(%rbx), %rcx
movq (%rcx,%rax,8), %rcx
movq %rcx, (%r12,%rax,8)
incq %rax
movslq 0xd0(%rbx), %rcx
cmpq %rcx, %rax
jl 0x2b981
movq 0xd8(%rbx), %rdi
callq 0x26040
movq 0xe0(%rbx), %rdi
callq 0x26040
movq 0xe8(%rbx), %rdi
callq 0x26040
movq 0xf0(%rbx), %rdi
callq 0x26040
movq 0xf8(%rbx), %rdi
callq 0x26040
movq 0x100(%rbx), %rdi
callq 0x26040
movl 0xd0(%rbx), %eax
jmp 0x2ba64
movq 0xd8(%rbx), %rsi
movq 0xe0(%rbx), %r13
movq 0xe8(%rbx), %r15
movq 0xf0(%rbx), %r14
movq 0xf8(%rbx), %rbp
jmp 0x2baab
xorl %eax, %eax
movq 0x8(%rsp), %rsi
movq %rsi, 0xd8(%rbx)
movq %r13, 0xe0(%rbx)
movq %r15, 0xe8(%rbx)
movq %r14, 0xf0(%rbx)
movq %rbp, 0xf8(%rbx)
movq %r12, 0x100(%rbx)
movq 0x20(%rsp), %r12
movsd 0x18(%rsp), %xmm1
movsd 0x10(%rsp), %xmm0
movl 0x4(%rsp), %ecx
movl (%rsp), %edx
cltq
movl %ecx, (%rsi,%rax,4)
movslq 0xd0(%rbx), %rax
movl %edx, (%r13,%rax,4)
movslq 0xd0(%rbx), %rax
movl %ecx, (%r15,%rax,4)
movslq 0xd0(%rbx), %rax
movsd %xmm0, (%r14,%rax,8)
movsd %xmm1, (%rbp,%rax,8)
movq %r12, %rdi
callq 0x20d0
leaq 0x1(%rax), %rdi
callq 0x24985
movq 0x100(%rbx), %rcx
movslq 0xd0(%rbx), %rdx
movq %rax, (%rcx,%rdx,8)
movq 0x100(%rbx), %rax
movq (%rax,%rdx,8), %r14
movq %r12, %rdi
callq 0x27c0a
movq %r14, %rdi
movq %rax, %rsi
callq 0x21b0
incl 0xd0(%rbx)
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
|
_ZN12LefDefParser9lefiMacro10addForeignEPKciddi:
push rbp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 28h
mov r12, rsi
mov rbx, rdi
mov eax, [rdi+0D0h]
mov esi, [rdi+0D4h]; void *
cmp esi, eax
jnz loc_2BA3D
mov [rsp+58h+var_58], edx
mov [rsp+58h+var_54], ecx
movsd [rsp+58h+var_48], xmm0
movsd [rsp+58h+var_40], xmm1
mov [rsp+58h+var_38], r12
lea eax, [rsi+rsi]
test esi, esi
mov ecx, 10h
cmovnz ecx, eax
mov [rbx+0D4h], ecx
movsxd rdi, ecx
shl rdi, 2; this
call _ZN12LefDefParser9lefMallocEm; LefDefParser::lefMalloc(ulong)
mov [rsp+58h+var_50], rax
movsxd rdi, dword ptr [rbx+0D4h]
shl rdi, 2; this
call _ZN12LefDefParser9lefMallocEm; LefDefParser::lefMalloc(ulong)
mov r13, rax
movsxd rdi, dword ptr [rbx+0D4h]
shl rdi, 2; this
call _ZN12LefDefParser9lefMallocEm; LefDefParser::lefMalloc(ulong)
mov r15, rax
movsxd rdi, dword ptr [rbx+0D4h]
shl rdi, 3; this
call _ZN12LefDefParser9lefMallocEm; LefDefParser::lefMalloc(ulong)
mov r14, rax
movsxd rdi, dword ptr [rbx+0D4h]
shl rdi, 3; this
call _ZN12LefDefParser9lefMallocEm; LefDefParser::lefMalloc(ulong)
mov rbp, rax
movsxd rdi, dword ptr [rbx+0D4h]
shl rdi, 3; this
call _ZN12LefDefParser9lefMallocEm; LefDefParser::lefMalloc(ulong)
mov r12, rax
cmp dword ptr [rbx+0D0h], 0
jz loc_2BA62
mov rdx, [rsp+58h+var_50]
jle short loc_2B9ED
xor eax, eax
loc_2B981:
mov rcx, [rbx+0D8h]
mov ecx, [rcx+rax*4]
mov [rdx+rax*4], ecx
mov rcx, [rbx+0E0h]
mov ecx, [rcx+rax*4]
mov [r13+rax*4+0], ecx
mov rcx, [rbx+0E8h]
mov ecx, [rcx+rax*4]
mov [r15+rax*4], ecx
mov rcx, [rbx+0F0h]
movsd xmm0, qword ptr [rcx+rax*8]
movsd qword ptr [r14+rax*8], xmm0
mov rcx, [rbx+0F8h]
movsd xmm0, qword ptr [rcx+rax*8]
movsd qword ptr [rbp+rax*8+0], xmm0
mov rcx, [rbx+100h]
mov rcx, [rcx+rax*8]
mov [r12+rax*8], rcx
inc rax
movsxd rcx, dword ptr [rbx+0D0h]
cmp rax, rcx
jl short loc_2B981
loc_2B9ED:
mov rdi, [rbx+0D8h]; this
call _ZN12LefDefParser7lefFreeEPv; LefDefParser::lefFree(void *)
mov rdi, [rbx+0E0h]; this
call _ZN12LefDefParser7lefFreeEPv; LefDefParser::lefFree(void *)
mov rdi, [rbx+0E8h]; this
call _ZN12LefDefParser7lefFreeEPv; LefDefParser::lefFree(void *)
mov rdi, [rbx+0F0h]; this
call _ZN12LefDefParser7lefFreeEPv; LefDefParser::lefFree(void *)
mov rdi, [rbx+0F8h]; this
call _ZN12LefDefParser7lefFreeEPv; LefDefParser::lefFree(void *)
mov rdi, [rbx+100h]; this
call _ZN12LefDefParser7lefFreeEPv; LefDefParser::lefFree(void *)
mov eax, [rbx+0D0h]
jmp short loc_2BA64
loc_2BA3D:
mov rsi, [rbx+0D8h]
mov r13, [rbx+0E0h]
mov r15, [rbx+0E8h]
mov r14, [rbx+0F0h]
mov rbp, [rbx+0F8h]
jmp short loc_2BAAB
loc_2BA62:
xor eax, eax
loc_2BA64:
mov rsi, [rsp+58h+var_50]; char *
mov [rbx+0D8h], rsi
mov [rbx+0E0h], r13
mov [rbx+0E8h], r15
mov [rbx+0F0h], r14
mov [rbx+0F8h], rbp
mov [rbx+100h], r12
mov r12, [rsp+58h+var_38]
movsd xmm1, [rsp+58h+var_40]
movsd xmm0, [rsp+58h+var_48]
mov ecx, [rsp+58h+var_54]
mov edx, [rsp+58h+var_58]
loc_2BAAB:
cdqe
mov [rsi+rax*4], ecx
movsxd rax, dword ptr [rbx+0D0h]
mov [r13+rax*4+0], edx
movsxd rax, dword ptr [rbx+0D0h]
mov [r15+rax*4], ecx
movsxd rax, dword ptr [rbx+0D0h]
movsd qword ptr [r14+rax*8], xmm0
movsd qword ptr [rbp+rax*8+0], xmm1
mov rdi, r12
call _strlen
lea rdi, [rax+1]; this
call _ZN12LefDefParser9lefMallocEm; LefDefParser::lefMalloc(ulong)
mov rcx, [rbx+100h]
movsxd rdx, dword ptr [rbx+0D0h]
mov [rcx+rdx*8], rax
mov rax, [rbx+100h]
mov r14, [rax+rdx*8]
mov rdi, r12; this
call _ZN12LefDefParser4CASEEPKc; LefDefParser::CASE(char const*)
mov rdi, r14
mov rsi, rax
call _strcpy
inc dword ptr [rbx+0D0h]
add rsp, 28h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
|
long long LefDefParser::lefiMacro::addForeign(
LefDefParser::lefiMacro *this,
LefDefParser *a2,
int a3,
double a4,
double a5,
int a6)
{
int v7; // eax
void *v8; // rsi
int v9; // ecx
long long v10; // r13
long long v11; // r15
long long v12; // r14
long long v13; // rbp
long long v14; // r12
long long v15; // rax
char *v16; // rsi
long long v17; // rax
long long v18; // rax
long long v19; // rax
long long v20; // rdx
long long v21; // r14
LefDefParser *v22; // rax
long long result; // rax
int v24; // [rsp+0h] [rbp-58h]
int v25; // [rsp+4h] [rbp-54h]
char *v26; // [rsp+8h] [rbp-50h]
const char *v27; // [rsp+20h] [rbp-38h]
v7 = *((_DWORD *)this + 52);
v8 = (void *)*((unsigned int *)this + 53);
if ( (_DWORD)v8 == v7 )
{
v24 = a3;
v25 = a6;
v27 = (const char *)a2;
v9 = 16;
if ( (_DWORD)v8 )
v9 = 2 * (_DWORD)v8;
*((_DWORD *)this + 53) = v9;
v26 = (char *)LefDefParser::lefMalloc((LefDefParser *)(4LL * v9));
v10 = LefDefParser::lefMalloc((LefDefParser *)(4LL * *((int *)this + 53)));
v11 = LefDefParser::lefMalloc((LefDefParser *)(4LL * *((int *)this + 53)));
v12 = LefDefParser::lefMalloc((LefDefParser *)(8LL * *((int *)this + 53)));
v13 = LefDefParser::lefMalloc((LefDefParser *)(8LL * *((int *)this + 53)));
v14 = LefDefParser::lefMalloc((LefDefParser *)(8LL * *((int *)this + 53)));
if ( *((_DWORD *)this + 52) )
{
if ( *((int *)this + 52) > 0 )
{
v15 = 0LL;
do
{
*(_DWORD *)&v26[4 * v15] = *(_DWORD *)(*((_QWORD *)this + 27) + 4 * v15);
*(_DWORD *)(v10 + 4 * v15) = *(_DWORD *)(*((_QWORD *)this + 28) + 4 * v15);
*(_DWORD *)(v11 + 4 * v15) = *(_DWORD *)(*((_QWORD *)this + 29) + 4 * v15);
*(_QWORD *)(v12 + 8 * v15) = *(_QWORD *)(*((_QWORD *)this + 30) + 8 * v15);
*(_QWORD *)(v13 + 8 * v15) = *(_QWORD *)(*((_QWORD *)this + 31) + 8 * v15);
*(_QWORD *)(v14 + 8 * v15) = *(_QWORD *)(*((_QWORD *)this + 32) + 8 * v15);
++v15;
}
while ( v15 < *((int *)this + 52) );
}
LefDefParser::lefFree(*((LefDefParser **)this + 27), v8);
LefDefParser::lefFree(*((LefDefParser **)this + 28), v8);
LefDefParser::lefFree(*((LefDefParser **)this + 29), v8);
LefDefParser::lefFree(*((LefDefParser **)this + 30), v8);
LefDefParser::lefFree(*((LefDefParser **)this + 31), v8);
LefDefParser::lefFree(*((LefDefParser **)this + 32), v8);
v7 = *((_DWORD *)this + 52);
}
else
{
v7 = 0;
}
v16 = v26;
*((_QWORD *)this + 27) = v26;
*((_QWORD *)this + 28) = v10;
*((_QWORD *)this + 29) = v11;
*((_QWORD *)this + 30) = v12;
*((_QWORD *)this + 31) = v13;
*((_QWORD *)this + 32) = v14;
a2 = (LefDefParser *)v27;
a6 = v25;
a3 = v24;
}
else
{
v16 = (char *)*((_QWORD *)this + 27);
v10 = *((_QWORD *)this + 28);
v11 = *((_QWORD *)this + 29);
v12 = *((_QWORD *)this + 30);
v13 = *((_QWORD *)this + 31);
}
*(_DWORD *)&v16[4 * v7] = a6;
*(_DWORD *)(v10 + 4LL * *((int *)this + 52)) = a3;
*(_DWORD *)(v11 + 4LL * *((int *)this + 52)) = a6;
v17 = *((int *)this + 52);
*(double *)(v12 + 8 * v17) = a4;
*(double *)(v13 + 8 * v17) = a5;
v18 = strlen(a2);
v19 = LefDefParser::lefMalloc((LefDefParser *)(v18 + 1));
v20 = *((int *)this + 52);
*(_QWORD *)(*((_QWORD *)this + 32) + 8 * v20) = v19;
v21 = *(_QWORD *)(*((_QWORD *)this + 32) + 8 * v20);
v22 = LefDefParser::CASE(a2, v16);
result = strcpy(v21, v22);
++*((_DWORD *)this + 52);
return result;
}
|
addForeign:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x28
MOV R12,RSI
MOV RBX,RDI
MOV EAX,dword ptr [RDI + 0xd0]
MOV ESI,dword ptr [RDI + 0xd4]
CMP ESI,EAX
JNZ 0x0012ba3d
MOV dword ptr [RSP],EDX
MOV dword ptr [RSP + 0x4],ECX
MOVSD qword ptr [RSP + 0x10],XMM0
MOVSD qword ptr [RSP + 0x18],XMM1
MOV qword ptr [RSP + 0x20],R12
LEA EAX,[RSI + RSI*0x1]
TEST ESI,ESI
MOV ECX,0x10
CMOVNZ ECX,EAX
MOV dword ptr [RBX + 0xd4],ECX
MOVSXD RDI,ECX
SHL RDI,0x2
CALL 0x00124985
MOV qword ptr [RSP + 0x8],RAX
MOVSXD RDI,dword ptr [RBX + 0xd4]
SHL RDI,0x2
CALL 0x00124985
MOV R13,RAX
MOVSXD RDI,dword ptr [RBX + 0xd4]
SHL RDI,0x2
CALL 0x00124985
MOV R15,RAX
MOVSXD RDI,dword ptr [RBX + 0xd4]
SHL RDI,0x3
CALL 0x00124985
MOV R14,RAX
MOVSXD RDI,dword ptr [RBX + 0xd4]
SHL RDI,0x3
CALL 0x00124985
MOV RBP,RAX
MOVSXD RDI,dword ptr [RBX + 0xd4]
SHL RDI,0x3
CALL 0x00124985
MOV R12,RAX
CMP dword ptr [RBX + 0xd0],0x0
JZ 0x0012ba62
MOV RDX,qword ptr [RSP + 0x8]
JLE 0x0012b9ed
XOR EAX,EAX
LAB_0012b981:
MOV RCX,qword ptr [RBX + 0xd8]
MOV ECX,dword ptr [RCX + RAX*0x4]
MOV dword ptr [RDX + RAX*0x4],ECX
MOV RCX,qword ptr [RBX + 0xe0]
MOV ECX,dword ptr [RCX + RAX*0x4]
MOV dword ptr [R13 + RAX*0x4],ECX
MOV RCX,qword ptr [RBX + 0xe8]
MOV ECX,dword ptr [RCX + RAX*0x4]
MOV dword ptr [R15 + RAX*0x4],ECX
MOV RCX,qword ptr [RBX + 0xf0]
MOVSD XMM0,qword ptr [RCX + RAX*0x8]
MOVSD qword ptr [R14 + RAX*0x8],XMM0
MOV RCX,qword ptr [RBX + 0xf8]
MOVSD XMM0,qword ptr [RCX + RAX*0x8]
MOVSD qword ptr [RBP + RAX*0x8],XMM0
MOV RCX,qword ptr [RBX + 0x100]
MOV RCX,qword ptr [RCX + RAX*0x8]
MOV qword ptr [R12 + RAX*0x8],RCX
INC RAX
MOVSXD RCX,dword ptr [RBX + 0xd0]
CMP RAX,RCX
JL 0x0012b981
LAB_0012b9ed:
MOV RDI,qword ptr [RBX + 0xd8]
CALL 0x00126040
MOV RDI,qword ptr [RBX + 0xe0]
CALL 0x00126040
MOV RDI,qword ptr [RBX + 0xe8]
CALL 0x00126040
MOV RDI,qword ptr [RBX + 0xf0]
CALL 0x00126040
MOV RDI,qword ptr [RBX + 0xf8]
CALL 0x00126040
MOV RDI,qword ptr [RBX + 0x100]
CALL 0x00126040
MOV EAX,dword ptr [RBX + 0xd0]
JMP 0x0012ba64
LAB_0012ba3d:
MOV RSI,qword ptr [RBX + 0xd8]
MOV R13,qword ptr [RBX + 0xe0]
MOV R15,qword ptr [RBX + 0xe8]
MOV R14,qword ptr [RBX + 0xf0]
MOV RBP,qword ptr [RBX + 0xf8]
JMP 0x0012baab
LAB_0012ba62:
XOR EAX,EAX
LAB_0012ba64:
MOV RSI,qword ptr [RSP + 0x8]
MOV qword ptr [RBX + 0xd8],RSI
MOV qword ptr [RBX + 0xe0],R13
MOV qword ptr [RBX + 0xe8],R15
MOV qword ptr [RBX + 0xf0],R14
MOV qword ptr [RBX + 0xf8],RBP
MOV qword ptr [RBX + 0x100],R12
MOV R12,qword ptr [RSP + 0x20]
MOVSD XMM1,qword ptr [RSP + 0x18]
MOVSD XMM0,qword ptr [RSP + 0x10]
MOV ECX,dword ptr [RSP + 0x4]
MOV EDX,dword ptr [RSP]
LAB_0012baab:
CDQE
MOV dword ptr [RSI + RAX*0x4],ECX
MOVSXD RAX,dword ptr [RBX + 0xd0]
MOV dword ptr [R13 + RAX*0x4],EDX
MOVSXD RAX,dword ptr [RBX + 0xd0]
MOV dword ptr [R15 + RAX*0x4],ECX
MOVSXD RAX,dword ptr [RBX + 0xd0]
MOVSD qword ptr [R14 + RAX*0x8],XMM0
MOVSD qword ptr [RBP + RAX*0x8],XMM1
MOV RDI,R12
CALL 0x001020d0
LEA RDI,[RAX + 0x1]
CALL 0x00124985
MOV RCX,qword ptr [RBX + 0x100]
MOVSXD RDX,dword ptr [RBX + 0xd0]
MOV qword ptr [RCX + RDX*0x8],RAX
MOV RAX,qword ptr [RBX + 0x100]
MOV R14,qword ptr [RAX + RDX*0x8]
MOV RDI,R12
CALL 0x00127c0a
MOV RDI,R14
MOV RSI,RAX
CALL 0x001021b0
INC dword ptr [RBX + 0xd0]
ADD RSP,0x28
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
|
/* LefDefParser::lefiMacro::addForeign(char const*, int, double, double, int) */
void __thiscall
LefDefParser::lefiMacro::addForeign
(lefiMacro *this,char *param_1,int param_2,double param_3,double param_4,int param_5)
{
uint uVar1;
char *__dest;
uint uVar2;
ulong uVar3;
long lVar4;
long lVar5;
long lVar6;
long lVar7;
long lVar8;
long lVar9;
size_t sVar10;
int8 uVar11;
char *__src;
int iVar12;
ulong uVar13;
uVar2 = *(uint *)(this + 0xd0);
uVar1 = *(uint *)(this + 0xd4);
uVar13 = (ulong)uVar1;
if (uVar1 == uVar2) {
iVar12 = 0x10;
if (uVar1 != 0) {
iVar12 = uVar1 * 2;
}
*(int *)(this + 0xd4) = iVar12;
uVar3 = lefMalloc((LefDefParser *)((long)iVar12 << 2),uVar13);
lVar4 = lefMalloc((LefDefParser *)((long)*(int *)(this + 0xd4) << 2),uVar13);
lVar5 = lefMalloc((LefDefParser *)((long)*(int *)(this + 0xd4) << 2),uVar13);
lVar6 = lefMalloc((LefDefParser *)((long)*(int *)(this + 0xd4) << 3),uVar13);
lVar7 = lefMalloc((LefDefParser *)((long)*(int *)(this + 0xd4) << 3),uVar13);
lVar8 = lefMalloc((LefDefParser *)((long)*(int *)(this + 0xd4) << 3),uVar13);
if (*(int *)(this + 0xd0) == 0) {
uVar2 = 0;
}
else {
if (0 < *(int *)(this + 0xd0)) {
lVar9 = 0;
do {
*(int4 *)(uVar3 + lVar9 * 4) = *(int4 *)(*(long *)(this + 0xd8) + lVar9 * 4);
*(int4 *)(lVar4 + lVar9 * 4) = *(int4 *)(*(long *)(this + 0xe0) + lVar9 * 4);
*(int4 *)(lVar5 + lVar9 * 4) = *(int4 *)(*(long *)(this + 0xe8) + lVar9 * 4);
*(int8 *)(lVar6 + lVar9 * 8) = *(int8 *)(*(long *)(this + 0xf0) + lVar9 * 8);
*(int8 *)(lVar7 + lVar9 * 8) = *(int8 *)(*(long *)(this + 0xf8) + lVar9 * 8);
*(int8 *)(lVar8 + lVar9 * 8) = *(int8 *)(*(long *)(this + 0x100) + lVar9 * 8);
lVar9 = lVar9 + 1;
} while (lVar9 < *(int *)(this + 0xd0));
}
lefFree(*(void **)(this + 0xd8));
lefFree(*(void **)(this + 0xe0));
lefFree(*(void **)(this + 0xe8));
lefFree(*(void **)(this + 0xf0));
lefFree(*(void **)(this + 0xf8));
lefFree(*(void **)(this + 0x100));
uVar2 = *(uint *)(this + 0xd0);
}
*(ulong *)(this + 0xd8) = uVar3;
*(long *)(this + 0xe0) = lVar4;
*(long *)(this + 0xe8) = lVar5;
*(long *)(this + 0xf0) = lVar6;
*(long *)(this + 0xf8) = lVar7;
*(long *)(this + 0x100) = lVar8;
}
else {
uVar3 = *(ulong *)(this + 0xd8);
lVar4 = *(long *)(this + 0xe0);
lVar5 = *(long *)(this + 0xe8);
lVar6 = *(long *)(this + 0xf0);
lVar7 = *(long *)(this + 0xf8);
}
*(int *)(uVar3 + (long)(int)uVar2 * 4) = param_5;
*(int *)(lVar4 + (long)*(int *)(this + 0xd0) * 4) = param_2;
*(int *)(lVar5 + (long)*(int *)(this + 0xd0) * 4) = param_5;
iVar12 = *(int *)(this + 0xd0);
*(double *)(lVar6 + (long)iVar12 * 8) = param_3;
*(double *)(lVar7 + (long)iVar12 * 8) = param_4;
sVar10 = strlen(param_1);
uVar11 = lefMalloc((LefDefParser *)(sVar10 + 1),uVar3);
iVar12 = *(int *)(this + 0xd0);
*(int8 *)(*(long *)(this + 0x100) + (long)iVar12 * 8) = uVar11;
__dest = *(char **)(*(long *)(this + 0x100) + (long)iVar12 * 8);
__src = (char *)CASE(param_1);
strcpy(__dest,__src);
*(int *)(this + 0xd0) = *(int *)(this + 0xd0) + 1;
return;
}
|
|
58,044
|
minja::Value::pop(minja::Value const&)
|
monkey531[P]llama/common/minja.hpp
|
Value pop(const Value& index) {
if (is_array()) {
if (array_->empty())
throw std::runtime_error("pop from empty list");
if (index.is_null()) {
auto ret = array_->back();
array_->pop_back();
return ret;
} else if (!index.is_number_integer()) {
throw std::runtime_error("pop index must be an integer: " + index.dump());
} else {
auto i = index.get<int>();
if (i < 0 || i >= static_cast<int>(array_->size()))
throw std::runtime_error("pop index out of range: " + index.dump());
auto it = array_->begin() + (i < 0 ? array_->size() + i : i);
auto ret = *it;
array_->erase(it);
return ret;
}
} else if (is_object()) {
if (!index.is_hashable())
throw std::runtime_error("Unashable type: " + index.dump());
auto it = object_->find(index.primitive_);
if (it == object_->end())
throw std::runtime_error("Key not found: " + index.dump());
auto ret = it->second;
object_->erase(it);
return ret;
} else {
throw std::runtime_error("Value is not an array or object: " + dump());
}
}
|
O1
|
cpp
|
minja::Value::pop(minja::Value const&):
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x48, %rsp
movq %rdx, %rbx
movq %rsi, %r15
movq %rdi, %r13
movq 0x10(%rsi), %rax
testq %rax, %rax
je 0x98e97
movq 0x8(%rax), %rsi
cmpq %rsi, (%rax)
je 0x98fa2
cmpq $0x0, 0x20(%rbx)
movb 0x40(%rbx), %al
jne 0x98efc
cmpq $0x0, 0x10(%rbx)
jne 0x98efc
testb %al, %al
jne 0x98efc
cmpq $0x0, 0x30(%rbx)
jne 0x98efc
addq $-0x50, %rsi
movq %r13, %rdi
callq 0x93b04
movq 0x10(%r15), %rdi
movq 0x8(%rdi), %rsi
addq $-0x50, %rsi
movq %rsi, 0x8(%rdi)
callq 0x91fdc
jmp 0x98f90
movq 0x20(%r15), %r14
testq %r14, %r14
je 0x99034
movq %r13, 0x40(%rsp)
cmpq $0x0, 0x10(%rbx)
jne 0x99094
cmpq $0x0, 0x20(%rbx)
jne 0x99094
cmpq $0x0, 0x30(%rbx)
jne 0x99094
movq (%r14), %r13
movq 0x8(%r14), %r12
cmpq %r12, %r13
je 0x98f5f
leaq 0x40(%rbx), %rbp
movq %r13, %rdi
movq %rbp, %rsi
callq 0x93429
testb %al, %al
jne 0x98f5c
addq $0x60, %r13
movq 0x8(%r14), %r12
cmpq %r12, %r13
jne 0x98ede
jmp 0x98f5f
addb $-0x5, %al
cmpb $0x2, %al
jae 0x99151
movq %rbx, %rdi
callq 0x96a50
testl %eax, %eax
js 0x98fd4
movq 0x10(%r15), %rcx
movq (%rcx), %r12
movq 0x8(%rcx), %rcx
subq %r12, %rcx
shrq $0x4, %rcx
imull $0xcccccccd, %ecx, %ecx # imm = 0xCCCCCCCD
cmpl %ecx, %eax
jge 0x98fd4
movl %eax, %eax
leaq (%rax,%rax,4), %rax
shlq $0x4, %rax
addq %rax, %r12
movq %r13, %rdi
movq %r12, %rsi
callq 0x93b04
movq 0x10(%r15), %rdi
movq %r12, %rsi
callq 0x9a472
jmp 0x98f90
movq %r13, %r12
movq 0x20(%r15), %rax
cmpq 0x8(%rax), %r12
je 0x990f4
leaq 0x10(%r12), %rsi
movq 0x40(%rsp), %r13
movq %r13, %rdi
callq 0x93b04
movq 0x20(%r15), %rdi
leaq 0x60(%r12), %rdx
movq %r12, %rsi
callq 0x9a4ea
movq %r13, %rax
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movl $0x10, %edi
callq 0x1b450
movq %rax, %r14
leaq 0x5f8f4(%rip), %rsi # 0xf88aa
movq %rax, %rdi
callq 0x1b330
movq 0x9b023(%rip), %rsi # 0x133fe8
movq 0x9af8c(%rip), %rdx # 0x133f58
movq %r14, %rdi
callq 0x1bf60
movl $0x10, %edi
callq 0x1b450
movq %rax, %r14
movq %rsp, %rdi
movq %rbx, %rsi
movl $0xffffffff, %edx # imm = 0xFFFFFFFF
xorl %ecx, %ecx
callq 0x8c5e0
leaq 0x5f8e3(%rip), %rsi # 0xf88dd
leaq 0x20(%rsp), %rdi
movq %rsp, %rdx
callq 0x7e407
movb $0x1, %bpl
leaq 0x20(%rsp), %rsi
movq %r14, %rdi
callq 0x1be70
xorl %ebp, %ebp
movq 0x9afc8(%rip), %rsi # 0x133fe8
movq 0x9af31(%rip), %rdx # 0x133f58
movq %r14, %rdi
callq 0x1bf60
jmp 0x991ac
movl $0x10, %edi
callq 0x1b450
movq %rax, %r14
movq %rsp, %rdi
movq %r15, %rsi
movl $0xffffffff, %edx # imm = 0xFFFFFFFF
xorl %ecx, %ecx
callq 0x8c5e0
leaq 0x5f548(%rip), %rsi # 0xf85a2
leaq 0x20(%rsp), %rdi
movq %rsp, %rdx
callq 0x7e407
movb $0x1, %bpl
leaq 0x20(%rsp), %rsi
movq %r14, %rdi
callq 0x1be70
xorl %ebp, %ebp
movq 0x9af68(%rip), %rsi # 0x133fe8
movq 0x9aed1(%rip), %rdx # 0x133f58
movq %r14, %rdi
callq 0x1bf60
jmp 0x991ac
movl $0x10, %edi
callq 0x1b450
movq %rax, %r14
movq %rsp, %rdi
movq %rbx, %rsi
movl $0xffffffff, %edx # imm = 0xFFFFFFFF
xorl %ecx, %ecx
callq 0x8c5e0
leaq 0x5f39c(%rip), %rsi # 0xf8456
leaq 0x20(%rsp), %rdi
movq %rsp, %rdx
callq 0x7e407
movb $0x1, %bpl
leaq 0x20(%rsp), %rsi
movq %r14, %rdi
callq 0x1be70
xorl %ebp, %ebp
movq 0x9af08(%rip), %rsi # 0x133fe8
movq 0x9ae71(%rip), %rdx # 0x133f58
movq %r14, %rdi
callq 0x1bf60
jmp 0x991ac
movl $0x10, %edi
callq 0x1b450
movq %rax, %r14
movq %rsp, %rdi
movq %rbx, %rsi
movl $0xffffffff, %edx # imm = 0xFFFFFFFF
xorl %ecx, %ecx
callq 0x8c5e0
leaq 0x5f7dc(%rip), %rsi # 0xf88f6
leaq 0x20(%rsp), %rdi
movq %rsp, %rdx
callq 0x7e407
movb $0x1, %bpl
leaq 0x20(%rsp), %rsi
movq %r14, %rdi
callq 0x1be70
xorl %ebp, %ebp
movq 0x9aea8(%rip), %rsi # 0x133fe8
movq 0x9ae11(%rip), %rdx # 0x133f58
movq %r14, %rdi
callq 0x1bf60
jmp 0x991ac
movl $0x10, %edi
callq 0x1b450
movq %rax, %r14
movq %rsp, %rdi
movq %rbx, %rsi
movl $0xffffffff, %edx # imm = 0xFFFFFFFF
xorl %ecx, %ecx
callq 0x8c5e0
leaq 0x5f747(%rip), %rsi # 0xf88be
leaq 0x20(%rsp), %rdi
movq %rsp, %rdx
callq 0x7e407
movb $0x1, %bpl
leaq 0x20(%rsp), %rsi
movq %r14, %rdi
callq 0x1be70
xorl %ebp, %ebp
movq 0x9ae4b(%rip), %rsi # 0x133fe8
movq 0x9adb4(%rip), %rdx # 0x133f58
movq %r14, %rdi
callq 0x1bf60
jmp 0x991bc
jmp 0x991dc
jmp 0x991bc
jmp 0x991dc
jmp 0x991bc
jmp 0x991dc
jmp 0x991bc
jmp 0x991dc
movq %rax, %rbx
leaq 0x30(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x991e2
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x1b910
jmp 0x991e2
movq %rax, %rbx
movb $0x1, %bpl
leaq 0x10(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x9920f
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x1b910
jmp 0x9920f
jmp 0x99209
jmp 0x99209
jmp 0x99209
jmp 0x99209
jmp 0x99223
movq %rax, %rbx
movb $0x1, %bpl
testb %bpl, %bpl
jne 0x99219
jmp 0x9922e
movq %rax, %rbx
movq %r14, %rdi
callq 0x1b690
jmp 0x9922e
movq %rax, %rbx
movq %r13, %rdi
callq 0x8c2ec
movq %rbx, %rdi
callq 0x1bff0
|
_ZN5minja5Value3popERKS0_:
push rbp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 48h
mov rbx, rdx
mov r15, rsi
mov r13, rdi
mov rax, [rsi+10h]
test rax, rax
jz short loc_98E97
mov rsi, [rax+8]
cmp [rax], rsi
jz loc_98FA2
cmp qword ptr [rbx+20h], 0
mov al, [rbx+40h]
jnz loc_98EFC
cmp qword ptr [rbx+10h], 0
jnz loc_98EFC
test al, al
jnz loc_98EFC
cmp qword ptr [rbx+30h], 0
jnz loc_98EFC
add rsi, 0FFFFFFFFFFFFFFB0h; minja::Value *
mov rdi, r13; this
call _ZN5minja5ValueC2ERKS0_; minja::Value::Value(minja::Value const&)
mov rdi, [r15+10h]
mov rsi, [rdi+8]
add rsi, 0FFFFFFFFFFFFFFB0h
mov [rdi+8], rsi
call _ZN9__gnu_cxx13new_allocatorIN5minja5ValueEE7destroyIS2_EEvPT_; __gnu_cxx::new_allocator<minja::Value>::destroy<minja::Value>(minja::Value *)
jmp loc_98F90
loc_98E97:
mov r14, [r15+20h]
test r14, r14
jz loc_99034
mov [rsp+78h+var_38], r13
cmp qword ptr [rbx+10h], 0
jnz loc_99094
cmp qword ptr [rbx+20h], 0
jnz loc_99094
cmp qword ptr [rbx+30h], 0
jnz loc_99094
mov r13, [r14]
mov r12, [r14+8]
cmp r13, r12
jz loc_98F5F
lea rbp, [rbx+40h]
loc_98EDE:
mov rdi, r13
mov rsi, rbp
call _ZN8nlohmann16json_abi_v3_11_3eqERKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEESF_; nlohmann::json_abi_v3_11_3::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&,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::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&)
test al, al
jnz short loc_98F5C
add r13, 60h ; '`'
mov r12, [r14+8]
cmp r13, r12
jnz short loc_98EDE
jmp short loc_98F5F
loc_98EFC:
add al, 0FBh
cmp al, 2
jnb loc_99151
mov rdi, rbx
call _ZNK5minja5Value3getIiEET_v; minja::Value::get<int>(void)
test eax, eax
js loc_98FD4
mov rcx, [r15+10h]
mov r12, [rcx]
mov rcx, [rcx+8]
sub rcx, r12
shr rcx, 4
imul ecx, 0CCCCCCCDh
cmp eax, ecx
jge loc_98FD4
mov eax, eax
lea rax, [rax+rax*4]
shl rax, 4
add r12, rax
mov rdi, r13; this
mov rsi, r12; minja::Value *
call _ZN5minja5ValueC2ERKS0_; minja::Value::Value(minja::Value const&)
mov rdi, [r15+10h]
mov rsi, r12
call _ZNSt6vectorIN5minja5ValueESaIS1_EE8_M_eraseEN9__gnu_cxx17__normal_iteratorIPS1_S3_EE; std::vector<minja::Value>::_M_erase(__gnu_cxx::__normal_iterator<minja::Value*,std::vector<minja::Value>>)
jmp short loc_98F90
loc_98F5C:
mov r12, r13
loc_98F5F:
mov rax, [r15+20h]
cmp r12, [rax+8]
jz loc_990F4
lea rsi, [r12+10h]; minja::Value *
mov r13, [rsp+78h+var_38]
mov rdi, r13; this
call _ZN5minja5ValueC2ERKS0_; minja::Value::Value(minja::Value const&)
mov rdi, [r15+20h]
lea rdx, [r12+60h]
mov rsi, r12
call _ZN8nlohmann16json_abi_v3_11_311ordered_mapINS0_10basic_jsonIS1_St6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEEN5minja5ValueESt4lessISD_ESaISt4pairIKSD_SF_EEE5eraseEN9__gnu_cxx17__normal_iteratorIPSK_S3_ISK_SL_EEESR_; nlohmann::json_abi_v3_11_3::ordered_map<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>,minja::Value,std::less<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>,std::allocator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const,minja::Value>>>::erase(__gnu_cxx::__normal_iterator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const,minja::Value>*,std::vector<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const,minja::Value>>>,__gnu_cxx::__normal_iterator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const,minja::Value>*,std::vector<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const,minja::Value>>>)
loc_98F90:
mov rax, r13
add rsp, 48h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
loc_98FA2:
mov edi, 10h; thrown_size
call ___cxa_allocate_exception
mov r14, rax
lea rsi, aPopFromEmptyLi; "pop from empty list"
mov rdi, rax; this
call __ZNSt13runtime_errorC1EPKc; std::runtime_error::runtime_error(char const*)
mov rsi, cs:_ZTISt13runtime_error_ptr; lptinfo
mov rdx, cs:_ZTISt19_Sp_make_shared_tag; void (*)(void *)
mov rdi, r14; void *
call ___cxa_throw
loc_98FD4:
mov edi, 10h; thrown_size
call ___cxa_allocate_exception
mov r14, rax
mov rdi, rsp
mov rsi, rbx
mov edx, 0FFFFFFFFh
xor ecx, ecx
call _ZNK5minja5Value4dumpB5cxx11Eib; minja::Value::dump(int,bool)
lea rsi, aPopIndexOutOfR; "pop index out of range: "
lea rdi, [rsp+78h+var_58]
mov rdx, rsp
call _ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_OS8_; std::operator+<char>(char const*,std::string&&)
mov bpl, 1
lea rsi, [rsp+78h+var_58]
mov rdi, r14
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, r14; void *
call ___cxa_throw
jmp loc_991AC
loc_99034:
mov edi, 10h; thrown_size
call ___cxa_allocate_exception
mov r14, rax
mov rdi, rsp
mov rsi, r15
mov edx, 0FFFFFFFFh
xor ecx, ecx
call _ZNK5minja5Value4dumpB5cxx11Eib; minja::Value::dump(int,bool)
lea rsi, aValueIsNotAnAr_0; "Value is not an array or object: "
lea rdi, [rsp+78h+var_58]
mov rdx, rsp
call _ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_OS8_; std::operator+<char>(char const*,std::string&&)
mov bpl, 1
lea rsi, [rsp+78h+var_58]
mov rdi, r14
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, r14; void *
call ___cxa_throw
jmp loc_991AC
loc_99094:
mov edi, 10h; thrown_size
call ___cxa_allocate_exception
mov r14, rax
mov rdi, rsp
mov rsi, rbx
mov edx, 0FFFFFFFFh
xor ecx, ecx
call _ZNK5minja5Value4dumpB5cxx11Eib; minja::Value::dump(int,bool)
lea rsi, aUnashableType; "Unashable type: "
lea rdi, [rsp+78h+var_58]
mov rdx, rsp
call _ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_OS8_; std::operator+<char>(char const*,std::string&&)
mov bpl, 1
lea rsi, [rsp+78h+var_58]
mov rdi, r14
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, r14; void *
call ___cxa_throw
jmp loc_991AC
loc_990F4:
mov edi, 10h; thrown_size
call ___cxa_allocate_exception
mov r14, rax
mov rdi, rsp
mov rsi, rbx
mov edx, 0FFFFFFFFh
xor ecx, ecx
call _ZNK5minja5Value4dumpB5cxx11Eib; minja::Value::dump(int,bool)
lea rsi, aKeyNotFound_0; "Key not found: "
lea rdi, [rsp+78h+var_58]
mov rdx, rsp
call _ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_OS8_; std::operator+<char>(char const*,std::string&&)
mov bpl, 1
lea rsi, [rsp+78h+var_58]
mov rdi, r14
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, r14; void *
call ___cxa_throw
jmp short loc_991AC
loc_99151:
mov edi, 10h; thrown_size
call ___cxa_allocate_exception
mov r14, rax
mov rdi, rsp
mov rsi, rbx
mov edx, 0FFFFFFFFh
xor ecx, ecx
call _ZNK5minja5Value4dumpB5cxx11Eib; minja::Value::dump(int,bool)
lea rsi, aPopIndexMustBe; "pop index must be an integer: "
lea rdi, [rsp+78h+var_58]
mov rdx, rsp
call _ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_OS8_; std::operator+<char>(char const*,std::string&&)
mov bpl, 1
lea rsi, [rsp+78h+var_58]
mov rdi, r14
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, r14; void *
call ___cxa_throw
loc_991AC:
jmp short loc_991BC
jmp short loc_991DC
jmp short loc_991BC
jmp short loc_991DC
jmp short loc_991BC
jmp short loc_991DC
jmp short loc_991BC
jmp short loc_991DC
loc_991BC:
mov rbx, rax
lea rax, [rsp+78h+var_48]
mov rdi, [rax-10h]; void *
cmp rdi, rax
jz short loc_991E2
mov rsi, [rsp+78h+var_48]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
jmp short loc_991E2
loc_991DC:
mov rbx, rax
mov bpl, 1
loc_991E2:
lea rax, [rsp+78h+var_68]
mov rdi, [rax-10h]; void *
cmp rdi, rax
jz short loc_9920F
mov rsi, [rsp+78h+var_68]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
jmp short loc_9920F
jmp short loc_99209
jmp short loc_99209
jmp short loc_99209
jmp short loc_99209
jmp short loc_99223
loc_99209:
mov rbx, rax
mov bpl, 1
loc_9920F:
test bpl, bpl
jnz short loc_99219
jmp short loc_9922E
mov rbx, rax
loc_99219:
mov rdi, r14; void *
call ___cxa_free_exception
jmp short loc_9922E
loc_99223:
mov rbx, rax
mov rdi, r13; this
call _ZN5minja5ValueD2Ev; minja::Value::~Value()
loc_9922E:
mov rdi, rbx
call __Unwind_Resume
|
minja::Value * minja::Value::pop(minja::Value *this, const minja::Value *a2, long long a3, __m128d a4)
{
minja::Value *v6; // r13
_QWORD *v7; // rax
long long v8; // rsi
char v9; // al
long long v10; // rdi
long long v11; // rsi
unsigned __int8 **v12; // r14
unsigned __int8 *v13; // r13
unsigned __int8 *v14; // r12
int v15; // eax
_QWORD *v16; // rcx
const minja::Value *v17; // r12
std::runtime_error *exception; // r14
void *v20; // r14
void *v21; // r14
void *v22; // r14
void *v23; // r14
void *v24; // r14
_BYTE v25[16]; // [rsp+0h] [rbp-78h] BYREF
_BYTE v26[16]; // [rsp+20h] [rbp-58h] BYREF
minja::Value *v27; // [rsp+40h] [rbp-38h]
v6 = this;
v7 = (_QWORD *)*((_QWORD *)a2 + 2);
if ( v7 )
{
v8 = v7[1];
if ( *v7 == v8 )
{
exception = (std::runtime_error *)__cxa_allocate_exception(0x10uLL);
std::runtime_error::runtime_error(exception, "pop from empty list");
__cxa_throw(
exception,
(struct type_info *)&`typeinfo for'std::runtime_error,
(void (*)(void *))&std::runtime_error::~runtime_error);
}
v9 = *(_BYTE *)(a3 + 64);
if ( *(_QWORD *)(a3 + 32) || *(_QWORD *)(a3 + 16) || v9 || *(_QWORD *)(a3 + 48) )
{
if ( (unsigned __int8)(v9 - 5) >= 2u )
{
v24 = __cxa_allocate_exception(0x10uLL);
minja::Value::dump[abi:cxx11]((long long)v25, a3, 0xFFFFFFFF, 0);
std::operator+<char>((long long)v26, (long long)"pop index must be an integer: ", (long long)v25);
std::runtime_error::runtime_error(v24, v26);
__cxa_throw(
v24,
(struct type_info *)&`typeinfo for'std::runtime_error,
(void (*)(void *))&std::runtime_error::~runtime_error);
}
v15 = minja::Value::get<int>((_QWORD *)a3);
if ( v15 < 0 || (v16 = (_QWORD *)*((_QWORD *)a2 + 2), v15 >= (int)(-858993459 * ((v16[1] - *v16) >> 4))) )
{
v20 = __cxa_allocate_exception(0x10uLL);
minja::Value::dump[abi:cxx11]((long long)v25, a3, 0xFFFFFFFF, 0);
std::operator+<char>((long long)v26, (long long)"pop index out of range: ", (long long)v25);
std::runtime_error::runtime_error(v20, v26);
__cxa_throw(
v20,
(struct type_info *)&`typeinfo for'std::runtime_error,
(void (*)(void *))&std::runtime_error::~runtime_error);
}
v17 = (const minja::Value *)(80LL * (unsigned int)v15 + *v16);
minja::Value::Value(this, v17);
std::vector<minja::Value>::_M_erase(*((_QWORD *)a2 + 2), v17);
}
else
{
minja::Value::Value(this, (const minja::Value *)(v8 - 80));
v10 = *((_QWORD *)a2 + 2);
v11 = *(_QWORD *)(v10 + 8) - 80LL;
*(_QWORD *)(v10 + 8) = v11;
__gnu_cxx::new_allocator<minja::Value>::destroy<minja::Value>(v10, v11);
}
}
else
{
v12 = (unsigned __int8 **)*((_QWORD *)a2 + 4);
if ( !v12 )
{
v21 = __cxa_allocate_exception(0x10uLL);
minja::Value::dump[abi:cxx11]((long long)v25, (long long)a2, 0xFFFFFFFF, 0);
std::operator+<char>((long long)v26, (long long)"Value is not an array or object: ", (long long)v25);
std::runtime_error::runtime_error(v21, v26);
__cxa_throw(
v21,
(struct type_info *)&`typeinfo for'std::runtime_error,
(void (*)(void *))&std::runtime_error::~runtime_error);
}
v27 = this;
if ( *(_QWORD *)(a3 + 16) || *(_QWORD *)(a3 + 32) || *(_QWORD *)(a3 + 48) )
{
v22 = __cxa_allocate_exception(0x10uLL);
minja::Value::dump[abi:cxx11]((long long)v25, a3, 0xFFFFFFFF, 0);
std::operator+<char>((long long)v26, (long long)"Unashable type: ", (long long)v25);
std::runtime_error::runtime_error(v22, v26);
__cxa_throw(
v22,
(struct type_info *)&`typeinfo for'std::runtime_error,
(void (*)(void *))&std::runtime_error::~runtime_error);
}
v13 = *v12;
v14 = v12[1];
if ( *v12 != v14 )
{
while ( !(unsigned __int8)nlohmann::json_abi_v3_11_3::operator==(v13, (unsigned __int8 *)(a3 + 64), a4) )
{
v13 += 96;
v14 = v12[1];
if ( v13 == v14 )
goto LABEL_21;
}
v14 = v13;
}
LABEL_21:
if ( v14 == *(unsigned __int8 **)(*((_QWORD *)a2 + 4) + 8LL) )
{
v23 = __cxa_allocate_exception(0x10uLL);
minja::Value::dump[abi:cxx11]((long long)v25, a3, 0xFFFFFFFF, 0);
std::operator+<char>((long long)v26, (long long)"Key not found: ", (long long)v25);
std::runtime_error::runtime_error(v23, v26);
__cxa_throw(
v23,
(struct type_info *)&`typeinfo for'std::runtime_error,
(void (*)(void *))&std::runtime_error::~runtime_error);
}
v6 = v27;
minja::Value::Value(v27, (const minja::Value *)(v14 + 16));
nlohmann::json_abi_v3_11_3::ordered_map<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>,minja::Value,std::less<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>,std::allocator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> const,minja::Value>>>::erase(
*((_QWORD *)a2 + 4),
v14,
v14 + 96);
}
return v6;
}
|
pop:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x48
MOV RBX,RDX
MOV R15,RSI
MOV R13,RDI
MOV RAX,qword ptr [RSI + 0x10]
TEST RAX,RAX
JZ 0x00198e97
MOV RSI,qword ptr [RAX + 0x8]
CMP qword ptr [RAX],RSI
JZ 0x00198fa2
CMP qword ptr [RBX + 0x20],0x0
MOV AL,byte ptr [RBX + 0x40]
JNZ 0x00198efc
CMP qword ptr [RBX + 0x10],0x0
JNZ 0x00198efc
TEST AL,AL
JNZ 0x00198efc
CMP qword ptr [RBX + 0x30],0x0
JNZ 0x00198efc
ADD RSI,-0x50
MOV RDI,R13
CALL 0x00193b04
MOV RDI,qword ptr [R15 + 0x10]
MOV RSI,qword ptr [RDI + 0x8]
ADD RSI,-0x50
MOV qword ptr [RDI + 0x8],RSI
CALL 0x00191fdc
JMP 0x00198f90
LAB_00198e97:
MOV R14,qword ptr [R15 + 0x20]
TEST R14,R14
JZ 0x00199034
MOV qword ptr [RSP + 0x40],R13
CMP qword ptr [RBX + 0x10],0x0
JNZ 0x00199094
CMP qword ptr [RBX + 0x20],0x0
JNZ 0x00199094
CMP qword ptr [RBX + 0x30],0x0
JNZ 0x00199094
MOV R13,qword ptr [R14]
MOV R12,qword ptr [R14 + 0x8]
CMP R13,R12
JZ 0x00198f5f
LEA RBP,[RBX + 0x40]
LAB_00198ede:
MOV RDI,R13
MOV RSI,RBP
CALL 0x00193429
TEST AL,AL
JNZ 0x00198f5c
ADD R13,0x60
MOV R12,qword ptr [R14 + 0x8]
CMP R13,R12
JNZ 0x00198ede
JMP 0x00198f5f
LAB_00198efc:
ADD AL,0xfb
CMP AL,0x2
JNC 0x00199151
MOV RDI,RBX
CALL 0x00196a50
TEST EAX,EAX
JS 0x00198fd4
MOV RCX,qword ptr [R15 + 0x10]
MOV R12,qword ptr [RCX]
MOV RCX,qword ptr [RCX + 0x8]
SUB RCX,R12
SHR RCX,0x4
IMUL ECX,ECX,-0x33333333
CMP EAX,ECX
JGE 0x00198fd4
MOV EAX,EAX
LEA RAX,[RAX + RAX*0x4]
SHL RAX,0x4
ADD R12,RAX
MOV RDI,R13
MOV RSI,R12
CALL 0x00193b04
MOV RDI,qword ptr [R15 + 0x10]
LAB_00198f52:
MOV RSI,R12
CALL 0x0019a472
LAB_00198f5a:
JMP 0x00198f90
LAB_00198f5c:
MOV R12,R13
LAB_00198f5f:
MOV RAX,qword ptr [R15 + 0x20]
CMP R12,qword ptr [RAX + 0x8]
JZ 0x001990f4
LEA RSI,[R12 + 0x10]
MOV R13,qword ptr [RSP + 0x40]
MOV RDI,R13
CALL 0x00193b04
MOV RDI,qword ptr [R15 + 0x20]
LEA RDX,[R12 + 0x60]
LAB_00198f88:
MOV RSI,R12
CALL 0x0019a4ea
LAB_00198f90:
MOV RAX,R13
ADD RSP,0x48
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
LAB_00198fa2:
MOV EDI,0x10
CALL 0x0011b450
MOV R14,RAX
LAB_00198faf:
LEA RSI,[0x1f88aa]
MOV RDI,RAX
CALL 0x0011b330
LAB_00198fbe:
MOV RSI,qword ptr [0x00233fe8]
MOV RDX,qword ptr [0x00233f58]
MOV RDI,R14
CALL 0x0011bf60
LAB_00198fd4:
MOV EDI,0x10
CALL 0x0011b450
MOV R14,RAX
LAB_00198fe1:
MOV RDI,RSP
MOV RSI,RBX
MOV EDX,0xffffffff
XOR ECX,ECX
CALL 0x0018c5e0
LAB_00198ff3:
LEA RSI,[0x1f88dd]
LEA RDI,[RSP + 0x20]
MOV RDX,RSP
CALL 0x0017e407
MOV BPL,0x1
LAB_0019900a:
LEA RSI,[RSP + 0x20]
MOV RDI,R14
CALL 0x0011be70
XOR EBP,EBP
MOV RSI,qword ptr [0x00233fe8]
MOV RDX,qword ptr [0x00233f58]
MOV RDI,R14
CALL 0x0011bf60
LAB_00199034:
MOV EDI,0x10
CALL 0x0011b450
MOV R14,RAX
LAB_00199041:
MOV RDI,RSP
MOV RSI,R15
MOV EDX,0xffffffff
XOR ECX,ECX
CALL 0x0018c5e0
LAB_00199053:
LEA RSI,[0x1f85a2]
LEA RDI,[RSP + 0x20]
MOV RDX,RSP
CALL 0x0017e407
MOV BPL,0x1
LAB_0019906a:
LEA RSI,[RSP + 0x20]
MOV RDI,R14
CALL 0x0011be70
XOR EBP,EBP
MOV RSI,qword ptr [0x00233fe8]
MOV RDX,qword ptr [0x00233f58]
MOV RDI,R14
CALL 0x0011bf60
LAB_00199094:
MOV EDI,0x10
CALL 0x0011b450
MOV R14,RAX
LAB_001990a1:
MOV RDI,RSP
MOV RSI,RBX
MOV EDX,0xffffffff
XOR ECX,ECX
CALL 0x0018c5e0
LAB_001990b3:
LEA RSI,[0x1f8456]
LEA RDI,[RSP + 0x20]
MOV RDX,RSP
CALL 0x0017e407
MOV BPL,0x1
LAB_001990ca:
LEA RSI,[RSP + 0x20]
MOV RDI,R14
CALL 0x0011be70
XOR EBP,EBP
MOV RSI,qword ptr [0x00233fe8]
MOV RDX,qword ptr [0x00233f58]
MOV RDI,R14
CALL 0x0011bf60
LAB_001990f4:
MOV EDI,0x10
CALL 0x0011b450
MOV R14,RAX
LAB_00199101:
MOV RDI,RSP
MOV RSI,RBX
MOV EDX,0xffffffff
XOR ECX,ECX
CALL 0x0018c5e0
LAB_00199113:
LEA RSI,[0x1f88f6]
LEA RDI,[RSP + 0x20]
MOV RDX,RSP
CALL 0x0017e407
MOV BPL,0x1
LAB_0019912a:
LEA RSI,[RSP + 0x20]
MOV RDI,R14
CALL 0x0011be70
XOR EBP,EBP
MOV RSI,qword ptr [0x00233fe8]
MOV RDX,qword ptr [0x00233f58]
MOV RDI,R14
CALL 0x0011bf60
LAB_00199151:
MOV EDI,0x10
CALL 0x0011b450
MOV R14,RAX
LAB_0019915e:
MOV RDI,RSP
MOV RSI,RBX
MOV EDX,0xffffffff
XOR ECX,ECX
CALL 0x0018c5e0
LAB_00199170:
LEA RSI,[0x1f88be]
LEA RDI,[RSP + 0x20]
MOV RDX,RSP
CALL 0x0017e407
MOV BPL,0x1
LAB_00199187:
LEA RSI,[RSP + 0x20]
MOV RDI,R14
CALL 0x0011be70
XOR EBP,EBP
MOV RSI,qword ptr [0x00233fe8]
MOV RDX,qword ptr [0x00233f58]
MOV RDI,R14
CALL 0x0011bf60
|
/* minja::Value::pop(minja::Value const&) */
Value * minja::Value::pop(Value *param_1)
{
long *plVar1;
new_allocator<minja::Value> *this;
long lVar2;
char cVar3;
uint uVar4;
runtime_error *prVar5;
int iVar6;
Value *in_RDX;
bool bVar7;
long in_RSI;
int iVar8;
Value *pVVar9;
basic_json *pbVar10;
basic_json *pbVar11;
int1 auStack_78 [32];
string local_58 [32];
Value *local_38;
plVar1 = *(long **)(in_RSI + 0x10);
bVar7 = SUB81(in_RDX,0);
iVar8 = (int)auStack_78;
if (plVar1 == (long *)0x0) {
plVar1 = *(long **)(in_RSI + 0x20);
if (plVar1 == (long *)0x0) {
prVar5 = (runtime_error *)__cxa_allocate_exception(0x10);
/* try { // try from 00199041 to 00199052 has its CatchHandler @ 00199205 */
dump_abi_cxx11_(iVar8,SUB81(in_RSI,0));
/* try { // try from 00199053 to 00199066 has its CatchHandler @ 001991ba */
std::operator+((char *)local_58,(string *)"Value is not an array or object: ");
/* try { // try from 0019906a to 0019908e has its CatchHandler @ 001991b8 */
std::runtime_error::runtime_error(prVar5,local_58);
/* WARNING: Subroutine does not return */
__cxa_throw(prVar5,PTR_typeinfo_00233fe8,PTR__runtime_error_00233f58);
}
local_38 = param_1;
if (((*(long *)(in_RDX + 0x10) != 0) || (*(long *)(in_RDX + 0x20) != 0)) ||
(*(long *)(in_RDX + 0x30) != 0)) {
prVar5 = (runtime_error *)__cxa_allocate_exception(0x10);
/* try { // try from 001990a1 to 001990b2 has its CatchHandler @ 00199203 */
dump_abi_cxx11_(iVar8,bVar7);
/* try { // try from 001990b3 to 001990c6 has its CatchHandler @ 001991b6 */
std::operator+((char *)local_58,(string *)"Unashable type: ");
/* try { // try from 001990ca to 001990ee has its CatchHandler @ 001991b4 */
std::runtime_error::runtime_error(prVar5,local_58);
/* WARNING: Subroutine does not return */
__cxa_throw(prVar5,PTR_typeinfo_00233fe8,PTR__runtime_error_00233f58);
}
pbVar10 = (basic_json *)plVar1[1];
if ((basic_json *)*plVar1 != pbVar10) {
pbVar11 = (basic_json *)*plVar1;
do {
pbVar10 = pbVar11;
cVar3 = nlohmann::json_abi_v3_11_3::operator==(pbVar10,(basic_json *)(in_RDX + 0x40));
if (cVar3 != '\0') break;
pbVar11 = pbVar10 + 0x60;
pbVar10 = (basic_json *)plVar1[1];
} while (pbVar11 != pbVar10);
}
param_1 = local_38;
if (pbVar10 == *(basic_json **)(*(long *)(in_RSI + 0x20) + 8)) {
prVar5 = (runtime_error *)__cxa_allocate_exception(0x10);
/* try { // try from 00199101 to 00199112 has its CatchHandler @ 00199201 */
dump_abi_cxx11_(iVar8,bVar7);
/* try { // try from 00199113 to 00199126 has its CatchHandler @ 001991b2 */
std::operator+((char *)local_58,(string *)"Key not found: ");
/* try { // try from 0019912a to 0019914e has its CatchHandler @ 001991b0 */
std::runtime_error::runtime_error(prVar5,local_58);
/* WARNING: Subroutine does not return */
__cxa_throw(prVar5,PTR_typeinfo_00233fe8,PTR__runtime_error_00233f58);
}
Value(local_38,(Value *)(pbVar10 + 0x10));
/* try { // try from 00198f88 to 00198f8f has its CatchHandler @ 00199223 */
nlohmann::json_abi_v3_11_3::
ordered_map<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,minja::Value,std::less<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>,std::allocator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>const,minja::Value>>>
::erase(*(ordered_map<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,minja::Value,std::less<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>,std::allocator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>const,minja::Value>>>
**)(in_RSI + 0x20),pbVar10,pbVar10 + 0x60);
}
else {
if (*plVar1 == plVar1[1]) {
prVar5 = (runtime_error *)__cxa_allocate_exception(0x10);
/* try { // try from 00198faf to 00198fbd has its CatchHandler @ 00199216 */
std::runtime_error::runtime_error(prVar5,"pop from empty list");
/* WARNING: Subroutine does not return */
__cxa_throw(prVar5,PTR_typeinfo_00233fe8,PTR__runtime_error_00233f58);
}
if (((*(long *)(in_RDX + 0x20) == 0) && (*(long *)(in_RDX + 0x10) == 0)) &&
((in_RDX[0x40] == (Value)0x0 && (*(long *)(in_RDX + 0x30) == 0)))) {
Value(param_1,(Value *)(plVar1[1] + -0x50));
this = *(new_allocator<minja::Value> **)(in_RSI + 0x10);
lVar2 = *(long *)(this + 8);
*(Value **)(this + 8) = (Value *)(lVar2 + -0x50);
__gnu_cxx::new_allocator<minja::Value>::destroy<minja::Value>(this,(Value *)(lVar2 + -0x50));
}
else {
if (1 < (byte)((char)in_RDX[0x40] - 5U)) {
prVar5 = (runtime_error *)__cxa_allocate_exception(0x10);
/* try { // try from 0019915e to 0019916f has its CatchHandler @ 001991ff */
dump_abi_cxx11_(iVar8,bVar7);
/* try { // try from 00199170 to 00199183 has its CatchHandler @ 001991ae */
std::operator+((char *)local_58,(string *)"pop index must be an integer: ");
/* try { // try from 00199187 to 001991ab has its CatchHandler @ 001991ac */
std::runtime_error::runtime_error(prVar5,local_58);
/* WARNING: Subroutine does not return */
__cxa_throw(prVar5,PTR_typeinfo_00233fe8,PTR__runtime_error_00233f58);
}
uVar4 = get<int>(in_RDX);
if (((int)uVar4 < 0) ||
(lVar2 = **(long **)(in_RSI + 0x10),
iVar6 = (int)((ulong)((*(long **)(in_RSI + 0x10))[1] - lVar2) >> 4),
SBORROW4(uVar4,iVar6 * -0x33333333) == (int)(uVar4 + iVar6 * 0x33333333) < 0)) {
prVar5 = (runtime_error *)__cxa_allocate_exception(0x10);
/* try { // try from 00198fe1 to 00198ff2 has its CatchHandler @ 00199209 */
dump_abi_cxx11_(iVar8,bVar7);
/* try { // try from 00198ff3 to 00199006 has its CatchHandler @ 001991dc */
std::operator+((char *)local_58,(string *)"pop index out of range: ");
/* try { // try from 0019900a to 0019902e has its CatchHandler @ 001991bc */
std::runtime_error::runtime_error(prVar5,local_58);
/* WARNING: Subroutine does not return */
__cxa_throw(prVar5,PTR_typeinfo_00233fe8,PTR__runtime_error_00233f58);
}
pVVar9 = (Value *)(lVar2 + (ulong)uVar4 * 0x50);
Value(param_1,pVVar9);
/* try { // try from 00198f52 to 00198f59 has its CatchHandler @ 00199207 */
std::vector<minja::Value,std::allocator<minja::Value>>::_M_erase
(*(vector<minja::Value,std::allocator<minja::Value>> **)(in_RSI + 0x10),pVVar9);
}
}
return param_1;
}
|
|
58,045
|
my_uca_contraction_find
|
eloqsql/strings/ctype-uca.c
|
static inline const MY_CONTRACTION *
my_uca_contraction_find(const MY_CONTRACTIONS *list, my_wc_t *wc, size_t len)
{
MY_CONTRACTION *c, *last;
DBUG_ASSERT(len <= MY_UCA_MAX_CONTRACTION);
for (c= list->item, last= c + list->nitems; c < last; c++)
{
if ((len >= MY_UCA_MAX_CONTRACTION || c->ch[len] == 0) &&
!c->with_context &&
!my_wmemcmp(c->ch, wc, len))
return c;
}
return NULL;
}
|
O0
|
c
|
my_uca_contraction_find:
pushq %rbp
movq %rsp, %rbp
subq $0x30, %rsp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movq %rdx, -0x20(%rbp)
jmp 0xf4de6
movq -0x10(%rbp), %rax
movq 0x8(%rax), %rax
movq %rax, -0x28(%rbp)
movq -0x28(%rbp), %rax
movq -0x10(%rbp), %rcx
imulq $0x58, (%rcx), %rcx
addq %rcx, %rax
movq %rax, -0x30(%rbp)
movq -0x28(%rbp), %rax
cmpq -0x30(%rbp), %rax
jae 0xf4e5f
cmpq $0x6, -0x20(%rbp)
jae 0xf4e25
movq -0x28(%rbp), %rax
movq -0x20(%rbp), %rcx
cmpq $0x0, (%rax,%rcx,8)
jne 0xf4e4f
movq -0x28(%rbp), %rax
cmpb $0x0, 0x52(%rax)
jne 0xf4e4f
movq -0x28(%rbp), %rdi
movq -0x18(%rbp), %rsi
movq -0x20(%rbp), %rdx
callq 0xf4e80
cmpl $0x0, %eax
jne 0xf4e4f
movq -0x28(%rbp), %rax
movq %rax, -0x8(%rbp)
jmp 0xf4e67
jmp 0xf4e51
movq -0x28(%rbp), %rax
addq $0x58, %rax
movq %rax, -0x28(%rbp)
jmp 0xf4e05
movq $0x0, -0x8(%rbp)
movq -0x8(%rbp), %rax
addq $0x30, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
|
my_uca_contraction_find:
push rbp
mov rbp, rsp
sub rsp, 30h
mov [rbp+var_10], rdi
mov [rbp+var_18], rsi
mov [rbp+var_20], rdx
jmp short $+2
loc_F4DE6:
mov rax, [rbp+var_10]
mov rax, [rax+8]
mov [rbp+var_28], rax
mov rax, [rbp+var_28]
mov rcx, [rbp+var_10]
imul rcx, [rcx], 58h ; 'X'
add rax, rcx
mov [rbp+var_30], rax
loc_F4E05:
mov rax, [rbp+var_28]
cmp rax, [rbp+var_30]
jnb short loc_F4E5F
cmp [rbp+var_20], 6
jnb short loc_F4E25
mov rax, [rbp+var_28]
mov rcx, [rbp+var_20]
cmp qword ptr [rax+rcx*8], 0
jnz short loc_F4E4F
loc_F4E25:
mov rax, [rbp+var_28]
cmp byte ptr [rax+52h], 0
jnz short loc_F4E4F
mov rdi, [rbp+var_28]
mov rsi, [rbp+var_18]
mov rdx, [rbp+var_20]
call my_wmemcmp
cmp eax, 0
jnz short loc_F4E4F
mov rax, [rbp+var_28]
mov [rbp+var_8], rax
jmp short loc_F4E67
loc_F4E4F:
jmp short $+2
loc_F4E51:
mov rax, [rbp+var_28]
add rax, 58h ; 'X'
mov [rbp+var_28], rax
jmp short loc_F4E05
loc_F4E5F:
mov [rbp+var_8], 0
loc_F4E67:
mov rax, [rbp+var_8]
add rsp, 30h
pop rbp
retn
|
unsigned long long my_uca_contraction_find(_QWORD *a1, long long a2, unsigned long long a3)
{
unsigned long long v4; // [rsp+0h] [rbp-30h]
unsigned long long v5; // [rsp+8h] [rbp-28h]
v5 = a1[1];
v4 = 88LL * *a1 + v5;
while ( v5 < v4 )
{
if ( (a3 >= 6 || !*(_QWORD *)(v5 + 8 * a3)) && !*(_BYTE *)(v5 + 82) && !(unsigned int)my_wmemcmp(v5, a2, a3) )
return v5;
v5 += 88LL;
}
return 0LL;
}
|
my_uca_contraction_find:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x30
MOV qword ptr [RBP + -0x10],RDI
MOV qword ptr [RBP + -0x18],RSI
MOV qword ptr [RBP + -0x20],RDX
JMP 0x001f4de6
LAB_001f4de6:
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX + 0x8]
MOV qword ptr [RBP + -0x28],RAX
MOV RAX,qword ptr [RBP + -0x28]
MOV RCX,qword ptr [RBP + -0x10]
IMUL RCX,qword ptr [RCX],0x58
ADD RAX,RCX
MOV qword ptr [RBP + -0x30],RAX
LAB_001f4e05:
MOV RAX,qword ptr [RBP + -0x28]
CMP RAX,qword ptr [RBP + -0x30]
JNC 0x001f4e5f
CMP qword ptr [RBP + -0x20],0x6
JNC 0x001f4e25
MOV RAX,qword ptr [RBP + -0x28]
MOV RCX,qword ptr [RBP + -0x20]
CMP qword ptr [RAX + RCX*0x8],0x0
JNZ 0x001f4e4f
LAB_001f4e25:
MOV RAX,qword ptr [RBP + -0x28]
CMP byte ptr [RAX + 0x52],0x0
JNZ 0x001f4e4f
MOV RDI,qword ptr [RBP + -0x28]
MOV RSI,qword ptr [RBP + -0x18]
MOV RDX,qword ptr [RBP + -0x20]
CALL 0x001f4e80
CMP EAX,0x0
JNZ 0x001f4e4f
MOV RAX,qword ptr [RBP + -0x28]
MOV qword ptr [RBP + -0x8],RAX
JMP 0x001f4e67
LAB_001f4e4f:
JMP 0x001f4e51
LAB_001f4e51:
MOV RAX,qword ptr [RBP + -0x28]
ADD RAX,0x58
MOV qword ptr [RBP + -0x28],RAX
JMP 0x001f4e05
LAB_001f4e5f:
MOV qword ptr [RBP + -0x8],0x0
LAB_001f4e67:
MOV RAX,qword ptr [RBP + -0x8]
ADD RSP,0x30
POP RBP
RET
|
ulong my_uca_contraction_find(long *param_1,int8 param_2,ulong param_3)
{
int iVar1;
ulong uVar2;
ulong local_30;
local_30 = param_1[1];
uVar2 = local_30 + *param_1 * 0x58;
while( true ) {
if (uVar2 <= local_30) {
return 0;
}
if ((((5 < param_3) || (*(long *)(local_30 + param_3 * 8) == 0)) &&
(*(char *)(local_30 + 0x52) == '\0')) &&
(iVar1 = my_wmemcmp(local_30,param_2,param_3), iVar1 == 0)) break;
local_30 = local_30 + 0x58;
}
return local_30;
}
|
|
58,046
|
list_delete
|
eloqsql/mysys/list.c
|
LIST *list_delete(LIST *root, LIST *element)
{
if (element->prev)
element->prev->next=element->next;
else
root=element->next;
if (element->next)
element->next->prev=element->prev;
return root;
}
|
O3
|
c
|
list_delete:
pushq %rbp
movq %rsp, %rbp
movq (%rsi), %rdx
movq 0x8(%rsi), %rcx
movq %rcx, %rax
testq %rdx, %rdx
je 0x96f96
movq %rcx, 0x8(%rdx)
movq %rdi, %rax
testq %rcx, %rcx
je 0x96fa1
movq (%rsi), %rdx
movq %rdx, (%rcx)
popq %rbp
retq
|
list_delete:
push rbp
mov rbp, rsp
mov rdx, [rsi]
mov rcx, [rsi+8]
mov rax, rcx
test rdx, rdx
jz short loc_96F96
mov [rdx+8], rcx
mov rax, rdi
loc_96F96:
test rcx, rcx
jz short loc_96FA1
mov rdx, [rsi]
mov [rcx], rdx
loc_96FA1:
pop rbp
retn
|
_QWORD * list_delete(_QWORD *a1, _QWORD *a2)
{
_QWORD *v2; // rcx
_QWORD *result; // rax
v2 = (_QWORD *)a2[1];
result = v2;
if ( *a2 )
{
*(_QWORD *)(*a2 + 8LL) = v2;
result = a1;
}
if ( v2 )
*v2 = *a2;
return result;
}
|
list_delete:
PUSH RBP
MOV RBP,RSP
MOV RDX,qword ptr [RSI]
MOV RCX,qword ptr [RSI + 0x8]
MOV RAX,RCX
TEST RDX,RDX
JZ 0x00196f96
MOV qword ptr [RDX + 0x8],RCX
MOV RAX,RDI
LAB_00196f96:
TEST RCX,RCX
JZ 0x00196fa1
MOV RDX,qword ptr [RSI]
MOV qword ptr [RCX],RDX
LAB_00196fa1:
POP RBP
RET
|
long * list_delete(long *param_1,long *param_2)
{
long *plVar1;
long *plVar2;
plVar1 = (long *)param_2[1];
plVar2 = plVar1;
if (*param_2 != 0) {
*(long **)(*param_2 + 8) = plVar1;
plVar2 = param_1;
}
if (plVar1 != (long *)0x0) {
*plVar1 = *param_2;
}
return plVar2;
}
|
|
58,047
|
my_mb_wc_utf8mb4_quick
|
eloqsql/strings/ctype-utf8.h
|
static inline int
my_mb_wc_utf8mb4_quick(my_wc_t *pwc, const uchar *s, const uchar *e)
{
uchar c;
if (s >= e)
return MY_CS_TOOSMALL;
c= s[0];
if (c < 0x80)
{
*pwc= c;
return 1;
}
else if (c < 0xc2)
return MY_CS_ILSEQ;
else if (c < 0xe0)
{
if (s + 2 > e) /* We need 2 characters */
return MY_CS_TOOSMALL2;
if (!(IS_CONTINUATION_BYTE(s[1])))
return MY_CS_ILSEQ;
*pwc= UTF8MB2_CODE(c, s[1]);
return 2;
}
else if (c < 0xf0)
{
if (s + 3 > e) /* We need 3 characters */
return MY_CS_TOOSMALL3;
if (!IS_UTF8MB3_STEP2(c, s[1], s[2]))
return MY_CS_ILSEQ;
*pwc= UTF8MB3_CODE(c, s[1], s[2]);
return 3;
}
else if (c < 0xf5)
{
if (s + 4 > e) /* We need 4 characters */
return MY_CS_TOOSMALL4;
if (!IS_UTF8MB4_STEP2(c, s[1], s[2], s[3]))
return MY_CS_ILSEQ;
*pwc= UTF8MB4_CODE(c, s[1], s[2], s[3]);
return 4;
}
return MY_CS_ILSEQ;
}
|
O3
|
c
|
my_mb_wc_utf8mb4_quick:
pushq %rbp
movq %rsp, %rbp
movl $0xffffff9b, %eax # imm = 0xFFFFFF9B
cmpq %rdx, %rsi
jae 0x4cc87
movzbl (%rsi), %ecx
testb %cl, %cl
js 0x4cc80
movl $0x1, %eax
movq %rcx, (%rdi)
jmp 0x4cc87
cmpb $-0x3e, %cl
jae 0x4cc89
xorl %eax, %eax
popq %rbp
retq
cmpb $-0x21, %cl
ja 0x4ccbf
leaq 0x2(%rsi), %r8
movl $0xffffff9a, %eax # imm = 0xFFFFFF9A
cmpq %rdx, %r8
ja 0x4cc87
movzbl 0x1(%rsi), %edx
xorl $0x80, %edx
movl $0x0, %eax
cmpb $0x3f, %dl
ja 0x4cc87
andl $0x1f, %ecx
shll $0x6, %ecx
orl %edx, %ecx
movl $0x2, %eax
jmp 0x4cc7b
cmpb $-0x11, %cl
ja 0x4cd21
leaq 0x3(%rsi), %r8
movl $0xffffff99, %eax # imm = 0xFFFFFF99
cmpq %rdx, %r8
ja 0x4cc87
movzbl 0x1(%rsi), %edx
cmpb $-0x41, %dl
jg 0x4cc85
movzbl 0x2(%rsi), %esi
cmpb $-0x41, %sil
jg 0x4cc85
cmpl $0xe0, %ecx
sete %r8b
cmpb $-0x60, %dl
setb %r9b
movl $0x0, %eax
testb %r9b, %r8b
jne 0x4cc87
shll $0xc, %ecx
movzwl %cx, %eax
andl $0x3f, %edx
shll $0x6, %edx
orl %eax, %edx
andl $0x3f, %esi
orq %rdx, %rsi
movl $0x3, %eax
movq %rsi, %rcx
jmp 0x4cc7b
cmpb $-0xc, %cl
ja 0x4cc85
leaq 0x4(%rsi), %r8
movl $0xffffff98, %eax # imm = 0xFFFFFF98
cmpq %rdx, %r8
ja 0x4cc87
movzbl 0x1(%rsi), %r8d
cmpb $-0x41, %r8b
jg 0x4cc85
movzbl 0x2(%rsi), %edx
cmpb $-0x41, %dl
jg 0x4cc85
movzbl 0x3(%rsi), %esi
cmpb $-0x41, %sil
jg 0x4cc85
cmpl $0xf0, %ecx
sete %al
cmpb $-0x70, %r8b
setb %r9b
testb %r9b, %al
jne 0x4cc85
cmpl $0xf4, %ecx
sete %r9b
cmpb $-0x70, %r8b
setae %r10b
movl $0x0, %eax
testb %r10b, %r9b
jne 0x4cc87
andl $0x7, %ecx
shll $0x12, %ecx
andl $0x3f, %r8d
shll $0xc, %r8d
orl %ecx, %r8d
andl $0x3f, %edx
shll $0x6, %edx
orl %r8d, %edx
andl $0x3f, %esi
orq %rdx, %rsi
movl $0x4, %eax
jmp 0x4cd19
|
my_mb_wc_utf8mb4_quick:
push rbp
mov rbp, rsp
mov eax, 0FFFFFF9Bh
cmp rsi, rdx
jnb short loc_4CC87
movzx ecx, byte ptr [rsi]
test cl, cl
js short loc_4CC80
mov eax, 1
loc_4CC7B:
mov [rdi], rcx
jmp short loc_4CC87
loc_4CC80:
cmp cl, 0C2h
jnb short loc_4CC89
loc_4CC85:
xor eax, eax
loc_4CC87:
pop rbp
retn
loc_4CC89:
cmp cl, 0DFh
ja short loc_4CCBF
lea r8, [rsi+2]
mov eax, 0FFFFFF9Ah
cmp r8, rdx
ja short loc_4CC87
movzx edx, byte ptr [rsi+1]
xor edx, 80h
mov eax, 0
cmp dl, 3Fh ; '?'
ja short loc_4CC87
and ecx, 1Fh
shl ecx, 6
or ecx, edx
mov eax, 2
jmp short loc_4CC7B
loc_4CCBF:
cmp cl, 0EFh
ja short loc_4CD21
lea r8, [rsi+3]
mov eax, 0FFFFFF99h
cmp r8, rdx
ja short loc_4CC87
movzx edx, byte ptr [rsi+1]
cmp dl, 0BFh
jg short loc_4CC85
movzx esi, byte ptr [rsi+2]
cmp sil, 0BFh
jg short loc_4CC85
cmp ecx, 0E0h
setz r8b
cmp dl, 0A0h
setb r9b
mov eax, 0
test r8b, r9b
jnz short loc_4CC87
shl ecx, 0Ch
movzx eax, cx
and edx, 3Fh
shl edx, 6
or edx, eax
and esi, 3Fh
or rsi, rdx
mov eax, 3
loc_4CD19:
mov rcx, rsi
jmp loc_4CC7B
loc_4CD21:
cmp cl, 0F4h
ja loc_4CC85
lea r8, [rsi+4]
mov eax, 0FFFFFF98h
cmp r8, rdx
ja loc_4CC87
movzx r8d, byte ptr [rsi+1]
cmp r8b, 0BFh
jg loc_4CC85
movzx edx, byte ptr [rsi+2]
cmp dl, 0BFh
jg loc_4CC85
movzx esi, byte ptr [rsi+3]
cmp sil, 0BFh
jg loc_4CC85
cmp ecx, 0F0h
setz al
cmp r8b, 90h
setb r9b
test al, r9b
jnz loc_4CC85
cmp ecx, 0F4h
setz r9b
cmp r8b, 90h
setnb r10b
mov eax, 0
test r9b, r10b
jnz loc_4CC87
and ecx, 7
shl ecx, 12h
and r8d, 3Fh
shl r8d, 0Ch
or r8d, ecx
and edx, 3Fh
shl edx, 6
or edx, r8d
and esi, 3Fh
or rsi, rdx
mov eax, 4
jmp loc_4CD19
|
long long my_mb_wc_utf8mb4_quick(unsigned long long *a1, unsigned __int8 *a2, unsigned long long a3)
{
long long result; // rax
unsigned long long v4; // rcx
char v5; // dl
char v6; // si
unsigned long long v7; // rsi
char v8; // r8
char v9; // dl
char v10; // si
result = 4294967195LL;
if ( (unsigned long long)a2 >= a3 )
return result;
v4 = *a2;
if ( (v4 & 0x80u) == 0LL )
{
result = 1LL;
LABEL_4:
*a1 = v4;
return result;
}
if ( (unsigned __int8)v4 < 0xC2u )
return 0LL;
if ( (unsigned __int8)v4 > 0xDFu )
{
if ( (unsigned __int8)v4 > 0xEFu )
{
if ( (unsigned __int8)v4 <= 0xF4u )
{
result = 4294967192LL;
if ( (unsigned long long)(a2 + 4) > a3 )
return result;
v8 = a2[1];
if ( v8 <= -65 )
{
v9 = a2[2];
if ( v9 <= -65 )
{
v10 = a2[3];
if ( v10 <= -65 && ((unsigned __int8)v8 >= 0x90u || (_DWORD)v4 != 240) )
{
result = 0LL;
if ( (unsigned __int8)v8 >= 0x90u && (_DWORD)v4 == 244 )
return result;
v7 = ((v4 & 7) << 18) | ((unsigned __int8)(v8 & 0x3F) << 12) | ((unsigned __int8)(v9 & 0x3F) << 6) | v10 & 0x3F;
result = 4LL;
LABEL_18:
v4 = v7;
goto LABEL_4;
}
}
}
}
}
else
{
result = 4294967193LL;
if ( (unsigned long long)(a2 + 3) > a3 )
return result;
v5 = a2[1];
if ( v5 <= -65 )
{
v6 = a2[2];
if ( v6 <= -65 )
{
result = 0LL;
if ( (unsigned __int8)v5 < 0xA0u && (_DWORD)v4 == 224 )
return result;
v7 = (unsigned __int16)((_WORD)v4 << 12) | ((unsigned __int8)(v5 & 0x3F) << 6) | (unsigned long long)(v6 & 0x3F);
result = 3LL;
goto LABEL_18;
}
}
}
return 0LL;
}
result = 4294967194LL;
if ( (unsigned long long)(a2 + 2) <= a3 )
{
result = 0LL;
if ( (a2[1] ^ 0x80u) <= 0x3F )
{
v4 = a2[1] ^ 0x80 | ((unsigned __int8)(v4 & 0x1F) << 6);
result = 2LL;
goto LABEL_4;
}
}
return result;
}
|
my_mb_wc_utf8mb4_quick:
PUSH RBP
MOV RBP,RSP
MOV EAX,0xffffff9b
CMP RSI,RDX
JNC 0x0014cc87
MOVZX ECX,byte ptr [RSI]
TEST CL,CL
JS 0x0014cc80
MOV EAX,0x1
LAB_0014cc7b:
MOV qword ptr [RDI],RCX
JMP 0x0014cc87
LAB_0014cc80:
CMP CL,0xc2
JNC 0x0014cc89
LAB_0014cc85:
XOR EAX,EAX
LAB_0014cc87:
POP RBP
RET
LAB_0014cc89:
CMP CL,0xdf
JA 0x0014ccbf
LEA R8,[RSI + 0x2]
MOV EAX,0xffffff9a
CMP R8,RDX
JA 0x0014cc87
MOVZX EDX,byte ptr [RSI + 0x1]
XOR EDX,0x80
MOV EAX,0x0
CMP DL,0x3f
JA 0x0014cc87
AND ECX,0x1f
SHL ECX,0x6
OR ECX,EDX
MOV EAX,0x2
JMP 0x0014cc7b
LAB_0014ccbf:
CMP CL,0xef
JA 0x0014cd21
LEA R8,[RSI + 0x3]
MOV EAX,0xffffff99
CMP R8,RDX
JA 0x0014cc87
MOVZX EDX,byte ptr [RSI + 0x1]
CMP DL,0xbf
JG 0x0014cc85
MOVZX ESI,byte ptr [RSI + 0x2]
CMP SIL,0xbf
JG 0x0014cc85
CMP ECX,0xe0
SETZ R8B
CMP DL,0xa0
SETC R9B
MOV EAX,0x0
TEST R8B,R9B
JNZ 0x0014cc87
SHL ECX,0xc
MOVZX EAX,CX
AND EDX,0x3f
SHL EDX,0x6
OR EDX,EAX
AND ESI,0x3f
OR RSI,RDX
MOV EAX,0x3
LAB_0014cd19:
MOV RCX,RSI
JMP 0x0014cc7b
LAB_0014cd21:
CMP CL,0xf4
JA 0x0014cc85
LEA R8,[RSI + 0x4]
MOV EAX,0xffffff98
CMP R8,RDX
JA 0x0014cc87
MOVZX R8D,byte ptr [RSI + 0x1]
CMP R8B,0xbf
JG 0x0014cc85
MOVZX EDX,byte ptr [RSI + 0x2]
CMP DL,0xbf
JG 0x0014cc85
MOVZX ESI,byte ptr [RSI + 0x3]
CMP SIL,0xbf
JG 0x0014cc85
CMP ECX,0xf0
SETZ AL
CMP R8B,0x90
SETC R9B
TEST AL,R9B
JNZ 0x0014cc85
CMP ECX,0xf4
SETZ R9B
CMP R8B,0x90
SETNC R10B
MOV EAX,0x0
TEST R9B,R10B
JNZ 0x0014cc87
AND ECX,0x7
SHL ECX,0x12
AND R8D,0x3f
SHL R8D,0xc
OR R8D,ECX
AND EDX,0x3f
SHL EDX,0x6
OR EDX,R8D
AND ESI,0x3f
OR RSI,RDX
MOV EAX,0x4
JMP 0x0014cd19
|
int8 my_mb_wc_utf8mb4_quick(ulong *param_1,byte *param_2,byte *param_3)
{
byte bVar1;
byte bVar2;
int8 uVar3;
uint uVar4;
ulong uVar5;
if (param_3 <= param_2) {
return 0xffffff9b;
}
bVar1 = *param_2;
uVar5 = (ulong)bVar1;
if ((char)bVar1 < '\0') {
if (0xc1 < bVar1) {
uVar4 = (uint)bVar1;
if (bVar1 < 0xe0) {
if (param_3 < param_2 + 2) {
return 0xffffff9a;
}
if (0x3f < (byte)(param_2[1] ^ 0x80)) {
return 0;
}
uVar5 = (ulong)((uVar4 & 0x1f) << 6 | param_2[1] ^ 0x80);
uVar3 = 2;
goto LAB_0014cc7b;
}
if (bVar1 < 0xf0) {
if (param_3 < param_2 + 3) {
return 0xffffff99;
}
bVar2 = param_2[1];
if (((char)bVar2 < -0x40) && ((char)param_2[2] < -0x40)) {
if (uVar4 == 0xe0 && bVar2 < 0xa0) {
return 0;
}
uVar4 = param_2[2] & 0x3f | (bVar2 & 0x3f) << 6 | (bVar1 & 0xf) << 0xc;
uVar3 = 3;
LAB_0014cd19:
uVar5 = (ulong)uVar4;
goto LAB_0014cc7b;
}
}
else if (bVar1 < 0xf5) {
if (param_3 < param_2 + 4) {
return 0xffffff98;
}
bVar1 = param_2[1];
if (((((char)bVar1 < -0x40) && ((char)param_2[2] < -0x40)) && ((char)param_2[3] < -0x40)) &&
(uVar4 != 0xf0 || 0x8f < bVar1)) {
if (uVar4 == 0xf4 && 0x8f < bVar1) {
return 0;
}
uVar4 = param_2[3] & 0x3f |
(param_2[2] & 0x3f) << 6 | (bVar1 & 0x3f) << 0xc | (uVar4 & 7) << 0x12;
uVar3 = 4;
goto LAB_0014cd19;
}
}
}
uVar3 = 0;
}
else {
uVar3 = 1;
LAB_0014cc7b:
*param_1 = uVar5;
}
return uVar3;
}
|
|
58,048
|
my_wc_to_printable_ex
|
eloqsql/strings/ctype.c
|
int
my_wc_to_printable_ex(CHARSET_INFO *cs, my_wc_t wc,
uchar *str, uchar *end,
uint bs, uint bslen, uint diglen)
{
uchar *str0;
uint i, length;
uchar tmp[MY_CS_PRINTABLE_CHAR_LENGTH * MY_CS_MBMAXLEN];
if (my_is_printable(wc))
{
int mblen= my_ci_wc_mb(cs, wc, str, end);
if (mblen > 0)
return mblen;
}
if (str + my_printable_length(bslen, diglen) > end)
return MY_CS_TOOSMALLN(my_printable_length(bslen, diglen));
if ((cs->state & MY_CS_NONASCII) == 0)
return to_printable_8bit(str, wc, bs);
length= to_printable_8bit(tmp, wc, bs);
str0= str;
for (i= 0; i < length; i++)
{
uint expected_length= i == 0 ? bslen : diglen;
if (my_ci_wc_mb(cs, tmp[i], str, end) != (int) expected_length)
{
DBUG_ASSERT(0);
return MY_CS_ILSEQ;
}
str+= expected_length;
}
return (int) (str - str0);
}
|
O0
|
c
|
my_wc_to_printable_ex:
pushq %rbp
movq %rsp, %rbp
subq $0x90, %rsp
movl 0x10(%rbp), %eax
movq %fs:0x28, %rax
movq %rax, -0x8(%rbp)
movq %rdi, -0x40(%rbp)
movq %rsi, -0x48(%rbp)
movq %rdx, -0x50(%rbp)
movq %rcx, -0x58(%rbp)
movl %r8d, -0x5c(%rbp)
movl %r9d, -0x60(%rbp)
movq -0x48(%rbp), %rdi
callq 0x6f4c0
cmpb $0x0, %al
je 0x6f377
movq -0x40(%rbp), %rax
movq 0xb8(%rax), %rax
movq 0x30(%rax), %rax
movq -0x40(%rbp), %rdi
movq -0x48(%rbp), %rsi
movq -0x50(%rbp), %rdx
movq -0x58(%rbp), %rcx
callq *%rax
movl %eax, -0x74(%rbp)
cmpl $0x0, -0x74(%rbp)
jle 0x6f375
movl -0x74(%rbp), %eax
movl %eax, -0x34(%rbp)
jmp 0x6f48f
jmp 0x6f377
movq -0x50(%rbp), %rax
movq %rax, -0x80(%rbp)
movl -0x60(%rbp), %edi
movl 0x10(%rbp), %esi
callq 0x6f540
movl %eax, %ecx
movq -0x80(%rbp), %rax
movl %ecx, %ecx
addq %rcx, %rax
cmpq -0x58(%rbp), %rax
jbe 0x6f3b7
movl -0x60(%rbp), %edi
movl 0x10(%rbp), %esi
callq 0x6f540
movl %eax, %ecx
movl $0xffffff9c, %eax # imm = 0xFFFFFF9C
subl %ecx, %eax
movl %eax, -0x34(%rbp)
jmp 0x6f48f
movq -0x40(%rbp), %rax
movl 0xc(%rax), %eax
andl $0x2000, %eax # imm = 0x2000
cmpl $0x0, %eax
jne 0x6f3e0
movq -0x50(%rbp), %rdi
movq -0x48(%rbp), %rsi
movl -0x5c(%rbp), %edx
callq 0x6f560
movl %eax, -0x34(%rbp)
jmp 0x6f48f
leaq -0x30(%rbp), %rdi
movq -0x48(%rbp), %rsi
movl -0x5c(%rbp), %edx
callq 0x6f560
movl %eax, -0x70(%rbp)
movq -0x50(%rbp), %rax
movq %rax, -0x68(%rbp)
movl $0x0, -0x6c(%rbp)
movl -0x6c(%rbp), %eax
cmpl -0x70(%rbp), %eax
jae 0x6f481
cmpl $0x0, -0x6c(%rbp)
jne 0x6f41b
movl -0x60(%rbp), %eax
movl %eax, -0x84(%rbp)
jmp 0x6f424
movl 0x10(%rbp), %eax
movl %eax, -0x84(%rbp)
movl -0x84(%rbp), %eax
movl %eax, -0x78(%rbp)
movq -0x40(%rbp), %rax
movq 0xb8(%rax), %rax
movq 0x30(%rax), %rax
movq -0x40(%rbp), %rdi
movl -0x6c(%rbp), %ecx
movzbl -0x30(%rbp,%rcx), %ecx
movl %ecx, %esi
movq -0x50(%rbp), %rdx
movq -0x58(%rbp), %rcx
callq *%rax
cmpl -0x78(%rbp), %eax
je 0x6f466
jmp 0x6f45b
jmp 0x6f45d
movl $0x0, -0x34(%rbp)
jmp 0x6f48f
movl -0x78(%rbp), %ecx
movq -0x50(%rbp), %rax
movl %ecx, %ecx
addq %rcx, %rax
movq %rax, -0x50(%rbp)
movl -0x6c(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x6c(%rbp)
jmp 0x6f402
movq -0x50(%rbp), %rax
movq -0x68(%rbp), %rcx
subq %rcx, %rax
movl %eax, -0x34(%rbp)
movl -0x34(%rbp), %eax
movl %eax, -0x88(%rbp)
movq %fs:0x28, %rax
movq -0x8(%rbp), %rcx
cmpq %rcx, %rax
jne 0x6f4b9
movl -0x88(%rbp), %eax
addq $0x90, %rsp
popq %rbp
retq
callq 0x242e0
nop
|
my_wc_to_printable_ex:
push rbp
mov rbp, rsp
sub rsp, 90h
mov eax, [rbp+arg_0]
mov rax, fs:28h
mov [rbp+var_8], rax
mov [rbp+var_40], rdi
mov [rbp+var_48], rsi
mov [rbp+var_50], rdx
mov [rbp+var_58], rcx
mov [rbp+var_5C], r8d
mov [rbp+var_60], r9d
mov rdi, [rbp+var_48]
call my_is_printable
cmp al, 0
jz short loc_6F377
mov rax, [rbp+var_40]
mov rax, [rax+0B8h]
mov rax, [rax+30h]
mov rdi, [rbp+var_40]
mov rsi, [rbp+var_48]
mov rdx, [rbp+var_50]
mov rcx, [rbp+var_58]
call rax
mov [rbp+var_74], eax
cmp [rbp+var_74], 0
jle short loc_6F375
mov eax, [rbp+var_74]
mov [rbp+var_34], eax
jmp loc_6F48F
loc_6F375:
jmp short $+2
loc_6F377:
mov rax, [rbp+var_50]
mov [rbp+var_80], rax
mov edi, [rbp+var_60]
mov esi, [rbp+arg_0]
call my_printable_length
mov ecx, eax
mov rax, [rbp+var_80]
mov ecx, ecx
add rax, rcx
cmp rax, [rbp+var_58]
jbe short loc_6F3B7
mov edi, [rbp+var_60]
mov esi, [rbp+arg_0]
call my_printable_length
mov ecx, eax
mov eax, 0FFFFFF9Ch
sub eax, ecx
mov [rbp+var_34], eax
jmp loc_6F48F
loc_6F3B7:
mov rax, [rbp+var_40]
mov eax, [rax+0Ch]
and eax, 2000h
cmp eax, 0
jnz short loc_6F3E0
mov rdi, [rbp+var_50]
mov rsi, [rbp+var_48]
mov edx, [rbp+var_5C]
call to_printable_8bit
mov [rbp+var_34], eax
jmp loc_6F48F
loc_6F3E0:
lea rdi, [rbp+var_30]
mov rsi, [rbp+var_48]
mov edx, [rbp+var_5C]
call to_printable_8bit
mov [rbp+var_70], eax
mov rax, [rbp+var_50]
mov [rbp+var_68], rax
mov [rbp+var_6C], 0
loc_6F402:
mov eax, [rbp+var_6C]
cmp eax, [rbp+var_70]
jnb short loc_6F481
cmp [rbp+var_6C], 0
jnz short loc_6F41B
mov eax, [rbp+var_60]
mov [rbp+var_84], eax
jmp short loc_6F424
loc_6F41B:
mov eax, [rbp+arg_0]
mov [rbp+var_84], eax
loc_6F424:
mov eax, [rbp+var_84]
mov [rbp+var_78], eax
mov rax, [rbp+var_40]
mov rax, [rax+0B8h]
mov rax, [rax+30h]
mov rdi, [rbp+var_40]
mov ecx, [rbp+var_6C]
movzx ecx, [rbp+rcx+var_30]
mov esi, ecx
mov rdx, [rbp+var_50]
mov rcx, [rbp+var_58]
call rax
cmp eax, [rbp+var_78]
jz short loc_6F466
jmp short $+2
loc_6F45B:
jmp short $+2
loc_6F45D:
mov [rbp+var_34], 0
jmp short loc_6F48F
loc_6F466:
mov ecx, [rbp+var_78]
mov rax, [rbp+var_50]
mov ecx, ecx
add rax, rcx
mov [rbp+var_50], rax
mov eax, [rbp+var_6C]
add eax, 1
mov [rbp+var_6C], eax
jmp short loc_6F402
loc_6F481:
mov rax, [rbp+var_50]
mov rcx, [rbp+var_68]
sub rax, rcx
mov [rbp+var_34], eax
loc_6F48F:
mov eax, [rbp+var_34]
mov [rbp+var_88], eax
mov rax, fs:28h
mov rcx, [rbp+var_8]
cmp rax, rcx
jnz short loc_6F4B9
mov eax, [rbp+var_88]
add rsp, 90h
pop rbp
retn
loc_6F4B9:
call ___stack_chk_fail
|
long long my_wc_to_printable_ex(
long long a1,
long long a2,
long long a3,
unsigned long long a4,
unsigned int a5,
unsigned int a6,
unsigned int a7)
{
unsigned int v8; // [rsp+Ch] [rbp-84h]
int v9; // [rsp+1Ch] [rbp-74h]
unsigned int v10; // [rsp+20h] [rbp-70h]
unsigned int i; // [rsp+24h] [rbp-6Ch]
int v12; // [rsp+28h] [rbp-68h]
_BYTE v18[40]; // [rsp+60h] [rbp-30h] BYREF
unsigned long long v19; // [rsp+88h] [rbp-8h]
v19 = __readfsqword(0x28u);
if ( (unsigned __int8)my_is_printable(a2)
&& (v9 = (*(long long ( **)(long long, long long, long long, unsigned long long))(*(_QWORD *)(a1 + 184) + 48LL))(
a1,
a2,
a3,
a4),
v9 > 0) )
{
return (unsigned int)v9;
}
else if ( (unsigned long long)(unsigned int)my_printable_length(a6, a7) + a3 <= a4 )
{
if ( (*(_DWORD *)(a1 + 12) & 0x2000) != 0 )
{
v10 = to_printable_8bit(v18, a2, a5);
v12 = a3;
for ( i = 0; i < v10; ++i )
{
if ( i )
v8 = a7;
else
v8 = a6;
if ( (*(unsigned int ( **)(long long, _QWORD, long long, unsigned long long))(*(_QWORD *)(a1 + 184) + 48LL))(
a1,
(unsigned __int8)v18[i],
a3,
a4) != v8 )
return 0;
a3 += v8;
}
return (unsigned int)(a3 - v12);
}
else
{
return (unsigned int)to_printable_8bit(a3, a2, a5);
}
}
else
{
return (unsigned int)(-100 - my_printable_length(a6, a7));
}
}
|
my_wc_to_printable_ex:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x90
MOV EAX,dword ptr [RBP + 0x10]
MOV RAX,qword ptr FS:[0x28]
MOV qword ptr [RBP + -0x8],RAX
MOV qword ptr [RBP + -0x40],RDI
MOV qword ptr [RBP + -0x48],RSI
MOV qword ptr [RBP + -0x50],RDX
MOV qword ptr [RBP + -0x58],RCX
MOV dword ptr [RBP + -0x5c],R8D
MOV dword ptr [RBP + -0x60],R9D
MOV RDI,qword ptr [RBP + -0x48]
CALL 0x0016f4c0
CMP AL,0x0
JZ 0x0016f377
MOV RAX,qword ptr [RBP + -0x40]
MOV RAX,qword ptr [RAX + 0xb8]
MOV RAX,qword ptr [RAX + 0x30]
MOV RDI,qword ptr [RBP + -0x40]
MOV RSI,qword ptr [RBP + -0x48]
MOV RDX,qword ptr [RBP + -0x50]
MOV RCX,qword ptr [RBP + -0x58]
CALL RAX
MOV dword ptr [RBP + -0x74],EAX
CMP dword ptr [RBP + -0x74],0x0
JLE 0x0016f375
MOV EAX,dword ptr [RBP + -0x74]
MOV dword ptr [RBP + -0x34],EAX
JMP 0x0016f48f
LAB_0016f375:
JMP 0x0016f377
LAB_0016f377:
MOV RAX,qword ptr [RBP + -0x50]
MOV qword ptr [RBP + -0x80],RAX
MOV EDI,dword ptr [RBP + -0x60]
MOV ESI,dword ptr [RBP + 0x10]
CALL 0x0016f540
MOV ECX,EAX
MOV RAX,qword ptr [RBP + -0x80]
MOV ECX,ECX
ADD RAX,RCX
CMP RAX,qword ptr [RBP + -0x58]
JBE 0x0016f3b7
MOV EDI,dword ptr [RBP + -0x60]
MOV ESI,dword ptr [RBP + 0x10]
CALL 0x0016f540
MOV ECX,EAX
MOV EAX,0xffffff9c
SUB EAX,ECX
MOV dword ptr [RBP + -0x34],EAX
JMP 0x0016f48f
LAB_0016f3b7:
MOV RAX,qword ptr [RBP + -0x40]
MOV EAX,dword ptr [RAX + 0xc]
AND EAX,0x2000
CMP EAX,0x0
JNZ 0x0016f3e0
MOV RDI,qword ptr [RBP + -0x50]
MOV RSI,qword ptr [RBP + -0x48]
MOV EDX,dword ptr [RBP + -0x5c]
CALL 0x0016f560
MOV dword ptr [RBP + -0x34],EAX
JMP 0x0016f48f
LAB_0016f3e0:
LEA RDI,[RBP + -0x30]
MOV RSI,qword ptr [RBP + -0x48]
MOV EDX,dword ptr [RBP + -0x5c]
CALL 0x0016f560
MOV dword ptr [RBP + -0x70],EAX
MOV RAX,qword ptr [RBP + -0x50]
MOV qword ptr [RBP + -0x68],RAX
MOV dword ptr [RBP + -0x6c],0x0
LAB_0016f402:
MOV EAX,dword ptr [RBP + -0x6c]
CMP EAX,dword ptr [RBP + -0x70]
JNC 0x0016f481
CMP dword ptr [RBP + -0x6c],0x0
JNZ 0x0016f41b
MOV EAX,dword ptr [RBP + -0x60]
MOV dword ptr [RBP + -0x84],EAX
JMP 0x0016f424
LAB_0016f41b:
MOV EAX,dword ptr [RBP + 0x10]
MOV dword ptr [RBP + -0x84],EAX
LAB_0016f424:
MOV EAX,dword ptr [RBP + -0x84]
MOV dword ptr [RBP + -0x78],EAX
MOV RAX,qword ptr [RBP + -0x40]
MOV RAX,qword ptr [RAX + 0xb8]
MOV RAX,qword ptr [RAX + 0x30]
MOV RDI,qword ptr [RBP + -0x40]
MOV ECX,dword ptr [RBP + -0x6c]
MOVZX ECX,byte ptr [RBP + RCX*0x1 + -0x30]
MOV ESI,ECX
MOV RDX,qword ptr [RBP + -0x50]
MOV RCX,qword ptr [RBP + -0x58]
CALL RAX
CMP EAX,dword ptr [RBP + -0x78]
JZ 0x0016f466
JMP 0x0016f45b
LAB_0016f45b:
JMP 0x0016f45d
LAB_0016f45d:
MOV dword ptr [RBP + -0x34],0x0
JMP 0x0016f48f
LAB_0016f466:
MOV ECX,dword ptr [RBP + -0x78]
MOV RAX,qword ptr [RBP + -0x50]
MOV ECX,ECX
ADD RAX,RCX
MOV qword ptr [RBP + -0x50],RAX
MOV EAX,dword ptr [RBP + -0x6c]
ADD EAX,0x1
MOV dword ptr [RBP + -0x6c],EAX
JMP 0x0016f402
LAB_0016f481:
MOV RAX,qword ptr [RBP + -0x50]
MOV RCX,qword ptr [RBP + -0x68]
SUB RAX,RCX
MOV dword ptr [RBP + -0x34],EAX
LAB_0016f48f:
MOV EAX,dword ptr [RBP + -0x34]
MOV dword ptr [RBP + -0x88],EAX
MOV RAX,qword ptr FS:[0x28]
MOV RCX,qword ptr [RBP + -0x8]
CMP RAX,RCX
JNZ 0x0016f4b9
MOV EAX,dword ptr [RBP + -0x88]
ADD RSP,0x90
POP RBP
RET
LAB_0016f4b9:
CALL 0x001242e0
|
int my_wc_to_printable_ex
(long param_1,int8 param_2,long param_3,ulong param_4,int4 param_5,
uint param_6,uint param_7)
{
char cVar1;
uint uVar2;
uint uVar3;
long in_FS_OFFSET;
uint local_8c;
uint local_74;
long local_58;
int local_3c;
int1 local_38 [40];
long local_10;
local_10 = *(long *)(in_FS_OFFSET + 0x28);
cVar1 = my_is_printable(param_2);
if ((cVar1 == '\0') ||
(local_3c = (**(code **)(*(long *)(param_1 + 0xb8) + 0x30))(param_1,param_2,param_3,param_4),
local_3c < 1)) {
uVar2 = my_printable_length(param_6,param_7);
if (param_4 < param_3 + (ulong)uVar2) {
local_3c = my_printable_length(param_6,param_7);
local_3c = -100 - local_3c;
}
else if ((*(uint *)(param_1 + 0xc) & 0x2000) == 0) {
local_3c = to_printable_8bit(param_3,param_2,param_5);
}
else {
uVar2 = to_printable_8bit(local_38,param_2,param_5);
local_58 = param_3;
for (local_74 = 0; local_74 < uVar2; local_74 = local_74 + 1) {
local_8c = param_6;
if (local_74 != 0) {
local_8c = param_7;
}
uVar3 = (**(code **)(*(long *)(param_1 + 0xb8) + 0x30))
(param_1,local_38[local_74],local_58,param_4);
if (uVar3 != local_8c) {
local_3c = 0;
goto LAB_0016f48f;
}
local_58 = local_58 + (ulong)local_8c;
}
local_3c = (int)local_58 - (int)param_3;
}
}
LAB_0016f48f:
if (*(long *)(in_FS_OFFSET + 0x28) != local_10) {
/* WARNING: Subroutine does not return */
__stack_chk_fail();
}
return local_3c;
}
|
|
58,049
|
lf_pinbox_put_pins
|
eloqsql/mysys/lf_alloc-pin.c
|
void lf_pinbox_put_pins(LF_PINS *pins)
{
LF_PINBOX *pinbox= pins->pinbox;
uint32 top_ver, nr;
nr= pins->link;
#ifndef DBUG_OFF
{
/* This thread should not hold any pin. */
int i;
for (i= 0; i < LF_PINBOX_PINS; i++)
DBUG_ASSERT(pins->pin[i] == 0);
}
#endif /* DBUG_OFF */
/*
XXX this will deadlock if other threads will wait for
the caller to do something after lf_pinbox_put_pins(),
and they would have pinned addresses that the caller wants to free.
Thus: only free pins when all work is done and nobody can wait for you!!!
*/
while (pins->purgatory_count)
{
lf_pinbox_real_free(pins);
if (pins->purgatory_count)
pthread_yield();
}
top_ver= pinbox->pinstack_top_ver;
do
{
pins->link= top_ver % LF_PINBOX_MAX_PINS;
} while (!my_atomic_cas32((int32 volatile*) &pinbox->pinstack_top_ver,
(int32*) &top_ver,
top_ver-pins->link+nr+LF_PINBOX_MAX_PINS));
return;
}
|
O3
|
c
|
lf_pinbox_put_pins:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
movq 0x20(%rdi), %r14
movl 0x34(%rdi), %r15d
cmpl $0x0, 0x30(%rdi)
je 0xa6423
movq %rbx, %rdi
callq 0xa644e
cmpl $0x0, 0x30(%rbx)
je 0xa6423
callq 0x29950
cmpl $0x0, 0x30(%rbx)
jne 0xa640a
movl 0x3c(%r14), %eax
addl $0x10000, %r15d # imm = 0x10000
movzwl %ax, %ecx
movl %ecx, 0x34(%rbx)
leal (%r15,%rax), %ecx
subl 0x34(%rbx), %ecx
lock
cmpxchgl %ecx, 0x3c(%r14)
jne 0xa642e
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
|
lf_pinbox_put_pins:
push rbp
mov rbp, rsp
push r15
push r14
push rbx
push rax
mov rbx, rdi
mov r14, [rdi+20h]
mov r15d, [rdi+34h]
cmp dword ptr [rdi+30h], 0
jz short loc_A6423
loc_A640A:
mov rdi, rbx
call lf_pinbox_real_free
cmp dword ptr [rbx+30h], 0
jz short loc_A6423
call _sched_yield
cmp dword ptr [rbx+30h], 0
jnz short loc_A640A
loc_A6423:
mov eax, [r14+3Ch]
add r15d, 10000h
loc_A642E:
movzx ecx, ax
mov [rbx+34h], ecx
lea ecx, [r15+rax]
sub ecx, [rbx+34h]
lock cmpxchg [r14+3Ch], ecx
jnz short loc_A642E
add rsp, 8
pop rbx
pop r14
pop r15
pop rbp
retn
|
long long lf_pinbox_put_pins(long long a1)
{
long long v1; // r14
int v2; // r15d
long long result; // rax
int v4; // r15d
int v5; // ett
v1 = *(_QWORD *)(a1 + 32);
v2 = *(_DWORD *)(a1 + 52);
while ( *(_DWORD *)(a1 + 48) )
{
lf_pinbox_real_free(a1);
if ( !*(_DWORD *)(a1 + 48) )
break;
sched_yield(a1);
}
LODWORD(result) = *(_DWORD *)(v1 + 60);
v4 = v2 + 0x10000;
do
{
*(_DWORD *)(a1 + 52) = (unsigned __int16)result;
v5 = result;
result = (unsigned int)_InterlockedCompareExchange(
(volatile signed __int32 *)(v1 + 60),
v4 + result - *(_DWORD *)(a1 + 52),
result);
}
while ( v5 != (_DWORD)result );
return result;
}
|
lf_pinbox_put_pins:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH RBX
PUSH RAX
MOV RBX,RDI
MOV R14,qword ptr [RDI + 0x20]
MOV R15D,dword ptr [RDI + 0x34]
CMP dword ptr [RDI + 0x30],0x0
JZ 0x001a6423
LAB_001a640a:
MOV RDI,RBX
CALL 0x001a644e
CMP dword ptr [RBX + 0x30],0x0
JZ 0x001a6423
CALL 0x00129950
CMP dword ptr [RBX + 0x30],0x0
JNZ 0x001a640a
LAB_001a6423:
MOV EAX,dword ptr [R14 + 0x3c]
ADD R15D,0x10000
LAB_001a642e:
MOVZX ECX,AX
MOV dword ptr [RBX + 0x34],ECX
LEA ECX,[R15 + RAX*0x1]
SUB ECX,dword ptr [RBX + 0x34]
CMPXCHG.LOCK dword ptr [R14 + 0x3c],ECX
JNZ 0x001a642e
ADD RSP,0x8
POP RBX
POP R14
POP R15
POP RBP
RET
|
void lf_pinbox_put_pins(long param_1)
{
uint *puVar1;
uint uVar2;
int iVar3;
int iVar4;
long lVar5;
uint uVar6;
bool bVar7;
lVar5 = *(long *)(param_1 + 0x20);
iVar3 = *(int *)(param_1 + 0x34);
iVar4 = *(int *)(param_1 + 0x30);
while ((iVar4 != 0 && (lf_pinbox_real_free(param_1), *(int *)(param_1 + 0x30) != 0))) {
sched_yield();
iVar4 = *(int *)(param_1 + 0x30);
}
uVar6 = *(uint *)(lVar5 + 0x3c);
do {
*(uint *)(param_1 + 0x34) = uVar6 & 0xffff;
puVar1 = (uint *)(lVar5 + 0x3c);
LOCK();
uVar2 = *puVar1;
bVar7 = uVar6 == uVar2;
if (bVar7) {
*puVar1 = (iVar3 + 0x10000 + uVar6) - *(int *)(param_1 + 0x34);
uVar2 = uVar6;
}
uVar6 = uVar2;
UNLOCK();
} while (!bVar7);
return;
}
|
|
58,050
|
mbedtls_rsa_rsaes_oaep_decrypt
|
msxemulator/build_O3/_deps/pico_sdk-src/lib/mbedtls/library/rsa.c
|
int mbedtls_rsa_rsaes_oaep_decrypt(mbedtls_rsa_context *ctx,
int (*f_rng)(void *, unsigned char *, size_t),
void *p_rng,
int mode,
const unsigned char *label, size_t label_len,
size_t *olen,
const unsigned char *input,
unsigned char *output,
size_t output_max_len)
{
int ret = MBEDTLS_ERR_ERROR_CORRUPTION_DETECTED;
size_t ilen, i, pad_len;
unsigned char *p, pad_done;
int bad;
unsigned char buf[MBEDTLS_MPI_MAX_SIZE];
unsigned char lhash[MBEDTLS_MD_MAX_SIZE];
unsigned int hlen;
const mbedtls_md_info_t *md_info;
mbedtls_md_context_t md_ctx;
RSA_VALIDATE_RET(ctx != NULL);
RSA_VALIDATE_RET(mode == MBEDTLS_RSA_PRIVATE ||
mode == MBEDTLS_RSA_PUBLIC);
RSA_VALIDATE_RET(output_max_len == 0 || output != NULL);
RSA_VALIDATE_RET(label_len == 0 || label != NULL);
RSA_VALIDATE_RET(input != NULL);
RSA_VALIDATE_RET(olen != NULL);
/*
* Parameters sanity checks
*/
if (mode == MBEDTLS_RSA_PRIVATE && ctx->padding != MBEDTLS_RSA_PKCS_V21) {
return MBEDTLS_ERR_RSA_BAD_INPUT_DATA;
}
ilen = ctx->len;
if (ilen < 16 || ilen > sizeof(buf)) {
return MBEDTLS_ERR_RSA_BAD_INPUT_DATA;
}
md_info = mbedtls_md_info_from_type((mbedtls_md_type_t) ctx->hash_id);
if (md_info == NULL) {
return MBEDTLS_ERR_RSA_BAD_INPUT_DATA;
}
hlen = mbedtls_md_get_size(md_info);
// checking for integer underflow
if (2 * hlen + 2 > ilen) {
return MBEDTLS_ERR_RSA_BAD_INPUT_DATA;
}
/*
* RSA operation
*/
ret = (mode == MBEDTLS_RSA_PUBLIC)
? mbedtls_rsa_public(ctx, input, buf)
: mbedtls_rsa_private(ctx, f_rng, p_rng, input, buf);
if (ret != 0) {
goto cleanup;
}
/*
* Unmask data and generate lHash
*/
mbedtls_md_init(&md_ctx);
if ((ret = mbedtls_md_setup(&md_ctx, md_info, 0)) != 0) {
mbedtls_md_free(&md_ctx);
goto cleanup;
}
/* seed: Apply seedMask to maskedSeed */
if ((ret = mgf_mask(buf + 1, hlen, buf + hlen + 1, ilen - hlen - 1,
&md_ctx)) != 0 ||
/* DB: Apply dbMask to maskedDB */
(ret = mgf_mask(buf + hlen + 1, ilen - hlen - 1, buf + 1, hlen,
&md_ctx)) != 0) {
mbedtls_md_free(&md_ctx);
goto cleanup;
}
mbedtls_md_free(&md_ctx);
/* Generate lHash */
if ((ret = mbedtls_md(md_info, label, label_len, lhash)) != 0) {
goto cleanup;
}
/*
* Check contents, in "constant-time"
*/
p = buf;
bad = 0;
bad |= *p++; /* First byte must be 0 */
p += hlen; /* Skip seed */
/* Check lHash */
bad |= mbedtls_ct_memcmp(lhash, p, hlen);
p += hlen;
/* Get zero-padding len, but always read till end of buffer
* (minus one, for the 01 byte) */
pad_len = 0;
pad_done = 0;
for (i = 0; i < ilen - 2 * hlen - 2; i++) {
pad_done |= p[i];
pad_len += ((pad_done | (unsigned char) -pad_done) >> 7) ^ 1;
}
p += pad_len;
bad |= *p++ ^ 0x01;
/*
* The only information "leaked" is whether the padding was correct or not
* (eg, no data is copied if it was not correct). This meets the
* recommendations in PKCS#1 v2.2: an opponent cannot distinguish between
* the different error conditions.
*/
if (bad != 0) {
ret = MBEDTLS_ERR_RSA_INVALID_PADDING;
goto cleanup;
}
if (ilen - (p - buf) > output_max_len) {
ret = MBEDTLS_ERR_RSA_OUTPUT_TOO_LARGE;
goto cleanup;
}
*olen = ilen - (p - buf);
if (*olen != 0) {
memcpy(output, p, *olen);
}
ret = 0;
cleanup:
mbedtls_platform_zeroize(buf, sizeof(buf));
mbedtls_platform_zeroize(lhash, sizeof(lhash));
return ret;
}
|
O3
|
c
|
mbedtls_rsa_rsaes_oaep_decrypt:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x488, %rsp # imm = 0x488
movl %ecx, %r14d
movq %rdx, %r15
movq %rsi, %rbx
movq %rdi, %r12
cmpl $0x1, %ecx
jne 0x910d0
movl $0xffffbf80, %ebp # imm = 0xFFFFBF80
cmpl $0x1, 0x148(%r12)
jne 0x9121b
movq 0x8(%r12), %rcx
leaq -0x401(%rcx), %rax
movl $0xffffbf80, %ebp # imm = 0xFFFFBF80
cmpq $-0x3f1, %rax # imm = 0xFC0F
jb 0x9121b
movq %r8, 0x18(%rsp)
movq %r9, 0x20(%rsp)
movq %rcx, 0x8(%rsp)
movl 0x14c(%r12), %edi
callq 0x8a34c
testq %rax, %rax
je 0x9121b
movq %rax, %r13
movq %rax, %rdi
callq 0x8abb4
movzbl %al, %ecx
leal 0x2(,%rcx,2), %eax
cmpq %rax, 0x8(%rsp)
jb 0x9121b
movq %rcx, 0x10(%rsp)
movq 0x4c8(%rsp), %rcx
testl %r14d, %r14d
je 0x9115c
leaq 0x80(%rsp), %r8
movq %r12, %rdi
movq %rbx, %rsi
movq %r15, %rdx
callq 0x9042c
jmp 0x9116f
leaq 0x80(%rsp), %rdx
movq %r12, %rdi
movq %rcx, %rsi
callq 0x9035f
movl %eax, %ebp
testl %eax, %eax
jne 0x911fa
leaq 0x28(%rsp), %rbx
movq %rbx, %rdi
callq 0x8a365
movq %rbx, %rdi
movq %r13, %rsi
xorl %edx, %edx
callq 0x8a4a1
testl %eax, %eax
jne 0x911ee
leaq 0x81(%rsp), %r15
movq 0x10(%rsp), %r12
leaq (%rsp,%r12), %rbx
addq $0x81, %rbx
movq %r12, %r14
notq %r14
addq 0x8(%rsp), %r14
leaq 0x28(%rsp), %r8
movq %r15, %rdi
movq %r12, %rsi
movq %rbx, %rdx
movq %r14, %rcx
callq 0x90dbc
testl %eax, %eax
jne 0x911ee
leaq 0x28(%rsp), %r8
movq %rbx, %rdi
movq %r14, %rsi
movq %r15, %rdx
movq %r12, %rcx
callq 0x90dbc
testl %eax, %eax
je 0x9122f
movl %eax, %ebp
leaq 0x28(%rsp), %rdi
callq 0x8a374
leaq 0x80(%rsp), %rdi
movl $0x400, %esi # imm = 0x400
callq 0x8db8c
leaq 0x40(%rsp), %rdi
movl $0x40, %esi
callq 0x8db8c
movl %ebp, %eax
addq $0x488, %rsp # imm = 0x488
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x28(%rsp), %rdi
callq 0x8a374
leaq 0x40(%rsp), %rcx
movq %r13, %rdi
movq 0x18(%rsp), %rsi
movq 0x20(%rsp), %rdx
callq 0x8a711
movl %eax, %ebp
testl %eax, %eax
jne 0x911fa
movq 0x10(%rsp), %r14
movl %r14d, %ebx
addl %r14d, %ebx
movzbl 0x80(%rsp), %ebp
addq %r14, %r15
leaq 0x40(%rsp), %rdi
movq %r15, %rsi
movq %r14, %rdx
callq 0x8240c
orl %ebp, %eax
addq %r14, %r15
movl %ebx, %ecx
movq 0x8(%rsp), %rdx
addq $-0x2, %rdx
xorl %esi, %esi
subq %rcx, %rdx
jne 0x91297
xorl %ecx, %ecx
jmp 0x912cb
cmpq $0x1, %rdx
adcq $0x0, %rdx
xorl %ecx, %ecx
xorl %edi, %edi
movzbl (%r15,%rdi), %r8d
orl %r8d, %esi
movl %esi, %r8d
negl %r8d
movzbl %r8b, %r8d
orl %esi, %r8d
shrl $0x7, %r8d
xorl $0x1, %r8d
addq %r8, %rcx
incq %rdi
cmpq %rdi, %rdx
jne 0x912a3
movzbl (%r15,%rcx), %edx
xorl $0x1, %edx
movl $0xffffbf00, %ebp # imm = 0xFFFFBF00
orl %edx, %eax
jne 0x911fa
leaq (%r15,%rcx), %rsi
incq %rsi
leaq 0x80(%rsp), %rdx
subq %rsi, %rdx
addq 0x8(%rsp), %rdx
movl $0xffffbc00, %ebp # imm = 0xFFFFBC00
cmpq 0x4d8(%rsp), %rdx
ja 0x911fa
movq 0x4c0(%rsp), %rax
movq %rdx, (%rax)
xorl %ebp, %ebp
testq %rdx, %rdx
je 0x911fa
movq 0x4d0(%rsp), %rdi
callq 0xf3a0
jmp 0x911fa
|
mbedtls_rsa_rsaes_oaep_decrypt:
push rbp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 488h
mov r14d, ecx
mov r15, rdx
mov rbx, rsi
mov r12, rdi
cmp ecx, 1
jnz short loc_910D0
mov ebp, 0FFFFBF80h
cmp dword ptr [r12+148h], 1
jnz loc_9121B
loc_910D0:
mov rcx, [r12+8]
lea rax, [rcx-401h]
mov ebp, 0FFFFBF80h
cmp rax, 0FFFFFFFFFFFFFC0Fh
jb loc_9121B
mov [rsp+4B8h+var_4A0], r8
mov [rsp+4B8h+var_498], r9
mov [rsp+4B8h+var_4B0], rcx
mov edi, [r12+14Ch]
call mbedtls_md_info_from_type
test rax, rax
jz loc_9121B
mov r13, rax
mov rdi, rax
call mbedtls_md_get_size
movzx ecx, al
lea eax, ds:2[rcx*2]
cmp [rsp+4B8h+var_4B0], rax
jb loc_9121B
mov [rsp+4B8h+var_4A8], rcx
mov rcx, [rsp+4B8h+arg_8]
test r14d, r14d
jz short loc_9115C
lea r8, [rsp+4B8h+var_438]
mov rdi, r12
mov rsi, rbx
mov rdx, r15
call mbedtls_rsa_private
jmp short loc_9116F
loc_9115C:
lea rdx, [rsp+4B8h+var_438]
mov rdi, r12
mov rsi, rcx
call mbedtls_rsa_public
loc_9116F:
mov ebp, eax
test eax, eax
jnz loc_911FA
lea rbx, [rsp+4B8h+var_490]
mov rdi, rbx
call mbedtls_md_init
mov rdi, rbx
mov rsi, r13
xor edx, edx
call mbedtls_md_setup
test eax, eax
jnz short loc_911EE
lea r15, [rsp+4B8h+var_437]
mov r12, [rsp+4B8h+var_4A8]
lea rbx, [rsp+r12+4B8h+var_4B8]
add rbx, 81h
mov r14, r12
not r14
add r14, [rsp+4B8h+var_4B0]
lea r8, [rsp+4B8h+var_490]
mov rdi, r15
mov rsi, r12
mov rdx, rbx
mov rcx, r14
call mgf_mask
test eax, eax
jnz short loc_911EE
lea r8, [rsp+4B8h+var_490]
mov rdi, rbx
mov rsi, r14
mov rdx, r15
mov rcx, r12
call mgf_mask
test eax, eax
jz short loc_9122F
loc_911EE:
mov ebp, eax
lea rdi, [rsp+4B8h+var_490]
call mbedtls_md_free
loc_911FA:
lea rdi, [rsp+4B8h+var_438]
mov esi, 400h
call mbedtls_platform_zeroize
lea rdi, [rsp+4B8h+var_478]
mov esi, 40h ; '@'
call mbedtls_platform_zeroize
loc_9121B:
mov eax, ebp
add rsp, 488h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
loc_9122F:
lea rdi, [rsp+4B8h+var_490]
call mbedtls_md_free
lea rcx, [rsp+4B8h+var_478]
mov rdi, r13
mov rsi, [rsp+4B8h+var_4A0]
mov rdx, [rsp+4B8h+var_498]
call mbedtls_md
mov ebp, eax
test eax, eax
jnz short loc_911FA
mov r14, [rsp+4B8h+var_4A8]
mov ebx, r14d
add ebx, r14d
movzx ebp, [rsp+4B8h+var_438]
add r15, r14
lea rdi, [rsp+4B8h+var_478]
mov rsi, r15
mov rdx, r14
call mbedtls_ct_memcmp
or eax, ebp
add r15, r14
mov ecx, ebx
mov rdx, [rsp+4B8h+var_4B0]
add rdx, 0FFFFFFFFFFFFFFFEh
xor esi, esi
sub rdx, rcx
jnz short loc_91297
xor ecx, ecx
jmp short loc_912CB
loc_91297:
cmp rdx, 1
adc rdx, 0
xor ecx, ecx
xor edi, edi
loc_912A3:
movzx r8d, byte ptr [r15+rdi]
or esi, r8d
mov r8d, esi
neg r8d
movzx r8d, r8b
or r8d, esi
shr r8d, 7
xor r8d, 1
add rcx, r8
inc rdi
cmp rdx, rdi
jnz short loc_912A3
loc_912CB:
movzx edx, byte ptr [r15+rcx]
xor edx, 1
mov ebp, 0FFFFBF00h
or eax, edx
jnz loc_911FA
lea rsi, [r15+rcx]
inc rsi
lea rdx, [rsp+4B8h+var_438]
sub rdx, rsi
add rdx, [rsp+4B8h+var_4B0]
mov ebp, 0FFFFBC00h
cmp rdx, [rsp+4B8h+arg_18]
ja loc_911FA
mov rax, [rsp+4B8h+arg_0]
mov [rax], rdx
xor ebp, ebp
test rdx, rdx
jz loc_911FA
mov rdi, [rsp+4B8h+arg_10]
call _memcpy
jmp loc_911FA
|
long long mbedtls_rsa_rsaes_oaep_decrypt(
long long a1,
long long a2,
long long a3,
int a4,
long long a5,
long long a6,
_QWORD *a7,
long long a8,
long long a9,
unsigned long long a10)
{
unsigned int v12; // ebp
_UNKNOWN **v13; // rax
long long v14; // r13
unsigned long long size; // rcx
unsigned int v16; // eax
unsigned int v17; // eax
int v19; // ebp
int v20; // eax
_BYTE *v21; // r15
int v22; // esi
long long v23; // rcx
long long v24; // rdi
long long v25; // rsi
_BYTE *v26; // rdx
unsigned long long v27; // [rsp+8h] [rbp-4B0h]
unsigned long long v28; // [rsp+10h] [rbp-4A8h]
long long v31[3]; // [rsp+28h] [rbp-490h] BYREF
_BYTE v32[64]; // [rsp+40h] [rbp-478h] BYREF
unsigned __int8 v33; // [rsp+80h] [rbp-438h] BYREF
_BYTE v34[1079]; // [rsp+81h] [rbp-437h] BYREF
if ( a4 != 1 || (v12 = -16512, *(_DWORD *)(a1 + 328) == 1) )
{
v12 = -16512;
if ( (unsigned long long)(*(_QWORD *)(a1 + 8) - 1025LL) >= 0xFFFFFFFFFFFFFC0FLL )
{
v27 = *(_QWORD *)(a1 + 8);
v13 = mbedtls_md_info_from_type(*(_DWORD *)(a1 + 332));
if ( v13 )
{
v14 = (long long)v13;
size = (unsigned __int8)mbedtls_md_get_size((long long)v13);
if ( v27 >= (unsigned int)(2 * size + 2) )
{
v28 = size;
if ( a4 )
v16 = mbedtls_rsa_private(a1, a2, a3, a8, (unsigned long long)&v33);
else
v16 = mbedtls_rsa_public(a1, a8, (unsigned long long)&v33);
v12 = v16;
if ( !v16 )
{
mbedtls_md_init((long long)v31);
v17 = mbedtls_md_setup(v31, v14, 0);
if ( v17
|| (v17 = mgf_mask((long long)v34, v28, (long long)&v34[v28], v27 + ~v28, v31)) != 0
|| (v17 = mgf_mask((long long)&v34[v28], v27 + ~v28, (long long)v34, v28, v31)) != 0 )
{
v12 = v17;
mbedtls_md_free(v31);
}
else
{
mbedtls_md_free(v31);
v12 = mbedtls_md(v14, a5, a6, (long long)v32);
if ( !v12 )
{
v19 = v33;
v20 = v19 | mbedtls_ct_memcmp((long long)v32, (long long)&v34[v28], v28);
v21 = &v34[v28 + v28];
v22 = 0;
if ( v27 - 2 == 2 * (_DWORD)v28 )
{
v23 = 0LL;
}
else
{
v23 = 0LL;
v24 = 0LL;
do
{
v22 |= (unsigned __int8)v21[v24];
v23 += ((v22 | (unsigned int)(unsigned __int8)-(char)v22) >> 7) ^ 1;
++v24;
}
while ( (v27 - 2 == 2 * (_DWORD)v28) + v27 - 2 - (unsigned int)(2 * v28) != v24 );
}
v12 = -16640;
if ( !((unsigned __int8)v21[v23] ^ 1 | v20) )
{
v25 = (long long)&v21[v23 + 1];
v26 = &v34[v27 - 1 - v25];
v12 = -17408;
if ( (unsigned long long)v26 <= a10 )
{
*a7 = v26;
v12 = 0;
if ( v26 )
memcpy(a9, v25, v26);
}
}
}
}
}
mbedtls_platform_zeroize((long long)&v33, 1024LL);
mbedtls_platform_zeroize((long long)v32, 64LL);
}
}
}
}
return v12;
}
|
mbedtls_rsa_rsaes_oaep_decrypt:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x488
MOV R14D,ECX
MOV R15,RDX
MOV RBX,RSI
MOV R12,RDI
CMP ECX,0x1
JNZ 0x001910d0
MOV EBP,0xffffbf80
CMP dword ptr [R12 + 0x148],0x1
JNZ 0x0019121b
LAB_001910d0:
MOV RCX,qword ptr [R12 + 0x8]
LEA RAX,[RCX + -0x401]
MOV EBP,0xffffbf80
CMP RAX,-0x3f1
JC 0x0019121b
MOV qword ptr [RSP + 0x18],R8
MOV qword ptr [RSP + 0x20],R9
MOV qword ptr [RSP + 0x8],RCX
MOV EDI,dword ptr [R12 + 0x14c]
CALL 0x0018a34c
TEST RAX,RAX
JZ 0x0019121b
MOV R13,RAX
MOV RDI,RAX
CALL 0x0018abb4
MOVZX ECX,AL
LEA EAX,[0x2 + RCX*0x2]
CMP qword ptr [RSP + 0x8],RAX
JC 0x0019121b
MOV qword ptr [RSP + 0x10],RCX
MOV RCX,qword ptr [RSP + 0x4c8]
TEST R14D,R14D
JZ 0x0019115c
LEA R8,[RSP + 0x80]
MOV RDI,R12
MOV RSI,RBX
MOV RDX,R15
CALL 0x0019042c
JMP 0x0019116f
LAB_0019115c:
LEA RDX,[RSP + 0x80]
MOV RDI,R12
MOV RSI,RCX
CALL 0x0019035f
LAB_0019116f:
MOV EBP,EAX
TEST EAX,EAX
JNZ 0x001911fa
LEA RBX,[RSP + 0x28]
MOV RDI,RBX
CALL 0x0018a365
MOV RDI,RBX
MOV RSI,R13
XOR EDX,EDX
CALL 0x0018a4a1
TEST EAX,EAX
JNZ 0x001911ee
LEA R15,[RSP + 0x81]
MOV R12,qword ptr [RSP + 0x10]
LEA RBX,[RSP + R12*0x1]
ADD RBX,0x81
MOV R14,R12
NOT R14
ADD R14,qword ptr [RSP + 0x8]
LEA R8,[RSP + 0x28]
MOV RDI,R15
MOV RSI,R12
MOV RDX,RBX
MOV RCX,R14
CALL 0x00190dbc
TEST EAX,EAX
JNZ 0x001911ee
LEA R8,[RSP + 0x28]
MOV RDI,RBX
MOV RSI,R14
MOV RDX,R15
MOV RCX,R12
CALL 0x00190dbc
TEST EAX,EAX
JZ 0x0019122f
LAB_001911ee:
MOV EBP,EAX
LEA RDI,[RSP + 0x28]
CALL 0x0018a374
LAB_001911fa:
LEA RDI,[RSP + 0x80]
MOV ESI,0x400
CALL 0x0018db8c
LEA RDI,[RSP + 0x40]
MOV ESI,0x40
CALL 0x0018db8c
LAB_0019121b:
MOV EAX,EBP
ADD RSP,0x488
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
LAB_0019122f:
LEA RDI,[RSP + 0x28]
CALL 0x0018a374
LEA RCX,[RSP + 0x40]
MOV RDI,R13
MOV RSI,qword ptr [RSP + 0x18]
MOV RDX,qword ptr [RSP + 0x20]
CALL 0x0018a711
MOV EBP,EAX
TEST EAX,EAX
JNZ 0x001911fa
MOV R14,qword ptr [RSP + 0x10]
MOV EBX,R14D
ADD EBX,R14D
MOVZX EBP,byte ptr [RSP + 0x80]
ADD R15,R14
LEA RDI,[RSP + 0x40]
MOV RSI,R15
MOV RDX,R14
CALL 0x0018240c
OR EAX,EBP
ADD R15,R14
MOV ECX,EBX
MOV RDX,qword ptr [RSP + 0x8]
ADD RDX,-0x2
XOR ESI,ESI
SUB RDX,RCX
JNZ 0x00191297
XOR ECX,ECX
JMP 0x001912cb
LAB_00191297:
CMP RDX,0x1
ADC RDX,0x0
XOR ECX,ECX
XOR EDI,EDI
LAB_001912a3:
MOVZX R8D,byte ptr [R15 + RDI*0x1]
OR ESI,R8D
MOV R8D,ESI
NEG R8D
MOVZX R8D,R8B
OR R8D,ESI
SHR R8D,0x7
XOR R8D,0x1
ADD RCX,R8
INC RDI
CMP RDX,RDI
JNZ 0x001912a3
LAB_001912cb:
MOVZX EDX,byte ptr [R15 + RCX*0x1]
XOR EDX,0x1
MOV EBP,0xffffbf00
OR EAX,EDX
JNZ 0x001911fa
LEA RSI,[R15 + RCX*0x1]
INC RSI
LEA RDX,[RSP + 0x80]
SUB RDX,RSI
ADD RDX,qword ptr [RSP + 0x8]
MOV EBP,0xffffbc00
CMP RDX,qword ptr [RSP + 0x4d8]
JA 0x001911fa
MOV RAX,qword ptr [RSP + 0x4c0]
MOV qword ptr [RAX],RDX
XOR EBP,EBP
TEST RDX,RDX
JZ 0x001911fa
MOV RDI,qword ptr [RSP + 0x4d0]
CALL 0x0010f3a0
JMP 0x001911fa
|
int mbedtls_rsa_rsaes_oaep_decrypt
(long param_1,int8 param_2,int8 param_3,int param_4,int8 param_5,
int8 param_6,size_t *param_7,int8 param_8,void *param_9,char *param_10)
{
ulong uVar1;
byte bVar2;
int iVar3;
int iVar4;
long lVar5;
ulong uVar6;
long lVar7;
char *__n;
uint uVar8;
long lVar9;
char *pcVar10;
int1 local_490 [24];
int1 local_478 [64];
char local_438 [1032];
if ((param_4 == 1) && (*(int *)(param_1 + 0x148) != 1)) {
return -0x4080;
}
uVar1 = *(ulong *)(param_1 + 8);
if (uVar1 - 0x401 < 0xfffffffffffffc0f) {
return -0x4080;
}
lVar5 = mbedtls_md_info_from_type(*(int4 *)(param_1 + 0x14c));
if (lVar5 == 0) {
return -0x4080;
}
bVar2 = mbedtls_md_get_size(lVar5);
uVar6 = (ulong)bVar2;
if (uVar1 < (uint)bVar2 * 2 + 2) {
return -0x4080;
}
if (param_4 == 0) {
iVar3 = mbedtls_rsa_public(param_1,param_8,local_438);
}
else {
iVar3 = mbedtls_rsa_private(param_1,param_2,param_3,param_8,local_438);
}
if (iVar3 == 0) {
mbedtls_md_init(local_490);
iVar3 = mbedtls_md_setup(local_490,lVar5,0);
if (iVar3 == 0) {
pcVar10 = local_438 + 1;
iVar3 = mgf_mask(pcVar10,uVar6,local_438 + uVar6 + 1,~uVar6 + uVar1,local_490);
if ((iVar3 == 0) &&
(iVar3 = mgf_mask(local_438 + uVar6 + 1,~uVar6 + uVar1,pcVar10,uVar6,local_490), iVar3 == 0
)) {
mbedtls_md_free(local_490);
iVar3 = mbedtls_md(lVar5,param_5,param_6,local_478);
if (iVar3 == 0) {
pcVar10 = pcVar10 + uVar6;
iVar4 = mbedtls_ct_memcmp(local_478,pcVar10,uVar6);
uVar8 = 0;
lVar5 = (uVar1 - 2) - (ulong)((uint)bVar2 * 2);
if (lVar5 == 0) {
lVar7 = 0;
}
else {
lVar7 = 0;
lVar9 = 0;
do {
uVar8 = uVar8 | (byte)pcVar10[lVar9 + uVar6];
lVar7 = lVar7 + (ulong)((-uVar8 & 0xff | uVar8) >> 7 ^ 1);
lVar9 = lVar9 + 1;
} while (lVar5 + (ulong)(lVar5 == 0) != lVar9);
}
iVar3 = -0x4100;
if ((iVar4 == 0 && local_438[0] == '\0') && pcVar10[lVar7 + uVar6] == '\x01') {
__n = local_438 + (uVar1 - (long)(pcVar10 + lVar7 + uVar6 + 1));
iVar3 = -0x4400;
if (__n <= param_10) {
*param_7 = (size_t)__n;
iVar3 = 0;
if (__n != (char *)0x0) {
memcpy(param_9,pcVar10 + lVar7 + uVar6 + 1,(size_t)__n);
iVar3 = 0;
}
}
}
}
goto LAB_001911fa;
}
}
mbedtls_md_free(local_490);
}
LAB_001911fa:
mbedtls_platform_zeroize(local_438,0x400);
mbedtls_platform_zeroize(local_478,0x40);
return iVar3;
}
|
|
58,051
|
req_header
|
corpus-core[P]colibri-stateless/src/chains/eth/verifier/sync_committee_state.c
|
static bool req_header(c4_state_t* state, json_t slot, chain_id_t chain_id, json_t* data) {
buffer_t tmp = {0};
if (slot.type == JSON_TYPE_STRING)
bprintf(&tmp, "eth/v1/beacon/headers/%j", slot);
else
bprintf(&tmp, "eth/v1/beacon/headers/head");
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) {
json_t res = json_parse((char*) req->response.data);
if (res.type == JSON_TYPE_OBJECT) res = json_get(res, "data");
if (res.type == JSON_TYPE_OBJECT) res = json_get(res, "header");
if (res.type == JSON_TYPE_OBJECT) res = json_get(res, "message");
if (res.type == JSON_TYPE_OBJECT) {
*data = res;
return true;
}
else {
state->error = strdup("Invalid response for header");
return false;
}
}
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_JSON;
new_req->type = C4_DATA_TYPE_BEACON_API;
c4_state_add_request(state, new_req);
return false;
}
|
O0
|
c
|
req_header:
pushq %rbp
movq %rsp, %rbp
subq $0xd0, %rsp
leaq 0x10(%rbp), %rax
movq %rax, -0xb0(%rbp)
movq %rdi, -0x10(%rbp)
movl %esi, -0x14(%rbp)
movq %rdx, -0x20(%rbp)
leaq -0x38(%rbp), %rdi
xorl %esi, %esi
movl $0x18, %edx
callq 0x23140
movq -0xb0(%rbp), %rax
cmpl $0x1, 0x10(%rax)
jne 0x2e542
movq -0xb0(%rbp), %rax
leaq -0x38(%rbp), %rdi
leaq 0xad167(%rip), %rsi # 0xdb687
movq (%rax), %rcx
movq %rcx, (%rsp)
movq 0x8(%rax), %rcx
movq %rcx, 0x8(%rsp)
movq 0x10(%rax), %rax
movq %rax, 0x10(%rsp)
movb $0x0, %al
callq 0x9d5a0
jmp 0x2e554
leaq -0x38(%rbp), %rdi
leaq 0xad153(%rip), %rsi # 0xdb6a0
movb $0x0, %al
callq 0x9d5a0
movq -0x10(%rbp), %rdi
movq -0x30(%rbp), %rsi
callq 0xa61c0
movq %rax, -0x40(%rbp)
cmpq $0x0, -0x40(%rbp)
je 0x2e575
leaq -0x38(%rbp), %rdi
callq 0x9cbf0
cmpq $0x0, -0x40(%rbp)
je 0x2e6dd
movq -0x40(%rbp), %rax
cmpq $0x0, 0x38(%rax)
je 0x2e6dd
movq -0x40(%rbp), %rax
movq 0x38(%rax), %rsi
leaq -0x58(%rbp), %rdi
callq 0xa3b90
cmpl $0x3, -0x48(%rbp)
jne 0x2e5eb
leaq -0x70(%rbp), %rdi
leaq -0x58(%rbp), %rax
leaq 0xabc22(%rip), %rsi # 0xda1d7
movq (%rax), %rcx
movq %rcx, (%rsp)
movq 0x8(%rax), %rcx
movq %rcx, 0x8(%rsp)
movq 0x10(%rax), %rax
movq %rax, 0x10(%rsp)
callq 0xa4360
movq -0x70(%rbp), %rax
movq %rax, -0x58(%rbp)
movq -0x68(%rbp), %rax
movq %rax, -0x50(%rbp)
movq -0x60(%rbp), %rax
movq %rax, -0x48(%rbp)
cmpl $0x3, -0x48(%rbp)
jne 0x2e63c
leaq -0x88(%rbp), %rdi
leaq -0x58(%rbp), %rax
leaq 0xad0cd(%rip), %rsi # 0xdb6d0
movq (%rax), %rcx
movq %rcx, (%rsp)
movq 0x8(%rax), %rcx
movq %rcx, 0x8(%rsp)
movq 0x10(%rax), %rax
movq %rax, 0x10(%rsp)
callq 0xa4360
movq -0x88(%rbp), %rax
movq %rax, -0x58(%rbp)
movq -0x80(%rbp), %rax
movq %rax, -0x50(%rbp)
movq -0x78(%rbp), %rax
movq %rax, -0x48(%rbp)
cmpl $0x3, -0x48(%rbp)
jne 0x2e693
leaq -0xa0(%rbp), %rdi
leaq -0x58(%rbp), %rax
leaq 0xac4d2(%rip), %rsi # 0xdab26
movq (%rax), %rcx
movq %rcx, (%rsp)
movq 0x8(%rax), %rcx
movq %rcx, 0x8(%rsp)
movq 0x10(%rax), %rax
movq %rax, 0x10(%rsp)
callq 0xa4360
movq -0xa0(%rbp), %rax
movq %rax, -0x58(%rbp)
movq -0x98(%rbp), %rax
movq %rax, -0x50(%rbp)
movq -0x90(%rbp), %rax
movq %rax, -0x48(%rbp)
cmpl $0x3, -0x48(%rbp)
jne 0x2e6bd
movq -0x20(%rbp), %rax
movq -0x58(%rbp), %rcx
movq %rcx, (%rax)
movq -0x50(%rbp), %rcx
movq %rcx, 0x8(%rax)
movq -0x48(%rbp), %rcx
movq %rcx, 0x10(%rax)
movb $0x1, -0x1(%rbp)
jmp 0x2e770
leaq 0xacff7(%rip), %rdi # 0xdb6bb
callq 0x23450
movq %rax, %rcx
movq -0x10(%rbp), %rax
movq %rcx, 0x8(%rax)
movb $0x0, -0x1(%rbp)
jmp 0x2e770
cmpq $0x0, -0x40(%rbp)
je 0x2e70d
movq -0x40(%rbp), %rax
cmpq $0x0, 0x48(%rax)
je 0x2e70d
movq -0x40(%rbp), %rax
movq 0x48(%rax), %rdi
callq 0x23450
movq %rax, %rcx
movq -0x10(%rbp), %rax
movq %rcx, 0x8(%rax)
movb $0x0, -0x1(%rbp)
jmp 0x2e770
jmp 0x2e70f
movl $0x1, %edi
movl $0x80, %esi
callq 0x9c480
movq %rax, -0xa8(%rbp)
movl -0x14(%rbp), %ecx
movq -0xa8(%rbp), %rax
movl %ecx, (%rax)
movq -0x30(%rbp), %rcx
movq -0xa8(%rbp), %rax
movq %rcx, 0x10(%rax)
movq -0xa8(%rbp), %rax
movl $0x0, 0x8(%rax)
movq -0xa8(%rbp), %rax
movl $0x0, 0x4(%rax)
movq -0x10(%rbp), %rdi
movq -0xa8(%rbp), %rsi
callq 0xa6260
movb $0x0, -0x1(%rbp)
movb -0x1(%rbp), %al
andb $0x1, %al
addq $0xd0, %rsp
popq %rbp
retq
nop
|
req_header:
push rbp
mov rbp, rsp
sub rsp, 0D0h
lea rax, [rbp+arg_0]
mov [rbp+var_B0], rax
mov [rbp+var_10], rdi
mov [rbp+var_14], esi
mov [rbp+var_20], rdx
lea rdi, [rbp+var_38]
xor esi, esi
mov edx, 18h
call _memset
mov rax, [rbp+var_B0]
cmp dword ptr [rax+10h], 1
jnz short loc_2E542
mov rax, [rbp+var_B0]
lea rdi, [rbp+var_38]
lea rsi, aEthV1BeaconHea; "eth/v1/beacon/headers/%j"
mov rcx, [rax]
mov [rsp+0D0h+var_D0], rcx
mov rcx, [rax+8]
mov [rsp+0D0h+var_C8], rcx
mov rax, [rax+10h]
mov [rsp+0D0h+var_C0], rax
mov al, 0
call bprintf
jmp short loc_2E554
loc_2E542:
lea rdi, [rbp+var_38]
lea rsi, aEthV1BeaconHea_0; "eth/v1/beacon/headers/head"
mov al, 0
call bprintf
loc_2E554:
mov rdi, [rbp+var_10]
mov rsi, [rbp+var_30]
call c4_state_get_data_request_by_url
mov [rbp+var_40], rax
cmp [rbp+var_40], 0
jz short loc_2E575
lea rdi, [rbp+var_38]
call buffer_free
loc_2E575:
cmp [rbp+var_40], 0
jz loc_2E6DD
mov rax, [rbp+var_40]
cmp qword ptr [rax+38h], 0
jz loc_2E6DD
mov rax, [rbp+var_40]
mov rsi, [rax+38h]
lea rdi, [rbp+var_58]
call json_parse
cmp dword ptr [rbp+var_48], 3
jnz short loc_2E5EB
lea rdi, [rbp+var_70]
lea rax, [rbp+var_58]
lea rsi, aSyncData+5; "data"
mov rcx, [rax]
mov [rsp+0D0h+var_D0], rcx
mov rcx, [rax+8]
mov [rsp+0D0h+var_C8], rcx
mov rax, [rax+10h]
mov [rsp+0D0h+var_C0], rax
call json_get
mov rax, [rbp+var_70]
mov [rbp+var_58], rax
mov rax, [rbp+var_68]
mov [rbp+var_50], rax
mov rax, [rbp+var_60]
mov [rbp+var_48], rax
loc_2E5EB:
cmp dword ptr [rbp+var_48], 3
jnz short loc_2E63C
lea rdi, [rbp+var_88]
lea rax, [rbp+var_58]
lea rsi, aInvalidRespons+15h; "header"
mov rcx, [rax]
mov [rsp+0D0h+var_D0], rcx
mov rcx, [rax+8]
mov [rsp+0D0h+var_C8], rcx
mov rax, [rax+10h]
mov [rsp+0D0h+var_C0], rax
call json_get
mov rax, [rbp+var_88]
mov [rbp+var_58], rax
mov rax, [rbp+var_80]
mov [rbp+var_50], rax
mov rax, [rbp+var_78]
mov [rbp+var_48], rax
loc_2E63C:
cmp dword ptr [rbp+var_48], 3
jnz short loc_2E693
lea rdi, [rbp+var_A0]
lea rax, [rbp+var_58]
lea rsi, aMessage; "message"
mov rcx, [rax]
mov [rsp+0D0h+var_D0], rcx
mov rcx, [rax+8]
mov [rsp+0D0h+var_C8], rcx
mov rax, [rax+10h]
mov [rsp+0D0h+var_C0], rax
call json_get
mov rax, [rbp+var_A0]
mov [rbp+var_58], rax
mov rax, [rbp+var_98]
mov [rbp+var_50], rax
mov rax, [rbp+var_90]
mov [rbp+var_48], rax
loc_2E693:
cmp dword ptr [rbp+var_48], 3
jnz short loc_2E6BD
mov rax, [rbp+var_20]
mov rcx, [rbp+var_58]
mov [rax], rcx
mov rcx, [rbp+var_50]
mov [rax+8], rcx
mov rcx, [rbp+var_48]
mov [rax+10h], rcx
mov [rbp+var_1], 1
jmp loc_2E770
loc_2E6BD:
lea rdi, aInvalidRespons; "Invalid response for header"
call _strdup
mov rcx, rax
mov rax, [rbp+var_10]
mov [rax+8], rcx
mov [rbp+var_1], 0
jmp loc_2E770
loc_2E6DD:
cmp [rbp+var_40], 0
jz short loc_2E70D
mov rax, [rbp+var_40]
cmp qword ptr [rax+48h], 0
jz short loc_2E70D
mov rax, [rbp+var_40]
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_2E770
loc_2E70D:
jmp short $+2
loc_2E70F:
mov edi, 1
mov esi, 80h
call safe_calloc
mov [rbp+var_A8], rax
mov ecx, [rbp+var_14]
mov rax, [rbp+var_A8]
mov [rax], ecx
mov rcx, [rbp+var_30]
mov rax, [rbp+var_A8]
mov [rax+10h], rcx
mov rax, [rbp+var_A8]
mov dword ptr [rax+8], 0
mov rax, [rbp+var_A8]
mov dword ptr [rax+4], 0
mov rdi, [rbp+var_10]
mov rsi, [rbp+var_A8]
call c4_state_add_request
mov [rbp+var_1], 0
loc_2E770:
mov al, [rbp+var_1]
and al, 1
add rsp, 0D0h
pop rbp
retn
|
char req_header(
long long a1,
int a2,
long long *a3,
_DWORD a4,
_DWORD a5,
_DWORD a6,
long long a7,
int a8,
int a9)
{
int v9; // edx
int v10; // ecx
int v11; // r8d
int v12; // r9d
int v13; // edx
int v14; // r8d
int v15; // r9d
long long *v16; // rax
long long v17; // rcx
long long v18; // rcx
long long v20; // [rsp+28h] [rbp-A8h]
_QWORD v21[3]; // [rsp+30h] [rbp-A0h] BYREF
_QWORD v22[3]; // [rsp+48h] [rbp-88h] BYREF
_QWORD v23[3]; // [rsp+60h] [rbp-70h] BYREF
long long v24; // [rsp+78h] [rbp-58h] BYREF
long long v25; // [rsp+80h] [rbp-50h]
long long v26; // [rsp+88h] [rbp-48h]
long long data_request_by_url; // [rsp+90h] [rbp-40h]
_BYTE v28[8]; // [rsp+98h] [rbp-38h] BYREF
long long v29; // [rsp+A0h] [rbp-30h]
long long *v30; // [rsp+B0h] [rbp-20h]
int v31; // [rsp+BCh] [rbp-14h]
long long v32; // [rsp+C0h] [rbp-10h]
v32 = a1;
v31 = a2;
v30 = a3;
memset(v28, 0LL, 24LL);
if ( a9 == 1 )
bprintf((unsigned int)v28, (unsigned int)"eth/v1/beacon/headers/%j", v9, a8, v11, v12);
else
bprintf((unsigned int)v28, (unsigned int)"eth/v1/beacon/headers/head", v9, v10, v11, v12);
data_request_by_url = c4_state_get_data_request_by_url(v32, v29);
if ( data_request_by_url && (buffer_free(v28), *(_QWORD *)(data_request_by_url + 56)) )
{
json_parse(&v24, *(_QWORD *)(data_request_by_url + 56));
if ( (_DWORD)v26 == 3 )
{
json_get((unsigned int)v23, (unsigned int)"data", v13, v25, v14, v15, v24, v25, v26);
v24 = v23[0];
v25 = v23[1];
v26 = v23[2];
}
if ( (_DWORD)v26 == 3 )
{
json_get((unsigned int)v22, (unsigned int)"header", v13, v25, v14, v15, v24, v25, v26);
v24 = v22[0];
v25 = v22[1];
v26 = v22[2];
}
if ( (_DWORD)v26 == 3 )
{
json_get((unsigned int)v21, (unsigned int)"message", v13, v25, v14, v15, v24, v25, v26);
v24 = v21[0];
v25 = v21[1];
v26 = v21[2];
}
if ( (_DWORD)v26 == 3 )
{
v16 = v30;
*v30 = v24;
v16[1] = v25;
v16[2] = v26;
return 1;
}
else
{
v17 = strdup("Invalid response for header");
*(_QWORD *)(v32 + 8) = v17;
return 0;
}
}
else if ( data_request_by_url && *(_QWORD *)(data_request_by_url + 72) )
{
v18 = strdup(*(_QWORD *)(data_request_by_url + 72));
*(_QWORD *)(v32 + 8) = v18;
return 0;
}
else
{
v20 = safe_calloc(1LL, 128LL);
*(_DWORD *)v20 = v31;
*(_QWORD *)(v20 + 16) = v29;
*(_DWORD *)(v20 + 8) = 0;
*(_DWORD *)(v20 + 4) = 0;
c4_state_add_request(v32, v20);
return 0;
}
}
|
req_header:
PUSH RBP
MOV RBP,RSP
SUB RSP,0xd0
LEA RAX,[RBP + 0x10]
MOV qword ptr [RBP + -0xb0],RAX
MOV qword ptr [RBP + -0x10],RDI
MOV dword ptr [RBP + -0x14],ESI
MOV qword ptr [RBP + -0x20],RDX
LEA RDI,[RBP + -0x38]
XOR ESI,ESI
MOV EDX,0x18
CALL 0x00123140
MOV RAX,qword ptr [RBP + -0xb0]
CMP dword ptr [RAX + 0x10],0x1
JNZ 0x0012e542
MOV RAX,qword ptr [RBP + -0xb0]
LEA RDI,[RBP + -0x38]
LEA RSI,[0x1db687]
MOV RCX,qword ptr [RAX]
MOV qword ptr [RSP],RCX
MOV RCX,qword ptr [RAX + 0x8]
MOV qword ptr [RSP + 0x8],RCX
MOV RAX,qword ptr [RAX + 0x10]
MOV qword ptr [RSP + 0x10],RAX
MOV AL,0x0
CALL 0x0019d5a0
JMP 0x0012e554
LAB_0012e542:
LEA RDI,[RBP + -0x38]
LEA RSI,[0x1db6a0]
MOV AL,0x0
CALL 0x0019d5a0
LAB_0012e554:
MOV RDI,qword ptr [RBP + -0x10]
MOV RSI,qword ptr [RBP + -0x30]
CALL 0x001a61c0
MOV qword ptr [RBP + -0x40],RAX
CMP qword ptr [RBP + -0x40],0x0
JZ 0x0012e575
LEA RDI,[RBP + -0x38]
CALL 0x0019cbf0
LAB_0012e575:
CMP qword ptr [RBP + -0x40],0x0
JZ 0x0012e6dd
MOV RAX,qword ptr [RBP + -0x40]
CMP qword ptr [RAX + 0x38],0x0
JZ 0x0012e6dd
MOV RAX,qword ptr [RBP + -0x40]
MOV RSI,qword ptr [RAX + 0x38]
LEA RDI,[RBP + -0x58]
CALL 0x001a3b90
CMP dword ptr [RBP + -0x48],0x3
JNZ 0x0012e5eb
LEA RDI,[RBP + -0x70]
LEA RAX,[RBP + -0x58]
LEA RSI,[0x1da1d7]
MOV RCX,qword ptr [RAX]
MOV qword ptr [RSP],RCX
MOV RCX,qword ptr [RAX + 0x8]
MOV qword ptr [RSP + 0x8],RCX
MOV RAX,qword ptr [RAX + 0x10]
MOV qword ptr [RSP + 0x10],RAX
CALL 0x001a4360
MOV RAX,qword ptr [RBP + -0x70]
MOV qword ptr [RBP + -0x58],RAX
MOV RAX,qword ptr [RBP + -0x68]
MOV qword ptr [RBP + -0x50],RAX
MOV RAX,qword ptr [RBP + -0x60]
MOV qword ptr [RBP + -0x48],RAX
LAB_0012e5eb:
CMP dword ptr [RBP + -0x48],0x3
JNZ 0x0012e63c
LEA RDI,[RBP + -0x88]
LEA RAX,[RBP + -0x58]
LEA RSI,[0x1db6d0]
MOV RCX,qword ptr [RAX]
MOV qword ptr [RSP],RCX
MOV RCX,qword ptr [RAX + 0x8]
MOV qword ptr [RSP + 0x8],RCX
MOV RAX,qword ptr [RAX + 0x10]
MOV qword ptr [RSP + 0x10],RAX
CALL 0x001a4360
MOV RAX,qword ptr [RBP + -0x88]
MOV qword ptr [RBP + -0x58],RAX
MOV RAX,qword ptr [RBP + -0x80]
MOV qword ptr [RBP + -0x50],RAX
MOV RAX,qword ptr [RBP + -0x78]
MOV qword ptr [RBP + -0x48],RAX
LAB_0012e63c:
CMP dword ptr [RBP + -0x48],0x3
JNZ 0x0012e693
LEA RDI,[RBP + -0xa0]
LEA RAX,[RBP + -0x58]
LEA RSI,[0x1dab26]
MOV RCX,qword ptr [RAX]
MOV qword ptr [RSP],RCX
MOV RCX,qword ptr [RAX + 0x8]
MOV qword ptr [RSP + 0x8],RCX
MOV RAX,qword ptr [RAX + 0x10]
MOV qword ptr [RSP + 0x10],RAX
CALL 0x001a4360
MOV RAX,qword ptr [RBP + -0xa0]
MOV qword ptr [RBP + -0x58],RAX
MOV RAX,qword ptr [RBP + -0x98]
MOV qword ptr [RBP + -0x50],RAX
MOV RAX,qword ptr [RBP + -0x90]
MOV qword ptr [RBP + -0x48],RAX
LAB_0012e693:
CMP dword ptr [RBP + -0x48],0x3
JNZ 0x0012e6bd
MOV RAX,qword ptr [RBP + -0x20]
MOV RCX,qword ptr [RBP + -0x58]
MOV qword ptr [RAX],RCX
MOV RCX,qword ptr [RBP + -0x50]
MOV qword ptr [RAX + 0x8],RCX
MOV RCX,qword ptr [RBP + -0x48]
MOV qword ptr [RAX + 0x10],RCX
MOV byte ptr [RBP + -0x1],0x1
JMP 0x0012e770
LAB_0012e6bd:
LEA RDI,[0x1db6bb]
CALL 0x00123450
MOV RCX,RAX
MOV RAX,qword ptr [RBP + -0x10]
MOV qword ptr [RAX + 0x8],RCX
MOV byte ptr [RBP + -0x1],0x0
JMP 0x0012e770
LAB_0012e6dd:
CMP qword ptr [RBP + -0x40],0x0
JZ 0x0012e70d
MOV RAX,qword ptr [RBP + -0x40]
CMP qword ptr [RAX + 0x48],0x0
JZ 0x0012e70d
MOV RAX,qword ptr [RBP + -0x40]
MOV RDI,qword ptr [RAX + 0x48]
CALL 0x00123450
MOV RCX,RAX
MOV RAX,qword ptr [RBP + -0x10]
MOV qword ptr [RAX + 0x8],RCX
MOV byte ptr [RBP + -0x1],0x0
JMP 0x0012e770
LAB_0012e70d:
JMP 0x0012e70f
LAB_0012e70f:
MOV EDI,0x1
MOV ESI,0x80
CALL 0x0019c480
MOV qword ptr [RBP + -0xa8],RAX
MOV ECX,dword ptr [RBP + -0x14]
MOV RAX,qword ptr [RBP + -0xa8]
MOV dword ptr [RAX],ECX
MOV RCX,qword ptr [RBP + -0x30]
MOV RAX,qword ptr [RBP + -0xa8]
MOV qword ptr [RAX + 0x10],RCX
MOV RAX,qword ptr [RBP + -0xa8]
MOV dword ptr [RAX + 0x8],0x0
MOV RAX,qword ptr [RBP + -0xa8]
MOV dword ptr [RAX + 0x4],0x0
MOV RDI,qword ptr [RBP + -0x10]
MOV RSI,qword ptr [RBP + -0xa8]
CALL 0x001a6260
MOV byte ptr [RBP + -0x1],0x0
LAB_0012e770:
MOV AL,byte ptr [RBP + -0x1]
AND AL,0x1
ADD RSP,0xd0
POP RBP
RET
|
int1 req_header(long param_1,int4 param_2,int8 *param_3)
{
char *pcVar1;
int4 *puVar2;
int in_stack_00000018;
int8 local_a8;
int8 local_a0;
int8 local_98;
int8 local_90;
int8 local_88;
int8 local_80;
int8 local_78;
int8 local_70;
int8 local_68;
int8 local_60;
int8 local_58;
int8 local_50;
long local_48;
int1 local_40 [8];
int8 local_38;
int8 *local_28;
int4 local_1c;
long local_18;
int1 local_9;
local_28 = param_3;
local_1c = param_2;
local_18 = param_1;
memset(local_40,0,0x18);
if (in_stack_00000018 == 1) {
bprintf(local_40,"eth/v1/beacon/headers/%j");
}
else {
bprintf(local_40,"eth/v1/beacon/headers/head");
}
local_48 = c4_state_get_data_request_by_url(local_18,local_38);
if (local_48 != 0) {
buffer_free(local_40);
}
if ((local_48 == 0) || (*(long *)(local_48 + 0x38) == 0)) {
if ((local_48 == 0) || (*(long *)(local_48 + 0x48) == 0)) {
puVar2 = (int4 *)safe_calloc(1,0x80);
*puVar2 = local_1c;
*(int8 *)(puVar2 + 4) = local_38;
puVar2[2] = 0;
puVar2[1] = 0;
c4_state_add_request(local_18,puVar2);
local_9 = 0;
}
else {
pcVar1 = strdup(*(char **)(local_48 + 0x48));
*(char **)(local_18 + 8) = pcVar1;
local_9 = 0;
}
}
else {
json_parse(&local_60,*(int8 *)(local_48 + 0x38));
if ((int)local_50 == 3) {
json_get(&local_78,"data");
local_60 = local_78;
local_58 = local_70;
local_50 = local_68;
}
if ((int)local_50 == 3) {
json_get(&local_90,"header");
local_60 = local_90;
local_58 = local_88;
local_50 = local_80;
}
if ((int)local_50 == 3) {
json_get(&local_a8,"message");
local_60 = local_a8;
local_58 = local_a0;
local_50 = local_98;
}
if ((int)local_50 == 3) {
*local_28 = local_60;
local_28[1] = local_58;
local_28[2] = local_50;
local_9 = 1;
}
else {
pcVar1 = strdup("Invalid response for header");
*(char **)(local_18 + 8) = pcVar1;
local_9 = 0;
}
}
return local_9;
}
|
|
58,052
|
req_header
|
corpus-core[P]colibri-stateless/src/chains/eth/verifier/sync_committee_state.c
|
static bool req_header(c4_state_t* state, json_t slot, chain_id_t chain_id, json_t* data) {
buffer_t tmp = {0};
if (slot.type == JSON_TYPE_STRING)
bprintf(&tmp, "eth/v1/beacon/headers/%j", slot);
else
bprintf(&tmp, "eth/v1/beacon/headers/head");
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) {
json_t res = json_parse((char*) req->response.data);
if (res.type == JSON_TYPE_OBJECT) res = json_get(res, "data");
if (res.type == JSON_TYPE_OBJECT) res = json_get(res, "header");
if (res.type == JSON_TYPE_OBJECT) res = json_get(res, "message");
if (res.type == JSON_TYPE_OBJECT) {
*data = res;
return true;
}
else {
state->error = strdup("Invalid response for header");
return false;
}
}
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_JSON;
new_req->type = C4_DATA_TYPE_BEACON_API;
c4_state_add_request(state, new_req);
return false;
}
|
O3
|
c
|
req_header:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x78, %rsp
movq %rdx, %r14
movl %esi, %ebp
movq %rdi, %rbx
xorps %xmm0, %xmm0
movaps %xmm0, 0x40(%rsp)
movq $0x0, 0x50(%rsp)
cmpl $0x1, 0xb0(%rsp)
jne 0x293d9
leaq 0xa0(%rsp), %rax
movq 0x10(%rax), %rcx
movq %rcx, 0x10(%rsp)
movups (%rax), %xmm0
movups %xmm0, (%rsp)
leaq 0x5716e(%rip), %rsi # 0x80545
jmp 0x293e0
leaq 0x5717e(%rip), %rsi # 0x8055e
leaq 0x40(%rsp), %rdi
xorl %eax, %eax
callq 0x51734
movq 0x48(%rsp), %rsi
movq %rbx, %rdi
callq 0x568b4
testq %rax, %rax
je 0x29525
movq %rax, %r15
leaq 0x40(%rsp), %rdi
callq 0x510bf
movq 0x38(%r15), %rsi
testq %rsi, %rsi
je 0x29511
leaq 0x20(%rsp), %r15
movq %r15, %rdi
callq 0x552d4
cmpl $0x3, 0x10(%r15)
jne 0x29508
movq 0x30(%rsp), %rax
movq %rax, 0x10(%rsp)
movaps 0x20(%rsp), %xmm0
movups %xmm0, (%rsp)
leaq 0x55d89(%rip), %rsi # 0x7f1d7
leaq 0x60(%rsp), %r15
movq %r15, %rdi
callq 0x556e5
movq 0x10(%r15), %rax
movq %rax, 0x30(%rsp)
movups (%r15), %xmm0
movaps %xmm0, 0x20(%rsp)
cmpl $0x3, %eax
jne 0x29508
movq 0x30(%rsp), %rax
movq %rax, 0x10(%rsp)
movaps 0x20(%rsp), %xmm0
movups %xmm0, (%rsp)
leaq 0x570fe(%rip), %rsi # 0x8058e
leaq 0x60(%rsp), %r15
movq %r15, %rdi
callq 0x556e5
movq 0x10(%r15), %rax
movq %rax, 0x30(%rsp)
movups (%r15), %xmm0
movaps %xmm0, 0x20(%rsp)
cmpl $0x3, %eax
jne 0x29508
movq 0x30(%rsp), %rax
movq %rax, 0x10(%rsp)
movaps 0x20(%rsp), %xmm0
movups %xmm0, (%rsp)
leaq 0x56716(%rip), %rsi # 0x7fbe4
leaq 0x60(%rsp), %r15
movq %r15, %rdi
callq 0x556e5
movq 0x10(%r15), %rax
movq %rax, 0x30(%rsp)
movups (%r15), %xmm0
movaps %xmm0, 0x20(%rsp)
cmpl $0x3, %eax
jne 0x29508
movq 0x30(%rsp), %rax
movq %rax, 0x10(%r14)
movaps 0x20(%rsp), %xmm0
movups %xmm0, (%r14)
movb $0x1, %al
jmp 0x29554
leaq 0x5706a(%rip), %rdi # 0x80579
jmp 0x2951a
movq 0x48(%r15), %rdi
testq %rdi, %rdi
je 0x29525
callq 0x213d0
movq %rax, 0x8(%rbx)
jmp 0x29552
movl $0x1, %edi
movl $0x80, %esi
callq 0x50eef
movl %ebp, (%rax)
movq 0x48(%rsp), %rcx
movq %rcx, 0x10(%rax)
movq $0x0, 0x4(%rax)
movq %rbx, %rdi
movq %rax, %rsi
callq 0x56901
xorl %eax, %eax
addq $0x78, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
nop
|
req_header:
push rbp
push r15
push r14
push rbx
sub rsp, 78h
mov r14, rdx
mov ebp, esi
mov rbx, rdi
xorps xmm0, xmm0
movaps [rsp+98h+var_58], xmm0
mov [rsp+98h+var_48], 0
cmp [rsp+98h+arg_10], 1
jnz short loc_293D9
lea rax, [rsp+98h+arg_0]
mov rcx, [rax+10h]
mov [rsp+98h+var_88], rcx
movups xmm0, xmmword ptr [rax]
movups [rsp+98h+var_98], xmm0
lea rsi, aEthV1BeaconHea; "eth/v1/beacon/headers/%j"
jmp short loc_293E0
loc_293D9:
lea rsi, aEthV1BeaconHea_0; "eth/v1/beacon/headers/head"
loc_293E0:
lea rdi, [rsp+98h+var_58]
xor eax, eax
call bprintf
mov rsi, qword ptr [rsp+98h+var_58+8]
mov rdi, rbx
call c4_state_get_data_request_by_url
test rax, rax
jz loc_29525
mov r15, rax
lea rdi, [rsp+98h+var_58]
call buffer_free
mov rsi, [r15+38h]
test rsi, rsi
jz loc_29511
lea r15, [rsp+98h+var_78]
mov rdi, r15
call json_parse
cmp dword ptr [r15+10h], 3
jnz loc_29508
mov rax, [rsp+98h+var_68]
mov [rsp+98h+var_88], rax
movaps xmm0, [rsp+98h+var_78]
movups [rsp+98h+var_98], xmm0
lea rsi, aSyncData+5; "data"
lea r15, [rsp+98h+var_38]
mov rdi, r15
call json_get
mov rax, [r15+10h]
mov [rsp+98h+var_68], rax
movups xmm0, xmmword ptr [r15]
movaps [rsp+98h+var_78], xmm0
cmp eax, 3
jnz loc_29508
mov rax, [rsp+98h+var_68]
mov [rsp+98h+var_88], rax
movaps xmm0, [rsp+98h+var_78]
movups [rsp+98h+var_98], xmm0
lea rsi, aInvalidRespons+15h; "header"
lea r15, [rsp+98h+var_38]
mov rdi, r15
call json_get
mov rax, [r15+10h]
mov [rsp+98h+var_68], rax
movups xmm0, xmmword ptr [r15]
movaps [rsp+98h+var_78], xmm0
cmp eax, 3
jnz short loc_29508
mov rax, [rsp+98h+var_68]
mov [rsp+98h+var_88], rax
movaps xmm0, [rsp+98h+var_78]
movups [rsp+98h+var_98], xmm0
lea rsi, aMessage; "message"
lea r15, [rsp+98h+var_38]
mov rdi, r15
call json_get
mov rax, [r15+10h]
mov [rsp+98h+var_68], rax
movups xmm0, xmmword ptr [r15]
movaps [rsp+98h+var_78], xmm0
cmp eax, 3
jnz short loc_29508
mov rax, [rsp+98h+var_68]
mov [r14+10h], rax
movaps xmm0, [rsp+98h+var_78]
movups xmmword ptr [r14], xmm0
mov al, 1
jmp short loc_29554
loc_29508:
lea rdi, aInvalidRespons; "Invalid response for header"
jmp short loc_2951A
loc_29511:
mov rdi, [r15+48h]
test rdi, rdi
jz short loc_29525
loc_2951A:
call _strdup
mov [rbx+8], rax
jmp short loc_29552
loc_29525:
mov edi, 1
mov esi, 80h
call safe_calloc
mov [rax], ebp
mov rcx, qword ptr [rsp+98h+var_58+8]
mov [rax+10h], rcx
mov qword ptr [rax+4], 0
mov rdi, rbx
mov rsi, rax
call c4_state_add_request
loc_29552:
xor eax, eax
loc_29554:
add rsp, 78h
pop rbx
pop r14
pop r15
pop rbp
retn
|
char req_header(long long a1, int a2, long long a3, int a4, int a5, int a6, long long a7, long long a8, long long a9)
{
long long data_request_by_url; // rax
long long v13; // r15
long long v14; // rsi
int v15; // edx
int v16; // ecx
int v17; // r8d
int v18; // r9d
int v19; // edx
int v20; // ecx
int v21; // r8d
int v22; // r9d
int v23; // edx
int v24; // ecx
int v25; // r8d
int v26; // r9d
const char *v28; // rdi
long long v29; // rax
__int128 v30; // [rsp+20h] [rbp-78h] BYREF
long long v31; // [rsp+30h] [rbp-68h]
__int128 v32; // [rsp+40h] [rbp-58h] BYREF
long long v33; // [rsp+50h] [rbp-48h]
__int128 v34; // [rsp+60h] [rbp-38h] BYREF
long long v35; // [rsp+70h] [rbp-28h]
v32 = 0LL;
v33 = 0LL;
if ( (_DWORD)a9 == 1 )
bprintf((unsigned int)&v32, (unsigned int)"eth/v1/beacon/headers/%j", a3, 1, a5, a6, a7, a8, a9);
else
bprintf((unsigned int)&v32, (unsigned int)"eth/v1/beacon/headers/head", a3, a4, a5, a6);
data_request_by_url = c4_state_get_data_request_by_url(a1, *((_QWORD *)&v32 + 1));
if ( !data_request_by_url )
goto LABEL_14;
v13 = data_request_by_url;
buffer_free(&v32);
v14 = *(_QWORD *)(v13 + 56);
if ( v14 )
{
json_parse(&v30, v14);
if ( (_DWORD)v31 == 3 )
{
json_get((unsigned int)&v34, (unsigned int)"data", v15, v16, v17, v18, v30, v31);
v31 = v35;
v30 = v34;
if ( (_DWORD)v35 == 3 )
{
json_get((unsigned int)&v34, (unsigned int)"header", v19, v20, v21, v22, v30, v31);
v31 = v35;
v30 = v34;
if ( (_DWORD)v35 == 3 )
{
json_get((unsigned int)&v34, (unsigned int)"message", v23, v24, v25, v26, v30, v31);
v31 = v35;
v30 = v34;
if ( (_DWORD)v35 == 3 )
{
*(_QWORD *)(a3 + 16) = v31;
*(_OWORD *)a3 = v30;
return 1;
}
}
}
}
v28 = "Invalid response for header";
goto LABEL_13;
}
v28 = *(const char **)(v13 + 72);
if ( !v28 )
{
LABEL_14:
v29 = safe_calloc(1LL, 128LL);
*(_DWORD *)v29 = a2;
*(_QWORD *)(v29 + 16) = *((_QWORD *)&v32 + 1);
*(_QWORD *)(v29 + 4) = 0LL;
c4_state_add_request(a1, v29);
return 0;
}
LABEL_13:
*(_QWORD *)(a1 + 8) = strdup(v28);
return 0;
}
|
req_header:
PUSH RBP
PUSH R15
PUSH R14
PUSH RBX
SUB RSP,0x78
MOV R14,RDX
MOV EBP,ESI
MOV RBX,RDI
XORPS XMM0,XMM0
MOVAPS xmmword ptr [RSP + 0x40],XMM0
MOV qword ptr [RSP + 0x50],0x0
CMP dword ptr [RSP + 0xb0],0x1
JNZ 0x001293d9
LEA RAX,[RSP + 0xa0]
MOV RCX,qword ptr [RAX + 0x10]
MOV qword ptr [RSP + 0x10],RCX
MOVUPS XMM0,xmmword ptr [RAX]
MOVUPS xmmword ptr [RSP],XMM0
LEA RSI,[0x180545]
JMP 0x001293e0
LAB_001293d9:
LEA RSI,[0x18055e]
LAB_001293e0:
LEA RDI,[RSP + 0x40]
XOR EAX,EAX
CALL 0x00151734
MOV RSI,qword ptr [RSP + 0x48]
MOV RDI,RBX
CALL 0x001568b4
TEST RAX,RAX
JZ 0x00129525
MOV R15,RAX
LEA RDI,[RSP + 0x40]
CALL 0x001510bf
MOV RSI,qword ptr [R15 + 0x38]
TEST RSI,RSI
JZ 0x00129511
LEA R15,[RSP + 0x20]
MOV RDI,R15
CALL 0x001552d4
CMP dword ptr [R15 + 0x10],0x3
JNZ 0x00129508
MOV RAX,qword ptr [RSP + 0x30]
MOV qword ptr [RSP + 0x10],RAX
MOVAPS XMM0,xmmword ptr [RSP + 0x20]
MOVUPS xmmword ptr [RSP],XMM0
LEA RSI,[0x17f1d7]
LEA R15,[RSP + 0x60]
MOV RDI,R15
CALL 0x001556e5
MOV RAX,qword ptr [R15 + 0x10]
MOV qword ptr [RSP + 0x30],RAX
MOVUPS XMM0,xmmword ptr [R15]
MOVAPS xmmword ptr [RSP + 0x20],XMM0
CMP EAX,0x3
JNZ 0x00129508
MOV RAX,qword ptr [RSP + 0x30]
MOV qword ptr [RSP + 0x10],RAX
MOVAPS XMM0,xmmword ptr [RSP + 0x20]
MOVUPS xmmword ptr [RSP],XMM0
LEA RSI,[0x18058e]
LEA R15,[RSP + 0x60]
MOV RDI,R15
CALL 0x001556e5
MOV RAX,qword ptr [R15 + 0x10]
MOV qword ptr [RSP + 0x30],RAX
MOVUPS XMM0,xmmword ptr [R15]
MOVAPS xmmword ptr [RSP + 0x20],XMM0
CMP EAX,0x3
JNZ 0x00129508
MOV RAX,qword ptr [RSP + 0x30]
MOV qword ptr [RSP + 0x10],RAX
MOVAPS XMM0,xmmword ptr [RSP + 0x20]
MOVUPS xmmword ptr [RSP],XMM0
LEA RSI,[0x17fbe4]
LEA R15,[RSP + 0x60]
MOV RDI,R15
CALL 0x001556e5
MOV RAX,qword ptr [R15 + 0x10]
MOV qword ptr [RSP + 0x30],RAX
MOVUPS XMM0,xmmword ptr [R15]
MOVAPS xmmword ptr [RSP + 0x20],XMM0
CMP EAX,0x3
JNZ 0x00129508
MOV RAX,qword ptr [RSP + 0x30]
MOV qword ptr [R14 + 0x10],RAX
MOVAPS XMM0,xmmword ptr [RSP + 0x20]
MOVUPS xmmword ptr [R14],XMM0
MOV AL,0x1
JMP 0x00129554
LAB_00129508:
LEA RDI,[0x180579]
JMP 0x0012951a
LAB_00129511:
MOV RDI,qword ptr [R15 + 0x48]
TEST RDI,RDI
JZ 0x00129525
LAB_0012951a:
CALL 0x001213d0
MOV qword ptr [RBX + 0x8],RAX
JMP 0x00129552
LAB_00129525:
MOV EDI,0x1
MOV ESI,0x80
CALL 0x00150eef
MOV dword ptr [RAX],EBP
MOV RCX,qword ptr [RSP + 0x48]
MOV qword ptr [RAX + 0x10],RCX
MOV qword ptr [RAX + 0x4],0x0
MOV RDI,RBX
MOV RSI,RAX
CALL 0x00156901
LAB_00129552:
XOR EAX,EAX
LAB_00129554:
ADD RSP,0x78
POP RBX
POP R14
POP R15
POP RBP
RET
|
int8 req_header(long param_1,int4 param_2,int8 *param_3)
{
long lVar1;
int4 *puVar2;
char *pcVar3;
int in_stack_00000018;
int8 local_78;
int8 uStack_70;
int8 local_68;
int8 local_58;
int8 uStack_50;
int8 local_48;
int8 local_38;
int8 uStack_30;
int8 local_28;
local_58 = 0;
uStack_50 = 0;
local_48 = 0;
if (in_stack_00000018 == 1) {
pcVar3 = "eth/v1/beacon/headers/%j";
}
else {
pcVar3 = "eth/v1/beacon/headers/head";
}
bprintf(&local_58,pcVar3);
lVar1 = c4_state_get_data_request_by_url(param_1,uStack_50);
if (lVar1 == 0) {
LAB_00129525:
puVar2 = (int4 *)safe_calloc(1,0x80);
*puVar2 = param_2;
*(int8 *)(puVar2 + 4) = uStack_50;
*(int8 *)(puVar2 + 1) = 0;
c4_state_add_request(param_1,puVar2);
}
else {
buffer_free(&local_58);
if (*(long *)(lVar1 + 0x38) == 0) {
pcVar3 = *(char **)(lVar1 + 0x48);
if (pcVar3 == (char *)0x0) goto LAB_00129525;
}
else {
json_parse(&local_78);
if ((int)local_68 == 3) {
json_get(&local_38,"data");
local_68 = local_28;
local_78 = local_38;
uStack_70 = uStack_30;
if ((int)local_28 == 3) {
json_get(&local_38,"header");
local_68 = local_28;
local_78 = local_38;
uStack_70 = uStack_30;
if ((int)local_28 == 3) {
json_get(&local_38,"message");
local_68 = local_28;
local_78 = local_38;
uStack_70 = uStack_30;
if ((int)local_28 == 3) {
param_3[2] = local_28;
*param_3 = local_38;
param_3[1] = uStack_30;
return 1;
}
}
}
}
pcVar3 = "Invalid response for header";
}
pcVar3 = strdup(pcVar3);
*(char **)(param_1 + 8) = pcVar3;
}
return 0;
}
|
|
58,053
|
GenImageGradientRadial
|
csit-sgu[P]mit-game-2025_1/Libraries/raylib/src/rtextures.c
|
Image GenImageGradientRadial(int width, int height, float density, Color inner, Color outer)
{
Color *pixels = (Color *)RL_MALLOC(width*height*sizeof(Color));
float radius = (width < height)? (float)width/2.0f : (float)height/2.0f;
float centerX = (float)width/2.0f;
float centerY = (float)height/2.0f;
for (int y = 0; y < height; y++)
{
for (int x = 0; x < width; x++)
{
float dist = hypotf((float)x - centerX, (float)y - centerY);
float factor = (dist - radius*density)/(radius*(1.0f - density));
factor = (float)fmax(factor, 0.0f);
factor = (float)fmin(factor, 1.f); // dist can be bigger than radius, so we have to check
pixels[y*width + x].r = (int)((float)outer.r*factor + (float)inner.r*(1.0f - factor));
pixels[y*width + x].g = (int)((float)outer.g*factor + (float)inner.g*(1.0f - factor));
pixels[y*width + x].b = (int)((float)outer.b*factor + (float)inner.b*(1.0f - factor));
pixels[y*width + x].a = (int)((float)outer.a*factor + (float)inner.a*(1.0f - factor));
}
}
Image image = {
.data = pixels,
.width = width,
.height = height,
.format = PIXELFORMAT_UNCOMPRESSED_R8G8B8A8,
.mipmaps = 1
};
return image;
}
|
O0
|
c
|
GenImageGradientRadial:
pushq %rbp
movq %rsp, %rbp
subq $0x60, %rsp
movq %rdi, -0x50(%rbp)
movq %rdi, -0x48(%rbp)
movl %ecx, -0x4(%rbp)
movl %r8d, -0x8(%rbp)
movl %esi, -0xc(%rbp)
movl %edx, -0x10(%rbp)
movss %xmm0, -0x14(%rbp)
movl -0xc(%rbp), %eax
imull -0x10(%rbp), %eax
movslq %eax, %rdi
shlq $0x2, %rdi
callq 0xa6e0
movq %rax, -0x20(%rbp)
movl -0xc(%rbp), %eax
cmpl -0x10(%rbp), %eax
jge 0xfd2f9
cvtsi2ssl -0xc(%rbp), %xmm0
movss 0xaad2e(%rip), %xmm1 # 0x1a801c
divss %xmm1, %xmm0
movss %xmm0, -0x54(%rbp)
jmp 0xfd30f
cvtsi2ssl -0x10(%rbp), %xmm0
movss 0xaad16(%rip), %xmm1 # 0x1a801c
divss %xmm1, %xmm0
movss %xmm0, -0x54(%rbp)
movss -0x54(%rbp), %xmm0
movss %xmm0, -0x24(%rbp)
cvtsi2ssl -0xc(%rbp), %xmm0
movss 0xaacf6(%rip), %xmm1 # 0x1a801c
divss %xmm1, %xmm0
movss %xmm0, -0x28(%rbp)
cvtsi2ssl -0x10(%rbp), %xmm0
movss 0xaace0(%rip), %xmm1 # 0x1a801c
divss %xmm1, %xmm0
movss %xmm0, -0x2c(%rbp)
movl $0x0, -0x30(%rbp)
movl -0x30(%rbp), %eax
cmpl -0x10(%rbp), %eax
jge 0xfd536
movl $0x0, -0x34(%rbp)
movl -0x34(%rbp), %eax
cmpl -0xc(%rbp), %eax
jge 0xfd526
cvtsi2ssl -0x34(%rbp), %xmm0
movss -0x28(%rbp), %xmm1
subss %xmm1, %xmm0
cvtsi2ssl -0x30(%rbp), %xmm1
movss -0x2c(%rbp), %xmm2
subss %xmm2, %xmm1
callq 0xa150
movss %xmm0, -0x38(%rbp)
movss -0x38(%rbp), %xmm0
movss -0x24(%rbp), %xmm1
movss -0x14(%rbp), %xmm4
movaps %xmm1, %xmm2
mulss %xmm4, %xmm2
subss %xmm2, %xmm0
movss 0xa6d41(%rip), %xmm2 # 0x1a40f4
movaps %xmm2, %xmm3
subss %xmm4, %xmm3
mulss %xmm3, %xmm1
divss %xmm1, %xmm0
movss %xmm0, -0x3c(%rbp)
movss -0x3c(%rbp), %xmm0
cvtss2sd %xmm0, %xmm0
xorps %xmm1, %xmm1
maxsd %xmm1, %xmm0
cvtsd2ss %xmm0, %xmm0
movss %xmm0, -0x3c(%rbp)
movss -0x3c(%rbp), %xmm0
cvtss2sd %xmm0, %xmm0
movsd 0xaac87(%rip), %xmm1 # 0x1a8078
minsd %xmm1, %xmm0
cvtsd2ss %xmm0, %xmm0
movss %xmm0, -0x3c(%rbp)
movzbl -0x8(%rbp), %eax
cvtsi2ss %eax, %xmm0
movss -0x3c(%rbp), %xmm4
mulss %xmm4, %xmm0
movzbl -0x4(%rbp), %eax
cvtsi2ss %eax, %xmm1
movaps %xmm2, %xmm3
subss %xmm4, %xmm3
mulss %xmm3, %xmm1
addss %xmm1, %xmm0
cvttss2si %xmm0, %eax
movb %al, %dl
movq -0x20(%rbp), %rax
movl -0x30(%rbp), %ecx
movl -0xc(%rbp), %esi
imull %esi, %ecx
movl -0x34(%rbp), %esi
addl %esi, %ecx
movslq %ecx, %rcx
movb %dl, (%rax,%rcx,4)
movzbl -0x7(%rbp), %eax
cvtsi2ss %eax, %xmm0
movss -0x3c(%rbp), %xmm4
mulss %xmm4, %xmm0
movzbl -0x3(%rbp), %eax
cvtsi2ss %eax, %xmm1
movaps %xmm2, %xmm3
subss %xmm4, %xmm3
mulss %xmm3, %xmm1
addss %xmm1, %xmm0
cvttss2si %xmm0, %eax
movb %al, %dl
movq -0x20(%rbp), %rax
movl -0x30(%rbp), %ecx
movl -0xc(%rbp), %esi
imull %esi, %ecx
movl -0x34(%rbp), %esi
addl %esi, %ecx
movslq %ecx, %rcx
movb %dl, 0x1(%rax,%rcx,4)
movzbl -0x6(%rbp), %eax
cvtsi2ss %eax, %xmm0
movss -0x3c(%rbp), %xmm3
mulss %xmm3, %xmm0
movzbl -0x2(%rbp), %eax
cvtsi2ss %eax, %xmm1
subss %xmm3, %xmm2
mulss %xmm2, %xmm1
addss %xmm1, %xmm0
cvttss2si %xmm0, %eax
movb %al, %dl
movq -0x20(%rbp), %rax
movl -0x30(%rbp), %ecx
movl -0xc(%rbp), %esi
imull %esi, %ecx
movl -0x34(%rbp), %esi
addl %esi, %ecx
movslq %ecx, %rcx
movb %dl, 0x2(%rax,%rcx,4)
movzbl -0x5(%rbp), %eax
cvtsi2ss %eax, %xmm0
movss -0x3c(%rbp), %xmm1
mulss %xmm1, %xmm0
movzbl -0x1(%rbp), %eax
cvtsi2ss %eax, %xmm1
movss 0xa6c04(%rip), %xmm2 # 0x1a40f4
subss -0x3c(%rbp), %xmm2
mulss %xmm2, %xmm1
addss %xmm1, %xmm0
cvttss2si %xmm0, %eax
movb %al, %dl
movq -0x20(%rbp), %rax
movl -0x30(%rbp), %ecx
imull -0xc(%rbp), %ecx
addl -0x34(%rbp), %ecx
movslq %ecx, %rcx
movb %dl, 0x3(%rax,%rcx,4)
movl -0x34(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x34(%rbp)
jmp 0xfd35f
jmp 0xfd528
movl -0x30(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x30(%rbp)
jmp 0xfd34c
movq -0x48(%rbp), %rax
movq -0x50(%rbp), %rcx
movq -0x20(%rbp), %rdx
movq %rdx, (%rcx)
movl -0xc(%rbp), %edx
movl %edx, 0x8(%rcx)
movl -0x10(%rbp), %edx
movl %edx, 0xc(%rcx)
movl $0x1, 0x10(%rcx)
movl $0x7, 0x14(%rcx)
addq $0x60, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
|
GenImageGradientRadial:
push rbp
mov rbp, rsp
sub rsp, 60h
mov [rbp+var_50], rdi
mov [rbp+var_48], rdi
mov [rbp+var_4], ecx
mov [rbp+var_8], r8d
mov [rbp+var_C], esi
mov [rbp+var_10], edx
movss [rbp+var_14], xmm0
mov eax, [rbp+var_C]
imul eax, [rbp+var_10]
movsxd rdi, eax
shl rdi, 2
call _malloc
mov [rbp+var_20], rax
mov eax, [rbp+var_C]
cmp eax, [rbp+var_10]
jge short loc_FD2F9
cvtsi2ss xmm0, [rbp+var_C]
movss xmm1, cs:dword_1A801C
divss xmm0, xmm1
movss [rbp+var_54], xmm0
jmp short loc_FD30F
loc_FD2F9:
cvtsi2ss xmm0, [rbp+var_10]
movss xmm1, cs:dword_1A801C
divss xmm0, xmm1
movss [rbp+var_54], xmm0
loc_FD30F:
movss xmm0, [rbp+var_54]
movss [rbp+var_24], xmm0
cvtsi2ss xmm0, [rbp+var_C]
movss xmm1, cs:dword_1A801C
divss xmm0, xmm1
movss [rbp+var_28], xmm0
cvtsi2ss xmm0, [rbp+var_10]
movss xmm1, cs:dword_1A801C
divss xmm0, xmm1
movss [rbp+var_2C], xmm0
mov [rbp+var_30], 0
loc_FD34C:
mov eax, [rbp+var_30]
cmp eax, [rbp+var_10]
jge loc_FD536
mov [rbp+var_34], 0
loc_FD35F:
mov eax, [rbp+var_34]
cmp eax, [rbp+var_C]
jge loc_FD526
cvtsi2ss xmm0, [rbp+var_34]
movss xmm1, [rbp+var_28]
subss xmm0, xmm1
cvtsi2ss xmm1, [rbp+var_30]
movss xmm2, [rbp+var_2C]
subss xmm1, xmm2
call _hypotf
movss [rbp+var_38], xmm0
movss xmm0, [rbp+var_38]
movss xmm1, [rbp+var_24]
movss xmm4, [rbp+var_14]
movaps xmm2, xmm1
mulss xmm2, xmm4
subss xmm0, xmm2
movss xmm2, cs:dword_1A40F4
movaps xmm3, xmm2
subss xmm3, xmm4
mulss xmm1, xmm3
divss xmm0, xmm1
movss [rbp+var_3C], xmm0
movss xmm0, [rbp+var_3C]
cvtss2sd xmm0, xmm0
xorps xmm1, xmm1
maxsd xmm0, xmm1
cvtsd2ss xmm0, xmm0
movss [rbp+var_3C], xmm0
movss xmm0, [rbp+var_3C]
cvtss2sd xmm0, xmm0
movsd xmm1, cs:qword_1A8078
minsd xmm0, xmm1
cvtsd2ss xmm0, xmm0
movss [rbp+var_3C], xmm0
movzx eax, byte ptr [rbp+var_8]
cvtsi2ss xmm0, eax
movss xmm4, [rbp+var_3C]
mulss xmm0, xmm4
movzx eax, byte ptr [rbp+var_4]
cvtsi2ss xmm1, eax
movaps xmm3, xmm2
subss xmm3, xmm4
mulss xmm1, xmm3
addss xmm0, xmm1
cvttss2si eax, xmm0
mov dl, al
mov rax, [rbp+var_20]
mov ecx, [rbp+var_30]
mov esi, [rbp+var_C]
imul ecx, esi
mov esi, [rbp+var_34]
add ecx, esi
movsxd rcx, ecx
mov [rax+rcx*4], dl
movzx eax, byte ptr [rbp+var_8+1]
cvtsi2ss xmm0, eax
movss xmm4, [rbp+var_3C]
mulss xmm0, xmm4
movzx eax, byte ptr [rbp+var_4+1]
cvtsi2ss xmm1, eax
movaps xmm3, xmm2
subss xmm3, xmm4
mulss xmm1, xmm3
addss xmm0, xmm1
cvttss2si eax, xmm0
mov dl, al
mov rax, [rbp+var_20]
mov ecx, [rbp+var_30]
mov esi, [rbp+var_C]
imul ecx, esi
mov esi, [rbp+var_34]
add ecx, esi
movsxd rcx, ecx
mov [rax+rcx*4+1], dl
movzx eax, byte ptr [rbp+var_8+2]
cvtsi2ss xmm0, eax
movss xmm3, [rbp+var_3C]
mulss xmm0, xmm3
movzx eax, byte ptr [rbp+var_4+2]
cvtsi2ss xmm1, eax
subss xmm2, xmm3
mulss xmm1, xmm2
addss xmm0, xmm1
cvttss2si eax, xmm0
mov dl, al
mov rax, [rbp+var_20]
mov ecx, [rbp+var_30]
mov esi, [rbp+var_C]
imul ecx, esi
mov esi, [rbp+var_34]
add ecx, esi
movsxd rcx, ecx
mov [rax+rcx*4+2], dl
movzx eax, byte ptr [rbp+var_8+3]
cvtsi2ss xmm0, eax
movss xmm1, [rbp+var_3C]
mulss xmm0, xmm1
movzx eax, byte ptr [rbp+var_4+3]
cvtsi2ss xmm1, eax
movss xmm2, cs:dword_1A40F4
subss xmm2, [rbp+var_3C]
mulss xmm1, xmm2
addss xmm0, xmm1
cvttss2si eax, xmm0
mov dl, al
mov rax, [rbp+var_20]
mov ecx, [rbp+var_30]
imul ecx, [rbp+var_C]
add ecx, [rbp+var_34]
movsxd rcx, ecx
mov [rax+rcx*4+3], dl
mov eax, [rbp+var_34]
add eax, 1
mov [rbp+var_34], eax
jmp loc_FD35F
loc_FD526:
jmp short $+2
loc_FD528:
mov eax, [rbp+var_30]
add eax, 1
mov [rbp+var_30], eax
jmp loc_FD34C
loc_FD536:
mov rax, [rbp+var_48]
mov rcx, [rbp+var_50]
mov rdx, [rbp+var_20]
mov [rcx], rdx
mov edx, [rbp+var_C]
mov [rcx+8], edx
mov edx, [rbp+var_10]
mov [rcx+0Ch], edx
mov dword ptr [rcx+10h], 1
mov dword ptr [rcx+14h], 7
add rsp, 60h
pop rbp
retn
|
long long GenImageGradientRadial(long long a1, int a2, int a3, int a4, int a5, float a6)
{
float v6; // xmm0_4
float v7; // xmm0_4
long long result; // rax
float v9; // [rsp+Ch] [rbp-54h]
int j; // [rsp+2Ch] [rbp-34h]
int i; // [rsp+30h] [rbp-30h]
long long v12; // [rsp+40h] [rbp-20h]
v12 = malloc(4LL * a3 * a2);
if ( a2 >= a3 )
v9 = (float)a3 / 2.0;
else
v9 = (float)a2 / 2.0;
for ( i = 0; i < a3; ++i )
{
for ( j = 0; j < a2; ++j )
{
v6 = fmax(
(float)((float)(hypotf((float)j - (float)((float)a2 / 2.0), (float)i - (float)((float)a3 / 2.0))
- (float)(v9 * a6))
/ (float)(v9 * (float)(1.0 - a6))),
0.0);
v7 = fmin(v6, 1.0);
*(_BYTE *)(v12 + 4LL * (j + a2 * i)) = (int)(float)((float)((float)(unsigned __int8)a5 * v7)
+ (float)((float)(unsigned __int8)a4 * (float)(1.0 - v7)));
*(_BYTE *)(v12 + 4LL * (j + a2 * i) + 1) = (int)(float)((float)((float)BYTE1(a5) * v7)
+ (float)((float)BYTE1(a4) * (float)(1.0 - v7)));
*(_BYTE *)(v12 + 4LL * (j + a2 * i) + 2) = (int)(float)((float)((float)BYTE2(a5) * v7)
+ (float)((float)BYTE2(a4) * (float)(1.0 - v7)));
*(_BYTE *)(v12 + 4LL * (j + a2 * i) + 3) = (int)(float)((float)((float)HIBYTE(a5) * v7)
+ (float)((float)HIBYTE(a4) * (float)(1.0 - v7)));
}
}
result = a1;
*(_QWORD *)a1 = v12;
*(_DWORD *)(a1 + 8) = a2;
*(_DWORD *)(a1 + 12) = a3;
*(_DWORD *)(a1 + 16) = 1;
*(_DWORD *)(a1 + 20) = 7;
return result;
}
|
GenImageGradientRadial:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x60
MOV qword ptr [RBP + -0x50],RDI
MOV qword ptr [RBP + -0x48],RDI
MOV dword ptr [RBP + -0x4],ECX
MOV dword ptr [RBP + -0x8],R8D
MOV dword ptr [RBP + -0xc],ESI
MOV dword ptr [RBP + -0x10],EDX
MOVSS dword ptr [RBP + -0x14],XMM0
MOV EAX,dword ptr [RBP + -0xc]
IMUL EAX,dword ptr [RBP + -0x10]
MOVSXD RDI,EAX
SHL RDI,0x2
CALL 0x0010a6e0
MOV qword ptr [RBP + -0x20],RAX
MOV EAX,dword ptr [RBP + -0xc]
CMP EAX,dword ptr [RBP + -0x10]
JGE 0x001fd2f9
CVTSI2SS XMM0,dword ptr [RBP + -0xc]
MOVSS XMM1,dword ptr [0x002a801c]
DIVSS XMM0,XMM1
MOVSS dword ptr [RBP + -0x54],XMM0
JMP 0x001fd30f
LAB_001fd2f9:
CVTSI2SS XMM0,dword ptr [RBP + -0x10]
MOVSS XMM1,dword ptr [0x002a801c]
DIVSS XMM0,XMM1
MOVSS dword ptr [RBP + -0x54],XMM0
LAB_001fd30f:
MOVSS XMM0,dword ptr [RBP + -0x54]
MOVSS dword ptr [RBP + -0x24],XMM0
CVTSI2SS XMM0,dword ptr [RBP + -0xc]
MOVSS XMM1,dword ptr [0x002a801c]
DIVSS XMM0,XMM1
MOVSS dword ptr [RBP + -0x28],XMM0
CVTSI2SS XMM0,dword ptr [RBP + -0x10]
MOVSS XMM1,dword ptr [0x002a801c]
DIVSS XMM0,XMM1
MOVSS dword ptr [RBP + -0x2c],XMM0
MOV dword ptr [RBP + -0x30],0x0
LAB_001fd34c:
MOV EAX,dword ptr [RBP + -0x30]
CMP EAX,dword ptr [RBP + -0x10]
JGE 0x001fd536
MOV dword ptr [RBP + -0x34],0x0
LAB_001fd35f:
MOV EAX,dword ptr [RBP + -0x34]
CMP EAX,dword ptr [RBP + -0xc]
JGE 0x001fd526
CVTSI2SS XMM0,dword ptr [RBP + -0x34]
MOVSS XMM1,dword ptr [RBP + -0x28]
SUBSS XMM0,XMM1
CVTSI2SS XMM1,dword ptr [RBP + -0x30]
MOVSS XMM2,dword ptr [RBP + -0x2c]
SUBSS XMM1,XMM2
CALL 0x0010a150
MOVSS dword ptr [RBP + -0x38],XMM0
MOVSS XMM0,dword ptr [RBP + -0x38]
MOVSS XMM1,dword ptr [RBP + -0x24]
MOVSS XMM4,dword ptr [RBP + -0x14]
MOVAPS XMM2,XMM1
MULSS XMM2,XMM4
SUBSS XMM0,XMM2
MOVSS XMM2,dword ptr [0x002a40f4]
MOVAPS XMM3,XMM2
SUBSS XMM3,XMM4
MULSS XMM1,XMM3
DIVSS XMM0,XMM1
MOVSS dword ptr [RBP + -0x3c],XMM0
MOVSS XMM0,dword ptr [RBP + -0x3c]
CVTSS2SD XMM0,XMM0
XORPS XMM1,XMM1
MAXSD XMM0,XMM1
CVTSD2SS XMM0,XMM0
MOVSS dword ptr [RBP + -0x3c],XMM0
MOVSS XMM0,dword ptr [RBP + -0x3c]
CVTSS2SD XMM0,XMM0
MOVSD XMM1,qword ptr [0x002a8078]
MINSD XMM0,XMM1
CVTSD2SS XMM0,XMM0
MOVSS dword ptr [RBP + -0x3c],XMM0
MOVZX EAX,byte ptr [RBP + -0x8]
CVTSI2SS XMM0,EAX
MOVSS XMM4,dword ptr [RBP + -0x3c]
MULSS XMM0,XMM4
MOVZX EAX,byte ptr [RBP + -0x4]
CVTSI2SS XMM1,EAX
MOVAPS XMM3,XMM2
SUBSS XMM3,XMM4
MULSS XMM1,XMM3
ADDSS XMM0,XMM1
CVTTSS2SI EAX,XMM0
MOV DL,AL
MOV RAX,qword ptr [RBP + -0x20]
MOV ECX,dword ptr [RBP + -0x30]
MOV ESI,dword ptr [RBP + -0xc]
IMUL ECX,ESI
MOV ESI,dword ptr [RBP + -0x34]
ADD ECX,ESI
MOVSXD RCX,ECX
MOV byte ptr [RAX + RCX*0x4],DL
MOVZX EAX,byte ptr [RBP + -0x7]
CVTSI2SS XMM0,EAX
MOVSS XMM4,dword ptr [RBP + -0x3c]
MULSS XMM0,XMM4
MOVZX EAX,byte ptr [RBP + -0x3]
CVTSI2SS XMM1,EAX
MOVAPS XMM3,XMM2
SUBSS XMM3,XMM4
MULSS XMM1,XMM3
ADDSS XMM0,XMM1
CVTTSS2SI EAX,XMM0
MOV DL,AL
MOV RAX,qword ptr [RBP + -0x20]
MOV ECX,dword ptr [RBP + -0x30]
MOV ESI,dword ptr [RBP + -0xc]
IMUL ECX,ESI
MOV ESI,dword ptr [RBP + -0x34]
ADD ECX,ESI
MOVSXD RCX,ECX
MOV byte ptr [RAX + RCX*0x4 + 0x1],DL
MOVZX EAX,byte ptr [RBP + -0x6]
CVTSI2SS XMM0,EAX
MOVSS XMM3,dword ptr [RBP + -0x3c]
MULSS XMM0,XMM3
MOVZX EAX,byte ptr [RBP + -0x2]
CVTSI2SS XMM1,EAX
SUBSS XMM2,XMM3
MULSS XMM1,XMM2
ADDSS XMM0,XMM1
CVTTSS2SI EAX,XMM0
MOV DL,AL
MOV RAX,qword ptr [RBP + -0x20]
MOV ECX,dword ptr [RBP + -0x30]
MOV ESI,dword ptr [RBP + -0xc]
IMUL ECX,ESI
MOV ESI,dword ptr [RBP + -0x34]
ADD ECX,ESI
MOVSXD RCX,ECX
MOV byte ptr [RAX + RCX*0x4 + 0x2],DL
MOVZX EAX,byte ptr [RBP + -0x5]
CVTSI2SS XMM0,EAX
MOVSS XMM1,dword ptr [RBP + -0x3c]
MULSS XMM0,XMM1
MOVZX EAX,byte ptr [RBP + -0x1]
CVTSI2SS XMM1,EAX
MOVSS XMM2,dword ptr [0x002a40f4]
SUBSS XMM2,dword ptr [RBP + -0x3c]
MULSS XMM1,XMM2
ADDSS XMM0,XMM1
CVTTSS2SI EAX,XMM0
MOV DL,AL
MOV RAX,qword ptr [RBP + -0x20]
MOV ECX,dword ptr [RBP + -0x30]
IMUL ECX,dword ptr [RBP + -0xc]
ADD ECX,dword ptr [RBP + -0x34]
MOVSXD RCX,ECX
MOV byte ptr [RAX + RCX*0x4 + 0x3],DL
MOV EAX,dword ptr [RBP + -0x34]
ADD EAX,0x1
MOV dword ptr [RBP + -0x34],EAX
JMP 0x001fd35f
LAB_001fd526:
JMP 0x001fd528
LAB_001fd528:
MOV EAX,dword ptr [RBP + -0x30]
ADD EAX,0x1
MOV dword ptr [RBP + -0x30],EAX
JMP 0x001fd34c
LAB_001fd536:
MOV RAX,qword ptr [RBP + -0x48]
MOV RCX,qword ptr [RBP + -0x50]
MOV RDX,qword ptr [RBP + -0x20]
MOV qword ptr [RCX],RDX
MOV EDX,dword ptr [RBP + -0xc]
MOV dword ptr [RCX + 0x8],EDX
MOV EDX,dword ptr [RBP + -0x10]
MOV dword ptr [RCX + 0xc],EDX
MOV dword ptr [RCX + 0x10],0x1
MOV dword ptr [RCX + 0x14],0x7
ADD RSP,0x60
POP RBP
RET
|
int8 *
GenImageGradientRadial
(float param_1,int8 *param_2,int param_3,int param_4,uint param_5,uint param_6)
{
float fVar1;
void *pvVar2;
float fVar3;
float fVar4;
float fVar5;
double dVar6;
float local_5c;
int local_3c;
int local_38;
pvVar2 = malloc((long)(param_3 * param_4) << 2);
if (param_3 < param_4) {
local_5c = (float)param_3;
}
else {
local_5c = (float)param_4;
}
local_5c = local_5c / DAT_002a801c;
fVar3 = (float)param_3 / DAT_002a801c;
fVar4 = (float)param_4 / DAT_002a801c;
for (local_38 = 0; local_38 < param_4; local_38 = local_38 + 1) {
for (local_3c = 0; local_3c < param_3; local_3c = local_3c + 1) {
fVar5 = hypotf((float)local_3c - fVar3,(float)local_38 - fVar4);
fVar1 = DAT_002a40f4;
fVar5 = (fVar5 - local_5c * param_1) / (local_5c * (DAT_002a40f4 - param_1));
if (fVar5 <= 0.0) {
fVar5 = 0.0;
}
dVar6 = (double)fVar5;
if (DAT_002a8078 <= (double)fVar5) {
dVar6 = DAT_002a8078;
}
fVar5 = (float)dVar6;
*(char *)((long)pvVar2 + (long)(local_38 * param_3 + local_3c) * 4) =
(char)(int)((float)(param_6 & 0xff) * fVar5 +
(float)(param_5 & 0xff) * (DAT_002a40f4 - fVar5));
*(char *)((long)pvVar2 + (long)(local_38 * param_3 + local_3c) * 4 + 1) =
(char)(int)((float)(param_6 >> 8 & 0xff) * fVar5 +
(float)(param_5 >> 8 & 0xff) * (fVar1 - fVar5));
*(char *)((long)pvVar2 + (long)(local_38 * param_3 + local_3c) * 4 + 2) =
(char)(int)((float)(param_6 >> 0x10 & 0xff) * fVar5 +
(float)(param_5 >> 0x10 & 0xff) * (fVar1 - fVar5));
*(char *)((long)pvVar2 + (long)(local_38 * param_3 + local_3c) * 4 + 3) =
(char)(int)((float)(param_6 >> 0x18) * fVar5 +
(float)(param_5 >> 0x18) * (DAT_002a40f4 - fVar5));
}
}
*param_2 = pvVar2;
*(int *)(param_2 + 1) = param_3;
*(int *)((long)param_2 + 0xc) = param_4;
*(int4 *)(param_2 + 2) = 1;
*(int4 *)((long)param_2 + 0x14) = 7;
return param_2;
}
|
|
58,054
|
mi_test_if_changed
|
eloqsql/storage/myisam/mi_locking.c
|
int _mi_test_if_changed(register MI_INFO *info)
{
MYISAM_SHARE *share=info->s;
if (share->state.process != share->last_process ||
share->state.unique != info->last_unique ||
share->state.update_count != info->last_loop)
{ /* Keyfile has changed */
DBUG_PRINT("info",("index file changed"));
if (share->state.process != share->this_process)
(void) flush_key_blocks(share->key_cache, share->kfile,
&share->dirty_part_map, FLUSH_RELEASE);
share->last_process=share->state.process;
info->last_unique= share->state.unique;
info->last_loop= share->state.update_count;
info->update|= HA_STATE_WRITTEN; /* Must use file on next */
info->data_changed= 1; /* For mi_is_changed */
return 1;
}
return (!(info->update & HA_STATE_AKTIV) ||
(info->update & (HA_STATE_WRITTEN | HA_STATE_DELETED |
HA_STATE_KEY_CHANGED)));
}
|
O3
|
c
|
mi_test_if_changed:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
movq %rdi, %rbx
movq (%rdi), %r14
movq 0x68(%r14), %rax
cmpq 0x308(%r14), %rax
jne 0x7c54f
movq 0x70(%r14), %rcx
cmpq 0x158(%rbx), %rcx
jne 0x7c54f
movq 0x78(%r14), %rcx
cmpq 0x168(%rbx), %rcx
jne 0x7c54f
movl $0x8e, %ecx
andl 0x1d0(%rbx), %ecx
xorl %eax, %eax
cmpl $0x2, %ecx
setne %al
jmp 0x7c5ae
cmpq 0x300(%r14), %rax
je 0x7c57b
movq 0x278(%r14), %rdi
movl 0x350(%r14), %esi
leaq 0x280(%r14), %rdx
movl $0x1, %ecx
callq 0x985f1
movq 0x68(%r14), %rax
movq %rax, 0x308(%r14)
movq 0x70(%r14), %rax
movq %rax, 0x158(%rbx)
movq 0x78(%r14), %rax
movq %rax, 0x168(%rbx)
orb $0x4, 0x1d0(%rbx)
movl $0x1, 0x1fc(%rbx)
movl $0x1, %eax
popq %rbx
popq %r14
popq %rbp
retq
|
_mi_test_if_changed:
push rbp
mov rbp, rsp
push r14
push rbx
mov rbx, rdi
mov r14, [rdi]
mov rax, [r14+68h]
cmp rax, [r14+308h]
jnz short loc_7C54F
mov rcx, [r14+70h]
cmp rcx, [rbx+158h]
jnz short loc_7C54F
mov rcx, [r14+78h]
cmp rcx, [rbx+168h]
jnz short loc_7C54F
mov ecx, 8Eh
and ecx, [rbx+1D0h]
xor eax, eax
cmp ecx, 2
setnz al
jmp short loc_7C5AE
loc_7C54F:
cmp rax, [r14+300h]
jz short loc_7C57B
mov rdi, [r14+278h]
mov esi, [r14+350h]
lea rdx, [r14+280h]
mov ecx, 1
call flush_key_blocks
mov rax, [r14+68h]
loc_7C57B:
mov [r14+308h], rax
mov rax, [r14+70h]
mov [rbx+158h], rax
mov rax, [r14+78h]
mov [rbx+168h], rax
or byte ptr [rbx+1D0h], 4
mov dword ptr [rbx+1FCh], 1
mov eax, 1
loc_7C5AE:
pop rbx
pop r14
pop rbp
retn
|
_BOOL8 mi_test_if_changed(long long *a1)
{
long long v1; // r14
long long v2; // rax
v1 = *a1;
v2 = *(_QWORD *)(*a1 + 104);
if ( v2 == *(_QWORD *)(*a1 + 776) && *(_QWORD *)(v1 + 112) == a1[43] && *(_QWORD *)(v1 + 120) == a1[45] )
return (a1[58] & 0x8E) != 2;
if ( v2 != *(_QWORD *)(v1 + 768) )
{
flush_key_blocks(*(_QWORD *)(v1 + 632), *(unsigned int *)(v1 + 848), v1 + 640, 1LL);
v2 = *(_QWORD *)(v1 + 104);
}
*(_QWORD *)(v1 + 776) = v2;
a1[43] = *(_QWORD *)(v1 + 112);
a1[45] = *(_QWORD *)(v1 + 120);
*((_BYTE *)a1 + 464) |= 4u;
*((_DWORD *)a1 + 127) = 1;
return 1LL;
}
|
_mi_test_if_changed:
PUSH RBP
MOV RBP,RSP
PUSH R14
PUSH RBX
MOV RBX,RDI
MOV R14,qword ptr [RDI]
MOV RAX,qword ptr [R14 + 0x68]
CMP RAX,qword ptr [R14 + 0x308]
JNZ 0x0017c54f
MOV RCX,qword ptr [R14 + 0x70]
CMP RCX,qword ptr [RBX + 0x158]
JNZ 0x0017c54f
MOV RCX,qword ptr [R14 + 0x78]
CMP RCX,qword ptr [RBX + 0x168]
JNZ 0x0017c54f
MOV ECX,0x8e
AND ECX,dword ptr [RBX + 0x1d0]
XOR EAX,EAX
CMP ECX,0x2
SETNZ AL
JMP 0x0017c5ae
LAB_0017c54f:
CMP RAX,qword ptr [R14 + 0x300]
JZ 0x0017c57b
MOV RDI,qword ptr [R14 + 0x278]
MOV ESI,dword ptr [R14 + 0x350]
LEA RDX,[R14 + 0x280]
MOV ECX,0x1
CALL 0x001985f1
MOV RAX,qword ptr [R14 + 0x68]
LAB_0017c57b:
MOV qword ptr [R14 + 0x308],RAX
MOV RAX,qword ptr [R14 + 0x70]
MOV qword ptr [RBX + 0x158],RAX
MOV RAX,qword ptr [R14 + 0x78]
MOV qword ptr [RBX + 0x168],RAX
OR byte ptr [RBX + 0x1d0],0x4
MOV dword ptr [RBX + 0x1fc],0x1
MOV EAX,0x1
LAB_0017c5ae:
POP RBX
POP R14
POP RBP
RET
|
bool _mi_test_if_changed(long *param_1)
{
long lVar1;
long lVar2;
bool bVar3;
lVar1 = *param_1;
lVar2 = *(long *)(lVar1 + 0x68);
if (((lVar2 == *(long *)(lVar1 + 0x308)) && (*(long *)(lVar1 + 0x70) == param_1[0x2b])) &&
(*(long *)(lVar1 + 0x78) == param_1[0x2d])) {
bVar3 = (*(uint *)(param_1 + 0x3a) & 0x8e) != 2;
}
else {
if (lVar2 != *(long *)(lVar1 + 0x300)) {
flush_key_blocks(*(int8 *)(lVar1 + 0x278),*(int4 *)(lVar1 + 0x350),lVar1 + 0x280,1
);
lVar2 = *(long *)(lVar1 + 0x68);
}
*(long *)(lVar1 + 0x308) = lVar2;
param_1[0x2b] = *(long *)(lVar1 + 0x70);
param_1[0x2d] = *(long *)(lVar1 + 0x78);
*(byte *)(param_1 + 0x3a) = *(byte *)(param_1 + 0x3a) | 4;
*(int4 *)((long)param_1 + 0x1fc) = 1;
bVar3 = true;
}
return bVar3;
}
|
|
58,055
|
Cache::writeBlockToLowerLevel(Cache::Block&)
|
DanielDanyang[P]CSC3050-2025-Spring-Project-4/src/Cache.cpp
|
void Cache::writeBlockToLowerLevel(Cache::Block &b) {
uint32_t addrBegin = this->getAddr(b);
if (this->lowerCache == nullptr) {
for (uint32_t i = 0; i < b.size; ++i) {
this->memory->setByteNoCache(addrBegin + i, b.data[i]);
}
} else {
for (uint32_t i = 0; i < b.size; ++i) {
this->lowerCache->setByte(addrBegin + i, b.data[i]);
}
}
}
|
O0
|
cpp
|
Cache::writeBlockToLowerLevel(Cache::Block&):
subq $0x48, %rsp
movq %rdi, 0x40(%rsp)
movq %rsi, 0x38(%rsp)
movq 0x40(%rsp), %rdi
movq %rdi, 0x20(%rsp)
movq 0x38(%rsp), %rsi
callq 0x54c0
movl %eax, %ecx
movq 0x20(%rsp), %rax
movl %ecx, 0x34(%rsp)
cmpq $0x0, 0x30(%rax)
jne 0x5448
movl $0x0, 0x30(%rsp)
movl 0x30(%rsp), %eax
movq 0x38(%rsp), %rcx
cmpl 0xc(%rcx), %eax
jae 0x5446
movq 0x20(%rsp), %rax
movq 0x28(%rax), %rax
movq %rax, 0x10(%rsp)
movl 0x34(%rsp), %eax
addl 0x30(%rsp), %eax
movl %eax, 0x1c(%rsp)
movq 0x38(%rsp), %rdi
addq $0x18, %rdi
movl 0x30(%rsp), %eax
movl %eax, %esi
callq 0x5640
movq 0x10(%rsp), %rdi
movl 0x1c(%rsp), %esi
movzbl (%rax), %edx
callq 0x3670
movl 0x30(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x30(%rsp)
jmp 0x53ec
jmp 0x54ac
movl $0x0, 0x2c(%rsp)
movl 0x2c(%rsp), %eax
movq 0x38(%rsp), %rcx
cmpl 0xc(%rcx), %eax
jae 0x54aa
movq 0x20(%rsp), %rax
movq 0x30(%rax), %rax
movq %rax, (%rsp)
movl 0x34(%rsp), %eax
addl 0x2c(%rsp), %eax
movl %eax, 0xc(%rsp)
movq 0x38(%rsp), %rdi
addq $0x18, %rdi
movl 0x2c(%rsp), %eax
movl %eax, %esi
callq 0x5640
movq (%rsp), %rdi
movl 0xc(%rsp), %esi
xorl %ecx, %ecx
movzbl (%rax), %edx
callq 0x4d50
movl 0x2c(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x2c(%rsp)
jmp 0x5450
jmp 0x54ac
addq $0x48, %rsp
retq
nopw %cs:(%rax,%rax)
|
_ZN5Cache22writeBlockToLowerLevelERNS_5BlockE:
sub rsp, 48h
mov [rsp+48h+var_8], rdi
mov [rsp+48h+var_10], rsi
mov rdi, [rsp+48h+var_8]
mov [rsp+48h+var_28], rdi
mov rsi, [rsp+48h+var_10]
call _ZN5Cache7getAddrERNS_5BlockE; Cache::getAddr(Cache::Block &)
mov ecx, eax
mov rax, [rsp+48h+var_28]
mov [rsp+48h+var_14], ecx
cmp qword ptr [rax+30h], 0
jnz short loc_5448
mov [rsp+48h+var_18], 0
loc_53EC:
mov eax, [rsp+48h+var_18]
mov rcx, [rsp+48h+var_10]
cmp eax, [rcx+0Ch]
jnb short loc_5446
mov rax, [rsp+48h+var_28]
mov rax, [rax+28h]
mov [rsp+48h+var_38], rax
mov eax, [rsp+48h+var_14]
add eax, [rsp+48h+var_18]
mov [rsp+48h+var_2C], eax
mov rdi, [rsp+48h+var_10]
add rdi, 18h
mov eax, [rsp+48h+var_18]
mov esi, eax
call _ZNSt6vectorIhSaIhEEixEm; std::vector<uchar>::operator[](ulong)
mov rdi, [rsp+48h+var_38]; this
mov esi, [rsp+48h+var_2C]; unsigned int
movzx edx, byte ptr [rax]; unsigned __int8
call _ZN13MemoryManager14setByteNoCacheEjh; MemoryManager::setByteNoCache(uint,uchar)
mov eax, [rsp+48h+var_18]
add eax, 1
mov [rsp+48h+var_18], eax
jmp short loc_53EC
loc_5446:
jmp short loc_54AC
loc_5448:
mov [rsp+48h+var_1C], 0
loc_5450:
mov eax, [rsp+48h+var_1C]
mov rcx, [rsp+48h+var_10]
cmp eax, [rcx+0Ch]
jnb short loc_54AA
mov rax, [rsp+48h+var_28]
mov rax, [rax+30h]
mov [rsp+48h+var_48], rax
mov eax, [rsp+48h+var_14]
add eax, [rsp+48h+var_1C]
mov [rsp+48h+var_3C], eax
mov rdi, [rsp+48h+var_10]
add rdi, 18h
mov eax, [rsp+48h+var_1C]
mov esi, eax
call _ZNSt6vectorIhSaIhEEixEm; std::vector<uchar>::operator[](ulong)
mov rdi, [rsp+48h+var_48]; this
mov esi, [rsp+48h+var_3C]; unsigned int
xor ecx, ecx; unsigned int *
movzx edx, byte ptr [rax]; unsigned __int8
call _ZN5Cache7setByteEjhPj; Cache::setByte(uint,uchar,uint *)
mov eax, [rsp+48h+var_1C]
add eax, 1
mov [rsp+48h+var_1C], eax
jmp short loc_5450
loc_54AA:
jmp short $+2
loc_54AC:
add rsp, 48h
retn
|
long long Cache::writeBlockToLowerLevel(
MemoryManager **this,
Cache::Block *a2,
__m128 a3,
__m128 a4,
__m128 a5,
__m128 a6,
double a7,
double a8,
__m128 a9,
__m128 a10)
{
long long result; // rax
char *v11; // rax
double v12; // xmm4_8
double v13; // xmm5_8
char *v14; // rax
double v15; // xmm4_8
double v16; // xmm5_8
Cache *v17; // [rsp+0h] [rbp-48h]
MemoryManager *v18; // [rsp+10h] [rbp-38h]
unsigned int i; // [rsp+2Ch] [rbp-1Ch]
unsigned int j; // [rsp+30h] [rbp-18h]
int Addr; // [rsp+34h] [rbp-14h]
Addr = Cache::getAddr((Cache *)this, a2);
if ( this[6] )
{
for ( i = 0; ; ++i )
{
result = i;
if ( i >= *((_DWORD *)a2 + 3) )
break;
v17 = this[6];
v14 = (char *)std::vector<unsigned char>::operator[]((char *)a2 + 24, i);
Cache::setByte(v17, i + Addr, *v14, 0LL, a3, a4, a5, a6, v15, v16, a9, a10);
}
}
else
{
for ( j = 0; ; ++j )
{
result = j;
if ( j >= *((_DWORD *)a2 + 3) )
break;
v18 = this[5];
v11 = (char *)std::vector<unsigned char>::operator[]((char *)a2 + 24, j);
MemoryManager::setByteNoCache(v18, j + Addr, *v11, a3, a4, a5, a6, v12, v13, a9, a10);
}
}
return result;
}
|
writeBlockToLowerLevel:
SUB RSP,0x48
MOV qword ptr [RSP + 0x40],RDI
MOV qword ptr [RSP + 0x38],RSI
MOV RDI,qword ptr [RSP + 0x40]
MOV qword ptr [RSP + 0x20],RDI
MOV RSI,qword ptr [RSP + 0x38]
CALL 0x001054c0
MOV ECX,EAX
MOV RAX,qword ptr [RSP + 0x20]
MOV dword ptr [RSP + 0x34],ECX
CMP qword ptr [RAX + 0x30],0x0
JNZ 0x00105448
MOV dword ptr [RSP + 0x30],0x0
LAB_001053ec:
MOV EAX,dword ptr [RSP + 0x30]
MOV RCX,qword ptr [RSP + 0x38]
CMP EAX,dword ptr [RCX + 0xc]
JNC 0x00105446
MOV RAX,qword ptr [RSP + 0x20]
MOV RAX,qword ptr [RAX + 0x28]
MOV qword ptr [RSP + 0x10],RAX
MOV EAX,dword ptr [RSP + 0x34]
ADD EAX,dword ptr [RSP + 0x30]
MOV dword ptr [RSP + 0x1c],EAX
MOV RDI,qword ptr [RSP + 0x38]
ADD RDI,0x18
MOV EAX,dword ptr [RSP + 0x30]
MOV ESI,EAX
CALL 0x00105640
MOV RDI,qword ptr [RSP + 0x10]
MOV ESI,dword ptr [RSP + 0x1c]
MOVZX EDX,byte ptr [RAX]
CALL 0x00103670
MOV EAX,dword ptr [RSP + 0x30]
ADD EAX,0x1
MOV dword ptr [RSP + 0x30],EAX
JMP 0x001053ec
LAB_00105446:
JMP 0x001054ac
LAB_00105448:
MOV dword ptr [RSP + 0x2c],0x0
LAB_00105450:
MOV EAX,dword ptr [RSP + 0x2c]
MOV RCX,qword ptr [RSP + 0x38]
CMP EAX,dword ptr [RCX + 0xc]
JNC 0x001054aa
MOV RAX,qword ptr [RSP + 0x20]
MOV RAX,qword ptr [RAX + 0x30]
MOV qword ptr [RSP],RAX
MOV EAX,dword ptr [RSP + 0x34]
ADD EAX,dword ptr [RSP + 0x2c]
MOV dword ptr [RSP + 0xc],EAX
MOV RDI,qword ptr [RSP + 0x38]
ADD RDI,0x18
MOV EAX,dword ptr [RSP + 0x2c]
MOV ESI,EAX
CALL 0x00105640
MOV RDI,qword ptr [RSP]
MOV ESI,dword ptr [RSP + 0xc]
XOR ECX,ECX
MOVZX EDX,byte ptr [RAX]
CALL 0x00104d50
MOV EAX,dword ptr [RSP + 0x2c]
ADD EAX,0x1
MOV dword ptr [RSP + 0x2c],EAX
JMP 0x00105450
LAB_001054aa:
JMP 0x001054ac
LAB_001054ac:
ADD RSP,0x48
RET
|
/* Cache::writeBlockToLowerLevel(Cache::Block&) */
void __thiscall Cache::writeBlockToLowerLevel(Cache *this,Block *param_1)
{
MemoryManager *this_00;
Cache *this_01;
int iVar1;
uchar *puVar2;
uint local_1c;
uint local_18;
iVar1 = getAddr(this,param_1);
if (*(long *)(this + 0x30) == 0) {
for (local_18 = 0; local_18 < *(uint *)(param_1 + 0xc); local_18 = local_18 + 1) {
this_00 = *(MemoryManager **)(this + 0x28);
puVar2 = (uchar *)std::vector<unsigned_char,std::allocator<unsigned_char>>::operator[]
((vector<unsigned_char,std::allocator<unsigned_char>> *)
(param_1 + 0x18),(ulong)local_18);
MemoryManager::setByteNoCache(this_00,iVar1 + local_18,*puVar2);
}
}
else {
for (local_1c = 0; local_1c < *(uint *)(param_1 + 0xc); local_1c = local_1c + 1) {
this_01 = *(Cache **)(this + 0x30);
puVar2 = (uchar *)std::vector<unsigned_char,std::allocator<unsigned_char>>::operator[]
((vector<unsigned_char,std::allocator<unsigned_char>> *)
(param_1 + 0x18),(ulong)local_1c);
setByte(this_01,iVar1 + local_1c,*puVar2,(uint *)0x0);
}
}
return;
}
|
|
58,056
|
Cache::writeBlockToLowerLevel(Cache::Block&)
|
DanielDanyang[P]CSC3050-2025-Spring-Project-4/src/Cache.cpp
|
void Cache::writeBlockToLowerLevel(Cache::Block &b) {
uint32_t addrBegin = this->getAddr(b);
if (this->lowerCache == nullptr) {
for (uint32_t i = 0; i < b.size; ++i) {
this->memory->setByteNoCache(addrBegin + i, b.data[i]);
}
} else {
for (uint32_t i = 0; i < b.size; ++i) {
this->lowerCache->setByte(addrBegin + i, b.data[i]);
}
}
}
|
O1
|
cpp
|
Cache::writeBlockToLowerLevel(Cache::Block&):
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %rbx
movq %rdi, %r14
callq 0x41a0
cmpq $0x0, 0x30(%r14)
movl 0xc(%rbx), %ecx
je 0x4168
testl %ecx, %ecx
je 0x4193
movl %eax, %r15d
xorl %r12d, %r12d
movq 0x30(%r14), %rdi
leal (%r15,%r12), %esi
movq 0x18(%rbx), %rax
movzbl (%rax,%r12), %edx
xorl %ecx, %ecx
callq 0x3d16
incq %r12
movl 0xc(%rbx), %eax
cmpq %rax, %r12
jb 0x4143
jmp 0x4193
testl %ecx, %ecx
je 0x4193
movl %eax, %r15d
xorl %r12d, %r12d
movq 0x28(%r14), %rdi
leal (%r15,%r12), %esi
movq 0x18(%rbx), %rax
movzbl (%rax,%r12), %edx
callq 0x2efc
incq %r12
movl 0xc(%rbx), %eax
cmpq %rax, %r12
jb 0x4172
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
nop
|
_ZN5Cache22writeBlockToLowerLevelERNS_5BlockE:
push r15
push r14
push r12
push rbx
push rax
mov rbx, rsi
mov r14, rdi
call _ZN5Cache7getAddrERNS_5BlockE; Cache::getAddr(Cache::Block &)
cmp qword ptr [r14+30h], 0
mov ecx, [rbx+0Ch]
jz short loc_4168
test ecx, ecx
jz short loc_4193
mov r15d, eax
xor r12d, r12d
loc_4143:
mov rdi, [r14+30h]; this
lea esi, [r15+r12]; unsigned int
mov rax, [rbx+18h]
movzx edx, byte ptr [rax+r12]; unsigned __int8
xor ecx, ecx; unsigned int *
call _ZN5Cache7setByteEjhPj; Cache::setByte(uint,uchar,uint *)
inc r12
mov eax, [rbx+0Ch]
cmp r12, rax
jb short loc_4143
jmp short loc_4193
loc_4168:
test ecx, ecx
jz short loc_4193
mov r15d, eax
xor r12d, r12d
loc_4172:
mov rdi, [r14+28h]; this
lea esi, [r15+r12]; unsigned int
mov rax, [rbx+18h]
movzx edx, byte ptr [rax+r12]; unsigned __int8
call _ZN13MemoryManager14setByteNoCacheEjh; MemoryManager::setByteNoCache(uint,uchar)
inc r12
mov eax, [rbx+0Ch]
cmp r12, rax
jb short loc_4172
loc_4193:
add rsp, 8
pop rbx
pop r12
pop r14
pop r15
retn
|
unsigned long long Cache::writeBlockToLowerLevel(
long long a1,
long long a2,
__m128 a3,
__m128 a4,
__m128 a5,
__m128 a6,
double a7,
double a8,
__m128 a9,
__m128 a10)
{
unsigned long long result; // rax
long long v11; // r8
long long v12; // r9
__m128 v13; // xmm4
__m128 v14; // xmm5
long long v15; // rcx
int v16; // r15d
unsigned long long v17; // r12
int v18; // r15d
unsigned long long v19; // r12
result = Cache::getAddr(a1);
v15 = *(unsigned int *)(a2 + 12);
if ( *(_QWORD *)(a1 + 48) )
{
if ( (_DWORD)v15 )
{
v16 = result;
v17 = 0LL;
do
{
Cache::setByte(
*(Cache **)(a1 + 48),
v16 + v17,
*(_BYTE *)(*(_QWORD *)(a2 + 24) + v17),
0LL,
*(double *)a3.m128_u64,
*(double *)a4.m128_u64,
a5,
a6,
*(double *)v13.m128_u64,
*(double *)v14.m128_u64,
a9,
a10);
++v17;
result = *(unsigned int *)(a2 + 12);
}
while ( v17 < result );
}
}
else if ( (_DWORD)v15 )
{
v18 = result;
v19 = 0LL;
do
{
MemoryManager::setByteNoCache(
*(MemoryManager **)(a1 + 40),
(unsigned int)(v18 + v19),
*(unsigned __int8 *)(*(_QWORD *)(a2 + 24) + v19),
v15,
v11,
v12,
a3,
a4,
a5,
a6,
v13,
v14,
a9,
a10);
++v19;
result = *(unsigned int *)(a2 + 12);
}
while ( v19 < result );
}
return result;
}
|
writeBlockToLowerLevel:
PUSH R15
PUSH R14
PUSH R12
PUSH RBX
PUSH RAX
MOV RBX,RSI
MOV R14,RDI
CALL 0x001041a0
CMP qword ptr [R14 + 0x30],0x0
MOV ECX,dword ptr [RBX + 0xc]
JZ 0x00104168
TEST ECX,ECX
JZ 0x00104193
MOV R15D,EAX
XOR R12D,R12D
LAB_00104143:
MOV RDI,qword ptr [R14 + 0x30]
LEA ESI,[R15 + R12*0x1]
MOV RAX,qword ptr [RBX + 0x18]
MOVZX EDX,byte ptr [RAX + R12*0x1]
XOR ECX,ECX
CALL 0x00103d16
INC R12
MOV EAX,dword ptr [RBX + 0xc]
CMP R12,RAX
JC 0x00104143
JMP 0x00104193
LAB_00104168:
TEST ECX,ECX
JZ 0x00104193
MOV R15D,EAX
XOR R12D,R12D
LAB_00104172:
MOV RDI,qword ptr [R14 + 0x28]
LEA ESI,[R15 + R12*0x1]
MOV RAX,qword ptr [RBX + 0x18]
MOVZX EDX,byte ptr [RAX + R12*0x1]
CALL 0x00102efc
INC R12
MOV EAX,dword ptr [RBX + 0xc]
CMP R12,RAX
JC 0x00104172
LAB_00104193:
ADD RSP,0x8
POP RBX
POP R12
POP R14
POP R15
RET
|
/* Cache::writeBlockToLowerLevel(Cache::Block&) */
void __thiscall Cache::writeBlockToLowerLevel(Cache *this,Block *param_1)
{
int iVar1;
ulong uVar2;
iVar1 = getAddr(this,param_1);
if (*(long *)(this + 0x30) == 0) {
if (*(int *)(param_1 + 0xc) != 0) {
uVar2 = 0;
do {
MemoryManager::setByteNoCache
(*(MemoryManager **)(this + 0x28),iVar1 + (int)uVar2,
*(uchar *)(*(long *)(param_1 + 0x18) + uVar2));
uVar2 = uVar2 + 1;
} while (uVar2 < *(uint *)(param_1 + 0xc));
}
}
else if (*(int *)(param_1 + 0xc) != 0) {
uVar2 = 0;
do {
setByte(*(Cache **)(this + 0x30),iVar1 + (int)uVar2,
*(uchar *)(*(long *)(param_1 + 0x18) + uVar2),(uint *)0x0);
uVar2 = uVar2 + 1;
} while (uVar2 < *(uint *)(param_1 + 0xc));
}
return;
}
|
|
58,057
|
ankerl::nanobench::detail::getEnv(char const*)
|
BadAccessGuards/build_O3/_deps/nanobench-src/src/include/nanobench.h
|
char const* getEnv(char const* name) {
# if defined(_MSC_VER)
# pragma warning(push)
# pragma warning(disable : 4996) // getenv': This function or variable may be unsafe.
# endif
return std::getenv(name); // NOLINT(concurrency-mt-unsafe)
# if defined(_MSC_VER)
# pragma warning(pop)
# endif
}
|
O3
|
c
|
ankerl::nanobench::detail::getEnv(char const*):
pushq %r15
pushq %r14
pushq %rbx
subq $0x20, %rsp
leaq 0xde49(%rip), %rdi # 0x162c3
callq 0x33a0
testq %rax, %rax
je 0x84d0
movq %rax, %rbx
leaq 0x10(%rsp), %r15
movq %r15, -0x10(%r15)
leaq 0xde48(%rip), %rsi # 0x162df
leaq 0xde42(%rip), %rdx # 0x162e0
movq %rsp, %r14
movq %r14, %rdi
callq 0xe794
movq %r14, %rdi
movq %rbx, %rsi
callq 0x30d0
testl %eax, %eax
sete %bl
movq (%r14), %rdi
cmpq %r15, %rdi
je 0x84d2
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x3300
jmp 0x84d2
movb $0x1, %bl
movl %ebx, %eax
addq $0x20, %rsp
popq %rbx
popq %r14
popq %r15
retq
|
_ZN6ankerl9nanobench6detail17isWarningsEnabledEv:
push r15
push r14
push rbx
sub rsp, 20h
lea rdi, aNanobenchSuppr; "NANOBENCH_SUPPRESS_WARNINGS"
call _getenv
test rax, rax
jz short loc_84D0
mov rbx, rax
lea r15, [rsp+38h+var_28]
mov [r15-10h], r15
lea rsi, a0; "0"
lea rdx, a0+1; ""
mov r14, rsp
mov rdi, r14
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, r14
mov rsi, rbx
call __ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE7compareEPKc; std::string::compare(char const*)
test eax, eax
setz bl
mov rdi, [r14]; void *
cmp rdi, r15
jz short loc_84D2
mov rsi, [rsp+38h+var_28]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
jmp short loc_84D2
loc_84D0:
mov bl, 1
loc_84D2:
mov eax, ebx
add rsp, 20h
pop rbx
pop r14
pop r15
retn
|
long long ankerl::nanobench::detail::isWarningsEnabled(
ankerl::nanobench::detail *this,
const char *a2,
double a3)
{
long long v3; // rbx
long long v4; // rax
void *v6[2]; // [rsp+0h] [rbp-38h] BYREF
_QWORD v7[5]; // [rsp+10h] [rbp-28h] BYREF
v4 = getenv((ankerl::nanobench::detail *)"NANOBENCH_SUPPRESS_WARNINGS", a2);
if ( v4 )
{
v3 = v4;
v6[0] = v7;
std::string::_M_construct<char const*>(v6, "0", "");
LOBYTE(v3) = (unsigned int)std::string::compare(v6, v3, a3) == 0;
if ( v6[0] != v7 )
operator delete(v6[0], v7[0] + 1LL);
}
else
{
LOBYTE(v3) = 1;
}
return (unsigned int)v3;
}
|
isWarningsEnabled:
PUSH R15
PUSH R14
PUSH RBX
SUB RSP,0x20
LEA RDI,[0x1162c3]
CALL 0x001033a0
TEST RAX,RAX
JZ 0x001084d0
MOV RBX,RAX
LEA R15,[RSP + 0x10]
MOV qword ptr [R15 + -0x10],R15
LEA RSI,[0x1162df]
LEA RDX,[0x1162e0]
MOV R14,RSP
MOV RDI,R14
CALL 0x0010e794
MOV RDI,R14
MOV RSI,RBX
CALL 0x001030d0
TEST EAX,EAX
SETZ BL
MOV RDI,qword ptr [R14]
CMP RDI,R15
JZ 0x001084d2
MOV RSI,qword ptr [RSP + 0x10]
INC RSI
CALL 0x00103300
JMP 0x001084d2
LAB_001084d0:
MOV BL,0x1
LAB_001084d2:
MOV EAX,EBX
ADD RSP,0x20
POP RBX
POP R14
POP R15
RET
|
/* ankerl::nanobench::detail::isWarningsEnabled() */
ulong ankerl::nanobench::detail::isWarningsEnabled(void)
{
int iVar1;
char *pcVar2;
int8 unaff_RBX;
ulong uVar3;
long *local_38 [2];
long local_28 [2];
pcVar2 = getenv("NANOBENCH_SUPPRESS_WARNINGS");
if (pcVar2 == (char *)0x0) {
uVar3 = CONCAT71((int7)((ulong)unaff_RBX >> 8),1);
}
else {
local_38[0] = local_28;
std::__cxx11::string::_M_construct<char_const*>(local_38,&DAT_001162df,&DAT_001162e0);
iVar1 = std::__cxx11::string::compare((char *)local_38);
uVar3 = CONCAT71((int7)((ulong)pcVar2 >> 8),iVar1 == 0);
if (local_38[0] != local_28) {
operator_delete(local_38[0],local_28[0] + 1);
}
}
return uVar3 & 0xffffffff;
}
|
|
58,058
|
google::protobuf::internal::ExtensionSet::GetMessage(int, google::protobuf::MessageLite const&) const
|
aimrt_mujoco_sim/_deps/protobuf-src/src/google/protobuf/extension_set.cc
|
const MessageLite& ExtensionSet::GetMessage(
int number, const MessageLite& default_value) const {
const Extension* extension = FindOrNull(number);
if (extension == nullptr) {
// Not present. Return the default value.
return default_value;
} else {
GOOGLE_DCHECK_TYPE(*extension, OPTIONAL_FIELD, MESSAGE);
if (extension->is_lazy) {
return extension->lazymessage_value->GetMessage(default_value, arena_);
} else {
return *extension->message_value;
}
}
}
|
O0
|
cpp
|
google::protobuf::internal::ExtensionSet::GetMessage(int, google::protobuf::MessageLite const&) const:
subq $0xe8, %rsp
movq %rdi, 0xd8(%rsp)
movl %esi, 0xd4(%rsp)
movq %rdx, 0xc8(%rsp)
movq 0xd8(%rsp), %rdi
movq %rdi, 0x28(%rsp)
movl 0xd4(%rsp), %esi
callq 0x186500
movq %rax, 0xc0(%rsp)
cmpq $0x0, 0xc0(%rsp)
jne 0x19567f
movq 0xc8(%rsp), %rax
movq %rax, 0xe0(%rsp)
jmp 0x195858
jmp 0x195681
xorl %eax, %eax
testb $0x1, %al
jne 0x19568c
jmp 0x195753
movq 0xc0(%rsp), %rax
movb 0x9(%rax), %dl
movl $0x1, %eax
xorl %ecx, %ecx
testb $0x1, %dl
cmovnel %ecx, %eax
movb $0x0, 0x87(%rsp)
cmpl $0x1, %eax
jne 0x1956b3
jmp 0x195709
leaq 0x619d2(%rip), %rdx # 0x1f708c
leaq 0x88(%rsp), %rdi
movq %rdi, 0x18(%rsp)
movl $0x3, %esi
movl $0x261, %ecx # imm = 0x261
callq 0x237e0
movq 0x18(%rsp), %rdi
movb $0x1, 0x87(%rsp)
leaq 0x61bd9(%rip), %rsi # 0x1f72c3
callq 0x230a0
movq %rax, 0x20(%rsp)
jmp 0x1956f6
movq 0x20(%rsp), %rsi
leaq 0x73(%rsp), %rdi
callq 0x23250
jmp 0x195707
jmp 0x195709
testb $0x1, 0x87(%rsp)
jne 0x195715
jmp 0x195722
leaq 0x88(%rsp), %rdi
callq 0x23820
jmp 0x195681
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x78(%rsp)
movl %eax, 0x74(%rsp)
testb $0x1, 0x87(%rsp)
jne 0x195741
jmp 0x19574e
leaq 0x88(%rsp), %rdi
callq 0x23820
jmp 0x195868
jmp 0x195755
xorl %eax, %eax
testb $0x1, %al
jne 0x195760
jmp 0x195808
movq 0xc0(%rsp), %rax
movzbl 0x8(%rax), %edi
callq 0x186f90
movb $0x0, 0x37(%rsp)
cmpl $0xa, %eax
jne 0x19577d
jmp 0x1957cd
leaq 0x61908(%rip), %rdx # 0x1f708c
leaq 0x38(%rsp), %rdi
movq %rdi, 0x8(%rsp)
movl $0x3, %esi
movl $0x261, %ecx # imm = 0x261
callq 0x237e0
movq 0x8(%rsp), %rdi
movb $0x1, 0x37(%rsp)
leaq 0x6220e(%rip), %rsi # 0x1f79bc
callq 0x230a0
movq %rax, 0x10(%rsp)
jmp 0x1957ba
movq 0x10(%rsp), %rsi
leaq 0x36(%rsp), %rdi
callq 0x23250
jmp 0x1957cb
jmp 0x1957cd
testb $0x1, 0x37(%rsp)
jne 0x1957d6
jmp 0x1957e0
leaq 0x38(%rsp), %rdi
callq 0x23820
jmp 0x195755
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x78(%rsp)
movl %eax, 0x74(%rsp)
testb $0x1, 0x37(%rsp)
jne 0x1957fc
jmp 0x195806
leaq 0x38(%rsp), %rdi
callq 0x23820
jmp 0x195868
movq 0xc0(%rsp), %rax
movb 0xa(%rax), %al
shrb $0x4, %al
testb $0x1, %al
je 0x195845
movq 0x28(%rsp), %rax
movq 0xc0(%rsp), %rcx
movq (%rcx), %rdi
movq 0xc8(%rsp), %rsi
movq (%rax), %rdx
movq (%rdi), %rax
callq *0x18(%rax)
movq %rax, 0xe0(%rsp)
jmp 0x195858
movq 0xc0(%rsp), %rax
movq (%rax), %rax
movq %rax, 0xe0(%rsp)
movq 0xe0(%rsp), %rax
addq $0xe8, %rsp
retq
movq 0x78(%rsp), %rdi
callq 0x13750
nopw %cs:(%rax,%rax)
|
_ZNK6google8protobuf8internal12ExtensionSet10GetMessageEiRKNS0_11MessageLiteE:
sub rsp, 0E8h
mov [rsp+0E8h+var_10], rdi
mov dword ptr [rsp+0E8h+var_14], esi
mov [rsp+0E8h+var_20], rdx
mov rdi, [rsp+0E8h+var_10]; this
mov [rsp+0E8h+var_C0], rdi
mov esi, dword ptr [rsp+0E8h+var_14]; unsigned __int8
call _ZNK6google8protobuf8internal12ExtensionSet10FindOrNullEi; google::protobuf::internal::ExtensionSet::FindOrNull(int)
mov [rsp+0E8h+var_28], rax
cmp [rsp+0E8h+var_28], 0
jnz short loc_19567F
mov rax, [rsp+0E8h+var_20]
mov [rsp+0E8h+var_8], rax
jmp loc_195858
loc_19567F:
jmp short $+2
loc_195681:
xor eax, eax
test al, 1
jnz short loc_19568C
jmp loc_195753
loc_19568C:
mov rax, [rsp+0E8h+var_28]
mov dl, [rax+9]
mov eax, 1
xor ecx, ecx
test dl, 1
cmovnz eax, ecx
mov [rsp+0E8h+var_61], 0
cmp eax, 1
jnz short loc_1956B3
jmp short loc_195709
loc_1956B3:
lea rdx, aWorkspaceLlm4b_39; "/workspace/llm4binary/github2025/aimrt_"...
lea rdi, [rsp+0E8h+var_60]
mov [rsp+0E8h+var_D0], rdi
mov esi, 3
mov ecx, 261h
call _ZN6google8protobuf8internal10LogMessageC2ENS0_8LogLevelEPKci; google::protobuf::internal::LogMessage::LogMessage(google::protobuf::LogLevel,char const*,int)
mov rdi, [rsp+0E8h+var_D0]
mov [rsp+0E8h+var_61], 1
lea rsi, aCheckFailedExt_3; "CHECK failed: ((*extension).is_repeated"...
call _ZN6google8protobuf8internal10LogMessagelsEPKc; google::protobuf::internal::LogMessage::operator<<(char const*)
mov [rsp+0E8h+var_C8], rax
jmp short $+2
loc_1956F6:
mov rsi, [rsp+0E8h+var_C8]
lea rdi, [rsp+0E8h+var_75]
call _ZN6google8protobuf8internal11LogFinisheraSERNS1_10LogMessageE; google::protobuf::internal::LogFinisher::operator=(google::protobuf::internal::LogMessage &)
jmp short $+2
loc_195707:
jmp short $+2
loc_195709:
test [rsp+0E8h+var_61], 1
jnz short loc_195715
jmp short loc_195722
loc_195715:
lea rdi, [rsp+0E8h+var_60]; this
call _ZN6google8protobuf8internal10LogMessageD2Ev; google::protobuf::internal::LogMessage::~LogMessage()
loc_195722:
jmp loc_195681
mov rcx, rax
mov eax, edx
mov [rsp+arg_70], rcx
mov [rsp+arg_6C], eax
test [rsp+arg_7F], 1
jnz short loc_195741
jmp short loc_19574E
loc_195741:
lea rdi, [rsp+arg_80]; this
call _ZN6google8protobuf8internal10LogMessageD2Ev; google::protobuf::internal::LogMessage::~LogMessage()
loc_19574E:
jmp loc_195868
loc_195753:
jmp short $+2
loc_195755:
xor eax, eax
test al, 1
jnz short loc_195760
jmp loc_195808
loc_195760:
mov rax, [rsp+0E8h+var_28]
movzx edi, byte ptr [rax+8]; this
call _ZN6google8protobuf8internal12_GLOBAL__N_18cpp_typeEh; google::protobuf::internal::`anonymous namespace'::cpp_type(uchar)
mov [rsp+0E8h+var_B1], 0
cmp eax, 0Ah
jnz short loc_19577D
jmp short loc_1957CD
loc_19577D:
lea rdx, aWorkspaceLlm4b_39; "/workspace/llm4binary/github2025/aimrt_"...
lea rdi, [rsp+0E8h+var_B0]
mov [rsp+0E8h+var_E0], rdi
mov esi, 3
mov ecx, 261h
call _ZN6google8protobuf8internal10LogMessageC2ENS0_8LogLevelEPKci; google::protobuf::internal::LogMessage::LogMessage(google::protobuf::LogLevel,char const*,int)
mov rdi, [rsp+0E8h+var_E0]
mov [rsp+0E8h+var_B1], 1
lea rsi, aCheckFailedCpp_19; "CHECK failed: (cpp_type((*extension).ty"...
call _ZN6google8protobuf8internal10LogMessagelsEPKc; google::protobuf::internal::LogMessage::operator<<(char const*)
mov [rsp+0E8h+var_D8], rax
jmp short $+2
loc_1957BA:
mov rsi, [rsp+0E8h+var_D8]
lea rdi, [rsp+0E8h+var_B2]
call _ZN6google8protobuf8internal11LogFinisheraSERNS1_10LogMessageE; google::protobuf::internal::LogFinisher::operator=(google::protobuf::internal::LogMessage &)
jmp short $+2
loc_1957CB:
jmp short $+2
loc_1957CD:
test [rsp+0E8h+var_B1], 1
jnz short loc_1957D6
jmp short loc_1957E0
loc_1957D6:
lea rdi, [rsp+0E8h+var_B0]; this
call _ZN6google8protobuf8internal10LogMessageD2Ev; google::protobuf::internal::LogMessage::~LogMessage()
loc_1957E0:
jmp loc_195755
mov rcx, rax
mov eax, edx
mov [rsp+arg_70], rcx
mov [rsp+arg_6C], eax
test [rsp+arg_2F], 1
jnz short loc_1957FC
jmp short loc_195806
loc_1957FC:
lea rdi, [rsp+arg_30]; this
call _ZN6google8protobuf8internal10LogMessageD2Ev; google::protobuf::internal::LogMessage::~LogMessage()
loc_195806:
jmp short loc_195868
loc_195808:
mov rax, [rsp+0E8h+var_28]
mov al, [rax+0Ah]
shr al, 4
test al, 1
jz short loc_195845
mov rax, [rsp+0E8h+var_C0]
mov rcx, [rsp+0E8h+var_28]
mov rdi, [rcx]
mov rsi, [rsp+0E8h+var_20]
mov rdx, [rax]
mov rax, [rdi]
call qword ptr [rax+18h]
mov [rsp+0E8h+var_8], rax
jmp short loc_195858
loc_195845:
mov rax, [rsp+0E8h+var_28]
mov rax, [rax]
mov [rsp+0E8h+var_8], rax
loc_195858:
mov rax, [rsp+0E8h+var_8]
add rsp, 0E8h
retn
loc_195868:
mov rdi, [rsp+arg_70]
call __Unwind_Resume
|
const google::protobuf::MessageLite * google::protobuf::internal::ExtensionSet::GetMessage(
google::protobuf::internal::ExtensionSet *this,
int a2,
const google::protobuf::MessageLite *a3)
{
_BYTE *v4; // [rsp+C0h] [rbp-28h]
v4 = google::protobuf::internal::ExtensionSet::FindOrNull(this, a2);
if ( !v4 )
return a3;
if ( (v4[10] & 0x10) != 0 )
return (const google::protobuf::MessageLite *)(*(long long ( **)(_QWORD, const google::protobuf::MessageLite *, _QWORD))(**(_QWORD **)v4 + 24LL))(
*(_QWORD *)v4,
a3,
*(_QWORD *)this);
return *(const google::protobuf::MessageLite **)v4;
}
|
end:
SUB RSP,0x18
MOV qword ptr [RSP + 0x8],RDI
MOV RDI,qword ptr [RSP + 0x8]
CALL 0x001956c0
MOV qword ptr [RSP + 0x10],RAX
MOV RAX,qword ptr [RSP + 0x10]
ADD RSP,0x18
RET
|
/* std::unordered_map<std::__cxx11::string, google::protobuf::SourceCodeInfo_Location const*,
std::hash<std::__cxx11::string >, std::equal_to<std::__cxx11::string >,
std::allocator<std::pair<std::__cxx11::string const, google::protobuf::SourceCodeInfo_Location
const*> > >::end() */
int8
std::
unordered_map<std::__cxx11::string,google::protobuf::SourceCodeInfo_Location_const*,std::hash<std::__cxx11::string>,std::equal_to<std::__cxx11::string>,std::allocator<std::pair<std::__cxx11::string_const,google::protobuf::SourceCodeInfo_Location_const*>>>
::end(void)
{
int8 uVar1;
uVar1 = _Hashtable<std::__cxx11::string,std::pair<std::__cxx11::string_const,google::protobuf::SourceCodeInfo_Location_const*>,std::allocator<std::pair<std::__cxx11::string_const,google::protobuf::SourceCodeInfo_Location_const*>>,std::__detail::_Select1st,std::equal_to<std::__cxx11::string>,std::hash<std::__cxx11::string>,std::__detail::_Mod_range_hashing,std::__detail::_Default_ranged_hash,std::__detail::_Prime_rehash_policy,std::__detail::_Hashtable_traits<true,false,true>>
::end();
return uVar1;
}
|
|
58,059
|
google::protobuf::Map<google::protobuf::MapKey, google::protobuf::MapValueRef>::InnerMap::DestroyNode(google::protobuf::Map<google::protobuf::MapKey, google::protobuf::MapValueRef>::InnerMap::Node*)
|
aimrt_mujoco_sim/_deps/protobuf-src/src/google/protobuf/map.h
|
void DestroyNode(Node* node) {
if (alloc_.arena() == nullptr) {
delete node;
}
}
|
O3
|
c
|
google::protobuf::Map<google::protobuf::MapKey, google::protobuf::MapValueRef>::InnerMap::DestroyNode(google::protobuf::Map<google::protobuf::MapKey, google::protobuf::MapValueRef>::InnerMap::Node*):
cmpq $0x0, 0x28(%rdi)
je 0x7621a
retq
pushq %rbx
movq %rsi, %rbx
testq %rsi, %rsi
je 0x7623a
cmpl $0x9, 0x20(%rbx)
jne 0x7623a
movq (%rbx), %rdi
leaq 0x10(%rbx), %rax
cmpq %rax, %rdi
je 0x7623a
callq 0xf330
movq %rbx, %rdi
popq %rbx
jmp 0xf330
nop
|
_ZN6google8protobuf3MapINS0_6MapKeyENS0_11MapValueRefEE8InnerMap11DestroyNodeEPNS5_4NodeE:
cmp qword ptr [rdi+28h], 0
jz short loc_7621A
retn
loc_7621A:
push rbx
mov rbx, rsi
test rsi, rsi
jz short loc_7623A
cmp dword ptr [rbx+20h], 9
jnz short loc_7623A
mov rdi, [rbx]; void *
lea rax, [rbx+10h]
cmp rdi, rax
jz short loc_7623A
call __ZdlPv; operator delete(void *)
loc_7623A:
mov rdi, rbx; void *
pop rbx
jmp __ZdlPv; operator delete(void *)
|
void google::protobuf::Map<google::protobuf::MapKey,google::protobuf::MapValueRef>::InnerMap::DestroyNode(
long long a1,
long long a2)
{
if ( !*(_QWORD *)(a1 + 40) )
{
if ( a2 && *(_DWORD *)(a2 + 32) == 9 && *(_QWORD *)a2 != a2 + 16 )
operator delete(*(void **)a2);
operator delete((void *)a2);
}
}
|
DestroyNode:
CMP qword ptr [RDI + 0x28],0x0
JZ 0x0017621a
RET
LAB_0017621a:
PUSH RBX
MOV RBX,RSI
TEST RSI,RSI
JZ 0x0017623a
CMP dword ptr [RBX + 0x20],0x9
JNZ 0x0017623a
MOV RDI,qword ptr [RBX]
LEA RAX,[RBX + 0x10]
CMP RDI,RAX
JZ 0x0017623a
CALL 0x0010f330
LAB_0017623a:
MOV RDI,RBX
POP RBX
JMP 0x0010f330
|
/* google::protobuf::Map<google::protobuf::MapKey,
google::protobuf::MapValueRef>::InnerMap::DestroyNode(google::protobuf::Map<google::protobuf::MapKey,
google::protobuf::MapValueRef>::InnerMap::Node*) */
void __thiscall
google::protobuf::Map<google::protobuf::MapKey,google::protobuf::MapValueRef>::InnerMap::DestroyNode
(InnerMap *this,Node *param_1)
{
if (*(long *)(this + 0x28) != 0) {
return;
}
if (((param_1 != (Node *)0x0) && (*(int *)(param_1 + 0x20) == 9)) &&
(*(Node **)param_1 != param_1 + 0x10)) {
operator_delete(*(Node **)param_1);
}
operator_delete(param_1);
return;
}
|
|
58,060
|
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>::push_back(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>&&)
|
monkey531[P]llama/common/json.hpp
|
void push_back(basic_json&& val)
{
// push_back only works for null objects or arrays
if (JSON_HEDLEY_UNLIKELY(!(is_null() || is_array())))
{
JSON_THROW(type_error::create(308, detail::concat("cannot use push_back() with ", type_name()), this));
}
// transform null object into an array
if (is_null())
{
m_data.m_type = value_t::array;
m_data.m_value = value_t::array;
assert_invariant();
}
// add element to array (move semantics)
const auto old_capacity = m_data.m_value.array->capacity();
m_data.m_value.array->push_back(std::move(val));
set_parent(m_data.m_value.array->back(), old_capacity);
// if val is moved from, basic_json move constructor marks it null, so we do not call the destructor
}
|
O2
|
cpp
|
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>::push_back(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>&&):
pushq %rbp
pushq %r14
pushq %rbx
subq $0x30, %rsp
movq %rsi, %rbx
movq %rdi, %r14
movzbl (%rdi), %eax
testl %eax, %eax
jne 0x8954b
movb $0x2, (%r14)
callq 0x3e446
movq %rax, 0x8(%r14)
pushq $0x1
popq %rsi
movq %r14, %rdi
callq 0x3e30c
jmp 0x89550
cmpl $0x2, %eax
jne 0x89564
movq 0x8(%r14), %rdi
movq %rbx, %rsi
addq $0x30, %rsp
popq %rbx
popq %r14
popq %rbp
jmp 0x42710
pushq $0x20
popq %rdi
callq 0x23450
movq %rax, %rbx
movq %r14, %rdi
callq 0x43dee
leaq 0x8(%rsp), %rdx
movq %rax, (%rdx)
leaq 0x2b894(%rip), %rsi # 0xb4e1a
leaq 0x10(%rsp), %rdi
callq 0x63c77
movb $0x1, %bpl
leaq 0x10(%rsp), %rdx
movq %rbx, %rdi
movl $0x134, %esi # imm = 0x134
movq %r14, %rcx
callq 0x43ca2
xorl %ebp, %ebp
leaq 0x72997(%rip), %rsi # 0xfbf48
leaq -0x48c3a(%rip), %rdx # 0x4097e
movq %rbx, %rdi
callq 0x23f20
movq %rax, %r14
leaq 0x10(%rsp), %rdi
callq 0x241f8
testb %bpl, %bpl
jne 0x895d7
jmp 0x895df
movq %rax, %r14
movq %rbx, %rdi
callq 0x23690
movq %r14, %rdi
callq 0x23fb0
nop
|
_ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE9push_backEOSD_:
push rbp; char
push r14; int
push rbx; int
sub rsp, 30h
mov rbx, rsi
mov r14, rdi
movzx eax, byte ptr [rdi]
test eax, eax
jnz short loc_8954B
mov byte ptr [r14], 2
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE6createIS3_ISD_SaISD_EEJEEEPT_DpOT0_; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::create<std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>>()
mov [r14+8], rax
push 1
pop rsi
mov rdi, r14
call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE16assert_invariantEb; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::assert_invariant(bool)
jmp short loc_89550
loc_8954B:
cmp eax, 2
jnz short loc_89564
loc_89550:
mov rdi, [r14+8]
mov rsi, rbx
add rsp, 30h
pop rbx
pop r14
pop rbp
jmp _ZNSt6vectorIN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapES_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES_IhSaIhEEvEESaISD_EE12emplace_backIJSD_EEERSD_DpOT_; std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>::emplace_back<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> &&)
loc_89564:
push 20h ; ' '
pop rdi; thrown_size
call ___cxa_allocate_exception
mov rbx, rax
mov rdi, r14
call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE9type_nameEv; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::type_name(void)
lea rdx, [rsp+48h+var_40]
mov [rdx], rax
lea rsi, aCannotUsePushB; "cannot use push_back() with "
lea rdi, [rsp+48h+var_38]
call _ZN8nlohmann16json_abi_v3_11_36detail6concatINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEJRA29_KcPS9_EEET_DpOT0_; nlohmann::json_abi_v3_11_3::detail::concat<std::string,char const(&)[29],char const*>(char const(&)[29],char const* &&)
mov bpl, 1
lea rdx, [rsp+48h+var_38]
mov rdi, rbx; this
mov esi, 134h; int
mov rcx, r14
call _ZN8nlohmann16json_abi_v3_11_36detail10type_error6createIPNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SJ_
xor ebp, ebp
lea rsi, _ZTIN8nlohmann16json_abi_v3_11_36detail10type_errorE; lptinfo
lea rdx, _ZN8nlohmann16json_abi_v3_11_36detail9exceptionD2Ev; void (*)(void *)
mov rdi, rbx; void *
call ___cxa_throw
mov r14, rax
lea rdi, [rsp+48h+var_38]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
test bpl, bpl
jnz short loc_895D7
jmp short loc_895DF
mov r14, rax
loc_895D7:
mov rdi, rbx; void *
call ___cxa_free_exception
loc_895DF:
mov rdi, r14
call __Unwind_Resume
|
long long nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::push_back(
long long a1,
long long a2)
{
nlohmann::json_abi_v3_11_3::detail::type_error *exception; // rbx
const char *v4; // [rsp+8h] [rbp-40h] BYREF
_BYTE v5[56]; // [rsp+10h] [rbp-38h] BYREF
if ( *(_BYTE *)a1 )
{
if ( *(_BYTE *)a1 != 2 )
{
exception = (nlohmann::json_abi_v3_11_3::detail::type_error *)__cxa_allocate_exception(0x20uLL);
v4 = nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::type_name((unsigned __int8 *)a1);
nlohmann::json_abi_v3_11_3::detail::concat<std::string,char const(&)[29],char const*>(
(long long)v5,
(long long)"cannot use push_back() with ",
&v4);
ZN8nlohmann16json_abi_v3_11_36detail10type_error6createIPNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SJ_(
exception,
308,
(long long)v5);
__cxa_throw(
exception,
(struct type_info *)&`typeinfo for'nlohmann::json_abi_v3_11_3::detail::type_error,
(void (*)(void *))nlohmann::json_abi_v3_11_3::detail::exception::~exception);
}
}
else
{
*(_BYTE *)a1 = 2;
*(_QWORD *)(a1 + 8) = 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>::create<std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>>();
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::assert_invariant((char *)a1);
}
return std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>::emplace_back<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>(
*(_QWORD *)(a1 + 8),
a2);
}
|
push_back:
PUSH RBP
PUSH R14
PUSH RBX
SUB RSP,0x30
MOV RBX,RSI
MOV R14,RDI
MOVZX EAX,byte ptr [RDI]
TEST EAX,EAX
JNZ 0x0018954b
MOV byte ptr [R14],0x2
CALL 0x0013e446
MOV qword ptr [R14 + 0x8],RAX
PUSH 0x1
POP RSI
MOV RDI,R14
CALL 0x0013e30c
JMP 0x00189550
LAB_0018954b:
CMP EAX,0x2
JNZ 0x00189564
LAB_00189550:
MOV RDI,qword ptr [R14 + 0x8]
MOV RSI,RBX
ADD RSP,0x30
POP RBX
POP R14
POP RBP
JMP 0x00142710
LAB_00189564:
PUSH 0x20
POP RDI
CALL 0x00123450
MOV RBX,RAX
MOV RDI,R14
CALL 0x00143dee
LEA RDX,[RSP + 0x8]
MOV qword ptr [RDX],RAX
LAB_0018957f:
LEA RSI,[0x1b4e1a]
LEA RDI,[RSP + 0x10]
CALL 0x00163c77
MOV BPL,0x1
LAB_00189593:
LEA RDX,[RSP + 0x10]
MOV RDI,RBX
MOV ESI,0x134
MOV RCX,R14
CALL 0x00143ca2
XOR EBP,EBP
LEA RSI,[0x1fbf48]
LEA RDX,[0x14097e]
MOV RDI,RBX
CALL 0x00123f20
|
/* nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector,
std::__cxx11::string, bool, long, unsigned long, double, std::allocator,
nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned
char> >,
void>::push_back(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,
std::vector, std::__cxx11::string, bool, long, unsigned long, double, std::allocator,
nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned
char> >, void>&&) */
void __thiscall
nlohmann::json_abi_v3_11_3::
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::push_back(basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
*this,basic_json *param_1)
{
vector *pvVar1;
int8 uVar2;
char *local_40;
detail local_38 [32];
if (*this == (basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
)0x0) {
*this = (basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
)0x2;
pvVar1 = create<std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>>
();
*(vector **)(this + 8) = pvVar1;
assert_invariant(SUB81(this,0));
}
else if (*this != (basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
)0x2) {
uVar2 = __cxa_allocate_exception(0x20);
local_40 = (char *)type_name(this);
/* try { // try from 0018957f to 0018958f has its CatchHandler @ 001895d4 */
detail::concat<std::__cxx11::string,char_const(&)[29],char_const*>
(local_38,"cannot use push_back() with ",&local_40);
/* try { // try from 00189593 to 001895bf has its CatchHandler @ 001895c0 */
_ZN8nlohmann16json_abi_v3_11_36detail10type_error6createIPNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SJ_
(uVar2,0x134,local_38,this);
/* WARNING: Subroutine does not return */
__cxa_throw(uVar2,&detail::type_error::typeinfo,detail::exception::~exception);
}
std::
vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>
::
emplace_back<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>
(*(vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>
**)(this + 8),param_1);
return;
}
|
|
58,061
|
xml_string_equals
|
eloqsql/storage/maria/libmarias3/src/xml.c
|
static _Bool xml_string_equals(struct xml_string* a, struct xml_string* b) {
size_t i = 0;
if (a->length != b->length) {
return false;
}
for (; i < a->length; ++i) {
if (a->buffer[i] != b->buffer[i]) {
return false;
}
}
return true;
}
|
O0
|
c
|
xml_string_equals:
pushq %rbp
movq %rsp, %rbp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movq $0x0, -0x20(%rbp)
movq -0x10(%rbp), %rax
movq 0x8(%rax), %rax
movq -0x18(%rbp), %rcx
cmpq 0x8(%rcx), %rax
je 0x1843c
movb $0x0, -0x1(%rbp)
jmp 0x18488
jmp 0x1843e
movq -0x20(%rbp), %rax
movq -0x10(%rbp), %rcx
cmpq 0x8(%rcx), %rax
jae 0x18484
movq -0x10(%rbp), %rax
movq (%rax), %rax
movq -0x20(%rbp), %rcx
movzbl (%rax,%rcx), %eax
movq -0x18(%rbp), %rcx
movq (%rcx), %rcx
movq -0x20(%rbp), %rdx
movzbl (%rcx,%rdx), %ecx
cmpl %ecx, %eax
je 0x18474
movb $0x0, -0x1(%rbp)
jmp 0x18488
jmp 0x18476
movq -0x20(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x20(%rbp)
jmp 0x1843e
movb $0x1, -0x1(%rbp)
movb -0x1(%rbp), %al
andb $0x1, %al
popq %rbp
retq
nop
|
xml_string_equals:
push rbp
mov rbp, rsp
mov [rbp+var_10], rdi
mov [rbp+var_18], rsi
mov [rbp+var_20], 0
mov rax, [rbp+var_10]
mov rax, [rax+8]
mov rcx, [rbp+var_18]
cmp rax, [rcx+8]
jz short loc_1843C
mov [rbp+var_1], 0
jmp short loc_18488
loc_1843C:
jmp short $+2
loc_1843E:
mov rax, [rbp+var_20]
mov rcx, [rbp+var_10]
cmp rax, [rcx+8]
jnb short loc_18484
mov rax, [rbp+var_10]
mov rax, [rax]
mov rcx, [rbp+var_20]
movzx eax, byte ptr [rax+rcx]
mov rcx, [rbp+var_18]
mov rcx, [rcx]
mov rdx, [rbp+var_20]
movzx ecx, byte ptr [rcx+rdx]
cmp eax, ecx
jz short loc_18474
mov [rbp+var_1], 0
jmp short loc_18488
loc_18474:
jmp short $+2
loc_18476:
mov rax, [rbp+var_20]
add rax, 1
mov [rbp+var_20], rax
jmp short loc_1843E
loc_18484:
mov [rbp+var_1], 1
loc_18488:
mov al, [rbp+var_1]
and al, 1
pop rbp
retn
|
char xml_string_equals(_QWORD *a1, _QWORD *a2)
{
unsigned long long v3; // [rsp+0h] [rbp-20h]
v3 = 0LL;
if ( a1[1] != a2[1] )
return 0;
while ( v3 < a1[1] )
{
if ( *(unsigned __int8 *)(*a1 + v3) != *(unsigned __int8 *)(*a2 + v3) )
return 0;
++v3;
}
return 1;
}
|
xml_string_equals:
PUSH RBP
MOV RBP,RSP
MOV qword ptr [RBP + -0x10],RDI
MOV qword ptr [RBP + -0x18],RSI
MOV qword ptr [RBP + -0x20],0x0
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX + 0x8]
MOV RCX,qword ptr [RBP + -0x18]
CMP RAX,qword ptr [RCX + 0x8]
JZ 0x0011843c
MOV byte ptr [RBP + -0x1],0x0
JMP 0x00118488
LAB_0011843c:
JMP 0x0011843e
LAB_0011843e:
MOV RAX,qword ptr [RBP + -0x20]
MOV RCX,qword ptr [RBP + -0x10]
CMP RAX,qword ptr [RCX + 0x8]
JNC 0x00118484
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX]
MOV RCX,qword ptr [RBP + -0x20]
MOVZX EAX,byte ptr [RAX + RCX*0x1]
MOV RCX,qword ptr [RBP + -0x18]
MOV RCX,qword ptr [RCX]
MOV RDX,qword ptr [RBP + -0x20]
MOVZX ECX,byte ptr [RCX + RDX*0x1]
CMP EAX,ECX
JZ 0x00118474
MOV byte ptr [RBP + -0x1],0x0
JMP 0x00118488
LAB_00118474:
JMP 0x00118476
LAB_00118476:
MOV RAX,qword ptr [RBP + -0x20]
ADD RAX,0x1
MOV qword ptr [RBP + -0x20],RAX
JMP 0x0011843e
LAB_00118484:
MOV byte ptr [RBP + -0x1],0x1
LAB_00118488:
MOV AL,byte ptr [RBP + -0x1]
AND AL,0x1
POP RBP
RET
|
int8 xml_string_equals(long *param_1,long *param_2)
{
ulong local_28;
int1 local_9;
local_28 = 0;
if (param_1[1] == param_2[1]) {
for (; local_28 < (ulong)param_1[1]; local_28 = local_28 + 1) {
if (*(char *)(*param_1 + local_28) != *(char *)(*param_2 + local_28)) {
local_9 = 0;
local_28 = 0;
goto LAB_00118488;
}
}
local_9 = 1;
}
else {
local_9 = 0;
local_28 = param_1[1];
}
LAB_00118488:
return CONCAT71((int7)(local_28 >> 8),local_9);
}
|
|
58,062
|
CLIPTokenizer::strip(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&)
|
7CodeWizard[P]stablediffusion/clip.hpp
|
static std::string strip(const std::string& str) {
std::string::size_type start = str.find_first_not_of(" \t\n\r\v\f");
std::string::size_type end = str.find_last_not_of(" \t\n\r\v\f");
if (start == std::string::npos) {
// String contains only whitespace characters
return "";
}
return str.substr(start, end - start + 1);
}
|
O0
|
cpp
|
CLIPTokenizer::strip(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&):
subq $0x58, %rsp
movq %rdi, 0x10(%rsp)
movq %rdi, %rax
movq %rax, 0x18(%rsp)
movq %rdi, 0x50(%rsp)
movq %rsi, 0x48(%rsp)
movq 0x48(%rsp), %rdi
leaq 0x1082bd(%rip), %rsi # 0x180914
xorl %eax, %eax
movl %eax, %edx
callq 0xb3e0
movq %rax, 0x40(%rsp)
movq 0x48(%rsp), %rdi
leaq 0x1082a3(%rip), %rsi # 0x180914
movq $-0x1, %rdx
callq 0xbd90
movq %rax, 0x38(%rsp)
cmpq $-0x1, 0x40(%rsp)
jne 0x786d7
leaq 0x37(%rsp), %rdi
movq %rdi, 0x8(%rsp)
callq 0xbd40
movq 0x10(%rsp), %rdi
movq 0x8(%rsp), %rdx
leaq 0x10e8d4(%rip), %rsi # 0x186f7e
callq 0x30260
jmp 0x786b1
leaq 0x37(%rsp), %rdi
callq 0xb820
jmp 0x786f9
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x28(%rsp)
movl %eax, 0x24(%rsp)
leaq 0x37(%rsp), %rdi
callq 0xb820
jmp 0x78703
movq 0x10(%rsp), %rdi
movq 0x48(%rsp), %rsi
movq 0x40(%rsp), %rdx
movq 0x38(%rsp), %rcx
subq 0x40(%rsp), %rcx
addq $0x1, %rcx
callq 0xb7b0
movq 0x18(%rsp), %rax
addq $0x58, %rsp
retq
movq 0x28(%rsp), %rdi
callq 0xbd30
nopl (%rax)
|
_ZN13CLIPTokenizer5stripERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE:
sub rsp, 58h
mov [rsp+58h+var_48], rdi
mov rax, rdi
mov [rsp+58h+var_40], rax
mov [rsp+58h+var_8], rdi
mov [rsp+58h+var_10], rsi
mov rdi, [rsp+58h+var_10]
lea rsi, unk_180914
xor eax, eax
mov edx, eax
call __ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE17find_first_not_ofEPKcm; std::string::find_first_not_of(char const*,ulong)
mov [rsp+58h+var_18], rax
mov rdi, [rsp+58h+var_10]
lea rsi, unk_180914
mov rdx, 0FFFFFFFFFFFFFFFFh
call __ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE16find_last_not_ofEPKcm; std::string::find_last_not_of(char const*,ulong)
mov [rsp+58h+var_20], rax
cmp [rsp+58h+var_18], 0FFFFFFFFFFFFFFFFh
jnz short loc_786D7
lea rdi, [rsp+58h+var_21]
mov [rsp+58h+var_50], rdi
call __ZNSaIcEC1Ev; std::allocator<char>::allocator(void)
mov rdi, [rsp+58h+var_48]
mov rdx, [rsp+58h+var_50]
lea rsi, dword_186F7E
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_; std::string::basic_string<std::allocator<char>>(char const*,std::allocator<char> const&)
jmp short $+2
loc_786B1:
lea rdi, [rsp+58h+var_21]
call __ZNSaIcED1Ev; std::allocator<char>::~allocator()
jmp short loc_786F9
mov rcx, rax
mov eax, edx
mov [rsp+arg_20], rcx
mov [rsp+arg_1C], eax
lea rdi, [rsp+arg_2F]
call __ZNSaIcED1Ev; std::allocator<char>::~allocator()
jmp short loc_78703
loc_786D7:
mov rdi, [rsp+58h+var_48]
mov rsi, [rsp+58h+var_10]
mov rdx, [rsp+58h+var_18]
mov rcx, [rsp+58h+var_20]
sub rcx, [rsp+58h+var_18]
add rcx, 1
call __ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6substrEmm; std::string::substr(ulong,ulong)
loc_786F9:
mov rax, [rsp+58h+var_40]
add rsp, 58h
retn
loc_78703:
mov rdi, [rsp+arg_20]
call __Unwind_Resume
|
long long CLIPTokenizer::strip(long long a1, long long a2)
{
char v3; // [rsp+37h] [rbp-21h] BYREF
long long last_not_of; // [rsp+38h] [rbp-20h]
long long first_not_of; // [rsp+40h] [rbp-18h]
long long v6; // [rsp+48h] [rbp-10h]
long long v7; // [rsp+50h] [rbp-8h]
v7 = a1;
v6 = a2;
first_not_of = std::string::find_first_not_of(a2, &unk_180914, 0LL);
last_not_of = std::string::find_last_not_of(a2, &unk_180914, -1LL);
if ( first_not_of == -1 )
{
std::allocator<char>::allocator();
std::string::basic_string<std::allocator<char>>(a1, (long long)&dword_186F7E, (long long)&v3);
std::allocator<char>::~allocator(&v3);
}
else
{
std::string::substr(a1, v6, first_not_of, last_not_of - first_not_of + 1);
}
return a1;
}
|
strip:
SUB RSP,0x58
MOV qword ptr [RSP + 0x10],RDI
MOV RAX,RDI
MOV qword ptr [RSP + 0x18],RAX
MOV qword ptr [RSP + 0x50],RDI
MOV qword ptr [RSP + 0x48],RSI
MOV RDI,qword ptr [RSP + 0x48]
LEA RSI,[0x280914]
XOR EAX,EAX
MOV EDX,EAX
CALL 0x0010b3e0
MOV qword ptr [RSP + 0x40],RAX
MOV RDI,qword ptr [RSP + 0x48]
LEA RSI,[0x280914]
MOV RDX,-0x1
CALL 0x0010bd90
MOV qword ptr [RSP + 0x38],RAX
CMP qword ptr [RSP + 0x40],-0x1
JNZ 0x001786d7
LEA RDI,[RSP + 0x37]
MOV qword ptr [RSP + 0x8],RDI
CALL 0x0010bd40
MOV RDI,qword ptr [RSP + 0x10]
MOV RDX,qword ptr [RSP + 0x8]
LAB_001786a3:
LEA RSI,[0x286f7e]
CALL 0x00130260
LAB_001786af:
JMP 0x001786b1
LAB_001786b1:
LEA RDI,[RSP + 0x37]
CALL 0x0010b820
JMP 0x001786f9
LAB_001786d7:
MOV RDI,qword ptr [RSP + 0x10]
MOV RSI,qword ptr [RSP + 0x48]
MOV RDX,qword ptr [RSP + 0x40]
MOV RCX,qword ptr [RSP + 0x38]
SUB RCX,qword ptr [RSP + 0x40]
ADD RCX,0x1
CALL 0x0010b7b0
LAB_001786f9:
MOV RAX,qword ptr [RSP + 0x18]
ADD RSP,0x58
RET
|
/* CLIPTokenizer::strip(std::__cxx11::string const&) */
CLIPTokenizer * __thiscall CLIPTokenizer::strip(CLIPTokenizer *this,string *param_1)
{
allocator local_21;
int8 local_20;
long local_18;
string *local_10;
CLIPTokenizer *local_8;
local_10 = param_1;
local_8 = this;
local_18 = std::__cxx11::string::find_first_not_of((char *)param_1,0x280914);
local_20 = std::__cxx11::string::find_last_not_of((char *)local_10,0x280914);
if (local_18 == -1) {
std::allocator<char>::allocator();
/* try { // try from 001786a3 to 001786ae has its CatchHandler @ 001786bd */
std::__cxx11::string::string<std::allocator<char>>((string *)this,"",&local_21);
std::allocator<char>::~allocator((allocator<char> *)&local_21);
}
else {
std::__cxx11::string::substr((ulong)this,(ulong)local_10);
}
return this;
}
|
|
58,063
|
CLIPTokenizer::strip(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&)
|
7CodeWizard[P]stablediffusion/clip.hpp
|
static std::string strip(const std::string& str) {
std::string::size_type start = str.find_first_not_of(" \t\n\r\v\f");
std::string::size_type end = str.find_last_not_of(" \t\n\r\v\f");
if (start == std::string::npos) {
// String contains only whitespace characters
return "";
}
return str.substr(start, end - start + 1);
}
|
O1
|
cpp
|
CLIPTokenizer::strip(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&):
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %r14
movq %rdi, %rbx
leaq 0x6ed3d(%rip), %r12 # 0xbefe8
movl $0x6, %ecx
movq %rsi, %rdi
movq %r12, %rsi
xorl %edx, %edx
callq 0xaa70
movq %rax, %r15
movl $0x6, %ecx
movq %r14, %rdi
movq %r12, %rsi
movq $-0x1, %rdx
callq 0xaa10
cmpq $-0x1, %r15
je 0x502f6
subq %r15, %rax
incq %rax
movq %rbx, %rdi
movq %r14, %rsi
movq %r15, %rdx
movq %rax, %rcx
callq 0xa610
jmp 0x5030f
leaq 0x10(%rbx), %rax
movq %rax, (%rbx)
leaq 0x74b2a(%rip), %rdx # 0xc4e2e
movq %rbx, %rdi
movq %rdx, %rsi
callq 0x2fa9c
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
|
_ZN13CLIPTokenizer5stripERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE:
push r15
push r14
push r12
push rbx
push rax
mov r14, rsi
mov rbx, rdi
lea r12, unk_BEFE8
mov ecx, 6
mov rdi, rsi
mov rsi, r12
xor edx, edx
call __ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE17find_first_not_ofEPKcmm; std::string::find_first_not_of(char const*,ulong,ulong)
mov r15, rax
mov ecx, 6
mov rdi, r14
mov rsi, r12
mov rdx, 0FFFFFFFFFFFFFFFFh
call __ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE16find_last_not_ofEPKcmm; std::string::find_last_not_of(char const*,ulong,ulong)
cmp r15, 0FFFFFFFFFFFFFFFFh
jz short loc_502F6
sub rax, r15
inc rax
mov rdi, rbx
mov rsi, r14
mov rdx, r15
mov rcx, rax
call __ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6substrEmm; std::string::substr(ulong,ulong)
jmp short loc_5030F
loc_502F6:
lea rax, [rbx+10h]
mov [rbx], rax
lea rdx, unk_C4E2E
mov rdi, rbx
mov rsi, rdx
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPKcEEvT_S8_St20forward_iterator_tag; std::string::_M_construct<char const*>(char const*,char const*,std::forward_iterator_tag)
loc_5030F:
mov rax, rbx
add rsp, 8
pop rbx
pop r12
pop r14
pop r15
retn
|
_QWORD * CLIPTokenizer::strip(_QWORD *a1, long long a2)
{
long long first_not_of; // r15
long long last_not_of; // rax
first_not_of = std::string::find_first_not_of(a2, &unk_BEFE8, 0LL, 6LL);
last_not_of = std::string::find_last_not_of(a2, &unk_BEFE8, -1LL, 6LL);
if ( first_not_of == -1 )
{
*a1 = a1 + 2;
std::string::_M_construct<char const*>(a1, &unk_C4E2E, (long long)&unk_C4E2E);
}
else
{
std::string::substr(a1, a2, first_not_of, last_not_of - first_not_of + 1);
}
return a1;
}
| |||
58,064
|
CLIPTokenizer::strip(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&)
|
7CodeWizard[P]stablediffusion/clip.hpp
|
static std::string strip(const std::string& str) {
std::string::size_type start = str.find_first_not_of(" \t\n\r\v\f");
std::string::size_type end = str.find_last_not_of(" \t\n\r\v\f");
if (start == std::string::npos) {
// String contains only whitespace characters
return "";
}
return str.substr(start, end - start + 1);
}
|
O2
|
cpp
|
CLIPTokenizer::strip(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&):
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %r14
movq %rdi, %rbx
leaq 0x67749(%rip), %r12 # 0x9af18
movq %rsi, %rdi
movq %r12, %rsi
xorl %edx, %edx
callq 0xa320
movq %rax, %r15
pushq $-0x1
popq %rdx
movq %r14, %rdi
movq %r12, %rsi
callq 0xab00
cmpq $-0x1, %r15
je 0x3380c
subq %r15, %rax
incq %rax
movq %rbx, %rdi
movq %r14, %rsi
movq %r15, %rdx
movq %rax, %rcx
callq 0xa630
jmp 0x33820
leaq 0x6d52b(%rip), %rsi # 0xa0d3e
leaq 0x7(%rsp), %rdx
movq %rbx, %rdi
callq 0x19f24
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
nop
|
_ZN13CLIPTokenizer5stripERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE:
push r15
push r14
push r12
push rbx
push rax
mov r14, rsi
mov rbx, rdi
lea r12, unk_9AF18
mov rdi, rsi
mov rsi, r12
xor edx, edx
call __ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE17find_first_not_ofEPKcm; std::string::find_first_not_of(char const*,ulong)
mov r15, rax
push 0FFFFFFFFFFFFFFFFh
pop rdx
mov rdi, r14
mov rsi, r12
call __ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE16find_last_not_ofEPKcm; std::string::find_last_not_of(char const*,ulong)
cmp r15, 0FFFFFFFFFFFFFFFFh
jz short loc_3380C
sub rax, r15
inc rax
mov rdi, rbx
mov rsi, r14
mov rdx, r15
mov rcx, rax
call __ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6substrEmm; std::string::substr(ulong,ulong)
jmp short loc_33820
loc_3380C:
lea rsi, unk_A0D3E
lea rdx, [rsp+28h+var_21]
mov rdi, rbx
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_; std::string::basic_string<std::allocator<char>>(char const*,std::allocator<char> const&)
loc_33820:
mov rax, rbx
add rsp, 8
pop rbx
pop r12
pop r14
pop r15
retn
|
_QWORD * CLIPTokenizer::strip(_QWORD *a1, long long a2)
{
long long first_not_of; // r15
long long last_not_of; // rax
first_not_of = std::string::find_first_not_of(a2, &unk_9AF18, 0LL);
last_not_of = std::string::find_last_not_of(a2, &unk_9AF18, -1LL);
if ( first_not_of == -1 )
std::string::basic_string<std::allocator<char>>(a1, (long long)&unk_A0D3E);
else
std::string::substr(a1, a2, first_not_of, last_not_of - first_not_of + 1);
return a1;
}
|
strip:
PUSH R15
PUSH R14
PUSH R12
PUSH RBX
PUSH RAX
MOV R14,RSI
MOV RBX,RDI
LEA R12,[0x19af18]
MOV RDI,RSI
MOV RSI,R12
XOR EDX,EDX
CALL 0x0010a320
MOV R15,RAX
PUSH -0x1
POP RDX
MOV RDI,R14
MOV RSI,R12
CALL 0x0010ab00
CMP R15,-0x1
JZ 0x0013380c
SUB RAX,R15
INC RAX
MOV RDI,RBX
MOV RSI,R14
MOV RDX,R15
MOV RCX,RAX
CALL 0x0010a630
JMP 0x00133820
LAB_0013380c:
LEA RSI,[0x1a0d3e]
LEA RDX,[RSP + 0x7]
MOV RDI,RBX
CALL 0x00119f24
LAB_00133820:
MOV RAX,RBX
ADD RSP,0x8
POP RBX
POP R12
POP R14
POP R15
RET
|
/* CLIPTokenizer::strip(std::__cxx11::string const&) */
CLIPTokenizer * __thiscall CLIPTokenizer::strip(CLIPTokenizer *this,string *param_1)
{
long lVar1;
allocator local_21;
lVar1 = std::__cxx11::string::find_first_not_of((char *)param_1,0x19af18);
std::__cxx11::string::find_last_not_of((char *)param_1,0x19af18);
if (lVar1 == -1) {
std::__cxx11::string::string<std::allocator<char>>((string *)this,"",&local_21);
}
else {
std::__cxx11::string::substr((ulong)this,(ulong)param_1);
}
return this;
}
|
|
58,065
|
my_strnxfrm_simple_internal
|
eloqsql/strings/ctype-simple.c
|
size_t my_strnxfrm_simple_internal(CHARSET_INFO * cs,
uchar *dst, size_t dstlen, uint *nweights,
const uchar *src, size_t srclen)
{
const uchar *map= cs->sort_order;
uchar *d0= dst;
uint frmlen;
if ((frmlen= (uint)MY_MIN(dstlen, *nweights)) > srclen)
frmlen= (uint)srclen;
if (dst != src)
{
const uchar *end;
for (end= src + frmlen; src < end;)
*dst++= map[*src++];
}
else
{
const uchar *end;
for (end= dst + frmlen; dst < end; dst++)
*dst= map[(uchar) *dst];
}
*nweights-= frmlen;
return dst - d0;
}
|
O0
|
c
|
my_strnxfrm_simple_internal:
pushq %rbp
movq %rsp, %rbp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movq %rcx, -0x20(%rbp)
movq %r8, -0x28(%rbp)
movq %r9, -0x30(%rbp)
movq -0x8(%rbp), %rax
movq 0x58(%rax), %rax
movq %rax, -0x38(%rbp)
movq -0x10(%rbp), %rax
movq %rax, -0x40(%rbp)
movq -0x18(%rbp), %rax
movq -0x20(%rbp), %rcx
movl (%rcx), %ecx
cmpq %rcx, %rax
jae 0x43069
movq -0x18(%rbp), %rax
movq %rax, -0x60(%rbp)
jmp 0x43073
movq -0x20(%rbp), %rax
movl (%rax), %eax
movq %rax, -0x60(%rbp)
movq -0x60(%rbp), %rax
movl %eax, -0x44(%rbp)
movl %eax, %eax
cmpq -0x30(%rbp), %rax
jbe 0x43089
movq -0x30(%rbp), %rax
movl %eax, -0x44(%rbp)
movq -0x10(%rbp), %rax
cmpq -0x28(%rbp), %rax
je 0x430d9
movq -0x28(%rbp), %rax
movl -0x44(%rbp), %ecx
addq %rcx, %rax
movq %rax, -0x50(%rbp)
movq -0x28(%rbp), %rax
cmpq -0x50(%rbp), %rax
jae 0x430d7
movq -0x38(%rbp), %rax
movq -0x28(%rbp), %rcx
movq %rcx, %rdx
addq $0x1, %rdx
movq %rdx, -0x28(%rbp)
movzbl (%rcx), %ecx
movb (%rax,%rcx), %cl
movq -0x10(%rbp), %rax
movq %rax, %rdx
addq $0x1, %rdx
movq %rdx, -0x10(%rbp)
movb %cl, (%rax)
jmp 0x430a1
jmp 0x43115
movq -0x10(%rbp), %rax
movl -0x44(%rbp), %ecx
addq %rcx, %rax
movq %rax, -0x58(%rbp)
movq -0x10(%rbp), %rax
cmpq -0x58(%rbp), %rax
jae 0x43113
movq -0x38(%rbp), %rax
movq -0x10(%rbp), %rcx
movzbl (%rcx), %ecx
movb (%rax,%rcx), %cl
movq -0x10(%rbp), %rax
movb %cl, (%rax)
movq -0x10(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x10(%rbp)
jmp 0x430e7
jmp 0x43115
movl -0x44(%rbp), %edx
movq -0x20(%rbp), %rax
movl (%rax), %ecx
subl %edx, %ecx
movl %ecx, (%rax)
movq -0x10(%rbp), %rax
movq -0x40(%rbp), %rcx
subq %rcx, %rax
popq %rbp
retq
nop
|
my_strnxfrm_simple_internal:
push rbp
mov rbp, rsp
mov [rbp+var_8], rdi
mov [rbp+var_10], rsi
mov [rbp+var_18], rdx
mov [rbp+var_20], rcx
mov [rbp+var_28], r8
mov [rbp+var_30], r9
mov rax, [rbp+var_8]
mov rax, [rax+58h]
mov [rbp+var_38], rax
mov rax, [rbp+var_10]
mov [rbp+var_40], rax
mov rax, [rbp+var_18]
mov rcx, [rbp+var_20]
mov ecx, [rcx]
cmp rax, rcx
jnb short loc_43069
mov rax, [rbp+var_18]
mov [rbp+var_60], rax
jmp short loc_43073
loc_43069:
mov rax, [rbp+var_20]
mov eax, [rax]
mov [rbp+var_60], rax
loc_43073:
mov rax, [rbp+var_60]
mov [rbp+var_44], eax
mov eax, eax
cmp rax, [rbp+var_30]
jbe short loc_43089
mov rax, [rbp+var_30]
mov [rbp+var_44], eax
loc_43089:
mov rax, [rbp+var_10]
cmp rax, [rbp+var_28]
jz short loc_430D9
mov rax, [rbp+var_28]
mov ecx, [rbp+var_44]
add rax, rcx
mov [rbp+var_50], rax
loc_430A1:
mov rax, [rbp+var_28]
cmp rax, [rbp+var_50]
jnb short loc_430D7
mov rax, [rbp+var_38]
mov rcx, [rbp+var_28]
mov rdx, rcx
add rdx, 1
mov [rbp+var_28], rdx
movzx ecx, byte ptr [rcx]
mov cl, [rax+rcx]
mov rax, [rbp+var_10]
mov rdx, rax
add rdx, 1
mov [rbp+var_10], rdx
mov [rax], cl
jmp short loc_430A1
loc_430D7:
jmp short loc_43115
loc_430D9:
mov rax, [rbp+var_10]
mov ecx, [rbp+var_44]
add rax, rcx
mov [rbp+var_58], rax
loc_430E7:
mov rax, [rbp+var_10]
cmp rax, [rbp+var_58]
jnb short loc_43113
mov rax, [rbp+var_38]
mov rcx, [rbp+var_10]
movzx ecx, byte ptr [rcx]
mov cl, [rax+rcx]
mov rax, [rbp+var_10]
mov [rax], cl
mov rax, [rbp+var_10]
add rax, 1
mov [rbp+var_10], rax
jmp short loc_430E7
loc_43113:
jmp short $+2
loc_43115:
mov edx, [rbp+var_44]
mov rax, [rbp+var_20]
mov ecx, [rax]
sub ecx, edx
mov [rax], ecx
mov rax, [rbp+var_10]
mov rcx, [rbp+var_40]
sub rax, rcx
pop rbp
retn
|
_BYTE * my_strnxfrm_simple_internal(
long long a1,
unsigned __int8 *a2,
unsigned long long a3,
unsigned int *a4,
unsigned __int8 *a5,
unsigned long long a6)
{
unsigned __int8 *v6; // rcx
unsigned __int8 *v7; // rax
unsigned int v9; // [rsp+0h] [rbp-60h]
int v10; // [rsp+1Ch] [rbp-44h]
long long v11; // [rsp+28h] [rbp-38h]
unsigned __int8 *v12; // [rsp+38h] [rbp-28h]
unsigned __int8 *v14; // [rsp+50h] [rbp-10h]
v14 = a2;
v12 = a5;
v11 = *(_QWORD *)(a1 + 88);
if ( a3 >= *a4 )
v9 = *a4;
else
v9 = a3;
v10 = v9;
if ( v9 > a6 )
v10 = a6;
if ( a2 == a5 )
{
while ( v14 < &a2[v10] )
{
*v14 = *(_BYTE *)(v11 + *v14);
++v14;
}
}
else
{
while ( v12 < &a5[v10] )
{
v6 = v12++;
v7 = v14++;
*v7 = *(_BYTE *)(v11 + *v6);
}
}
*a4 -= v10;
return (_BYTE *)(v14 - a2);
}
|
my_strnxfrm_simple_internal:
PUSH RBP
MOV RBP,RSP
MOV qword ptr [RBP + -0x8],RDI
MOV qword ptr [RBP + -0x10],RSI
MOV qword ptr [RBP + -0x18],RDX
MOV qword ptr [RBP + -0x20],RCX
MOV qword ptr [RBP + -0x28],R8
MOV qword ptr [RBP + -0x30],R9
MOV RAX,qword ptr [RBP + -0x8]
MOV RAX,qword ptr [RAX + 0x58]
MOV qword ptr [RBP + -0x38],RAX
MOV RAX,qword ptr [RBP + -0x10]
MOV qword ptr [RBP + -0x40],RAX
MOV RAX,qword ptr [RBP + -0x18]
MOV RCX,qword ptr [RBP + -0x20]
MOV ECX,dword ptr [RCX]
CMP RAX,RCX
JNC 0x00143069
MOV RAX,qword ptr [RBP + -0x18]
MOV qword ptr [RBP + -0x60],RAX
JMP 0x00143073
LAB_00143069:
MOV RAX,qword ptr [RBP + -0x20]
MOV EAX,dword ptr [RAX]
MOV qword ptr [RBP + -0x60],RAX
LAB_00143073:
MOV RAX,qword ptr [RBP + -0x60]
MOV dword ptr [RBP + -0x44],EAX
MOV EAX,EAX
CMP RAX,qword ptr [RBP + -0x30]
JBE 0x00143089
MOV RAX,qword ptr [RBP + -0x30]
MOV dword ptr [RBP + -0x44],EAX
LAB_00143089:
MOV RAX,qword ptr [RBP + -0x10]
CMP RAX,qword ptr [RBP + -0x28]
JZ 0x001430d9
MOV RAX,qword ptr [RBP + -0x28]
MOV ECX,dword ptr [RBP + -0x44]
ADD RAX,RCX
MOV qword ptr [RBP + -0x50],RAX
LAB_001430a1:
MOV RAX,qword ptr [RBP + -0x28]
CMP RAX,qword ptr [RBP + -0x50]
JNC 0x001430d7
MOV RAX,qword ptr [RBP + -0x38]
MOV RCX,qword ptr [RBP + -0x28]
MOV RDX,RCX
ADD RDX,0x1
MOV qword ptr [RBP + -0x28],RDX
MOVZX ECX,byte ptr [RCX]
MOV CL,byte ptr [RAX + RCX*0x1]
MOV RAX,qword ptr [RBP + -0x10]
MOV RDX,RAX
ADD RDX,0x1
MOV qword ptr [RBP + -0x10],RDX
MOV byte ptr [RAX],CL
JMP 0x001430a1
LAB_001430d7:
JMP 0x00143115
LAB_001430d9:
MOV RAX,qword ptr [RBP + -0x10]
MOV ECX,dword ptr [RBP + -0x44]
ADD RAX,RCX
MOV qword ptr [RBP + -0x58],RAX
LAB_001430e7:
MOV RAX,qword ptr [RBP + -0x10]
CMP RAX,qword ptr [RBP + -0x58]
JNC 0x00143113
MOV RAX,qword ptr [RBP + -0x38]
MOV RCX,qword ptr [RBP + -0x10]
MOVZX ECX,byte ptr [RCX]
MOV CL,byte ptr [RAX + RCX*0x1]
MOV RAX,qword ptr [RBP + -0x10]
MOV byte ptr [RAX],CL
MOV RAX,qword ptr [RBP + -0x10]
ADD RAX,0x1
MOV qword ptr [RBP + -0x10],RAX
JMP 0x001430e7
LAB_00143113:
JMP 0x00143115
LAB_00143115:
MOV EDX,dword ptr [RBP + -0x44]
MOV RAX,qword ptr [RBP + -0x20]
MOV ECX,dword ptr [RAX]
SUB ECX,EDX
MOV dword ptr [RAX],ECX
MOV RAX,qword ptr [RBP + -0x10]
MOV RCX,qword ptr [RBP + -0x40]
SUB RAX,RCX
POP RBP
RET
|
long my_strnxfrm_simple_internal
(long param_1,byte *param_2,ulong param_3,uint *param_4,byte *param_5,ulong param_6)
{
long lVar1;
ulong local_68;
uint local_4c;
byte *local_30;
byte *local_18;
lVar1 = *(long *)(param_1 + 0x58);
local_68 = param_3;
if (*param_4 <= param_3) {
local_68 = (ulong)*param_4;
}
local_4c = (uint)local_68;
if (param_6 < (local_68 & 0xffffffff)) {
local_4c = (uint)param_6;
}
if (param_2 == param_5) {
for (local_18 = param_2; local_18 < param_2 + local_4c; local_18 = local_18 + 1) {
*local_18 = *(byte *)(lVar1 + (ulong)*local_18);
}
}
else {
local_30 = param_5;
local_18 = param_2;
while (local_30 < param_5 + local_4c) {
*local_18 = *(byte *)(lVar1 + (ulong)*local_30);
local_30 = local_30 + 1;
local_18 = local_18 + 1;
}
}
*param_4 = *param_4 - local_4c;
return (long)local_18 - (long)param_2;
}
|
|
58,066
|
free_var_ref
|
bluesky950520[P]quickjs/quickjs.c
|
static void free_var_ref(JSRuntime *rt, JSVarRef *var_ref)
{
if (var_ref) {
assert(var_ref->header.ref_count > 0);
if (--var_ref->header.ref_count == 0) {
if (var_ref->is_detached) {
JS_FreeValueRT(rt, var_ref->value);
remove_gc_object(&var_ref->header);
} else {
list_del(&var_ref->header.link); /* still on the stack */
}
js_free_rt(rt, var_ref);
}
}
}
|
O0
|
c
|
free_var_ref:
subq $0x18, %rsp
movq %rdi, 0x10(%rsp)
movq %rsi, 0x8(%rsp)
cmpq $0x0, 0x8(%rsp)
je 0x3bdf7
movq 0x8(%rsp), %rcx
movl (%rcx), %eax
addl $-0x1, %eax
movl %eax, (%rcx)
cmpl $0x0, %eax
jne 0x3bdf5
movq 0x8(%rsp), %rax
movb 0x5(%rax), %al
andb $0x1, %al
cmpb $0x0, %al
je 0x3bdd8
movq 0x10(%rsp), %rdi
movq 0x8(%rsp), %rax
movq 0x20(%rax), %rsi
movq 0x28(%rax), %rdx
callq 0x2a000
movq 0x8(%rsp), %rdi
callq 0x2e1d0
jmp 0x3bde6
movq 0x8(%rsp), %rdi
addq $0x8, %rdi
callq 0x29f20
movq 0x10(%rsp), %rdi
movq 0x8(%rsp), %rsi
callq 0x27c50
jmp 0x3bdf7
addq $0x18, %rsp
retq
nopl (%rax)
|
free_var_ref:
sub rsp, 18h
mov [rsp+18h+var_8], rdi
mov [rsp+18h+var_10], rsi
cmp [rsp+18h+var_10], 0
jz short loc_3BDF7
mov rcx, [rsp+18h+var_10]
mov eax, [rcx]
add eax, 0FFFFFFFFh
mov [rcx], eax
cmp eax, 0
jnz short loc_3BDF5
mov rax, [rsp+18h+var_10]
mov al, [rax+5]
and al, 1
cmp al, 0
jz short loc_3BDD8
mov rdi, [rsp+18h+var_8]
mov rax, [rsp+18h+var_10]
mov rsi, [rax+20h]
mov rdx, [rax+28h]
call JS_FreeValueRT
mov rdi, [rsp+18h+var_10]
call remove_gc_object
jmp short loc_3BDE6
loc_3BDD8:
mov rdi, [rsp+18h+var_10]
add rdi, 8
call list_del_1
loc_3BDE6:
mov rdi, [rsp+18h+var_8]
mov rsi, [rsp+18h+var_10]
call js_free_rt
loc_3BDF5:
jmp short $+2
loc_3BDF7:
add rsp, 18h
retn
|
void free_var_ref(long long a1, long long a2)
{
int v2; // eax
if ( a2 )
{
v2 = *(_DWORD *)a2 - 1;
*(_DWORD *)a2 = v2;
if ( !v2 )
{
if ( (*(_BYTE *)(a2 + 5) & 1) != 0 )
{
JS_FreeValueRT(a1, *(_DWORD **)(a2 + 32), *(_QWORD *)(a2 + 40));
remove_gc_object(a2);
}
else
{
list_del_1((_QWORD *)(a2 + 8));
}
js_free_rt(a1, a2);
}
}
}
|
free_var_ref:
SUB RSP,0x18
MOV qword ptr [RSP + 0x10],RDI
MOV qword ptr [RSP + 0x8],RSI
CMP qword ptr [RSP + 0x8],0x0
JZ 0x0013bdf7
MOV RCX,qword ptr [RSP + 0x8]
MOV EAX,dword ptr [RCX]
ADD EAX,-0x1
MOV dword ptr [RCX],EAX
CMP EAX,0x0
JNZ 0x0013bdf5
MOV RAX,qword ptr [RSP + 0x8]
MOV AL,byte ptr [RAX + 0x5]
AND AL,0x1
CMP AL,0x0
JZ 0x0013bdd8
MOV RDI,qword ptr [RSP + 0x10]
MOV RAX,qword ptr [RSP + 0x8]
MOV RSI,qword ptr [RAX + 0x20]
MOV RDX,qword ptr [RAX + 0x28]
CALL 0x0012a000
MOV RDI,qword ptr [RSP + 0x8]
CALL 0x0012e1d0
JMP 0x0013bde6
LAB_0013bdd8:
MOV RDI,qword ptr [RSP + 0x8]
ADD RDI,0x8
CALL 0x00129f20
LAB_0013bde6:
MOV RDI,qword ptr [RSP + 0x10]
MOV RSI,qword ptr [RSP + 0x8]
CALL 0x00127c50
LAB_0013bdf5:
JMP 0x0013bdf7
LAB_0013bdf7:
ADD RSP,0x18
RET
|
void free_var_ref(int8 param_1,int *param_2)
{
int iVar1;
if ((param_2 != (int *)0x0) && (iVar1 = *param_2, *param_2 = iVar1 + -1, iVar1 + -1 == 0)) {
if ((*(byte *)((long)param_2 + 5) & 1) == 0) {
list_del(param_2 + 2);
}
else {
JS_FreeValueRT(param_1,*(int8 *)(param_2 + 8),*(int8 *)(param_2 + 10));
remove_gc_object(param_2);
}
js_free_rt(param_1,param_2);
}
return;
}
|
|
58,067
|
free_var_ref
|
bluesky950520[P]quickjs/quickjs.c
|
static void free_var_ref(JSRuntime *rt, JSVarRef *var_ref)
{
if (var_ref) {
assert(var_ref->header.ref_count > 0);
if (--var_ref->header.ref_count == 0) {
if (var_ref->is_detached) {
JS_FreeValueRT(rt, var_ref->value);
remove_gc_object(&var_ref->header);
} else {
list_del(&var_ref->header.link); /* still on the stack */
}
js_free_rt(rt, var_ref);
}
}
}
|
O1
|
c
|
free_var_ref:
pushq %r14
pushq %rbx
pushq %rax
testq %rsi, %rsi
je 0x2a458
movq %rsi, %rbx
decl (%rsi)
je 0x2a460
addq $0x8, %rsp
popq %rbx
popq %r14
retq
movq %rdi, %r14
testb $0x1, 0x5(%rbx)
je 0x2a479
movq 0x20(%rbx), %rsi
movq 0x28(%rbx), %rdx
movq %r14, %rdi
callq 0x21922
movq 0x8(%rbx), %rax
movq 0x10(%rbx), %rcx
movq %rcx, 0x8(%rax)
movq %rax, (%rcx)
xorps %xmm0, %xmm0
movups %xmm0, 0x8(%rbx)
decq 0x28(%r14)
movq %rbx, %rdi
callq *0x20(%r14)
movq 0x10(%r14), %rcx
movq 0x30(%r14), %rdx
subq %rax, %rdx
addq $-0x8, %rdx
movq %rdx, 0x30(%r14)
movq 0x40(%r14), %rdi
movq %rbx, %rsi
addq $0x8, %rsp
popq %rbx
popq %r14
jmpq *%rcx
|
free_var_ref:
push r14
push rbx
push rax
test rsi, rsi
jz short loc_2A458
mov rbx, rsi
dec dword ptr [rsi]
jz short loc_2A460
loc_2A458:
add rsp, 8
pop rbx
pop r14
retn
loc_2A460:
mov r14, rdi
test byte ptr [rbx+5], 1
jz short loc_2A479
mov rsi, [rbx+20h]
mov rdx, [rbx+28h]
mov rdi, r14
call JS_FreeValueRT
loc_2A479:
mov rax, [rbx+8]
mov rcx, [rbx+10h]
mov [rax+8], rcx
mov [rcx], rax
xorps xmm0, xmm0
movups xmmword ptr [rbx+8], xmm0
dec qword ptr [r14+28h]
mov rdi, rbx
call qword ptr [r14+20h]
mov rcx, [r14+10h]
mov rdx, [r14+30h]
sub rdx, rax
add rdx, 0FFFFFFFFFFFFFFF8h
mov [r14+30h], rdx
mov rdi, [r14+40h]
mov rsi, rbx
add rsp, 8
pop rbx
pop r14
jmp rcx
|
long long free_var_ref(long long a1, long long a2)
{
long long v3; // rax
_QWORD *v4; // rcx
long long v5; // rax
long long ( *v6)(_QWORD, long long); // rcx
long long result; // rax
if ( a2 )
{
if ( (*(_DWORD *)a2)-- == 1 )
{
if ( (*(_BYTE *)(a2 + 5) & 1) != 0 )
JS_FreeValueRT(a1, *(_DWORD **)(a2 + 32), *(_QWORD *)(a2 + 40));
v3 = *(_QWORD *)(a2 + 8);
v4 = *(_QWORD **)(a2 + 16);
*(_QWORD *)(v3 + 8) = v4;
*v4 = v3;
*(_OWORD *)(a2 + 8) = 0LL;
--*(_QWORD *)(a1 + 40);
v5 = (*(long long ( **)(long long))(a1 + 32))(a2);
v6 = *(long long ( **)(_QWORD, long long))(a1 + 16);
*(_QWORD *)(a1 + 48) = *(_QWORD *)(a1 + 48) - v5 - 8;
return v6(*(_QWORD *)(a1 + 64), a2);
}
}
return result;
}
|
free_var_ref:
PUSH R14
PUSH RBX
PUSH RAX
TEST RSI,RSI
JZ 0x0012a458
MOV RBX,RSI
DEC dword ptr [RSI]
JZ 0x0012a460
LAB_0012a458:
ADD RSP,0x8
POP RBX
POP R14
RET
LAB_0012a460:
MOV R14,RDI
TEST byte ptr [RBX + 0x5],0x1
JZ 0x0012a479
MOV RSI,qword ptr [RBX + 0x20]
MOV RDX,qword ptr [RBX + 0x28]
MOV RDI,R14
CALL 0x00121922
LAB_0012a479:
MOV RAX,qword ptr [RBX + 0x8]
MOV RCX,qword ptr [RBX + 0x10]
MOV qword ptr [RAX + 0x8],RCX
MOV qword ptr [RCX],RAX
XORPS XMM0,XMM0
MOVUPS xmmword ptr [RBX + 0x8],XMM0
DEC qword ptr [R14 + 0x28]
MOV RDI,RBX
CALL qword ptr [R14 + 0x20]
MOV RCX,qword ptr [R14 + 0x10]
MOV RDX,qword ptr [R14 + 0x30]
SUB RDX,RAX
ADD RDX,-0x8
MOV qword ptr [R14 + 0x30],RDX
MOV RDI,qword ptr [R14 + 0x40]
MOV RSI,RBX
ADD RSP,0x8
POP RBX
POP R14
JMP RCX
|
void free_var_ref(long param_1,int *param_2)
{
long *plVar1;
long lVar2;
if ((param_2 != (int *)0x0) && (*param_2 = *param_2 + -1, *param_2 == 0)) {
if ((*(byte *)((long)param_2 + 5) & 1) != 0) {
JS_FreeValueRT(param_1,*(int8 *)(param_2 + 8),*(int8 *)(param_2 + 10));
}
lVar2 = *(long *)(param_2 + 2);
plVar1 = *(long **)(param_2 + 4);
*(long **)(lVar2 + 8) = plVar1;
*plVar1 = lVar2;
param_2[2] = 0;
param_2[3] = 0;
param_2[4] = 0;
param_2[5] = 0;
*(long *)(param_1 + 0x28) = *(long *)(param_1 + 0x28) + -1;
lVar2 = (**(code **)(param_1 + 0x20))(param_2);
lVar2 = (*(long *)(param_1 + 0x30) - lVar2) + -8;
*(long *)(param_1 + 0x30) = lVar2;
/* WARNING: Could not recover jumptable at 0x0012a4bb. Too many branches */
/* WARNING: Treating indirect jump as call */
(**(code **)(param_1 + 0x10))
(*(int8 *)(param_1 + 0x40),param_2,lVar2,*(code **)(param_1 + 0x10));
return;
}
return;
}
|
|
58,068
|
minja::FilterNode::FilterNode(minja::Location const&, std::shared_ptr<minja::Expression>&&, std::shared_ptr<minja::TemplateNode>&&)
|
monkey531[P]llama/common/minja.hpp
|
TemplateNode(const Location & location) : location_(location) {}
|
O3
|
cpp
|
minja::FilterNode::FilterNode(minja::Location const&, std::shared_ptr<minja::Expression>&&, std::shared_ptr<minja::TemplateNode>&&):
leaq 0x7922f(%rip), %rax # 0xe1fe8
addq $0x10, %rax
movq %rax, (%rdi)
movq (%rsi), %rax
movq %rax, 0x8(%rdi)
movq 0x8(%rsi), %rax
movq %rax, 0x10(%rdi)
testq %rax, %rax
je 0x68dea
movq 0x7a1bd(%rip), %r8 # 0xe2f98
cmpb $0x0, (%r8)
je 0x68de6
incl 0x8(%rax)
jmp 0x68dea
lock
incl 0x8(%rax)
movq 0x10(%rsi), %rax
movq %rax, 0x18(%rdi)
leaq 0x7971f(%rip), %rax # 0xe2518
addq $0x10, %rax
movq %rax, (%rdi)
xorl %eax, %eax
movq %rax, 0x28(%rdi)
movups (%rdx), %xmm0
movq %rax, 0x8(%rdx)
movups %xmm0, 0x20(%rdi)
movq %rax, (%rdx)
movq %rax, 0x38(%rdi)
movups (%rcx), %xmm0
movq %rax, 0x8(%rcx)
movups %xmm0, 0x30(%rdi)
movq %rax, (%rcx)
retq
nop
|
_ZN5minja10FilterNodeC2ERKNS_8LocationEOSt10shared_ptrINS_10ExpressionEEOS4_INS_12TemplateNodeEE:
lea rax, _ZTVN5minja12TemplateNodeE; `vtable for'minja::TemplateNode
add rax, 10h
mov [rdi], rax
mov rax, [rsi]
mov [rdi+8], rax
mov rax, [rsi+8]
mov [rdi+10h], rax
test rax, rax
jz short loc_68DEA
mov r8, cs:__libc_single_threaded_ptr
cmp byte ptr [r8], 0
jz short loc_68DE6
inc dword ptr [rax+8]
jmp short loc_68DEA
loc_68DE6:
lock inc dword ptr [rax+8]
loc_68DEA:
mov rax, [rsi+10h]
mov [rdi+18h], rax
lea rax, _ZTVN5minja10FilterNodeE; `vtable for'minja::FilterNode
add rax, 10h
mov [rdi], rax
xor eax, eax
mov [rdi+28h], rax
movups xmm0, xmmword ptr [rdx]
mov [rdx+8], rax
movups xmmword ptr [rdi+20h], xmm0
mov [rdx], rax
mov [rdi+38h], rax
movups xmm0, xmmword ptr [rcx]
mov [rcx+8], rax
movups xmmword ptr [rdi+30h], xmm0
mov [rcx], rax
retn
|
long long minja::FilterNode::FilterNode(long long a1, _QWORD *a2, __int128 *a3, __int128 *a4)
{
long long v4; // rax
long long result; // rax
__int128 v6; // xmm0
__int128 v7; // xmm0
*(_QWORD *)a1 = &`vtable for'minja::TemplateNode + 2;
*(_QWORD *)(a1 + 8) = *a2;
v4 = a2[1];
*(_QWORD *)(a1 + 16) = v4;
if ( v4 )
{
if ( _libc_single_threaded )
++*(_DWORD *)(v4 + 8);
else
_InterlockedIncrement((volatile signed __int32 *)(v4 + 8));
}
*(_QWORD *)(a1 + 24) = a2[2];
*(_QWORD *)a1 = &`vtable for'minja::FilterNode + 2;
result = 0LL;
*(_QWORD *)(a1 + 40) = 0LL;
v6 = *a3;
*((_QWORD *)a3 + 1) = 0LL;
*(_OWORD *)(a1 + 32) = v6;
*(_QWORD *)a3 = 0LL;
*(_QWORD *)(a1 + 56) = 0LL;
v7 = *a4;
*((_QWORD *)a4 + 1) = 0LL;
*(_OWORD *)(a1 + 48) = v7;
*(_QWORD *)a4 = 0LL;
return result;
}
|
FilterNode:
LEA RAX,[0x1e1fe8]
ADD RAX,0x10
MOV qword ptr [RDI],RAX
MOV RAX,qword ptr [RSI]
MOV qword ptr [RDI + 0x8],RAX
MOV RAX,qword ptr [RSI + 0x8]
MOV qword ptr [RDI + 0x10],RAX
TEST RAX,RAX
JZ 0x00168dea
MOV R8,qword ptr [0x001e2f98]
CMP byte ptr [R8],0x0
JZ 0x00168de6
INC dword ptr [RAX + 0x8]
JMP 0x00168dea
LAB_00168de6:
INC.LOCK dword ptr [RAX + 0x8]
LAB_00168dea:
MOV RAX,qword ptr [RSI + 0x10]
MOV qword ptr [RDI + 0x18],RAX
LEA RAX,[0x1e2518]
ADD RAX,0x10
MOV qword ptr [RDI],RAX
XOR EAX,EAX
MOV qword ptr [RDI + 0x28],RAX
MOVUPS XMM0,xmmword ptr [RDX]
MOV qword ptr [RDX + 0x8],RAX
MOVUPS xmmword ptr [RDI + 0x20],XMM0
MOV qword ptr [RDX],RAX
MOV qword ptr [RDI + 0x38],RAX
MOVUPS XMM0,xmmword ptr [RCX]
MOV qword ptr [RCX + 0x8],RAX
MOVUPS xmmword ptr [RDI + 0x30],XMM0
MOV qword ptr [RCX],RAX
RET
|
/* minja::FilterNode::FilterNode(minja::Location const&, std::shared_ptr<minja::Expression>&&,
std::shared_ptr<minja::TemplateNode>&&) */
void __thiscall
minja::FilterNode::FilterNode
(FilterNode *this,Location *param_1,shared_ptr *param_2,shared_ptr *param_3)
{
long lVar1;
int8 uVar2;
*(int ***)this = &PTR___cxa_pure_virtual_001e1ff8;
*(int8 *)(this + 8) = *(int8 *)param_1;
lVar1 = *(long *)(param_1 + 8);
*(long *)(this + 0x10) = lVar1;
if (lVar1 != 0) {
if (*PTR___libc_single_threaded_001e2f98 == '\0') {
LOCK();
*(int *)(lVar1 + 8) = *(int *)(lVar1 + 8) + 1;
UNLOCK();
}
else {
*(int *)(lVar1 + 8) = *(int *)(lVar1 + 8) + 1;
}
}
*(int8 *)(this + 0x18) = *(int8 *)(param_1 + 0x10);
*(int ***)this = &PTR_do_render_001e2528;
*(int8 *)(this + 0x28) = 0;
uVar2 = *(int8 *)(param_2 + 8);
*(int8 *)(param_2 + 8) = 0;
*(int8 *)(this + 0x20) = *(int8 *)param_2;
*(int8 *)(this + 0x28) = uVar2;
*(int8 *)param_2 = 0;
*(int8 *)(this + 0x38) = 0;
uVar2 = *(int8 *)(param_3 + 8);
*(int8 *)(param_3 + 8) = 0;
*(int8 *)(this + 0x30) = *(int8 *)param_3;
*(int8 *)(this + 0x38) = uVar2;
*(int8 *)param_3 = 0;
return;
}
|
|
58,069
|
linenoisePrintKeyCodes
|
monkey531[P]llama/examples/run/linenoise.cpp/linenoise.cpp
|
void linenoisePrintKeyCodes(void) {
char quit[4];
printf("Linenoise key codes debugging mode.\n"
"Press keys to see scan codes. Type 'quit' at any time to exit.\n");
if (enableRawMode(STDIN_FILENO) == -1) return;
memset(quit,' ',4);
while(1) {
char c;
int nread;
nread = read(STDIN_FILENO,&c,1);
if (nread <= 0) continue;
memmove(quit,quit+1,sizeof(quit)-1); /* shift string to left. */
quit[sizeof(quit)-1] = c; /* Insert current char on the right. */
if (memcmp(quit,"quit",sizeof(quit)) == 0) break;
printf("'%c' %02x (%d) (type quit to exit)\n",
isprint(c) ? c : '?', (int)c, (int)c);
printf("\r"); /* Go left edge manually, we are in raw mode. */
fflush(stdout);
}
disableRawMode(STDIN_FILENO);
}
|
O1
|
cpp
|
linenoisePrintKeyCodes:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
leaq 0x69a39(%rip), %rdi # 0xb6643
callq 0x19c20
xorl %edi, %edi
callq 0x4c1a9
cmpl $-0x1, %eax
je 0x4ccd7
leaq 0x5(%rsp), %r15
movl $0x20202020, -0x1(%r15) # imm = 0x20202020
leaq 0x3(%rsp), %rbx
movl $0x3f, %r12d
leaq 0x69993(%rip), %r14 # 0xb65d1
movq 0x9e2d3(%rip), %r13 # 0xeaf18
movl $0x1, %edx
xorl %edi, %edi
movq %rbx, %rsi
callq 0x19b70
testl %eax, %eax
jle 0x4cc45
movzwl (%r15), %eax
movb 0x2(%r15), %cl
movb %cl, 0x6(%rsp)
movw %ax, 0x4(%rsp)
movsbl 0x3(%rsp), %ebp
movb %bpl, 0x7(%rsp)
cmpl $0x74697571, 0x4(%rsp) # imm = 0x74697571
je 0x4ccaf
movl %ebp, %edi
callq 0x19e10
testl %eax, %eax
movl %ebp, %esi
cmovel %r12d, %esi
movq %r14, %rdi
movl %ebp, %edx
movl %ebp, %ecx
xorl %eax, %eax
callq 0x19070
movl $0xd, %edi
callq 0x19ae0
movq (%r13), %rdi
callq 0x198e0
jmp 0x4cc45
cmpb $0x1, 0x9f08a(%rip) # 0xebd40
jne 0x4ccd7
leaq 0x9f045(%rip), %rdx # 0xebd04
xorl %edi, %edi
movl $0x2, %esi
callq 0x199c0
cmpl $-0x1, %eax
je 0x4ccd7
movb $0x0, 0x9f069(%rip) # 0xebd40
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
|
linenoisePrintKeyCodes:
push rbp
push r15
push r14
push r13
push r12
push rbx
push rax
lea rdi, aLinenoiseKeyCo; "Linenoise key codes debugging mode.\nPr"...
call _puts
xor edi, edi; int
call _ZL13enableRawModei; enableRawMode(int)
cmp eax, 0FFFFFFFFh
jz loc_4CCD7
lea r15, [rsp+38h+var_33]
mov dword ptr [r15-1], 20202020h
lea rbx, [rsp+38h+var_35]
mov r12d, 3Fh ; '?'
lea r14, aC02xDTypeQuitT; "'%c' %02x (%d) (type quit to exit)\n"
mov r13, cs:stdout_ptr
loc_4CC45:
mov edx, 1
xor edi, edi
mov rsi, rbx
call _read
test eax, eax
jle short loc_4CC45
movzx eax, word ptr [r15]
mov cl, [r15+2]
mov [rsp+38h+var_32], cl
mov [rsp+4], ax
movsx ebp, [rsp+38h+var_35]
mov [rsp+38h+var_31], bpl
cmp dword ptr [rsp+4], 74697571h
jz short loc_4CCAF
mov edi, ebp
call _isprint
test eax, eax
mov esi, ebp
cmovz esi, r12d
mov rdi, r14
mov edx, ebp
mov ecx, ebp
xor eax, eax
call _printf
mov edi, 0Dh
call _putchar
mov rdi, [r13+0]
call _fflush
jmp short loc_4CC45
loc_4CCAF:
cmp cs:_ZL7rawmode, 1; rawmode
jnz short loc_4CCD7
lea rdx, _ZL12orig_termios; orig_termios
xor edi, edi
mov esi, 2
call _tcsetattr
cmp eax, 0FFFFFFFFh
jz short loc_4CCD7
mov cs:_ZL7rawmode, 0; rawmode
loc_4CCD7:
add rsp, 8
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
|
linenoisePrintKeyCodes:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
PUSH RAX
LEA RDI,[0x1b6643]
CALL 0x00119c20
XOR EDI,EDI
CALL 0x0014c1a9
CMP EAX,-0x1
JZ 0x0014ccd7
LEA R15,[RSP + 0x5]
MOV dword ptr [R15 + -0x1],0x20202020
LEA RBX,[RSP + 0x3]
MOV R12D,0x3f
LEA R14,[0x1b65d1]
MOV R13,qword ptr [0x001eaf18]
LAB_0014cc45:
MOV EDX,0x1
XOR EDI,EDI
MOV RSI,RBX
CALL 0x00119b70
TEST EAX,EAX
JLE 0x0014cc45
MOVZX EAX,word ptr [R15]
MOV CL,byte ptr [R15 + 0x2]
MOV byte ptr [RSP + 0x6],CL
MOV word ptr [RSP + 0x4],AX
MOVSX EBP,byte ptr [RSP + 0x3]
MOV byte ptr [RSP + 0x7],BPL
CMP dword ptr [RSP + 0x4],0x74697571
JZ 0x0014ccaf
MOV EDI,EBP
CALL 0x00119e10
TEST EAX,EAX
MOV ESI,EBP
CMOVZ ESI,R12D
MOV RDI,R14
MOV EDX,EBP
MOV ECX,EBP
XOR EAX,EAX
CALL 0x00119070
MOV EDI,0xd
CALL 0x00119ae0
MOV RDI,qword ptr [R13]
CALL 0x001198e0
JMP 0x0014cc45
LAB_0014ccaf:
CMP byte ptr [0x001ebd40],0x1
JNZ 0x0014ccd7
LEA RDX,[0x1ebd04]
XOR EDI,EDI
MOV ESI,0x2
CALL 0x001199c0
CMP EAX,-0x1
JZ 0x0014ccd7
MOV byte ptr [0x001ebd40],0x0
LAB_0014ccd7:
ADD RSP,0x8
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
|
void linenoisePrintKeyCodes(void)
{
int7 uVar1;
int *puVar2;
int8 uVar3;
int4 in_EAX;
int iVar4;
ssize_t sVar5;
uint uVar6;
ulong uVar7;
int1 auStack_38 [3];
char local_35;
int4 local_34;
puts(
"Linenoise key codes debugging mode.\nPress keys to see scan codes. Type \'quit\' at any time to exit."
);
iVar4 = enableRawMode(0);
puVar2 = PTR_stdout_001eaf18;
if (iVar4 != -1) {
_auStack_38 = CONCAT44(0x20202020,in_EAX);
while( true ) {
do {
uVar3 = _auStack_38;
sVar5 = read(0,&local_35,1);
} while ((int)sVar5 < 1);
_auStack_38 = CONCAT24(local_34._1_2_,_auStack_38);
uVar1 = CONCAT16(local_34._3_1_,_auStack_38);
local_35 = SUB81(uVar3,3);
uVar6 = (uint)local_35;
_auStack_38 = CONCAT17(local_35,uVar1);
if (local_34 == 0x74697571) break;
iVar4 = isprint(uVar6);
uVar7 = (ulong)uVar6;
if (iVar4 == 0) {
uVar7 = 0x3f;
}
printf("\'%c\' %02x (%d) (type quit to exit)\n",uVar7,(ulong)uVar6,(ulong)uVar6);
putchar(0xd);
fflush(*(FILE **)puVar2);
}
if (rawmode == '\x01') {
iVar4 = tcsetattr(0,2,(termios *)orig_termios);
if (iVar4 != -1) {
rawmode = '\0';
}
}
}
return;
}
|
||
58,070
|
google::protobuf::EnumValueDescriptorProto::MergeImpl(google::protobuf::Message&, google::protobuf::Message const&)
|
aimrt_mujoco_sim/_deps/protobuf-src/src/google/protobuf/descriptor.pb.cc
|
void EnumValueDescriptorProto::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) {
auto* const _this = static_cast<EnumValueDescriptorProto*>(&to_msg);
auto& from = static_cast<const EnumValueDescriptorProto&>(from_msg);
// @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.EnumValueDescriptorProto)
GOOGLE_DCHECK_NE(&from, _this);
uint32_t cached_has_bits = 0;
(void) cached_has_bits;
cached_has_bits = from._impl_._has_bits_[0];
if (cached_has_bits & 0x00000007u) {
if (cached_has_bits & 0x00000001u) {
_this->_internal_set_name(from._internal_name());
}
if (cached_has_bits & 0x00000002u) {
_this->_internal_mutable_options()->::PROTOBUF_NAMESPACE_ID::EnumValueOptions::MergeFrom(
from._internal_options());
}
if (cached_has_bits & 0x00000004u) {
_this->_impl_.number_ = from._impl_.number_;
}
_this->_impl_._has_bits_[0] |= cached_has_bits;
}
_this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
}
|
O0
|
cpp
|
google::protobuf::EnumValueDescriptorProto::MergeImpl(google::protobuf::Message&, google::protobuf::Message const&):
subq $0x148, %rsp # imm = 0x148
movq %rdi, 0xb8(%rsp)
movq %rsi, 0xb0(%rsp)
movq 0xb8(%rsp), %rax
movq %rax, 0xa8(%rsp)
movq 0xb0(%rsp), %rax
movq %rax, 0xa0(%rsp)
xorl %eax, %eax
testb $0x1, %al
jne 0xb90e2
jmp 0xb918c
movq 0xa0(%rsp), %rax
movq 0xa8(%rsp), %rcx
movb $0x0, 0x67(%rsp)
cmpq %rcx, %rax
je 0xb90fe
jmp 0xb914e
leaq 0x13782b(%rip), %rdx # 0x1f0930
leaq 0x68(%rsp), %rdi
movq %rdi, 0x38(%rsp)
movl $0x3, %esi
movl $0x14d6, %ecx # imm = 0x14D6
callq 0x237e0
movq 0x38(%rsp), %rdi
movb $0x1, 0x67(%rsp)
leaq 0x13786b(%rip), %rsi # 0x1f099a
callq 0x230a0
movq %rax, 0x40(%rsp)
jmp 0xb913b
movq 0x40(%rsp), %rsi
leaq 0x53(%rsp), %rdi
callq 0x23250
jmp 0xb914c
jmp 0xb914e
testb $0x1, 0x67(%rsp)
jne 0xb9157
jmp 0xb9161
leaq 0x68(%rsp), %rdi
callq 0x23820
jmp 0xb90d7
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x58(%rsp)
movl %eax, 0x54(%rsp)
testb $0x1, 0x67(%rsp)
jne 0xb917d
jmp 0xb9187
leaq 0x68(%rsp), %rdi
callq 0x23820
jmp 0xb9420
movl $0x0, 0x4c(%rsp)
movq 0xa0(%rsp), %rax
addq $0x10, %rax
movq %rax, 0x110(%rsp)
movl $0x0, 0x10c(%rsp)
movq 0x110(%rsp), %rax
movslq 0x10c(%rsp), %rcx
movl (%rax,%rcx,4), %eax
movl %eax, 0x4c(%rsp)
movl 0x4c(%rsp), %eax
andl $0x7, %eax
cmpl $0x0, %eax
je 0xb931b
movl 0x4c(%rsp), %eax
andl $0x1, %eax
cmpl $0x0, %eax
je 0xb9288
movq 0xa8(%rsp), %rax
movq %rax, 0x20(%rsp)
movq 0xa0(%rsp), %rdi
callq 0x88970
movq 0x20(%rsp), %rcx
movq %rcx, 0x120(%rsp)
movq %rax, 0x118(%rsp)
movq 0x120(%rsp), %rdi
movq %rdi, %rax
addq $0x10, %rax
movq %rax, 0x130(%rsp)
movl $0x0, 0x12c(%rsp)
movq 0x130(%rsp), %rax
movslq 0x12c(%rsp), %rcx
movl (%rax,%rcx,4), %edx
orl $0x1, %edx
movl %edx, (%rax,%rcx,4)
movq %rdi, %rax
addq $0x10, %rax
addq $0x8, %rax
movq %rax, 0x28(%rsp)
movq 0x118(%rsp), %rax
movq %rax, 0x30(%rsp)
callq 0x80180
movq 0x28(%rsp), %rdi
movq 0x30(%rsp), %rsi
movq %rax, %rdx
callq 0x183680
movl 0x4c(%rsp), %eax
andl $0x2, %eax
cmpl $0x0, %eax
je 0xb92c0
movq 0xa8(%rsp), %rdi
callq 0x818b0
movq %rax, 0x18(%rsp)
movq 0xa0(%rsp), %rdi
callq 0x88ae0
movq 0x18(%rsp), %rdi
movq %rax, %rsi
callq 0xd86b0
movl 0x4c(%rsp), %eax
andl $0x4, %eax
cmpl $0x0, %eax
je 0xb92e2
movq 0xa0(%rsp), %rax
movl 0x28(%rax), %ecx
movq 0xa8(%rsp), %rax
movl %ecx, 0x28(%rax)
movl 0x4c(%rsp), %edx
movq 0xa8(%rsp), %rax
addq $0x10, %rax
movq %rax, 0x100(%rsp)
movl $0x0, 0xfc(%rsp)
movq 0x100(%rsp), %rax
movslq 0xfc(%rsp), %rcx
orl (%rax,%rcx,4), %edx
movl %edx, (%rax,%rcx,4)
movq 0xa8(%rsp), %rcx
addq $0x8, %rcx
movq 0xa0(%rsp), %rax
addq $0x8, %rax
movq %rcx, 0xc8(%rsp)
movq %rax, 0xc0(%rsp)
movq 0xc8(%rsp), %rax
movq %rax, 0x10(%rsp)
movq 0xc0(%rsp), %rax
movq %rax, 0xd0(%rsp)
movq 0xd0(%rsp), %rax
movq %rax, 0x140(%rsp)
movq 0x140(%rsp), %rax
movq (%rax), %rax
andq $0x1, %rax
cmpq $0x0, %rax
je 0xb9418
movq 0xc0(%rsp), %rax
movq %rax, 0xe0(%rsp)
movq $0x0, 0xd8(%rsp)
movq 0xe0(%rsp), %rax
movq %rax, 0x8(%rsp)
movq %rax, 0xf0(%rsp)
movq 0xf0(%rsp), %rax
movq %rax, 0x138(%rsp)
movq 0x138(%rsp), %rax
movq (%rax), %rax
andq $0x1, %rax
cmpq $0x0, %rax
je 0xb93f7
movq 0x8(%rsp), %rdi
callq 0x9cd40
addq $0x8, %rax
movq %rax, 0xe8(%rsp)
jmp 0xb9406
callq *0xd8(%rsp)
movq %rax, 0xe8(%rsp)
movq 0x10(%rsp), %rdi
movq 0xe8(%rsp), %rsi
callq 0xe0920
addq $0x148, %rsp # imm = 0x148
retq
movq 0x58(%rsp), %rdi
callq 0x13750
nopw (%rax,%rax)
|
_ZN6google8protobuf24EnumValueDescriptorProto9MergeImplERNS0_7MessageERKS2_:
sub rsp, 148h
mov [rsp+148h+var_90], rdi
mov [rsp+148h+var_98], rsi
mov rax, [rsp+148h+var_90]
mov [rsp+148h+var_A0], rax
mov rax, [rsp+148h+var_98]
mov [rsp+148h+var_A8], rax
loc_B90D7:
xor eax, eax
test al, 1
jnz short loc_B90E2
jmp loc_B918C
loc_B90E2:
mov rax, [rsp+148h+var_A8]
mov rcx, [rsp+148h+var_A0]
mov [rsp+148h+var_E1], 0
cmp rax, rcx
jz short loc_B90FE
jmp short loc_B914E
loc_B90FE:
lea rdx, aWorkspaceLlm4b_8; "/workspace/llm4binary/github2025/aimrt_"...
lea rdi, [rsp+148h+var_E0]
mov [rsp+148h+var_110], rdi
mov esi, 3
mov ecx, 14D6h
call _ZN6google8protobuf8internal10LogMessageC2ENS0_8LogLevelEPKci; google::protobuf::internal::LogMessage::LogMessage(google::protobuf::LogLevel,char const*,int)
mov rdi, [rsp+148h+var_110]
mov [rsp+148h+var_E1], 1
lea rsi, aCheckFailedFro; "CHECK failed: (&from) != (_this): "
call _ZN6google8protobuf8internal10LogMessagelsEPKc; google::protobuf::internal::LogMessage::operator<<(char const*)
mov [rsp+148h+var_108], rax
jmp short $+2
loc_B913B:
mov rsi, [rsp+148h+var_108]
lea rdi, [rsp+148h+var_F5]
call _ZN6google8protobuf8internal11LogFinisheraSERNS1_10LogMessageE; google::protobuf::internal::LogFinisher::operator=(google::protobuf::internal::LogMessage &)
jmp short $+2
loc_B914C:
jmp short $+2
loc_B914E:
test [rsp+148h+var_E1], 1
jnz short loc_B9157
jmp short loc_B9161
loc_B9157:
lea rdi, [rsp+148h+var_E0]; this
call _ZN6google8protobuf8internal10LogMessageD2Ev; google::protobuf::internal::LogMessage::~LogMessage()
loc_B9161:
jmp loc_B90D7
mov rcx, rax
mov eax, edx
mov [rsp+arg_50], rcx
mov [rsp+arg_4C], eax
test [rsp+arg_5F], 1
jnz short loc_B917D
jmp short loc_B9187
loc_B917D:
lea rdi, [rsp+arg_60]; this
call _ZN6google8protobuf8internal10LogMessageD2Ev; google::protobuf::internal::LogMessage::~LogMessage()
loc_B9187:
jmp loc_B9420
loc_B918C:
mov [rsp+148h+var_FC], 0
mov rax, [rsp+148h+var_A8]
add rax, 10h
mov [rsp+148h+var_38], rax
mov [rsp+148h+var_3C], 0
mov rax, [rsp+148h+var_38]
movsxd rcx, [rsp+148h+var_3C]
mov eax, [rax+rcx*4]
mov [rsp+148h+var_FC], eax
mov eax, [rsp+148h+var_FC]
and eax, 7
cmp eax, 0
jz loc_B931B
mov eax, [rsp+148h+var_FC]
and eax, 1
cmp eax, 0
jz loc_B9288
mov rax, [rsp+148h+var_A0]
mov [rsp+148h+var_128], rax
mov rdi, [rsp+148h+var_A8]
call _ZNK6google8protobuf24EnumValueDescriptorProto14_internal_nameB5cxx11Ev; google::protobuf::EnumValueDescriptorProto::_internal_name(void)
mov rcx, [rsp+148h+var_128]
mov [rsp+148h+var_28], rcx
mov [rsp+148h+var_30], rax
mov rdi, [rsp+148h+var_28]; this
mov rax, rdi
add rax, 10h
mov [rsp+148h+var_18], rax
mov [rsp+148h+var_1C], 0
mov rax, [rsp+148h+var_18]
movsxd rcx, [rsp+148h+var_1C]
mov edx, [rax+rcx*4]
or edx, 1
mov [rax+rcx*4], edx
mov rax, rdi
add rax, 10h
add rax, 8
mov qword ptr [rsp+148h+var_120], rax
mov rax, [rsp+148h+var_30]
mov qword ptr [rsp+148h+var_118], rax
call _ZNK6google8protobuf11MessageLite21GetArenaForAllocationEv; google::protobuf::MessageLite::GetArenaForAllocation(void)
mov rdi, qword ptr [rsp+148h+var_120]; int
mov rsi, qword ptr [rsp+148h+var_118]; int
mov rdx, rax; int
call _ZN6google8protobuf8internal14ArenaStringPtr3SetERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPNS0_5ArenaE; google::protobuf::internal::ArenaStringPtr::Set(std::string const&,google::protobuf::Arena *)
loc_B9288:
mov eax, [rsp+148h+var_FC]
and eax, 2
cmp eax, 0
jz short loc_B92C0
mov rdi, [rsp+148h+var_A0]; this
call _ZN6google8protobuf24EnumValueDescriptorProto25_internal_mutable_optionsEv; google::protobuf::EnumValueDescriptorProto::_internal_mutable_options(void)
mov [rsp+148h+var_130], rax
mov rdi, [rsp+148h+var_A8]; this
call _ZNK6google8protobuf24EnumValueDescriptorProto17_internal_optionsEv; google::protobuf::EnumValueDescriptorProto::_internal_options(void)
mov rdi, [rsp+148h+var_130]; this
mov rsi, rax; google::protobuf::EnumValueOptions *
call _ZN6google8protobuf16EnumValueOptions9MergeFromERKS1_; google::protobuf::EnumValueOptions::MergeFrom(google::protobuf::EnumValueOptions const&)
loc_B92C0:
mov eax, [rsp+148h+var_FC]
and eax, 4
cmp eax, 0
jz short loc_B92E2
mov rax, [rsp+148h+var_A8]
mov ecx, [rax+28h]
mov rax, [rsp+148h+var_A0]
mov [rax+28h], ecx
loc_B92E2:
mov edx, [rsp+148h+var_FC]
mov rax, [rsp+148h+var_A0]
add rax, 10h
mov [rsp+148h+var_48], rax
mov [rsp+148h+var_4C], 0
mov rax, [rsp+148h+var_48]
movsxd rcx, [rsp+148h+var_4C]
or edx, [rax+rcx*4]
mov [rax+rcx*4], edx
loc_B931B:
mov rcx, [rsp+148h+var_A0]
add rcx, 8
mov rax, [rsp+148h+var_A8]
add rax, 8
mov [rsp+148h+var_80], rcx
mov [rsp+148h+var_88], rax
mov rax, [rsp+148h+var_80]
mov [rsp+148h+var_138], rax
mov rax, [rsp+148h+var_88]
mov [rsp+148h+var_78], rax
mov rax, [rsp+148h+var_78]
mov [rsp+148h+var_8], rax
mov rax, [rsp+148h+var_8]
mov rax, [rax]
and rax, 1
cmp rax, 0
jz loc_B9418
mov rax, [rsp+148h+var_88]
mov [rsp+148h+var_68], rax
mov [rsp+148h+var_70], 0
mov rax, [rsp+148h+var_68]
mov [rsp+148h+var_140], rax
mov [rsp+148h+var_58], rax
mov rax, [rsp+148h+var_58]
mov [rsp+148h+var_10], rax
mov rax, [rsp+148h+var_10]
mov rax, [rax]
and rax, 1
cmp rax, 0
jz short loc_B93F7
mov rdi, [rsp+148h+var_140]
call _ZNK6google8protobuf8internal16InternalMetadata8PtrValueINS2_9ContainerINS0_15UnknownFieldSetEEEEEPT_v; google::protobuf::internal::InternalMetadata::PtrValue<google::protobuf::internal::InternalMetadata::Container<google::protobuf::UnknownFieldSet>>(void)
add rax, 8
mov qword ptr [rsp+148h+var_60], rax
jmp short loc_B9406
loc_B93F7:
call [rsp+148h+var_70]
mov qword ptr [rsp+148h+var_60], rax
loc_B9406:
mov rdi, [rsp+148h+var_138]; void *
mov rsi, qword ptr [rsp+148h+var_60]; int
call _ZN6google8protobuf8internal16InternalMetadata11DoMergeFromINS0_15UnknownFieldSetEEEvRKT_; google::protobuf::internal::InternalMetadata::DoMergeFrom<google::protobuf::UnknownFieldSet>(google::protobuf::UnknownFieldSet const&)
loc_B9418:
add rsp, 148h
retn
loc_B9420:
mov rdi, [rsp+arg_50]
call __Unwind_Resume
|
long long google::protobuf::EnumValueDescriptorProto::MergeImpl(
google::protobuf::EnumValueDescriptorProto *this,
void ( ***a2)(google::protobuf::EnumValueOptions *__hidden this),
unsigned long long a3)
{
int ArenaForAllocation; // eax
long long result; // rax
unsigned int v5; // [rsp+4Ch] [rbp-FCh]
google::protobuf::EnumValueDescriptorProto *v6; // [rsp+A0h] [rbp-A8h]
google::protobuf::EnumValueDescriptorProto *v7; // [rsp+A8h] [rbp-A0h]
_QWORD *v8; // [rsp+C0h] [rbp-88h]
int v9[2]; // [rsp+E8h] [rbp-60h]
google::protobuf::Message *v10; // [rsp+118h] [rbp-30h]
v7 = this;
v6 = (google::protobuf::EnumValueDescriptorProto *)a2;
v5 = *((_DWORD *)a2 + 4);
if ( (v5 & 7) != 0 )
{
if ( (v5 & 1) != 0 )
{
v10 = (google::protobuf::Message *)google::protobuf::EnumValueDescriptorProto::_internal_name[abi:cxx11]((long long)a2);
*((_DWORD *)this + 4) |= 1u;
ArenaForAllocation = google::protobuf::MessageLite::GetArenaForAllocation(this);
this = (google::protobuf::EnumValueDescriptorProto *)((char *)this + 24);
a2 = (void ( ***)(google::protobuf::EnumValueOptions *__hidden))v10;
google::protobuf::internal::ArenaStringPtr::Set((_DWORD)v7 + 24, (int)v10, ArenaForAllocation);
}
if ( (v5 & 2) != 0 )
{
this = (google::protobuf::EnumValueDescriptorProto *)google::protobuf::EnumValueDescriptorProto::_internal_mutable_options(v7);
a2 = google::protobuf::EnumValueDescriptorProto::_internal_options(v6);
google::protobuf::EnumValueOptions::MergeFrom(this, (const google::protobuf::EnumValueOptions *)a2);
}
if ( (v5 & 4) != 0 )
*((_DWORD *)v7 + 10) = *((_DWORD *)v6 + 10);
a3 = *((_DWORD *)v7 + 4) | v5;
*((_DWORD *)v7 + 4) = a3;
}
v8 = (_QWORD *)((char *)v6 + 8);
result = *((_QWORD *)v6 + 1) & 1LL;
if ( result )
{
if ( (*v8 & 1LL) != 0 )
*(_QWORD *)v9 = google::protobuf::internal::InternalMetadata::PtrValue<google::protobuf::internal::InternalMetadata::Container<google::protobuf::UnknownFieldSet>>(v8)
+ 8;
else
v9[0] = ((long long ( *)(google::protobuf::EnumValueDescriptorProto *, void ( ***)(google::protobuf::EnumValueOptions *__hidden), unsigned long long))dword_0)(
this,
a2,
a3);
return google::protobuf::internal::InternalMetadata::DoMergeFrom<google::protobuf::UnknownFieldSet>(
(char *)v7 + 8,
v9[0]);
}
return result;
}
|
MergeImpl:
SUB RSP,0x148
MOV qword ptr [RSP + 0xb8],RDI
MOV qword ptr [RSP + 0xb0],RSI
MOV RAX,qword ptr [RSP + 0xb8]
MOV qword ptr [RSP + 0xa8],RAX
MOV RAX,qword ptr [RSP + 0xb0]
MOV qword ptr [RSP + 0xa0],RAX
LAB_001b90d7:
XOR EAX,EAX
TEST AL,0x1
JNZ 0x001b90e2
JMP 0x001b918c
LAB_001b90e2:
MOV RAX,qword ptr [RSP + 0xa0]
MOV RCX,qword ptr [RSP + 0xa8]
MOV byte ptr [RSP + 0x67],0x0
CMP RAX,RCX
JZ 0x001b90fe
JMP 0x001b914e
LAB_001b90fe:
LEA RDX,[0x2f0930]
LEA RDI,[RSP + 0x68]
MOV qword ptr [RSP + 0x38],RDI
MOV ESI,0x3
MOV ECX,0x14d6
CALL 0x001237e0
MOV RDI,qword ptr [RSP + 0x38]
MOV byte ptr [RSP + 0x67],0x1
LAB_001b9128:
LEA RSI,[0x2f099a]
CALL 0x001230a0
MOV qword ptr [RSP + 0x40],RAX
JMP 0x001b913b
LAB_001b913b:
MOV RSI,qword ptr [RSP + 0x40]
LEA RDI,[RSP + 0x53]
CALL 0x00123250
LAB_001b914a:
JMP 0x001b914c
LAB_001b914c:
JMP 0x001b914e
LAB_001b914e:
TEST byte ptr [RSP + 0x67],0x1
JNZ 0x001b9157
JMP 0x001b9161
LAB_001b9157:
LEA RDI,[RSP + 0x68]
CALL 0x00123820
LAB_001b9161:
JMP 0x001b90d7
LAB_001b918c:
MOV dword ptr [RSP + 0x4c],0x0
MOV RAX,qword ptr [RSP + 0xa0]
ADD RAX,0x10
MOV qword ptr [RSP + 0x110],RAX
MOV dword ptr [RSP + 0x10c],0x0
MOV RAX,qword ptr [RSP + 0x110]
MOVSXD RCX,dword ptr [RSP + 0x10c]
MOV EAX,dword ptr [RAX + RCX*0x4]
MOV dword ptr [RSP + 0x4c],EAX
MOV EAX,dword ptr [RSP + 0x4c]
AND EAX,0x7
CMP EAX,0x0
JZ 0x001b931b
MOV EAX,dword ptr [RSP + 0x4c]
AND EAX,0x1
CMP EAX,0x0
JZ 0x001b9288
MOV RAX,qword ptr [RSP + 0xa8]
MOV qword ptr [RSP + 0x20],RAX
MOV RDI,qword ptr [RSP + 0xa0]
CALL 0x00188970
MOV RCX,qword ptr [RSP + 0x20]
MOV qword ptr [RSP + 0x120],RCX
MOV qword ptr [RSP + 0x118],RAX
MOV RDI,qword ptr [RSP + 0x120]
MOV RAX,RDI
ADD RAX,0x10
MOV qword ptr [RSP + 0x130],RAX
MOV dword ptr [RSP + 0x12c],0x0
MOV RAX,qword ptr [RSP + 0x130]
MOVSXD RCX,dword ptr [RSP + 0x12c]
MOV EDX,dword ptr [RAX + RCX*0x4]
OR EDX,0x1
MOV dword ptr [RAX + RCX*0x4],EDX
MOV RAX,RDI
ADD RAX,0x10
ADD RAX,0x8
MOV qword ptr [RSP + 0x28],RAX
MOV RAX,qword ptr [RSP + 0x118]
MOV qword ptr [RSP + 0x30],RAX
CALL 0x00180180
MOV RDI,qword ptr [RSP + 0x28]
MOV RSI,qword ptr [RSP + 0x30]
MOV RDX,RAX
CALL 0x00283680
LAB_001b9288:
MOV EAX,dword ptr [RSP + 0x4c]
AND EAX,0x2
CMP EAX,0x0
JZ 0x001b92c0
MOV RDI,qword ptr [RSP + 0xa8]
CALL 0x001818b0
MOV qword ptr [RSP + 0x18],RAX
MOV RDI,qword ptr [RSP + 0xa0]
CALL 0x00188ae0
MOV RDI,qword ptr [RSP + 0x18]
MOV RSI,RAX
CALL 0x001d86b0
LAB_001b92c0:
MOV EAX,dword ptr [RSP + 0x4c]
AND EAX,0x4
CMP EAX,0x0
JZ 0x001b92e2
MOV RAX,qword ptr [RSP + 0xa0]
MOV ECX,dword ptr [RAX + 0x28]
MOV RAX,qword ptr [RSP + 0xa8]
MOV dword ptr [RAX + 0x28],ECX
LAB_001b92e2:
MOV EDX,dword ptr [RSP + 0x4c]
MOV RAX,qword ptr [RSP + 0xa8]
ADD RAX,0x10
MOV qword ptr [RSP + 0x100],RAX
MOV dword ptr [RSP + 0xfc],0x0
MOV RAX,qword ptr [RSP + 0x100]
MOVSXD RCX,dword ptr [RSP + 0xfc]
OR EDX,dword ptr [RAX + RCX*0x4]
MOV dword ptr [RAX + RCX*0x4],EDX
LAB_001b931b:
MOV RCX,qword ptr [RSP + 0xa8]
ADD RCX,0x8
MOV RAX,qword ptr [RSP + 0xa0]
ADD RAX,0x8
MOV qword ptr [RSP + 0xc8],RCX
MOV qword ptr [RSP + 0xc0],RAX
MOV RAX,qword ptr [RSP + 0xc8]
MOV qword ptr [RSP + 0x10],RAX
MOV RAX,qword ptr [RSP + 0xc0]
MOV qword ptr [RSP + 0xd0],RAX
MOV RAX,qword ptr [RSP + 0xd0]
MOV qword ptr [RSP + 0x140],RAX
MOV RAX,qword ptr [RSP + 0x140]
MOV RAX,qword ptr [RAX]
AND RAX,0x1
CMP RAX,0x0
JZ 0x001b9418
MOV RAX,qword ptr [RSP + 0xc0]
MOV qword ptr [RSP + 0xe0],RAX
MOV qword ptr [RSP + 0xd8],0x0
MOV RAX,qword ptr [RSP + 0xe0]
MOV qword ptr [RSP + 0x8],RAX
MOV qword ptr [RSP + 0xf0],RAX
MOV RAX,qword ptr [RSP + 0xf0]
MOV qword ptr [RSP + 0x138],RAX
MOV RAX,qword ptr [RSP + 0x138]
MOV RAX,qword ptr [RAX]
AND RAX,0x1
CMP RAX,0x0
JZ 0x001b93f7
MOV RDI,qword ptr [RSP + 0x8]
CALL 0x0019cd40
ADD RAX,0x8
MOV qword ptr [RSP + 0xe8],RAX
JMP 0x001b9406
LAB_001b93f7:
CALL qword ptr [RSP + 0xd8]
MOV qword ptr [RSP + 0xe8],RAX
LAB_001b9406:
MOV RDI,qword ptr [RSP + 0x10]
MOV RSI,qword ptr [RSP + 0xe8]
CALL 0x001e0920
LAB_001b9418:
ADD RSP,0x148
RET
|
/* WARNING: Removing unreachable block (ram,0x001b90e2) */
/* WARNING: Removing unreachable block (ram,0x001b90fe) */
/* WARNING: Removing unreachable block (ram,0x001b90fc) */
/* WARNING: Removing unreachable block (ram,0x001b914e) */
/* WARNING: Removing unreachable block (ram,0x001b9157) */
/* WARNING: Removing unreachable block (ram,0x001b9155) */
/* WARNING: Removing unreachable block (ram,0x001b9161) */
/* google::protobuf::EnumValueDescriptorProto::MergeImpl(google::protobuf::Message&,
google::protobuf::Message const&) */
void google::protobuf::EnumValueDescriptorProto::MergeImpl(Message *param_1,Message *param_2)
{
uint uVar1;
string *psVar2;
Arena *pAVar3;
EnumValueOptions *this;
EnumValueOptions *pEVar4;
InternalMetadata *this_00;
UnknownFieldSet *local_60;
uVar1 = *(uint *)(param_2 + 0x10);
if ((uVar1 & 7) != 0) {
if ((uVar1 & 1) != 0) {
psVar2 = (string *)_internal_name_abi_cxx11_((EnumValueDescriptorProto *)param_2);
*(uint *)(param_1 + 0x10) = *(uint *)(param_1 + 0x10) | 1;
pAVar3 = (Arena *)MessageLite::GetArenaForAllocation((MessageLite *)param_1);
internal::ArenaStringPtr::Set((ArenaStringPtr *)(param_1 + 0x18),psVar2,pAVar3);
}
if ((uVar1 & 2) != 0) {
this = (EnumValueOptions *)_internal_mutable_options((EnumValueDescriptorProto *)param_1);
pEVar4 = (EnumValueOptions *)_internal_options((EnumValueDescriptorProto *)param_2);
EnumValueOptions::MergeFrom(this,pEVar4);
}
if ((uVar1 & 4) != 0) {
*(int4 *)(param_1 + 0x28) = *(int4 *)(param_2 + 0x28);
}
*(uint *)(param_1 + 0x10) = uVar1 | *(uint *)(param_1 + 0x10);
}
this_00 = (InternalMetadata *)(param_2 + 8);
if ((*(ulong *)this_00 & 1) != 0) {
if ((*(ulong *)this_00 & 1) == 0) {
local_60 = (UnknownFieldSet *)(*(code *)0x0)();
}
else {
local_60 = (UnknownFieldSet *)
internal::InternalMetadata::
PtrValue<google::protobuf::internal::InternalMetadata::Container<google::protobuf::UnknownFieldSet>>
(this_00);
local_60 = (UnknownFieldSet *)((Container *)local_60 + 8);
}
internal::InternalMetadata::DoMergeFrom<google::protobuf::UnknownFieldSet>
((InternalMetadata *)(param_1 + 8),local_60);
}
return;
}
|
|
58,071
|
inline_mysql_file_close
|
eloqsql/include/mysql/psi/mysql_file.h
|
static inline int
inline_mysql_file_close(
#ifdef HAVE_PSI_FILE_INTERFACE
const char *src_file, uint src_line,
#endif
File file, myf flags)
{
int result;
#ifdef HAVE_PSI_FILE_INTERFACE
struct PSI_file_locker *locker;
PSI_file_locker_state state;
locker= PSI_FILE_CALL(get_thread_file_descriptor_locker)(&state, file, PSI_FILE_CLOSE);
if (psi_likely(locker != NULL))
{
PSI_FILE_CALL(start_file_close_wait)(locker, src_file, src_line);
result= my_close(file, flags);
PSI_FILE_CALL(end_file_close_wait)(locker, result);
return result;
}
#endif
result= my_close(file, flags);
return result;
}
|
O0
|
c
|
inline_mysql_file_close:
pushq %rbp
movq %rsp, %rbp
subq $0x80, %rsp
movq %rdi, -0x10(%rbp)
movl %esi, -0x14(%rbp)
movl %edx, -0x18(%rbp)
movq %rcx, -0x20(%rbp)
leaq 0x1f4b60(%rip), %rax # 0x2f5a60
movq (%rax), %rax
movq 0x158(%rax), %rax
movl -0x18(%rbp), %esi
leaq -0x78(%rbp), %rdi
movl $0x4, %edx
callq *%rax
movq %rax, -0x30(%rbp)
cmpq $0x0, -0x30(%rbp)
setne %al
andb $0x1, %al
movzbl %al, %eax
cmpl $0x0, %eax
setne %al
andb $0x1, %al
movzbl %al, %eax
cltq
cmpq $0x0, %rax
je 0x100f8b
leaq 0x1f4b1d(%rip), %rax # 0x2f5a60
movq (%rax), %rax
movq 0x220(%rax), %rax
movq -0x30(%rbp), %rdi
movq -0x10(%rbp), %rsi
movl -0x14(%rbp), %edx
callq *%rax
movl -0x18(%rbp), %edi
movq -0x20(%rbp), %rsi
callq 0x120330
movl %eax, -0x24(%rbp)
leaq 0x1f4af0(%rip), %rax # 0x2f5a60
movq (%rax), %rax
movq 0x228(%rax), %rax
movq -0x30(%rbp), %rdi
movl -0x24(%rbp), %esi
callq *%rax
movl -0x24(%rbp), %eax
movl %eax, -0x4(%rbp)
jmp 0x100fa0
movl -0x18(%rbp), %edi
movq -0x20(%rbp), %rsi
callq 0x120330
movl %eax, -0x24(%rbp)
movl -0x24(%rbp), %eax
movl %eax, -0x4(%rbp)
movl -0x4(%rbp), %eax
addq $0x80, %rsp
popq %rbp
retq
nopl (%rax)
|
inline_mysql_file_close_10:
push rbp
mov rbp, rsp
sub rsp, 80h
mov [rbp+var_10], rdi
mov [rbp+var_14], esi
mov [rbp+var_18], edx
mov [rbp+var_20], rcx
lea rax, PSI_server
mov rax, [rax]
mov rax, [rax+158h]
mov esi, [rbp+var_18]
lea rdi, [rbp+var_78]
mov edx, 4
call rax
mov [rbp+var_30], rax
cmp [rbp+var_30], 0
setnz al
and al, 1
movzx eax, al
cmp eax, 0
setnz al
and al, 1
movzx eax, al
cdqe
cmp rax, 0
jz short loc_100F8B
lea rax, PSI_server
mov rax, [rax]
mov rax, [rax+220h]
mov rdi, [rbp+var_30]
mov rsi, [rbp+var_10]
mov edx, [rbp+var_14]
call rax
mov edi, [rbp+var_18]
mov rsi, [rbp+var_20]
call my_close
mov [rbp+var_24], eax
lea rax, PSI_server
mov rax, [rax]
mov rax, [rax+228h]
mov rdi, [rbp+var_30]
mov esi, [rbp+var_24]
call rax
mov eax, [rbp+var_24]
mov [rbp+var_4], eax
jmp short loc_100FA0
loc_100F8B:
mov edi, [rbp+var_18]
mov rsi, [rbp+var_20]
call my_close
mov [rbp+var_24], eax
mov eax, [rbp+var_24]
mov [rbp+var_4], eax
loc_100FA0:
mov eax, [rbp+var_4]
add rsp, 80h
pop rbp
retn
|
long long inline_mysql_file_close_10(long long a1, unsigned int a2, unsigned int a3, long long a4)
{
_BYTE v5[72]; // [rsp+8h] [rbp-78h] BYREF
long long v6; // [rsp+50h] [rbp-30h]
unsigned int v7; // [rsp+5Ch] [rbp-24h]
long long v8; // [rsp+60h] [rbp-20h]
unsigned int v9; // [rsp+68h] [rbp-18h]
unsigned int v10; // [rsp+6Ch] [rbp-14h]
long long v11; // [rsp+70h] [rbp-10h]
v11 = a1;
v10 = a2;
v9 = a3;
v8 = a4;
v6 = ((long long ( *)(_BYTE *, _QWORD, long long))PSI_server[43])(v5, a3, 4LL);
if ( v6 )
{
((void ( *)(long long, long long, _QWORD))PSI_server[68])(v6, v11, v10);
v7 = my_close(v9, v8);
((void ( *)(long long, _QWORD))PSI_server[69])(v6, v7);
}
else
{
return (unsigned int)my_close(v9, v8);
}
return v7;
}
| |||
58,072
|
inline_mysql_file_close
|
eloqsql/include/mysql/psi/mysql_file.h
|
static inline int
inline_mysql_file_close(
#ifdef HAVE_PSI_FILE_INTERFACE
const char *src_file, uint src_line,
#endif
File file, myf flags)
{
int result;
#ifdef HAVE_PSI_FILE_INTERFACE
struct PSI_file_locker *locker;
PSI_file_locker_state state;
locker= PSI_FILE_CALL(get_thread_file_descriptor_locker)(&state, file, PSI_FILE_CLOSE);
if (psi_likely(locker != NULL))
{
PSI_FILE_CALL(start_file_close_wait)(locker, src_file, src_line);
result= my_close(file, flags);
PSI_FILE_CALL(end_file_close_wait)(locker, result);
return result;
}
#endif
result= my_close(file, flags);
return result;
}
|
O3
|
c
|
inline_mysql_file_close:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x58, %rsp
movl %esi, %ebx
movl %edi, %r14d
leaq 0x33b67a(%rip), %rax # 0x3aea18
movq (%rax), %rax
leaq -0x68(%rbp), %rdi
movl $0x4, %edx
callq *0x158(%rax)
testq %rax, %rax
jne 0x733c9
movl %ebx, %edi
xorl %esi, %esi
callq 0xbfaf5
addq $0x58, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
leaq -0x1c(%rbp), %r15
movq %rax, %rdi
movl %r14d, %esi
movl %ebx, %edx
movq %r15, %rcx
callq 0x2e953
movl (%r15), %eax
jmp 0x733be
|
inline_mysql_file_close_1:
push rbp
mov rbp, rsp
push r15
push r14
push rbx
sub rsp, 58h
mov ebx, esi
mov r14d, edi
lea rax, PSI_server
mov rax, [rax]
lea rdi, [rbp+var_68]
mov edx, 4
call qword ptr [rax+158h]
test rax, rax
jnz short loc_733C9
mov edi, ebx
xor esi, esi
call my_close
loc_733BE:
add rsp, 58h
pop rbx
pop r14
pop r15
pop rbp
retn
loc_733C9:
lea r15, [rbp+var_1C]
mov rdi, rax
mov esi, r14d
mov edx, ebx
mov rcx, r15
call inline_mysql_file_close_cold_1_1
mov eax, [r15]
jmp short loc_733BE
|
long long inline_mysql_file_close_1(unsigned int a1, long long a2)
{
long long v2; // rax
_BYTE v4[76]; // [rsp+8h] [rbp-68h] BYREF
unsigned int v5[7]; // [rsp+54h] [rbp-1Ch] BYREF
v2 = ((long long ( *)(_BYTE *, long long, long long))PSI_server[43])(v4, a2, 4LL);
if ( !v2 )
return my_close((unsigned int)a2, 0LL);
inline_mysql_file_close_cold_1_1(v2, a1, a2, v5);
return v5[0];
}
|
inline_mysql_file_close:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH RBX
SUB RSP,0x58
MOV EBX,ESI
MOV R14D,EDI
LEA RAX,[0x4aea18]
MOV RAX,qword ptr [RAX]
LEA RDI,[RBP + -0x68]
MOV EDX,0x4
CALL qword ptr [RAX + 0x158]
TEST RAX,RAX
JNZ 0x001733c9
MOV EDI,EBX
XOR ESI,ESI
CALL 0x001bfaf5
LAB_001733be:
ADD RSP,0x58
POP RBX
POP R14
POP R15
POP RBP
RET
LAB_001733c9:
LEA R15,[RBP + -0x1c]
MOV RDI,RAX
MOV ESI,R14D
MOV EDX,EBX
MOV RCX,R15
CALL 0x0012e953
MOV EAX,dword ptr [R15]
JMP 0x001733be
|
ulong inline_mysql_file_close(int4 param_1,ulong param_2)
{
long lVar1;
ulong uVar2;
int1 local_70 [76];
uint local_24;
lVar1 = (**(code **)(PSI_server + 0x158))(local_70,param_2,4);
if (lVar1 == 0) {
uVar2 = my_close(param_2 & 0xffffffff,0);
}
else {
inline_mysql_file_close_cold_1(lVar1,param_1,param_2 & 0xffffffff,&local_24);
uVar2 = (ulong)local_24;
}
return uVar2;
}
|
|
58,073
|
JS_RegExpExec
|
bluesky950520[P]quickjs/quickjs.c
|
static JSValue JS_RegExpExec(JSContext *ctx, JSValue r, JSValue s)
{
JSValue method, ret;
method = JS_GetProperty(ctx, r, JS_ATOM_exec);
if (JS_IsException(method))
return method;
if (JS_IsFunction(ctx, method)) {
ret = JS_CallFree(ctx, method, r, 1, &s);
if (JS_IsException(ret))
return ret;
if (!JS_IsObject(ret) && !JS_IsNull(ret)) {
JS_FreeValue(ctx, ret);
return JS_ThrowTypeError(ctx, "RegExp exec method must return an object or null");
}
return ret;
}
JS_FreeValue(ctx, method);
return js_regexp_exec(ctx, r, 1, &s);
}
|
O0
|
c
|
JS_RegExpExec:
subq $0x88, %rsp
movq %rsi, 0x68(%rsp)
movq %rdx, 0x70(%rsp)
movq %rcx, 0x58(%rsp)
movq %r8, 0x60(%rsp)
movq %rdi, 0x50(%rsp)
movq 0x50(%rsp), %rdi
movq 0x68(%rsp), %rsi
movq 0x70(%rsp), %rdx
movl $0x87, %ecx
callq 0x30070
movq %rax, 0x20(%rsp)
movq %rdx, 0x28(%rsp)
movq 0x20(%rsp), %rax
movq %rax, 0x40(%rsp)
movq 0x28(%rsp), %rax
movq %rax, 0x48(%rsp)
movq 0x40(%rsp), %rdi
movq 0x48(%rsp), %rsi
callq 0x29fb0
cmpl $0x0, %eax
je 0x8a6c7
movq 0x40(%rsp), %rax
movq %rax, 0x78(%rsp)
movq 0x48(%rsp), %rax
movq %rax, 0x80(%rsp)
jmp 0x8a815
movq 0x50(%rsp), %rdi
movq 0x40(%rsp), %rsi
movq 0x48(%rsp), %rdx
callq 0x34800
cmpl $0x0, %eax
je 0x8a7d6
movq 0x50(%rsp), %rdi
movq 0x40(%rsp), %rsi
movq 0x48(%rsp), %rdx
movq 0x68(%rsp), %rcx
movq 0x70(%rsp), %r8
movl $0x1, %r9d
leaq 0x58(%rsp), %rax
movq %rax, (%rsp)
callq 0x34570
movq %rax, 0x10(%rsp)
movq %rdx, 0x18(%rsp)
movq 0x10(%rsp), %rax
movq %rax, 0x30(%rsp)
movq 0x18(%rsp), %rax
movq %rax, 0x38(%rsp)
movq 0x30(%rsp), %rdi
movq 0x38(%rsp), %rsi
callq 0x29fb0
cmpl $0x0, %eax
je 0x8a75f
movq 0x30(%rsp), %rax
movq %rax, 0x78(%rsp)
movq 0x38(%rsp), %rax
movq %rax, 0x80(%rsp)
jmp 0x8a815
movq 0x30(%rsp), %rdi
movq 0x38(%rsp), %rsi
callq 0x31260
cmpl $0x0, %eax
jne 0x8a7bd
movq 0x30(%rsp), %rdi
movq 0x38(%rsp), %rsi
callq 0x34530
cmpl $0x0, %eax
jne 0x8a7bd
movq 0x50(%rsp), %rdi
movq 0x30(%rsp), %rsi
movq 0x38(%rsp), %rdx
callq 0x29f80
movq 0x50(%rsp), %rdi
leaq 0x8a66e(%rip), %rsi # 0x114e15
movb $0x0, %al
callq 0x335f0
movq %rax, 0x78(%rsp)
movq %rdx, 0x80(%rsp)
jmp 0x8a815
movq 0x30(%rsp), %rax
movq %rax, 0x78(%rsp)
movq 0x38(%rsp), %rax
movq %rax, 0x80(%rsp)
jmp 0x8a815
movq 0x50(%rsp), %rdi
movq 0x40(%rsp), %rsi
movq 0x48(%rsp), %rdx
callq 0x29f80
movq 0x50(%rsp), %rdi
movq 0x68(%rsp), %rsi
movq 0x70(%rsp), %rdx
movl $0x1, %ecx
leaq 0x58(%rsp), %r8
callq 0x85510
movq %rax, 0x78(%rsp)
movq %rdx, 0x80(%rsp)
movq 0x78(%rsp), %rax
movq 0x80(%rsp), %rdx
addq $0x88, %rsp
retq
nopw (%rax,%rax)
|
JS_RegExpExec:
sub rsp, 88h
mov [rsp+88h+var_20], rsi
mov [rsp+88h+var_18], rdx
mov [rsp+88h+var_30], rcx
mov [rsp+88h+var_28], r8
mov [rsp+88h+var_38], rdi
mov rdi, [rsp+88h+var_38]
mov rsi, [rsp+88h+var_20]
mov rdx, [rsp+88h+var_18]
mov ecx, 87h
call JS_GetProperty
mov [rsp+88h+var_68], rax
mov [rsp+88h+var_60], rdx
mov rax, [rsp+88h+var_68]
mov [rsp+88h+var_48], rax
mov rax, [rsp+88h+var_60]
mov [rsp+88h+var_40], rax
mov rdi, [rsp+88h+var_48]
mov rsi, [rsp+88h+var_40]
call JS_IsException_1
cmp eax, 0
jz short loc_8A6C7
mov rax, [rsp+88h+var_48]
mov [rsp+88h+var_10], rax
mov rax, [rsp+88h+var_40]
mov [rsp+88h+var_8], rax
jmp loc_8A815
loc_8A6C7:
mov rdi, [rsp+88h+var_38]
mov rsi, [rsp+88h+var_48]
mov rdx, [rsp+88h+var_40]
call JS_IsFunction
cmp eax, 0
jz loc_8A7D6
mov rdi, [rsp+88h+var_38]
mov rsi, [rsp+88h+var_48]
mov rdx, [rsp+88h+var_40]
mov rcx, [rsp+88h+var_20]
mov r8, [rsp+88h+var_18]
mov r9d, 1
lea rax, [rsp+88h+var_30]
mov [rsp+88h+var_88], rax
call JS_CallFree
mov [rsp+88h+var_78], rax
mov [rsp+88h+var_70], rdx
mov rax, [rsp+88h+var_78]
mov [rsp+88h+var_58], rax
mov rax, [rsp+88h+var_70]
mov [rsp+88h+var_50], rax
mov rdi, [rsp+88h+var_58]
mov rsi, [rsp+88h+var_50]
call JS_IsException_1
cmp eax, 0
jz short loc_8A75F
mov rax, [rsp+88h+var_58]
mov [rsp+88h+var_10], rax
mov rax, [rsp+88h+var_50]
mov [rsp+88h+var_8], rax
jmp loc_8A815
loc_8A75F:
mov rdi, [rsp+88h+var_58]
mov rsi, [rsp+88h+var_50]
call JS_IsObject
cmp eax, 0
jnz short loc_8A7BD
mov rdi, [rsp+88h+var_58]
mov rsi, [rsp+88h+var_50]
call JS_IsNull_1
cmp eax, 0
jnz short loc_8A7BD
mov rdi, [rsp+88h+var_38]
mov rsi, [rsp+88h+var_58]
mov rdx, [rsp+88h+var_50]
call JS_FreeValue
mov rdi, [rsp+88h+var_38]
lea rsi, aRegexpExecMeth; "RegExp exec method must return an objec"...
mov al, 0
call JS_ThrowTypeError
mov [rsp+88h+var_10], rax
mov [rsp+88h+var_8], rdx
jmp short loc_8A815
loc_8A7BD:
mov rax, [rsp+88h+var_58]
mov [rsp+88h+var_10], rax
mov rax, [rsp+88h+var_50]
mov [rsp+88h+var_8], rax
jmp short loc_8A815
loc_8A7D6:
mov rdi, [rsp+88h+var_38]
mov rsi, [rsp+88h+var_48]
mov rdx, [rsp+88h+var_40]
call JS_FreeValue
mov rdi, [rsp+88h+var_38]
mov rsi, [rsp+88h+var_20]
mov rdx, [rsp+88h+var_18]
mov ecx, 1
lea r8, [rsp+88h+var_30]
call js_regexp_exec
mov [rsp+88h+var_10], rax
mov [rsp+88h+var_8], rdx
loc_8A815:
mov rax, [rsp+88h+var_10]
mov rdx, [rsp+88h+var_8]
add rsp, 88h
retn
|
long long JS_RegExpExec(
long long a1,
long long a2,
long long a3,
long long a4,
long long a5,
__m128 a6,
__m128 a7,
__m128 a8,
__m128 a9,
double a10,
double a11,
__m128 a12,
__m128 a13)
{
long long v13; // 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 v21; // rdx
double v22; // xmm4_8
double v23; // xmm5_8
long long v24; // rdx
char v26; // [rsp+0h] [rbp-88h]
long long v27; // [rsp+10h] [rbp-78h]
long long Property; // [rsp+20h] [rbp-68h]
long long v29; // [rsp+38h] [rbp-50h]
long long v30; // [rsp+48h] [rbp-40h]
long long v31[2]; // [rsp+58h] [rbp-30h] BYREF
long long v32; // [rsp+68h] [rbp-20h]
long long v33; // [rsp+70h] [rbp-18h]
long long v34; // [rsp+78h] [rbp-10h]
long long v35; // [rsp+80h] [rbp-8h]
v32 = a2;
v33 = a3;
v31[0] = a4;
v31[1] = a5;
Property = JS_GetProperty(a1, a2, a3, 135);
v30 = v13;
if ( JS_IsException_1(Property, v13) )
{
v34 = Property;
v35 = v30;
}
else if ( (unsigned int)JS_IsFunction(a1, Property, v30) )
{
v27 = JS_CallFree(a1, Property, v30, v32, v33, 1, (long long)v31);
v29 = v14;
if ( JS_IsException_1(v27, v14) )
{
v34 = v27;
v35 = v29;
}
else if ( JS_IsObject(v27, v29) || JS_IsNull_1(v27, v29) )
{
v34 = v27;
v35 = v29;
}
else
{
JS_FreeValue(a1, v27, v29);
v34 = JS_ThrowTypeError(
a1,
(long long)"RegExp exec method must return an object or null",
v15,
v16,
v17,
v18,
a6,
a7,
a8,
a9,
v19,
v20,
a12,
a13,
v26);
v35 = v21;
}
}
else
{
JS_FreeValue(a1, Property, v30);
v34 = js_regexp_exec(a1, v32, v33, 1, v31, a6, a7, a8, a9, v22, v23, a12, a13);
v35 = v24;
}
return v34;
}
|
JS_RegExpExec:
SUB RSP,0x88
MOV qword ptr [RSP + 0x68],RSI
MOV qword ptr [RSP + 0x70],RDX
MOV qword ptr [RSP + 0x58],RCX
MOV qword ptr [RSP + 0x60],R8
MOV qword ptr [RSP + 0x50],RDI
MOV RDI,qword ptr [RSP + 0x50]
MOV RSI,qword ptr [RSP + 0x68]
MOV RDX,qword ptr [RSP + 0x70]
MOV ECX,0x87
CALL 0x00130070
MOV qword ptr [RSP + 0x20],RAX
MOV qword ptr [RSP + 0x28],RDX
MOV RAX,qword ptr [RSP + 0x20]
MOV qword ptr [RSP + 0x40],RAX
MOV RAX,qword ptr [RSP + 0x28]
MOV qword ptr [RSP + 0x48],RAX
MOV RDI,qword ptr [RSP + 0x40]
MOV RSI,qword ptr [RSP + 0x48]
CALL 0x00129fb0
CMP EAX,0x0
JZ 0x0018a6c7
MOV RAX,qword ptr [RSP + 0x40]
MOV qword ptr [RSP + 0x78],RAX
MOV RAX,qword ptr [RSP + 0x48]
MOV qword ptr [RSP + 0x80],RAX
JMP 0x0018a815
LAB_0018a6c7:
MOV RDI,qword ptr [RSP + 0x50]
MOV RSI,qword ptr [RSP + 0x40]
MOV RDX,qword ptr [RSP + 0x48]
CALL 0x00134800
CMP EAX,0x0
JZ 0x0018a7d6
MOV RDI,qword ptr [RSP + 0x50]
MOV RSI,qword ptr [RSP + 0x40]
MOV RDX,qword ptr [RSP + 0x48]
MOV RCX,qword ptr [RSP + 0x68]
MOV R8,qword ptr [RSP + 0x70]
MOV R9D,0x1
LEA RAX,[RSP + 0x58]
MOV qword ptr [RSP],RAX
CALL 0x00134570
MOV qword ptr [RSP + 0x10],RAX
MOV qword ptr [RSP + 0x18],RDX
MOV RAX,qword ptr [RSP + 0x10]
MOV qword ptr [RSP + 0x30],RAX
MOV RAX,qword ptr [RSP + 0x18]
MOV qword ptr [RSP + 0x38],RAX
MOV RDI,qword ptr [RSP + 0x30]
MOV RSI,qword ptr [RSP + 0x38]
CALL 0x00129fb0
CMP EAX,0x0
JZ 0x0018a75f
MOV RAX,qword ptr [RSP + 0x30]
MOV qword ptr [RSP + 0x78],RAX
MOV RAX,qword ptr [RSP + 0x38]
MOV qword ptr [RSP + 0x80],RAX
JMP 0x0018a815
LAB_0018a75f:
MOV RDI,qword ptr [RSP + 0x30]
MOV RSI,qword ptr [RSP + 0x38]
CALL 0x00131260
CMP EAX,0x0
JNZ 0x0018a7bd
MOV RDI,qword ptr [RSP + 0x30]
MOV RSI,qword ptr [RSP + 0x38]
CALL 0x00134530
CMP EAX,0x0
JNZ 0x0018a7bd
MOV RDI,qword ptr [RSP + 0x50]
MOV RSI,qword ptr [RSP + 0x30]
MOV RDX,qword ptr [RSP + 0x38]
CALL 0x00129f80
MOV RDI,qword ptr [RSP + 0x50]
LEA RSI,[0x214e15]
MOV AL,0x0
CALL 0x001335f0
MOV qword ptr [RSP + 0x78],RAX
MOV qword ptr [RSP + 0x80],RDX
JMP 0x0018a815
LAB_0018a7bd:
MOV RAX,qword ptr [RSP + 0x30]
MOV qword ptr [RSP + 0x78],RAX
MOV RAX,qword ptr [RSP + 0x38]
MOV qword ptr [RSP + 0x80],RAX
JMP 0x0018a815
LAB_0018a7d6:
MOV RDI,qword ptr [RSP + 0x50]
MOV RSI,qword ptr [RSP + 0x40]
MOV RDX,qword ptr [RSP + 0x48]
CALL 0x00129f80
MOV RDI,qword ptr [RSP + 0x50]
MOV RSI,qword ptr [RSP + 0x68]
MOV RDX,qword ptr [RSP + 0x70]
MOV ECX,0x1
LEA R8,[RSP + 0x58]
CALL 0x00185510
MOV qword ptr [RSP + 0x78],RAX
MOV qword ptr [RSP + 0x80],RDX
LAB_0018a815:
MOV RAX,qword ptr [RSP + 0x78]
MOV RDX,qword ptr [RSP + 0x80]
ADD RSP,0x88
RET
|
int1 [16]
JS_RegExpExec(int8 param_1,int8 param_2,int8 param_3,int8 param_4,
int8 param_5)
{
int iVar1;
int8 uVar2;
int8 uVar3;
int1 auVar4 [16];
int8 local_30;
int8 local_28;
int8 local_20;
int8 local_18;
local_30 = param_4;
local_28 = param_5;
local_20 = param_2;
local_18 = param_3;
auVar4 = JS_GetProperty(param_1,param_2,param_3,0x87);
uVar3 = auVar4._8_8_;
uVar2 = auVar4._0_8_;
iVar1 = JS_IsException(uVar2,uVar3);
if (iVar1 == 0) {
iVar1 = JS_IsFunction(param_1,uVar2,uVar3);
if (iVar1 == 0) {
JS_FreeValue(param_1,uVar2,uVar3);
auVar4 = js_regexp_exec(param_1,local_20,local_18,1,&local_30);
}
else {
auVar4 = JS_CallFree(param_1,uVar2,uVar3,local_20,local_18,1,&local_30);
uVar3 = auVar4._8_8_;
uVar2 = auVar4._0_8_;
iVar1 = JS_IsException(uVar2,uVar3);
if (((iVar1 == 0) && (iVar1 = JS_IsObject(uVar2,uVar3), iVar1 == 0)) &&
(iVar1 = JS_IsNull(uVar2,uVar3), iVar1 == 0)) {
JS_FreeValue(param_1,uVar2,uVar3);
auVar4 = JS_ThrowTypeError(param_1,"RegExp exec method must return an object or null");
}
}
}
return auVar4;
}
|
|
58,074
|
JS_RegExpExec
|
bluesky950520[P]quickjs/quickjs.c
|
static JSValue JS_RegExpExec(JSContext *ctx, JSValue r, JSValue s)
{
JSValue method, ret;
method = JS_GetProperty(ctx, r, JS_ATOM_exec);
if (JS_IsException(method))
return method;
if (JS_IsFunction(ctx, method)) {
ret = JS_CallFree(ctx, method, r, 1, &s);
if (JS_IsException(ret))
return ret;
if (!JS_IsObject(ret) && !JS_IsNull(ret)) {
JS_FreeValue(ctx, ret);
return JS_ThrowTypeError(ctx, "RegExp exec method must return an object or null");
}
return ret;
}
JS_FreeValue(ctx, method);
return js_regexp_exec(ctx, r, 1, &s);
}
|
O2
|
c
|
JS_RegExpExec:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x20, %rsp
movq %rdx, %r12
movq %rsi, %r13
movq %rdi, %rbx
movq %rcx, 0x10(%rsp)
movq %r8, 0x18(%rsp)
movl $0x87, %ecx
callq 0x1ebf3
movq %rax, %r14
movq %rdx, %r15
cmpl $0x6, %r15d
je 0x44fc1
movq %rbx, %rdi
movq %r14, %rsi
movq %r15, %rdx
callq 0x20a2d
testl %eax, %eax
je 0x44f9a
leaq 0x10(%rsp), %rax
movq %rax, (%rsp)
pushq $0x1
popq %r9
movq %rbx, %rdi
movq %r14, %rsi
movq %r15, %rdx
movq %r13, %rcx
movq %r12, %r8
callq 0x2093e
movq %rax, %r14
movq %rdx, %r15
movl %r15d, %eax
incl %eax
cmpl $0x7, %eax
ja 0x44f72
movl $0x89, %ecx
btl %eax, %ecx
jb 0x44fc1
movq %rbx, %rdi
movq %r14, %rsi
movq %r15, %rdx
callq 0x1bbce
leaq 0x44df2(%rip), %rsi # 0x89d79
xorl %r14d, %r14d
movq %rbx, %rdi
xorl %eax, %eax
callq 0x201fd
pushq $0x6
popq %r15
jmp 0x44fc1
movq %rbx, %rdi
movq %r14, %rsi
movq %r15, %rdx
callq 0x1bbce
leaq 0x10(%rsp), %r8
movq %rbx, %rdi
movq %r13, %rsi
movq %r12, %rdx
callq 0x41da8
movq %rax, %r14
movq %rdx, %r15
movq %r14, %rax
movq %r15, %rdx
addq $0x20, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
|
JS_RegExpExec:
push r15
push r14
push r13
push r12
push rbx
sub rsp, 20h
mov r12, rdx
mov r13, rsi
mov rbx, rdi
mov [rsp+48h+var_38], rcx
mov [rsp+48h+var_30], r8
mov ecx, 87h
call JS_GetProperty
mov r14, rax
mov r15, rdx
cmp r15d, 6
jz loc_44FC1
mov rdi, rbx
mov rsi, r14
mov rdx, r15
call JS_IsFunction
test eax, eax
jz short loc_44F9A
lea rax, [rsp+48h+var_38]
mov [rsp+48h+var_48], rax
push 1
pop r9
mov rdi, rbx
mov rsi, r14
mov rdx, r15
mov rcx, r13
mov r8, r12
call JS_CallFree
mov r14, rax
mov r15, rdx
mov eax, r15d
inc eax
cmp eax, 7
ja short loc_44F72
mov ecx, 89h
bt ecx, eax
jb short loc_44FC1
loc_44F72:
mov rdi, rbx
mov rsi, r14
mov rdx, r15
call JS_FreeValue
lea rsi, aRegexpExecMeth; "RegExp exec method must return an objec"...
xor r14d, r14d
mov rdi, rbx
xor eax, eax
call JS_ThrowTypeError
push 6
pop r15
jmp short loc_44FC1
loc_44F9A:
mov rdi, rbx
mov rsi, r14
mov rdx, r15
call JS_FreeValue
lea r8, [rsp+48h+var_38]
mov rdi, rbx
mov rsi, r13
mov rdx, r12
call js_regexp_exec
mov r14, rax
mov r15, rdx
loc_44FC1:
mov rax, r14
mov rdx, r15
add rsp, 20h
pop rbx
pop r12
pop r13
pop r14
pop r15
retn
|
long long JS_RegExpExec(
long long a1,
long long a2,
long long a3,
long long a4,
long long a5,
__m128 a6,
__m128 a7,
__m128 a8,
__m128 a9,
double a10,
double a11,
__m128 a12,
__m128 a13)
{
long long Property; // rax
long long v15; // rdx
long long v16; // r14
long long v17; // r15
long long v18; // rdx
int v19; // ecx
long long v20; // rdx
long long v21; // rcx
long long v22; // r8
long long v23; // r9
__m128 v24; // xmm4
__m128 v25; // xmm5
long long v26; // rcx
double v27; // xmm4_8
double v28; // xmm5_8
char v30; // [rsp+0h] [rbp-48h]
_QWORD v31[7]; // [rsp+10h] [rbp-38h] BYREF
v31[0] = a4;
v31[1] = a5;
Property = JS_GetProperty(a1, a2, a3, 135);
v16 = Property;
v17 = v15;
if ( (_DWORD)v15 != 6 )
{
if ( (unsigned int)JS_IsFunction(a1, Property, v15) )
{
v16 = JS_CallFree(a1, v16, v17, a2, a3, 1, (long long)v31);
if ( (unsigned int)(v18 + 1) > 7 || (v19 = 137, !_bittest(&v19, v18 + 1)) )
{
JS_FreeValue(a1, v16, v18);
v16 = 0LL;
JS_ThrowTypeError(
a1,
(long long)"RegExp exec method must return an object or null",
v20,
v21,
v22,
v23,
a6,
a7,
a8,
a9,
v24,
v25,
a12,
a13,
v30);
}
}
else
{
JS_FreeValue(a1, v16, v17);
return js_regexp_exec(a1, a2, a3, a6, a7, a8, a9, v27, v28, a12, a13, v26, (unsigned long long)v31);
}
}
return v16;
}
|
JS_RegExpExec:
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x20
MOV R12,RDX
MOV R13,RSI
MOV RBX,RDI
MOV qword ptr [RSP + 0x10],RCX
MOV qword ptr [RSP + 0x18],R8
MOV ECX,0x87
CALL 0x0011ebf3
MOV R14,RAX
MOV R15,RDX
CMP R15D,0x6
JZ 0x00144fc1
MOV RDI,RBX
MOV RSI,R14
MOV RDX,R15
CALL 0x00120a2d
TEST EAX,EAX
JZ 0x00144f9a
LEA RAX,[RSP + 0x10]
MOV qword ptr [RSP],RAX
PUSH 0x1
POP R9
MOV RDI,RBX
MOV RSI,R14
MOV RDX,R15
MOV RCX,R13
MOV R8,R12
CALL 0x0012093e
MOV R14,RAX
MOV R15,RDX
MOV EAX,R15D
INC EAX
CMP EAX,0x7
JA 0x00144f72
MOV ECX,0x89
BT ECX,EAX
JC 0x00144fc1
LAB_00144f72:
MOV RDI,RBX
MOV RSI,R14
MOV RDX,R15
CALL 0x0011bbce
LEA RSI,[0x189d79]
XOR R14D,R14D
MOV RDI,RBX
XOR EAX,EAX
CALL 0x001201fd
PUSH 0x6
POP R15
JMP 0x00144fc1
LAB_00144f9a:
MOV RDI,RBX
MOV RSI,R14
MOV RDX,R15
CALL 0x0011bbce
LEA R8,[RSP + 0x10]
MOV RDI,RBX
MOV RSI,R13
MOV RDX,R12
CALL 0x00141da8
MOV R14,RAX
MOV R15,RDX
LAB_00144fc1:
MOV RAX,R14
MOV RDX,R15
ADD RSP,0x20
POP RBX
POP R12
POP R13
POP R14
POP R15
RET
|
int1 [16]
JS_RegExpExec(int8 param_1,int8 param_2,int8 param_3,int8 param_4,
int8 param_5)
{
int iVar1;
uint uVar2;
int8 uVar3;
int8 uVar4;
int1 auVar5 [16];
int8 local_38;
int8 local_30;
local_38 = param_4;
local_30 = param_5;
auVar5 = JS_GetProperty();
uVar4 = auVar5._8_8_;
uVar3 = auVar5._0_8_;
if (auVar5._8_4_ != 6) {
iVar1 = JS_IsFunction(param_1,uVar3,uVar4);
if (iVar1 == 0) {
JS_FreeValue(param_1,uVar3,uVar4);
auVar5 = js_regexp_exec(param_1,param_2,param_3);
}
else {
auVar5 = JS_CallFree(param_1,uVar3,uVar4,param_2,param_3,1,&local_38);
uVar2 = auVar5._8_4_ + 1;
if ((7 < uVar2) || ((0x89U >> (uVar2 & 0x1f) & 1) == 0)) {
JS_FreeValue(param_1,auVar5._0_8_,auVar5._8_8_);
JS_ThrowTypeError(param_1,"RegExp exec method must return an object or null");
auVar5 = ZEXT816(6) << 0x40;
}
}
}
return auVar5;
}
|
|
58,075
|
my_uca_copy_page
|
eloqsql/strings/ctype-uca.c
|
static my_bool
my_uca_copy_page(MY_CHARSET_LOADER *loader,
const MY_UCA_WEIGHT_LEVEL *src,
MY_UCA_WEIGHT_LEVEL *dst,
size_t page)
{
uint chc, size= 256 * dst->lengths[page] * sizeof(uint16);
if (!(dst->weights[page]= (uint16 *) (loader->once_alloc)(size)))
return TRUE;
DBUG_ASSERT(src->lengths[page] <= dst->lengths[page]);
memset(dst->weights[page], 0, size);
for (chc=0 ; chc < 256; chc++)
{
memcpy(dst->weights[page] + chc * dst->lengths[page],
src->weights[page] + chc * src->lengths[page],
src->lengths[page] * sizeof(uint16));
}
return FALSE;
}
|
O0
|
c
|
my_uca_copy_page:
pushq %rbp
movq %rsp, %rbp
subq $0x30, %rsp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movq %rdx, -0x20(%rbp)
movq %rcx, -0x28(%rbp)
movq -0x20(%rbp), %rax
movq 0x8(%rax), %rax
movq -0x28(%rbp), %rcx
movzbl (%rax,%rcx), %eax
shll $0x8, %eax
cltq
shlq %rax
movl %eax, -0x30(%rbp)
movq -0x10(%rbp), %rax
movq 0x80(%rax), %rax
movl -0x30(%rbp), %ecx
movl %ecx, %edi
callq *%rax
movq -0x20(%rbp), %rcx
movq 0x10(%rcx), %rcx
movq -0x28(%rbp), %rdx
movq %rax, (%rcx,%rdx,8)
cmpq $0x0, %rax
jne 0x60b04
movb $0x1, -0x1(%rbp)
jmp 0x60bc0
jmp 0x60b06
jmp 0x60b08
movq -0x20(%rbp), %rax
movq 0x10(%rax), %rax
movq -0x28(%rbp), %rcx
movq (%rax,%rcx,8), %rdi
movl -0x30(%rbp), %eax
movl %eax, %edx
xorl %esi, %esi
callq 0x251a0
movl $0x0, -0x2c(%rbp)
cmpl $0x100, -0x2c(%rbp) # imm = 0x100
jae 0x60bbc
movq -0x20(%rbp), %rax
movq 0x10(%rax), %rax
movq -0x28(%rbp), %rcx
movq (%rax,%rcx,8), %rdi
movl -0x2c(%rbp), %eax
movq -0x20(%rbp), %rcx
movq 0x8(%rcx), %rcx
movq -0x28(%rbp), %rdx
movzbl (%rcx,%rdx), %ecx
imull %ecx, %eax
movl %eax, %eax
shlq %rax
addq %rax, %rdi
movq -0x18(%rbp), %rax
movq 0x10(%rax), %rax
movq -0x28(%rbp), %rcx
movq (%rax,%rcx,8), %rsi
movl -0x2c(%rbp), %eax
movq -0x18(%rbp), %rcx
movq 0x8(%rcx), %rcx
movq -0x28(%rbp), %rdx
movzbl (%rcx,%rdx), %ecx
imull %ecx, %eax
movl %eax, %eax
shlq %rax
addq %rax, %rsi
movq -0x18(%rbp), %rax
movq 0x8(%rax), %rax
movq -0x28(%rbp), %rcx
movzbl (%rax,%rcx), %eax
movl %eax, %edx
shlq %rdx
callq 0x25230
movl -0x2c(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x2c(%rbp)
jmp 0x60b2b
movb $0x0, -0x1(%rbp)
movb -0x1(%rbp), %al
addq $0x30, %rsp
popq %rbp
retq
nopl (%rax)
|
my_uca_copy_page:
push rbp
mov rbp, rsp
sub rsp, 30h
mov [rbp+var_10], rdi
mov [rbp+var_18], rsi
mov [rbp+var_20], rdx
mov [rbp+var_28], rcx
mov rax, [rbp+var_20]
mov rax, [rax+8]
mov rcx, [rbp+var_28]
movzx eax, byte ptr [rax+rcx]
shl eax, 8
cdqe
shl rax, 1
mov [rbp+var_30], eax
mov rax, [rbp+var_10]
mov rax, [rax+80h]
mov ecx, [rbp+var_30]
mov edi, ecx
call rax
mov rcx, [rbp+var_20]
mov rcx, [rcx+10h]
mov rdx, [rbp+var_28]
mov [rcx+rdx*8], rax
cmp rax, 0
jnz short loc_60B04
mov [rbp+var_1], 1
jmp loc_60BC0
loc_60B04:
jmp short $+2
loc_60B06:
jmp short $+2
loc_60B08:
mov rax, [rbp+var_20]
mov rax, [rax+10h]
mov rcx, [rbp+var_28]
mov rdi, [rax+rcx*8]
mov eax, [rbp+var_30]
mov edx, eax
xor esi, esi
call _memset
mov [rbp+var_2C], 0
loc_60B2B:
cmp [rbp+var_2C], 100h
jnb loc_60BBC
mov rax, [rbp+var_20]
mov rax, [rax+10h]
mov rcx, [rbp+var_28]
mov rdi, [rax+rcx*8]
mov eax, [rbp+var_2C]
mov rcx, [rbp+var_20]
mov rcx, [rcx+8]
mov rdx, [rbp+var_28]
movzx ecx, byte ptr [rcx+rdx]
imul eax, ecx
mov eax, eax
shl rax, 1
add rdi, rax
mov rax, [rbp+var_18]
mov rax, [rax+10h]
mov rcx, [rbp+var_28]
mov rsi, [rax+rcx*8]
mov eax, [rbp+var_2C]
mov rcx, [rbp+var_18]
mov rcx, [rcx+8]
mov rdx, [rbp+var_28]
movzx ecx, byte ptr [rcx+rdx]
imul eax, ecx
mov eax, eax
shl rax, 1
add rsi, rax
mov rax, [rbp+var_18]
mov rax, [rax+8]
mov rcx, [rbp+var_28]
movzx eax, byte ptr [rax+rcx]
mov edx, eax
shl rdx, 1
call _memcpy
mov eax, [rbp+var_2C]
add eax, 1
mov [rbp+var_2C], eax
jmp loc_60B2B
loc_60BBC:
mov [rbp+var_1], 0
loc_60BC0:
mov al, [rbp+var_1]
add rsp, 30h
pop rbp
retn
|
char my_uca_copy_page(long long a1, long long a2, long long a3, long long a4)
{
long long v4; // rax
unsigned int v6; // [rsp+0h] [rbp-30h]
unsigned int i; // [rsp+4h] [rbp-2Ch]
v6 = *(unsigned __int8 *)(*(_QWORD *)(a3 + 8) + a4) << 9;
v4 = (*(long long ( **)(_QWORD))(a1 + 128))(v6);
*(_QWORD *)(*(_QWORD *)(a3 + 16) + 8 * a4) = v4;
if ( !v4 )
return 1;
memset(*(_QWORD *)(*(_QWORD *)(a3 + 16) + 8 * a4), 0LL, v6);
for ( i = 0; i < 0x100; ++i )
memcpy(
2LL * *(unsigned __int8 *)(*(_QWORD *)(a3 + 8) + a4) * i + *(_QWORD *)(*(_QWORD *)(a3 + 16) + 8 * a4),
2LL * *(unsigned __int8 *)(*(_QWORD *)(a2 + 8) + a4) * i + *(_QWORD *)(*(_QWORD *)(a2 + 16) + 8 * a4),
2LL * *(unsigned __int8 *)(*(_QWORD *)(a2 + 8) + a4));
return 0;
}
|
my_uca_copy_page:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x30
MOV qword ptr [RBP + -0x10],RDI
MOV qword ptr [RBP + -0x18],RSI
MOV qword ptr [RBP + -0x20],RDX
MOV qword ptr [RBP + -0x28],RCX
MOV RAX,qword ptr [RBP + -0x20]
MOV RAX,qword ptr [RAX + 0x8]
MOV RCX,qword ptr [RBP + -0x28]
MOVZX EAX,byte ptr [RAX + RCX*0x1]
SHL EAX,0x8
CDQE
SHL RAX,0x1
MOV dword ptr [RBP + -0x30],EAX
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX + 0x80]
MOV ECX,dword ptr [RBP + -0x30]
MOV EDI,ECX
CALL RAX
MOV RCX,qword ptr [RBP + -0x20]
MOV RCX,qword ptr [RCX + 0x10]
MOV RDX,qword ptr [RBP + -0x28]
MOV qword ptr [RCX + RDX*0x8],RAX
CMP RAX,0x0
JNZ 0x00160b04
MOV byte ptr [RBP + -0x1],0x1
JMP 0x00160bc0
LAB_00160b04:
JMP 0x00160b06
LAB_00160b06:
JMP 0x00160b08
LAB_00160b08:
MOV RAX,qword ptr [RBP + -0x20]
MOV RAX,qword ptr [RAX + 0x10]
MOV RCX,qword ptr [RBP + -0x28]
MOV RDI,qword ptr [RAX + RCX*0x8]
MOV EAX,dword ptr [RBP + -0x30]
MOV EDX,EAX
XOR ESI,ESI
CALL 0x001251a0
MOV dword ptr [RBP + -0x2c],0x0
LAB_00160b2b:
CMP dword ptr [RBP + -0x2c],0x100
JNC 0x00160bbc
MOV RAX,qword ptr [RBP + -0x20]
MOV RAX,qword ptr [RAX + 0x10]
MOV RCX,qword ptr [RBP + -0x28]
MOV RDI,qword ptr [RAX + RCX*0x8]
MOV EAX,dword ptr [RBP + -0x2c]
MOV RCX,qword ptr [RBP + -0x20]
MOV RCX,qword ptr [RCX + 0x8]
MOV RDX,qword ptr [RBP + -0x28]
MOVZX ECX,byte ptr [RCX + RDX*0x1]
IMUL EAX,ECX
MOV EAX,EAX
SHL RAX,0x1
ADD RDI,RAX
MOV RAX,qword ptr [RBP + -0x18]
MOV RAX,qword ptr [RAX + 0x10]
MOV RCX,qword ptr [RBP + -0x28]
MOV RSI,qword ptr [RAX + RCX*0x8]
MOV EAX,dword ptr [RBP + -0x2c]
MOV RCX,qword ptr [RBP + -0x18]
MOV RCX,qword ptr [RCX + 0x8]
MOV RDX,qword ptr [RBP + -0x28]
MOVZX ECX,byte ptr [RCX + RDX*0x1]
IMUL EAX,ECX
MOV EAX,EAX
SHL RAX,0x1
ADD RSI,RAX
MOV RAX,qword ptr [RBP + -0x18]
MOV RAX,qword ptr [RAX + 0x8]
MOV RCX,qword ptr [RBP + -0x28]
MOVZX EAX,byte ptr [RAX + RCX*0x1]
MOV EDX,EAX
SHL RDX,0x1
CALL 0x00125230
MOV EAX,dword ptr [RBP + -0x2c]
ADD EAX,0x1
MOV dword ptr [RBP + -0x2c],EAX
JMP 0x00160b2b
LAB_00160bbc:
MOV byte ptr [RBP + -0x1],0x0
LAB_00160bc0:
MOV AL,byte ptr [RBP + -0x1]
ADD RSP,0x30
POP RBP
RET
|
int1 my_uca_copy_page(long param_1,long param_2,long param_3,long param_4)
{
size_t __n;
long lVar1;
int4 local_34;
int1 local_9;
__n = (long)(int)((uint)*(byte *)(*(long *)(param_3 + 8) + param_4) << 8) << 1;
lVar1 = (**(code **)(param_1 + 0x80))(__n);
*(long *)(*(long *)(param_3 + 0x10) + param_4 * 8) = lVar1;
if (lVar1 == 0) {
local_9 = 1;
}
else {
memset(*(void **)(*(long *)(param_3 + 0x10) + param_4 * 8),0,__n);
for (local_34 = 0; local_34 < 0x100; local_34 = local_34 + 1) {
memcpy((void *)(*(long *)(*(long *)(param_3 + 0x10) + param_4 * 8) +
(ulong)(local_34 * *(byte *)(*(long *)(param_3 + 8) + param_4)) * 2),
(void *)(*(long *)(*(long *)(param_2 + 0x10) + param_4 * 8) +
(ulong)(local_34 * *(byte *)(*(long *)(param_2 + 8) + param_4)) * 2),
(ulong)*(byte *)(*(long *)(param_2 + 8) + param_4) << 1);
}
local_9 = 0;
}
return local_9;
}
|
|
58,076
|
trnman_new_trn
|
eloqsql/storage/maria/trnman.c
|
TRN *trnman_new_trn(WT_THD *wt)
{
int res;
TRN *trn;
union { TRN *trn; void *v; } tmp;
DBUG_ENTER("trnman_new_trn");
/*
we have a mutex, to do simple things under it - allocate a TRN,
increment trnman_active_transactions, set trn->min_read_from.
Note that all the above is fast. generating short_id may be slow,
as it involves scanning a large array - so it's done outside of the
mutex.
*/
DBUG_PRINT("info", ("mysql_mutex_lock LOCK_trn_list"));
mysql_mutex_lock(&LOCK_trn_list);
/* Allocating a new TRN structure */
tmp.trn= pool;
/*
Popping an unused TRN from the pool
(ABA isn't possible, we're behind a mutex
*/
while (tmp.trn && !my_atomic_casptr((void **)(char*) &pool, &tmp.v,
(void *)tmp.trn->next))
/* no-op */;
/* Nothing in the pool ? Allocate a new one */
if (!(trn= tmp.trn))
{
/*
trn should be completely initialized at create time to allow
one to keep a known state on it.
(Like redo_lns, which is assumed to be 0 at start of row handling
and reset to zero before end of row handling)
*/
trn= (TRN *)my_malloc(PSI_INSTRUMENT_ME, sizeof(TRN), MYF(MY_WME | MY_ZEROFILL));
if (unlikely(!trn))
{
DBUG_PRINT("info", ("mysql_mutex_unlock LOCK_trn_list"));
mysql_mutex_unlock(&LOCK_trn_list);
return 0;
}
trnman_allocated_transactions++;
mysql_mutex_init(key_TRN_state_lock, &trn->state_lock, MY_MUTEX_INIT_FAST);
}
trn->wt= wt;
trn->pins= lf_hash_get_pins(&trid_to_trn);
if (!trn->pins)
{
trnman_free_trn(trn);
mysql_mutex_unlock(&LOCK_trn_list);
return 0;
}
trnman_active_transactions++;
trn->min_read_from= active_list_min.next->trid;
trn->trid= new_trid();
trn->next= &active_list_max;
trn->prev= active_list_max.prev;
active_list_max.prev= trn->prev->next= trn;
trid_min_read_from= active_list_min.next->min_read_from;
DBUG_PRINT("info", ("mysql_mutex_unlock LOCK_trn_list"));
mysql_mutex_unlock(&LOCK_trn_list);
if (unlikely(!trn->min_read_from))
{
/*
We are the only transaction. Set min_read_from so that we can read
our own rows
*/
trn->min_read_from= trn->trid + 1;
}
/* no other transaction can read changes done by this one */
trn->commit_trid= MAX_TRID;
trn->rec_lsn= trn->undo_lsn= trn->first_undo_lsn= 0;
trn->used_tables= 0;
trn->used_instances= 0;
trn->locked_tables= 0;
trn->flags= 0;
/*
only after the following function TRN is considered initialized,
so it must be done the last
*/
mysql_mutex_lock(&trn->state_lock);
trn->short_id= get_short_trid(trn);
mysql_mutex_unlock(&trn->state_lock);
res= lf_hash_insert(&trid_to_trn, trn->pins, &trn);
DBUG_ASSERT(res <= 0);
if (res)
{
trnman_end_trn(trn, 0);
return 0;
}
DBUG_PRINT("exit", ("trn: %p trid: 0x%lu min_read_from: 0x%lu",
trn, (ulong) trn->trid, (ulong) trn->min_read_from));
DBUG_RETURN(trn);
}
|
O0
|
c
|
trnman_new_trn:
pushq %rbp
movq %rsp, %rbp
subq $0x50, %rsp
movq %rdi, -0x10(%rbp)
jmp 0x773ee
leaq 0x40fd8b(%rip), %rdi # 0x487180
leaq 0xe5c26(%rip), %rsi # 0x15d022
movl $0x128, %edx # imm = 0x128
callq 0x77720
movq 0x40fc9b(%rip), %rax # 0x4870a8
movq %rax, -0x28(%rbp)
xorl %eax, %eax
cmpq $0x0, -0x28(%rbp)
movb %al, -0x32(%rbp)
je 0x77463
movq -0x28(%rbp), %rax
movq 0x68(%rax), %rax
movq %rax, -0x30(%rbp)
movq -0x28(%rbp), %rax
movq -0x30(%rbp), %rcx
lock
cmpxchgq %rcx, 0x40fc6e(%rip) # 0x4870a8
movq %rax, %rcx
sete %al
movb %al, -0x41(%rbp)
movq %rcx, -0x40(%rbp)
testb $0x1, %al
jne 0x77453
movq -0x40(%rbp), %rax
movq %rax, -0x28(%rbp)
movb -0x41(%rbp), %al
andb $0x1, %al
movb %al, -0x31(%rbp)
movb -0x31(%rbp), %al
xorb $-0x1, %al
movb %al, -0x32(%rbp)
movb -0x32(%rbp), %al
testb $0x1, %al
jne 0x7746c
jmp 0x7746e
jmp 0x77411
movq -0x28(%rbp), %rax
movq %rax, -0x20(%rbp)
cmpq $0x0, %rax
jne 0x77500
xorl %edi, %edi
movl $0xb0, %esi
movl $0x30, %edx
callq 0xfc090
movq %rax, -0x20(%rbp)
cmpq $0x0, -0x20(%rbp)
setne %al
xorb $-0x1, %al
andb $0x1, %al
movzbl %al, %eax
cmpl $0x0, %eax
setne %al
andb $0x1, %al
movzbl %al, %eax
cltq
cmpq $0x0, %rax
je 0x774d4
jmp 0x774b9
jmp 0x774bb
leaq 0x40fcbe(%rip), %rdi # 0x487180
callq 0x77790
movq $0x0, -0x8(%rbp)
jmp 0x77710
movl 0x40fbc6(%rip), %eax # 0x4870a0
addl $0x1, %eax
movl %eax, 0x40fbbd(%rip) # 0x4870a0
leaq 0x40f84a(%rip), %rax # 0x486d34
movl (%rax), %edi
movq -0x20(%rbp), %rsi
addq $0x10, %rsi
leaq 0xc1b1b5(%rip), %rdx # 0xc926b0
callq 0x77260
movq -0x10(%rbp), %rcx
movq -0x20(%rbp), %rax
movq %rcx, 0x8(%rax)
leaq 0x40fba5(%rip), %rdi # 0x4870b8
addq $0x28, %rdi
callq 0x1054c0
movq %rax, %rcx
movq -0x20(%rbp), %rax
movq %rcx, (%rax)
movq -0x20(%rbp), %rax
cmpq $0x0, (%rax)
jne 0x77552
movq -0x20(%rbp), %rdi
callq 0x777f0
leaq 0x40fc40(%rip), %rdi # 0x487180
callq 0x77790
movq $0x0, -0x8(%rbp)
jmp 0x77710
movl 0x40fb40(%rip), %eax # 0x487098
addl $0x1, %eax
movl %eax, 0x40fb37(%rip) # 0x487098
movq 0x40f8d8(%rip), %rax # 0x486e40
movq 0x78(%rax), %rcx
movq -0x20(%rbp), %rax
movq %rcx, 0x80(%rax)
callq 0x78830
movq %rax, %rcx
movq -0x20(%rbp), %rax
movq %rcx, 0x78(%rax)
movq -0x20(%rbp), %rax
leaq 0x40f8f6(%rip), %rcx # 0x486e88
movq %rcx, 0x68(%rax)
movq 0x40f95b(%rip), %rcx # 0x486ef8
movq -0x20(%rbp), %rax
movq %rcx, 0x70(%rax)
movq -0x20(%rbp), %rax
movq -0x20(%rbp), %rcx
movq 0x70(%rcx), %rcx
movq %rax, 0x68(%rcx)
movq %rax, 0x40f93c(%rip) # 0x486ef8
movq 0x40f87d(%rip), %rax # 0x486e40
movq 0x80(%rax), %rax
movq %rax, 0x253a57(%rip) # 0x2cb028
jmp 0x775d3
leaq 0x40fba6(%rip), %rdi # 0x487180
callq 0x77790
movq -0x20(%rbp), %rax
cmpq $0x0, 0x80(%rax)
setne %al
xorb $-0x1, %al
andb $0x1, %al
movzbl %al, %eax
cmpl $0x0, %eax
setne %al
andb $0x1, %al
movzbl %al, %eax
cltq
cmpq $0x0, %rax
je 0x7761f
movq -0x20(%rbp), %rax
movq 0x78(%rax), %rcx
addq $0x1, %rcx
movq -0x20(%rbp), %rax
movq %rcx, 0x80(%rax)
movq -0x20(%rbp), %rax
movq $-0x1, 0x88(%rax)
movq -0x20(%rbp), %rax
movq $0x0, 0xa0(%rax)
movq -0x20(%rbp), %rax
movq $0x0, 0x98(%rax)
movq -0x20(%rbp), %rax
movq $0x0, 0x90(%rax)
movq -0x20(%rbp), %rax
movq $0x0, 0x58(%rax)
movq -0x20(%rbp), %rax
movq $0x0, 0x60(%rax)
movq -0x20(%rbp), %rax
movl $0x0, 0xa8(%rax)
movq -0x20(%rbp), %rax
movw $0x0, 0xae(%rax)
movq -0x20(%rbp), %rdi
addq $0x10, %rdi
leaq 0xe5985(%rip), %rsi # 0x15d022
movl $0x173, %edx # imm = 0x173
callq 0x77720
movq -0x20(%rbp), %rdi
callq 0x778a0
movw %ax, %cx
movq -0x20(%rbp), %rax
movw %cx, 0xac(%rax)
movq -0x20(%rbp), %rdi
addq $0x10, %rdi
callq 0x77790
movq -0x20(%rbp), %rax
movq (%rax), %rsi
leaq 0x40f9df(%rip), %rdi # 0x4870b8
leaq -0x20(%rbp), %rdx
callq 0x106850
movl %eax, -0x14(%rbp)
jmp 0x776e7
cmpl $0x0, -0x14(%rbp)
je 0x77702
movq -0x20(%rbp), %rdi
xorl %esi, %esi
callq 0x77980
movq $0x0, -0x8(%rbp)
jmp 0x77710
jmp 0x77704
jmp 0x77706
jmp 0x77708
movq -0x20(%rbp), %rax
movq %rax, -0x8(%rbp)
movq -0x8(%rbp), %rax
addq $0x50, %rsp
popq %rbp
retq
nopw (%rax,%rax)
|
trnman_new_trn:
push rbp
mov rbp, rsp
sub rsp, 50h
mov [rbp+var_10], rdi
jmp short $+2
loc_773EE:
lea rdi, LOCK_trn_list
lea rsi, aWorkspaceLlm4b_17; "/workspace/llm4binary/github2025/eloqsq"...
mov edx, 128h
call inline_mysql_mutex_lock_10
mov rax, cs:pool
mov [rbp+var_28], rax
loc_77411:
xor eax, eax
cmp [rbp+var_28], 0
mov [rbp+var_32], al
jz short loc_77463
mov rax, [rbp+var_28]
mov rax, [rax+68h]
mov [rbp+var_30], rax
mov rax, [rbp+var_28]
mov rcx, [rbp+var_30]
lock cmpxchg cs:pool, rcx
mov rcx, rax
setz al
mov [rbp+var_41], al
mov [rbp+var_40], rcx
test al, 1
jnz short loc_77453
mov rax, [rbp+var_40]
mov [rbp+var_28], rax
loc_77453:
mov al, [rbp+var_41]
and al, 1
mov [rbp+var_31], al
mov al, [rbp+var_31]
xor al, 0FFh
mov [rbp+var_32], al
loc_77463:
mov al, [rbp+var_32]
test al, 1
jnz short loc_7746C
jmp short loc_7746E
loc_7746C:
jmp short loc_77411
loc_7746E:
mov rax, [rbp+var_28]
mov [rbp+var_20], rax
cmp rax, 0
jnz loc_77500
xor edi, edi
mov esi, 0B0h
mov edx, 30h ; '0'
call my_malloc
mov [rbp+var_20], rax
cmp [rbp+var_20], 0
setnz al
xor al, 0FFh
and al, 1
movzx eax, al
cmp eax, 0
setnz al
and al, 1
movzx eax, al
cdqe
cmp rax, 0
jz short loc_774D4
jmp short $+2
loc_774B9:
jmp short $+2
loc_774BB:
lea rdi, LOCK_trn_list
call inline_mysql_mutex_unlock_11
mov [rbp+var_8], 0
jmp loc_77710
loc_774D4:
mov eax, cs:trnman_allocated_transactions
add eax, 1
mov cs:trnman_allocated_transactions, eax
lea rax, key_TRN_state_lock
mov edi, [rax]
mov rsi, [rbp+var_20]
add rsi, 10h
lea rdx, my_fast_mutexattr
call inline_mysql_mutex_init_2
loc_77500:
mov rcx, [rbp+var_10]
mov rax, [rbp+var_20]
mov [rax+8], rcx
lea rdi, trid_to_trn
add rdi, 28h ; '('
call lf_pinbox_get_pins
mov rcx, rax
mov rax, [rbp+var_20]
mov [rax], rcx
mov rax, [rbp+var_20]
cmp qword ptr [rax], 0
jnz short loc_77552
mov rdi, [rbp+var_20]
call trnman_free_trn
lea rdi, LOCK_trn_list
call inline_mysql_mutex_unlock_11
mov [rbp+var_8], 0
jmp loc_77710
loc_77552:
mov eax, cs:trnman_active_transactions
add eax, 1
mov cs:trnman_active_transactions, eax
mov rax, cs:qword_486E40
mov rcx, [rax+78h]
mov rax, [rbp+var_20]
mov [rax+80h], rcx
call new_trid
mov rcx, rax
mov rax, [rbp+var_20]
mov [rax+78h], rcx
mov rax, [rbp+var_20]
lea rcx, active_list_max
mov [rax+68h], rcx
mov rcx, cs:qword_486EF8
mov rax, [rbp+var_20]
mov [rax+70h], rcx
mov rax, [rbp+var_20]
mov rcx, [rbp+var_20]
mov rcx, [rcx+70h]
mov [rcx+68h], rax
mov cs:qword_486EF8, rax
mov rax, cs:qword_486E40
mov rax, [rax+80h]
mov cs:trid_min_read_from, rax
jmp short $+2
loc_775D3:
lea rdi, LOCK_trn_list
call inline_mysql_mutex_unlock_11
mov rax, [rbp+var_20]
cmp qword ptr [rax+80h], 0
setnz al
xor al, 0FFh
and al, 1
movzx eax, al
cmp eax, 0
setnz al
and al, 1
movzx eax, al
cdqe
cmp rax, 0
jz short loc_7761F
mov rax, [rbp+var_20]
mov rcx, [rax+78h]
add rcx, 1
mov rax, [rbp+var_20]
mov [rax+80h], rcx
loc_7761F:
mov rax, [rbp+var_20]
mov qword ptr [rax+88h], 0FFFFFFFFFFFFFFFFh
mov rax, [rbp+var_20]
mov qword ptr [rax+0A0h], 0
mov rax, [rbp+var_20]
mov qword ptr [rax+98h], 0
mov rax, [rbp+var_20]
mov qword ptr [rax+90h], 0
mov rax, [rbp+var_20]
mov qword ptr [rax+58h], 0
mov rax, [rbp+var_20]
mov qword ptr [rax+60h], 0
mov rax, [rbp+var_20]
mov dword ptr [rax+0A8h], 0
mov rax, [rbp+var_20]
mov word ptr [rax+0AEh], 0
mov rdi, [rbp+var_20]
add rdi, 10h
lea rsi, aWorkspaceLlm4b_17; "/workspace/llm4binary/github2025/eloqsq"...
mov edx, 173h
call inline_mysql_mutex_lock_10
mov rdi, [rbp+var_20]
call get_short_trid
mov cx, ax
mov rax, [rbp+var_20]
mov [rax+0ACh], cx
mov rdi, [rbp+var_20]
add rdi, 10h
call inline_mysql_mutex_unlock_11
mov rax, [rbp+var_20]
mov rsi, [rax]
lea rdi, trid_to_trn
lea rdx, [rbp+var_20]
call lf_hash_insert
mov [rbp+var_14], eax
jmp short $+2
loc_776E7:
cmp [rbp+var_14], 0
jz short loc_77702
mov rdi, [rbp+var_20]
xor esi, esi
call trnman_end_trn
mov [rbp+var_8], 0
jmp short loc_77710
loc_77702:
jmp short $+2
loc_77704:
jmp short $+2
loc_77706:
jmp short $+2
loc_77708:
mov rax, [rbp+var_20]
mov [rbp+var_8], rax
loc_77710:
mov rax, [rbp+var_8]
add rsp, 50h
pop rbp
retn
|
long long trnman_new_trn(long long a1)
{
signed long long v1; // rcx
long long v2; // rax
bool v4; // [rsp+Fh] [rbp-41h]
char v5; // [rsp+1Eh] [rbp-32h]
signed long long v6; // [rsp+28h] [rbp-28h]
long long v7; // [rsp+30h] [rbp-20h] BYREF
long long v9; // [rsp+40h] [rbp-10h]
v9 = a1;
inline_mysql_mutex_lock_10(&LOCK_trn_list, "/workspace/llm4binary/github2025/eloqsql/storage/maria/trnman.c", 296LL);
v6 = pool;
do
{
v5 = 0;
if ( v6 )
{
v1 = _InterlockedCompareExchange64(&pool, *(_QWORD *)(v6 + 104), v6);
v4 = v6 == v1;
if ( v6 != v1 )
v6 = v1;
v5 = ~v4;
}
}
while ( (v5 & 1) != 0 );
v7 = v6;
if ( !v6 )
{
v7 = my_malloc(0LL, 176LL, 48LL);
if ( !v7 )
{
inline_mysql_mutex_unlock_11(&LOCK_trn_list);
return 0LL;
}
++trnman_allocated_transactions;
inline_mysql_mutex_init_2(key_TRN_state_lock, (_QWORD *)(v7 + 16), (long long)&my_fast_mutexattr);
}
*(_QWORD *)(v7 + 8) = v9;
*(_QWORD *)v7 = lf_pinbox_get_pins((char *)&trid_to_trn + 40);
if ( *(_QWORD *)v7 )
{
++trnman_active_transactions;
*(_QWORD *)(v7 + 128) = *(_QWORD *)(qword_486E40 + 120);
*(_QWORD *)(v7 + 120) = new_trid();
*(_QWORD *)(v7 + 104) = &active_list_max;
*(_QWORD *)(v7 + 112) = qword_486EF8;
v2 = v7;
*(_QWORD *)(*(_QWORD *)(v7 + 112) + 104LL) = v7;
qword_486EF8 = v2;
trid_min_read_from = *(_QWORD *)(qword_486E40 + 128);
inline_mysql_mutex_unlock_11(&LOCK_trn_list);
if ( !*(_QWORD *)(v7 + 128) )
*(_QWORD *)(v7 + 128) = *(_QWORD *)(v7 + 120) + 1LL;
*(_QWORD *)(v7 + 136) = -1LL;
*(_QWORD *)(v7 + 160) = 0LL;
*(_QWORD *)(v7 + 152) = 0LL;
*(_QWORD *)(v7 + 144) = 0LL;
*(_QWORD *)(v7 + 88) = 0LL;
*(_QWORD *)(v7 + 96) = 0LL;
*(_DWORD *)(v7 + 168) = 0;
*(_WORD *)(v7 + 174) = 0;
inline_mysql_mutex_lock_10(v7 + 16, "/workspace/llm4binary/github2025/eloqsql/storage/maria/trnman.c", 371LL);
*(_WORD *)(v7 + 172) = get_short_trid(v7);
inline_mysql_mutex_unlock_11(v7 + 16);
if ( (unsigned int)lf_hash_insert(&trid_to_trn, *(_QWORD *)v7, &v7) )
{
trnman_end_trn(v7, 0LL);
return 0LL;
}
else
{
return v7;
}
}
else
{
trnman_free_trn(v7);
inline_mysql_mutex_unlock_11(&LOCK_trn_list);
return 0LL;
}
}
|
trnman_new_trn:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x50
MOV qword ptr [RBP + -0x10],RDI
JMP 0x001773ee
LAB_001773ee:
LEA RDI,[0x587180]
LEA RSI,[0x25d022]
MOV EDX,0x128
CALL 0x00177720
MOV RAX,qword ptr [0x005870a8]
MOV qword ptr [RBP + -0x28],RAX
LAB_00177411:
XOR EAX,EAX
CMP qword ptr [RBP + -0x28],0x0
MOV byte ptr [RBP + -0x32],AL
JZ 0x00177463
MOV RAX,qword ptr [RBP + -0x28]
MOV RAX,qword ptr [RAX + 0x68]
MOV qword ptr [RBP + -0x30],RAX
MOV RAX,qword ptr [RBP + -0x28]
MOV RCX,qword ptr [RBP + -0x30]
CMPXCHG.LOCK qword ptr [0x005870a8],RCX
MOV RCX,RAX
SETZ AL
MOV byte ptr [RBP + -0x41],AL
MOV qword ptr [RBP + -0x40],RCX
TEST AL,0x1
JNZ 0x00177453
MOV RAX,qword ptr [RBP + -0x40]
MOV qword ptr [RBP + -0x28],RAX
LAB_00177453:
MOV AL,byte ptr [RBP + -0x41]
AND AL,0x1
MOV byte ptr [RBP + -0x31],AL
MOV AL,byte ptr [RBP + -0x31]
XOR AL,0xff
MOV byte ptr [RBP + -0x32],AL
LAB_00177463:
MOV AL,byte ptr [RBP + -0x32]
TEST AL,0x1
JNZ 0x0017746c
JMP 0x0017746e
LAB_0017746c:
JMP 0x00177411
LAB_0017746e:
MOV RAX,qword ptr [RBP + -0x28]
MOV qword ptr [RBP + -0x20],RAX
CMP RAX,0x0
JNZ 0x00177500
XOR EDI,EDI
MOV ESI,0xb0
MOV EDX,0x30
CALL 0x001fc090
MOV qword ptr [RBP + -0x20],RAX
CMP qword ptr [RBP + -0x20],0x0
SETNZ AL
XOR AL,0xff
AND AL,0x1
MOVZX EAX,AL
CMP EAX,0x0
SETNZ AL
AND AL,0x1
MOVZX EAX,AL
CDQE
CMP RAX,0x0
JZ 0x001774d4
JMP 0x001774b9
LAB_001774b9:
JMP 0x001774bb
LAB_001774bb:
LEA RDI,[0x587180]
CALL 0x00177790
MOV qword ptr [RBP + -0x8],0x0
JMP 0x00177710
LAB_001774d4:
MOV EAX,dword ptr [0x005870a0]
ADD EAX,0x1
MOV dword ptr [0x005870a0],EAX
LEA RAX,[0x586d34]
MOV EDI,dword ptr [RAX]
MOV RSI,qword ptr [RBP + -0x20]
ADD RSI,0x10
LEA RDX,[0xd926b0]
CALL 0x00177260
LAB_00177500:
MOV RCX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RBP + -0x20]
MOV qword ptr [RAX + 0x8],RCX
LEA RDI,[0x5870b8]
ADD RDI,0x28
CALL 0x002054c0
MOV RCX,RAX
MOV RAX,qword ptr [RBP + -0x20]
MOV qword ptr [RAX],RCX
MOV RAX,qword ptr [RBP + -0x20]
CMP qword ptr [RAX],0x0
JNZ 0x00177552
MOV RDI,qword ptr [RBP + -0x20]
CALL 0x001777f0
LEA RDI,[0x587180]
CALL 0x00177790
MOV qword ptr [RBP + -0x8],0x0
JMP 0x00177710
LAB_00177552:
MOV EAX,dword ptr [0x00587098]
ADD EAX,0x1
MOV dword ptr [0x00587098],EAX
MOV RAX,qword ptr [0x00586e40]
MOV RCX,qword ptr [RAX + 0x78]
MOV RAX,qword ptr [RBP + -0x20]
MOV qword ptr [RAX + 0x80],RCX
CALL 0x00178830
MOV RCX,RAX
MOV RAX,qword ptr [RBP + -0x20]
MOV qword ptr [RAX + 0x78],RCX
MOV RAX,qword ptr [RBP + -0x20]
LEA RCX,[0x586e88]
MOV qword ptr [RAX + 0x68],RCX
MOV RCX,qword ptr [0x00586ef8]
MOV RAX,qword ptr [RBP + -0x20]
MOV qword ptr [RAX + 0x70],RCX
MOV RAX,qword ptr [RBP + -0x20]
MOV RCX,qword ptr [RBP + -0x20]
MOV RCX,qword ptr [RCX + 0x70]
MOV qword ptr [RCX + 0x68],RAX
MOV qword ptr [0x00586ef8],RAX
MOV RAX,qword ptr [0x00586e40]
MOV RAX,qword ptr [RAX + 0x80]
MOV qword ptr [0x003cb028],RAX
JMP 0x001775d3
LAB_001775d3:
LEA RDI,[0x587180]
CALL 0x00177790
MOV RAX,qword ptr [RBP + -0x20]
CMP qword ptr [RAX + 0x80],0x0
SETNZ AL
XOR AL,0xff
AND AL,0x1
MOVZX EAX,AL
CMP EAX,0x0
SETNZ AL
AND AL,0x1
MOVZX EAX,AL
CDQE
CMP RAX,0x0
JZ 0x0017761f
MOV RAX,qword ptr [RBP + -0x20]
MOV RCX,qword ptr [RAX + 0x78]
ADD RCX,0x1
MOV RAX,qword ptr [RBP + -0x20]
MOV qword ptr [RAX + 0x80],RCX
LAB_0017761f:
MOV RAX,qword ptr [RBP + -0x20]
MOV qword ptr [RAX + 0x88],-0x1
MOV RAX,qword ptr [RBP + -0x20]
MOV qword ptr [RAX + 0xa0],0x0
MOV RAX,qword ptr [RBP + -0x20]
MOV qword ptr [RAX + 0x98],0x0
MOV RAX,qword ptr [RBP + -0x20]
MOV qword ptr [RAX + 0x90],0x0
MOV RAX,qword ptr [RBP + -0x20]
MOV qword ptr [RAX + 0x58],0x0
MOV RAX,qword ptr [RBP + -0x20]
MOV qword ptr [RAX + 0x60],0x0
MOV RAX,qword ptr [RBP + -0x20]
MOV dword ptr [RAX + 0xa8],0x0
MOV RAX,qword ptr [RBP + -0x20]
MOV word ptr [RAX + 0xae],0x0
MOV RDI,qword ptr [RBP + -0x20]
ADD RDI,0x10
LEA RSI,[0x25d022]
MOV EDX,0x173
CALL 0x00177720
MOV RDI,qword ptr [RBP + -0x20]
CALL 0x001778a0
MOV CX,AX
MOV RAX,qword ptr [RBP + -0x20]
MOV word ptr [RAX + 0xac],CX
MOV RDI,qword ptr [RBP + -0x20]
ADD RDI,0x10
CALL 0x00177790
MOV RAX,qword ptr [RBP + -0x20]
MOV RSI,qword ptr [RAX]
LEA RDI,[0x5870b8]
LEA RDX,[RBP + -0x20]
CALL 0x00206850
MOV dword ptr [RBP + -0x14],EAX
JMP 0x001776e7
LAB_001776e7:
CMP dword ptr [RBP + -0x14],0x0
JZ 0x00177702
MOV RDI,qword ptr [RBP + -0x20]
XOR ESI,ESI
CALL 0x00177980
MOV qword ptr [RBP + -0x8],0x0
JMP 0x00177710
LAB_00177702:
JMP 0x00177704
LAB_00177704:
JMP 0x00177706
LAB_00177706:
JMP 0x00177708
LAB_00177708:
MOV RAX,qword ptr [RBP + -0x20]
MOV qword ptr [RBP + -0x8],RAX
LAB_00177710:
MOV RAX,qword ptr [RBP + -0x8]
ADD RSP,0x50
POP RBP
RET
|
long * trnman_new_trn(long param_1)
{
long *plVar1;
int2 uVar2;
long *plVar3;
long lVar4;
bool bVar5;
long *local_30;
long *local_28;
int local_1c;
long local_18;
long *local_10;
local_18 = param_1;
inline_mysql_mutex_lock
(LOCK_trn_list,"/workspace/llm4binary/github2025/eloqsql/storage/maria/trnman.c",0x128);
local_30 = pool;
do {
bVar5 = false;
if (local_30 != (long *)0x0) {
LOCK();
bVar5 = local_30 != pool;
plVar3 = local_30;
plVar1 = (long *)local_30[0xd];
if (bVar5) {
plVar3 = pool;
plVar1 = pool;
}
pool = plVar1;
UNLOCK();
if (bVar5) {
local_30 = plVar3;
}
}
} while (bVar5);
local_28 = local_30;
if (local_30 == (long *)0x0) {
local_28 = (long *)my_malloc(0,0xb0,0x30);
if (local_28 == (long *)0x0) {
inline_mysql_mutex_unlock(LOCK_trn_list);
return (long *)0x0;
}
trnman_allocated_transactions = trnman_allocated_transactions + 1;
inline_mysql_mutex_init(key_TRN_state_lock,local_28 + 2,&my_fast_mutexattr);
}
local_28[1] = local_18;
lVar4 = lf_pinbox_get_pins(0x5870e0);
*local_28 = lVar4;
if (*local_28 == 0) {
trnman_free_trn(local_28);
inline_mysql_mutex_unlock(LOCK_trn_list);
local_10 = (long *)0x0;
}
else {
trnman_active_transactions = trnman_active_transactions + 1;
local_28[0x10] = *(long *)(active_list_min._104_8_ + 0x78);
lVar4 = new_trid();
local_28[0xf] = lVar4;
local_28[0xd] = (long)active_list_max;
local_28[0xe] = active_list_max._112_8_;
*(long **)(local_28[0xe] + 0x68) = local_28;
active_list_max._112_8_ = local_28;
trid_min_read_from = *(int8 *)(active_list_min._104_8_ + 0x80);
inline_mysql_mutex_unlock(LOCK_trn_list);
if (local_28[0x10] == 0) {
local_28[0x10] = local_28[0xf] + 1;
}
local_28[0x11] = -1;
local_28[0x14] = 0;
local_28[0x13] = 0;
local_28[0x12] = 0;
local_28[0xb] = 0;
local_28[0xc] = 0;
*(int4 *)(local_28 + 0x15) = 0;
*(int2 *)((long)local_28 + 0xae) = 0;
inline_mysql_mutex_lock
(local_28 + 2,"/workspace/llm4binary/github2025/eloqsql/storage/maria/trnman.c",0x173)
;
uVar2 = get_short_trid(local_28);
*(int2 *)((long)local_28 + 0xac) = uVar2;
inline_mysql_mutex_unlock(local_28 + 2);
local_1c = lf_hash_insert(trid_to_trn,*local_28,&local_28);
if (local_1c == 0) {
local_10 = local_28;
}
else {
trnman_end_trn(local_28,0);
local_10 = (long *)0x0;
}
}
return local_10;
}
|
|
58,077
|
testing::internal::AppendUserMessage(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, testing::Message const&)
|
giladroyz[P]FindPeaks/build_O1/_deps/googletest-src/googletest/src/gtest.cc
|
std::string AppendUserMessage(const std::string& gtest_msg,
const Message& user_msg) {
// Appends the user message if it's non-empty.
const std::string user_msg_string = user_msg.GetString();
if (user_msg_string.empty()) {
return gtest_msg;
}
if (gtest_msg.empty()) {
return user_msg_string;
}
return gtest_msg + "\n" + user_msg_string;
}
|
O1
|
cpp
|
testing::internal::AppendUserMessage(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, testing::Message const&):
pushq %r15
pushq %r14
pushq %rbx
subq $0x40, %rsp
movq %rsi, %r14
movq %rdi, %rbx
movq (%rdx), %rsi
leaq 0x20(%rsp), %r15
movq %r15, %rdi
callq 0x1cfc7
movq 0x8(%r15), %rdx
testq %rdx, %rdx
je 0x194c0
movq 0x8(%r14), %rax
testq %rax, %rax
je 0x194db
leaq 0x10(%rsp), %r15
movq %r15, -0x10(%r15)
movq (%r14), %rsi
addq %rsi, %rax
movq %rsp, %rdi
movq %rax, %rdx
callq 0x39594
leaq 0x29e59(%rip), %rsi # 0x432dd
movq %rsp, %rdi
callq 0x8a50
movq 0x20(%rsp), %rsi
movq 0x28(%rsp), %rdx
movq %rsp, %rdi
callq 0x8170
leaq 0x10(%rbx), %rdx
movq %rdx, (%rbx)
movq (%rax), %rsi
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rsi
je 0x194f4
movq %rsi, (%rbx)
movq (%rcx), %rdx
movq %rdx, 0x10(%rbx)
jmp 0x194fa
leaq 0x10(%rbx), %rax
movq %rax, (%rbx)
movq (%r14), %rsi
movq 0x8(%r14), %rdx
addq %rsi, %rdx
movq %rbx, %rdi
callq 0x39594
jmp 0x19527
leaq 0x10(%rbx), %rax
movq %rax, (%rbx)
movq 0x20(%rsp), %rsi
addq %rsi, %rdx
movq %rbx, %rdi
callq 0x39594
jmp 0x19527
movups (%rcx), %xmm0
movups %xmm0, (%rdx)
movq 0x8(%rax), %rdx
movq %rdx, 0x8(%rbx)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq (%rsp), %rdi
cmpq %r15, %rdi
je 0x19527
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x84e0
leaq 0x30(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x19542
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x84e0
movq %rbx, %rax
addq $0x40, %rsp
popq %rbx
popq %r14
popq %r15
retq
jmp 0x19551
movq %rax, %rbx
movq (%rsp), %rdi
cmpq %r15, %rdi
je 0x19571
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x84e0
jmp 0x19571
jmp 0x1956e
movq %rax, %rbx
leaq 0x30(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x1958c
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x84e0
movq %rbx, %rdi
callq 0x8990
|
_ZN7testing8internal17AppendUserMessageERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKNS_7MessageE:
push r15
push r14
push rbx
sub rsp, 40h
mov r14, rsi
mov rbx, rdi
mov rsi, [rdx]
lea r15, [rsp+58h+var_38]
mov rdi, r15
call _ZN7testing8internal20StringStreamToStringEPNSt7__cxx1118basic_stringstreamIcSt11char_traitsIcESaIcEEE; testing::internal::StringStreamToString(std::basic_stringstream<char,std::char_traits<char>,std::allocator<char>> *)
mov rdx, [r15+8]
test rdx, rdx
jz short loc_194C0
mov rax, [r14+8]
test rax, rax
jz short loc_194DB
lea r15, [rsp+58h+var_48]
mov [r15-10h], r15
mov rsi, [r14]
add rax, rsi
mov rdi, rsp
mov rdx, rax
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPcEEvT_S7_St20forward_iterator_tag; std::string::_M_construct<char *>(char *,char *,std::forward_iterator_tag)
lea rsi, aSFromSSMsTotal+19h; "\n"
mov rdi, rsp
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6appendEPKc; std::string::append(char const*)
mov rsi, [rsp+58h+var_38]
mov rdx, [rsp+58h+var_30]
mov rdi, rsp
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9_M_appendEPKcm; std::string::_M_append(char const*,ulong)
lea rdx, [rbx+10h]
mov [rbx], rdx
mov rsi, [rax]
mov rcx, rax
add rcx, 10h
cmp rsi, rcx
jz short loc_194F4
mov [rbx], rsi
mov rdx, [rcx]
mov [rbx+10h], rdx
jmp short loc_194FA
loc_194C0:
lea rax, [rbx+10h]
mov [rbx], rax
mov rsi, [r14]
mov rdx, [r14+8]
add rdx, rsi
mov rdi, rbx
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPcEEvT_S7_St20forward_iterator_tag; std::string::_M_construct<char *>(char *,char *,std::forward_iterator_tag)
jmp short loc_19527
loc_194DB:
lea rax, [rbx+10h]
mov [rbx], rax
mov rsi, [rsp+58h+var_38]
add rdx, rsi
mov rdi, rbx
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPcEEvT_S7_St20forward_iterator_tag; std::string::_M_construct<char *>(char *,char *,std::forward_iterator_tag)
jmp short loc_19527
loc_194F4:
movups xmm0, xmmword ptr [rcx]
movups xmmword ptr [rdx], xmm0
loc_194FA:
mov rdx, [rax+8]
mov [rbx+8], rdx
mov [rax], rcx
mov qword ptr [rax+8], 0
mov byte ptr [rax+10h], 0
mov rdi, [rsp+58h+var_58]; void *
cmp rdi, r15
jz short loc_19527
mov rsi, [rsp+58h+var_48]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_19527:
lea rax, [rsp+58h+var_28]
mov rdi, [rax-10h]; void *
cmp rdi, rax
jz short loc_19542
mov rsi, [rsp+58h+var_28]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_19542:
mov rax, rbx
add rsp, 40h
pop rbx
pop r14
pop r15
retn
jmp short $+2
loc_19551:
mov rbx, rax
mov rdi, [rsp+0]; void *
cmp rdi, r15
jz short loc_19571
mov rsi, [rsp+arg_8]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
jmp short loc_19571
jmp short $+2
loc_1956E:
mov rbx, rax
loc_19571:
lea rax, [rsp+arg_28]
mov rdi, [rax-10h]; void *
cmp rdi, rax
jz short loc_1958C
mov rsi, [rsp+arg_28]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_1958C:
mov rdi, rbx
call __Unwind_Resume
|
long long testing::internal::AppendUserMessage(long long a1, _QWORD *a2, _QWORD *a3, int a4, int a5, int a6)
{
long long v6; // rdx
long long v7; // rax
long long v8; // rax
_OWORD *v9; // rcx
void *v11[2]; // [rsp+0h] [rbp-58h] BYREF
_QWORD v12[2]; // [rsp+10h] [rbp-48h] BYREF
char *v13; // [rsp+20h] [rbp-38h] BYREF
long long v14; // [rsp+28h] [rbp-30h]
long long v15; // [rsp+30h] [rbp-28h] BYREF
testing::internal::StringStreamToString((unsigned int)&v13, *a3, (_DWORD)a3, a4, a5, a6);
v6 = v14;
if ( v14 )
{
v7 = a2[1];
if ( v7 )
{
v11[0] = v12;
std::string::_M_construct<char *>(v11, *a2, *a2 + v7);
std::string::append(v11, "\n");
v8 = std::string::_M_append(v11, v13);
*(_QWORD *)a1 = a1 + 16;
v9 = (_OWORD *)(v8 + 16);
if ( *(_QWORD *)v8 == v8 + 16 )
{
*(_OWORD *)(a1 + 16) = *v9;
}
else
{
*(_QWORD *)a1 = *(_QWORD *)v8;
*(_QWORD *)(a1 + 16) = *(_QWORD *)v9;
}
*(_QWORD *)(a1 + 8) = *(_QWORD *)(v8 + 8);
*(_QWORD *)v8 = v9;
*(_QWORD *)(v8 + 8) = 0LL;
*(_BYTE *)(v8 + 16) = 0;
if ( v11[0] != v12 )
operator delete(v11[0], v12[0] + 1LL);
}
else
{
*(_QWORD *)a1 = a1 + 16;
std::string::_M_construct<char *>(a1, v13, &v13[v6]);
}
}
else
{
*(_QWORD *)a1 = a1 + 16;
std::string::_M_construct<char *>(a1, *a2, *a2 + a2[1]);
}
if ( v13 != (char *)&v15 )
operator delete(v13, v15 + 1);
return a1;
}
|
AppendUserMessage:
PUSH R15
PUSH R14
PUSH RBX
SUB RSP,0x40
MOV R14,RSI
MOV RBX,RDI
MOV RSI,qword ptr [RDX]
LEA R15,[RSP + 0x20]
MOV RDI,R15
CALL 0x0011cfc7
MOV RDX,qword ptr [R15 + 0x8]
TEST RDX,RDX
JZ 0x001194c0
MOV RAX,qword ptr [R14 + 0x8]
TEST RAX,RAX
JZ 0x001194db
LEA R15,[RSP + 0x10]
MOV qword ptr [R15 + -0x10],R15
MOV RSI,qword ptr [R14]
ADD RAX,RSI
LAB_00119472:
MOV RDI,RSP
MOV RDX,RAX
CALL 0x00139594
LAB_0011947d:
LEA RSI,[0x1432dd]
MOV RDI,RSP
CALL 0x00108a50
MOV RSI,qword ptr [RSP + 0x20]
MOV RDX,qword ptr [RSP + 0x28]
LAB_00119496:
MOV RDI,RSP
CALL 0x00108170
LEA RDX,[RBX + 0x10]
MOV qword ptr [RBX],RDX
MOV RSI,qword ptr [RAX]
MOV RCX,RAX
ADD RCX,0x10
CMP RSI,RCX
JZ 0x001194f4
MOV qword ptr [RBX],RSI
MOV RDX,qword ptr [RCX]
MOV qword ptr [RBX + 0x10],RDX
JMP 0x001194fa
LAB_001194c0:
LEA RAX,[RBX + 0x10]
MOV qword ptr [RBX],RAX
MOV RSI,qword ptr [R14]
MOV RDX,qword ptr [R14 + 0x8]
ADD RDX,RSI
LAB_001194d1:
MOV RDI,RBX
CALL 0x00139594
JMP 0x00119527
LAB_001194db:
LEA RAX,[RBX + 0x10]
MOV qword ptr [RBX],RAX
MOV RSI,qword ptr [RSP + 0x20]
ADD RDX,RSI
MOV RDI,RBX
CALL 0x00139594
LAB_001194f2:
JMP 0x00119527
LAB_001194f4:
MOVUPS XMM0,xmmword ptr [RCX]
MOVUPS xmmword ptr [RDX],XMM0
LAB_001194fa:
MOV RDX,qword ptr [RAX + 0x8]
MOV qword ptr [RBX + 0x8],RDX
MOV qword ptr [RAX],RCX
MOV qword ptr [RAX + 0x8],0x0
MOV byte ptr [RAX + 0x10],0x0
MOV RDI,qword ptr [RSP]
CMP RDI,R15
JZ 0x00119527
MOV RSI,qword ptr [RSP + 0x10]
INC RSI
CALL 0x001084e0
LAB_00119527:
LEA RAX,[RSP + 0x30]
MOV RDI,qword ptr [RAX + -0x10]
CMP RDI,RAX
JZ 0x00119542
MOV RSI,qword ptr [RSP + 0x30]
INC RSI
CALL 0x001084e0
LAB_00119542:
MOV RAX,RBX
ADD RSP,0x40
POP RBX
POP R14
POP R15
RET
|
/* testing::internal::AppendUserMessage(std::__cxx11::string const&, testing::Message const&) */
string * testing::internal::AppendUserMessage(string *param_1,Message *param_2)
{
long lVar1;
long *plVar2;
long *plVar3;
long *local_58 [2];
long local_48 [2];
long *local_38;
long local_30;
long local_28 [2];
StringStreamToString((stringstream *)&local_38);
if (local_30 == 0) {
*(string **)param_1 = param_1 + 0x10;
/* try { // try from 001194d1 to 001194f1 has its CatchHandler @ 0011956e */
std::__cxx11::string::_M_construct<char*>
(param_1,*(long *)param_2,*(long *)(param_2 + 8) + *(long *)param_2);
}
else if (*(long *)(param_2 + 8) == 0) {
*(string **)param_1 = param_1 + 0x10;
std::__cxx11::string::_M_construct<char*>(param_1,local_38,local_30 + (long)local_38);
}
else {
local_58[0] = local_48;
/* try { // try from 00119472 to 0011947c has its CatchHandler @ 0011956c */
std::__cxx11::string::_M_construct<char*>
(local_58,*(long *)param_2,*(long *)(param_2 + 8) + *(long *)param_2);
/* try { // try from 0011947d to 0011948b has its CatchHandler @ 00119551 */
std::__cxx11::string::append((char *)local_58);
/* try { // try from 00119496 to 0011949d has its CatchHandler @ 0011954f */
plVar2 = (long *)std::__cxx11::string::_M_append((char *)local_58,(ulong)local_38);
*(string **)param_1 = param_1 + 0x10;
plVar3 = plVar2 + 2;
if ((long *)*plVar2 == plVar3) {
lVar1 = plVar2[3];
*(long *)(param_1 + 0x10) = *plVar3;
*(long *)(param_1 + 0x18) = lVar1;
}
else {
*(long **)param_1 = (long *)*plVar2;
*(long *)(param_1 + 0x10) = *plVar3;
}
*(long *)(param_1 + 8) = plVar2[1];
*plVar2 = (long)plVar3;
plVar2[1] = 0;
*(int1 *)(plVar2 + 2) = 0;
if (local_58[0] != local_48) {
operator_delete(local_58[0],local_48[0] + 1);
}
}
if (local_38 != local_28) {
operator_delete(local_38,local_28[0] + 1);
}
return param_1;
}
|
|
58,078
|
ma_apply_undo_key_insert
|
eloqsql/storage/maria/ma_key_recover.c
|
my_bool _ma_apply_undo_key_insert(MARIA_HA *info, LSN undo_lsn,
const uchar *header, uint length)
{
LSN lsn;
my_bool res;
uint keynr;
uchar key_buff[MARIA_MAX_KEY_BUFF];
MARIA_SHARE *share= info->s;
MARIA_KEY key;
my_off_t new_root;
struct st_msg_to_write_hook_for_undo_key msg;
DBUG_ENTER("_ma_apply_undo_key_insert");
share->state.changed|= (STATE_CHANGED | STATE_NOT_OPTIMIZED_KEYS |
STATE_NOT_SORTED_PAGES | STATE_NOT_ZEROFILLED |
STATE_NOT_MOVABLE);
keynr= key_nr_korr(header);
length-= KEY_NR_STORE_SIZE;
/* We have to copy key as _ma_ck_real_delete() may change it */
memcpy(key_buff, header + KEY_NR_STORE_SIZE, length);
DBUG_DUMP("key_buff", key_buff, length);
new_root= share->state.key_root[keynr];
/*
Change the key to an internal structure.
It's safe to have SEARCH_USER_KEY_HAS_TRANSID even if there isn't
a transaction id, as ha_key_cmp() will stop comparison when key length
is reached.
For index with transid flag, the ref_length of the key is not correct.
This should however be safe as long as this key is only used for
comparsion against other keys (not for packing or for read-next etc as
in this case we use data_length + ref_length, which is correct.
*/
key.keyinfo= share->keyinfo + keynr;
key.data= key_buff;
key.data_length= length - share->rec_reflength;
key.ref_length= share->rec_reflength;
key.flag= SEARCH_USER_KEY_HAS_TRANSID;
res= ((share->keyinfo[keynr].key_alg == HA_KEY_ALG_RTREE) ?
maria_rtree_real_delete(info, &key, &new_root) :
_ma_ck_real_delete(info, &key, &new_root));
if (res)
_ma_mark_file_crashed(share);
msg.root= &share->state.key_root[keynr];
msg.value= new_root;
msg.keynr= keynr;
if (_ma_write_clr(info, undo_lsn, *msg.root == msg.value ?
LOGREC_UNDO_KEY_INSERT : LOGREC_UNDO_KEY_INSERT_WITH_ROOT,
0, 0, &lsn, (void*) &msg))
res= 1;
_ma_fast_unlock_key_del(info);
_ma_unpin_all_pages_and_finalize_row(info, lsn);
DBUG_RETURN(res);
}
|
O3
|
c
|
ma_apply_undo_key_insert:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xa48, %rsp # imm = 0xA48
movl %ecx, %r12d
movq %rdi, %rbx
movq %fs:0x28, %rax
movq %rax, -0x30(%rbp)
movq (%rdi), %r15
orl $0x1b1, 0x170(%r15) # imm = 0x1B1
movq %rsi, -0xa20(%rbp)
movzbl (%rdx), %r14d
decl %r12d
leaq 0x1(%rdx), %rsi
leaq -0xa10(%rbp), %r13
movl $0x9d3, %ecx # imm = 0x9D3
movq %r13, %rdi
movq %r12, %rdx
callq 0x29420
movq 0x118(%r15), %rax
movq (%rax,%r14,8), %rax
movq %rax, -0xa18(%rbp)
movq 0x570(%r15), %rax
imulq $0x118, %r14, %rcx # imm = 0x118
leaq (%rax,%rcx), %rdx
movq %rdx, -0xa40(%rbp)
movq %r13, -0xa48(%rbp)
movl 0x740(%r15), %edx
subl %edx, %r12d
movl %r12d, -0xa38(%rbp)
movl %edx, -0xa34(%rbp)
movl $0x80000, -0xa30(%rbp) # imm = 0x80000
cmpb $0x2, 0xa4(%rax,%rcx)
jne 0x5a679
leaq -0xa48(%rbp), %rsi
leaq -0xa18(%rbp), %rdx
movq %rbx, %rdi
callq 0x6bdc7
jmp 0x5a68f
leaq -0xa48(%rbp), %rsi
leaq -0xa18(%rbp), %rdx
movq %rbx, %rdi
callq 0x672b0
movl %eax, %r12d
testb %al, %al
je 0x5a69e
movq %r15, %rdi
callq 0x37e16
movq 0x118(%r15), %rax
leaq (%rax,%r14,8), %rax
leaq -0xa68(%rbp), %rcx
movq %rax, (%rcx)
movq -0xa18(%rbp), %rsi
movq %rsi, 0x8(%rcx)
movl %r14d, 0x10(%rcx)
xorl %edx, %edx
cmpq %rsi, (%rax)
setne %dl
addl $0x15, %edx
movq %rcx, (%rsp)
leaq -0xa28(%rbp), %r9
movq %rbx, %rdi
movq -0xa20(%rbp), %rsi
xorl %ecx, %ecx
xorl %r8d, %r8d
callq 0x59441
movl %eax, %r14d
cmpb $0x0, 0x67e(%rbx)
je 0x5a700
movq %rbx, %rdi
callq 0x5aa7e
testb %r14b, %r14b
movzbl %r12b, %eax
movl $0x1, %r14d
cmovel %eax, %r14d
movq -0xa28(%rbp), %rsi
movq %rbx, %rdi
callq 0x593c4
movq 0x8(%rbx), %rax
movq $0x0, 0x90(%rax)
movq %fs:0x28, %rax
cmpq -0x30(%rbp), %rax
jne 0x5a753
movl %r14d, %eax
addq $0xa48, %rsp # imm = 0xA48
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
callq 0x29270
|
_ma_apply_undo_key_insert:
push rbp
mov rbp, rsp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 0A48h
mov r12d, ecx
mov rbx, rdi
mov rax, fs:28h
mov [rbp+var_30], rax
mov r15, [rdi]
or dword ptr [r15+170h], 1B1h
mov [rbp+var_A20], rsi
movzx r14d, byte ptr [rdx]
dec r12d
lea rsi, [rdx+1]
lea r13, [rbp+var_A10]
mov ecx, 9D3h
mov rdi, r13
mov rdx, r12
call ___memcpy_chk
mov rax, [r15+118h]
mov rax, [rax+r14*8]
mov [rbp+var_A18], rax
mov rax, [r15+570h]
imul rcx, r14, 118h
lea rdx, [rax+rcx]
mov [rbp+var_A40], rdx
mov [rbp+var_A48], r13
mov edx, [r15+740h]
sub r12d, edx
mov [rbp+var_A38], r12d
mov [rbp+var_A34], edx
mov [rbp+var_A30], 80000h
cmp byte ptr [rax+rcx+0A4h], 2
jnz short loc_5A679
lea rsi, [rbp+var_A48]
lea rdx, [rbp+var_A18]
mov rdi, rbx
call maria_rtree_real_delete
jmp short loc_5A68F
loc_5A679:
lea rsi, [rbp+var_A48]
lea rdx, [rbp+var_A18]
mov rdi, rbx
call _ma_ck_real_delete
loc_5A68F:
mov r12d, eax
test al, al
jz short loc_5A69E
mov rdi, r15
call _ma_mark_file_crashed
loc_5A69E:
mov rax, [r15+118h]
lea rax, [rax+r14*8]
lea rcx, [rbp+var_A68]
mov [rcx], rax
mov rsi, [rbp+var_A18]
mov [rcx+8], rsi
mov [rcx+10h], r14d
xor edx, edx
cmp [rax], rsi
setnz dl
add edx, 15h
mov [rsp+0A70h+var_A70], rcx
lea r9, [rbp+var_A28]
mov rdi, rbx
mov rsi, [rbp+var_A20]
xor ecx, ecx
xor r8d, r8d
call _ma_write_clr
mov r14d, eax
cmp byte ptr [rbx+67Eh], 0
jz short loc_5A700
mov rdi, rbx
call _ma_unlock_key_del
loc_5A700:
test r14b, r14b
movzx eax, r12b
mov r14d, 1
cmovz r14d, eax
mov rsi, [rbp+var_A28]
mov rdi, rbx
call _ma_unpin_all_pages
mov rax, [rbx+8]
mov qword ptr [rax+90h], 0
mov rax, fs:28h
cmp rax, [rbp+var_30]
jnz short loc_5A753
mov eax, r14d
add rsp, 0A48h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
loc_5A753:
call ___stack_chk_fail
|
long long ma_apply_undo_key_insert(long long a1, long long a2, unsigned __int8 *a3, int a4)
{
long long v4; // r15
long long v5; // r14
long long v6; // r12
int v7; // edx
unsigned __int8 v8; // al
unsigned __int8 v9; // r12
char v10; // r14
bool v11; // zf
unsigned int v12; // r14d
_QWORD v14[2]; // [rsp+8h] [rbp-A68h] BYREF
int v15; // [rsp+18h] [rbp-A58h]
_BYTE *v16; // [rsp+28h] [rbp-A48h] BYREF
long long v17; // [rsp+30h] [rbp-A40h]
int v18; // [rsp+38h] [rbp-A38h]
int v19; // [rsp+3Ch] [rbp-A34h]
int v20; // [rsp+40h] [rbp-A30h]
signed long long v21; // [rsp+48h] [rbp-A28h] BYREF
long long v22; // [rsp+50h] [rbp-A20h]
long long v23; // [rsp+58h] [rbp-A18h] BYREF
_BYTE v24[2528]; // [rsp+60h] [rbp-A10h] BYREF
unsigned long long v25; // [rsp+A40h] [rbp-30h]
v25 = __readfsqword(0x28u);
v4 = *(_QWORD *)a1;
*(_DWORD *)(*(_QWORD *)a1 + 368LL) |= 0x1B1u;
v22 = a2;
v5 = *a3;
v6 = (unsigned int)(a4 - 1);
__memcpy_chk(v24, a3 + 1, v6, 2515LL);
v23 = *(_QWORD *)(*(_QWORD *)(v4 + 280) + 8 * v5);
v17 = *(_QWORD *)(v4 + 1392) + 280 * v5;
v16 = v24;
v7 = *(_DWORD *)(v4 + 1856);
v18 = v6 - v7;
v19 = v7;
v20 = 0x80000;
if ( *(_BYTE *)(v17 + 164) == 2 )
v8 = maria_rtree_real_delete(a1, &v16, &v23);
else
v8 = ma_ck_real_delete(a1, &v16, &v23);
v9 = v8;
if ( v8 )
ma_mark_file_crashed(v4);
v14[0] = *(_QWORD *)(v4 + 280) + 8 * v5;
v14[1] = v23;
v15 = v5;
v10 = ma_write_clr(
(long long *)a1,
v22,
(unsigned int)(*(_QWORD *)v14[0] != v23) + 21,
0,
0,
(unsigned long long)&v21,
(long long)v14);
if ( *(_BYTE *)(a1 + 1662) )
ma_unlock_key_del(a1);
v11 = v10 == 0;
v12 = 1;
if ( v11 )
v12 = v9;
ma_unpin_all_pages(a1, v21);
*(_QWORD *)(*(_QWORD *)(a1 + 8) + 144LL) = 0LL;
return v12;
}
|
_ma_apply_undo_key_insert:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0xa48
MOV R12D,ECX
MOV RBX,RDI
MOV RAX,qword ptr FS:[0x28]
MOV qword ptr [RBP + -0x30],RAX
MOV R15,qword ptr [RDI]
OR dword ptr [R15 + 0x170],0x1b1
MOV qword ptr [RBP + -0xa20],RSI
MOVZX R14D,byte ptr [RDX]
DEC R12D
LEA RSI,[RDX + 0x1]
LEA R13,[RBP + -0xa10]
MOV ECX,0x9d3
MOV RDI,R13
MOV RDX,R12
CALL 0x00129420
MOV RAX,qword ptr [R15 + 0x118]
MOV RAX,qword ptr [RAX + R14*0x8]
MOV qword ptr [RBP + -0xa18],RAX
MOV RAX,qword ptr [R15 + 0x570]
IMUL RCX,R14,0x118
LEA RDX,[RAX + RCX*0x1]
MOV qword ptr [RBP + -0xa40],RDX
MOV qword ptr [RBP + -0xa48],R13
MOV EDX,dword ptr [R15 + 0x740]
SUB R12D,EDX
MOV dword ptr [RBP + -0xa38],R12D
MOV dword ptr [RBP + -0xa34],EDX
MOV dword ptr [RBP + -0xa30],0x80000
CMP byte ptr [RAX + RCX*0x1 + 0xa4],0x2
JNZ 0x0015a679
LEA RSI,[RBP + -0xa48]
LEA RDX,[RBP + -0xa18]
MOV RDI,RBX
CALL 0x0016bdc7
JMP 0x0015a68f
LAB_0015a679:
LEA RSI,[RBP + -0xa48]
LEA RDX,[RBP + -0xa18]
MOV RDI,RBX
CALL 0x001672b0
LAB_0015a68f:
MOV R12D,EAX
TEST AL,AL
JZ 0x0015a69e
MOV RDI,R15
CALL 0x00137e16
LAB_0015a69e:
MOV RAX,qword ptr [R15 + 0x118]
LEA RAX,[RAX + R14*0x8]
LEA RCX,[RBP + -0xa68]
MOV qword ptr [RCX],RAX
MOV RSI,qword ptr [RBP + -0xa18]
MOV qword ptr [RCX + 0x8],RSI
MOV dword ptr [RCX + 0x10],R14D
XOR EDX,EDX
CMP qword ptr [RAX],RSI
SETNZ DL
ADD EDX,0x15
MOV qword ptr [RSP],RCX
LEA R9,[RBP + -0xa28]
MOV RDI,RBX
MOV RSI,qword ptr [RBP + -0xa20]
XOR ECX,ECX
XOR R8D,R8D
CALL 0x00159441
MOV R14D,EAX
CMP byte ptr [RBX + 0x67e],0x0
JZ 0x0015a700
MOV RDI,RBX
CALL 0x0015aa7e
LAB_0015a700:
TEST R14B,R14B
MOVZX EAX,R12B
MOV R14D,0x1
CMOVZ R14D,EAX
MOV RSI,qword ptr [RBP + -0xa28]
MOV RDI,RBX
CALL 0x001593c4
MOV RAX,qword ptr [RBX + 0x8]
MOV qword ptr [RAX + 0x90],0x0
MOV RAX,qword ptr FS:[0x28]
CMP RAX,qword ptr [RBP + -0x30]
JNZ 0x0015a753
MOV EAX,R14D
ADD RSP,0xa48
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
LAB_0015a753:
CALL 0x00129270
|
char _ma_apply_undo_key_insert(long *param_1,int8 param_2,byte *param_3,int param_4)
{
byte bVar1;
long lVar2;
char cVar3;
char cVar4;
char cVar5;
ulong uVar6;
long in_FS_OFFSET;
long *local_a70;
long local_a68;
uint local_a60;
int1 *local_a50;
long local_a48;
int local_a40;
int local_a3c;
int4 local_a38;
int8 local_a30;
int8 local_a28;
long local_a20;
int1 local_a18 [2528];
long local_38;
local_38 = *(long *)(in_FS_OFFSET + 0x28);
lVar2 = *param_1;
*(uint *)(lVar2 + 0x170) = *(uint *)(lVar2 + 0x170) | 0x1b1;
bVar1 = *param_3;
uVar6 = (ulong)bVar1;
local_a28 = param_2;
__memcpy_chk(local_a18,param_3 + 1,param_4 + -1,0x9d3);
local_a20 = *(long *)(*(long *)(lVar2 + 0x118) + uVar6 * 8);
local_a48 = *(long *)(lVar2 + 0x570) + uVar6 * 0x118;
local_a3c = *(int *)(lVar2 + 0x740);
local_a40 = (param_4 + -1) - local_a3c;
local_a38 = 0x80000;
local_a50 = local_a18;
if (*(char *)(*(long *)(lVar2 + 0x570) + 0xa4 + uVar6 * 0x118) == '\x02') {
cVar3 = maria_rtree_real_delete(param_1,&local_a50,&local_a20);
}
else {
cVar3 = _ma_ck_real_delete(param_1,&local_a50,&local_a20);
}
if (cVar3 != '\0') {
_ma_mark_file_crashed(lVar2);
}
local_a70 = (long *)(*(long *)(lVar2 + 0x118) + uVar6 * 8);
local_a68 = local_a20;
local_a60 = (uint)bVar1;
cVar4 = _ma_write_clr(param_1,local_a28,(*local_a70 != local_a20) + '\x15',0,0,&local_a30,
&local_a70);
if (*(char *)((long)param_1 + 0x67e) != '\0') {
_ma_unlock_key_del(param_1);
}
cVar5 = '\x01';
if (cVar4 == '\0') {
cVar5 = cVar3;
}
_ma_unpin_all_pages(param_1,local_a30);
*(int8 *)(param_1[1] + 0x90) = 0;
if (*(long *)(in_FS_OFFSET + 0x28) == local_38) {
return cVar5;
}
/* WARNING: Subroutine does not return */
__stack_chk_fail();
}
|
|
58,079
|
void nlohmann::json_abi_v3_11_3::detail::serializer<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>>::dump_integer<unsigned char, 0>(unsigned char)
|
llama.cpp/common/json.hpp
|
void dump_integer(NumberType x)
{
static constexpr std::array<std::array<char, 2>, 100> digits_to_99
{
{
{{'0', '0'}}, {{'0', '1'}}, {{'0', '2'}}, {{'0', '3'}}, {{'0', '4'}}, {{'0', '5'}}, {{'0', '6'}}, {{'0', '7'}}, {{'0', '8'}}, {{'0', '9'}},
{{'1', '0'}}, {{'1', '1'}}, {{'1', '2'}}, {{'1', '3'}}, {{'1', '4'}}, {{'1', '5'}}, {{'1', '6'}}, {{'1', '7'}}, {{'1', '8'}}, {{'1', '9'}},
{{'2', '0'}}, {{'2', '1'}}, {{'2', '2'}}, {{'2', '3'}}, {{'2', '4'}}, {{'2', '5'}}, {{'2', '6'}}, {{'2', '7'}}, {{'2', '8'}}, {{'2', '9'}},
{{'3', '0'}}, {{'3', '1'}}, {{'3', '2'}}, {{'3', '3'}}, {{'3', '4'}}, {{'3', '5'}}, {{'3', '6'}}, {{'3', '7'}}, {{'3', '8'}}, {{'3', '9'}},
{{'4', '0'}}, {{'4', '1'}}, {{'4', '2'}}, {{'4', '3'}}, {{'4', '4'}}, {{'4', '5'}}, {{'4', '6'}}, {{'4', '7'}}, {{'4', '8'}}, {{'4', '9'}},
{{'5', '0'}}, {{'5', '1'}}, {{'5', '2'}}, {{'5', '3'}}, {{'5', '4'}}, {{'5', '5'}}, {{'5', '6'}}, {{'5', '7'}}, {{'5', '8'}}, {{'5', '9'}},
{{'6', '0'}}, {{'6', '1'}}, {{'6', '2'}}, {{'6', '3'}}, {{'6', '4'}}, {{'6', '5'}}, {{'6', '6'}}, {{'6', '7'}}, {{'6', '8'}}, {{'6', '9'}},
{{'7', '0'}}, {{'7', '1'}}, {{'7', '2'}}, {{'7', '3'}}, {{'7', '4'}}, {{'7', '5'}}, {{'7', '6'}}, {{'7', '7'}}, {{'7', '8'}}, {{'7', '9'}},
{{'8', '0'}}, {{'8', '1'}}, {{'8', '2'}}, {{'8', '3'}}, {{'8', '4'}}, {{'8', '5'}}, {{'8', '6'}}, {{'8', '7'}}, {{'8', '8'}}, {{'8', '9'}},
{{'9', '0'}}, {{'9', '1'}}, {{'9', '2'}}, {{'9', '3'}}, {{'9', '4'}}, {{'9', '5'}}, {{'9', '6'}}, {{'9', '7'}}, {{'9', '8'}}, {{'9', '9'}},
}
};
// special case for "0"
if (x == 0)
{
o->write_character('0');
return;
}
// use a pointer to fill the buffer
auto buffer_ptr = number_buffer.begin(); // NOLINT(llvm-qualified-auto,readability-qualified-auto,cppcoreguidelines-pro-type-vararg,hicpp-vararg)
number_unsigned_t abs_value;
unsigned int n_chars{};
if (is_negative_number(x))
{
*buffer_ptr = '-';
abs_value = remove_sign(static_cast<number_integer_t>(x));
// account one more byte for the minus sign
n_chars = 1 + count_digits(abs_value);
}
else
{
abs_value = static_cast<number_unsigned_t>(x);
n_chars = count_digits(abs_value);
}
// spare 1 byte for '\0'
JSON_ASSERT(n_chars < number_buffer.size() - 1);
// jump to the end to generate the string from backward,
// so we later avoid reversing the result
buffer_ptr += n_chars;
// Fast int2ascii implementation inspired by "Fastware" talk by Andrei Alexandrescu
// See: https://www.youtube.com/watch?v=o4-CwDo2zpg
while (abs_value >= 100)
{
const auto digits_index = static_cast<unsigned>((abs_value % 100));
abs_value /= 100;
*(--buffer_ptr) = digits_to_99[digits_index][1];
*(--buffer_ptr) = digits_to_99[digits_index][0];
}
if (abs_value >= 10)
{
const auto digits_index = static_cast<unsigned>(abs_value);
*(--buffer_ptr) = digits_to_99[digits_index][1];
*(--buffer_ptr) = digits_to_99[digits_index][0];
}
else
{
*(--buffer_ptr) = static_cast<char>('0' + abs_value);
}
o->write_characters(number_buffer.data(), n_chars);
}
|
O3
|
cpp
|
void nlohmann::json_abi_v3_11_3::detail::serializer<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>>::dump_integer<unsigned char, 0>(unsigned char):
testl %esi, %esi
je 0x8a120
movl %esi, %eax
leaq 0x10(%rdi), %rsi
movzbl %al, %ecx
movl $0x1, %edx
cmpb $0xa, %cl
jb 0x8a106
movl $0x2, %edx
cmpb $0x64, %al
jae 0x8a130
leaq (%rsi,%rdx), %r8
cmpb $0xa, %al
jb 0x8a15b
leaq 0x4d29d(%rip), %rax # 0xd73b2
movzwl (%rax,%rcx,2), %eax
movw %ax, -0x2(%r8)
jmp 0x8a161
movq (%rdi), %rdi
movq (%rdi), %rax
movq (%rax), %rax
movl $0x30, %esi
jmpq *%rax
leal (%rcx,%rcx,4), %edx
leal (%rcx,%rdx,8), %ecx
shrl $0xc, %ecx
imull $0x64, %ecx, %edx
subb %dl, %al
movzbl %al, %eax
leaq 0x4d26a(%rip), %rdx # 0xd73b2
movzwl (%rdx,%rax,2), %eax
leaq 0x11(%rdi), %r8
movw %ax, 0x11(%rdi)
movl $0x3, %edx
movl %ecx, %eax
orb $0x30, %al
movb %al, -0x1(%r8)
movq (%rdi), %rdi
movq (%rdi), %rax
movq 0x8(%rax), %rax
jmpq *%rax
nop
|
_ZN8nlohmann16json_abi_v3_11_36detail10serializerINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEE12dump_integerIhTnNSt9enable_ifIXoooooosr3std11is_integralIT_EE5valuesr3std7is_sameISJ_mEE5valuesr3std7is_sameISJ_lEE5valuesr3std7is_sameISJ_hEE5valueEiE4typeELi0EEEvSJ_:
test esi, esi
jz short loc_8A120
mov eax, esi
lea rsi, [rdi+10h]
movzx ecx, al
mov edx, 1
cmp cl, 0Ah
jb short loc_8A106
mov edx, 2
cmp al, 64h ; 'd'
jnb short loc_8A130
loc_8A106:
lea r8, [rsi+rdx]
cmp al, 0Ah
jb short loc_8A15B
lea rax, _ZZN8nlohmann16json_abi_v3_11_36detail10serializerINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEE12dump_integerIhTnNSt9enable_ifIXoooooosr3std11is_integralIT_EE5valuesr3std7is_sameISJ_mEE5valuesr3std7is_sameISJ_lEE5valuesr3std7is_sameISJ_hEE5valueEiE4typeELi0EEEvSJ_E12digits_to_99
movzx eax, word ptr [rax+rcx*2]
mov [r8-2], ax
jmp short loc_8A161
loc_8A120:
mov rdi, [rdi]
mov rax, [rdi]
mov rax, [rax]
mov esi, 30h ; '0'
jmp rax
loc_8A130:
lea edx, [rcx+rcx*4]
lea ecx, [rcx+rdx*8]
shr ecx, 0Ch
imul edx, ecx, 64h ; 'd'
sub al, dl
movzx eax, al
lea rdx, _ZZN8nlohmann16json_abi_v3_11_36detail10serializerINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEE12dump_integerIhTnNSt9enable_ifIXoooooosr3std11is_integralIT_EE5valuesr3std7is_sameISJ_mEE5valuesr3std7is_sameISJ_lEE5valuesr3std7is_sameISJ_hEE5valueEiE4typeELi0EEEvSJ_E12digits_to_99
movzx eax, word ptr [rdx+rax*2]
lea r8, [rdi+11h]
mov [rdi+11h], ax
mov edx, 3
mov eax, ecx
loc_8A15B:
or al, 30h
mov [r8-1], al
loc_8A161:
mov rdi, [rdi]
mov rax, [rdi]
mov rax, [rax+8]
jmp rax
|
long long ZN8nlohmann16json_abi_v3_11_36detail10serializerINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEE12dump_integerIhTnNSt9enable_ifIXoooooosr3std11is_integralIT_EE5valuesr3std7is_sameISJ_mEE5valuesr3std7is_sameISJ_lEE5valuesr3std7is_sameISJ_hEE5valueEiE4typeELi0EEEvSJ_(
_QWORD *a1,
int a2)
{
char v2; // al
long long v3; // rdx
char *v4; // r8
if ( !a2 )
return (**(long long ( ***)(_QWORD, long long))*a1)(*a1, 48LL);
v2 = a2;
v3 = 1LL;
if ( (unsigned __int8)a2 >= 0xAu )
{
v3 = 2LL;
if ( (unsigned __int8)a2 >= 0x64u )
{
v4 = (char *)a1 + 17;
*(_WORD *)((char *)a1 + 17) = ZZN8nlohmann16json_abi_v3_11_36detail10serializerINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEE12dump_integerIhTnNSt9enable_ifIXoooooosr3std11is_integralIT_EE5valuesr3std7is_sameISJ_mEE5valuesr3std7is_sameISJ_lEE5valuesr3std7is_sameISJ_hEE5valueEiE4typeELi0EEEvSJ_E12digits_to_99[(unsigned __int8)a2 % 0x64u];
v2 = (unsigned __int8)a2 / 0x64u;
goto LABEL_8;
}
}
v4 = (char *)a1 + v3 + 16;
if ( (unsigned __int8)a2 < 0xAu )
{
LABEL_8:
*(v4 - 1) = v2 | 0x30;
return (*(long long ( **)(_QWORD))(*(_QWORD *)*a1 + 8LL))(*a1);
}
*((_WORD *)v4 - 1) = ZZN8nlohmann16json_abi_v3_11_36detail10serializerINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEE12dump_integerIhTnNSt9enable_ifIXoooooosr3std11is_integralIT_EE5valuesr3std7is_sameISJ_mEE5valuesr3std7is_sameISJ_lEE5valuesr3std7is_sameISJ_hEE5valueEiE4typeELi0EEEvSJ_E12digits_to_99[(unsigned __int8)a2];
return (*(long long ( **)(_QWORD))(*(_QWORD *)*a1 + 8LL))(*a1);
}
|
_ZN8nlohmann16json_abi_v3_11_36detail10serializerINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEE12dump_integerIhTnNSt9enable_ifIXoooooosr3std11is_integralIT_EE5valuesr3std7is_sameISJ_mEE5valuesr3std7is_sameISJ_lEE5valuesr3std7is_sameISJ_hEE5valueEiE4typeELi0EEEvSJ_:
TEST ESI,ESI
JZ 0x0018a120
MOV EAX,ESI
LEA RSI,[RDI + 0x10]
MOVZX ECX,AL
MOV EDX,0x1
CMP CL,0xa
JC 0x0018a106
MOV EDX,0x2
CMP AL,0x64
JNC 0x0018a130
LAB_0018a106:
LEA R8,[RSI + RDX*0x1]
CMP AL,0xa
JC 0x0018a15b
LEA RAX,[0x1d73b2]
MOVZX EAX,word ptr [RAX + RCX*0x2]
MOV word ptr [R8 + -0x2],AX
JMP 0x0018a161
LAB_0018a120:
MOV RDI,qword ptr [RDI]
MOV RAX,qword ptr [RDI]
MOV RAX,qword ptr [RAX]
MOV ESI,0x30
JMP RAX
LAB_0018a130:
LEA EDX,[RCX + RCX*0x4]
LEA ECX,[RCX + RDX*0x8]
SHR ECX,0xc
IMUL EDX,ECX,0x64
SUB AL,DL
MOVZX EAX,AL
LEA RDX,[0x1d73b2]
MOVZX EAX,word ptr [RDX + RAX*0x2]
LEA R8,[RDI + 0x11]
MOV word ptr [RDI + 0x11],AX
MOV EDX,0x3
MOV EAX,ECX
LAB_0018a15b:
OR AL,0x30
MOV byte ptr [R8 + -0x1],AL
LAB_0018a161:
MOV RDI,qword ptr [RDI]
MOV RAX,qword ptr [RDI]
MOV RAX,qword ptr [RAX + 0x8]
JMP RAX
|
void _ZN8nlohmann16json_abi_v3_11_36detail10serializerINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEE12dump_integerIhTnNSt9enable_ifIXoooooosr3std11is_integralIT_EE5valuesr3std7is_sameISJ_mEE5valuesr3std7is_sameISJ_lEE5valuesr3std7is_sameISJ_hEE5valueEiE4typeELi0EEEvSJ_
(int8 *param_1,uint param_2)
{
byte bVar1;
byte bVar2;
long lVar3;
long lVar4;
if (param_2 == 0) {
/* WARNING: Could not recover jumptable at 0x0018a12e. Too many branches */
/* WARNING: Treating indirect jump as call */
(*(code *)**(int8 **)*param_1)((int8 *)*param_1,0x30);
return;
}
bVar1 = (byte)param_2;
lVar3 = 1;
if ((bVar1 < 10) || (lVar3 = 2, bVar1 < 100)) {
lVar4 = (long)(param_1 + 2) + lVar3;
bVar2 = bVar1;
if (9 < bVar1) {
*(int2 *)(lVar4 + -2) =
*(int2 *)
(
_ZZN8nlohmann16json_abi_v3_11_36detail10serializerINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEE12dump_integerIhTnNSt9enable_ifIXoooooosr3std11is_integralIT_EE5valuesr3std7is_sameISJ_mEE5valuesr3std7is_sameISJ_lEE5valuesr3std7is_sameISJ_hEE5valueEiE4typeELi0EEEvSJ_E12digits_to_99
+ (ulong)bVar1 * 2);
goto LAB_0018a161;
}
}
else {
bVar2 = (byte)((param_2 & 0xff) + ((param_2 & 0xff) + (param_2 & 0xff) * 4) * 8 >> 0xc);
lVar4 = (long)param_1 + 0x11;
*(int2 *)((long)param_1 + 0x11) =
*(int2 *)
(
_ZZN8nlohmann16json_abi_v3_11_36detail10serializerINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEE12dump_integerIhTnNSt9enable_ifIXoooooosr3std11is_integralIT_EE5valuesr3std7is_sameISJ_mEE5valuesr3std7is_sameISJ_lEE5valuesr3std7is_sameISJ_hEE5valueEiE4typeELi0EEEvSJ_E12digits_to_99
+ (ulong)(byte)(bVar1 + bVar2 * -100) * 2);
lVar3 = 3;
}
*(byte *)(lVar4 + -1) = bVar2 | 0x30;
LAB_0018a161:
/* WARNING: Could not recover jumptable at 0x0018a16b. Too many branches */
/* WARNING: Treating indirect jump as call */
(**(code **)(*(long *)*param_1 + 8))((long *)*param_1,param_1 + 2,lVar3);
return;
}
|
|
58,080
|
google::protobuf::Reflection::GetString[abi:cxx11](google::protobuf::Message const&, google::protobuf::FieldDescriptor const*) const
|
aimrt_mujoco_sim/_deps/protobuf-src/src/google/protobuf/generated_message_reflection.cc
|
std::string Reflection::GetString(const Message& message,
const FieldDescriptor* field) const {
USAGE_CHECK_ALL(GetString, SINGULAR, STRING);
if (field->is_extension()) {
return GetExtensionSet(message).GetString(field->number(),
field->default_value_string());
} else {
if (schema_.InRealOneof(field) && !HasOneofField(message, field)) {
return field->default_value_string();
}
switch (field->options().ctype()) {
default: // TODO(kenton): Support other string reps.
case FieldOptions::STRING:
if (IsInlined(field)) {
return GetField<InlinedStringField>(message, field).GetNoArena();
} else {
const auto& str = GetField<ArenaStringPtr>(message, field);
return str.IsDefault() ? field->default_value_string() : str.Get();
}
}
}
}
|
O3
|
cpp
|
google::protobuf::Reflection::GetString[abi:cxx11](google::protobuf::Message const&, google::protobuf::FieldDescriptor const*) const:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x10, %rsp
movq %rcx, %r15
movq %rdx, %r14
movq %rsi, %r12
movq %rdi, %rbx
movq (%rsi), %rdi
cmpq %rdi, 0x20(%rcx)
je 0x68d35
leaq 0x51286(%rip), %rdx # 0xb9fac
leaq 0x50f9c(%rip), %rcx # 0xb9cc9
movq %r15, %rsi
callq 0x65a82
movb 0x1(%r15), %al
notb %al
testb $0x60, %al
jne 0x68d59
movq (%r12), %rdi
leaq 0x51262(%rip), %rdx # 0xb9fac
leaq 0x50f9b(%rip), %rcx # 0xb9cec
movq %r15, %rsi
callq 0x65a82
movq 0x18(%r15), %rdi
testq %rdi, %rdi
je 0x68d7c
leaq -0x2e149(%rip), %rax # 0x3ac20
leaq 0x8(%rsp), %rsi
movq %rax, (%rsi)
movq %rsp, %rdx
movq %r15, (%rdx)
callq 0x3fc96
movzbl 0x2(%r15), %eax
leaq 0x4ce98(%rip), %rcx # 0xb5c20
cmpl $0x9, (%rcx,%rax,4)
je 0x68da6
movq (%r12), %rdi
leaq 0x51213(%rip), %rdx # 0xb9fac
movq %r15, %rsi
movl $0x9, %ecx
callq 0x65f89
movb 0x1(%r15), %al
testb $0x8, %al
jne 0x68e27
testb $0x10, %al
sete %cl
movq 0x28(%r15), %rax
testq %rax, %rax
sete %dl
orb %cl, %dl
jne 0x68df2
cmpl $0x1, 0x4(%rax)
jne 0x68dd1
movq 0x20(%rax), %rcx
testb $0x2, 0x1(%rcx)
jne 0x68df2
movq 0x10(%rax), %rcx
subq 0x30(%rcx), %rax
shrq $0x3, %rax
imull $0x33333334, %eax, %eax # imm = 0x33333334
addl 0x2c(%r12), %eax
movl (%r14,%rax), %eax
cmpl 0x4(%r15), %eax
jne 0x68e44
addq $0x8, %r12
movq %r12, %rdi
movq %r15, %rsi
callq 0x6e994
movl %eax, %ebp
movq %r12, %rdi
movq %r15, %rsi
callq 0x6ea6a
movl %eax, %eax
addq %rax, %r14
testb %bpl, %bpl
jne 0x68e48
movq (%r14), %r14
testb $0x3, %r14b
je 0x68e44
andq $-0x4, %r14
jmp 0x68e48
movl 0x28(%r12), %eax
addq %rax, %r14
movl 0x4(%r15), %esi
movq 0x40(%r15), %rdx
movq %r14, %rdi
callq 0x95d70
movq %rax, %r14
jmp 0x68e48
movq 0x40(%r15), %r14
leaq 0x10(%rbx), %rax
movq %rax, (%rbx)
movq (%r14), %rsi
movq 0x8(%r14), %rdx
addq %rsi, %rdx
movq %rbx, %rdi
callq 0x13ffc
movq %rbx, %rax
addq $0x10, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
nop
|
_ZNK6google8protobuf10Reflection9GetStringB5cxx11ERKNS0_7MessageEPKNS0_15FieldDescriptorE:
push rbp
push r15
push r14
push r12
push rbx
sub rsp, 10h
mov r15, rcx
mov r14, rdx
mov r12, rsi
mov rbx, rdi
mov rdi, [rsi]; this
cmp [rcx+20h], rdi
jz short loc_68D35
lea rdx, aGetstring; "GetString"
lea rcx, aFieldDoesNotMa; "Field does not match message type."
mov rsi, r15; google::protobuf::Descriptor *
call _ZN6google8protobuf12_GLOBAL__N_126ReportReflectionUsageErrorEPKNS0_10DescriptorEPKNS0_15FieldDescriptorEPKcS9_; google::protobuf::`anonymous namespace'::ReportReflectionUsageError(google::protobuf::Descriptor const*,google::protobuf::FieldDescriptor const*,char const*,char const*)
loc_68D35:
mov al, [r15+1]
not al
test al, 60h
jnz short loc_68D59
mov rdi, [r12]; this
lea rdx, aGetstring; "GetString"
lea rcx, aFieldIsRepeate; "Field is repeated; the method requires "...
mov rsi, r15; google::protobuf::Descriptor *
call _ZN6google8protobuf12_GLOBAL__N_126ReportReflectionUsageErrorEPKNS0_10DescriptorEPKNS0_15FieldDescriptorEPKcS9_; google::protobuf::`anonymous namespace'::ReportReflectionUsageError(google::protobuf::Descriptor const*,google::protobuf::FieldDescriptor const*,char const*,char const*)
loc_68D59:
mov rdi, [r15+18h]
test rdi, rdi
jz short loc_68D7C
lea rax, _ZN6google8protobuf15FieldDescriptor12TypeOnceInitEPKS1_; google::protobuf::FieldDescriptor::TypeOnceInit(google::protobuf::FieldDescriptor const*)
lea rsi, [rsp+38h+var_30]
mov [rsi], rax
mov rdx, rsp
mov [rdx], r15
call _ZSt9call_onceIPFvPKN6google8protobuf15FieldDescriptorEEJS4_EEvRSt9once_flagOT_DpOT0_; std::call_once<void (*)(google::protobuf::FieldDescriptor const*),google::protobuf::FieldDescriptor const*>(std::once_flag &,void (*)(google::protobuf::FieldDescriptor const*) &&,google::protobuf::FieldDescriptor const* &&)
loc_68D7C:
movzx eax, byte ptr [r15+2]
lea rcx, _ZN6google8protobuf15FieldDescriptor17kTypeToCppTypeMapE; google::protobuf::FieldDescriptor::kTypeToCppTypeMap
cmp dword ptr [rcx+rax*4], 9
jz short loc_68DA6
mov rdi, [r12]
lea rdx, aGetstring; "GetString"
mov rsi, r15
mov ecx, 9
call _ZN6google8protobuf12_GLOBAL__N_130ReportReflectionUsageTypeErrorEPKNS0_10DescriptorEPKNS0_15FieldDescriptorEPKcNS5_7CppTypeE; google::protobuf::`anonymous namespace'::ReportReflectionUsageTypeError(google::protobuf::Descriptor const*,google::protobuf::FieldDescriptor const*,char const*,google::protobuf::FieldDescriptor::CppType)
loc_68DA6:
mov al, [r15+1]
test al, 8
jnz short loc_68E27
test al, 10h
setz cl
mov rax, [r15+28h]
test rax, rax
setz dl
or dl, cl
jnz short loc_68DF2
cmp dword ptr [rax+4], 1
jnz short loc_68DD1
mov rcx, [rax+20h]
test byte ptr [rcx+1], 2
jnz short loc_68DF2
loc_68DD1:
mov rcx, [rax+10h]
sub rax, [rcx+30h]
shr rax, 3
imul eax, 33333334h
add eax, [r12+2Ch]
mov eax, [r14+rax]
cmp eax, [r15+4]
jnz short loc_68E44
loc_68DF2:
add r12, 8
mov rdi, r12; this
mov rsi, r15; google::protobuf::FieldDescriptor *
call _ZNK6google8protobuf8internal16ReflectionSchema14IsFieldInlinedEPKNS0_15FieldDescriptorE; google::protobuf::internal::ReflectionSchema::IsFieldInlined(google::protobuf::FieldDescriptor const*)
mov ebp, eax
mov rdi, r12; this
mov rsi, r15; google::protobuf::FieldDescriptor *
call _ZNK6google8protobuf8internal16ReflectionSchema14GetFieldOffsetEPKNS0_15FieldDescriptorE; google::protobuf::internal::ReflectionSchema::GetFieldOffset(google::protobuf::FieldDescriptor const*)
mov eax, eax
add r14, rax
test bpl, bpl
jnz short loc_68E48
mov r14, [r14]
test r14b, 3
jz short loc_68E44
and r14, 0FFFFFFFFFFFFFFFCh
jmp short loc_68E48
loc_68E27:
mov eax, [r12+28h]
add r14, rax
mov esi, [r15+4]
mov rdx, [r15+40h]
mov rdi, r14
call _ZNK6google8protobuf8internal12ExtensionSet9GetStringEiRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE; google::protobuf::internal::ExtensionSet::GetString(int,std::string const&)
mov r14, rax
jmp short loc_68E48
loc_68E44:
mov r14, [r15+40h]
loc_68E48:
lea rax, [rbx+10h]
mov [rbx], rax
mov rsi, [r14]
mov rdx, [r14+8]
add rdx, rsi
mov rdi, rbx
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPcEEvT_S7_St20forward_iterator_tag; std::string::_M_construct<char *>(char *,char *,std::forward_iterator_tag)
mov rax, rbx
add rsp, 10h
pop rbx
pop r12
pop r14
pop r15
pop rbp
retn
|
_QWORD * google::protobuf::Reflection::GetString[abi:cxx11](
_QWORD *a1,
long long a2,
long long a3,
long long a4,
const char *a5,
long long a6)
{
long long v9; // rdi
char v10; // al
bool v11; // cl
long long v12; // rax
char IsFieldInlined; // bp
unsigned long long String; // r14
long long v15; // r14
long long v17; // [rsp+0h] [rbp-38h] BYREF
long long ( *v18[6])(google::protobuf::FieldDescriptor *, const google::protobuf::FieldDescriptor *); // [rsp+8h] [rbp-30h] BYREF
if ( *(_QWORD *)(a4 + 32) != *(_QWORD *)a2 )
google::protobuf::`anonymous namespace'::ReportReflectionUsageError(
*(google::protobuf::_anonymous_namespace_ **)a2,
(const google::protobuf::Descriptor *)a4,
(const google::protobuf::FieldDescriptor *)"GetString",
"Field does not match message type.",
a5);
if ( (~*(_BYTE *)(a4 + 1) & 0x60) == 0 )
google::protobuf::`anonymous namespace'::ReportReflectionUsageError(
*(google::protobuf::_anonymous_namespace_ **)a2,
(const google::protobuf::Descriptor *)a4,
(const google::protobuf::FieldDescriptor *)"GetString",
"Field is repeated; the method requires a singular field.",
a5);
v9 = *(_QWORD *)(a4 + 24);
if ( v9 )
{
v18[0] = google::protobuf::FieldDescriptor::TypeOnceInit;
v17 = a4;
std::call_once<void (*)(google::protobuf::FieldDescriptor const*),google::protobuf::FieldDescriptor const*>(
v9,
(long long)v18,
(long long)&v17,
a4,
(long long)a5,
a6);
}
if ( google::protobuf::FieldDescriptor::kTypeToCppTypeMap[*(unsigned __int8 *)(a4 + 2)] != 9 )
google::protobuf::`anonymous namespace'::ReportReflectionUsageTypeError(*(_QWORD *)a2, a4, (long long)"GetString", 9);
v10 = *(_BYTE *)(a4 + 1);
if ( (v10 & 8) != 0 )
{
String = google::protobuf::internal::ExtensionSet::GetString(
*(unsigned int *)(a2 + 40) + a3,
*(unsigned int *)(a4 + 4),
*(_QWORD *)(a4 + 64));
goto LABEL_19;
}
v11 = (v10 & 0x10) == 0;
v12 = *(_QWORD *)(a4 + 40);
if ( !v11
&& v12 != 0
&& (*(_DWORD *)(v12 + 4) != 1 || (*(_BYTE *)(*(_QWORD *)(v12 + 32) + 1LL) & 2) == 0)
&& *(_DWORD *)(a3
+ *(_DWORD *)(a2 + 44)
+ 858993460 * (unsigned int)((unsigned long long)(v12 - *(_QWORD *)(*(_QWORD *)(v12 + 16) + 48LL)) >> 3)) != *(_DWORD *)(a4 + 4) )
{
goto LABEL_18;
}
IsFieldInlined = google::protobuf::internal::ReflectionSchema::IsFieldInlined(
(google::protobuf::internal::ReflectionSchema *)(a2 + 8),
(const google::protobuf::FieldDescriptor *)a4);
String = (unsigned int)google::protobuf::internal::ReflectionSchema::GetFieldOffset(
(google::protobuf::internal::ReflectionSchema *)(a2 + 8),
(const google::protobuf::FieldDescriptor *)a4)
+ a3;
if ( !IsFieldInlined )
{
v15 = *(_QWORD *)String;
if ( (v15 & 3) != 0 )
{
String = v15 & 0xFFFFFFFFFFFFFFFCLL;
goto LABEL_19;
}
LABEL_18:
String = *(_QWORD *)(a4 + 64);
}
LABEL_19:
*a1 = a1 + 2;
std::string::_M_construct<char *>(a1, *(_BYTE **)String, *(_QWORD *)String + *(_QWORD *)(String + 8));
return a1;
}
|
GetString[abi:cxx11]:
PUSH RBP
PUSH R15
PUSH R14
PUSH R12
PUSH RBX
SUB RSP,0x10
MOV R15,RCX
MOV R14,RDX
MOV R12,RSI
MOV RBX,RDI
MOV RDI,qword ptr [RSI]
CMP qword ptr [RCX + 0x20],RDI
JZ 0x00168d35
LEA RDX,[0x1b9fac]
LEA RCX,[0x1b9cc9]
MOV RSI,R15
CALL 0x00165a82
LAB_00168d35:
MOV AL,byte ptr [R15 + 0x1]
NOT AL
TEST AL,0x60
JNZ 0x00168d59
MOV RDI,qword ptr [R12]
LEA RDX,[0x1b9fac]
LEA RCX,[0x1b9cec]
MOV RSI,R15
CALL 0x00165a82
LAB_00168d59:
MOV RDI,qword ptr [R15 + 0x18]
TEST RDI,RDI
JZ 0x00168d7c
LEA RAX,[0x13ac20]
LEA RSI,[RSP + 0x8]
MOV qword ptr [RSI],RAX
MOV RDX,RSP
MOV qword ptr [RDX],R15
CALL 0x0013fc96
LAB_00168d7c:
MOVZX EAX,byte ptr [R15 + 0x2]
LEA RCX,[0x1b5c20]
CMP dword ptr [RCX + RAX*0x4],0x9
JZ 0x00168da6
MOV RDI,qword ptr [R12]
LEA RDX,[0x1b9fac]
MOV RSI,R15
MOV ECX,0x9
CALL 0x00165f89
LAB_00168da6:
MOV AL,byte ptr [R15 + 0x1]
TEST AL,0x8
JNZ 0x00168e27
TEST AL,0x10
SETZ CL
MOV RAX,qword ptr [R15 + 0x28]
TEST RAX,RAX
SETZ DL
OR DL,CL
JNZ 0x00168df2
CMP dword ptr [RAX + 0x4],0x1
JNZ 0x00168dd1
MOV RCX,qword ptr [RAX + 0x20]
TEST byte ptr [RCX + 0x1],0x2
JNZ 0x00168df2
LAB_00168dd1:
MOV RCX,qword ptr [RAX + 0x10]
SUB RAX,qword ptr [RCX + 0x30]
SHR RAX,0x3
IMUL EAX,EAX,0x33333334
ADD EAX,dword ptr [R12 + 0x2c]
MOV EAX,dword ptr [R14 + RAX*0x1]
CMP EAX,dword ptr [R15 + 0x4]
JNZ 0x00168e44
LAB_00168df2:
ADD R12,0x8
MOV RDI,R12
MOV RSI,R15
CALL 0x0016e994
MOV EBP,EAX
MOV RDI,R12
MOV RSI,R15
CALL 0x0016ea6a
MOV EAX,EAX
ADD R14,RAX
TEST BPL,BPL
JNZ 0x00168e48
MOV R14,qword ptr [R14]
TEST R14B,0x3
JZ 0x00168e44
AND R14,-0x4
JMP 0x00168e48
LAB_00168e27:
MOV EAX,dword ptr [R12 + 0x28]
ADD R14,RAX
MOV ESI,dword ptr [R15 + 0x4]
MOV RDX,qword ptr [R15 + 0x40]
MOV RDI,R14
CALL 0x00195d70
MOV R14,RAX
JMP 0x00168e48
LAB_00168e44:
MOV R14,qword ptr [R15 + 0x40]
LAB_00168e48:
LEA RAX,[RBX + 0x10]
MOV qword ptr [RBX],RAX
MOV RSI,qword ptr [R14]
MOV RDX,qword ptr [R14 + 0x8]
ADD RDX,RSI
MOV RDI,RBX
CALL 0x00113ffc
MOV RAX,RBX
ADD RSP,0x10
POP RBX
POP R12
POP R14
POP R15
POP RBP
RET
|
/* google::protobuf::Reflection::GetString[abi:cxx11](google::protobuf::Message const&,
google::protobuf::FieldDescriptor const*) const */
Message * google::protobuf::Reflection::GetString_abi_cxx11_
(Message *param_1,FieldDescriptor *param_2)
{
long lVar1;
char cVar2;
uint uVar3;
FieldDescriptor *in_RCX;
long in_RDX;
ulong *puVar4;
FieldDescriptor *local_38;
code *local_30;
if (*(Descriptor **)(in_RCX + 0x20) != *(Descriptor **)param_2) {
(anonymous_namespace)::ReportReflectionUsageError
(*(Descriptor **)param_2,in_RCX,"GetString","Field does not match message type.");
}
if ((~(byte)in_RCX[1] & 0x60) == 0) {
(anonymous_namespace)::ReportReflectionUsageError
(*(Descriptor **)param_2,in_RCX,"GetString",
"Field is repeated; the method requires a singular field.");
}
if (*(once_flag **)(in_RCX + 0x18) != (once_flag *)0x0) {
local_30 = FieldDescriptor::TypeOnceInit;
std::
call_once<void(*)(google::protobuf::FieldDescriptor_const*),google::protobuf::FieldDescriptor_const*>
(*(once_flag **)(in_RCX + 0x18),(_func_void_FieldDescriptor_ptr *)&local_30,&local_38)
;
}
if (*(int *)(FieldDescriptor::kTypeToCppTypeMap + (ulong)(byte)in_RCX[2] * 4) != 9) {
(anonymous_namespace)::ReportReflectionUsageTypeError(*(int8 *)param_2);
}
if (((byte)in_RCX[1] & 8) != 0) {
puVar4 = (ulong *)internal::ExtensionSet::GetString
((ExtensionSet *)(in_RDX + (ulong)*(uint *)(param_2 + 0x28)),
*(int *)(in_RCX + 4),*(string **)(in_RCX + 0x40));
goto LAB_00168e48;
}
lVar1 = *(long *)(in_RCX + 0x28);
if ((lVar1 == 0 || ((byte)in_RCX[1] & 0x10) == 0) ||
(((*(int *)(lVar1 + 4) == 1 && ((*(byte *)(*(long *)(lVar1 + 0x20) + 1) & 2) != 0)) ||
(*(int *)(in_RDX + (ulong)(uint)((int)((ulong)(lVar1 - *(long *)(*(long *)(lVar1 + 0x10) +
0x30)) >> 3) * 0x33333334 +
*(int *)(param_2 + 0x2c))) == *(int *)(in_RCX + 4))))) {
cVar2 = internal::ReflectionSchema::IsFieldInlined((ReflectionSchema *)(param_2 + 8),in_RCX);
uVar3 = internal::ReflectionSchema::GetFieldOffset((ReflectionSchema *)(param_2 + 8),in_RCX);
puVar4 = (ulong *)(in_RDX + (ulong)uVar3);
if (cVar2 != '\0') goto LAB_00168e48;
if ((*puVar4 & 3) != 0) {
puVar4 = (ulong *)(*puVar4 & 0xfffffffffffffffc);
goto LAB_00168e48;
}
}
puVar4 = *(ulong **)(in_RCX + 0x40);
LAB_00168e48:
*(Message **)param_1 = param_1 + 0x10;
std::__cxx11::string::_M_construct<char*>(param_1,*puVar4,puVar4[1] + *puVar4);
return param_1;
}
|
|
58,081
|
my_mb_wc_euc_kr
|
eloqsql/strings/ctype-euc_kr.c
|
static int
my_mb_wc_euc_kr(CHARSET_INFO *cs __attribute__((unused)),
my_wc_t *pwc, const uchar *s, const uchar *e)
{
int hi;
if (s >= e)
return MY_CS_TOOSMALL;
if ((hi= s[0]) < 0x80)
{
pwc[0]=hi;
return 1;
}
if (s+2>e)
return MY_CS_TOOSMALL2;
if (!IS_MB2_CHAR(hi, s[1]))
return MY_CS_ILSEQ;
if (!(pwc[0]=func_ksc5601_uni_onechar((hi<<8)+s[1])))
return -2;
return 2;
}
|
O0
|
c
|
my_mb_wc_euc_kr:
pushq %rbp
movq %rsp, %rbp
subq $0x30, %rsp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movq %rdx, -0x20(%rbp)
movq %rcx, -0x28(%rbp)
movq -0x20(%rbp), %rax
cmpq -0x28(%rbp), %rax
jb 0x4918e
movl $0xffffff9b, -0x4(%rbp) # imm = 0xFFFFFF9B
jmp 0x4927b
movq -0x20(%rbp), %rax
movzbl (%rax), %eax
movl %eax, -0x2c(%rbp)
cmpl $0x80, %eax
jge 0x491b6
movslq -0x2c(%rbp), %rcx
movq -0x18(%rbp), %rax
movq %rcx, (%rax)
movl $0x1, -0x4(%rbp)
jmp 0x4927b
movq -0x20(%rbp), %rax
addq $0x2, %rax
cmpq -0x28(%rbp), %rax
jbe 0x491d0
movl $0xffffff9a, -0x4(%rbp) # imm = 0xFFFFFF9A
jmp 0x4927b
movl -0x2c(%rbp), %eax
movzbl %al, %ecx
movl $0x81, %eax
cmpl %ecx, %eax
jg 0x4923e
movl -0x2c(%rbp), %eax
movzbl %al, %eax
cmpl $0xfe, %eax
jg 0x4923e
movq -0x20(%rbp), %rax
movzbl 0x1(%rax), %eax
cmpl $0x41, %eax
jl 0x49206
movq -0x20(%rbp), %rax
movzbl 0x1(%rax), %eax
cmpl $0x5a, %eax
jle 0x49247
movq -0x20(%rbp), %rax
movzbl 0x1(%rax), %eax
cmpl $0x61, %eax
jl 0x49220
movq -0x20(%rbp), %rax
movzbl 0x1(%rax), %eax
cmpl $0x7a, %eax
jle 0x49247
movq -0x20(%rbp), %rax
movzbl 0x1(%rax), %eax
cmpl $0x81, %eax
jl 0x4923e
movq -0x20(%rbp), %rax
movzbl 0x1(%rax), %eax
cmpl $0xfe, %eax
jle 0x49247
movl $0x0, -0x4(%rbp)
jmp 0x4927b
movl -0x2c(%rbp), %edi
shll $0x8, %edi
movq -0x20(%rbp), %rax
movzbl 0x1(%rax), %eax
addl %eax, %edi
callq 0x495f0
cltq
movq -0x18(%rbp), %rcx
movq %rax, (%rcx)
cmpq $0x0, %rax
jne 0x49274
movl $0xfffffffe, -0x4(%rbp) # imm = 0xFFFFFFFE
jmp 0x4927b
movl $0x2, -0x4(%rbp)
movl -0x4(%rbp), %eax
addq $0x30, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
|
my_mb_wc_euc_kr:
push rbp
mov rbp, rsp
sub rsp, 30h
mov [rbp+var_10], rdi
mov [rbp+var_18], rsi
mov [rbp+var_20], rdx
mov [rbp+var_28], rcx
mov rax, [rbp+var_20]
cmp rax, [rbp+var_28]
jb short loc_4918E
mov [rbp+var_4], 0FFFFFF9Bh
jmp loc_4927B
loc_4918E:
mov rax, [rbp+var_20]
movzx eax, byte ptr [rax]
mov [rbp+var_2C], eax
cmp eax, 80h
jge short loc_491B6
movsxd rcx, [rbp+var_2C]
mov rax, [rbp+var_18]
mov [rax], rcx
mov [rbp+var_4], 1
jmp loc_4927B
loc_491B6:
mov rax, [rbp+var_20]
add rax, 2
cmp rax, [rbp+var_28]
jbe short loc_491D0
mov [rbp+var_4], 0FFFFFF9Ah
jmp loc_4927B
loc_491D0:
mov eax, [rbp+var_2C]
movzx ecx, al
mov eax, 81h
cmp eax, ecx
jg short loc_4923E
mov eax, [rbp+var_2C]
movzx eax, al
cmp eax, 0FEh
jg short loc_4923E
mov rax, [rbp+var_20]
movzx eax, byte ptr [rax+1]
cmp eax, 41h ; 'A'
jl short loc_49206
mov rax, [rbp+var_20]
movzx eax, byte ptr [rax+1]
cmp eax, 5Ah ; 'Z'
jle short loc_49247
loc_49206:
mov rax, [rbp+var_20]
movzx eax, byte ptr [rax+1]
cmp eax, 61h ; 'a'
jl short loc_49220
mov rax, [rbp+var_20]
movzx eax, byte ptr [rax+1]
cmp eax, 7Ah ; 'z'
jle short loc_49247
loc_49220:
mov rax, [rbp+var_20]
movzx eax, byte ptr [rax+1]
cmp eax, 81h
jl short loc_4923E
mov rax, [rbp+var_20]
movzx eax, byte ptr [rax+1]
cmp eax, 0FEh
jle short loc_49247
loc_4923E:
mov [rbp+var_4], 0
jmp short loc_4927B
loc_49247:
mov edi, [rbp+var_2C]
shl edi, 8
mov rax, [rbp+var_20]
movzx eax, byte ptr [rax+1]
add edi, eax
call func_ksc5601_uni_onechar
cdqe
mov rcx, [rbp+var_18]
mov [rcx], rax
cmp rax, 0
jnz short loc_49274
mov [rbp+var_4], 0FFFFFFFEh
jmp short loc_4927B
loc_49274:
mov [rbp+var_4], 2
loc_4927B:
mov eax, [rbp+var_4]
add rsp, 30h
pop rbp
retn
|
long long my_mb_wc_euc_kr(long long a1, _QWORD *a2, unsigned __int8 *a3, unsigned long long a4)
{
int v4; // eax
unsigned int v6; // [rsp+4h] [rbp-2Ch]
if ( (unsigned long long)a3 < a4 )
{
v6 = *a3;
if ( v6 >= 0x80 )
{
if ( (unsigned long long)(a3 + 2) <= a4 )
{
if ( (unsigned __int8)v6 < 0x81u
|| (unsigned __int8)v6 == 255
|| (a3[1] < 0x41u || a3[1] > 0x5Au) && (a3[1] < 0x61u || a3[1] > 0x7Au) && (a3[1] < 0x81u || a3[1] == 255) )
{
return 0;
}
else
{
v4 = func_ksc5601_uni_onechar(a3[1] + (v6 << 8));
*a2 = v4;
if ( v4 )
return 2;
else
return (unsigned int)-2;
}
}
else
{
return (unsigned int)-102;
}
}
else
{
*a2 = *a3;
return 1;
}
}
else
{
return (unsigned int)-101;
}
}
|
my_mb_wc_euc_kr:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x30
MOV qword ptr [RBP + -0x10],RDI
MOV qword ptr [RBP + -0x18],RSI
MOV qword ptr [RBP + -0x20],RDX
MOV qword ptr [RBP + -0x28],RCX
MOV RAX,qword ptr [RBP + -0x20]
CMP RAX,qword ptr [RBP + -0x28]
JC 0x0014918e
MOV dword ptr [RBP + -0x4],0xffffff9b
JMP 0x0014927b
LAB_0014918e:
MOV RAX,qword ptr [RBP + -0x20]
MOVZX EAX,byte ptr [RAX]
MOV dword ptr [RBP + -0x2c],EAX
CMP EAX,0x80
JGE 0x001491b6
MOVSXD RCX,dword ptr [RBP + -0x2c]
MOV RAX,qword ptr [RBP + -0x18]
MOV qword ptr [RAX],RCX
MOV dword ptr [RBP + -0x4],0x1
JMP 0x0014927b
LAB_001491b6:
MOV RAX,qword ptr [RBP + -0x20]
ADD RAX,0x2
CMP RAX,qword ptr [RBP + -0x28]
JBE 0x001491d0
MOV dword ptr [RBP + -0x4],0xffffff9a
JMP 0x0014927b
LAB_001491d0:
MOV EAX,dword ptr [RBP + -0x2c]
MOVZX ECX,AL
MOV EAX,0x81
CMP EAX,ECX
JG 0x0014923e
MOV EAX,dword ptr [RBP + -0x2c]
MOVZX EAX,AL
CMP EAX,0xfe
JG 0x0014923e
MOV RAX,qword ptr [RBP + -0x20]
MOVZX EAX,byte ptr [RAX + 0x1]
CMP EAX,0x41
JL 0x00149206
MOV RAX,qword ptr [RBP + -0x20]
MOVZX EAX,byte ptr [RAX + 0x1]
CMP EAX,0x5a
JLE 0x00149247
LAB_00149206:
MOV RAX,qword ptr [RBP + -0x20]
MOVZX EAX,byte ptr [RAX + 0x1]
CMP EAX,0x61
JL 0x00149220
MOV RAX,qword ptr [RBP + -0x20]
MOVZX EAX,byte ptr [RAX + 0x1]
CMP EAX,0x7a
JLE 0x00149247
LAB_00149220:
MOV RAX,qword ptr [RBP + -0x20]
MOVZX EAX,byte ptr [RAX + 0x1]
CMP EAX,0x81
JL 0x0014923e
MOV RAX,qword ptr [RBP + -0x20]
MOVZX EAX,byte ptr [RAX + 0x1]
CMP EAX,0xfe
JLE 0x00149247
LAB_0014923e:
MOV dword ptr [RBP + -0x4],0x0
JMP 0x0014927b
LAB_00149247:
MOV EDI,dword ptr [RBP + -0x2c]
SHL EDI,0x8
MOV RAX,qword ptr [RBP + -0x20]
MOVZX EAX,byte ptr [RAX + 0x1]
ADD EDI,EAX
CALL 0x001495f0
CDQE
MOV RCX,qword ptr [RBP + -0x18]
MOV qword ptr [RCX],RAX
CMP RAX,0x0
JNZ 0x00149274
MOV dword ptr [RBP + -0x4],0xfffffffe
JMP 0x0014927b
LAB_00149274:
MOV dword ptr [RBP + -0x4],0x2
LAB_0014927b:
MOV EAX,dword ptr [RBP + -0x4]
ADD RSP,0x30
POP RBP
RET
|
int4 my_mb_wc_euc_kr(int8 param_1,long *param_2,byte *param_3,byte *param_4)
{
uint uVar1;
int iVar2;
int4 local_c;
if (param_3 < param_4) {
uVar1 = (uint)*param_3;
if (uVar1 < 0x80) {
*param_2 = (long)(int)uVar1;
local_c = 1;
}
else if (param_4 < param_3 + 2) {
local_c = 0xffffff9a;
}
else if (((uVar1 < 0x81) || (0xfe < uVar1)) ||
((((param_3[1] < 0x41 || (0x5a < param_3[1])) &&
((param_3[1] < 0x61 || (0x7a < param_3[1])))) &&
((param_3[1] < 0x81 || (param_3[1] == 0xff)))))) {
local_c = 0;
}
else {
iVar2 = func_ksc5601_uni_onechar(uVar1 * 0x100 + (uint)param_3[1]);
*param_2 = (long)iVar2;
if ((long)iVar2 == 0) {
local_c = 0xfffffffe;
}
else {
local_c = 2;
}
}
}
else {
local_c = 0xffffff9b;
}
return local_c;
}
|
|
58,082
|
my_mb_wc_euc_kr
|
eloqsql/strings/ctype-euc_kr.c
|
static int
my_mb_wc_euc_kr(CHARSET_INFO *cs __attribute__((unused)),
my_wc_t *pwc, const uchar *s, const uchar *e)
{
int hi;
if (s >= e)
return MY_CS_TOOSMALL;
if ((hi= s[0]) < 0x80)
{
pwc[0]=hi;
return 1;
}
if (s+2>e)
return MY_CS_TOOSMALL2;
if (!IS_MB2_CHAR(hi, s[1]))
return MY_CS_ILSEQ;
if (!(pwc[0]=func_ksc5601_uni_onechar((hi<<8)+s[1])))
return -2;
return 2;
}
|
O3
|
c
|
my_mb_wc_euc_kr:
movl $0xffffff9b, %eax # imm = 0xFFFFFF9B
cmpq %rcx, %rdx
jae 0x3a501
movsbq (%rdx), %rdi
testq %rdi, %rdi
js 0x3a4c0
movq %rdi, (%rsi)
movl $0x1, %eax
retq
leaq 0x2(%rdx), %r8
movl $0xffffff9a, %eax # imm = 0xFFFFFF9A
cmpq %rcx, %r8
ja 0x3a501
movzbl %dil, %ecx
xorl %eax, %eax
cmpl $0x80, %ecx
je 0x3a501
cmpl $0xff, %ecx
je 0x3a501
movzbl 0x1(%rdx), %edx
leal 0x1(%rdx), %edi
cmpb $-0x7f, %dil
ja 0x3a502
movl %edx, %edi
andb $-0x21, %dil
addb $-0x5b, %dil
cmpb $-0x1a, %dil
jae 0x3a502
retq
pushq %rbp
movq %rsp, %rbp
shll $0x8, %ecx
leal (%rcx,%rdx), %eax
addl $0xffff7ebf, %eax # imm = 0xFFFF7EBF
cmpl $0x47bd, %eax # imm = 0x47BD
ja 0x3a523
movl %eax, %eax
leaq 0x873ff(%rip), %rcx # 0xc1920
jmp 0x3a53c
orl %edx, %ecx
addl $0xffff355f, %ecx # imm = 0xFFFF355F
cmpl $0x335e, %ecx # imm = 0x335E
jae 0x3a555
movl %ecx, %eax
leaq 0x90364(%rip), %rcx # 0xca8a0
leaq (%rcx,%rax,2), %rax
movzwl (%rax), %eax
movzwl %ax, %ecx
movq %rcx, (%rsi)
movl $0x2, %eax
testw %cx, %cx
jne 0x3a561
jmp 0x3a55c
movq $0x0, (%rsi)
movl $0xfffffffe, %eax # imm = 0xFFFFFFFE
popq %rbp
retq
|
my_mb_wc_euc_kr:
mov eax, 0FFFFFF9Bh
cmp rdx, rcx
jnb short locret_3A501
movsx rdi, byte ptr [rdx]
test rdi, rdi
js short loc_3A4C0
mov [rsi], rdi
mov eax, 1
retn
loc_3A4C0:
lea r8, [rdx+2]
mov eax, 0FFFFFF9Ah
cmp r8, rcx
ja short locret_3A501
movzx ecx, dil
xor eax, eax
cmp ecx, 80h
jz short locret_3A501
cmp ecx, 0FFh
jz short locret_3A501
movzx edx, byte ptr [rdx+1]
lea edi, [rdx+1]
cmp dil, 81h
ja short loc_3A502
mov edi, edx
and dil, 0DFh
add dil, 0A5h
cmp dil, 0E6h
jnb short loc_3A502
locret_3A501:
retn
loc_3A502:
push rbp
mov rbp, rsp
shl ecx, 8
lea eax, [rcx+rdx]
add eax, 0FFFF7EBFh
cmp eax, 47BDh
ja short loc_3A523
mov eax, eax
lea rcx, tab_ksc5601_uni0
jmp short loc_3A53C
loc_3A523:
or ecx, edx
add ecx, 0FFFF355Fh
cmp ecx, 335Eh
jnb short loc_3A555
mov eax, ecx
lea rcx, tab_ksc5601_uni1
loc_3A53C:
lea rax, [rcx+rax*2]
movzx eax, word ptr [rax]
movzx ecx, ax
mov [rsi], rcx
mov eax, 2
test cx, cx
jnz short loc_3A561
jmp short loc_3A55C
loc_3A555:
mov qword ptr [rsi], 0
loc_3A55C:
mov eax, 0FFFFFFFEh
loc_3A561:
pop rbp
retn
|
long long my_mb_wc_euc_kr(long long a1, long long *a2, char *a3, unsigned long long a4)
{
long long result; // rax
long long v5; // rdi
int v6; // edx
int v7; // ecx
long long v8; // rax
unsigned __int16 *v9; // rcx
unsigned int v10; // ecx
long long v11; // rcx
result = 4294967195LL;
if ( (unsigned long long)a3 < a4 )
{
v5 = *a3;
if ( v5 >= 0 )
{
*a2 = v5;
return 1LL;
}
result = 4294967194LL;
if ( (unsigned long long)(a3 + 2) <= a4 )
{
result = 0LL;
if ( (unsigned __int8)v5 != 128 && (unsigned __int8)v5 != 255 )
{
v6 = (unsigned __int8)a3[1];
if ( (unsigned __int8)(v6 + 1) > 0x81u || (unsigned __int8)((v6 & 0xDF) - 91) >= 0xE6u )
{
v7 = (unsigned __int8)v5 << 8;
LODWORD(v8) = v7 + v6 - 33089;
if ( (unsigned int)v8 > 0x47BD )
{
v10 = (v6 | v7) - 51873;
if ( v10 >= 0x335E )
{
*a2 = 0LL;
return 4294967294LL;
}
v8 = v10;
v9 = (unsigned __int16 *)&tab_ksc5601_uni1;
}
else
{
v8 = (unsigned int)v8;
v9 = (unsigned __int16 *)&tab_ksc5601_uni0;
}
v11 = v9[v8];
*a2 = v11;
result = 2LL;
if ( (_WORD)v11 )
return result;
return 4294967294LL;
}
}
}
}
return result;
}
|
my_mb_wc_euc_kr:
MOV EAX,0xffffff9b
CMP RDX,RCX
JNC 0x0013a501
MOVSX RDI,byte ptr [RDX]
TEST RDI,RDI
JS 0x0013a4c0
MOV qword ptr [RSI],RDI
MOV EAX,0x1
RET
LAB_0013a4c0:
LEA R8,[RDX + 0x2]
MOV EAX,0xffffff9a
CMP R8,RCX
JA 0x0013a501
MOVZX ECX,DIL
XOR EAX,EAX
CMP ECX,0x80
JZ 0x0013a501
CMP ECX,0xff
JZ 0x0013a501
MOVZX EDX,byte ptr [RDX + 0x1]
LEA EDI,[RDX + 0x1]
CMP DIL,0x81
JA 0x0013a502
MOV EDI,EDX
AND DIL,0xdf
ADD DIL,0xa5
CMP DIL,0xe6
JNC 0x0013a502
LAB_0013a501:
RET
LAB_0013a502:
PUSH RBP
MOV RBP,RSP
SHL ECX,0x8
LEA EAX,[RCX + RDX*0x1]
ADD EAX,0xffff7ebf
CMP EAX,0x47bd
JA 0x0013a523
MOV EAX,EAX
LEA RCX,[0x1c1920]
JMP 0x0013a53c
LAB_0013a523:
OR ECX,EDX
ADD ECX,0xffff355f
CMP ECX,0x335e
JNC 0x0013a555
MOV EAX,ECX
LEA RCX,[0x1ca8a0]
LAB_0013a53c:
LEA RAX,[RCX + RAX*0x2]
MOVZX EAX,word ptr [RAX]
MOVZX ECX,AX
MOV qword ptr [RSI],RCX
MOV EAX,0x2
TEST CX,CX
JNZ 0x0013a561
JMP 0x0013a55c
LAB_0013a555:
MOV qword ptr [RSI],0x0
LAB_0013a55c:
MOV EAX,0xfffffffe
LAB_0013a561:
POP RBP
RET
|
int8 my_mb_wc_euc_kr(int8 param_1,ulong *param_2,byte *param_3,byte *param_4)
{
byte bVar1;
byte bVar2;
ushort uVar3;
uint uVar4;
int1 *puVar5;
if (param_4 <= param_3) {
return 0xffffff9b;
}
bVar1 = *param_3;
if (-1 < (long)(char)bVar1) {
*param_2 = (long)(char)bVar1;
return 1;
}
if (param_4 < param_3 + 2) {
return 0xffffff9a;
}
if (bVar1 == 0x80) {
return 0;
}
if (bVar1 == 0xff) {
return 0;
}
bVar2 = param_3[1];
if (((byte)(bVar2 + 1) < 0x82) && ((byte)((bVar2 & 0xdf) + 0xa5) < 0xe6)) {
return 0;
}
uVar4 = ((uint)bVar1 * 0x100 + (uint)bVar2) - 0x8141;
if (uVar4 < 0x47be) {
puVar5 = tab_ksc5601_uni0;
}
else {
uVar4 = CONCAT11(bVar1,bVar2) - 0xcaa1;
if (0x335d < uVar4) {
*param_2 = 0;
return 0xfffffffe;
}
puVar5 = tab_ksc5601_uni1;
}
uVar3 = *(ushort *)(puVar5 + (ulong)uVar4 * 2);
*param_2 = (ulong)uVar3;
if (uVar3 == 0) {
return 0xfffffffe;
}
return 2;
}
|
|
58,083
|
my_rw_tryrdlock
|
eloqsql/mysys/thr_rwlock.c
|
int my_rw_tryrdlock(my_rw_lock_t *rwp)
{
int res;
pthread_mutex_lock(&rwp->lock);
if ((rwp->state < 0 ) || rwp->waiters)
res= EBUSY; /* Can't get lock */
else
{
res=0;
rwp->state++;
}
pthread_mutex_unlock(&rwp->lock);
return(res);
}
|
O3
|
c
|
my_rw_tryrdlock:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
movq %rdi, %rbx
callq 0x244c0
movl 0x88(%rbx), %eax
movl $0x10, %r14d
testl %eax, %eax
js 0x2933d
cmpl $0x0, 0x8c(%rbx)
jne 0x2933d
incl %eax
movl %eax, 0x88(%rbx)
xorl %r14d, %r14d
movq %rbx, %rdi
callq 0x24210
movl %r14d, %eax
popq %rbx
popq %r14
popq %rbp
retq
|
my_rw_tryrdlock:
push rbp
mov rbp, rsp
push r14
push rbx
mov rbx, rdi
call _pthread_mutex_lock
mov eax, [rbx+88h]
mov r14d, 10h
test eax, eax
js short loc_2933D
cmp dword ptr [rbx+8Ch], 0
jnz short loc_2933D
inc eax
mov [rbx+88h], eax
xor r14d, r14d
loc_2933D:
mov rdi, rbx
call _pthread_mutex_unlock
mov eax, r14d
pop rbx
pop r14
pop rbp
retn
|
long long my_rw_tryrdlock(long long a1)
{
int v1; // eax
unsigned int v2; // r14d
pthread_mutex_lock(a1);
v1 = *(_DWORD *)(a1 + 136);
v2 = 16;
if ( v1 >= 0 && !*(_DWORD *)(a1 + 140) )
{
*(_DWORD *)(a1 + 136) = v1 + 1;
v2 = 0;
}
pthread_mutex_unlock(a1);
return v2;
}
|
my_rw_tryrdlock:
PUSH RBP
MOV RBP,RSP
PUSH R14
PUSH RBX
MOV RBX,RDI
CALL 0x001244c0
MOV EAX,dword ptr [RBX + 0x88]
MOV R14D,0x10
TEST EAX,EAX
JS 0x0012933d
CMP dword ptr [RBX + 0x8c],0x0
JNZ 0x0012933d
INC EAX
MOV dword ptr [RBX + 0x88],EAX
XOR R14D,R14D
LAB_0012933d:
MOV RDI,RBX
CALL 0x00124210
MOV EAX,R14D
POP RBX
POP R14
POP RBP
RET
|
int8 my_rw_tryrdlock(pthread_mutex_t *param_1)
{
int8 uVar1;
pthread_mutex_lock(param_1);
uVar1 = 0x10;
if ((-1 < *(int *)((long)param_1 + 0x88)) && (*(int *)((long)param_1 + 0x8c) == 0)) {
*(int *)((long)param_1 + 0x88) = *(int *)((long)param_1 + 0x88) + 1;
uVar1 = 0;
}
pthread_mutex_unlock(param_1);
return uVar1;
}
|
|
58,084
|
void ImPlot3D::PlotLineEx<ImPlot3D::GetterXYZ<ImPlot3D::IndexerIdx<signed char>, ImPlot3D::IndexerIdx<signed char>, ImPlot3D::IndexerIdx<signed char>>>(char const*, ImPlot3D::GetterXYZ<ImPlot3D::IndexerIdx<signed char>, ImPlot3D::IndexerIdx<signed char>, ImPlot3D::IndexerIdx<signed char>> const&, int)
|
zkingston[P]unknot/build_O0/_deps/implot3d-src/implot3d_items.cpp
|
void PlotLineEx(const char* label_id, const _Getter& getter, ImPlot3DLineFlags flags) {
if (BeginItemEx(label_id, getter, flags, ImPlot3DCol_Line)) {
const ImPlot3DNextItemData& n = GetItemData();
if (getter.Count >= 2 && n.RenderLine) {
const ImU32 col_line = ImGui::GetColorU32(n.Colors[ImPlot3DCol_Line]);
if (ImHasFlag(flags, ImPlot3DLineFlags_Segments)) {
RenderPrimitives<RendererLineSegments>(getter, col_line, n.LineWeight);
} else if (ImHasFlag(flags, ImPlot3DLineFlags_Loop)) {
if (ImHasFlag(flags, ImPlot3DLineFlags_SkipNaN))
RenderPrimitives<RendererLineStripSkip>(GetterLoop<_Getter>(getter), col_line, n.LineWeight);
else
RenderPrimitives<RendererLineStrip>(GetterLoop<_Getter>(getter), col_line, n.LineWeight);
} else {
if (ImHasFlag(flags, ImPlot3DLineFlags_SkipNaN))
RenderPrimitives<RendererLineStripSkip>(getter, col_line, n.LineWeight);
else
RenderPrimitives<RendererLineStrip>(getter, col_line, n.LineWeight);
}
}
// Render markers
if (n.Marker != ImPlot3DMarker_None) {
const ImU32 col_line = ImGui::GetColorU32(n.Colors[ImPlot3DCol_MarkerOutline]);
const ImU32 col_fill = ImGui::GetColorU32(n.Colors[ImPlot3DCol_MarkerFill]);
RenderMarkers<_Getter>(getter, n.Marker, n.MarkerSize, n.RenderMarkerFill, col_fill, n.RenderMarkerLine, col_line, n.MarkerWeight);
}
EndItem();
}
}
|
O0
|
cpp
|
void ImPlot3D::PlotLineEx<ImPlot3D::GetterXYZ<ImPlot3D::IndexerIdx<signed char>, ImPlot3D::IndexerIdx<signed char>, ImPlot3D::IndexerIdx<signed char>>>(char const*, ImPlot3D::GetterXYZ<ImPlot3D::IndexerIdx<signed char>, ImPlot3D::IndexerIdx<signed char>, ImPlot3D::IndexerIdx<signed char>> const&, int):
subq $0x1d8, %rsp # imm = 0x1D8
movq %rdi, 0x1d0(%rsp)
movq %rsi, 0x1c8(%rsp)
movl %edx, 0x1c4(%rsp)
movq 0x1d0(%rsp), %rdi
movq 0x1c8(%rsp), %rsi
movl 0x1c4(%rsp), %edx
xorl %ecx, %ecx
callq 0xf7a20
testb $0x1, %al
jne 0xe19a5
jmp 0xe1c62
callq 0xd7150
movq %rax, 0x1b8(%rsp)
movq 0x1c8(%rsp), %rax
cmpl $0x2, 0x48(%rax)
jl 0xe1bc3
movq 0x1b8(%rsp), %rax
testb $0x1, 0x54(%rax)
je 0xe1bc3
movq 0x1b8(%rsp), %rdi
callq 0x4f6eb0
movl %eax, 0x1b4(%rsp)
movl 0x1c4(%rsp), %edi
movl $0x400, %esi # imm = 0x400
callq 0xde2b0
testb $0x1, %al
jne 0xe1a01
jmp 0xe1a27
movq 0x1c8(%rsp), %rdi
movl 0x1b4(%rsp), %esi
movq 0x1b8(%rsp), %rax
movss 0x40(%rax), %xmm0
callq 0x1280c0
jmp 0xe1bc1
movl 0x1c4(%rsp), %edi
movl $0x800, %esi # imm = 0x800
callq 0xde2b0
testb $0x1, %al
jne 0xe1a41
jmp 0xe1b62
movl 0x1c4(%rsp), %edi
movl $0x1000, %esi # imm = 0x1000
callq 0xde2b0
testb $0x1, %al
jne 0xe1a5b
jmp 0xe1ae3
movq 0x1c8(%rsp), %rsi
leaq 0x108(%rsp), %rdi
movl $0x50, %edx
callq 0x129b0
movups 0x148(%rsp), %xmm0
movq %rsp, %rax
movups %xmm0, 0x40(%rax)
movups 0x108(%rsp), %xmm0
movups 0x118(%rsp), %xmm1
movups 0x128(%rsp), %xmm2
movups 0x138(%rsp), %xmm3
movups %xmm3, 0x30(%rax)
movups %xmm2, 0x20(%rax)
movups %xmm1, 0x10(%rax)
movups %xmm0, (%rax)
leaq 0x158(%rsp), %rdi
callq 0x12a5c0
movl 0x1b4(%rsp), %esi
movq 0x1b8(%rsp), %rax
movss 0x40(%rax), %xmm0
leaq 0x158(%rsp), %rdi
callq 0x1295b0
jmp 0xe1b60
movq 0x1c8(%rsp), %rsi
leaq 0x60(%rsp), %rdi
movl $0x50, %edx
callq 0x129b0
movups 0xa0(%rsp), %xmm0
movq %rsp, %rax
movups %xmm0, 0x40(%rax)
movups 0x60(%rsp), %xmm0
movups 0x70(%rsp), %xmm1
movups 0x80(%rsp), %xmm2
movups 0x90(%rsp), %xmm3
movups %xmm3, 0x30(%rax)
movups %xmm2, 0x20(%rax)
movups %xmm1, 0x10(%rax)
movups %xmm0, (%rax)
leaq 0xb0(%rsp), %rdi
callq 0x12a5c0
movl 0x1b4(%rsp), %esi
movq 0x1b8(%rsp), %rax
movss 0x40(%rax), %xmm0
leaq 0xb0(%rsp), %rdi
callq 0x12a600
jmp 0xe1bbf
movl 0x1c4(%rsp), %edi
movl $0x1000, %esi # imm = 0x1000
callq 0xde2b0
testb $0x1, %al
jne 0xe1b79
jmp 0xe1b9c
movq 0x1c8(%rsp), %rdi
movl 0x1b4(%rsp), %esi
movq 0x1b8(%rsp), %rax
movss 0x40(%rax), %xmm0
callq 0x12b550
jmp 0xe1bbd
movq 0x1c8(%rsp), %rdi
movl 0x1b4(%rsp), %esi
movq 0x1b8(%rsp), %rax
movss 0x40(%rax), %xmm0
callq 0x12c4d0
jmp 0xe1bbf
jmp 0xe1bc1
jmp 0xe1bc3
movq 0x1b8(%rsp), %rax
cmpl $-0x1, 0x44(%rax)
je 0xe1c5d
movq 0x1b8(%rsp), %rdi
addq $0x20, %rdi
callq 0x4f6eb0
movl %eax, 0x5c(%rsp)
movq 0x1b8(%rsp), %rdi
addq $0x30, %rdi
callq 0x4f6eb0
movl %eax, 0x58(%rsp)
movq 0x1c8(%rsp), %rdi
movq 0x1b8(%rsp), %rax
movl 0x44(%rax), %esi
movq 0x1b8(%rsp), %rax
movss 0x48(%rax), %xmm0
movq 0x1b8(%rsp), %rax
movb 0x57(%rax), %dl
movl 0x58(%rsp), %ecx
movq 0x1b8(%rsp), %rax
movb 0x56(%rax), %al
movl 0x5c(%rsp), %r9d
movq 0x1b8(%rsp), %r8
movss 0x4c(%r8), %xmm1
andb $0x1, %dl
andb $0x1, %al
movzbl %dl, %edx
movzbl %al, %r8d
callq 0xf8090
callq 0xdda10
addq $0x1d8, %rsp # imm = 0x1D8
retq
nopw (%rax,%rax)
|
_ZN8ImPlot3D10PlotLineExINS_9GetterXYZINS_10IndexerIdxIjEES3_S3_EEEEvPKcRKT_i:
sub rsp, 1D8h
mov [rsp+1D8h+var_8], rdi
mov [rsp+1D8h+var_10], rsi
mov [rsp+1D8h+var_14], edx
mov rdi, [rsp+1D8h+var_8]; this
mov rsi, [rsp+1D8h+var_10]; ImVec4 *
mov edx, [rsp+1D8h+var_14]
xor ecx, ecx
call _ZN8ImPlot3D11BeginItemExINS_9GetterXYZINS_10IndexerIdxIjEES3_S3_EEEEbPKcRKT_ii; ImPlot3D::BeginItemEx<ImPlot3D::GetterXYZ<ImPlot3D::IndexerIdx<uint>,ImPlot3D::IndexerIdx<uint>,ImPlot3D::IndexerIdx<uint>>>(char const*,ImPlot3D::GetterXYZ<ImPlot3D::IndexerIdx<uint>,ImPlot3D::IndexerIdx<uint>,ImPlot3D::IndexerIdx<uint>> const&,int,int)
test al, 1
jnz short loc_E19A5
jmp loc_E1C62
loc_E19A5:
call _ZN8ImPlot3D11GetItemDataEv; ImPlot3D::GetItemData(void)
mov [rsp+1D8h+var_20], rax
mov rax, [rsp+1D8h+var_10]
cmp dword ptr [rax+48h], 2
jl loc_E1BC3
mov rax, [rsp+1D8h+var_20]
test byte ptr [rax+54h], 1
jz loc_E1BC3
mov rdi, [rsp+1D8h+var_20]; this
call _ZN5ImGui11GetColorU32ERK6ImVec4; ImGui::GetColorU32(ImVec4 const&)
mov [rsp+1D8h+var_24], eax
mov edi, [rsp+1D8h+var_14]
mov esi, 400h
call _ZN8ImPlot3DL9ImHasFlagIi18ImPlot3DLineFlags_EEbT_T0_; ImPlot3D::ImHasFlag<int,ImPlot3DLineFlags_>(int,ImPlot3DLineFlags_)
test al, 1
jnz short loc_E1A01
jmp short loc_E1A27
loc_E1A01:
mov rdi, [rsp+1D8h+var_10]
mov esi, [rsp+1D8h+var_24]
mov rax, [rsp+1D8h+var_20]
movss xmm0, dword ptr [rax+40h]
call _ZN8ImPlot3D16RenderPrimitivesINS_20RendererLineSegmentsENS_9GetterXYZINS_10IndexerIdxIjEES4_S4_EEJjfEEEvRKT0_DpT1_; ImPlot3D::RenderPrimitives<ImPlot3D::RendererLineSegments,ImPlot3D::GetterXYZ<ImPlot3D::IndexerIdx<uint>,ImPlot3D::IndexerIdx<uint>,ImPlot3D::IndexerIdx<uint>>,uint,float>(ImPlot3D::GetterXYZ<ImPlot3D::IndexerIdx<uint>,ImPlot3D::IndexerIdx<uint>,ImPlot3D::IndexerIdx<uint>> const&,uint,float)
jmp loc_E1BC1
loc_E1A27:
mov edi, [rsp+1D8h+var_14]
mov esi, 800h
call _ZN8ImPlot3DL9ImHasFlagIi18ImPlot3DLineFlags_EEbT_T0_; ImPlot3D::ImHasFlag<int,ImPlot3DLineFlags_>(int,ImPlot3DLineFlags_)
test al, 1
jnz short loc_E1A41
jmp loc_E1B62
loc_E1A41:
mov edi, [rsp+1D8h+var_14]
mov esi, 1000h
call _ZN8ImPlot3DL9ImHasFlagIi18ImPlot3DLineFlags_EEbT_T0_; ImPlot3D::ImHasFlag<int,ImPlot3DLineFlags_>(int,ImPlot3DLineFlags_)
test al, 1
jnz short loc_E1A5B
jmp loc_E1AE3
loc_E1A5B:
mov rsi, [rsp+1D8h+var_10]
lea rdi, [rsp+1D8h+var_D0]
mov edx, 50h ; 'P'
call _memcpy
movups xmm0, [rsp+1D8h+var_90]
mov rax, rsp
movups xmmword ptr [rax+40h], xmm0
movups xmm0, [rsp+1D8h+var_D0]
movups xmm1, [rsp+1D8h+var_C0]
movups xmm2, [rsp+1D8h+var_B0]
movups xmm3, [rsp+1D8h+var_A0]
movups xmmword ptr [rax+30h], xmm3
movups xmmword ptr [rax+20h], xmm2
movups xmmword ptr [rax+10h], xmm1
movups xmmword ptr [rax], xmm0
lea rdi, [rsp+1D8h+var_80]
call _ZN8ImPlot3D10GetterLoopINS_9GetterXYZINS_10IndexerIdxIjEES3_S3_EEEC2ES4_; ImPlot3D::GetterLoop<ImPlot3D::GetterXYZ<ImPlot3D::IndexerIdx<uint>,ImPlot3D::IndexerIdx<uint>,ImPlot3D::IndexerIdx<uint>>>::GetterLoop(ImPlot3D::GetterXYZ<ImPlot3D::IndexerIdx<uint>,ImPlot3D::IndexerIdx<uint>,ImPlot3D::IndexerIdx<uint>>)
mov esi, [rsp+1D8h+var_24]
mov rax, [rsp+1D8h+var_20]
movss xmm0, dword ptr [rax+40h]
lea rdi, [rsp+1D8h+var_80]
call _ZN8ImPlot3D16RenderPrimitivesINS_21RendererLineStripSkipENS_10GetterLoopINS_9GetterXYZINS_10IndexerIdxIjEES5_S5_EEEEJjfEEEvRKT0_DpT1_; ImPlot3D::RenderPrimitives<ImPlot3D::RendererLineStripSkip,ImPlot3D::GetterLoop<ImPlot3D::GetterXYZ<ImPlot3D::IndexerIdx<uint>,ImPlot3D::IndexerIdx<uint>,ImPlot3D::IndexerIdx<uint>>>,uint,float>(ImPlot3D::GetterLoop<ImPlot3D::GetterXYZ<ImPlot3D::IndexerIdx<uint>,ImPlot3D::IndexerIdx<uint>,ImPlot3D::IndexerIdx<uint>>> const&,uint,float)
jmp short loc_E1B60
loc_E1AE3:
mov rsi, [rsp+1D8h+var_10]
lea rdi, [rsp+1D8h+var_178]
mov edx, 50h ; 'P'
call _memcpy
movups xmm0, [rsp+1D8h+var_138]
mov rax, rsp
movups xmmword ptr [rax+40h], xmm0
movups xmm0, [rsp+1D8h+var_178]
movups xmm1, [rsp+1D8h+var_168]
movups xmm2, [rsp+1D8h+var_158]
movups xmm3, [rsp+1D8h+var_148]
movups xmmword ptr [rax+30h], xmm3
movups xmmword ptr [rax+20h], xmm2
movups xmmword ptr [rax+10h], xmm1
movups xmmword ptr [rax], xmm0
lea rdi, [rsp+1D8h+var_128]
call _ZN8ImPlot3D10GetterLoopINS_9GetterXYZINS_10IndexerIdxIjEES3_S3_EEEC2ES4_; ImPlot3D::GetterLoop<ImPlot3D::GetterXYZ<ImPlot3D::IndexerIdx<uint>,ImPlot3D::IndexerIdx<uint>,ImPlot3D::IndexerIdx<uint>>>::GetterLoop(ImPlot3D::GetterXYZ<ImPlot3D::IndexerIdx<uint>,ImPlot3D::IndexerIdx<uint>,ImPlot3D::IndexerIdx<uint>>)
mov esi, [rsp+1D8h+var_24]
mov rax, [rsp+1D8h+var_20]
movss xmm0, dword ptr [rax+40h]
lea rdi, [rsp+1D8h+var_128]
call _ZN8ImPlot3D16RenderPrimitivesINS_17RendererLineStripENS_10GetterLoopINS_9GetterXYZINS_10IndexerIdxIjEES5_S5_EEEEJjfEEEvRKT0_DpT1_; ImPlot3D::RenderPrimitives<ImPlot3D::RendererLineStrip,ImPlot3D::GetterLoop<ImPlot3D::GetterXYZ<ImPlot3D::IndexerIdx<uint>,ImPlot3D::IndexerIdx<uint>,ImPlot3D::IndexerIdx<uint>>>,uint,float>(ImPlot3D::GetterLoop<ImPlot3D::GetterXYZ<ImPlot3D::IndexerIdx<uint>,ImPlot3D::IndexerIdx<uint>,ImPlot3D::IndexerIdx<uint>>> const&,uint,float)
loc_E1B60:
jmp short loc_E1BBF
loc_E1B62:
mov edi, [rsp+1D8h+var_14]
mov esi, 1000h
call _ZN8ImPlot3DL9ImHasFlagIi18ImPlot3DLineFlags_EEbT_T0_; ImPlot3D::ImHasFlag<int,ImPlot3DLineFlags_>(int,ImPlot3DLineFlags_)
test al, 1
jnz short loc_E1B79
jmp short loc_E1B9C
loc_E1B79:
mov rdi, [rsp+1D8h+var_10]
mov esi, [rsp+1D8h+var_24]
mov rax, [rsp+1D8h+var_20]
movss xmm0, dword ptr [rax+40h]
call _ZN8ImPlot3D16RenderPrimitivesINS_21RendererLineStripSkipENS_9GetterXYZINS_10IndexerIdxIjEES4_S4_EEJjfEEEvRKT0_DpT1_; ImPlot3D::RenderPrimitives<ImPlot3D::RendererLineStripSkip,ImPlot3D::GetterXYZ<ImPlot3D::IndexerIdx<uint>,ImPlot3D::IndexerIdx<uint>,ImPlot3D::IndexerIdx<uint>>,uint,float>(ImPlot3D::GetterXYZ<ImPlot3D::IndexerIdx<uint>,ImPlot3D::IndexerIdx<uint>,ImPlot3D::IndexerIdx<uint>> const&,uint,float)
jmp short loc_E1BBD
loc_E1B9C:
mov rdi, [rsp+1D8h+var_10]
mov esi, [rsp+1D8h+var_24]
mov rax, [rsp+1D8h+var_20]
movss xmm0, dword ptr [rax+40h]
call _ZN8ImPlot3D16RenderPrimitivesINS_17RendererLineStripENS_9GetterXYZINS_10IndexerIdxIjEES4_S4_EEJjfEEEvRKT0_DpT1_; ImPlot3D::RenderPrimitives<ImPlot3D::RendererLineStrip,ImPlot3D::GetterXYZ<ImPlot3D::IndexerIdx<uint>,ImPlot3D::IndexerIdx<uint>,ImPlot3D::IndexerIdx<uint>>,uint,float>(ImPlot3D::GetterXYZ<ImPlot3D::IndexerIdx<uint>,ImPlot3D::IndexerIdx<uint>,ImPlot3D::IndexerIdx<uint>> const&,uint,float)
loc_E1BBD:
jmp short $+2
loc_E1BBF:
jmp short $+2
loc_E1BC1:
jmp short $+2
loc_E1BC3:
mov rax, [rsp+1D8h+var_20]
cmp dword ptr [rax+44h], 0FFFFFFFFh
jz loc_E1C5D
mov rdi, [rsp+1D8h+var_20]
add rdi, 20h ; ' '; this
call _ZN5ImGui11GetColorU32ERK6ImVec4; ImGui::GetColorU32(ImVec4 const&)
mov [rsp+1D8h+var_17C], eax
mov rdi, [rsp+1D8h+var_20]
add rdi, 30h ; '0'; this
call _ZN5ImGui11GetColorU32ERK6ImVec4; ImGui::GetColorU32(ImVec4 const&)
mov [rsp+1D8h+var_180], eax
mov rdi, [rsp+1D8h+var_10]; this
mov rax, [rsp+1D8h+var_20]
mov esi, [rax+44h]
mov rax, [rsp+1D8h+var_20]
movss xmm0, dword ptr [rax+48h]
mov rax, [rsp+1D8h+var_20]
mov dl, [rax+57h]
mov ecx, [rsp+1D8h+var_180]
mov rax, [rsp+1D8h+var_20]
mov al, [rax+56h]
mov r9d, [rsp+1D8h+var_17C]
mov r8, [rsp+1D8h+var_20]
movss xmm1, dword ptr [r8+4Ch]
and dl, 1
and al, 1
movzx edx, dl
movzx r8d, al
call _ZN8ImPlot3D13RenderMarkersINS_9GetterXYZINS_10IndexerIdxIjEES3_S3_EEEEvRKT_ifbjbjf; ImPlot3D::RenderMarkers<ImPlot3D::GetterXYZ<ImPlot3D::IndexerIdx<uint>,ImPlot3D::IndexerIdx<uint>,ImPlot3D::IndexerIdx<uint>>>(ImPlot3D::GetterXYZ<ImPlot3D::IndexerIdx<uint>,ImPlot3D::IndexerIdx<uint>,ImPlot3D::IndexerIdx<uint>> const&,int,float,bool,uint,bool,uint,float)
loc_E1C5D:
call _ZN8ImPlot3D7EndItemEv; ImPlot3D::EndItem(void)
loc_E1C62:
add rsp, 1D8h
retn
|
long long ImPlot3D::PlotLineEx<ImPlot3D::GetterXYZ<ImPlot3D::IndexerIdx<unsigned int>,ImPlot3D::IndexerIdx<unsigned int>,ImPlot3D::IndexerIdx<unsigned int>>>(
ImPlot3D *a1,
ImPlot3D *a2,
unsigned int a3)
{
long long result; // rax
int v4; // esi
int v5; // edx
int v6; // ecx
int v7; // r8d
int v8; // r9d
int v9; // edx
int v10; // ecx
int v11; // r8d
int v12; // r9d
unsigned int v13; // [rsp+58h] [rbp-180h]
unsigned int v14; // [rsp+5Ch] [rbp-17Ch]
_OWORD v15[5]; // [rsp+60h] [rbp-178h] BYREF
_BYTE v16[88]; // [rsp+B0h] [rbp-128h] BYREF
_OWORD v17[5]; // [rsp+108h] [rbp-D0h] BYREF
_BYTE v18[92]; // [rsp+158h] [rbp-80h] BYREF
unsigned int ColorU32; // [rsp+1B4h] [rbp-24h]
ImGui *ItemData; // [rsp+1B8h] [rbp-20h]
unsigned int v21; // [rsp+1C4h] [rbp-14h]
ImPlot3D *v22; // [rsp+1C8h] [rbp-10h]
ImPlot3D *v23; // [rsp+1D0h] [rbp-8h]
v23 = a1;
v22 = a2;
v21 = a3;
result = ImPlot3D::BeginItemEx<ImPlot3D::GetterXYZ<ImPlot3D::IndexerIdx<unsigned int>,ImPlot3D::IndexerIdx<unsigned int>,ImPlot3D::IndexerIdx<unsigned int>>>(
a1,
a2,
a3,
0LL);
if ( (result & 1) != 0 )
{
ItemData = (ImGui *)ImPlot3D::GetItemData(a1);
if ( *((int *)v22 + 18) >= 2 && (*((_BYTE *)ItemData + 84) & 1) != 0 )
{
ColorU32 = ImGui::GetColorU32(ItemData, a2);
if ( ImPlot3D::ImHasFlag<int,ImPlot3DLineFlags_>(v21, 1024) )
{
a1 = v22;
a2 = (ImPlot3D *)ColorU32;
ImPlot3D::RenderPrimitives<ImPlot3D::RendererLineSegments,ImPlot3D::GetterXYZ<ImPlot3D::IndexerIdx<unsigned int>,ImPlot3D::IndexerIdx<unsigned int>,ImPlot3D::IndexerIdx<unsigned int>>,unsigned int,float>(
v22,
ColorU32,
*((float *)ItemData + 16));
}
else if ( ImPlot3D::ImHasFlag<int,ImPlot3DLineFlags_>(v21, 2048) )
{
v4 = (int)v22;
if ( ImPlot3D::ImHasFlag<int,ImPlot3DLineFlags_>(v21, 4096) )
{
memcpy(v17, v22, sizeof(v17));
ImPlot3D::GetterLoop<ImPlot3D::GetterXYZ<ImPlot3D::IndexerIdx<unsigned int>,ImPlot3D::IndexerIdx<unsigned int>,ImPlot3D::IndexerIdx<unsigned int>>>::GetterLoop(
(unsigned int)v18,
v4,
v5,
v6,
v7,
v8,
v17[0],
v17[1],
v17[2],
v17[3],
v17[4]);
a2 = (ImPlot3D *)ColorU32;
a1 = (ImPlot3D *)v18;
ImPlot3D::RenderPrimitives<ImPlot3D::RendererLineStripSkip,ImPlot3D::GetterLoop<ImPlot3D::GetterXYZ<ImPlot3D::IndexerIdx<unsigned int>,ImPlot3D::IndexerIdx<unsigned int>,ImPlot3D::IndexerIdx<unsigned int>>>,unsigned int,float>(
v18,
ColorU32,
*((float *)ItemData + 16));
}
else
{
memcpy(v15, v22, sizeof(v15));
ImPlot3D::GetterLoop<ImPlot3D::GetterXYZ<ImPlot3D::IndexerIdx<unsigned int>,ImPlot3D::IndexerIdx<unsigned int>,ImPlot3D::IndexerIdx<unsigned int>>>::GetterLoop(
(unsigned int)v16,
v4,
v9,
v10,
v11,
v12,
v15[0],
v15[1],
v15[2],
v15[3],
v15[4]);
a2 = (ImPlot3D *)ColorU32;
a1 = (ImPlot3D *)v16;
ImPlot3D::RenderPrimitives<ImPlot3D::RendererLineStrip,ImPlot3D::GetterLoop<ImPlot3D::GetterXYZ<ImPlot3D::IndexerIdx<unsigned int>,ImPlot3D::IndexerIdx<unsigned int>,ImPlot3D::IndexerIdx<unsigned int>>>,unsigned int,float>(
v16,
ColorU32,
*((float *)ItemData + 16));
}
}
else
{
a1 = v22;
a2 = (ImPlot3D *)ColorU32;
if ( ImPlot3D::ImHasFlag<int,ImPlot3DLineFlags_>(v21, 4096) )
ImPlot3D::RenderPrimitives<ImPlot3D::RendererLineStripSkip,ImPlot3D::GetterXYZ<ImPlot3D::IndexerIdx<unsigned int>,ImPlot3D::IndexerIdx<unsigned int>,ImPlot3D::IndexerIdx<unsigned int>>,unsigned int,float>(
v22,
ColorU32,
*((float *)ItemData + 16));
else
ImPlot3D::RenderPrimitives<ImPlot3D::RendererLineStrip,ImPlot3D::GetterXYZ<ImPlot3D::IndexerIdx<unsigned int>,ImPlot3D::IndexerIdx<unsigned int>,ImPlot3D::IndexerIdx<unsigned int>>,unsigned int,float>(
v22,
ColorU32,
*((float *)ItemData + 16));
}
}
if ( *((_DWORD *)ItemData + 17) != -1 )
{
v14 = ImGui::GetColorU32((ImGui *)((char *)ItemData + 32), a2);
v13 = ImGui::GetColorU32((ImGui *)((char *)ItemData + 48), a2);
a1 = v22;
ImPlot3D::RenderMarkers<ImPlot3D::GetterXYZ<ImPlot3D::IndexerIdx<unsigned int>,ImPlot3D::IndexerIdx<unsigned int>,ImPlot3D::IndexerIdx<unsigned int>>>(
v22,
*((unsigned int *)ItemData + 17),
*((_BYTE *)ItemData + 87) & 1,
v13,
*((_BYTE *)ItemData + 86) & 1,
v14,
*((float *)ItemData + 18),
*((float *)ItemData + 19));
}
return ImPlot3D::EndItem(a1);
}
return result;
}
|
PlotLineEx<ImPlot3D::GetterXYZ<ImPlot3D::IndexerIdx<unsigned_int>,ImPlot3D::IndexerIdx<unsigned_int>,ImPlot3D::IndexerIdx<unsigned_int>>>:
SUB RSP,0x1d8
MOV qword ptr [RSP + 0x1d0],RDI
MOV qword ptr [RSP + 0x1c8],RSI
MOV dword ptr [RSP + 0x1c4],EDX
MOV RDI,qword ptr [RSP + 0x1d0]
MOV RSI,qword ptr [RSP + 0x1c8]
MOV EDX,dword ptr [RSP + 0x1c4]
XOR ECX,ECX
CALL 0x001f7a20
TEST AL,0x1
JNZ 0x001e19a5
JMP 0x001e1c62
LAB_001e19a5:
CALL 0x001d7150
MOV qword ptr [RSP + 0x1b8],RAX
MOV RAX,qword ptr [RSP + 0x1c8]
CMP dword ptr [RAX + 0x48],0x2
JL 0x001e1bc3
MOV RAX,qword ptr [RSP + 0x1b8]
TEST byte ptr [RAX + 0x54],0x1
JZ 0x001e1bc3
MOV RDI,qword ptr [RSP + 0x1b8]
CALL 0x005f6eb0
MOV dword ptr [RSP + 0x1b4],EAX
MOV EDI,dword ptr [RSP + 0x1c4]
MOV ESI,0x400
CALL 0x001de2b0
TEST AL,0x1
JNZ 0x001e1a01
JMP 0x001e1a27
LAB_001e1a01:
MOV RDI,qword ptr [RSP + 0x1c8]
MOV ESI,dword ptr [RSP + 0x1b4]
MOV RAX,qword ptr [RSP + 0x1b8]
MOVSS XMM0,dword ptr [RAX + 0x40]
CALL 0x002280c0
JMP 0x001e1bc1
LAB_001e1a27:
MOV EDI,dword ptr [RSP + 0x1c4]
MOV ESI,0x800
CALL 0x001de2b0
TEST AL,0x1
JNZ 0x001e1a41
JMP 0x001e1b62
LAB_001e1a41:
MOV EDI,dword ptr [RSP + 0x1c4]
MOV ESI,0x1000
CALL 0x001de2b0
TEST AL,0x1
JNZ 0x001e1a5b
JMP 0x001e1ae3
LAB_001e1a5b:
MOV RSI,qword ptr [RSP + 0x1c8]
LEA RDI,[RSP + 0x108]
MOV EDX,0x50
CALL 0x001129b0
MOVUPS XMM0,xmmword ptr [RSP + 0x148]
MOV RAX,RSP
MOVUPS xmmword ptr [RAX + 0x40],XMM0
MOVUPS XMM0,xmmword ptr [RSP + 0x108]
MOVUPS XMM1,xmmword ptr [RSP + 0x118]
MOVUPS XMM2,xmmword ptr [RSP + 0x128]
MOVUPS XMM3,xmmword ptr [RSP + 0x138]
MOVUPS xmmword ptr [RAX + 0x30],XMM3
MOVUPS xmmword ptr [RAX + 0x20],XMM2
MOVUPS xmmword ptr [RAX + 0x10],XMM1
MOVUPS xmmword ptr [RAX],XMM0
LEA RDI,[RSP + 0x158]
CALL 0x0022a5c0
MOV ESI,dword ptr [RSP + 0x1b4]
MOV RAX,qword ptr [RSP + 0x1b8]
MOVSS XMM0,dword ptr [RAX + 0x40]
LEA RDI,[RSP + 0x158]
CALL 0x002295b0
JMP 0x001e1b60
LAB_001e1ae3:
MOV RSI,qword ptr [RSP + 0x1c8]
LEA RDI,[RSP + 0x60]
MOV EDX,0x50
CALL 0x001129b0
MOVUPS XMM0,xmmword ptr [RSP + 0xa0]
MOV RAX,RSP
MOVUPS xmmword ptr [RAX + 0x40],XMM0
MOVUPS XMM0,xmmword ptr [RSP + 0x60]
MOVUPS XMM1,xmmword ptr [RSP + 0x70]
MOVUPS XMM2,xmmword ptr [RSP + 0x80]
MOVUPS XMM3,xmmword ptr [RSP + 0x90]
MOVUPS xmmword ptr [RAX + 0x30],XMM3
MOVUPS xmmword ptr [RAX + 0x20],XMM2
MOVUPS xmmword ptr [RAX + 0x10],XMM1
MOVUPS xmmword ptr [RAX],XMM0
LEA RDI,[RSP + 0xb0]
CALL 0x0022a5c0
MOV ESI,dword ptr [RSP + 0x1b4]
MOV RAX,qword ptr [RSP + 0x1b8]
MOVSS XMM0,dword ptr [RAX + 0x40]
LEA RDI,[RSP + 0xb0]
CALL 0x0022a600
LAB_001e1b60:
JMP 0x001e1bbf
LAB_001e1b62:
MOV EDI,dword ptr [RSP + 0x1c4]
MOV ESI,0x1000
CALL 0x001de2b0
TEST AL,0x1
JNZ 0x001e1b79
JMP 0x001e1b9c
LAB_001e1b79:
MOV RDI,qword ptr [RSP + 0x1c8]
MOV ESI,dword ptr [RSP + 0x1b4]
MOV RAX,qword ptr [RSP + 0x1b8]
MOVSS XMM0,dword ptr [RAX + 0x40]
CALL 0x0022b550
JMP 0x001e1bbd
LAB_001e1b9c:
MOV RDI,qword ptr [RSP + 0x1c8]
MOV ESI,dword ptr [RSP + 0x1b4]
MOV RAX,qword ptr [RSP + 0x1b8]
MOVSS XMM0,dword ptr [RAX + 0x40]
CALL 0x0022c4d0
LAB_001e1bbd:
JMP 0x001e1bbf
LAB_001e1bbf:
JMP 0x001e1bc1
LAB_001e1bc1:
JMP 0x001e1bc3
LAB_001e1bc3:
MOV RAX,qword ptr [RSP + 0x1b8]
CMP dword ptr [RAX + 0x44],-0x1
JZ 0x001e1c5d
MOV RDI,qword ptr [RSP + 0x1b8]
ADD RDI,0x20
CALL 0x005f6eb0
MOV dword ptr [RSP + 0x5c],EAX
MOV RDI,qword ptr [RSP + 0x1b8]
ADD RDI,0x30
CALL 0x005f6eb0
MOV dword ptr [RSP + 0x58],EAX
MOV RDI,qword ptr [RSP + 0x1c8]
MOV RAX,qword ptr [RSP + 0x1b8]
MOV ESI,dword ptr [RAX + 0x44]
MOV RAX,qword ptr [RSP + 0x1b8]
MOVSS XMM0,dword ptr [RAX + 0x48]
MOV RAX,qword ptr [RSP + 0x1b8]
MOV DL,byte ptr [RAX + 0x57]
MOV ECX,dword ptr [RSP + 0x58]
MOV RAX,qword ptr [RSP + 0x1b8]
MOV AL,byte ptr [RAX + 0x56]
MOV R9D,dword ptr [RSP + 0x5c]
MOV R8,qword ptr [RSP + 0x1b8]
MOVSS XMM1,dword ptr [R8 + 0x4c]
AND DL,0x1
AND AL,0x1
MOVZX EDX,DL
MOVZX R8D,AL
CALL 0x001f8090
LAB_001e1c5d:
CALL 0x001dda10
LAB_001e1c62:
ADD RSP,0x1d8
RET
|
/* void ImPlot3D::PlotLineEx<ImPlot3D::GetterXYZ<ImPlot3D::IndexerIdx<unsigned int>,
ImPlot3D::IndexerIdx<unsigned int>, ImPlot3D::IndexerIdx<unsigned int> > >(char const*,
ImPlot3D::GetterXYZ<ImPlot3D::IndexerIdx<unsigned int>, ImPlot3D::IndexerIdx<unsigned int>,
ImPlot3D::IndexerIdx<unsigned int> > const&, int) */
void ImPlot3D::
PlotLineEx<ImPlot3D::GetterXYZ<ImPlot3D::IndexerIdx<unsigned_int>,ImPlot3D::IndexerIdx<unsigned_int>,ImPlot3D::IndexerIdx<unsigned_int>>>
(char *param_1,GetterXYZ *param_2,int param_3)
{
bool bVar1;
uint uVar2;
uint uVar3;
uint extraout_EDX;
uint extraout_EDX_00;
uint extraout_EDX_01;
uint extraout_EDX_02;
int1 local_178 [80];
ImPlot3D local_128 [88];
int1 local_d0 [80];
ImPlot3D local_80 [92];
uint local_24;
ImVec4 *local_20;
int local_14;
GetterXYZ *local_10;
char *local_8;
local_14 = param_3;
local_10 = param_2;
local_8 = param_1;
bVar1 = BeginItemEx<ImPlot3D::GetterXYZ<ImPlot3D::IndexerIdx<unsigned_int>,ImPlot3D::IndexerIdx<unsigned_int>,ImPlot3D::IndexerIdx<unsigned_int>>>
(param_1,param_2,param_3,0);
if (bVar1) {
local_20 = (ImVec4 *)GetItemData();
if ((1 < *(int *)(local_10 + 0x48)) && (((byte)local_20[0x54] & 1) != 0)) {
local_24 = ImGui::GetColorU32(local_20);
bVar1 = ImHasFlag<int,ImPlot3DLineFlags_>(local_14,0x400);
if (bVar1) {
RenderPrimitives<ImPlot3D::RendererLineSegments,ImPlot3D::GetterXYZ<ImPlot3D::IndexerIdx<unsigned_int>,ImPlot3D::IndexerIdx<unsigned_int>,ImPlot3D::IndexerIdx<unsigned_int>>,unsigned_int,float>
((ImPlot3D *)local_10,(GetterXYZ *)(ulong)local_24,extraout_EDX,
*(float *)(local_20 + 0x40));
}
else {
bVar1 = ImHasFlag<int,ImPlot3DLineFlags_>(local_14,0x800);
if (bVar1) {
bVar1 = ImHasFlag<int,ImPlot3DLineFlags_>(local_14,0x1000);
if (bVar1) {
memcpy(local_d0,local_10,0x50);
GetterLoop<ImPlot3D::GetterXYZ<ImPlot3D::IndexerIdx<unsigned_int>,ImPlot3D::IndexerIdx<unsigned_int>,ImPlot3D::IndexerIdx<unsigned_int>>>
::GetterLoop(local_80);
RenderPrimitives<ImPlot3D::RendererLineStripSkip,ImPlot3D::GetterLoop<ImPlot3D::GetterXYZ<ImPlot3D::IndexerIdx<unsigned_int>,ImPlot3D::IndexerIdx<unsigned_int>,ImPlot3D::IndexerIdx<unsigned_int>>>,unsigned_int,float>
(local_80,(GetterLoop *)(ulong)local_24,extraout_EDX_00,
*(float *)(local_20 + 0x40));
}
else {
memcpy(local_178,local_10,0x50);
GetterLoop<ImPlot3D::GetterXYZ<ImPlot3D::IndexerIdx<unsigned_int>,ImPlot3D::IndexerIdx<unsigned_int>,ImPlot3D::IndexerIdx<unsigned_int>>>
::GetterLoop(local_128);
RenderPrimitives<ImPlot3D::RendererLineStrip,ImPlot3D::GetterLoop<ImPlot3D::GetterXYZ<ImPlot3D::IndexerIdx<unsigned_int>,ImPlot3D::IndexerIdx<unsigned_int>,ImPlot3D::IndexerIdx<unsigned_int>>>,unsigned_int,float>
(local_128,(GetterLoop *)(ulong)local_24,extraout_EDX_01,
*(float *)(local_20 + 0x40));
}
}
else {
bVar1 = ImHasFlag<int,ImPlot3DLineFlags_>(local_14,0x1000);
if (bVar1) {
RenderPrimitives<ImPlot3D::RendererLineStripSkip,ImPlot3D::GetterXYZ<ImPlot3D::IndexerIdx<unsigned_int>,ImPlot3D::IndexerIdx<unsigned_int>,ImPlot3D::IndexerIdx<unsigned_int>>,unsigned_int,float>
((ImPlot3D *)local_10,(GetterXYZ *)(ulong)local_24,extraout_EDX_02,
*(float *)(local_20 + 0x40));
}
else {
RenderPrimitives<ImPlot3D::RendererLineStrip,ImPlot3D::GetterXYZ<ImPlot3D::IndexerIdx<unsigned_int>,ImPlot3D::IndexerIdx<unsigned_int>,ImPlot3D::IndexerIdx<unsigned_int>>,unsigned_int,float>
((ImPlot3D *)local_10,(GetterXYZ *)(ulong)local_24,extraout_EDX_02,
*(float *)(local_20 + 0x40));
}
}
}
}
if (*(int *)(local_20 + 0x44) != -1) {
uVar2 = ImGui::GetColorU32(local_20 + 0x20);
uVar3 = ImGui::GetColorU32(local_20 + 0x30);
RenderMarkers<ImPlot3D::GetterXYZ<ImPlot3D::IndexerIdx<unsigned_int>,ImPlot3D::IndexerIdx<unsigned_int>,ImPlot3D::IndexerIdx<unsigned_int>>>
(local_10,*(int *)(local_20 + 0x44),*(float *)(local_20 + 0x48),
(bool)((byte)local_20[0x57] & 1),uVar3,(bool)((byte)local_20[0x56] & 1),uVar2,
*(float *)(local_20 + 0x4c));
}
EndItem();
}
return;
}
|
|
58,085
|
ggml_opt_get_default_optimizer_params
|
monkey531[P]llama/ggml/src/ggml-opt.cpp
|
struct ggml_opt_optimizer_params ggml_opt_get_default_optimizer_params(void * userdata) {
GGML_UNUSED(userdata);
ggml_opt_optimizer_params result;
result.adamw.alpha = 0.001f;
result.adamw.beta1 = 0.9f;
result.adamw.beta2 = 0.999f;
result.adamw.eps = 1e-8f;
result.adamw.wd = 0.0f;
return result;
}
|
O3
|
cpp
|
ggml_opt_get_default_optimizer_params:
movq %rdi, %rax
movaps 0x24d5e(%rip), %xmm0 # 0x4dc40
movups %xmm0, (%rdi)
movl $0x0, 0x10(%rdi)
retq
|
ggml_opt_get_default_optimizer_params:
mov rax, rdi
movaps xmm0, cs:xmmword_4DC40
movups xmmword ptr [rdi], xmm0
mov dword ptr [rdi+10h], 0
retn
|
long long ggml_opt_get_default_optimizer_params(long long a1)
{
long long result; // rax
result = a1;
*(_OWORD *)a1 = xmmword_4DC40;
*(_DWORD *)(a1 + 16) = 0;
return result;
}
|
ggml_opt_get_default_optimizer_params:
MOV RAX,RDI
MOVAPS XMM0,xmmword ptr [0x0014dc40]
MOVUPS xmmword ptr [RDI],XMM0
MOV dword ptr [RDI + 0x10],0x0
RET
|
/* WARNING: Globals starting with '_' overlap smaller symbols at the same address */
int8 * ggml_opt_get_default_optimizer_params(int8 *param_1)
{
int8 uVar1;
uVar1 = _UNK_0014dc48;
*param_1 = _DAT_0014dc40;
param_1[1] = uVar1;
*(int4 *)(param_1 + 2) = 0;
return param_1;
}
|
|
58,086
|
nlohmann::json_abi_v3_11_3::detail::lexer_base<nlohmann::json_abi_v3_11_3::basic_json<std::map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>>::token_type_name(nlohmann::json_abi_v3_11_3::detail::lexer_base<nlohmann::json_abi_v3_11_3::basic_json<std::map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>>::token_type)
|
zkingston[P]unknot/build_O0/_deps/json-src/include/nlohmann/detail/input/lexer.hpp
|
static const char* token_type_name(const token_type t) noexcept
{
switch (t)
{
case token_type::uninitialized:
return "<uninitialized>";
case token_type::literal_true:
return "true literal";
case token_type::literal_false:
return "false literal";
case token_type::literal_null:
return "null literal";
case token_type::value_string:
return "string literal";
case token_type::value_unsigned:
case token_type::value_integer:
case token_type::value_float:
return "number literal";
case token_type::begin_array:
return "'['";
case token_type::begin_object:
return "'{'";
case token_type::end_array:
return "']'";
case token_type::end_object:
return "'}'";
case token_type::name_separator:
return "':'";
case token_type::value_separator:
return "','";
case token_type::parse_error:
return "<parse error>";
case token_type::end_of_input:
return "end of input";
case token_type::literal_or_value:
return "'[', '{', or a literal";
// LCOV_EXCL_START
default: // catch non-enum values
return "unknown token";
// LCOV_EXCL_STOP
}
}
|
O0
|
cpp
|
nlohmann::json_abi_v3_11_3::detail::lexer_base<nlohmann::json_abi_v3_11_3::basic_json<std::map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>>::token_type_name(nlohmann::json_abi_v3_11_3::detail::lexer_base<nlohmann::json_abi_v3_11_3::basic_json<std::map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>>::token_type):
movl %edi, -0xc(%rsp)
movl -0xc(%rsp), %eax
movq %rax, -0x18(%rsp)
subq $0x10, %rax
ja 0x86510
movq -0x18(%rsp), %rax
leaq 0x546871(%rip), %rcx # 0x5ccc94
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
leaq 0x5483c8(%rip), %rax # 0x5ce7fb
movq %rax, -0x8(%rsp)
jmp 0x8651c
leaq 0x5483c7(%rip), %rax # 0x5ce80b
movq %rax, -0x8(%rsp)
jmp 0x8651c
leaq 0x5483c3(%rip), %rax # 0x5ce818
movq %rax, -0x8(%rsp)
jmp 0x8651c
leaq 0x5483c0(%rip), %rax # 0x5ce826
movq %rax, -0x8(%rsp)
jmp 0x8651c
leaq 0x5483bc(%rip), %rax # 0x5ce833
movq %rax, -0x8(%rsp)
jmp 0x8651c
leaq 0x5483ba(%rip), %rax # 0x5ce842
movq %rax, -0x8(%rsp)
jmp 0x8651c
leaq 0x5483b8(%rip), %rax # 0x5ce851
movq %rax, -0x8(%rsp)
jmp 0x8651c
leaq 0x54ab82(%rip), %rax # 0x5d1029
movq %rax, -0x8(%rsp)
jmp 0x8651c
leaq 0x5483a0(%rip), %rax # 0x5ce855
movq %rax, -0x8(%rsp)
jmp 0x8651c
leaq 0x548396(%rip), %rax # 0x5ce859
movq %rax, -0x8(%rsp)
jmp 0x8651c
leaq 0x54838c(%rip), %rax # 0x5ce85d
movq %rax, -0x8(%rsp)
jmp 0x8651c
leaq 0x548382(%rip), %rax # 0x5ce861
movq %rax, -0x8(%rsp)
jmp 0x8651c
leaq 0x548378(%rip), %rax # 0x5ce865
movq %rax, -0x8(%rsp)
jmp 0x8651c
leaq 0x548378(%rip), %rax # 0x5ce873
movq %rax, -0x8(%rsp)
jmp 0x8651c
leaq 0x548377(%rip), %rax # 0x5ce880
movq %rax, -0x8(%rsp)
jmp 0x8651c
leaq 0x548380(%rip), %rax # 0x5ce897
movq %rax, -0x8(%rsp)
movq -0x8(%rsp), %rax
retq
nopw %cs:(%rax,%rax)
nopl (%rax)
|
_ZN8nlohmann16json_abi_v3_11_36detail10lexer_baseINS0_10basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEE15token_type_nameENSG_10token_typeE:
mov [rsp+var_C], edi
mov eax, [rsp+var_C]
mov [rsp+var_18], rax
sub rax, 10h; switch 17 cases
ja def_8642A; jumptable 000000000008642A default case
mov rax, [rsp+var_18]
lea rcx, jpt_8642A
movsxd rax, ds:(jpt_8642A - 5CCC94h)[rcx+rax*4]
add rax, rcx
jmp rax; switch jump
loc_8642C:
lea rax, aUninitialized; jumptable 000000000008642A case 0
mov [rsp+var_8], rax
jmp loc_8651C
loc_8643D:
lea rax, aTrueLiteral; jumptable 000000000008642A case 1
mov [rsp+var_8], rax
jmp loc_8651C
loc_8644E:
lea rax, aFalseLiteral; jumptable 000000000008642A case 2
mov [rsp+var_8], rax
jmp loc_8651C
loc_8645F:
lea rax, aNullLiteral; jumptable 000000000008642A case 3
mov [rsp+var_8], rax
jmp loc_8651C
loc_86470:
lea rax, aStringLiteral; jumptable 000000000008642A case 4
mov [rsp+var_8], rax
jmp loc_8651C
loc_86481:
lea rax, aNumberLiteral; jumptable 000000000008642A cases 5-7
mov [rsp+var_8], rax
jmp loc_8651C
loc_86492:
lea rax, asc_5CE851; jumptable 000000000008642A case 8
mov [rsp+var_8], rax
jmp short loc_8651C
loc_864A0:
lea rax, aInvalidFillCha+17h; jumptable 000000000008642A case 9
mov [rsp+var_8], rax
jmp short loc_8651C
loc_864AE:
lea rax, asc_5CE855; jumptable 000000000008642A case 10
mov [rsp+var_8], rax
jmp short loc_8651C
loc_864BC:
lea rax, asc_5CE859; jumptable 000000000008642A case 11
mov [rsp+var_8], rax
jmp short loc_8651C
loc_864CA:
lea rax, asc_5CE85D; jumptable 000000000008642A case 12
mov [rsp+var_8], rax
jmp short loc_8651C
loc_864D8:
lea rax, asc_5CE861; jumptable 000000000008642A case 13
mov [rsp+var_8], rax
jmp short loc_8651C
loc_864E6:
lea rax, aParseError_1; jumptable 000000000008642A case 14
mov [rsp+var_8], rax
jmp short loc_8651C
loc_864F4:
lea rax, aEndOfInput; jumptable 000000000008642A case 15
mov [rsp+var_8], rax
jmp short loc_8651C
loc_86502:
lea rax, aOrALiteral; jumptable 000000000008642A case 16
mov [rsp+var_8], rax
jmp short loc_8651C
def_8642A:
lea rax, aUnknownToken; jumptable 000000000008642A default case
mov [rsp+var_8], rax
loc_8651C:
mov rax, [rsp+var_8]
retn
|
char * nlohmann::json_abi_v3_11_3::detail::lexer_base<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>::token_type_name(
int a1)
{
char *v2; // [rsp+10h] [rbp-8h]
switch ( a1 )
{
case 0:
v2 = "<uninitialized>";
break;
case 1:
v2 = "true literal";
break;
case 2:
v2 = "false literal";
break;
case 3:
v2 = "null literal";
break;
case 4:
v2 = "string literal";
break;
case 5:
case 6:
case 7:
v2 = "number literal";
break;
case 8:
v2 = "'['";
break;
case 9:
v2 = "'{'";
break;
case 10:
v2 = "']'";
break;
case 11:
v2 = "'}'";
break;
case 12:
v2 = "':'";
break;
case 13:
v2 = "','";
break;
case 14:
v2 = "<parse error>";
break;
case 15:
v2 = "end of input";
break;
case 16:
v2 = "'[', '{', or a literal";
break;
default:
v2 = "unknown token";
break;
}
return v2;
}
|
token_type_name:
MOV dword ptr [RSP + -0xc],EDI
MOV EAX,dword ptr [RSP + -0xc]
MOV qword ptr [RSP + -0x18],RAX
SUB RAX,0x10
JA 0x00186510
MOV RAX,qword ptr [RSP + -0x18]
LEA RCX,[0x6ccc94]
MOVSXD RAX,dword ptr [RCX + RAX*0x4]
ADD RAX,RCX
switchD:
JMP RAX
caseD_0:
LEA RAX,[0x6ce7fb]
MOV qword ptr [RSP + -0x8],RAX
JMP 0x0018651c
caseD_1:
LEA RAX,[0x6ce80b]
MOV qword ptr [RSP + -0x8],RAX
JMP 0x0018651c
caseD_2:
LEA RAX,[0x6ce818]
MOV qword ptr [RSP + -0x8],RAX
JMP 0x0018651c
caseD_3:
LEA RAX,[0x6ce826]
MOV qword ptr [RSP + -0x8],RAX
JMP 0x0018651c
caseD_4:
LEA RAX,[0x6ce833]
MOV qword ptr [RSP + -0x8],RAX
JMP 0x0018651c
caseD_5:
LEA RAX,[0x6ce842]
MOV qword ptr [RSP + -0x8],RAX
JMP 0x0018651c
caseD_8:
LEA RAX,[0x6ce851]
MOV qword ptr [RSP + -0x8],RAX
JMP 0x0018651c
caseD_9:
LEA RAX,[0x6d1029]
MOV qword ptr [RSP + -0x8],RAX
JMP 0x0018651c
caseD_a:
LEA RAX,[0x6ce855]
MOV qword ptr [RSP + -0x8],RAX
JMP 0x0018651c
caseD_b:
LEA RAX,[0x6ce859]
MOV qword ptr [RSP + -0x8],RAX
JMP 0x0018651c
caseD_c:
LEA RAX,[0x6ce85d]
MOV qword ptr [RSP + -0x8],RAX
JMP 0x0018651c
caseD_d:
LEA RAX,[0x6ce861]
MOV qword ptr [RSP + -0x8],RAX
JMP 0x0018651c
caseD_e:
LEA RAX,[0x6ce865]
MOV qword ptr [RSP + -0x8],RAX
JMP 0x0018651c
caseD_f:
LEA RAX,[0x6ce873]
MOV qword ptr [RSP + -0x8],RAX
JMP 0x0018651c
caseD_10:
LEA RAX,[0x6ce880]
MOV qword ptr [RSP + -0x8],RAX
JMP 0x0018651c
default:
LEA RAX,[0x6ce897]
MOV qword ptr [RSP + -0x8],RAX
LAB_0018651c:
MOV RAX,qword ptr [RSP + -0x8]
RET
|
/* nlohmann::json_abi_v3_11_3::detail::lexer_base<nlohmann::json_abi_v3_11_3::basic_json<std::map,
std::vector, std::__cxx11::string, bool, long, unsigned long, double, std::allocator,
nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned
char> >, void>
>::token_type_name(nlohmann::json_abi_v3_11_3::detail::lexer_base<nlohmann::json_abi_v3_11_3::basic_json<std::map,
std::vector, std::__cxx11::string, bool, long, unsigned long, double, std::allocator,
nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned
char> >, void> >::token_type) */
char * nlohmann::json_abi_v3_11_3::detail::
lexer_base<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>
::token_type_name(int4 param_1)
{
char *local_8;
switch(param_1) {
case 0:
local_8 = "<uninitialized>";
break;
case 1:
local_8 = "true literal";
break;
case 2:
local_8 = "false literal";
break;
case 3:
local_8 = "null literal";
break;
case 4:
local_8 = "string literal";
break;
case 5:
case 6:
case 7:
local_8 = "number literal";
break;
case 8:
local_8 = "\'[\'";
break;
case 9:
local_8 = "\'{\'";
break;
case 10:
local_8 = "\']\'";
break;
case 0xb:
local_8 = "\'}\'";
break;
case 0xc:
local_8 = "\':\'";
break;
case 0xd:
local_8 = "\',\'";
break;
case 0xe:
local_8 = "<parse error>";
break;
case 0xf:
local_8 = "end of input";
break;
case 0x10:
local_8 = "\'[\', \'{\', or a literal";
break;
default:
local_8 = "unknown token";
}
return local_8;
}
|
|
58,087
|
nlohmann::json_abi_v3_11_3::detail::dtoa_impl::append_exponent(char*, int)
|
monkey531[P]llama/common/json.hpp
|
inline char* append_exponent(char* buf, int e)
{
JSON_ASSERT(e > -1000);
JSON_ASSERT(e < 1000);
if (e < 0)
{
e = -e;
*buf++ = '-';
}
else
{
*buf++ = '+';
}
auto k = static_cast<std::uint32_t>(e);
if (k < 10)
{
// Always print at least two digits in the exponent.
// This is for compatibility with printf("%g").
*buf++ = '0';
*buf++ = static_cast<char>('0' + k);
}
else if (k < 100)
{
*buf++ = static_cast<char>('0' + k / 10);
k %= 10;
*buf++ = static_cast<char>('0' + k);
}
else
{
*buf++ = static_cast<char>('0' + k / 100);
k %= 100;
*buf++ = static_cast<char>('0' + k / 10);
k %= 10;
*buf++ = static_cast<char>('0' + k);
}
return buf;
}
|
O2
|
cpp
|
nlohmann::json_abi_v3_11_3::detail::dtoa_impl::append_exponent(char*, int):
pushq %rax
cmpl $0xfffffc18, %esi # imm = 0xFFFFFC18
jle 0x88778
cmpl $0x3e8, %esi # imm = 0x3E8
jge 0x88794
movl %esi, %ecx
shrl $0x1f, %ecx
addb %cl, %cl
addb $0x2b, %cl
movl %esi, %eax
negl %eax
cmovsl %esi, %eax
movb %cl, (%rdi)
cmpl $0x9, %eax
ja 0x88726
leaq 0x2(%rdi), %rdx
movb $0x30, 0x1(%rdi)
jmp 0x88741
cmpl $0x63, %eax
ja 0x88745
movzbl %al, %eax
movb $0xa, %cl
divb %cl
movl %eax, %ecx
movzbl %ah, %eax
orb $0x30, %cl
leaq 0x2(%rdi), %rdx
movb %cl, 0x1(%rdi)
pushq $0x3
jmp 0x8876b
movw $0x64, %cx
xorl %edx, %edx
divw %cx
addb $0x30, %al
movb %al, 0x1(%rdi)
movzbl %dl, %eax
movb $0xa, %cl
divb %cl
movl %eax, %ecx
movzbl %ah, %eax
orb $0x30, %cl
leaq 0x3(%rdi), %rdx
movb %cl, 0x2(%rdi)
pushq $0x4
popq %rcx
orb $0x30, %al
addq %rcx, %rdi
movb %al, (%rdx)
movq %rdi, %rax
popq %rcx
retq
leaq 0x278c7(%rip), %rdi # 0xb0046
leaq 0x21b1b(%rip), %rdx # 0xaa2a1
leaq 0x2d1aa(%rip), %rcx # 0xb5937
movl $0x45ae, %esi # imm = 0x45AE
jmp 0x887ae
leaq 0x278ab(%rip), %rdi # 0xb0046
leaq 0x21aff(%rip), %rdx # 0xaa2a1
leaq 0x2d198(%rip), %rcx # 0xb5941
movl $0x45af, %esi # imm = 0x45AF
xorl %eax, %eax
callq 0x23ef0
nop
|
_ZN8nlohmann16json_abi_v3_11_36detail9dtoa_impl15append_exponentEPci:
push rax
cmp esi, 0FFFFFC18h
jle loc_88778
cmp esi, 3E8h
jge loc_88794
mov ecx, esi
shr ecx, 1Fh
add cl, cl
add cl, 2Bh ; '+'
mov eax, esi
neg eax
cmovs eax, esi
mov [rdi], cl
cmp eax, 9
ja short loc_88726
lea rdx, [rdi+2]
mov byte ptr [rdi+1], 30h ; '0'
jmp short loc_88741
loc_88726:
cmp eax, 63h ; 'c'
ja short loc_88745
movzx eax, al
mov cl, 0Ah
div cl
mov ecx, eax
movzx eax, ah
or cl, 30h
lea rdx, [rdi+2]
mov [rdi+1], cl
loc_88741:
push 3
jmp short loc_8876B
loc_88745:
mov cx, 64h ; 'd'
xor edx, edx
div cx
add al, 30h ; '0'
mov [rdi+1], al
movzx eax, dl
mov cl, 0Ah
div cl
mov ecx, eax
movzx eax, ah
or cl, 30h
lea rdx, [rdi+3]
mov [rdi+2], cl
push 4
loc_8876B:
pop rcx
or al, 30h
add rdi, rcx
mov [rdx], al
mov rax, rdi
pop rcx
retn
loc_88778:
lea rdi, aWorkspaceLlm4b_1; "/workspace/llm4binary/github/2025_star3"...
lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed"
lea rcx, aE1000; "e > -1000"
mov esi, 45AEh
jmp short loc_887AE
loc_88794:
lea rdi, aWorkspaceLlm4b_1; "/workspace/llm4binary/github/2025_star3"...
lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed"
lea rcx, aE1000_0; "e < 1000"
mov esi, 45AFh
loc_887AE:
xor eax, eax
call _ggml_abort
nop
|
long long nlohmann::json_abi_v3_11_3::detail::dtoa_impl::append_exponent(
nlohmann::json_abi_v3_11_3::detail::dtoa_impl *this,
char *a2)
{
unsigned int v2; // eax
_BYTE *v3; // rdx
char v4; // cl
char v5; // cl
long long v7; // [rsp-10h] [rbp-10h]
if ( (int)a2 <= -1000 )
{
ggml_abort(
"/workspace/llm4binary/github/2025_star3/monkey531[P]llama/common/json.hpp",
17838LL,
"GGML_ASSERT(%s) failed",
"e > -1000");
}
else
{
if ( (int)a2 < 1000 )
{
v2 = -(int)a2;
if ( (int)a2 > 0 )
v2 = (unsigned int)a2;
*(_BYTE *)this = 2 * ((int)a2 < 0) + 43;
if ( v2 > 9 )
{
if ( v2 > 0x63 )
{
*((_BYTE *)this + 1) = (unsigned __int16)v2 / 0x64u + 48;
v5 = (unsigned __int16)v2 % 0x64u / 0xA;
LOBYTE(v2) = (unsigned __int16)v2 % 0x64u % 0xA;
v3 = (char *)this + 3;
*((_BYTE *)this + 2) = v5 | 0x30;
v7 = 4LL;
goto LABEL_11;
}
v4 = (unsigned __int8)v2 / 0xAu;
LOBYTE(v2) = (unsigned __int8)v2 % 0xAu;
v3 = (char *)this + 2;
*((_BYTE *)this + 1) = v4 | 0x30;
}
else
{
v3 = (char *)this + 2;
*((_BYTE *)this + 1) = 48;
}
v7 = 3LL;
LABEL_11:
*v3 = v2 | 0x30;
return (long long)this + v7;
}
ggml_abort(
"/workspace/llm4binary/github/2025_star3/monkey531[P]llama/common/json.hpp",
17839LL,
"GGML_ASSERT(%s) failed",
"e < 1000");
}
return nlohmann::json_abi_v3_11_3::detail::external_constructor<(nlohmann::json_abi_v3_11_3::detail::value_t)3>::construct<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>("/workspace/llm4binary/github/2025_star3/monkey531[P]llama/common/json.hpp");
}
|
append_exponent:
PUSH RAX
CMP ESI,0xfffffc18
JLE 0x00188778
CMP ESI,0x3e8
JGE 0x00188794
MOV ECX,ESI
SHR ECX,0x1f
ADD CL,CL
ADD CL,0x2b
MOV EAX,ESI
NEG EAX
CMOVS EAX,ESI
MOV byte ptr [RDI],CL
CMP EAX,0x9
JA 0x00188726
LEA RDX,[RDI + 0x2]
MOV byte ptr [RDI + 0x1],0x30
JMP 0x00188741
LAB_00188726:
CMP EAX,0x63
JA 0x00188745
MOVZX EAX,AL
MOV CL,0xa
DIV CL
MOV ECX,EAX
MOVZX EAX,AH
OR CL,0x30
LEA RDX,[RDI + 0x2]
MOV byte ptr [RDI + 0x1],CL
LAB_00188741:
PUSH 0x3
JMP 0x0018876b
LAB_00188745:
MOV CX,0x64
XOR EDX,EDX
DIV CX
ADD AL,0x30
MOV byte ptr [RDI + 0x1],AL
MOVZX EAX,DL
MOV CL,0xa
DIV CL
MOV ECX,EAX
MOVZX EAX,AH
OR CL,0x30
LEA RDX,[RDI + 0x3]
MOV byte ptr [RDI + 0x2],CL
PUSH 0x4
LAB_0018876b:
POP RCX
OR AL,0x30
ADD RDI,RCX
MOV byte ptr [RDX],AL
MOV RAX,RDI
POP RCX
RET
LAB_00188778:
LEA RDI,[0x1b0046]
LEA RDX,[0x1aa2a1]
LEA RCX,[0x1b5937]
MOV ESI,0x45ae
JMP 0x001887ae
LAB_00188794:
LEA RDI,[0x1b0046]
LEA RDX,[0x1aa2a1]
LEA RCX,[0x1b5941]
MOV ESI,0x45af
LAB_001887ae:
XOR EAX,EAX
CALL 0x00123ef0
|
/* nlohmann::json_abi_v3_11_3::detail::dtoa_impl::append_exponent(char*, int) */
char * nlohmann::json_abi_v3_11_3::detail::dtoa_impl::append_exponent(char *param_1,int param_2)
{
byte bVar2;
uint uVar1;
char *pcVar3;
ushort uVar4;
byte *pbVar5;
int8 uVar6;
long lStack_10;
if (param_2 < -999) {
pcVar3 = "e > -1000";
uVar6 = 0x45ae;
LAB_001887ae:
/* WARNING: Subroutine does not return */
ggml_abort("/workspace/llm4binary/github/2025_star3/monkey531[P]llama/common/json.hpp",uVar6,
"GGML_ASSERT(%s) failed",pcVar3);
}
if (999 < param_2) {
pcVar3 = "e < 1000";
uVar6 = 0x45af;
goto LAB_001887ae;
}
uVar1 = -param_2;
if (0 < param_2) {
uVar1 = param_2;
}
*param_1 = (char)(param_2 >> 0x1f) * -2 + '+';
if (uVar1 < 10) {
param_1[1] = '0';
}
else {
if (99 < uVar1) {
uVar4 = (ushort)((uVar1 & 0xffff) % 100);
param_1[1] = (char)((uVar1 & 0xffff) / 100) + '0';
bVar2 = (byte)(uVar4 % 10);
pbVar5 = (byte *)(param_1 + 3);
param_1[2] = (byte)(uVar4 / 10) | 0x30;
lStack_10 = 4;
goto LAB_0018876b;
}
uVar4 = (ushort)uVar1 & 0xff;
uVar1 = (uint)(byte)(uVar4 % 10);
param_1[1] = (byte)(uVar4 / 10) | 0x30;
}
pbVar5 = (byte *)(param_1 + 2);
bVar2 = (byte)uVar1;
lStack_10 = 3;
LAB_0018876b:
*pbVar5 = bVar2 | 0x30;
return param_1 + lStack_10;
}
|
|
58,088
|
common_log_main()
|
monkey531[P]llama/common/log.cpp
|
struct common_log * common_log_main() {
static struct common_log log;
return &log;
}
|
O1
|
cpp
|
common_log_main():
pushq %rbx
movb 0x629ae(%rip), %al # 0x130528
testb %al, %al
je 0xcdb87
leaq 0x628d3(%rip), %rax # 0x130458
popq %rbx
retq
leaq 0x6299a(%rip), %rdi # 0x130528
callq 0x1c030
testl %eax, %eax
je 0xcdb7e
leaq 0x628ba(%rip), %rdi # 0x130458
movl $0x100, %esi # imm = 0x100
callq 0xce26e
leaq 0x10b(%rip), %rdi # 0xcdcba
leaq 0x628a2(%rip), %rsi # 0x130458
leaq 0x61d2b(%rip), %rdx # 0x12f8e8
callq 0x1b7c0
leaq 0x6295f(%rip), %rdi # 0x130528
callq 0x1b5d0
jmp 0xcdb7e
movq %rax, %rbx
leaq 0x6294e(%rip), %rdi # 0x130528
callq 0x1b5c0
movq %rbx, %rdi
callq 0x1bfd0
|
_Z15common_log_mainv:
push rbx
mov al, cs:_ZGVZ15common_log_mainvE3log; `guard variable for'common_log_main(void)::log
test al, al
jz short loc_CDB87
loc_CDB7E:
lea rax, _ZZ15common_log_mainvE3log; common_log_main(void)::log
pop rbx
retn
loc_CDB87:
lea rdi, _ZGVZ15common_log_mainvE3log; __guard *
call ___cxa_guard_acquire
test eax, eax
jz short loc_CDB7E
lea rdi, _ZZ15common_log_mainvE3log; this
mov esi, 100h; unsigned __int64
call _ZN10common_logC2Em; common_log::common_log(ulong)
lea rdi, _ZN10common_logD2Ev; lpfunc
lea rsi, _ZZ15common_log_mainvE3log; obj
lea rdx, __dso_handle; lpdso_handle
call ___cxa_atexit
lea rdi, _ZGVZ15common_log_mainvE3log; __guard *
call ___cxa_guard_release
jmp short loc_CDB7E
mov rbx, rax
lea rdi, _ZGVZ15common_log_mainvE3log; __guard *
call ___cxa_guard_abort
mov rdi, rbx
call __Unwind_Resume
|
void *common_log_main(void)
{
if ( !(_BYTE)`guard variable for'common_log_main(void)::log
&& __cxa_guard_acquire(&`guard variable for'common_log_main(void)::log) )
{
common_log::common_log((common_log *)&common_log_main(void)::log, 0x100uLL);
__cxa_atexit(common_log::~common_log, &common_log_main(void)::log, &_dso_handle);
__cxa_guard_release(&`guard variable for'common_log_main(void)::log);
}
return &common_log_main(void)::log;
}
|
common_log_main:
PUSH RBX
MOV AL,byte ptr [0x00230528]
TEST AL,AL
JZ 0x001cdb87
LAB_001cdb7e:
LEA RAX,[0x230458]
POP RBX
RET
LAB_001cdb87:
LEA RDI,[0x230528]
CALL 0x0011c030
TEST EAX,EAX
JZ 0x001cdb7e
LAB_001cdb97:
LEA RDI,[0x230458]
MOV ESI,0x100
CALL 0x001ce26e
LAB_001cdba8:
LEA RDI,[0x1cdcba]
LEA RSI,[0x230458]
LEA RDX,[0x22f8e8]
CALL 0x0011b7c0
LEA RDI,[0x230528]
CALL 0x0011b5d0
JMP 0x001cdb7e
|
/* WARNING: Unknown calling convention -- yet parameter storage is locked */
/* common_log_main() */
int1 * common_log_main(void)
{
int iVar1;
if (common_log_main()::log == '\0') {
iVar1 = __cxa_guard_acquire(&common_log_main()::log);
if (iVar1 != 0) {
/* try { // try from 001cdb97 to 001cdba7 has its CatchHandler @ 001cdbd0 */
common_log::common_log((common_log *)common_log_main()::log,0x100);
__cxa_atexit(common_log::~common_log,common_log_main()::log,&__dso_handle);
__cxa_guard_release(&common_log_main()::log);
}
}
return common_log_main()::log;
}
|
|
58,089
|
ma_tls_close
|
eloqsql/libmariadb/libmariadb/secure/openssl.c
|
my_bool ma_tls_close(MARIADB_TLS *ctls)
{
int i, rc;
SSL *ssl;
SSL_CTX *ctx= NULL;
if (!ctls || !ctls->ssl)
return 1;
ssl= (SSL *)ctls->ssl;
ctx= SSL_get_SSL_CTX(ssl);
if (ctx)
SSL_CTX_free(ctx);
SSL_set_quiet_shutdown(ssl, 1);
/* 2 x pending + 2 * data = 4 */
for (i=0; i < 4; i++)
if ((rc= SSL_shutdown(ssl)))
break;
/* Since we transferred ownership of BIO to ssl, BIO will
automatically freed - no need for an explicit BIO_free_all */
SSL_free(ssl);
ctls->ssl= NULL;
return rc;
}
|
O0
|
c
|
ma_tls_close:
pushq %rbp
movq %rsp, %rbp
subq $0x30, %rsp
movq %rdi, -0x10(%rbp)
movq $0x0, -0x28(%rbp)
cmpq $0x0, -0x10(%rbp)
je 0x51e16
movq -0x10(%rbp), %rax
cmpq $0x0, 0x10(%rax)
jne 0x51e1c
movb $0x1, -0x1(%rbp)
jmp 0x51e9b
movq -0x10(%rbp), %rax
movq 0x10(%rax), %rax
movq %rax, -0x20(%rbp)
movq -0x20(%rbp), %rdi
callq 0x140e0
movq %rax, -0x28(%rbp)
cmpq $0x0, -0x28(%rbp)
je 0x51e45
movq -0x28(%rbp), %rdi
callq 0x14090
movq -0x20(%rbp), %rdi
movl $0x1, %esi
callq 0x14460
movl $0x0, -0x14(%rbp)
cmpl $0x4, -0x14(%rbp)
jge 0x51e80
movq -0x20(%rbp), %rdi
callq 0x144d0
movl %eax, -0x18(%rbp)
cmpl $0x0, %eax
je 0x51e73
jmp 0x51e80
jmp 0x51e75
movl -0x14(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x14(%rbp)
jmp 0x51e5a
movq -0x20(%rbp), %rdi
callq 0x14280
movq -0x10(%rbp), %rax
movq $0x0, 0x10(%rax)
movl -0x18(%rbp), %eax
movb %al, -0x1(%rbp)
movb -0x1(%rbp), %al
addq $0x30, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
|
ma_tls_close:
push rbp
mov rbp, rsp
sub rsp, 30h
mov [rbp+var_10], rdi
mov [rbp+var_28], 0
cmp [rbp+var_10], 0
jz short loc_51E16
mov rax, [rbp+var_10]
cmp qword ptr [rax+10h], 0
jnz short loc_51E1C
loc_51E16:
mov [rbp+var_1], 1
jmp short loc_51E9B
loc_51E1C:
mov rax, [rbp+var_10]
mov rax, [rax+10h]
mov [rbp+var_20], rax
mov rdi, [rbp+var_20]
call _SSL_get_SSL_CTX
mov [rbp+var_28], rax
cmp [rbp+var_28], 0
jz short loc_51E45
mov rdi, [rbp+var_28]
call _SSL_CTX_free
loc_51E45:
mov rdi, [rbp+var_20]
mov esi, 1
call _SSL_set_quiet_shutdown
mov [rbp+var_14], 0
loc_51E5A:
cmp [rbp+var_14], 4
jge short loc_51E80
mov rdi, [rbp+var_20]
call _SSL_shutdown
mov [rbp+var_18], eax
cmp eax, 0
jz short loc_51E73
jmp short loc_51E80
loc_51E73:
jmp short $+2
loc_51E75:
mov eax, [rbp+var_14]
add eax, 1
mov [rbp+var_14], eax
jmp short loc_51E5A
loc_51E80:
mov rdi, [rbp+var_20]
call _SSL_free
mov rax, [rbp+var_10]
mov qword ptr [rax+10h], 0
mov eax, [rbp+var_18]
mov [rbp+var_1], al
loc_51E9B:
mov al, [rbp+var_1]
add rsp, 30h
pop rbp
retn
|
char ma_tls_close(long long a1)
{
long long SSL_CTX; // [rsp+8h] [rbp-28h]
long long v3; // [rsp+10h] [rbp-20h]
int v4; // [rsp+18h] [rbp-18h]
int i; // [rsp+1Ch] [rbp-14h]
if ( !a1 || !*(_QWORD *)(a1 + 16) )
return 1;
v3 = *(_QWORD *)(a1 + 16);
SSL_CTX = SSL_get_SSL_CTX(v3);
if ( SSL_CTX )
SSL_CTX_free(SSL_CTX);
SSL_set_quiet_shutdown(v3, 1LL);
for ( i = 0; i < 4; ++i )
{
v4 = SSL_shutdown(v3);
if ( v4 )
break;
}
SSL_free(v3);
*(_QWORD *)(a1 + 16) = 0LL;
return v4;
}
|
ma_tls_close:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x30
MOV qword ptr [RBP + -0x10],RDI
MOV qword ptr [RBP + -0x28],0x0
CMP qword ptr [RBP + -0x10],0x0
JZ 0x00151e16
MOV RAX,qword ptr [RBP + -0x10]
CMP qword ptr [RAX + 0x10],0x0
JNZ 0x00151e1c
LAB_00151e16:
MOV byte ptr [RBP + -0x1],0x1
JMP 0x00151e9b
LAB_00151e1c:
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX + 0x10]
MOV qword ptr [RBP + -0x20],RAX
MOV RDI,qword ptr [RBP + -0x20]
CALL 0x001140e0
MOV qword ptr [RBP + -0x28],RAX
CMP qword ptr [RBP + -0x28],0x0
JZ 0x00151e45
MOV RDI,qword ptr [RBP + -0x28]
CALL 0x00114090
LAB_00151e45:
MOV RDI,qword ptr [RBP + -0x20]
MOV ESI,0x1
CALL 0x00114460
MOV dword ptr [RBP + -0x14],0x0
LAB_00151e5a:
CMP dword ptr [RBP + -0x14],0x4
JGE 0x00151e80
MOV RDI,qword ptr [RBP + -0x20]
CALL 0x001144d0
MOV dword ptr [RBP + -0x18],EAX
CMP EAX,0x0
JZ 0x00151e73
JMP 0x00151e80
LAB_00151e73:
JMP 0x00151e75
LAB_00151e75:
MOV EAX,dword ptr [RBP + -0x14]
ADD EAX,0x1
MOV dword ptr [RBP + -0x14],EAX
JMP 0x00151e5a
LAB_00151e80:
MOV RDI,qword ptr [RBP + -0x20]
CALL 0x00114280
MOV RAX,qword ptr [RBP + -0x10]
MOV qword ptr [RAX + 0x10],0x0
MOV EAX,dword ptr [RBP + -0x18]
MOV byte ptr [RBP + -0x1],AL
LAB_00151e9b:
MOV AL,byte ptr [RBP + -0x1]
ADD RSP,0x30
POP RBP
RET
|
int1 ma_tls_close(long param_1)
{
SSL *ssl;
SSL_CTX *pSVar1;
int local_20;
int local_1c;
int1 local_9;
if ((param_1 == 0) || (*(long *)(param_1 + 0x10) == 0)) {
local_9 = 1;
}
else {
ssl = *(SSL **)(param_1 + 0x10);
pSVar1 = SSL_get_SSL_CTX(ssl);
if (pSVar1 != (SSL_CTX *)0x0) {
SSL_CTX_free(pSVar1);
}
SSL_set_quiet_shutdown(ssl,1);
local_1c = 0;
while ((local_1c < 4 && (local_20 = SSL_shutdown(ssl), local_20 == 0))) {
local_1c = local_1c + 1;
}
SSL_free(ssl);
*(int8 *)(param_1 + 0x10) = 0;
local_9 = (int1)local_20;
}
return local_9;
}
|
|
58,090
|
OpenSubdiv::v3_6_0::Bfr::Surface<float>::ApplyStencil(float const*, float const*, OpenSubdiv::v3_6_0::Bfr::Surface<float>::PointDescriptor const&, float*) const
|
NVIDIA-RTX[P]OSD-Lite/opensubdiv/bfr/surface.cpp
|
void
Surface<REAL>::ApplyStencil(REAL const stencil[],
REAL const controlPoints[], PointDescriptor const & pointDesc,
REAL result[]) const {
//
// Assemble parameters of the point combination operation and apply:
//
typedef points::Combine1<REAL> PointCombiner;
typename PointCombiner::Parameters combParams;
combParams.pointData = controlPoints;
combParams.pointSize = pointDesc.size;
combParams.pointStride = pointDesc.stride;
combParams.srcCount = GetNumControlPoints();
combParams.srcIndices = 0;
combParams.resultCount = 1;
combParams.resultArray = &result;
combParams.weightArray = &stencil;
PointCombiner::Apply(combParams);
}
|
O0
|
cpp
|
OpenSubdiv::v3_6_0::Bfr::Surface<float>::ApplyStencil(float const*, float const*, OpenSubdiv::v3_6_0::Bfr::Surface<float>::PointDescriptor const&, float*) const:
pushq %rbp
movq %rsp, %rbp
subq $0x60, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movq %rcx, -0x20(%rbp)
movq %r8, -0x28(%rbp)
movq -0x8(%rbp), %rdi
movq -0x18(%rbp), %rax
movq %rax, -0x58(%rbp)
movq -0x20(%rbp), %rax
movl (%rax), %eax
movl %eax, -0x50(%rbp)
movq -0x20(%rbp), %rax
movl 0x4(%rax), %eax
movl %eax, -0x4c(%rbp)
callq 0xce660
movl %eax, -0x40(%rbp)
movq $0x0, -0x48(%rbp)
movl $0x1, -0x3c(%rbp)
leaq -0x28(%rbp), %rax
movq %rax, -0x38(%rbp)
leaq -0x10(%rbp), %rax
movq %rax, -0x30(%rbp)
leaq -0x58(%rbp), %rdi
callq 0xca9f0
addq $0x60, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
nopl (%rax,%rax)
|
_ZNK10OpenSubdiv6v3_6_03Bfr7SurfaceIdE12ApplyStencilEPKdS5_RKNS3_15PointDescriptorEPd:
push rbp
mov rbp, rsp
sub rsp, 60h
mov [rbp+var_8], rdi
mov [rbp+var_10], rsi
mov [rbp+var_18], rdx
mov [rbp+var_20], rcx
mov [rbp+var_28], r8
mov rdi, [rbp+var_8]
mov rax, [rbp+var_18]
mov [rbp+var_58], rax
mov rax, [rbp+var_20]
mov eax, [rax]
mov [rbp+var_50], eax
mov rax, [rbp+var_20]
mov eax, [rax+4]
mov [rbp+var_4C], eax
call __ZNK10OpenSubdiv6v3_6_03Bfr7SurfaceIdE19GetNumControlPointsEv; OpenSubdiv::v3_6_0::Bfr::Surface<double>::GetNumControlPoints(void)
mov [rbp+var_40], eax
mov [rbp+var_48], 0
mov [rbp+var_3C], 1
lea rax, [rbp+var_28]
mov [rbp+var_38], rax
lea rax, [rbp+var_10]
mov [rbp+var_30], rax
lea rdi, [rbp+var_58]
call __ZN10OpenSubdiv6v3_6_03Bfr6points8Combine1IdE5ApplyERKNS2_27CommonCombinationParametersIdEE; OpenSubdiv::v3_6_0::Bfr::points::Combine1<double>::Apply(OpenSubdiv::v3_6_0::Bfr::points::CommonCombinationParameters<double> const&)
add rsp, 60h
pop rbp
retn
|
long long OpenSubdiv::v3_6_0::Bfr::Surface<double>::ApplyStencil(
OpenSubdiv::v3_6_0::Bfr::internal::SurfaceData *a1,
long long a2,
long long a3,
int *a4,
long long a5)
{
long long v6; // [rsp+8h] [rbp-58h] BYREF
int v7; // [rsp+10h] [rbp-50h]
int v8; // [rsp+14h] [rbp-4Ch]
long long v9; // [rsp+18h] [rbp-48h]
int NumControlPoints; // [rsp+20h] [rbp-40h]
int v11; // [rsp+24h] [rbp-3Ch]
_QWORD *v12; // [rsp+28h] [rbp-38h]
_QWORD *v13; // [rsp+30h] [rbp-30h]
_QWORD v14[3]; // [rsp+38h] [rbp-28h] BYREF
_QWORD v15[2]; // [rsp+50h] [rbp-10h] BYREF
v15[1] = a1;
v15[0] = a2;
v14[2] = a3;
v14[1] = a4;
v14[0] = a5;
v6 = a3;
v7 = *a4;
v8 = a4[1];
NumControlPoints = OpenSubdiv::v3_6_0::Bfr::Surface<double>::GetNumControlPoints(a1);
v9 = 0LL;
v11 = 1;
v12 = v14;
v13 = v15;
return OpenSubdiv::v3_6_0::Bfr::points::Combine1<double>::Apply(&v6);
}
| |||
58,091
|
OpenSubdiv::v3_6_0::Bfr::Surface<float>::ApplyStencil(float const*, float const*, OpenSubdiv::v3_6_0::Bfr::Surface<float>::PointDescriptor const&, float*) const
|
NVIDIA-RTX[P]OSD-Lite/opensubdiv/bfr/surface.cpp
|
void
Surface<REAL>::ApplyStencil(REAL const stencil[],
REAL const controlPoints[], PointDescriptor const & pointDesc,
REAL result[]) const {
//
// Assemble parameters of the point combination operation and apply:
//
typedef points::Combine1<REAL> PointCombiner;
typename PointCombiner::Parameters combParams;
combParams.pointData = controlPoints;
combParams.pointSize = pointDesc.size;
combParams.pointStride = pointDesc.stride;
combParams.srcCount = GetNumControlPoints();
combParams.srcIndices = 0;
combParams.resultCount = 1;
combParams.resultArray = &result;
combParams.weightArray = &stencil;
PointCombiner::Apply(combParams);
}
|
O1
|
cpp
|
OpenSubdiv::v3_6_0::Bfr::Surface<float>::ApplyStencil(float const*, float const*, OpenSubdiv::v3_6_0::Bfr::Surface<float>::PointDescriptor const&, float*) const:
subq $0x48, %rsp
leaq 0x10(%rsp), %r9
movq %rsi, (%r9)
leaq 0x8(%rsp), %rsi
movq %r8, (%rsi)
leaq 0x18(%rsp), %rax
movq %rdx, (%rax)
movl (%rcx), %edx
movl %edx, 0x8(%rax)
movl 0x4(%rcx), %ecx
movl %ecx, 0xc(%rax)
movl 0x8(%rdi), %ecx
movl %ecx, 0x18(%rax)
movq $0x0, 0x10(%rax)
movl $0x1, 0x1c(%rax)
movq %rsi, 0x20(%rax)
movq %r9, 0x28(%rax)
movq %rax, %rdi
callq 0x3b3d0
addq $0x48, %rsp
retq
nop
|
_ZNK10OpenSubdiv6v3_6_03Bfr7SurfaceIfE12ApplyStencilEPKfS5_RKNS3_15PointDescriptorEPf:
sub rsp, 48h
lea r9, [rsp+48h+var_38]
mov [r9], rsi
lea rsi, [rsp+48h+var_40]
mov [rsi], r8
lea rax, [rsp+48h+var_30]
mov [rax], rdx
mov edx, [rcx]
mov [rax+8], edx
mov ecx, [rcx+4]
mov [rax+0Ch], ecx
mov ecx, [rdi+8]
mov [rax+18h], ecx
mov qword ptr [rax+10h], 0
mov dword ptr [rax+1Ch], 1
mov [rax+20h], rsi
mov [rax+28h], r9
mov rdi, rax
call __ZN10OpenSubdiv6v3_6_03Bfr6points8Combine1IfE5ApplyERKNS2_27CommonCombinationParametersIfEE; OpenSubdiv::v3_6_0::Bfr::points::Combine1<float>::Apply(OpenSubdiv::v3_6_0::Bfr::points::CommonCombinationParameters<float> const&)
add rsp, 48h
retn
|
long long OpenSubdiv::v3_6_0::Bfr::Surface<float>::ApplyStencil(
long long a1,
long long a2,
long long a3,
int *a4,
long long a5)
{
long long v6; // [rsp+8h] [rbp-40h] BYREF
long long v7; // [rsp+10h] [rbp-38h] BYREF
long long v8; // [rsp+18h] [rbp-30h] BYREF
int v9; // [rsp+20h] [rbp-28h]
int v10; // [rsp+24h] [rbp-24h]
long long v11; // [rsp+28h] [rbp-20h]
int v12; // [rsp+30h] [rbp-18h]
int v13; // [rsp+34h] [rbp-14h]
long long *v14; // [rsp+38h] [rbp-10h]
long long *v15; // [rsp+40h] [rbp-8h]
v7 = a2;
v6 = a5;
v8 = a3;
v9 = *a4;
v10 = a4[1];
v12 = *(_DWORD *)(a1 + 8);
v11 = 0LL;
v13 = 1;
v14 = &v6;
v15 = &v7;
return OpenSubdiv::v3_6_0::Bfr::points::Combine1<float>::Apply(&v8);
}
|
ApplyStencil:
SUB RSP,0x48
LEA R9,[RSP + 0x10]
MOV qword ptr [R9],RSI
LEA RSI,[RSP + 0x8]
MOV qword ptr [RSI],R8
LEA RAX,[RSP + 0x18]
MOV qword ptr [RAX],RDX
MOV EDX,dword ptr [RCX]
MOV dword ptr [RAX + 0x8],EDX
MOV ECX,dword ptr [RCX + 0x4]
MOV dword ptr [RAX + 0xc],ECX
MOV ECX,dword ptr [RDI + 0x8]
MOV dword ptr [RAX + 0x18],ECX
MOV qword ptr [RAX + 0x10],0x0
MOV dword ptr [RAX + 0x1c],0x1
MOV qword ptr [RAX + 0x20],RSI
MOV qword ptr [RAX + 0x28],R9
MOV RDI,RAX
CALL 0x0013b3d0
ADD RSP,0x48
RET
|
/* OpenSubdiv::v3_6_0::Bfr::Surface<float>::ApplyStencil(float const*, float const*,
OpenSubdiv::v3_6_0::Bfr::Surface<float>::PointDescriptor const&, float*) const */
void __thiscall
OpenSubdiv::v3_6_0::Bfr::Surface<float>::ApplyStencil
(Surface<float> *this,float *param_1,float *param_2,PointDescriptor *param_3,
float *param_4)
{
float *local_40;
float *local_38;
float *local_30;
int4 local_28;
int4 local_24;
int8 local_20;
int4 local_18;
int4 local_14;
float **local_10;
float **local_8;
local_8 = &local_38;
local_10 = &local_40;
local_28 = *(int4 *)param_3;
local_24 = *(int4 *)(param_3 + 4);
local_18 = *(int4 *)(this + 8);
local_20 = 0;
local_14 = 1;
local_40 = param_4;
local_38 = param_1;
local_30 = param_2;
points::Combine1<float>::Apply((CommonCombinationParameters *)&local_30);
return;
}
|
|
58,092
|
OpenSubdiv::v3_6_0::Bfr::Surface<float>::ApplyStencil(float const*, float const*, OpenSubdiv::v3_6_0::Bfr::Surface<float>::PointDescriptor const&, float*) const
|
NVIDIA-RTX[P]OSD-Lite/opensubdiv/bfr/surface.cpp
|
void
Surface<REAL>::ApplyStencil(REAL const stencil[],
REAL const controlPoints[], PointDescriptor const & pointDesc,
REAL result[]) const {
//
// Assemble parameters of the point combination operation and apply:
//
typedef points::Combine1<REAL> PointCombiner;
typename PointCombiner::Parameters combParams;
combParams.pointData = controlPoints;
combParams.pointSize = pointDesc.size;
combParams.pointStride = pointDesc.stride;
combParams.srcCount = GetNumControlPoints();
combParams.srcIndices = 0;
combParams.resultCount = 1;
combParams.resultArray = &result;
combParams.weightArray = &stencil;
PointCombiner::Apply(combParams);
}
|
O3
|
cpp
|
OpenSubdiv::v3_6_0::Bfr::Surface<float>::ApplyStencil(float const*, float const*, OpenSubdiv::v3_6_0::Bfr::Surface<float>::PointDescriptor const&, float*) const:
subq $0x48, %rsp
leaq 0x10(%rsp), %r9
movq %rsi, (%r9)
leaq 0x8(%rsp), %rsi
movq %r8, (%rsi)
leaq 0x18(%rsp), %rax
movq %rdx, (%rax)
movq (%rcx), %rcx
movq %rcx, 0x8(%rax)
movl 0x8(%rdi), %ecx
movl %ecx, 0x18(%rax)
movq $0x0, 0x10(%rax)
movl $0x1, 0x1c(%rax)
movq %rsi, 0x20(%rax)
movq %r9, 0x28(%rax)
movq %rax, %rdi
callq 0x39940
addq $0x48, %rsp
retq
nop
|
_ZNK10OpenSubdiv6v3_6_03Bfr7SurfaceIdE12ApplyStencilEPKdS5_RKNS3_15PointDescriptorEPd:
sub rsp, 48h
lea r9, [rsp+48h+var_38]
mov [r9], rsi
lea rsi, [rsp+48h+var_40]
mov [rsi], r8
lea rax, [rsp+48h+var_30]
mov [rax], rdx
mov rcx, [rcx]
mov [rax+8], rcx
mov ecx, [rdi+8]
mov [rax+18h], ecx
mov qword ptr [rax+10h], 0
mov dword ptr [rax+1Ch], 1
mov [rax+20h], rsi
mov [rax+28h], r9
mov rdi, rax
call __ZN10OpenSubdiv6v3_6_03Bfr6points8Combine1IdE5ApplyERKNS2_27CommonCombinationParametersIdEE; OpenSubdiv::v3_6_0::Bfr::points::Combine1<double>::Apply(OpenSubdiv::v3_6_0::Bfr::points::CommonCombinationParameters<double> const&)
add rsp, 48h
retn
|
long long OpenSubdiv::v3_6_0::Bfr::Surface<double>::ApplyStencil(
long long a1,
long long a2,
long long a3,
_QWORD *a4,
long long a5)
{
long long v6; // [rsp+8h] [rbp-40h] BYREF
long long v7; // [rsp+10h] [rbp-38h] BYREF
_QWORD v8[3]; // [rsp+18h] [rbp-30h] BYREF
int v9; // [rsp+30h] [rbp-18h]
int v10; // [rsp+34h] [rbp-14h]
long long *v11; // [rsp+38h] [rbp-10h]
long long *v12; // [rsp+40h] [rbp-8h]
v7 = a2;
v6 = a5;
v8[0] = a3;
v8[1] = *a4;
v9 = *(_DWORD *)(a1 + 8);
v8[2] = 0LL;
v10 = 1;
v11 = &v6;
v12 = &v7;
return OpenSubdiv::v3_6_0::Bfr::points::Combine1<double>::Apply(v8);
}
|
ApplyStencil:
SUB RSP,0x48
LEA R9,[RSP + 0x10]
MOV qword ptr [R9],RSI
LEA RSI,[RSP + 0x8]
MOV qword ptr [RSI],R8
LEA RAX,[RSP + 0x18]
MOV qword ptr [RAX],RDX
MOV RCX,qword ptr [RCX]
MOV qword ptr [RAX + 0x8],RCX
MOV ECX,dword ptr [RDI + 0x8]
MOV dword ptr [RAX + 0x18],ECX
MOV qword ptr [RAX + 0x10],0x0
MOV dword ptr [RAX + 0x1c],0x1
MOV qword ptr [RAX + 0x20],RSI
MOV qword ptr [RAX + 0x28],R9
MOV RDI,RAX
CALL 0x00139940
ADD RSP,0x48
RET
|
/* OpenSubdiv::v3_6_0::Bfr::Surface<double>::ApplyStencil(double const*, double const*,
OpenSubdiv::v3_6_0::Bfr::Surface<double>::PointDescriptor const&, double*) const */
void __thiscall
OpenSubdiv::v3_6_0::Bfr::Surface<double>::ApplyStencil
(Surface<double> *this,double *param_1,double *param_2,PointDescriptor *param_3,
double *param_4)
{
double *local_40;
double *local_38;
double *local_30;
int8 local_28;
int8 local_20;
int4 local_18;
int4 local_14;
double **local_10;
double **local_8;
local_8 = &local_38;
local_10 = &local_40;
local_28 = *(int8 *)param_3;
local_18 = *(int4 *)(this + 8);
local_20 = 0;
local_14 = 1;
local_40 = param_4;
local_38 = param_1;
local_30 = param_2;
points::Combine1<double>::Apply((CommonCombinationParameters *)&local_30);
return;
}
|
|
58,093
|
lre_case_conv
|
bluesky950520[P]quickjs/libunicode.c
|
int lre_case_conv(uint32_t *res, uint32_t c, int conv_type)
{
if (c < 128) {
if (conv_type) {
if (c >= 'A' && c <= 'Z') {
c = c - 'A' + 'a';
}
} else {
if (c >= 'a' && c <= 'z') {
c = c - 'a' + 'A';
}
}
} else {
uint32_t v, code, len;
int idx, idx_min, idx_max;
idx_min = 0;
idx_max = countof(case_conv_table1) - 1;
while (idx_min <= idx_max) {
idx = (unsigned)(idx_max + idx_min) / 2;
v = case_conv_table1[idx];
code = v >> (32 - 17);
len = (v >> (32 - 17 - 7)) & 0x7f;
if (c < code) {
idx_max = idx - 1;
} else if (c >= code + len) {
idx_min = idx + 1;
} else {
return lre_case_conv_entry(res, c, conv_type, idx, v);
}
}
}
res[0] = c;
return 1;
}
|
O1
|
c
|
lre_case_conv:
pushq %rbp
pushq %r14
pushq %rbx
movl %esi, %r14d
movq %rdi, %rbx
cmpl $0x80, %esi
jae 0x980b6
testl %edx, %edx
je 0x98105
leal -0x41(%r14), %eax
movl %r14d, %ecx
orl $0x20, %ecx
jmp 0x9810d
xorl %ebp, %ebp
movl $0x179, %edi # imm = 0x179
leaq 0xb77c(%rip), %rsi # 0xa3840
xorl %r9d, %r9d
leal (%rdi,%r9), %ecx
shrl %ecx
movl (%rsi,%rcx,4), %r8d
movl %r8d, %eax
shrl $0xf, %eax
cmpl %r14d, %eax
jbe 0x980e2
decl %ecx
movl %ecx, %edi
jmp 0x980fa
movl %r8d, %r9d
shrl $0x8, %r9d
andl $0x7f, %r9d
addl %eax, %r9d
cmpl %r14d, %r9d
ja 0x98119
incl %ecx
movl %ecx, %r9d
cmpl %edi, %r9d
setg %bpl
jle 0x980c7
jmp 0x98124
leal -0x61(%r14), %eax
leal -0x20(%r14), %ecx
cmpl $0x1a, %eax
cmovael %r14d, %ecx
movl %ecx, %r14d
jmp 0x9812a
movq %rbx, %rdi
movl %r14d, %esi
callq 0x98137
testb $0x1, %bpl
je 0x98132
movl %r14d, (%rbx)
movl $0x1, %eax
popq %rbx
popq %r14
popq %rbp
retq
|
lre_case_conv:
push rbp
push r14
push rbx
mov r14d, esi
mov rbx, rdi
cmp esi, 80h
jnb short loc_980B6
test edx, edx
jz short loc_98105
lea eax, [r14-41h]
mov ecx, r14d
or ecx, 20h
jmp short loc_9810D
loc_980B6:
xor ebp, ebp
mov edi, 179h
lea rsi, case_conv_table1
xor r9d, r9d
loc_980C7:
lea ecx, [rdi+r9]
shr ecx, 1
mov r8d, [rsi+rcx*4]
mov eax, r8d
shr eax, 0Fh
cmp eax, r14d
jbe short loc_980E2
dec ecx
mov edi, ecx
jmp short loc_980FA
loc_980E2:
mov r9d, r8d
shr r9d, 8
and r9d, 7Fh
add r9d, eax
cmp r9d, r14d
ja short loc_98119
inc ecx
mov r9d, ecx
loc_980FA:
cmp r9d, edi
setnle bpl
jle short loc_980C7
jmp short loc_98124
loc_98105:
lea eax, [r14-61h]
lea ecx, [r14-20h]
loc_9810D:
cmp eax, 1Ah
cmovnb ecx, r14d
mov r14d, ecx
jmp short loc_9812A
loc_98119:
mov rdi, rbx
mov esi, r14d
call lre_case_conv_entry
loc_98124:
test bpl, 1
jz short loc_98132
loc_9812A:
mov [rbx], r14d
mov eax, 1
loc_98132:
pop rbx
pop r14
pop rbp
retn
|
long long lre_case_conv(unsigned int *a1, unsigned int a2, int a3)
{
unsigned int v3; // r14d
unsigned int v5; // eax
int v6; // ecx
bool v7; // bp
int v8; // edi
int v9; // r9d
long long v10; // rcx
long long result; // rax
v3 = a2;
if ( a2 < 0x80 )
{
if ( a3 )
{
v5 = a2 - 65;
v6 = a2 | 0x20;
}
else
{
v5 = a2 - 97;
v6 = a2 - 32;
}
if ( v5 >= 0x1A )
v6 = a2;
v3 = v6;
goto LABEL_17;
}
v7 = 0;
v8 = 377;
v9 = 0;
while ( 1 )
{
v10 = (unsigned int)(v8 + v9) >> 1;
result = case_conv_table1[v10] >> 15;
if ( (unsigned int)result <= a2 )
break;
v8 = v10 - 1;
LABEL_9:
v7 = v9 > v8;
if ( v9 > v8 )
goto LABEL_16;
}
if ( (unsigned int)result + ((case_conv_table1[v10] >> 8) & 0x7F) <= a2 )
{
v9 = v10 + 1;
goto LABEL_9;
}
result = lre_case_conv_entry(a1, a2);
LABEL_16:
if ( v7 )
{
LABEL_17:
*a1 = v3;
return 1LL;
}
return result;
}
| |||
58,094
|
lre_case_conv
|
bluesky950520[P]quickjs/libunicode.c
|
int lre_case_conv(uint32_t *res, uint32_t c, int conv_type)
{
if (c < 128) {
if (conv_type) {
if (c >= 'A' && c <= 'Z') {
c = c - 'A' + 'a';
}
} else {
if (c >= 'a' && c <= 'z') {
c = c - 'a' + 'A';
}
}
} else {
uint32_t v, code, len;
int idx, idx_min, idx_max;
idx_min = 0;
idx_max = countof(case_conv_table1) - 1;
while (idx_min <= idx_max) {
idx = (unsigned)(idx_max + idx_min) / 2;
v = case_conv_table1[idx];
code = v >> (32 - 17);
len = (v >> (32 - 17 - 7)) & 0x7f;
if (c < code) {
idx_max = idx - 1;
} else if (c >= code + len) {
idx_min = idx + 1;
} else {
return lre_case_conv_entry(res, c, conv_type, idx, v);
}
}
}
res[0] = c;
return 1;
}
|
O2
|
c
|
lre_case_conv:
cmpl $0x80, %esi
jae 0x7eefe
testl %edx, %edx
je 0x7ef4a
leal -0x41(%rsi), %eax
movl %esi, %ecx
orl $0x20, %ecx
jmp 0x7ef50
movl $0x179, %r9d # imm = 0x179
xorl %r10d, %r10d
leaq 0xb842(%rip), %rax # 0x8a750
cmpl %r9d, %r10d
jg 0x7ef58
leal (%r9,%r10), %ecx
shrl %ecx
movl (%rax,%rcx,4), %r8d
movl %r8d, %r11d
shrl $0xf, %r11d
cmpl %esi, %r11d
jbe 0x7ef30
decl %ecx
movl %ecx, %r9d
jmp 0x7ef0e
movl %r8d, %r10d
shrl $0x8, %r10d
andl $0x7f, %r10d
addl %r11d, %r10d
cmpl %esi, %r10d
ja 0x7ef5e
incl %ecx
movl %ecx, %r10d
jmp 0x7ef0e
leal -0x61(%rsi), %eax
leal -0x20(%rsi), %ecx
cmpl $0x1a, %eax
cmovael %esi, %ecx
movl %ecx, %esi
movl %esi, (%rdi)
pushq $0x1
popq %rax
retq
jmp 0x7ef60
|
lre_case_conv:
cmp esi, 80h
jnb short loc_7EEFE
test edx, edx
jz short loc_7EF4A
lea eax, [rsi-41h]
mov ecx, esi
or ecx, 20h
jmp short loc_7EF50
loc_7EEFE:
mov r9d, 179h
xor r10d, r10d
lea rax, case_conv_table1
loc_7EF0E:
cmp r10d, r9d
jg short loc_7EF58
lea ecx, [r9+r10]
shr ecx, 1
mov r8d, [rax+rcx*4]
mov r11d, r8d
shr r11d, 0Fh
cmp r11d, esi
jbe short loc_7EF30
dec ecx
mov r9d, ecx
jmp short loc_7EF0E
loc_7EF30:
mov r10d, r8d
shr r10d, 8
and r10d, 7Fh
add r10d, r11d
cmp r10d, esi
ja short loc_7EF5E
inc ecx
mov r10d, ecx
jmp short loc_7EF0E
loc_7EF4A:
lea eax, [rsi-61h]
lea ecx, [rsi-20h]
loc_7EF50:
cmp eax, 1Ah
cmovnb ecx, esi
mov esi, ecx
loc_7EF58:
mov [rdi], esi
push 1
pop rax
retn
loc_7EF5E:
jmp short $+2
|
long long lre_case_conv(unsigned int *a1, unsigned int a2, int a3)
{
unsigned int v3; // eax
int v4; // ecx
int v5; // r9d
int v6; // r10d
long long v7; // rcx
unsigned int v8; // r11d
if ( a2 >= 0x80 )
{
v5 = 377;
v6 = 0;
while ( v6 <= v5 )
{
v7 = (unsigned int)(v5 + v6) >> 1;
v8 = case_conv_table1[v7] >> 15;
if ( v8 <= a2 )
{
if ( v8 + ((case_conv_table1[v7] >> 8) & 0x7F) > a2 )
return lre_case_conv_entry();
v6 = v7 + 1;
}
else
{
v5 = v7 - 1;
}
}
}
else
{
if ( a3 )
{
v3 = a2 - 65;
v4 = a2 | 0x20;
}
else
{
v3 = a2 - 97;
v4 = a2 - 32;
}
if ( v3 >= 0x1A )
v4 = a2;
a2 = v4;
}
*a1 = a2;
return 1LL;
}
|
lre_case_conv:
CMP ESI,0x80
JNC 0x0017eefe
TEST EDX,EDX
JZ 0x0017ef4a
LEA EAX,[RSI + -0x41]
MOV ECX,ESI
OR ECX,0x20
JMP 0x0017ef50
LAB_0017eefe:
MOV R9D,0x179
XOR R10D,R10D
LEA RAX,[0x18a750]
LAB_0017ef0e:
CMP R10D,R9D
JG 0x0017ef58
LEA ECX,[R9 + R10*0x1]
SHR ECX,0x1
MOV R8D,dword ptr [RAX + RCX*0x4]
MOV R11D,R8D
SHR R11D,0xf
CMP R11D,ESI
JBE 0x0017ef30
DEC ECX
MOV R9D,ECX
JMP 0x0017ef0e
LAB_0017ef30:
MOV R10D,R8D
SHR R10D,0x8
AND R10D,0x7f
ADD R10D,R11D
CMP R10D,ESI
JA 0x0017ef5e
INC ECX
MOV R10D,ECX
JMP 0x0017ef0e
LAB_0017ef4a:
LEA EAX,[RSI + -0x61]
LEA ECX,[RSI + -0x20]
LAB_0017ef50:
CMP EAX,0x1a
CMOVNC ECX,ESI
MOV ESI,ECX
LAB_0017ef58:
MOV dword ptr [RDI],ESI
PUSH 0x1
POP RAX
RET
LAB_0017ef5e:
JMP 0x0017ef60
|
int8 lre_case_conv(uint *param_1,uint param_2,int param_3)
{
uint uVar1;
int8 uVar2;
uint uVar3;
int iVar4;
int iVar5;
if (param_2 < 0x80) {
if (param_3 == 0) {
uVar1 = param_2 - 0x61;
uVar3 = param_2 - 0x20;
}
else {
uVar1 = param_2 - 0x41;
uVar3 = param_2 | 0x20;
}
if (0x19 < uVar1) {
uVar3 = param_2;
}
}
else {
iVar4 = 0x179;
iVar5 = 0;
while (uVar3 = param_2, iVar5 <= iVar4) {
uVar3 = (uint)(iVar4 + iVar5) >> 1;
uVar1 = (uint)(&case_conv_table1)[uVar3] >> 0xf;
if (param_2 < uVar1) {
iVar4 = uVar3 - 1;
}
else {
if (param_2 < ((uint)(&case_conv_table1)[uVar3] >> 8 & 0x7f) + uVar1) {
uVar2 = lre_case_conv_entry();
return uVar2;
}
iVar5 = uVar3 + 1;
}
}
}
*param_1 = uVar3;
return 1;
}
|
|
58,095
|
lre_case_conv
|
bluesky950520[P]quickjs/libunicode.c
|
int lre_case_conv(uint32_t *res, uint32_t c, int conv_type)
{
if (c < 128) {
if (conv_type) {
if (c >= 'A' && c <= 'Z') {
c = c - 'A' + 'a';
}
} else {
if (c >= 'a' && c <= 'z') {
c = c - 'a' + 'A';
}
}
} else {
uint32_t v, code, len;
int idx, idx_min, idx_max;
idx_min = 0;
idx_max = countof(case_conv_table1) - 1;
while (idx_min <= idx_max) {
idx = (unsigned)(idx_max + idx_min) / 2;
v = case_conv_table1[idx];
code = v >> (32 - 17);
len = (v >> (32 - 17 - 7)) & 0x7f;
if (c < code) {
idx_max = idx - 1;
} else if (c >= code + len) {
idx_min = idx + 1;
} else {
return lre_case_conv_entry(res, c, conv_type, idx, v);
}
}
}
res[0] = c;
return 1;
}
|
O3
|
c
|
lre_case_conv:
cmpl $0x80, %esi
jae 0x9a9d6
testl %edx, %edx
je 0x9aa22
leal -0x41(%rsi), %eax
movl %esi, %ecx
orl $0x20, %ecx
jmp 0x9aa28
xorl %r10d, %r10d
movl $0x179, %r9d # imm = 0x179
leaq 0xbe0a(%rip), %rax # 0xa67f0
leal (%r9,%r10), %ecx
shrl %ecx
movl (%rax,%rcx,4), %r8d
movl %r8d, %r11d
shrl $0xf, %r11d
cmpl %esi, %r11d
jbe 0x9aa03
decl %ecx
movl %ecx, %r9d
jmp 0x9aa1b
movl %r8d, %r10d
shrl $0x8, %r10d
andl $0x7f, %r10d
addl %r11d, %r10d
cmpl %esi, %r10d
ja 0x9aa38
incl %ecx
movl %ecx, %r10d
cmpl %r9d, %r10d
jle 0x9a9e6
jmp 0x9aa30
leal -0x61(%rsi), %eax
leal -0x20(%rsi), %ecx
cmpl $0x1a, %eax
cmovael %esi, %ecx
movl %ecx, %esi
movl %esi, (%rdi)
movl $0x1, %eax
retq
jmp 0x9aa3a
|
lre_case_conv:
cmp esi, 80h
jnb short loc_9A9D6
test edx, edx
jz short loc_9AA22
lea eax, [rsi-41h]
mov ecx, esi
or ecx, 20h
jmp short loc_9AA28
loc_9A9D6:
xor r10d, r10d
mov r9d, 179h
lea rax, case_conv_table1
loc_9A9E6:
lea ecx, [r9+r10]
shr ecx, 1
mov r8d, [rax+rcx*4]
mov r11d, r8d
shr r11d, 0Fh
cmp r11d, esi
jbe short loc_9AA03
dec ecx
mov r9d, ecx
jmp short loc_9AA1B
loc_9AA03:
mov r10d, r8d
shr r10d, 8
and r10d, 7Fh
add r10d, r11d
cmp r10d, esi
ja short loc_9AA38
inc ecx
mov r10d, ecx
loc_9AA1B:
cmp r10d, r9d
jle short loc_9A9E6
jmp short loc_9AA30
loc_9AA22:
lea eax, [rsi-61h]
lea ecx, [rsi-20h]
loc_9AA28:
cmp eax, 1Ah
cmovnb ecx, esi
mov esi, ecx
loc_9AA30:
mov [rdi], esi
mov eax, 1
retn
loc_9AA38:
jmp short $+2
|
long long lre_case_conv(unsigned int *a1, unsigned int a2, int a3)
{
unsigned int v3; // eax
int v4; // ecx
int v5; // r10d
int v6; // r9d
long long v7; // rcx
unsigned int v8; // r11d
if ( a2 >= 0x80 )
{
v5 = 0;
v6 = 377;
while ( 1 )
{
v7 = (unsigned int)(v6 + v5) >> 1;
v8 = case_conv_table1[v7] >> 15;
if ( v8 <= a2 )
{
if ( v8 + ((case_conv_table1[v7] >> 8) & 0x7F) > a2 )
return lre_case_conv_entry();
v5 = v7 + 1;
}
else
{
v6 = v7 - 1;
}
if ( v5 > v6 )
goto LABEL_15;
}
}
if ( a3 )
{
v3 = a2 - 65;
v4 = a2 | 0x20;
}
else
{
v3 = a2 - 97;
v4 = a2 - 32;
}
if ( v3 >= 0x1A )
v4 = a2;
a2 = v4;
LABEL_15:
*a1 = a2;
return 1LL;
}
|
lre_case_conv:
CMP ESI,0x80
JNC 0x0019a9d6
TEST EDX,EDX
JZ 0x0019aa22
LEA EAX,[RSI + -0x41]
MOV ECX,ESI
OR ECX,0x20
JMP 0x0019aa28
LAB_0019a9d6:
XOR R10D,R10D
MOV R9D,0x179
LEA RAX,[0x1a67f0]
LAB_0019a9e6:
LEA ECX,[R9 + R10*0x1]
SHR ECX,0x1
MOV R8D,dword ptr [RAX + RCX*0x4]
MOV R11D,R8D
SHR R11D,0xf
CMP R11D,ESI
JBE 0x0019aa03
DEC ECX
MOV R9D,ECX
JMP 0x0019aa1b
LAB_0019aa03:
MOV R10D,R8D
SHR R10D,0x8
AND R10D,0x7f
ADD R10D,R11D
CMP R10D,ESI
JA 0x0019aa38
INC ECX
MOV R10D,ECX
LAB_0019aa1b:
CMP R10D,R9D
JLE 0x0019a9e6
JMP 0x0019aa30
LAB_0019aa22:
LEA EAX,[RSI + -0x61]
LEA ECX,[RSI + -0x20]
LAB_0019aa28:
CMP EAX,0x1a
CMOVNC ECX,ESI
MOV ESI,ECX
LAB_0019aa30:
MOV dword ptr [RDI],ESI
MOV EAX,0x1
RET
LAB_0019aa38:
JMP 0x0019aa3a
|
int8 lre_case_conv(uint *param_1,uint param_2,int param_3)
{
uint uVar1;
int8 uVar2;
uint uVar3;
int iVar4;
int iVar5;
if (param_2 < 0x80) {
if (param_3 == 0) {
uVar1 = param_2 - 0x61;
uVar3 = param_2 - 0x20;
}
else {
uVar1 = param_2 - 0x41;
uVar3 = param_2 | 0x20;
}
if (0x19 < uVar1) {
uVar3 = param_2;
}
}
else {
iVar5 = 0;
iVar4 = 0x179;
do {
uVar3 = (uint)(iVar4 + iVar5) >> 1;
uVar1 = (uint)(&case_conv_table1)[uVar3] >> 0xf;
if (param_2 < uVar1) {
iVar4 = uVar3 - 1;
}
else {
if (param_2 < ((uint)(&case_conv_table1)[uVar3] >> 8 & 0x7f) + uVar1) {
uVar2 = lre_case_conv_entry();
return uVar2;
}
iVar5 = uVar3 + 1;
}
uVar3 = param_2;
} while (iVar5 <= iVar4);
}
*param_1 = uVar3;
return 1;
}
|
|
58,096
|
minja::Parser::parseMathPlusMinus()
|
monkey531[P]llama/common/minja.hpp
|
std::shared_ptr<Expression> parseMathPlusMinus() {
static std::regex plus_minus_tok(R"(\+|-(?![}%#]\}))");
auto left = parseMathMulDiv();
if (!left) throw std::runtime_error("Expected left side of 'math plus/minus' expression");
std::string op_str;
while (!(op_str = consumeToken(plus_minus_tok)).empty()) {
auto right = parseMathMulDiv();
if (!right) throw std::runtime_error("Expected right side of 'math plus/minus' expression");
auto op = op_str == "+" ? BinaryOpExpr::Op::Add : BinaryOpExpr::Op::Sub;
left = std::make_shared<BinaryOpExpr>(get_location(), std::move(left), std::move(right), op);
}
return left;
}
|
O2
|
cpp
|
minja::Parser::parseMathPlusMinus():
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x78, %rsp
movq %rsi, %r15
movq %rdi, %rbx
leaq 0x7c2fb(%rip), %rax # 0xdd078
movb (%rax), %al
testb %al, %al
movq %rdi, 0x8(%rsp)
je 0x60ed4
movq %rbx, %rdi
movq %r15, %rsi
callq 0x60fde
cmpq $0x0, (%rbx)
je 0x60f2e
leaq 0x48(%rsp), %rax
movq %rax, -0x10(%rax)
andq $0x0, -0x8(%rax)
movb $0x0, (%rax)
leaq 0x58(%rsp), %r14
leaq 0x38(%rsp), %r13
leaq 0x18(%rsp), %rbp
leaq 0x28(%rsp), %r12
movq %r14, %rdi
movq %r15, %rsi
leaq 0x7c285(%rip), %rdx # 0xdd058
pushq $0x1
popq %rcx
callq 0x5d58c
movq %r13, %rdi
movq %r14, %rsi
callq 0x21850
movq 0x8(%rax), %rbx
movq %r14, %rdi
callq 0x21dc8
testq %rbx, %rbx
je 0x60e81
movq %rbp, %rdi
movq %r15, %rsi
movq 0x8(%rsp), %rbx
callq 0x60fde
cmpq $0x0, 0x18(%rsp)
je 0x60e9f
movq %r13, %rdi
leaq 0x355d1(%rip), %rsi # 0x963f2
callq 0x3afd1
movzbl %al, %eax
pushq $0x2
popq %rcx
subl %eax, %ecx
movl %ecx, 0x14(%rsp)
movq %r14, %rdi
movq %r15, %rsi
callq 0x5d168
movq %r12, %rdi
movq %r14, %rsi
movq %rbx, %rdx
movq %rbp, %rcx
leaq 0x14(%rsp), %r8
callq 0x60b62
movq %rbx, %rdi
movq %r12, %rsi
callq 0x6d15a
leaq 0x30(%rsp), %rdi
callq 0x401f4
leaq 0x60(%rsp), %rdi
callq 0x401f4
leaq 0x20(%rsp), %rdi
callq 0x401f4
jmp 0x60dc6
leaq 0x38(%rsp), %rdi
callq 0x21dc8
movq 0x8(%rsp), %rax
addq $0x78, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
pushq $0x10
popq %rdi
callq 0x213a0
movq %rax, %r15
leaq 0x3c2bb(%rip), %rsi # 0x9d16c
movq %rax, %rdi
callq 0x21280
movq 0x7b128(%rip), %rsi # 0xdbfe8
movq 0x7b0a1(%rip), %rdx # 0xdbf68
movq %r15, %rdi
callq 0x21b70
jmp 0x60f5e
leaq 0x7c19d(%rip), %rdi # 0xdd078
callq 0x21c40
testl %eax, %eax
je 0x60d8c
leaq 0x7c169(%rip), %rdi # 0xdd058
leaq 0x3c233(%rip), %rsi # 0x9d129
pushq $0x10
popq %rdx
callq 0x359a2
leaq -0x2b4fd(%rip), %rdi # 0x35a08
leaq 0x7c14c(%rip), %rsi # 0xdd058
leaq 0x7b7d5(%rip), %rdx # 0xdc6e8
callq 0x21600
leaq 0x7c159(%rip), %rdi # 0xdd078
callq 0x21490
movq 0x8(%rsp), %rbx
jmp 0x60d8c
pushq $0x10
popq %rdi
callq 0x213a0
movq %rax, %r15
leaq 0x3c1f9(%rip), %rsi # 0x9d139
movq %rax, %rdi
callq 0x21280
movq 0x7b099(%rip), %rsi # 0xdbfe8
movq 0x7b012(%rip), %rdx # 0xdbf68
movq %r15, %rdi
callq 0x21b70
movq %rax, %r14
leaq 0x7c110(%rip), %rdi # 0xdd078
callq 0x21480
jmp 0x60fd6
movq %rax, %r14
jmp 0x60f7f
movq %rax, %r14
movq %r15, %rdi
callq 0x21530
movq 0x8(%rsp), %rbx
jmp 0x60fca
jmp 0x60f95
movq %rax, %r14
movq %r15, %rdi
callq 0x21530
jmp 0x60fa7
movq %rax, %r14
jmp 0x60fa7
movq %rax, %r14
leaq 0x60(%rsp), %rdi
callq 0x401f4
leaq 0x20(%rsp), %rdi
callq 0x401f4
jmp 0x60fbb
movq %rax, %r14
jmp 0x60fc0
movq %rax, %r14
movq 0x8(%rsp), %rbx
leaq 0x38(%rsp), %rdi
callq 0x21dc8
addq $0x8, %rbx
movq %rbx, %rdi
callq 0x401f4
movq %r14, %rdi
callq 0x21be0
|
_ZN5minja6Parser18parseMathPlusMinusEv:
push rbp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 78h
mov r15, rsi
mov rbx, rdi
lea rax, _ZGVZN5minja6Parser18parseMathPlusMinusEvE14plus_minus_tokB5cxx11; `guard variable for'minja::Parser::parseMathPlusMinus(void)::plus_minus_tok
mov al, [rax]
test al, al
mov [rsp+0A8h+var_A0], rdi
jz loc_60ED4
loc_60D8C:
mov rdi, rbx; this
mov rsi, r15
call _ZN5minja6Parser15parseMathMulDivEv; minja::Parser::parseMathMulDiv(void)
cmp qword ptr [rbx], 0
jz loc_60F2E
lea rax, [rsp+0A8h+var_60]
mov [rax-10h], rax
and qword ptr [rax-8], 0
mov byte ptr [rax], 0
lea r14, [rsp+0A8h+var_50]
lea r13, [rsp+0A8h+var_70]
lea rbp, [rsp+0A8h+var_90]
lea r12, [rsp+0A8h+var_80]
loc_60DC6:
mov rdi, r14
mov rsi, r15
lea rdx, _ZZN5minja6Parser18parseMathPlusMinusEvE14plus_minus_tokB5cxx11; minja::Parser::parseMathPlusMinus(void)::plus_minus_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, r13
mov rsi, r14
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEOS4_; std::string::operator=(std::string&&)
mov rbx, [rax+8]
mov rdi, r14; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
test rbx, rbx
jz loc_60E81
mov rdi, rbp; this
mov rsi, r15
mov rbx, [rsp+0A8h+var_A0]
call _ZN5minja6Parser15parseMathMulDivEv; minja::Parser::parseMathMulDiv(void)
cmp [rsp+0A8h+var_90], 0
jz loc_60E9F
mov rdi, r13
lea rsi, aX10_1+7; "+"
call _ZSteqIcSt11char_traitsIcESaIcEEbRKNSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_; std::operator==<char>(std::string const&,char const*)
movzx eax, al
push 2
pop rcx
sub ecx, eax
mov [rsp+0A8h+var_94], ecx
mov rdi, r14; this
mov rsi, r15
call _ZNK5minja6Parser12get_locationEv; minja::Parser::get_location(void)
mov rdi, r12
mov rsi, r14
mov rdx, rbx
mov rcx, rbp
lea r8, [rsp+0A8h+var_94]
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, rbx
mov rsi, r12
call _ZNSt12__shared_ptrIN5minja10ExpressionELN9__gnu_cxx12_Lock_policyE2EEaSINS0_12BinaryOpExprEEENSt9enable_ifIXsr20__sp_compatible_withIPT_PS1_EE5valueERS4_E4typeEOS_IS8_LS3_2EE
lea rdi, [rsp+0A8h+var_78]
call _ZNSt14__shared_countILN9__gnu_cxx12_Lock_policyE2EED2Ev; std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count()
lea rdi, [rsp+0A8h+var_48]
call _ZNSt14__shared_countILN9__gnu_cxx12_Lock_policyE2EED2Ev; std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count()
lea rdi, [rsp+0A8h+var_88]
call _ZNSt14__shared_countILN9__gnu_cxx12_Lock_policyE2EED2Ev; std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count()
jmp loc_60DC6
loc_60E81:
lea rdi, [rsp+0A8h+var_70]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
mov rax, [rsp+0A8h+var_A0]
add rsp, 78h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
loc_60E9F:
push 10h
pop rdi; thrown_size
call ___cxa_allocate_exception
mov r15, rax
lea rsi, aExpectedRightS_4; "Expected right side of 'math plus/minus"...
mov rdi, rax; this
call __ZNSt13runtime_errorC1EPKc; std::runtime_error::runtime_error(char const*)
mov rsi, cs:lptinfo; lptinfo
mov rdx, cs:_ZNSt13runtime_errorD1Ev_ptr; void (*)(void *)
mov rdi, r15; void *
call ___cxa_throw
jmp loc_60F5E
loc_60ED4:
lea rdi, _ZGVZN5minja6Parser18parseMathPlusMinusEvE14plus_minus_tokB5cxx11; __guard *
call ___cxa_guard_acquire
test eax, eax
jz loc_60D8C
lea rdi, _ZZN5minja6Parser18parseMathPlusMinusEvE14plus_minus_tokB5cxx11; minja::Parser::parseMathPlusMinus(void)::plus_minus_tok
lea rsi, asc_9D129; "\\+|-(?![}%#]\\})"
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, _ZZN5minja6Parser18parseMathPlusMinusEvE14plus_minus_tokB5cxx11; obj
lea rdx, __dso_handle; lpdso_handle
call ___cxa_atexit
lea rdi, _ZGVZN5minja6Parser18parseMathPlusMinusEvE14plus_minus_tokB5cxx11; __guard *
call ___cxa_guard_release
mov rbx, [rsp+0A8h+var_A0]
jmp loc_60D8C
loc_60F2E:
push 10h
pop rdi; thrown_size
call ___cxa_allocate_exception
mov r15, rax
lea rsi, aExpectedLeftSi_4; "Expected left side of 'math plus/minus'"...
mov rdi, rax; this
call __ZNSt13runtime_errorC1EPKc; std::runtime_error::runtime_error(char const*)
mov rsi, cs:lptinfo; lptinfo
mov rdx, cs:_ZNSt13runtime_errorD1Ev_ptr; void (*)(void *)
mov rdi, r15; void *
call ___cxa_throw
loc_60F5E:
mov r14, rax
lea rdi, _ZGVZN5minja6Parser18parseMathPlusMinusEvE14plus_minus_tokB5cxx11; __guard *
call ___cxa_guard_abort
jmp short loc_60FD6
mov r14, rax
jmp short loc_60F7F
mov r14, rax
mov rdi, r15; void *
call ___cxa_free_exception
loc_60F7F:
mov rbx, [rsp+0A8h+var_A0]
jmp short loc_60FCA
jmp short loc_60F95
mov r14, rax
mov rdi, r15; void *
call ___cxa_free_exception
jmp short loc_60FA7
loc_60F95:
mov r14, rax
jmp short loc_60FA7
mov r14, rax
lea rdi, [rsp+0A8h+var_48]
call _ZNSt14__shared_countILN9__gnu_cxx12_Lock_policyE2EED2Ev; std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count()
loc_60FA7:
lea rdi, [rsp+0A8h+var_88]
call _ZNSt14__shared_countILN9__gnu_cxx12_Lock_policyE2EED2Ev; std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count()
jmp short loc_60FBB
mov r14, rax
jmp short loc_60FC0
mov r14, rax
loc_60FBB:
mov rbx, [rsp+0A8h+var_A0]
loc_60FC0:
lea rdi, [rsp+0A8h+var_70]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
loc_60FCA:
add rbx, 8
mov rdi, rbx
call _ZNSt14__shared_countILN9__gnu_cxx12_Lock_policyE2EED2Ev; std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count()
loc_60FD6:
mov rdi, r14
call __Unwind_Resume
|
minja::Parser * minja::Parser::parseMathPlusMinus(minja::Parser *this, _QWORD *a2)
{
minja::Parser *v2; // rbx
long long v3; // rbx
std::runtime_error *v5; // r15
std::runtime_error *exception; // r15
int v7; // [rsp+14h] [rbp-94h] BYREF
long long v8; // [rsp+18h] [rbp-90h] BYREF
long long v9; // [rsp+20h] [rbp-88h] BYREF
_BYTE v10[8]; // [rsp+28h] [rbp-80h] BYREF
long long v11; // [rsp+30h] [rbp-78h] BYREF
_QWORD v12[2]; // [rsp+38h] [rbp-70h] BYREF
char v13; // [rsp+48h] [rbp-60h] BYREF
long long v14; // [rsp+58h] [rbp-50h] BYREF
_QWORD v15[9]; // [rsp+60h] [rbp-48h] BYREF
v2 = this;
if ( !(_BYTE)`guard variable for'minja::Parser::parseMathPlusMinus(void)::plus_minus_tok[abi:cxx11]
&& __cxa_guard_acquire(&`guard variable for'minja::Parser::parseMathPlusMinus(void)::plus_minus_tok[abi:cxx11]) )
{
std::basic_regex<char,std::regex_traits<char>>::basic_regex(
(long long)&minja::Parser::parseMathPlusMinus(void)::plus_minus_tok[abi:cxx11],
(long long)"\\+|-(?![}%#]\\})",
0x10u);
__cxa_atexit(
(void (*)(void *))std::basic_regex<char,std::regex_traits<char>>::~basic_regex,
&minja::Parser::parseMathPlusMinus(void)::plus_minus_tok[abi:cxx11],
&_dso_handle);
__cxa_guard_release(&`guard variable for'minja::Parser::parseMathPlusMinus(void)::plus_minus_tok[abi:cxx11]);
v2 = this;
}
minja::Parser::parseMathMulDiv(v2);
if ( !*(_QWORD *)v2 )
{
exception = (std::runtime_error *)__cxa_allocate_exception(0x10uLL);
std::runtime_error::runtime_error(exception, "Expected left side of 'math plus/minus' expression");
__cxa_throw(
exception,
(struct type_info *)&`typeinfo for'std::runtime_error,
(void (*)(void *))&std::runtime_error::~runtime_error);
}
v12[0] = &v13;
v12[1] = 0LL;
v13 = 0;
while ( 1 )
{
minja::Parser::consumeToken(
&v14,
(long long)a2,
(long long)&minja::Parser::parseMathPlusMinus(void)::plus_minus_tok[abi:cxx11],
1u);
v3 = *(_QWORD *)(std::string::operator=(v12, &v14) + 8);
std::string::~string(&v14);
if ( !v3 )
break;
minja::Parser::parseMathMulDiv((minja::Parser *)&v8);
if ( !v8 )
{
v5 = (std::runtime_error *)__cxa_allocate_exception(0x10uLL);
std::runtime_error::runtime_error(v5, "Expected right side of 'math plus/minus' expression");
__cxa_throw(
v5,
(struct type_info *)&`typeinfo for'std::runtime_error,
(void (*)(void *))&std::runtime_error::~runtime_error);
}
v7 = 2 - std::operator==<char>((long long)v12);
minja::Parser::get_location((minja::Parser *)&v14, a2);
std::make_shared<minja::BinaryOpExpr,minja::Location,std::shared_ptr<minja::Expression>,std::shared_ptr<minja::Expression>,minja::BinaryOpExpr::Op &>(
(long long)v10,
(long long)&v14,
(long long)this,
(long long)&v8,
(long long)&v7);
std::__shared_ptr<minja::Expression,(__gnu_cxx::_Lock_policy)2>::operator=<minja::BinaryOpExpr>(this, v10);
std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count(&v11);
std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count(v15);
std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count(&v9);
}
std::string::~string(v12);
return this;
}
|
parseMathPlusMinus:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x78
MOV R15,RSI
MOV RBX,RDI
LEA RAX,[0x1dd078]
MOV AL,byte ptr [RAX]
TEST AL,AL
MOV qword ptr [RSP + 0x8],RDI
JZ 0x00160ed4
LAB_00160d8c:
MOV RDI,RBX
MOV RSI,R15
CALL 0x00160fde
CMP qword ptr [RBX],0x0
JZ 0x00160f2e
LEA RAX,[RSP + 0x48]
MOV qword ptr [RAX + -0x10],RAX
AND qword ptr [RAX + -0x8],0x0
MOV byte ptr [RAX],0x0
LEA R14,[RSP + 0x58]
LEA R13,[RSP + 0x38]
LEA RBP,[RSP + 0x18]
LEA R12,[RSP + 0x28]
LAB_00160dc6:
MOV RDI,R14
MOV RSI,R15
LEA RDX,[0x1dd058]
PUSH 0x1
POP RCX
CALL 0x0015d58c
MOV RDI,R13
MOV RSI,R14
CALL 0x00121850
MOV RBX,qword ptr [RAX + 0x8]
MOV RDI,R14
CALL 0x00121dc8
TEST RBX,RBX
JZ 0x00160e81
LAB_00160dfb:
MOV RDI,RBP
MOV RSI,R15
MOV RBX,qword ptr [RSP + 0x8]
CALL 0x00160fde
CMP qword ptr [RSP + 0x18],0x0
JZ 0x00160e9f
MOV RDI,R13
LEA RSI,[0x1963f2]
CALL 0x0013afd1
MOVZX EAX,AL
PUSH 0x2
POP RCX
SUB ECX,EAX
MOV dword ptr [RSP + 0x14],ECX
LAB_00160e32:
MOV RDI,R14
MOV RSI,R15
CALL 0x0015d168
LAB_00160e3d:
MOV RDI,R12
MOV RSI,R14
MOV RDX,RBX
MOV RCX,RBP
LEA R8,[RSP + 0x14]
CALL 0x00160b62
LAB_00160e53:
MOV RDI,RBX
MOV RSI,R12
CALL 0x0016d15a
LEA RDI,[RSP + 0x30]
CALL 0x001401f4
LEA RDI,[RSP + 0x60]
CALL 0x001401f4
LEA RDI,[RSP + 0x20]
CALL 0x001401f4
JMP 0x00160dc6
LAB_00160e81:
LEA RDI,[RSP + 0x38]
CALL 0x00121dc8
MOV RAX,qword ptr [RSP + 0x8]
ADD RSP,0x78
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
LAB_00160e9f:
PUSH 0x10
POP RDI
CALL 0x001213a0
MOV R15,RAX
LAB_00160eaa:
LEA RSI,[0x19d16c]
MOV RDI,RAX
CALL 0x00121280
LAB_00160eb9:
MOV RSI,qword ptr [0x001dbfe8]
MOV RDX,qword ptr [0x001dbf68]
MOV RDI,R15
CALL 0x00121b70
LAB_00160ed4:
LEA RDI,[0x1dd078]
CALL 0x00121c40
TEST EAX,EAX
JZ 0x00160d8c
LAB_00160ee8:
LEA RDI,[0x1dd058]
LEA RSI,[0x19d129]
PUSH 0x10
POP RDX
CALL 0x001359a2
LAB_00160efe:
LEA RDI,[0x135a08]
LEA RSI,[0x1dd058]
LEA RDX,[0x1dc6e8]
CALL 0x00121600
LEA RDI,[0x1dd078]
CALL 0x00121490
MOV RBX,qword ptr [RSP + 0x8]
JMP 0x00160d8c
LAB_00160f2e:
PUSH 0x10
POP RDI
CALL 0x001213a0
MOV R15,RAX
LAB_00160f39:
LEA RSI,[0x19d139]
MOV RDI,RAX
CALL 0x00121280
LAB_00160f48:
MOV RSI,qword ptr [0x001dbfe8]
MOV RDX,qword ptr [0x001dbf68]
MOV RDI,R15
CALL 0x00121b70
|
/* minja::Parser::parseMathPlusMinus() */
__shared_ptr<minja::Expression,(__gnu_cxx::_Lock_policy)2> * minja::Parser::parseMathPlusMinus(void)
{
int iVar1;
long lVar2;
runtime_error *prVar3;
__shared_ptr<minja::Expression,(__gnu_cxx::_Lock_policy)2> *in_RDI;
long local_90;
__shared_count<(__gnu_cxx::_Lock_policy)2> local_88 [8];
Location local_80 [8];
__shared_count<(__gnu_cxx::_Lock_policy)2> local_78 [8];
int1 *local_70;
int8 local_68;
int1 local_60 [16];
string local_50 [8];
__shared_count<(__gnu_cxx::_Lock_policy)2> local_48 [24];
if (parseMathPlusMinus()::plus_minus_tok_abi_cxx11_ == '\0') {
iVar1 = __cxa_guard_acquire(&parseMathPlusMinus()::plus_minus_tok_abi_cxx11_);
if (iVar1 != 0) {
/* try { // try from 00160ee8 to 00160efd has its CatchHandler @ 00160f5e */
std::__cxx11::basic_regex<char,std::__cxx11::regex_traits<char>>::basic_regex
((basic_regex<char,std::__cxx11::regex_traits<char>> *)
parseMathPlusMinus()::plus_minus_tok_abi_cxx11_,"\\+|-(?![}%#]\\})",0x10);
__cxa_atexit(std::__cxx11::basic_regex<char,std::__cxx11::regex_traits<char>>::~basic_regex,
parseMathPlusMinus()::plus_minus_tok_abi_cxx11_,&__dso_handle);
__cxa_guard_release(&parseMathPlusMinus()::plus_minus_tok_abi_cxx11_);
}
}
parseMathMulDiv();
if (*(long *)in_RDI != 0) {
local_70 = local_60;
local_68 = 0;
local_60[0] = 0;
while( true ) {
/* try { // try from 00160dc6 to 00160dda has its CatchHandler @ 00160fb8 */
consumeToken(local_50);
lVar2 = std::__cxx11::string::operator=((string *)&local_70,local_50);
lVar2 = *(long *)(lVar2 + 8);
std::__cxx11::string::~string(local_50);
if (lVar2 == 0) {
std::__cxx11::string::~string((string *)&local_70);
return in_RDI;
}
/* try { // try from 00160dfb to 00160e0a has its CatchHandler @ 00160fb3 */
parseMathMulDiv();
if (local_90 == 0) break;
std::operator==((string *)&local_70,"+");
/* try { // try from 00160e32 to 00160e3c has its CatchHandler @ 00160f95 */
get_location();
/* try { // try from 00160e3d to 00160e52 has its CatchHandler @ 00160f9a */
std::
make_shared<minja::BinaryOpExpr,minja::Location,std::shared_ptr<minja::Expression>,std::shared_ptr<minja::Expression>,minja::BinaryOpExpr::Op&>
(local_80,local_50,in_RDI,(Op *)&local_90);
std::__shared_ptr<minja::Expression,(__gnu_cxx::_Lock_policy)2>::operator=
(in_RDI,(__shared_ptr *)local_80);
std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count(local_78);
std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count(local_48);
std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count(local_88);
}
prVar3 = (runtime_error *)__cxa_allocate_exception(0x10);
/* try { // try from 00160eaa to 00160eb8 has its CatchHandler @ 00160f88 */
std::runtime_error::runtime_error
(prVar3,"Expected right side of \'math plus/minus\' expression");
/* try { // try from 00160eb9 to 00160ece has its CatchHandler @ 00160f86 */
/* WARNING: Subroutine does not return */
__cxa_throw(prVar3,PTR_typeinfo_001dbfe8,PTR__runtime_error_001dbf68);
}
prVar3 = (runtime_error *)__cxa_allocate_exception(0x10);
/* try { // try from 00160f39 to 00160f47 has its CatchHandler @ 00160f74 */
std::runtime_error::runtime_error(prVar3,"Expected left side of \'math plus/minus\' expression");
/* try { // try from 00160f48 to 00160f5d has its CatchHandler @ 00160f6f */
/* WARNING: Subroutine does not return */
__cxa_throw(prVar3,PTR_typeinfo_001dbfe8,PTR__runtime_error_001dbf68);
}
|
|
58,097
|
test_soft_max::build_graph(ggml_context*)
|
llama.cpp/tests/test-backend-ops.cpp
|
ggml_tensor * build_graph(ggml_context * ctx) override {
ggml_tensor * a = ggml_new_tensor(ctx, type, 4, ne.data());
ggml_set_param(ctx, a);
ggml_set_name(a, "a");
ggml_tensor * mask = nullptr;
if (this->mask) {
mask = ggml_new_tensor_2d(ctx, m_prec, ne[0], ne[1]);
ggml_set_name(mask, "mask");
}
ggml_tensor * out = ggml_soft_max_ext(ctx, a, mask, scale, max_bias);
ggml_set_name(out, "out");
return out;
}
|
O3
|
cpp
|
test_soft_max::build_graph(ggml_context*):
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %rbx
movq %rdi, %r14
movl 0x38(%rdi), %esi
leaq 0x40(%rdi), %rcx
movq %rbx, %rdi
movl $0x4, %edx
callq 0x1cbe0
movq %rax, %r15
movq %r14, %rdi
movq %rbx, %rsi
callq 0x2cc20
movq %rbx, %rdi
movq %r15, %rsi
callq 0x1ccb0
leaq 0x1e028(%rip), %rsi # 0x690c4
movq %r15, %rdi
callq 0x1c690
cmpb $0x1, 0x60(%r14)
jne 0x4b0de
movl 0x64(%r14), %esi
movq 0x40(%r14), %rdx
movq 0x48(%r14), %rcx
movq %rbx, %rdi
callq 0x1c1b0
movq %rax, %r12
movq %r14, %rdi
movq %rbx, %rsi
callq 0x2cc20
leaq 0x1e12f(%rip), %rsi # 0x69203
movq %r12, %rdi
callq 0x1c690
jmp 0x4b0e1
xorl %r12d, %r12d
movss 0x68(%r14), %xmm0
movss 0x6c(%r14), %xmm1
movq %rbx, %rdi
movq %r15, %rsi
movq %r12, %rdx
callq 0x1ca80
movq %rax, %rbx
leaq 0x1eae6(%rip), %rsi # 0x69beb
movq %rax, %rdi
callq 0x1c690
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
|
_ZN13test_soft_max11build_graphEP12ggml_context:
push r15
push r14
push r12
push rbx
push rax
mov rbx, rsi
mov r14, rdi
mov esi, [rdi+38h]
lea rcx, [rdi+40h]
mov rdi, rbx
mov edx, 4
call _ggml_new_tensor
mov r15, rax
mov rdi, r14
mov rsi, rbx
call _ZN9test_case12add_sentinelEP12ggml_context; test_case::add_sentinel(ggml_context *)
mov rdi, rbx
mov rsi, r15
call _ggml_set_param
lea rsi, aViewOfA_0+8; "a"
mov rdi, r15
call _ggml_set_name
cmp byte ptr [r14+60h], 1
jnz short loc_4B0DE
mov esi, [r14+64h]
mov rdx, [r14+40h]
mov rcx, [r14+48h]
mov rdi, rbx
call _ggml_new_tensor_2d
mov r12, rax
mov rdi, r14
mov rsi, rbx
call _ZN9test_case12add_sentinelEP12ggml_context; test_case::add_sentinel(ggml_context *)
lea rsi, aMask_0; "mask"
mov rdi, r12
call _ggml_set_name
jmp short loc_4B0E1
loc_4B0DE:
xor r12d, r12d
loc_4B0E1:
movss xmm0, dword ptr [r14+68h]
movss xmm1, dword ptr [r14+6Ch]
mov rdi, rbx
mov rsi, r15
mov rdx, r12
call _ggml_soft_max_ext
mov rbx, rax
lea rsi, aSumOfOut+7; "out"
mov rdi, rax
call _ggml_set_name
mov rax, rbx
add rsp, 8
pop rbx
pop r12
pop r14
pop r15
retn
|
long long test_soft_max::build_graph(long long a1, long long a2)
{
long long v2; // r15
long long v3; // r12
long long v4; // rbx
v2 = ggml_new_tensor(a2, *(unsigned int *)(a1 + 56), 4LL);
test_case::add_sentinel(a1, a2);
ggml_set_param(a2, v2);
ggml_set_name(v2, "a");
if ( *(_BYTE *)(a1 + 96) == 1 )
{
v3 = ggml_new_tensor_2d(a2, *(unsigned int *)(a1 + 100), *(_QWORD *)(a1 + 64), *(_QWORD *)(a1 + 72));
test_case::add_sentinel(a1, a2);
ggml_set_name(v3, "mask");
}
else
{
v3 = 0LL;
}
v4 = ggml_soft_max_ext(a2, v2, v3, *(float *)(a1 + 104), *(float *)(a1 + 108));
ggml_set_name(v4, "out");
return v4;
}
|
build_graph:
PUSH R15
PUSH R14
PUSH R12
PUSH RBX
PUSH RAX
MOV RBX,RSI
MOV R14,RDI
MOV ESI,dword ptr [RDI + 0x38]
LEA RCX,[RDI + 0x40]
MOV RDI,RBX
MOV EDX,0x4
CALL 0x0011cbe0
MOV R15,RAX
MOV RDI,R14
MOV RSI,RBX
CALL 0x0012cc20
MOV RDI,RBX
MOV RSI,R15
CALL 0x0011ccb0
LEA RSI,[0x1690c4]
MOV RDI,R15
CALL 0x0011c690
CMP byte ptr [R14 + 0x60],0x1
JNZ 0x0014b0de
MOV ESI,dword ptr [R14 + 0x64]
MOV RDX,qword ptr [R14 + 0x40]
MOV RCX,qword ptr [R14 + 0x48]
MOV RDI,RBX
CALL 0x0011c1b0
MOV R12,RAX
MOV RDI,R14
MOV RSI,RBX
CALL 0x0012cc20
LEA RSI,[0x169203]
MOV RDI,R12
CALL 0x0011c690
JMP 0x0014b0e1
LAB_0014b0de:
XOR R12D,R12D
LAB_0014b0e1:
MOVSS XMM0,dword ptr [R14 + 0x68]
MOVSS XMM1,dword ptr [R14 + 0x6c]
MOV RDI,RBX
MOV RSI,R15
MOV RDX,R12
CALL 0x0011ca80
MOV RBX,RAX
LEA RSI,[0x169beb]
MOV RDI,RAX
CALL 0x0011c690
MOV RAX,RBX
ADD RSP,0x8
POP RBX
POP R12
POP R14
POP R15
RET
|
/* test_soft_max::build_graph(ggml_context*) */
int8 __thiscall test_soft_max::build_graph(test_soft_max *this,ggml_context *param_1)
{
int8 uVar1;
int8 uVar2;
uVar1 = ggml_new_tensor(param_1,*(int4 *)(this + 0x38),4,this + 0x40);
test_case::add_sentinel((test_case *)this,param_1);
ggml_set_param(param_1,uVar1);
ggml_set_name(uVar1,"a");
if (this[0x60] == (test_soft_max)0x1) {
uVar2 = ggml_new_tensor_2d(param_1,*(int4 *)(this + 100),*(int8 *)(this + 0x40),
*(int8 *)(this + 0x48));
test_case::add_sentinel((test_case *)this,param_1);
ggml_set_name(uVar2,&DAT_00169203);
}
else {
uVar2 = 0;
}
uVar1 = ggml_soft_max_ext(*(int4 *)(this + 0x68),*(int4 *)(this + 0x6c),param_1,uVar1,
uVar2);
ggml_set_name(uVar1,"out");
return uVar1;
}
|
|
58,098
|
SEMANTICANALYZER::SemanticAnalyzer::semanticAnalysis(std::vector<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::any>, std::allocator<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::any>>> const&, int)
|
11AgReS1SoR11[P]Graph/Common/SemanticAnalyzer/src/SemanticAnalyzer.cpp
|
void SEMANTICANALYZER::SemanticAnalyzer::semanticAnalysis(const std::vector<std::pair<std::string, std::any>> &programTree, int statementNumber)
{
enterScope();
try {
for (const auto& [type, statement] : programTree)
{
if (type == GRAMMERCONSTANTS::OBJECT_DECL)
{
checkObjectDecl(std::any_cast<const ObjectDecl&>(statement), statementNumber);
}
else if (type == GRAMMERCONSTANTS::RELATION)
{
checkRelation(std::any_cast<const Relation&>(statement), statementNumber);
}
else if (type == GRAMMERCONSTANTS::NOTE)
{
checkNote(std::any_cast<const Note&>(statement), statementNumber);
}
else if (type == GRAMMERCONSTANTS::GRAPH)
{
checkGraph(std::any_cast<const Graph&>(statement), statementNumber);
}
else if (type == GRAMMERCONSTANTS::DOT_CLOUD)
{
checkDotCloud(std::any_cast<const DotCloud&>(statement), statementNumber);
}
statementNumber++;
}
}
catch(std::exception const& e)
{
LOG_ERROR(SEMANTIC_ANALYZER_LOG, e.what());
throw std::exception();
}
exitScope();
}
|
O1
|
cpp
|
SEMANTICANALYZER::SemanticAnalyzer::semanticAnalysis(std::vector<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::any>, std::allocator<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::any>>> const&, int):
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x48, %rsp
movl %edx, %ebp
movq %rsi, %r15
movq %rdi, %rbx
movq 0xed0f(%rip), %rsi # 0x1cf98
callq 0xb9c0
movq (%r15), %r14
movq 0x8(%r15), %r12
cmpq %r12, %r14
je 0xe3b9
leaq 0x8e3f(%rip), %r15 # 0x170e4
leaq 0x20(%r14), %r13
movq %r14, %rdi
movq %r15, %rsi
callq 0xb1f0
testl %eax, %eax
je 0xe334
movq %r14, %rdi
leaq 0x8e2e(%rip), %rsi # 0x170f0
callq 0xb1f0
testl %eax, %eax
je 0xe354
movq %r14, %rdi
leaq 0x8e20(%rip), %rsi # 0x170f9
callq 0xb1f0
testl %eax, %eax
je 0xe374
movq %r14, %rdi
leaq 0x8e0e(%rip), %rsi # 0x170fe
callq 0xb1f0
testl %eax, %eax
je 0xe390
movq %r14, %rdi
leaq 0x8dfd(%rip), %rsi # 0x17104
callq 0xb1f0
testl %eax, %eax
jne 0xe3aa
movq %r13, %rdi
callq 0xb640
testq %rax, %rax
je 0xe3ec
movq %rbx, %rdi
movq %rax, %rsi
movl %ebp, %edx
callq 0xb100
jmp 0xe3aa
movq %r13, %rdi
callq 0xbc00
testq %rax, %rax
je 0xe3ec
movq %rbx, %rdi
movq %rax, %rsi
movl %ebp, %edx
callq 0xb280
jmp 0xe3aa
movq %r13, %rdi
callq 0xbbf0
testq %rax, %rax
je 0xe3ec
movq %rbx, %rdi
movq %rax, %rsi
movl %ebp, %edx
callq 0xb340
jmp 0xe3aa
movq %r13, %rdi
callq 0xb760
testq %rax, %rax
je 0xe3ec
movq %rbx, %rdi
movq %rax, %rsi
movl %ebp, %edx
callq 0xb0e0
jmp 0xe3aa
movq %r13, %rdi
callq 0xb7d0
testq %rax, %rax
je 0xe3ec
movq %rbx, %rdi
movq %rax, %rsi
movl %ebp, %edx
callq 0xba40
incl %ebp
addq $0x30, %r14
cmpq %r12, %r14
jne 0xe2a5
movq 0x8(%rbx), %rdi
cmpq %rdi, (%rbx)
je 0xe3dd
addq $-0x30, %rdi
movq %rdi, 0x8(%rbx)
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0xba60
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
callq 0xb860
jmp 0xe52c
jmp 0xe52c
jmp 0xe52c
jmp 0xe52c
jmp 0xe52c
jmp 0xe40c
movq %rax, %rbx
cmpl $0x2, %edx
jne 0xe524
movq %rbx, %rdi
callq 0xb2c0
movq %rax, %r14
callq 0xb200
movq %rax, %rbx
leaq 0x18(%rsp), %r15
movq %r15, -0x10(%r15)
leaq 0x8cd3(%rip), %rsi # 0x1710e
leaq 0x8cdd(%rip), %rdx # 0x1711f
leaq 0x8(%rsp), %rdi
callq 0xb2a0
movq (%r14), %rax
movq %r14, %rdi
callq *0x10(%rax)
leaq 0x28(%rsp), %rdi
leaq 0x7(%rsp), %rdx
movq %rax, %rsi
callq 0xbba0
leaq 0x8(%rsp), %rdx
leaq 0x28(%rsp), %rcx
movq %rbx, %rdi
movl $0x2, %esi
callq 0xb770
leaq 0x38(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0xe499
movq 0x38(%rsp), %rsi
incq %rsi
callq 0xb6a0
movq 0x8(%rsp), %rdi
cmpq %r15, %rdi
je 0xe4b0
movq 0x18(%rsp), %rsi
incq %rsi
callq 0xb6a0
movl $0x8, %edi
callq 0xb320
movq 0xeac7(%rip), %rcx # 0x1cf88
addq $0x10, %rcx
movq %rcx, (%rax)
movq 0xeb01(%rip), %rsi # 0x1cfd0
movq 0xeb1a(%rip), %rdx # 0x1cff0
movq %rax, %rdi
callq 0xbbd0
movq %rax, %rbx
leaq 0x38(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0xe501
movq 0x38(%rsp), %rsi
incq %rsi
callq 0xb6a0
jmp 0xe501
movq %rax, %rbx
movq 0x8(%rsp), %rdi
cmpq %r15, %rdi
je 0xe51f
movq 0x18(%rsp), %rsi
incq %rsi
callq 0xb6a0
jmp 0xe51f
jmp 0xe51c
movq %rax, %rbx
callq 0xbb50
movq %rbx, %rdi
callq 0xbc50
movq %rax, %rdi
callq 0x10969
|
_ZN16SEMANTICANALYZER16SemanticAnalyzer16semanticAnalysisERKSt6vectorISt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt3anyESaISA_EEi:
push rbp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 48h
mov ebp, edx
mov r15, rsi
mov rbx, rdi
mov rsi, cs:obj
call __ZNSt6vectorISt3setINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4lessIS6_ESaIS6_EESaISA_EE9push_backERKSA_; std::vector<std::set<std::string>>::push_back(std::set<std::string> const&)
mov r14, [r15]
mov r12, [r15+8]
cmp r14, r12
jz loc_E3B9
lea r15, aObjectDecl; "object_decl"
loc_E2A5:
lea r13, [r14+20h]
mov rdi, r14
mov rsi, r15
call __ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE7compareEPKc; std::string::compare(char const*)
test eax, eax
jz short loc_E334
mov rdi, r14
lea rsi, aRelation; "relation"
call __ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE7compareEPKc; std::string::compare(char const*)
test eax, eax
jz loc_E354
mov rdi, r14
lea rsi, aNote; "note"
call __ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE7compareEPKc; std::string::compare(char const*)
test eax, eax
jz loc_E374
mov rdi, r14
lea rsi, aGraph; "graph"
call __ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE7compareEPKc; std::string::compare(char const*)
test eax, eax
jz loc_E390
mov rdi, r14
lea rsi, aDotCloud; "dot_cloud"
call __ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE7compareEPKc; std::string::compare(char const*)
test eax, eax
jnz loc_E3AA
mov rdi, r13; this
call __ZSt12__any_casterIN16SEMANTICANALYZER8DotCloudEEPvPKSt3any; std::__any_caster<SEMANTICANALYZER::DotCloud>(std::any const*)
test rax, rax
jz loc_E3EC
mov rdi, rbx; int
mov rsi, rax
mov edx, ebp
call __ZN16SEMANTICANALYZER16SemanticAnalyzer13checkDotCloudERKNS_8DotCloudEi; SEMANTICANALYZER::SemanticAnalyzer::checkDotCloud(SEMANTICANALYZER::DotCloud const&,int)
jmp short loc_E3AA
loc_E334:
mov rdi, r13; this
call __ZSt12__any_casterIN16SEMANTICANALYZER10ObjectDeclEEPvPKSt3any; std::__any_caster<SEMANTICANALYZER::ObjectDecl>(std::any const*)
test rax, rax
jz loc_E3EC
mov rdi, rbx
mov rsi, rax
mov edx, ebp
call __ZN16SEMANTICANALYZER16SemanticAnalyzer15checkObjectDeclERKNS_10ObjectDeclEi; SEMANTICANALYZER::SemanticAnalyzer::checkObjectDecl(SEMANTICANALYZER::ObjectDecl const&,int)
jmp short loc_E3AA
loc_E354:
mov rdi, r13; this
call __ZSt12__any_casterIN16SEMANTICANALYZER8RelationEEPvPKSt3any; std::__any_caster<SEMANTICANALYZER::Relation>(std::any const*)
test rax, rax
jz loc_E3EC
mov rdi, rbx
mov rsi, rax
mov edx, ebp
call __ZN16SEMANTICANALYZER16SemanticAnalyzer13checkRelationERKNS_8RelationEi; SEMANTICANALYZER::SemanticAnalyzer::checkRelation(SEMANTICANALYZER::Relation const&,int)
jmp short loc_E3AA
loc_E374:
mov rdi, r13; this
call __ZSt12__any_casterIN16SEMANTICANALYZER4NoteEEPvPKSt3any; std::__any_caster<SEMANTICANALYZER::Note>(std::any const*)
test rax, rax
jz short loc_E3EC
mov rdi, rbx
mov rsi, rax
mov edx, ebp
call __ZN16SEMANTICANALYZER16SemanticAnalyzer9checkNoteERKNS_4NoteEi; SEMANTICANALYZER::SemanticAnalyzer::checkNote(SEMANTICANALYZER::Note const&,int)
jmp short loc_E3AA
loc_E390:
mov rdi, r13; this
call __ZSt12__any_casterIN16SEMANTICANALYZER5GraphEEPvPKSt3any; std::__any_caster<SEMANTICANALYZER::Graph>(std::any const*)
test rax, rax
jz short loc_E3EC
mov rdi, rbx
mov rsi, rax
mov edx, ebp
call __ZN16SEMANTICANALYZER16SemanticAnalyzer10checkGraphERKNS_5GraphEi; SEMANTICANALYZER::SemanticAnalyzer::checkGraph(SEMANTICANALYZER::Graph const&,int)
loc_E3AA:
inc ebp
add r14, 30h ; '0'
cmp r14, r12
jnz loc_E2A5
loc_E3B9:
mov rdi, [rbx+8]
cmp [rbx], rdi
jz short loc_E3DD
add rdi, 0FFFFFFFFFFFFFFD0h
mov [rbx+8], rdi
add rsp, 48h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
jmp __ZNSt8_Rb_treeINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES5_St9_IdentityIS5_ESt4lessIS5_ESaIS5_EED2Ev; std::_Rb_tree<std::string,std::string,std::_Identity<std::string>,std::less<std::string>,std::allocator<std::string>>::~_Rb_tree()
loc_E3DD:
add rsp, 48h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
loc_E3EC:
call __ZSt20__throw_bad_any_castv; std::__throw_bad_any_cast(void)
jmp loc_E52C
jmp loc_E52C
jmp loc_E52C
jmp loc_E52C
jmp loc_E52C
jmp short $+2
loc_E40C:
mov rbx, rax
cmp edx, 2
jnz loc_E524
mov rdi, rbx; this
call ___cxa_begin_catch
mov r14, rax
call __ZN6Logger11getInstanceEv; Logger::getInstance(void)
mov rbx, rax
lea r15, [rsp+78h+var_60]
mov [r15-10h], r15
lea rsi, aSemanticAnalyz; "SEMANTIC_ANALYZER"
lea rdx, aSemanticAnalyz+11h; ""
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)
mov rax, [r14]
mov rdi, r14
call qword ptr [rax+10h]
lea rdi, [rsp+78h+var_50]
lea rdx, [rsp+78h+var_71]
mov rsi, rax
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_; std::string::basic_string<std::allocator<char>>(char const*,std::allocator<char> const&)
lea rdx, [rsp+78h+var_70]
lea rcx, [rsp+78h+var_50]
mov rdi, rbx
mov esi, 2
call __ZN6Logger3logENS_5LevelERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES8_; Logger::log(Logger::Level,std::string const&,std::string const&)
lea rax, [rsp+78h+var_40]
mov rdi, [rax-10h]; void *
cmp rdi, rax
jz short loc_E499
mov rsi, [rsp+78h+var_40]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_E499:
mov rdi, [rsp+78h+var_70]; void *
cmp rdi, r15
jz short loc_E4B0
mov rsi, [rsp+78h+var_60]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_E4B0:
mov edi, 8; thrown_size
call ___cxa_allocate_exception
mov rcx, cs:_ZTVSt9exception_ptr
add rcx, 10h
mov [rax], rcx
mov rsi, cs:lptinfo; lptinfo
mov rdx, cs:_ZNSt9exceptionD1Ev_ptr; void (*)(void *)
mov rdi, rax; void *
call ___cxa_throw
mov rbx, rax
lea rax, [rsp+78h+var_40]
mov rdi, [rax-10h]; void *
cmp rdi, rax
jz short loc_E501
mov rsi, [rsp+78h+var_40]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
jmp short loc_E501
mov rbx, rax
loc_E501:
mov rdi, [rsp+78h+var_70]; void *
cmp rdi, r15
jz short loc_E51F
mov rsi, [rsp+78h+var_60]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
jmp short loc_E51F
jmp short $+2
loc_E51C:
mov rbx, rax
loc_E51F:
call ___cxa_end_catch
loc_E524:
mov rdi, rbx
call __Unwind_Resume
loc_E52C:
mov rdi, rax
call __clang_call_terminate
|
long long SEMANTICANALYZER::SemanticAnalyzer::semanticAnalysis(_QWORD *a1, long long *a2, unsigned int a3)
{
long long result; // rax
long long v6; // r14
long long v7; // r12
long long v8; // rax
long long v9; // rax
long long v10; // rax
long long v11; // rax
long long v12; // rdi
result = std::vector<std::set<std::string>>::push_back(a1, &SEMANTICANALYZER::SemanticAnalyzer::emptySet[abi:cxx11]);
v6 = *a2;
v7 = a2[1];
if ( *a2 != v7 )
{
do
{
if ( !(unsigned int)std::string::compare(v6, "object_decl") )
{
v8 = std::__any_caster<SEMANTICANALYZER::ObjectDecl>((std::any *)(v6 + 32));
if ( !v8 )
goto LABEL_21;
result = SEMANTICANALYZER::SemanticAnalyzer::checkObjectDecl(a1, v8, a3);
}
else if ( !(unsigned int)std::string::compare(v6, "relation") )
{
v9 = std::__any_caster<SEMANTICANALYZER::Relation>((std::any *)(v6 + 32));
if ( !v9 )
goto LABEL_21;
result = SEMANTICANALYZER::SemanticAnalyzer::checkRelation(a1, v9, a3);
}
else if ( !(unsigned int)std::string::compare(v6, "note") )
{
v10 = std::__any_caster<SEMANTICANALYZER::Note>((std::any *)(v6 + 32));
if ( !v10 )
goto LABEL_21;
result = SEMANTICANALYZER::SemanticAnalyzer::checkNote(a1, v10, a3);
}
else if ( !(unsigned int)std::string::compare(v6, "graph") )
{
v11 = std::__any_caster<SEMANTICANALYZER::Graph>((std::any *)(v6 + 32));
if ( !v11 )
LABEL_21:
std::__throw_bad_any_cast();
result = SEMANTICANALYZER::SemanticAnalyzer::checkGraph(a1, v11, a3);
}
else
{
result = std::string::compare(v6, "dot_cloud");
if ( !(_DWORD)result )
{
if ( !std::__any_caster<SEMANTICANALYZER::DotCloud>((std::any *)(v6 + 32)) )
goto LABEL_21;
result = SEMANTICANALYZER::SemanticAnalyzer::checkDotCloud((int)a1);
}
}
++a3;
v6 += 48LL;
}
while ( v6 != v7 );
}
v12 = a1[1];
if ( *a1 != v12 )
{
a1[1] = v12 - 48;
return std::_Rb_tree<std::string,std::string,std::_Identity<std::string>,std::less<std::string>,std::allocator<std::string>>::~_Rb_tree();
}
return result;
}
|
semanticAnalysis:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x48
MOV EBP,EDX
MOV R15,RSI
MOV RBX,RDI
MOV RSI,qword ptr [0x0011cf98]
CALL 0x0010b9c0
MOV R14,qword ptr [R15]
MOV R12,qword ptr [R15 + 0x8]
CMP R14,R12
JZ 0x0010e3b9
LEA R15,[0x1170e4]
LAB_0010e2a5:
LEA R13,[R14 + 0x20]
MOV RDI,R14
MOV RSI,R15
CALL 0x0010b1f0
TEST EAX,EAX
JZ 0x0010e334
MOV RDI,R14
LEA RSI,[0x1170f0]
CALL 0x0010b1f0
TEST EAX,EAX
JZ 0x0010e354
MOV RDI,R14
LEA RSI,[0x1170f9]
CALL 0x0010b1f0
TEST EAX,EAX
JZ 0x0010e374
MOV RDI,R14
LEA RSI,[0x1170fe]
CALL 0x0010b1f0
TEST EAX,EAX
JZ 0x0010e390
MOV RDI,R14
LEA RSI,[0x117104]
CALL 0x0010b1f0
TEST EAX,EAX
JNZ 0x0010e3aa
LAB_0010e314:
MOV RDI,R13
CALL 0x0010b640
TEST RAX,RAX
JZ 0x0010e3ec
LAB_0010e325:
MOV RDI,RBX
MOV RSI,RAX
MOV EDX,EBP
CALL 0x0010b100
JMP 0x0010e3aa
LAB_0010e334:
MOV RDI,R13
CALL 0x0010bc00
TEST RAX,RAX
JZ 0x0010e3ec
LAB_0010e345:
MOV RDI,RBX
MOV RSI,RAX
MOV EDX,EBP
CALL 0x0010b280
JMP 0x0010e3aa
LAB_0010e354:
MOV RDI,R13
CALL 0x0010bbf0
TEST RAX,RAX
JZ 0x0010e3ec
LAB_0010e365:
MOV RDI,RBX
MOV RSI,RAX
MOV EDX,EBP
CALL 0x0010b340
JMP 0x0010e3aa
LAB_0010e374:
MOV RDI,R13
CALL 0x0010b760
TEST RAX,RAX
JZ 0x0010e3ec
LAB_0010e381:
MOV RDI,RBX
MOV RSI,RAX
MOV EDX,EBP
CALL 0x0010b0e0
JMP 0x0010e3aa
LAB_0010e390:
MOV RDI,R13
CALL 0x0010b7d0
TEST RAX,RAX
JZ 0x0010e3ec
LAB_0010e39d:
MOV RDI,RBX
MOV RSI,RAX
MOV EDX,EBP
CALL 0x0010ba40
LAB_0010e3aa:
INC EBP
ADD R14,0x30
CMP R14,R12
JNZ 0x0010e2a5
LAB_0010e3b9:
MOV RDI,qword ptr [RBX + 0x8]
CMP qword ptr [RBX],RDI
JZ 0x0010e3dd
ADD RDI,-0x30
MOV qword ptr [RBX + 0x8],RDI
ADD RSP,0x48
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
JMP 0x0010ba60
LAB_0010e3dd:
ADD RSP,0x48
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
LAB_0010e3ec:
CALL 0x0010b860
LAB_0010e3f1:
JMP 0x0010e52c
LAB_0010e52c:
MOV RDI,RAX
CALL 0x00110969
|
/* SEMANTICANALYZER::SemanticAnalyzer::semanticAnalysis(std::vector<std::pair<std::__cxx11::string,
std::any>, std::allocator<std::pair<std::__cxx11::string, std::any> > > const&, int) */
void __thiscall
SEMANTICANALYZER::SemanticAnalyzer::semanticAnalysis
(SemanticAnalyzer *this,vector *param_1,int param_2)
{
any *paVar1;
char *pcVar2;
int iVar3;
DotCloud *pDVar4;
ObjectDecl *pOVar5;
Relation *pRVar6;
Note *pNVar7;
Graph *pGVar8;
int8 uVar9;
_Rb_tree<std::__cxx11::string,std::__cxx11::string,std::_Identity<std::__cxx11::string>,std::less<std::__cxx11::string>,std::allocator<std::__cxx11::string>>
*this_00;
char *pcVar10;
std::
vector<std::set<std::__cxx11::string,std::less<std::__cxx11::string>,std::allocator<std::__cxx11::string>>,std::allocator<std::set<std::__cxx11::string,std::less<std::__cxx11::string>,std::allocator<std::__cxx11::string>>>>
::push_back((vector<std::set<std::__cxx11::string,std::less<std::__cxx11::string>,std::allocator<std::__cxx11::string>>,std::allocator<std::set<std::__cxx11::string,std::less<std::__cxx11::string>,std::allocator<std::__cxx11::string>>>>
*)this,(set *)PTR_emptySet_abi_cxx11__0011cf98);
pcVar10 = *(char **)param_1;
pcVar2 = *(char **)(param_1 + 8);
do {
if (pcVar10 == pcVar2) {
if (*(long *)this != *(long *)(this + 8)) {
this_00 = (_Rb_tree<std::__cxx11::string,std::__cxx11::string,std::_Identity<std::__cxx11::string>,std::less<std::__cxx11::string>,std::allocator<std::__cxx11::string>>
*)(*(long *)(this + 8) + -0x30);
*(_Rb_tree<std::__cxx11::string,std::__cxx11::string,std::_Identity<std::__cxx11::string>,std::less<std::__cxx11::string>,std::allocator<std::__cxx11::string>>
**)(this + 8) = this_00;
std::
_Rb_tree<std::__cxx11::string,std::__cxx11::string,std::_Identity<std::__cxx11::string>,std::less<std::__cxx11::string>,std::allocator<std::__cxx11::string>>
::~_Rb_tree(this_00);
return;
}
return;
}
paVar1 = (any *)(pcVar10 + 0x20);
iVar3 = std::__cxx11::string::compare(pcVar10);
if (iVar3 == 0) {
/* try { // try from 0010e334 to 0010e33b has its CatchHandler @ 0010e405 */
pOVar5 = (ObjectDecl *)std::__any_caster<SEMANTICANALYZER::ObjectDecl>(paVar1);
if (pOVar5 == (ObjectDecl *)0x0) {
LAB_0010e3ec:
/* try { // try from 0010e3ec to 0010e3f0 has its CatchHandler @ 0010e40c */
uVar9 = std::__throw_bad_any_cast();
/* catch(type#1 @ 00000000) { ... } // from try @ 0010e314 with catch @ 0010e3f1
*/
/* catch(type#1 @ 00000000) { ... } // from try @ 0010e51f with catch @ 0010e52c
*/
/* WARNING: Subroutine does not return */
__clang_call_terminate(uVar9);
}
/* try { // try from 0010e345 to 0010e351 has its CatchHandler @ 0010e40a */
checkObjectDecl(this,pOVar5,param_2);
}
else {
iVar3 = std::__cxx11::string::compare(pcVar10);
if (iVar3 == 0) {
/* try { // try from 0010e354 to 0010e35b has its CatchHandler @ 0010e400 */
pRVar6 = (Relation *)std::__any_caster<SEMANTICANALYZER::Relation>(paVar1);
if (pRVar6 == (Relation *)0x0) goto LAB_0010e3ec;
/* try { // try from 0010e365 to 0010e371 has its CatchHandler @ 0010e40a */
checkRelation(this,pRVar6,param_2);
}
else {
iVar3 = std::__cxx11::string::compare(pcVar10);
if (iVar3 == 0) {
/* try { // try from 0010e374 to 0010e37b has its CatchHandler @ 0010e3fb */
pNVar7 = (Note *)std::__any_caster<SEMANTICANALYZER::Note>(paVar1);
if (pNVar7 == (Note *)0x0) goto LAB_0010e3ec;
/* try { // try from 0010e381 to 0010e38d has its CatchHandler @ 0010e40a */
checkNote(this,pNVar7,param_2);
}
else {
iVar3 = std::__cxx11::string::compare(pcVar10);
if (iVar3 == 0) {
/* try { // try from 0010e390 to 0010e397 has its CatchHandler @ 0010e3f6 */
pGVar8 = (Graph *)std::__any_caster<SEMANTICANALYZER::Graph>(paVar1);
if (pGVar8 == (Graph *)0x0) goto LAB_0010e3ec;
/* try { // try from 0010e39d to 0010e3a9 has its CatchHandler @ 0010e40a */
checkGraph(this,pGVar8,param_2);
}
else {
iVar3 = std::__cxx11::string::compare(pcVar10);
if (iVar3 == 0) {
/* try { // try from 0010e314 to 0010e31b has its CatchHandler @ 0010e3f1 */
pDVar4 = (DotCloud *)std::__any_caster<SEMANTICANALYZER::DotCloud>(paVar1);
if (pDVar4 == (DotCloud *)0x0) goto LAB_0010e3ec;
/* try { // try from 0010e325 to 0010e331 has its CatchHandler @ 0010e40a */
checkDotCloud(this,pDVar4,param_2);
}
}
}
}
}
param_2 = param_2 + 1;
pcVar10 = pcVar10 + 0x30;
} while( true );
}
|
|
58,099
|
SEMANTICANALYZER::SemanticAnalyzer::semanticAnalysis(std::vector<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::any>, std::allocator<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::any>>> const&, int)
|
11AgReS1SoR11[P]Graph/Common/SemanticAnalyzer/src/SemanticAnalyzer.cpp
|
void SEMANTICANALYZER::SemanticAnalyzer::semanticAnalysis(const std::vector<std::pair<std::string, std::any>> &programTree, int statementNumber)
{
enterScope();
try {
for (const auto& [type, statement] : programTree)
{
if (type == GRAMMERCONSTANTS::OBJECT_DECL)
{
checkObjectDecl(std::any_cast<const ObjectDecl&>(statement), statementNumber);
}
else if (type == GRAMMERCONSTANTS::RELATION)
{
checkRelation(std::any_cast<const Relation&>(statement), statementNumber);
}
else if (type == GRAMMERCONSTANTS::NOTE)
{
checkNote(std::any_cast<const Note&>(statement), statementNumber);
}
else if (type == GRAMMERCONSTANTS::GRAPH)
{
checkGraph(std::any_cast<const Graph&>(statement), statementNumber);
}
else if (type == GRAMMERCONSTANTS::DOT_CLOUD)
{
checkDotCloud(std::any_cast<const DotCloud&>(statement), statementNumber);
}
statementNumber++;
}
}
catch(std::exception const& e)
{
LOG_ERROR(SEMANTIC_ANALYZER_LOG, e.what());
throw std::exception();
}
exitScope();
}
|
O3
|
cpp
|
SEMANTICANALYZER::SemanticAnalyzer::semanticAnalysis(std::vector<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::any>, std::allocator<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::any>>> const&, int):
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x48, %rsp
movl %edx, %ebp
movq %rsi, %r15
movq %rdi, %rbx
movq 0xed0f(%rip), %rsi # 0x1cf98
callq 0xb9c0
movq (%r15), %r14
movq 0x8(%r15), %r12
cmpq %r12, %r14
je 0xe3b9
leaq 0x8e3f(%rip), %r15 # 0x170e4
leaq 0x20(%r14), %r13
movq %r14, %rdi
movq %r15, %rsi
callq 0xb1f0
testl %eax, %eax
je 0xe334
movq %r14, %rdi
leaq 0x8e2e(%rip), %rsi # 0x170f0
callq 0xb1f0
testl %eax, %eax
je 0xe354
movq %r14, %rdi
leaq 0x8e20(%rip), %rsi # 0x170f9
callq 0xb1f0
testl %eax, %eax
je 0xe374
movq %r14, %rdi
leaq 0x8e0e(%rip), %rsi # 0x170fe
callq 0xb1f0
testl %eax, %eax
je 0xe390
movq %r14, %rdi
leaq 0x8dfd(%rip), %rsi # 0x17104
callq 0xb1f0
testl %eax, %eax
jne 0xe3aa
movq %r13, %rdi
callq 0xb640
testq %rax, %rax
je 0xe3ec
movq %rbx, %rdi
movq %rax, %rsi
movl %ebp, %edx
callq 0xb100
jmp 0xe3aa
movq %r13, %rdi
callq 0xbc00
testq %rax, %rax
je 0xe3ec
movq %rbx, %rdi
movq %rax, %rsi
movl %ebp, %edx
callq 0xb280
jmp 0xe3aa
movq %r13, %rdi
callq 0xbbf0
testq %rax, %rax
je 0xe3ec
movq %rbx, %rdi
movq %rax, %rsi
movl %ebp, %edx
callq 0xb340
jmp 0xe3aa
movq %r13, %rdi
callq 0xb760
testq %rax, %rax
je 0xe3ec
movq %rbx, %rdi
movq %rax, %rsi
movl %ebp, %edx
callq 0xb0e0
jmp 0xe3aa
movq %r13, %rdi
callq 0xb7d0
testq %rax, %rax
je 0xe3ec
movq %rbx, %rdi
movq %rax, %rsi
movl %ebp, %edx
callq 0xba40
incl %ebp
addq $0x30, %r14
cmpq %r12, %r14
jne 0xe2a5
movq 0x8(%rbx), %rdi
cmpq %rdi, (%rbx)
je 0xe3dd
addq $-0x30, %rdi
movq %rdi, 0x8(%rbx)
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0xba60
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
callq 0xb860
jmp 0xe52c
jmp 0xe52c
jmp 0xe52c
jmp 0xe52c
jmp 0xe52c
jmp 0xe40c
movq %rax, %rbx
cmpl $0x2, %edx
jne 0xe524
movq %rbx, %rdi
callq 0xb2c0
movq %rax, %r14
callq 0xb200
movq %rax, %rbx
leaq 0x18(%rsp), %r15
movq %r15, -0x10(%r15)
leaq 0x8cd3(%rip), %rsi # 0x1710e
leaq 0x8cdd(%rip), %rdx # 0x1711f
leaq 0x8(%rsp), %rdi
callq 0xb2a0
movq (%r14), %rax
movq %r14, %rdi
callq *0x10(%rax)
leaq 0x28(%rsp), %rdi
leaq 0x7(%rsp), %rdx
movq %rax, %rsi
callq 0xbba0
leaq 0x8(%rsp), %rdx
leaq 0x28(%rsp), %rcx
movq %rbx, %rdi
movl $0x2, %esi
callq 0xb770
leaq 0x38(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0xe499
movq 0x38(%rsp), %rsi
incq %rsi
callq 0xb6a0
movq 0x8(%rsp), %rdi
cmpq %r15, %rdi
je 0xe4b0
movq 0x18(%rsp), %rsi
incq %rsi
callq 0xb6a0
movl $0x8, %edi
callq 0xb320
movq 0xeac7(%rip), %rcx # 0x1cf88
addq $0x10, %rcx
movq %rcx, (%rax)
movq 0xeb01(%rip), %rsi # 0x1cfd0
movq 0xeb1a(%rip), %rdx # 0x1cff0
movq %rax, %rdi
callq 0xbbd0
movq %rax, %rbx
leaq 0x38(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0xe501
movq 0x38(%rsp), %rsi
incq %rsi
callq 0xb6a0
jmp 0xe501
movq %rax, %rbx
movq 0x8(%rsp), %rdi
cmpq %r15, %rdi
je 0xe51f
movq 0x18(%rsp), %rsi
incq %rsi
callq 0xb6a0
jmp 0xe51f
jmp 0xe51c
movq %rax, %rbx
callq 0xbb50
movq %rbx, %rdi
callq 0xbc50
movq %rax, %rdi
callq 0x10aa5
|
_ZN16SEMANTICANALYZER16SemanticAnalyzer16semanticAnalysisERKSt6vectorISt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt3anyESaISA_EEi:
push rbp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 48h
mov ebp, edx
mov r15, rsi
mov rbx, rdi
mov rsi, cs:obj
call __ZNSt6vectorISt3setINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4lessIS6_ESaIS6_EESaISA_EE9push_backERKSA_; std::vector<std::set<std::string>>::push_back(std::set<std::string> const&)
mov r14, [r15]
mov r12, [r15+8]
cmp r14, r12
jz loc_E3B9
lea r15, aObjectDecl; "object_decl"
loc_E2A5:
lea r13, [r14+20h]
mov rdi, r14
mov rsi, r15
call __ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE7compareEPKc; std::string::compare(char const*)
test eax, eax
jz short loc_E334
mov rdi, r14
lea rsi, aRelation; "relation"
call __ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE7compareEPKc; std::string::compare(char const*)
test eax, eax
jz loc_E354
mov rdi, r14
lea rsi, aNote; "note"
call __ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE7compareEPKc; std::string::compare(char const*)
test eax, eax
jz loc_E374
mov rdi, r14
lea rsi, aGraph; "graph"
call __ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE7compareEPKc; std::string::compare(char const*)
test eax, eax
jz loc_E390
mov rdi, r14
lea rsi, aDotCloud; "dot_cloud"
call __ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE7compareEPKc; std::string::compare(char const*)
test eax, eax
jnz loc_E3AA
mov rdi, r13; this
call __ZSt12__any_casterIN16SEMANTICANALYZER8DotCloudEEPvPKSt3any; std::__any_caster<SEMANTICANALYZER::DotCloud>(std::any const*)
test rax, rax
jz loc_E3EC
mov rdi, rbx; int
mov rsi, rax
mov edx, ebp
call __ZN16SEMANTICANALYZER16SemanticAnalyzer13checkDotCloudERKNS_8DotCloudEi; SEMANTICANALYZER::SemanticAnalyzer::checkDotCloud(SEMANTICANALYZER::DotCloud const&,int)
jmp short loc_E3AA
loc_E334:
mov rdi, r13; this
call __ZSt12__any_casterIN16SEMANTICANALYZER10ObjectDeclEEPvPKSt3any; std::__any_caster<SEMANTICANALYZER::ObjectDecl>(std::any const*)
test rax, rax
jz loc_E3EC
mov rdi, rbx
mov rsi, rax
mov edx, ebp
call __ZN16SEMANTICANALYZER16SemanticAnalyzer15checkObjectDeclERKNS_10ObjectDeclEi; SEMANTICANALYZER::SemanticAnalyzer::checkObjectDecl(SEMANTICANALYZER::ObjectDecl const&,int)
jmp short loc_E3AA
loc_E354:
mov rdi, r13; this
call __ZSt12__any_casterIN16SEMANTICANALYZER8RelationEEPvPKSt3any; std::__any_caster<SEMANTICANALYZER::Relation>(std::any const*)
test rax, rax
jz loc_E3EC
mov rdi, rbx
mov rsi, rax
mov edx, ebp
call __ZN16SEMANTICANALYZER16SemanticAnalyzer13checkRelationERKNS_8RelationEi; SEMANTICANALYZER::SemanticAnalyzer::checkRelation(SEMANTICANALYZER::Relation const&,int)
jmp short loc_E3AA
loc_E374:
mov rdi, r13; this
call __ZSt12__any_casterIN16SEMANTICANALYZER4NoteEEPvPKSt3any; std::__any_caster<SEMANTICANALYZER::Note>(std::any const*)
test rax, rax
jz short loc_E3EC
mov rdi, rbx
mov rsi, rax
mov edx, ebp
call __ZN16SEMANTICANALYZER16SemanticAnalyzer9checkNoteERKNS_4NoteEi; SEMANTICANALYZER::SemanticAnalyzer::checkNote(SEMANTICANALYZER::Note const&,int)
jmp short loc_E3AA
loc_E390:
mov rdi, r13; this
call __ZSt12__any_casterIN16SEMANTICANALYZER5GraphEEPvPKSt3any; std::__any_caster<SEMANTICANALYZER::Graph>(std::any const*)
test rax, rax
jz short loc_E3EC
mov rdi, rbx
mov rsi, rax
mov edx, ebp
call __ZN16SEMANTICANALYZER16SemanticAnalyzer10checkGraphERKNS_5GraphEi; SEMANTICANALYZER::SemanticAnalyzer::checkGraph(SEMANTICANALYZER::Graph const&,int)
loc_E3AA:
inc ebp
add r14, 30h ; '0'
cmp r14, r12
jnz loc_E2A5
loc_E3B9:
mov rdi, [rbx+8]
cmp [rbx], rdi
jz short loc_E3DD
add rdi, 0FFFFFFFFFFFFFFD0h
mov [rbx+8], rdi
add rsp, 48h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
jmp __ZNSt8_Rb_treeINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES5_St9_IdentityIS5_ESt4lessIS5_ESaIS5_EED2Ev; std::_Rb_tree<std::string,std::string,std::_Identity<std::string>,std::less<std::string>,std::allocator<std::string>>::~_Rb_tree()
loc_E3DD:
add rsp, 48h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
loc_E3EC:
call __ZSt20__throw_bad_any_castv; std::__throw_bad_any_cast(void)
jmp loc_E52C
jmp loc_E52C
jmp loc_E52C
jmp loc_E52C
jmp loc_E52C
jmp short $+2
loc_E40C:
mov rbx, rax
cmp edx, 2
jnz loc_E524
mov rdi, rbx; this
call ___cxa_begin_catch
mov r14, rax
call __ZN6Logger11getInstanceEv; Logger::getInstance(void)
mov rbx, rax
lea r15, [rsp+78h+var_60]
mov [r15-10h], r15
lea rsi, aSemanticAnalyz; "SEMANTIC_ANALYZER"
lea rdx, aSemanticAnalyz+11h; ""
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)
mov rax, [r14]
mov rdi, r14
call qword ptr [rax+10h]
lea rdi, [rsp+78h+var_50]
lea rdx, [rsp+78h+var_71]
mov rsi, rax
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_; std::string::basic_string<std::allocator<char>>(char const*,std::allocator<char> const&)
lea rdx, [rsp+78h+var_70]
lea rcx, [rsp+78h+var_50]
mov rdi, rbx
mov esi, 2
call __ZN6Logger3logENS_5LevelERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES8_; Logger::log(Logger::Level,std::string const&,std::string const&)
lea rax, [rsp+78h+var_40]
mov rdi, [rax-10h]; void *
cmp rdi, rax
jz short loc_E499
mov rsi, [rsp+78h+var_40]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_E499:
mov rdi, [rsp+78h+var_70]; void *
cmp rdi, r15
jz short loc_E4B0
mov rsi, [rsp+78h+var_60]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_E4B0:
mov edi, 8; thrown_size
call ___cxa_allocate_exception
mov rcx, cs:_ZTVSt9exception_ptr
add rcx, 10h
mov [rax], rcx
mov rsi, cs:lptinfo; lptinfo
mov rdx, cs:_ZNSt9exceptionD1Ev_ptr; void (*)(void *)
mov rdi, rax; void *
call ___cxa_throw
mov rbx, rax
lea rax, [rsp+78h+var_40]
mov rdi, [rax-10h]; void *
cmp rdi, rax
jz short loc_E501
mov rsi, [rsp+78h+var_40]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
jmp short loc_E501
mov rbx, rax
loc_E501:
mov rdi, [rsp+78h+var_70]; void *
cmp rdi, r15
jz short loc_E51F
mov rsi, [rsp+78h+var_60]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
jmp short loc_E51F
jmp short $+2
loc_E51C:
mov rbx, rax
loc_E51F:
call ___cxa_end_catch
loc_E524:
mov rdi, rbx
call __Unwind_Resume
loc_E52C:
mov rdi, rax
call __clang_call_terminate
|
long long SEMANTICANALYZER::SemanticAnalyzer::semanticAnalysis(_QWORD *a1, long long *a2, unsigned int a3)
{
long long result; // rax
long long v6; // r14
long long v7; // r12
long long v8; // rax
long long v9; // rax
long long v10; // rax
long long v11; // rax
long long v12; // rdi
result = std::vector<std::set<std::string>>::push_back(a1, &SEMANTICANALYZER::SemanticAnalyzer::emptySet[abi:cxx11]);
v6 = *a2;
v7 = a2[1];
if ( *a2 != v7 )
{
do
{
if ( !(unsigned int)std::string::compare(v6, "object_decl") )
{
v8 = std::__any_caster<SEMANTICANALYZER::ObjectDecl>((std::any *)(v6 + 32));
if ( !v8 )
goto LABEL_21;
result = SEMANTICANALYZER::SemanticAnalyzer::checkObjectDecl(a1, v8, a3);
}
else if ( !(unsigned int)std::string::compare(v6, "relation") )
{
v9 = std::__any_caster<SEMANTICANALYZER::Relation>((std::any *)(v6 + 32));
if ( !v9 )
goto LABEL_21;
result = SEMANTICANALYZER::SemanticAnalyzer::checkRelation(a1, v9, a3);
}
else if ( !(unsigned int)std::string::compare(v6, "note") )
{
v10 = std::__any_caster<SEMANTICANALYZER::Note>((std::any *)(v6 + 32));
if ( !v10 )
goto LABEL_21;
result = SEMANTICANALYZER::SemanticAnalyzer::checkNote(a1, v10, a3);
}
else if ( !(unsigned int)std::string::compare(v6, "graph") )
{
v11 = std::__any_caster<SEMANTICANALYZER::Graph>((std::any *)(v6 + 32));
if ( !v11 )
LABEL_21:
std::__throw_bad_any_cast();
result = SEMANTICANALYZER::SemanticAnalyzer::checkGraph(a1, v11, a3);
}
else
{
result = std::string::compare(v6, "dot_cloud");
if ( !(_DWORD)result )
{
if ( !std::__any_caster<SEMANTICANALYZER::DotCloud>((std::any *)(v6 + 32)) )
goto LABEL_21;
result = SEMANTICANALYZER::SemanticAnalyzer::checkDotCloud((int)a1);
}
}
++a3;
v6 += 48LL;
}
while ( v6 != v7 );
}
v12 = a1[1];
if ( *a1 != v12 )
{
a1[1] = v12 - 48;
return std::_Rb_tree<std::string,std::string,std::_Identity<std::string>,std::less<std::string>,std::allocator<std::string>>::~_Rb_tree();
}
return result;
}
|
semanticAnalysis:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x48
MOV EBP,EDX
MOV R15,RSI
MOV RBX,RDI
MOV RSI,qword ptr [0x0011cf98]
CALL 0x0010b9c0
MOV R14,qword ptr [R15]
MOV R12,qword ptr [R15 + 0x8]
CMP R14,R12
JZ 0x0010e3b9
LEA R15,[0x1170e4]
LAB_0010e2a5:
LEA R13,[R14 + 0x20]
MOV RDI,R14
MOV RSI,R15
CALL 0x0010b1f0
TEST EAX,EAX
JZ 0x0010e334
MOV RDI,R14
LEA RSI,[0x1170f0]
CALL 0x0010b1f0
TEST EAX,EAX
JZ 0x0010e354
MOV RDI,R14
LEA RSI,[0x1170f9]
CALL 0x0010b1f0
TEST EAX,EAX
JZ 0x0010e374
MOV RDI,R14
LEA RSI,[0x1170fe]
CALL 0x0010b1f0
TEST EAX,EAX
JZ 0x0010e390
MOV RDI,R14
LEA RSI,[0x117104]
CALL 0x0010b1f0
TEST EAX,EAX
JNZ 0x0010e3aa
LAB_0010e314:
MOV RDI,R13
CALL 0x0010b640
TEST RAX,RAX
JZ 0x0010e3ec
LAB_0010e325:
MOV RDI,RBX
MOV RSI,RAX
MOV EDX,EBP
CALL 0x0010b100
JMP 0x0010e3aa
LAB_0010e334:
MOV RDI,R13
CALL 0x0010bc00
TEST RAX,RAX
JZ 0x0010e3ec
LAB_0010e345:
MOV RDI,RBX
MOV RSI,RAX
MOV EDX,EBP
CALL 0x0010b280
JMP 0x0010e3aa
LAB_0010e354:
MOV RDI,R13
CALL 0x0010bbf0
TEST RAX,RAX
JZ 0x0010e3ec
LAB_0010e365:
MOV RDI,RBX
MOV RSI,RAX
MOV EDX,EBP
CALL 0x0010b340
JMP 0x0010e3aa
LAB_0010e374:
MOV RDI,R13
CALL 0x0010b760
TEST RAX,RAX
JZ 0x0010e3ec
LAB_0010e381:
MOV RDI,RBX
MOV RSI,RAX
MOV EDX,EBP
CALL 0x0010b0e0
JMP 0x0010e3aa
LAB_0010e390:
MOV RDI,R13
CALL 0x0010b7d0
TEST RAX,RAX
JZ 0x0010e3ec
LAB_0010e39d:
MOV RDI,RBX
MOV RSI,RAX
MOV EDX,EBP
CALL 0x0010ba40
LAB_0010e3aa:
INC EBP
ADD R14,0x30
CMP R14,R12
JNZ 0x0010e2a5
LAB_0010e3b9:
MOV RDI,qword ptr [RBX + 0x8]
CMP qword ptr [RBX],RDI
JZ 0x0010e3dd
ADD RDI,-0x30
MOV qword ptr [RBX + 0x8],RDI
ADD RSP,0x48
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
JMP 0x0010ba60
LAB_0010e3dd:
ADD RSP,0x48
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
LAB_0010e3ec:
CALL 0x0010b860
LAB_0010e3f1:
JMP 0x0010e52c
LAB_0010e52c:
MOV RDI,RAX
CALL 0x00110aa5
|
/* SEMANTICANALYZER::SemanticAnalyzer::semanticAnalysis(std::vector<std::pair<std::__cxx11::string,
std::any>, std::allocator<std::pair<std::__cxx11::string, std::any> > > const&, int) */
void __thiscall
SEMANTICANALYZER::SemanticAnalyzer::semanticAnalysis
(SemanticAnalyzer *this,vector *param_1,int param_2)
{
any *paVar1;
char *pcVar2;
int iVar3;
DotCloud *pDVar4;
ObjectDecl *pOVar5;
Relation *pRVar6;
Note *pNVar7;
Graph *pGVar8;
int8 uVar9;
_Rb_tree<std::__cxx11::string,std::__cxx11::string,std::_Identity<std::__cxx11::string>,std::less<std::__cxx11::string>,std::allocator<std::__cxx11::string>>
*this_00;
char *pcVar10;
std::
vector<std::set<std::__cxx11::string,std::less<std::__cxx11::string>,std::allocator<std::__cxx11::string>>,std::allocator<std::set<std::__cxx11::string,std::less<std::__cxx11::string>,std::allocator<std::__cxx11::string>>>>
::push_back((vector<std::set<std::__cxx11::string,std::less<std::__cxx11::string>,std::allocator<std::__cxx11::string>>,std::allocator<std::set<std::__cxx11::string,std::less<std::__cxx11::string>,std::allocator<std::__cxx11::string>>>>
*)this,(set *)PTR_emptySet_abi_cxx11__0011cf98);
pcVar10 = *(char **)param_1;
pcVar2 = *(char **)(param_1 + 8);
do {
if (pcVar10 == pcVar2) {
if (*(long *)this != *(long *)(this + 8)) {
this_00 = (_Rb_tree<std::__cxx11::string,std::__cxx11::string,std::_Identity<std::__cxx11::string>,std::less<std::__cxx11::string>,std::allocator<std::__cxx11::string>>
*)(*(long *)(this + 8) + -0x30);
*(_Rb_tree<std::__cxx11::string,std::__cxx11::string,std::_Identity<std::__cxx11::string>,std::less<std::__cxx11::string>,std::allocator<std::__cxx11::string>>
**)(this + 8) = this_00;
std::
_Rb_tree<std::__cxx11::string,std::__cxx11::string,std::_Identity<std::__cxx11::string>,std::less<std::__cxx11::string>,std::allocator<std::__cxx11::string>>
::~_Rb_tree(this_00);
return;
}
return;
}
paVar1 = (any *)(pcVar10 + 0x20);
iVar3 = std::__cxx11::string::compare(pcVar10);
if (iVar3 == 0) {
/* try { // try from 0010e334 to 0010e33b has its CatchHandler @ 0010e405 */
pOVar5 = (ObjectDecl *)std::__any_caster<SEMANTICANALYZER::ObjectDecl>(paVar1);
if (pOVar5 == (ObjectDecl *)0x0) {
LAB_0010e3ec:
/* try { // try from 0010e3ec to 0010e3f0 has its CatchHandler @ 0010e40c */
uVar9 = std::__throw_bad_any_cast();
/* catch(type#1 @ 00000000) { ... } // from try @ 0010e314 with catch @ 0010e3f1
*/
/* catch(type#1 @ 00000000) { ... } // from try @ 0010e51f with catch @ 0010e52c
*/
/* WARNING: Subroutine does not return */
__clang_call_terminate(uVar9);
}
/* try { // try from 0010e345 to 0010e351 has its CatchHandler @ 0010e40a */
checkObjectDecl(this,pOVar5,param_2);
}
else {
iVar3 = std::__cxx11::string::compare(pcVar10);
if (iVar3 == 0) {
/* try { // try from 0010e354 to 0010e35b has its CatchHandler @ 0010e400 */
pRVar6 = (Relation *)std::__any_caster<SEMANTICANALYZER::Relation>(paVar1);
if (pRVar6 == (Relation *)0x0) goto LAB_0010e3ec;
/* try { // try from 0010e365 to 0010e371 has its CatchHandler @ 0010e40a */
checkRelation(this,pRVar6,param_2);
}
else {
iVar3 = std::__cxx11::string::compare(pcVar10);
if (iVar3 == 0) {
/* try { // try from 0010e374 to 0010e37b has its CatchHandler @ 0010e3fb */
pNVar7 = (Note *)std::__any_caster<SEMANTICANALYZER::Note>(paVar1);
if (pNVar7 == (Note *)0x0) goto LAB_0010e3ec;
/* try { // try from 0010e381 to 0010e38d has its CatchHandler @ 0010e40a */
checkNote(this,pNVar7,param_2);
}
else {
iVar3 = std::__cxx11::string::compare(pcVar10);
if (iVar3 == 0) {
/* try { // try from 0010e390 to 0010e397 has its CatchHandler @ 0010e3f6 */
pGVar8 = (Graph *)std::__any_caster<SEMANTICANALYZER::Graph>(paVar1);
if (pGVar8 == (Graph *)0x0) goto LAB_0010e3ec;
/* try { // try from 0010e39d to 0010e3a9 has its CatchHandler @ 0010e40a */
checkGraph(this,pGVar8,param_2);
}
else {
iVar3 = std::__cxx11::string::compare(pcVar10);
if (iVar3 == 0) {
/* try { // try from 0010e314 to 0010e31b has its CatchHandler @ 0010e3f1 */
pDVar4 = (DotCloud *)std::__any_caster<SEMANTICANALYZER::DotCloud>(paVar1);
if (pDVar4 == (DotCloud *)0x0) goto LAB_0010e3ec;
/* try { // try from 0010e325 to 0010e331 has its CatchHandler @ 0010e40a */
checkDotCloud(this,pDVar4,param_2);
}
}
}
}
}
param_2 = param_2 + 1;
pcVar10 = pcVar10 + 0x30;
} while( true );
}
|
Subsets and Splits
C++ Functions Using STL
Identifies C++ functions that depend on standard library components, revealing patterns in how developers utilize STL libraries and potentially highlighting common coding practices or dependencies in the dataset.
C++ STL Function Queries
Filters C++ code examples that use standard library containers and algorithms, helping identify common programming patterns and library usage in code generation tasks.
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.