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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
45,200 | 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 0x9524a
movq %rbx, %rdi
movl $0x1, %esi
callq 0x9524a
movq (%r12), %r15
movq 0x8(%r12), %r12
movq %rsp, %rdi
movq %r13, %rsi
callq 0x2f5cc
addq %r15, %r12
movzbl %r14b, %r8d
movzbl %bpl, %r9d
leaq 0x20(%rsp), %rdi
movq %rsp, %rcx
movq %r15, %rsi
movq %r12, %rdx
callq 0x94b9e
leaq 0x20(%rsp), %rdi
movl $0x1, %esi
movq %rbx, %rdx
callq 0x94c4a
leaq 0x48(%rsp), %r14
movq %r14, %rdi
callq 0x953c6
movq -0x18(%r14), %rax
testq %rax, %rax
je 0x94b1d
leaq 0x20(%rsp), %rdi
movq %rdi, %rsi
movl $0x3, %edx
callq *%rax
movq 0x10(%rsp), %rax
testq %rax, %rax
je 0x94b34
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 0x94b78
jmp 0x94b78
movq %rax, %r14
leaq 0x20(%rsp), %rdi
callq 0x9521c
jmp 0x94b5f
movq %rax, %r14
movq 0x10(%rsp), %rax
testq %rax, %rax
je 0x94b83
movq %rsp, %rdi
movq %rdi, %rsi
movl $0x3, %edx
callq *%rax
jmp 0x94b83
movq %rax, %rdi
callq 0x2dbeb
movq %rax, %r14
movq %rbx, %rdi
xorl %esi, %esi
callq 0x9524a
movq %rbx, %rdi
callq 0x3488a
movq %r14, %rdi
callq 0x21b20
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_94B1D
lea rdi, [rsp+118h+var_F8]
mov rsi, rdi
mov edx, 3
call rax
loc_94B1D:
mov rax, [rsp+118h+var_108]
test rax, rax
jz short loc_94B34
mov rdi, rsp
mov rsi, rdi
mov edx, 3
call rax
loc_94B34:
mov rax, rbx
add rsp, 0E8h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
jmp short loc_94B78
jmp short loc_94B78
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_94B5F
mov r14, rax
loc_94B5F:
mov rax, [rsp+118h+var_108]
test rax, rax
jz short loc_94B83
mov rdi, rsp
mov rsi, rdi
mov edx, 3
call rax
jmp short loc_94B83
loc_94B78:
mov rdi, rax
call __clang_call_terminate
mov r14, rax
loc_94B83:
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
__int128 v11; // [rsp+0h] [rbp-118h] BYREF
void ( *v12)(__int128 *, __int128 *, 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 0x0019524a
MOV RDI,RBX
MOV ESI,0x1
CALL 0x0019524a
MOV R15,qword ptr [R12]
MOV R12,qword ptr [R12 + 0x8]
LAB_00194abd:
MOV RDI,RSP
MOV RSI,R13
CALL 0x0012f5cc
ADD R12,R15
LAB_00194acb:
MOVZX R8D,R14B
MOVZX R9D,BPL
LEA RDI,[RSP + 0x20]
MOV RCX,RSP
MOV RSI,R15
MOV RDX,R12
CALL 0x00194b9e
LAB_00194ae6:
LEA RDI,[RSP + 0x20]
MOV ESI,0x1
MOV RDX,RBX
CALL 0x00194c4a
LEA R14,[RSP + 0x48]
MOV RDI,R14
CALL 0x001953c6
MOV RAX,qword ptr [R14 + -0x18]
TEST RAX,RAX
JZ 0x00194b1d
LAB_00194b0e:
LEA RDI,[RSP + 0x20]
MOV RSI,RDI
MOV EDX,0x3
CALL RAX
LAB_00194b1d:
MOV RAX,qword ptr [RSP + 0x10]
TEST RAX,RAX
JZ 0x00194b34
LAB_00194b27:
MOV RDI,RSP
MOV RSI,RDI
MOV EDX,0x3
CALL RAX
LAB_00194b34:
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 00194abd to 00194ac7 has its CatchHandler @ 00194b80 */
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 00194acb to 00194ae5 has its CatchHandler @ 00194b5c */
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 00194ae6 to 00194af7 has its CatchHandler @ 00194b4d */
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 00194b0e to 00194b1c has its CatchHandler @ 00194b4b */
(*local_e8)(local_f8,local_f8,3);
}
if (local_108 != (code *)0x0) {
/* try { // try from 00194b27 to 00194b33 has its CatchHandler @ 00194b49 */
(*local_108)(afStack_118,afStack_118,3);
}
return this;
}
| |
45,201 | mysql_list_tables_start_internal | eloqsql/libmariadb/libmariadb/mariadb_async.c | static void
mysql_list_tables_start_internal(void *d)
{
MK_ASYNC_INTERNAL_BODY(
mysql_list_tables,
(parms->mysql, parms->wild),
parms->mysql,
MYSQL_RES *,
r_ptr)
} | O0 | c | mysql_list_tables_start_internal:
pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movq %rdi, -0x8(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x10(%rbp)
movq -0x10(%rbp), %rax
movq (%rax), %rax
movq 0x480(%rax), %rax
movq 0x28(%rax), %rax
movq %rax, -0x20(%rbp)
movq -0x10(%rbp), %rax
movq (%rax), %rdi
movq -0x10(%rbp), %rax
movq 0x8(%rax), %rsi
callq 0x27f60
movq %rax, -0x18(%rbp)
movq -0x18(%rbp), %rcx
movq -0x20(%rbp), %rax
movq %rcx, 0x8(%rax)
movq -0x20(%rbp), %rax
movl $0x0, (%rax)
addq $0x20, %rsp
popq %rbp
retq
nop
| mysql_list_tables_start_internal:
push rbp
mov rbp, rsp
sub rsp, 20h
mov [rbp+var_8], rdi
mov rax, [rbp+var_8]
mov [rbp+var_10], rax
mov rax, [rbp+var_10]
mov rax, [rax]
mov rax, [rax+480h]
mov rax, [rax+28h]
mov [rbp+var_20], rax
mov rax, [rbp+var_10]
mov rdi, [rax]
mov rax, [rbp+var_10]
mov rsi, [rax+8]
call mysql_list_tables
mov [rbp+var_18], rax
mov rcx, [rbp+var_18]
mov rax, [rbp+var_20]
mov [rax+8], rcx
mov rax, [rbp+var_20]
mov dword ptr [rax], 0
add rsp, 20h
pop rbp
retn
| long long mysql_list_tables_start_internal(long long a1)
{
long long result; // rax
long long v2; // [rsp+0h] [rbp-20h]
v2 = *(_QWORD *)(*(_QWORD *)(*(_QWORD *)a1 + 1152LL) + 40LL);
*(_QWORD *)(v2 + 8) = mysql_list_tables(*(_QWORD *)a1, *(const char **)(a1 + 8));
result = v2;
*(_DWORD *)v2 = 0;
return result;
}
| mysql_list_tables_start_internal:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x20
MOV qword ptr [RBP + -0x8],RDI
MOV RAX,qword ptr [RBP + -0x8]
MOV qword ptr [RBP + -0x10],RAX
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX]
MOV RAX,qword ptr [RAX + 0x480]
MOV RAX,qword ptr [RAX + 0x28]
MOV qword ptr [RBP + -0x20],RAX
MOV RAX,qword ptr [RBP + -0x10]
MOV RDI,qword ptr [RAX]
MOV RAX,qword ptr [RBP + -0x10]
MOV RSI,qword ptr [RAX + 0x8]
CALL 0x00127f60
MOV qword ptr [RBP + -0x18],RAX
MOV RCX,qword ptr [RBP + -0x18]
MOV RAX,qword ptr [RBP + -0x20]
MOV qword ptr [RAX + 0x8],RCX
MOV RAX,qword ptr [RBP + -0x20]
MOV dword ptr [RAX],0x0
ADD RSP,0x20
POP RBP
RET
|
void mysql_list_tables_start_internal(long *param_1)
{
int4 *puVar1;
int8 uVar2;
puVar1 = *(int4 **)(*(long *)(*param_1 + 0x480) + 0x28);
uVar2 = mysql_list_tables(*param_1,param_1[1]);
*(int8 *)(puVar1 + 2) = uVar2;
*puVar1 = 0;
return;
}
| |
45,202 | mysql_select_db@libmariadbclient_18 | eloqsql/libmariadb/libmariadb/mariadb_lib.c | int STDCALL
mysql_select_db(MYSQL *mysql, const char *db)
{
int error;
if (!db)
return 1;
if ((error=ma_simple_command(mysql, COM_INIT_DB, db,
(uint) strlen(db),0,0)))
return(error);
free(mysql->db);
mysql->db=strdup(db);
return(0);
} | O0 | c | mysql_select_db@libmariadbclient_18:
pushq %rbp
movq %rsp, %rbp
subq $0x30, %rsp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
cmpq $0x0, -0x18(%rbp)
jne 0x27b00
movl $0x1, -0x4(%rbp)
jmp 0x27b75
movq -0x10(%rbp), %rax
movq %rax, -0x30(%rbp)
movq -0x18(%rbp), %rax
movq %rax, -0x28(%rbp)
movq -0x18(%rbp), %rdi
callq 0x17250
movq -0x30(%rbp), %rdi
movq -0x28(%rbp), %rdx
movl %eax, %eax
movl %eax, %ecx
movl $0x2, %esi
xorl %r8d, %r8d
xorl %eax, %eax
movl %eax, %r9d
callq 0x219b0
movl %eax, -0x1c(%rbp)
cmpl $0x0, %eax
je 0x27b47
movl -0x1c(%rbp), %eax
movl %eax, -0x4(%rbp)
jmp 0x27b75
movq -0x10(%rbp), %rax
movq 0x2e8(%rax), %rdi
callq 0x17710
movq -0x18(%rbp), %rdi
callq 0x17aa0
movq %rax, %rcx
movq -0x10(%rbp), %rax
movq %rcx, 0x2e8(%rax)
movl $0x0, -0x4(%rbp)
movl -0x4(%rbp), %eax
addq $0x30, %rsp
popq %rbp
retq
nop
| mysql_select_db@libmariadbclient_18:
push rbp; Alternative name is 'mysql_select_db'
mov rbp, rsp
sub rsp, 30h
mov [rbp+var_10], rdi
mov [rbp+var_18], rsi
cmp [rbp+var_18], 0
jnz short loc_27B00
mov [rbp+var_4], 1
jmp short loc_27B75
loc_27B00:
mov rax, [rbp+var_10]
mov [rbp+var_30], rax
mov rax, [rbp+var_18]
mov [rbp+var_28], rax
mov rdi, [rbp+var_18]
call _strlen
mov rdi, [rbp+var_30]
mov rdx, [rbp+var_28]
mov eax, eax
mov ecx, eax
mov esi, 2
xor r8d, r8d
xor eax, eax
mov r9d, eax
call ma_simple_command
mov [rbp+var_1C], eax
cmp eax, 0
jz short loc_27B47
mov eax, [rbp+var_1C]
mov [rbp+var_4], eax
jmp short loc_27B75
loc_27B47:
mov rax, [rbp+var_10]
mov rdi, [rax+2E8h]
call _free
mov rdi, [rbp+var_18]
call _strdup
mov rcx, rax
mov rax, [rbp+var_10]
mov [rax+2E8h], rcx
mov [rbp+var_4], 0
loc_27B75:
mov eax, [rbp+var_4]
add rsp, 30h
pop rbp
retn
| long long mysql_select_db_libmariadbclient_18(long long a1, long long a2)
{
unsigned int v2; // eax
unsigned int v4; // [rsp+14h] [rbp-1Ch]
if ( a2 )
{
v2 = strlen(a2);
v4 = ma_simple_command(a1, 2u, a2, v2, 0, 0LL);
if ( v4 )
{
return v4;
}
else
{
free(*(_QWORD *)(a1 + 744));
*(_QWORD *)(a1 + 744) = strdup(a2);
return 0;
}
}
else
{
return 1;
}
}
| mysql_select_db:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x30
MOV qword ptr [RBP + -0x10],RDI
MOV qword ptr [RBP + -0x18],RSI
CMP qword ptr [RBP + -0x18],0x0
JNZ 0x00127b00
MOV dword ptr [RBP + -0x4],0x1
JMP 0x00127b75
LAB_00127b00:
MOV RAX,qword ptr [RBP + -0x10]
MOV qword ptr [RBP + -0x30],RAX
MOV RAX,qword ptr [RBP + -0x18]
MOV qword ptr [RBP + -0x28],RAX
MOV RDI,qword ptr [RBP + -0x18]
CALL 0x00117250
MOV RDI,qword ptr [RBP + -0x30]
MOV RDX,qword ptr [RBP + -0x28]
MOV EAX,EAX
MOV ECX,EAX
MOV ESI,0x2
XOR R8D,R8D
XOR EAX,EAX
MOV R9D,EAX
CALL 0x001219b0
MOV dword ptr [RBP + -0x1c],EAX
CMP EAX,0x0
JZ 0x00127b47
MOV EAX,dword ptr [RBP + -0x1c]
MOV dword ptr [RBP + -0x4],EAX
JMP 0x00127b75
LAB_00127b47:
MOV RAX,qword ptr [RBP + -0x10]
MOV RDI,qword ptr [RAX + 0x2e8]
CALL 0x00117710
MOV RDI,qword ptr [RBP + -0x18]
CALL 0x00117aa0
MOV RCX,RAX
MOV RAX,qword ptr [RBP + -0x10]
MOV qword ptr [RAX + 0x2e8],RCX
MOV dword ptr [RBP + -0x4],0x0
LAB_00127b75:
MOV EAX,dword ptr [RBP + -0x4]
ADD RSP,0x30
POP RBP
RET
|
int mysql_select_db(long param_1,char *param_2)
{
size_t sVar1;
char *pcVar2;
int4 local_c;
if (param_2 == (char *)0x0) {
local_c = 1;
}
else {
sVar1 = strlen(param_2);
local_c = ma_simple_command(param_1,2,param_2,sVar1 & 0xffffffff,0,0);
if (local_c == 0) {
free(*(void **)(param_1 + 0x2e8));
pcVar2 = strdup(param_2);
*(char **)(param_1 + 0x2e8) = pcVar2;
local_c = 0;
}
}
return local_c;
}
| |
45,203 | ma_ck_write | eloqsql/storage/maria/ma_write.c | my_bool _ma_ck_write(MARIA_HA *info, MARIA_KEY *key)
{
DBUG_ENTER("_ma_ck_write");
if (info->bulk_insert &&
is_tree_inited(&info->bulk_insert[key->keyinfo->key_nr]))
{
DBUG_RETURN(_ma_ck_write_tree(info, key));
}
DBUG_RETURN(_ma_ck_write_btree(info, key));
} | O0 | c | ma_ck_write:
pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movq -0x10(%rbp), %rax
cmpq $0x0, 0x310(%rax)
je 0x8841c
movq -0x10(%rbp), %rax
movq 0x310(%rax), %rax
movq -0x18(%rbp), %rcx
movq 0x8(%rcx), %rcx
movzbl 0xa5(%rcx), %ecx
imulq $0x298, %rcx, %rcx # imm = 0x298
addq %rcx, %rax
cmpq $0x0, (%rax)
je 0x8841c
jmp 0x8840a
movq -0x10(%rbp), %rdi
movq -0x18(%rbp), %rsi
callq 0x88440
movb %al, -0x1(%rbp)
jmp 0x8842e
jmp 0x8841e
movq -0x10(%rbp), %rdi
movq -0x18(%rbp), %rsi
callq 0x884f0
movb %al, -0x1(%rbp)
movb -0x1(%rbp), %al
addq $0x20, %rsp
popq %rbp
retq
nopw (%rax,%rax)
| _ma_ck_write:
push rbp
mov rbp, rsp
sub rsp, 20h
mov [rbp+var_10], rdi
mov [rbp+var_18], rsi
mov rax, [rbp+var_10]
cmp qword ptr [rax+310h], 0
jz short loc_8841C
mov rax, [rbp+var_10]
mov rax, [rax+310h]
mov rcx, [rbp+var_18]
mov rcx, [rcx+8]
movzx ecx, byte ptr [rcx+0A5h]
imul rcx, 298h
add rax, rcx
cmp qword ptr [rax], 0
jz short loc_8841C
jmp short $+2
loc_8840A:
mov rdi, [rbp+var_10]
mov rsi, [rbp+var_18]
call _ma_ck_write_tree
mov [rbp+var_1], al
jmp short loc_8842E
loc_8841C:
jmp short $+2
loc_8841E:
mov rdi, [rbp+var_10]
mov rsi, [rbp+var_18]
call _ma_ck_write_btree
mov [rbp+var_1], al
loc_8842E:
mov al, [rbp+var_1]
add rsp, 20h
pop rbp
retn
| char ma_ck_write(long long a1, long long a2)
{
if ( *(_QWORD *)(a1 + 784)
&& *(_QWORD *)(664LL * *(unsigned __int8 *)(*(_QWORD *)(a2 + 8) + 165LL) + *(_QWORD *)(a1 + 784)) )
{
return ma_ck_write_tree(a1, a2);
}
else
{
return ma_ck_write_btree(a1, a2);
}
}
| _ma_ck_write:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x20
MOV qword ptr [RBP + -0x10],RDI
MOV qword ptr [RBP + -0x18],RSI
MOV RAX,qword ptr [RBP + -0x10]
CMP qword ptr [RAX + 0x310],0x0
JZ 0x0018841c
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX + 0x310]
MOV RCX,qword ptr [RBP + -0x18]
MOV RCX,qword ptr [RCX + 0x8]
MOVZX ECX,byte ptr [RCX + 0xa5]
IMUL RCX,RCX,0x298
ADD RAX,RCX
CMP qword ptr [RAX],0x0
JZ 0x0018841c
JMP 0x0018840a
LAB_0018840a:
MOV RDI,qword ptr [RBP + -0x10]
MOV RSI,qword ptr [RBP + -0x18]
CALL 0x00188440
MOV byte ptr [RBP + -0x1],AL
JMP 0x0018842e
LAB_0018841c:
JMP 0x0018841e
LAB_0018841e:
MOV RDI,qword ptr [RBP + -0x10]
MOV RSI,qword ptr [RBP + -0x18]
CALL 0x001884f0
MOV byte ptr [RBP + -0x1],AL
LAB_0018842e:
MOV AL,byte ptr [RBP + -0x1]
ADD RSP,0x20
POP RBP
RET
|
int1 _ma_ck_write(long param_1,long param_2)
{
int1 local_9;
if ((*(long *)(param_1 + 0x310) == 0) ||
(*(long *)(*(long *)(param_1 + 0x310) + (ulong)*(byte *)(*(long *)(param_2 + 8) + 0xa5) * 0x298
) == 0)) {
local_9 = _ma_ck_write_btree(param_1,param_2);
}
else {
local_9 = _ma_ck_write_tree(param_1,param_2);
}
return local_9;
}
| |
45,204 | ma_ck_write | eloqsql/storage/maria/ma_write.c | my_bool _ma_ck_write(MARIA_HA *info, MARIA_KEY *key)
{
DBUG_ENTER("_ma_ck_write");
if (info->bulk_insert &&
is_tree_inited(&info->bulk_insert[key->keyinfo->key_nr]))
{
DBUG_RETURN(_ma_ck_write_tree(info, key));
}
DBUG_RETURN(_ma_ck_write_btree(info, key));
} | O3 | c | ma_ck_write:
movq %rdi, %rax
movq 0x310(%rdi), %rdi
testq %rdi, %rdi
je 0x6b1a9
movq 0x8(%rsi), %rcx
movzbl 0xa5(%rcx), %ecx
imulq $0x298, %rcx, %rcx # imm = 0x298
cmpq $0x0, (%rdi,%rcx)
je 0x6b1a9
pushq %rbp
movq %rsp, %rbp
addq %rcx, %rdi
movl 0x14(%rsi), %edx
movl %edx, 0x640(%rax)
movq (%rsi), %rax
addl 0x10(%rsi), %edx
movq 0x230(%rdi), %rcx
movq %rax, %rsi
callq 0xc421e
testq %rax, %rax
sete %al
popq %rbp
retq
movq %rax, %rdi
jmp 0x6b1ae
| _ma_ck_write:
mov rax, rdi
mov rdi, [rdi+310h]
test rdi, rdi
jz short loc_6B1A9
mov rcx, [rsi+8]
movzx ecx, byte ptr [rcx+0A5h]
imul rcx, 298h
cmp qword ptr [rdi+rcx], 0
jz short loc_6B1A9
push rbp
mov rbp, rsp
add rdi, rcx
mov edx, [rsi+14h]
mov [rax+640h], edx
mov rax, [rsi]
add edx, [rsi+10h]
mov rcx, [rdi+230h]
mov rsi, rax
call tree_insert
test rax, rax
setz al
pop rbp
retn
loc_6B1A9:
mov rdi, rax
jmp short $+2
| char ma_ck_write(long long a1, long long a2)
{
long long v3; // rdi
long long v4; // rcx
int v5; // edx
v3 = *(_QWORD *)(a1 + 784);
if ( !v3 )
return ma_ck_write_btree(a1);
v4 = 664LL * *(unsigned __int8 *)(*(_QWORD *)(a2 + 8) + 165LL);
if ( !*(_QWORD *)(v3 + v4) )
return ma_ck_write_btree(a1);
v5 = *(_DWORD *)(a2 + 20);
*(_DWORD *)(a1 + 1600) = v5;
return tree_insert(v4 + v3, *(_QWORD *)a2, (unsigned int)(*(_DWORD *)(a2 + 16) + v5), *(_QWORD *)(v4 + v3 + 560)) == 0;
}
| _ma_ck_write:
MOV RAX,RDI
MOV RDI,qword ptr [RDI + 0x310]
TEST RDI,RDI
JZ 0x0016b1a9
MOV RCX,qword ptr [RSI + 0x8]
MOVZX ECX,byte ptr [RCX + 0xa5]
IMUL RCX,RCX,0x298
CMP qword ptr [RDI + RCX*0x1],0x0
JZ 0x0016b1a9
PUSH RBP
MOV RBP,RSP
ADD RDI,RCX
MOV EDX,dword ptr [RSI + 0x14]
MOV dword ptr [RAX + 0x640],EDX
MOV RAX,qword ptr [RSI]
ADD EDX,dword ptr [RSI + 0x10]
MOV RCX,qword ptr [RDI + 0x230]
MOV RSI,RAX
CALL 0x001c421e
TEST RAX,RAX
SETZ AL
POP RBP
RET
LAB_0016b1a9:
MOV RDI,RAX
JMP 0x0016b1ae
|
bool _ma_ck_write(long param_1,int8 *param_2)
{
int iVar1;
int1 uVar2;
long lVar3;
long lVar4;
lVar4 = *(long *)(param_1 + 0x310);
if ((lVar4 != 0) &&
(lVar3 = (ulong)*(byte *)(param_2[1] + 0xa5) * 0x298, *(long *)(lVar4 + lVar3) != 0)) {
lVar4 = lVar4 + lVar3;
iVar1 = *(int *)((long)param_2 + 0x14);
*(int *)(param_1 + 0x640) = iVar1;
lVar4 = tree_insert(lVar4,*param_2,iVar1 + *(int *)(param_2 + 2),*(int8 *)(lVar4 + 0x230))
;
return lVar4 == 0;
}
uVar2 = _ma_ck_write_btree(param_1);
return (bool)uVar2;
}
| |
45,205 | nglog::GetTempDirectories(std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>>&) | ng-log[P]ng-log/src/logging.cc | static void GetTempDirectories(vector<string>& list) {
list.clear();
#ifdef NGLOG_OS_WINDOWS
// On windows we'll try to find a directory in this order:
// C:/Documents & Settings/whomever/TEMP (or whatever GetTempPath() is)
// C:/TMP/
// C:/TEMP/
char tmp[MAX_PATH];
if (GetTempPathA(MAX_PATH, tmp)) list.push_back(tmp);
list.push_back("C:\\TMP\\");
list.push_back("C:\\TEMP\\");
#else
// Directories, in order of preference. If we find a dir that
// exists, we stop adding other less-preferred dirs
const char* candidates[] = {
// Non-null only during unittest/regtest
getenv("TEST_TMPDIR"),
// Explicitly-supplied temp dirs
getenv("TMPDIR"),
getenv("TMP"),
// If all else fails
"/tmp",
};
for (auto d : candidates) {
if (!d) continue; // Empty env var
// Make sure we don't surprise anyone who's expecting a '/'
string dstr = d;
if (dstr[dstr.size() - 1] != '/') {
dstr += "/";
}
list.push_back(dstr);
struct stat statbuf;
if (!stat(d, &statbuf) && S_ISDIR(statbuf.st_mode)) {
// We found a dir that exists - we're done.
return;
}
}
#endif
} | O3 | cpp | nglog::GetTempDirectories(std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>>&):
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xd8, %rsp
movq %rdi, %rbx
movq (%rdi), %rsi
callq 0x1fbe4
leaq 0x15c8e(%rip), %rdi # 0x237ae
callq 0x7670
movq %rax, %r13
movq %rax, 0x20(%rsp)
leaq 0x15c7f(%rip), %rdi # 0x237b3
callq 0x7670
movq %rax, 0x28(%rsp)
leaq 0x16e63(%rip), %rdi # 0x249a8
callq 0x7670
movq %rax, 0x30(%rsp)
leaq 0x16e56(%rip), %rax # 0x249ac
movq %rax, 0x38(%rsp)
leaq 0x10(%rsp), %rbp
xorl %r12d, %r12d
movq %rsp, %r14
leaq 0x48(%rsp), %r15
testq %r13, %r13
je 0xdc08
movq %rbp, (%rsp)
movq %r13, %rdi
callq 0x7200
leaq (%rax,%r13), %rdx
movq %r14, %rdi
movq %r13, %rsi
callq 0xa400
movq (%rsp), %rax
movq 0x8(%rsp), %rcx
cmpb $0x2f, -0x1(%rax,%rcx)
je 0xdbae
movq %r14, %rdi
leaq 0x15f48(%rip), %rsi # 0x23af1
callq 0x79f0
movq %rbx, %rdi
movq %r14, %rsi
callq 0x11fae
movq %r13, %rdi
movq %r15, %rsi
callq 0x7480
testl %eax, %eax
jne 0xdbdd
movl 0x60(%rsp), %eax
movl $0xf000, %ecx # imm = 0xF000
andl %ecx, %eax
movb $0x1, %r13b
cmpl $0x4000, %eax # imm = 0x4000
je 0xdbe0
xorl %r13d, %r13d
movq (%rsp), %rdi
cmpq %rbp, %rdi
je 0xdbf6
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x932c
addq $0x8, %r12
cmpq $0x20, %r12
sete %al
orb %al, %r13b
je 0xdc12
jmp 0xdc1c
addq $0x8, %r12
cmpq $0x20, %r12
je 0xdc1c
movq 0x20(%rsp,%r12), %r13
jmp 0xdb6b
addq $0xd8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
movq (%rsp), %rdi
cmpq %rbp, %rdi
je 0xdc47
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x932c
movq %rbx, %rdi
callq 0x7950
| _ZN5nglogL18GetTempDirectoriesERSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS6_EE:
push rbp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 0D8h
mov rbx, rdi
mov rsi, [rdi]
call _ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE15_M_erase_at_endEPS5_; std::vector<std::string>::_M_erase_at_end(std::string*)
lea rdi, aTestTmpdir; "TEST_TMPDIR"
call _getenv
mov r13, rax
mov [rsp+108h+var_E8], rax
lea rdi, aTestTmpdir+5; "TMPDIR"
call _getenv
mov [rsp+108h+var_E0], rax
lea rdi, aTmp_0; "TMP"
call _getenv
mov [rsp+108h+var_D8], rax
lea rax, aTmp; "/tmp"
mov [rsp+108h+var_D0], rax
lea rbp, [rsp+108h+var_F8]
xor r12d, r12d
mov r14, rsp
lea r15, [rsp+108h+var_C0]
loc_DB6B:
test r13, r13
jz loc_DC08
mov [rsp+108h+var_108], rbp
mov rdi, r13
call _strlen
lea rdx, [rax+r13]
mov rdi, r14
mov rsi, r13
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, [rsp+108h+var_108]
mov rcx, [rsp+108h+var_100]
cmp byte ptr [rax+rcx-1], 2Fh ; '/'
jz short loc_DBAE
mov rdi, r14
lea rsi, asc_23AF0+1; "/"
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6appendEPKc; std::string::append(char const*)
loc_DBAE:
mov rdi, rbx
mov rsi, r14
call _ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE9push_backERKS5_; std::vector<std::string>::push_back(std::string const&)
mov rdi, r13
mov rsi, r15
call _stat
test eax, eax
jnz short loc_DBDD
mov eax, [rsp+108h+var_A8]
mov ecx, 0F000h
and eax, ecx
mov r13b, 1
cmp eax, 4000h
jz short loc_DBE0
loc_DBDD:
xor r13d, r13d
loc_DBE0:
mov rdi, [rsp+108h+var_108]; void *
cmp rdi, rbp
jz short loc_DBF6
mov rsi, [rsp+108h+var_F8]
inc rsi; unsigned __int64
call _ZdlPvm; operator delete(void *,ulong)
loc_DBF6:
add r12, 8
cmp r12, 20h ; ' '
setz al
or r13b, al
jz short loc_DC12
jmp short loc_DC1C
loc_DC08:
add r12, 8
cmp r12, 20h ; ' '
jz short loc_DC1C
loc_DC12:
mov r13, [rsp+r12+108h+var_E8]
jmp loc_DB6B
loc_DC1C:
add rsp, 0D8h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
mov rbx, rax
mov rdi, [rsp+0]; void *
cmp rdi, rbp
jz short loc_DC47
mov rsi, [rsp+arg_8]
inc rsi; unsigned __int64
call _ZdlPvm; operator delete(void *,ulong)
loc_DC47:
mov rdi, rbx
call __Unwind_Resume
| char nglog::GetTempDirectories(_QWORD *a1)
{
_BYTE *v1; // r13
const char *v2; // rax
long long v3; // r12
long long v4; // rax
char v5; // r13
void *v7[2]; // [rsp+0h] [rbp-108h] BYREF
_QWORD v8[2]; // [rsp+10h] [rbp-F8h] BYREF
_QWORD v9[5]; // [rsp+20h] [rbp-E8h]
_BYTE v10[24]; // [rsp+48h] [rbp-C0h] BYREF
int v11; // [rsp+60h] [rbp-A8h]
std::vector<std::string>::_M_erase_at_end(a1, *a1);
v1 = (_BYTE *)getenv("TEST_TMPDIR");
v9[0] = v1;
v9[1] = getenv("TMPDIR");
v9[2] = getenv("TMP");
v2 = "/tmp";
v9[3] = "/tmp";
v3 = 0LL;
while ( !v1 )
{
if ( ++v3 == 4 )
return (char)v2;
LABEL_13:
v1 = (_BYTE *)v9[v3];
}
v7[0] = v8;
v4 = strlen(v1);
std::string::_M_construct<char const*>((long long)v7, v1, (long long)&v1[v4]);
if ( *((_BYTE *)v7[0] + (unsigned long long)v7[1] - 1) != 47 )
std::string::append(v7, "/");
std::vector<std::string>::push_back(a1);
if ( (unsigned int)stat(v1, v10) || (v5 = 1, (v11 & 0xF000) != 0x4000) )
v5 = 0;
if ( v7[0] != v8 )
operator delete(v7[0]);
LOBYTE(v2) = ++v3 == 4;
if ( !((v3 == 4) | (unsigned __int8)v5) )
goto LABEL_13;
return (char)v2;
}
| GetTempDirectories:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0xd8
MOV RBX,RDI
MOV RSI,qword ptr [RDI]
CALL 0x0011fbe4
LEA RDI,[0x1237ae]
CALL 0x00107670
MOV R13,RAX
MOV qword ptr [RSP + 0x20],RAX
LEA RDI,[0x1237b3]
CALL 0x00107670
MOV qword ptr [RSP + 0x28],RAX
LEA RDI,[0x1249a8]
CALL 0x00107670
MOV qword ptr [RSP + 0x30],RAX
LEA RAX,[0x1249ac]
MOV qword ptr [RSP + 0x38],RAX
LEA RBP,[RSP + 0x10]
XOR R12D,R12D
MOV R14,RSP
LEA R15,[RSP + 0x48]
LAB_0010db6b:
TEST R13,R13
JZ 0x0010dc08
MOV qword ptr [RSP],RBP
MOV RDI,R13
CALL 0x00107200
LEA RDX,[RAX + R13*0x1]
MOV RDI,R14
MOV RSI,R13
CALL 0x0010a400
MOV RAX,qword ptr [RSP]
MOV RCX,qword ptr [RSP + 0x8]
CMP byte ptr [RAX + RCX*0x1 + -0x1],0x2f
JZ 0x0010dbae
LAB_0010db9f:
MOV RDI,R14
LEA RSI,[0x123af1]
CALL 0x001079f0
LAB_0010dbae:
MOV RDI,RBX
MOV RSI,R14
CALL 0x00111fae
LAB_0010dbb9:
MOV RDI,R13
MOV RSI,R15
CALL 0x00107480
TEST EAX,EAX
JNZ 0x0010dbdd
MOV EAX,dword ptr [RSP + 0x60]
MOV ECX,0xf000
AND EAX,ECX
MOV R13B,0x1
CMP EAX,0x4000
JZ 0x0010dbe0
LAB_0010dbdd:
XOR R13D,R13D
LAB_0010dbe0:
MOV RDI,qword ptr [RSP]
CMP RDI,RBP
JZ 0x0010dbf6
MOV RSI,qword ptr [RSP + 0x10]
INC RSI
CALL 0x0010932c
LAB_0010dbf6:
ADD R12,0x8
CMP R12,0x20
SETZ AL
OR R13B,AL
JZ 0x0010dc12
JMP 0x0010dc1c
LAB_0010dc08:
ADD R12,0x8
CMP R12,0x20
JZ 0x0010dc1c
LAB_0010dc12:
MOV R13,qword ptr [RSP + R12*0x1 + 0x20]
JMP 0x0010db6b
LAB_0010dc1c:
ADD RSP,0xd8
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
|
/* nglog::GetTempDirectories(std::vector<std::__cxx11::string, std::allocator<std::__cxx11::string >
>&) */
void nglog::GetTempDirectories(vector *param_1)
{
bool bVar1;
int iVar2;
char *__s;
size_t sVar3;
long lVar4;
long *local_108;
long local_100;
long local_f8 [2];
char *local_e8;
char *local_e0 [4];
stat local_c0;
std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>::_M_erase_at_end
((vector<std::__cxx11::string,std::allocator<std::__cxx11::string>> *)param_1,
*(string **)param_1);
__s = getenv("TEST_TMPDIR");
local_e8 = __s;
local_e0[0] = getenv("TMPDIR");
local_e0[1] = getenv("TMP");
local_e0[2] = "/tmp";
lVar4 = 0;
do {
if (__s == (char *)0x0) {
if (lVar4 == 0x18) {
return;
}
}
else {
local_108 = local_f8;
sVar3 = strlen(__s);
std::__cxx11::string::_M_construct<char_const*>(&local_108,__s,__s + sVar3);
if (*(char *)((long)local_108 + local_100 + -1) != '/') {
/* try { // try from 0010db9f to 0010dbb8 has its CatchHandler @ 0010dc2e */
std::__cxx11::string::append((char *)&local_108);
}
std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>::push_back
((vector<std::__cxx11::string,std::allocator<std::__cxx11::string>> *)param_1,
(string *)&local_108);
iVar2 = stat(__s,&local_c0);
if ((iVar2 != 0) || (bVar1 = true, (local_c0.st_mode & 0xf000) != 0x4000)) {
bVar1 = false;
}
if (local_108 != local_f8) {
operator_delete(local_108,local_f8[0] + 1);
}
if (bVar1 || lVar4 == 0x18) {
return;
}
}
__s = *(char **)((long)local_e0 + lVar4);
lVar4 = lVar4 + 8;
} while( true );
}
| |
45,206 | gguf_writer::write(char const*) const | Yangxiaoz[P]GGML-Tutorial/ggml/src/gguf.cpp | void write(const char * val) const {
write(std::string(val));
} | O3 | cpp | gguf_writer::write(char const*) const:
pushq %r14
pushq %rbx
subq $0x28, %rsp
movq %rdi, %rbx
leaq 0x8(%rsp), %r14
leaq 0x7(%rsp), %rdx
movq %r14, %rdi
callq 0x17d60
movq %rbx, %rdi
movq %r14, %rsi
callq 0x18260
leaq 0x18(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x4328a
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x170d0
addq $0x28, %rsp
popq %rbx
popq %r14
retq
movq %rax, %rbx
leaq 0x18(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x432b0
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x170d0
movq %rbx, %rdi
callq 0x17e90
| _ZNK11gguf_writer5writeEPKc:
push r14
push rbx
sub rsp, 28h
mov rbx, rdi
lea r14, [rsp+38h+var_30]
lea rdx, [rsp+38h+var_31]
mov rdi, r14
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_; std::string::basic_string<std::allocator<char>>(char const*,std::allocator<char> const&)
mov rdi, rbx
mov rsi, r14
call __ZNK11gguf_writer5writeERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE; gguf_writer::write(std::string const&)
lea rax, [rsp+38h+var_20]
mov rdi, [rax-10h]; void *
cmp rdi, rax
jz short loc_4328A
mov rsi, [rsp+38h+var_20]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_4328A:
add rsp, 28h
pop rbx
pop r14
retn
mov rbx, rax
lea rax, [rsp+arg_10]
mov rdi, [rax-10h]; void *
cmp rdi, rax
jz short loc_432B0
mov rsi, [rsp+arg_10]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_432B0:
mov rdi, rbx
call __Unwind_Resume
| void gguf_writer::write(gguf_writer *this, const char *a2)
{
char v2; // [rsp+7h] [rbp-31h] BYREF
void *v3[2]; // [rsp+8h] [rbp-30h] BYREF
long long v4; // [rsp+18h] [rbp-20h] BYREF
std::string::basic_string<std::allocator<char>>(v3, a2, &v2);
gguf_writer::write(this, v3);
if ( v3[0] != &v4 )
operator delete(v3[0], v4 + 1);
}
| write:
PUSH R14
PUSH RBX
SUB RSP,0x28
MOV RBX,RDI
LEA R14,[RSP + 0x8]
LEA RDX,[RSP + 0x7]
MOV RDI,R14
CALL 0x00117d60
LAB_00143264:
MOV RDI,RBX
MOV RSI,R14
CALL 0x00118260
LAB_0014326f:
LEA RAX,[RSP + 0x18]
MOV RDI,qword ptr [RAX + -0x10]
CMP RDI,RAX
JZ 0x0014328a
MOV RSI,qword ptr [RSP + 0x18]
INC RSI
CALL 0x001170d0
LAB_0014328a:
ADD RSP,0x28
POP RBX
POP R14
RET
|
/* gguf_writer::write(char const*) const */
void __thiscall gguf_writer::write(gguf_writer *this,char *param_1)
{
allocator local_31;
long *local_30 [2];
long local_20 [2];
std::__cxx11::string::string<std::allocator<char>>((string *)local_30,param_1,&local_31);
/* try { // try from 00143264 to 0014326e has its CatchHandler @ 00143292 */
write(this,(string *)local_30);
if (local_30[0] != local_20) {
operator_delete(local_30[0],local_20[0] + 1);
}
return;
}
| |
45,207 | my_thread_destroy_common_mutex | eloqsql/mysys/my_thr_init.c | void my_thread_destroy_common_mutex(void)
{
mysql_mutex_destroy(&THR_LOCK_open);
mysql_mutex_destroy(&THR_LOCK_lock);
mysql_mutex_destroy(&THR_LOCK_myisam);
mysql_mutex_destroy(&THR_LOCK_myisam_mmap);
mysql_mutex_destroy(&THR_LOCK_heap);
mysql_mutex_destroy(&THR_LOCK_net);
mysql_mutex_destroy(&THR_LOCK_charset);
#if !defined(HAVE_LOCALTIME_R) || !defined(HAVE_GMTIME_R)
mysql_mutex_destroy(&LOCK_localtime_r);
#endif
} | O0 | c | my_thread_destroy_common_mutex:
pushq %rbp
movq %rsp, %rbp
leaq 0x367d3d(%rip), %rdi # 0x38e288
callq 0x265a0
leaq 0x367d79(%rip), %rdi # 0x38e2d0
callq 0x265a0
leaq 0x367db5(%rip), %rdi # 0x38e318
callq 0x265a0
leaq 0x367df1(%rip), %rdi # 0x38e360
callq 0x265a0
leaq 0x367e2d(%rip), %rdi # 0x38e3a8
callq 0x265a0
leaq 0x367e69(%rip), %rdi # 0x38e3f0
callq 0x265a0
leaq 0x367ea5(%rip), %rdi # 0x38e438
callq 0x265a0
popq %rbp
retq
nopw (%rax,%rax)
| my_thread_destroy_common_mutex:
push rbp
mov rbp, rsp
lea rdi, THR_LOCK_open
call inline_mysql_mutex_destroy
lea rdi, THR_LOCK_lock
call inline_mysql_mutex_destroy
lea rdi, THR_LOCK_myisam
call inline_mysql_mutex_destroy
lea rdi, THR_LOCK_myisam_mmap
call inline_mysql_mutex_destroy
lea rdi, THR_LOCK_heap
call inline_mysql_mutex_destroy
lea rdi, THR_LOCK_net
call inline_mysql_mutex_destroy
lea rdi, THR_LOCK_charset
call inline_mysql_mutex_destroy
pop rbp
retn
| long long my_thread_destroy_common_mutex()
{
inline_mysql_mutex_destroy(&THR_LOCK_open);
inline_mysql_mutex_destroy(&THR_LOCK_lock);
inline_mysql_mutex_destroy(&THR_LOCK_myisam);
inline_mysql_mutex_destroy(&THR_LOCK_myisam_mmap);
inline_mysql_mutex_destroy(&THR_LOCK_heap);
inline_mysql_mutex_destroy(&THR_LOCK_net);
return inline_mysql_mutex_destroy(&THR_LOCK_charset);
}
| my_thread_destroy_common_mutex:
PUSH RBP
MOV RBP,RSP
LEA RDI,[0x48e288]
CALL 0x001265a0
LEA RDI,[0x48e2d0]
CALL 0x001265a0
LEA RDI,[0x48e318]
CALL 0x001265a0
LEA RDI,[0x48e360]
CALL 0x001265a0
LEA RDI,[0x48e3a8]
CALL 0x001265a0
LEA RDI,[0x48e3f0]
CALL 0x001265a0
LEA RDI,[0x48e438]
CALL 0x001265a0
POP RBP
RET
|
void my_thread_destroy_common_mutex(void)
{
inline_mysql_mutex_destroy(THR_LOCK_open);
inline_mysql_mutex_destroy(THR_LOCK_lock);
inline_mysql_mutex_destroy(THR_LOCK_myisam);
inline_mysql_mutex_destroy(THR_LOCK_myisam_mmap);
inline_mysql_mutex_destroy(THR_LOCK_heap);
inline_mysql_mutex_destroy(THR_LOCK_net);
inline_mysql_mutex_destroy(THR_LOCK_charset);
return;
}
| |
45,208 | my_bitmap_init | eloqsql/mysys/my_bitmap.c | my_bool my_bitmap_init(MY_BITMAP *map, my_bitmap_map *buf, uint n_bits,
my_bool thread_safe)
{
DBUG_ENTER("my_bitmap_init");
map->mutex= 0;
if (!buf)
{
uint size_in_bytes= bitmap_buffer_size(n_bits);
uint extra= 0;
if (thread_safe)
{
size_in_bytes= ALIGN_SIZE(size_in_bytes);
extra= sizeof(mysql_mutex_t);
}
if (!(buf= (my_bitmap_map*) my_malloc(key_memory_MY_BITMAP_bitmap,
size_in_bytes+extra, MYF(MY_WME))))
DBUG_RETURN(1);
if (thread_safe)
{
map->mutex= (mysql_mutex_t *) ((char*) buf + size_in_bytes);
mysql_mutex_init(key_BITMAP_mutex, map->mutex, MY_MUTEX_INIT_FAST);
}
}
else
{
DBUG_ASSERT(thread_safe == 0);
}
map->bitmap= buf;
map->n_bits= n_bits;
create_last_word_mask(map);
bitmap_clear_all(map);
DBUG_RETURN(0);
} | O3 | c | my_bitmap_init:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movl %edx, %r14d
movq %rsi, %r15
movq %rdi, %rbx
movq $0x0, 0x10(%rdi)
testq %rsi, %rsi
jne 0xbe589
movl %ecx, %r12d
leal 0x1f(%r14), %eax
shrl $0x5, %eax
leal 0x7(,%rax,4), %r13d
shll $0x2, %eax
andl $-0x8, %r13d
leal 0x48(%r13), %esi
testb %r12b, %r12b
leaq 0xb9d9df(%rip), %rcx # 0xc5bf00
movl (%rcx), %edi
cmovel %eax, %esi
movl $0x10, %edx
callq 0xc3acd
movq %rax, %r15
testb %r12b, %r12b
je 0xbe584
testq %r15, %r15
je 0xbe584
movq %r15, %r12
addq %r13, %r12
movq %r12, 0x10(%rbx)
leaq 0xb9d002(%rip), %rax # 0xc5b550
movl (%rax), %edi
leaq 0x2fa6b1(%rip), %rax # 0x3b8c08
movq (%rax), %rax
movq %r12, %rsi
callq *0x40(%rax)
movq %rax, 0x40(%r15,%r13)
movq %r12, 0x38(%r15,%r13)
xorps %xmm0, %xmm0
movups %xmm0, 0x28(%r15,%r13)
leaq 0xb9dcf6(%rip), %rsi # 0xc5c270
movq %r12, %rdi
callq 0x2b3a0
jmp 0xbe589
testq %r15, %r15
je 0xbe5c1
movq %r15, (%rbx)
movl %r14d, 0x1c(%rbx)
movq %rbx, %rdi
callq 0xbe45c
movq (%rbx), %rdi
movl 0x1c(%rbx), %edx
addl $0x1f, %edx
shrl $0x3, %edx
andl $-0x4, %edx
xorl %ebx, %ebx
xorl %esi, %esi
callq 0x2b2f0
movl %ebx, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movb $0x1, %bl
jmp 0xbe5b0
| my_bitmap_init:
push rbp
mov rbp, rsp
push r15
push r14
push r13
push r12
push rbx
push rax
mov r14d, edx
mov r15, rsi
mov rbx, rdi
mov qword ptr [rdi+10h], 0
test rsi, rsi
jnz loc_BE589
mov r12d, ecx
lea eax, [r14+1Fh]
shr eax, 5
lea r13d, ds:7[rax*4]
shl eax, 2
and r13d, 0FFFFFFF8h
lea esi, [r13+48h]
test r12b, r12b
lea rcx, key_memory_MY_BITMAP_bitmap
mov edi, [rcx]
cmovz esi, eax
mov edx, 10h
call my_malloc
mov r15, rax
test r12b, r12b
jz short loc_BE584
test r15, r15
jz short loc_BE584
mov r12, r15
add r12, r13
mov [rbx+10h], r12
lea rax, key_BITMAP_mutex
mov edi, [rax]
lea rax, PSI_server
mov rax, [rax]
mov rsi, r12
call qword ptr [rax+40h]
mov [r15+r13+40h], rax
mov [r15+r13+38h], r12
xorps xmm0, xmm0
movups xmmword ptr [r15+r13+28h], xmm0
lea rsi, my_fast_mutexattr
mov rdi, r12
call _pthread_mutex_init
jmp short loc_BE589
loc_BE584:
test r15, r15
jz short loc_BE5C1
loc_BE589:
mov [rbx], r15
mov [rbx+1Ch], r14d
mov rdi, rbx
call create_last_word_mask
mov rdi, [rbx]
mov edx, [rbx+1Ch]
add edx, 1Fh
shr edx, 3
and edx, 0FFFFFFFCh
xor ebx, ebx
xor esi, esi
call _memset
loc_BE5B0:
mov eax, ebx
add rsp, 8
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
loc_BE5C1:
mov bl, 1
jmp short loc_BE5B0
| long long my_bitmap_init(long long a1, long long a2, int a3, char a4)
{
long long v5; // r15
unsigned int v6; // ebx
unsigned int v8; // eax
int v9; // r13d
unsigned int v10; // eax
long long v11; // r13
long long v12; // rsi
long long v13; // rax
long long v14; // r12
v5 = a2;
v6 = a1;
*(_QWORD *)(a1 + 16) = 0LL;
if ( !a2 )
{
v8 = (unsigned int)(a3 + 31) >> 5;
v9 = 4 * v8 + 7;
v10 = 4 * v8;
v11 = v9 & 0xFFFFFFF8;
v12 = (unsigned int)(v11 + 72);
if ( !a4 )
v12 = v10;
v13 = my_malloc(key_memory_MY_BITMAP_bitmap, v12, 16LL);
v5 = v13;
if ( a4 && v13 )
{
v14 = v11 + v13;
*(_QWORD *)(a1 + 16) = v11 + v13;
*(_QWORD *)(v13 + v11 + 64) = ((long long ( *)(_QWORD, long long))PSI_server[8])(
key_BITMAP_mutex,
v11 + v13);
*(_QWORD *)(v5 + v11 + 56) = v14;
*(_OWORD *)(v5 + v11 + 40) = 0LL;
pthread_mutex_init(v11 + v5, &my_fast_mutexattr);
}
else if ( !v13 )
{
LOBYTE(v6) = 1;
return v6;
}
}
*(_QWORD *)a1 = v5;
*(_DWORD *)(a1 + 28) = a3;
create_last_word_mask(a1);
v6 = 0;
memset(*(_QWORD *)a1, 0LL, ((unsigned int)(*(_DWORD *)(a1 + 28) + 31) >> 3) & 0xFFFFFFFC);
return v6;
}
| my_bitmap_init:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
PUSH RAX
MOV R14D,EDX
MOV R15,RSI
MOV RBX,RDI
MOV qword ptr [RDI + 0x10],0x0
TEST RSI,RSI
JNZ 0x001be589
MOV R12D,ECX
LEA EAX,[R14 + 0x1f]
SHR EAX,0x5
LEA R13D,[0x7 + RAX*0x4]
SHL EAX,0x2
AND R13D,0xfffffff8
LEA ESI,[R13 + 0x48]
TEST R12B,R12B
LEA RCX,[0xd5bf00]
MOV EDI,dword ptr [RCX]
CMOVZ ESI,EAX
MOV EDX,0x10
CALL 0x001c3acd
MOV R15,RAX
TEST R12B,R12B
JZ 0x001be584
TEST R15,R15
JZ 0x001be584
MOV R12,R15
ADD R12,R13
MOV qword ptr [RBX + 0x10],R12
LEA RAX,[0xd5b550]
MOV EDI,dword ptr [RAX]
LEA RAX,[0x4b8c08]
MOV RAX,qword ptr [RAX]
MOV RSI,R12
CALL qword ptr [RAX + 0x40]
MOV qword ptr [R15 + R13*0x1 + 0x40],RAX
MOV qword ptr [R15 + R13*0x1 + 0x38],R12
XORPS XMM0,XMM0
MOVUPS xmmword ptr [R15 + R13*0x1 + 0x28],XMM0
LEA RSI,[0xd5c270]
MOV RDI,R12
CALL 0x0012b3a0
JMP 0x001be589
LAB_001be584:
TEST R15,R15
JZ 0x001be5c1
LAB_001be589:
MOV qword ptr [RBX],R15
MOV dword ptr [RBX + 0x1c],R14D
MOV RDI,RBX
CALL 0x001be45c
MOV RDI,qword ptr [RBX]
MOV EDX,dword ptr [RBX + 0x1c]
ADD EDX,0x1f
SHR EDX,0x3
AND EDX,0xfffffffc
XOR EBX,EBX
XOR ESI,ESI
CALL 0x0012b2f0
LAB_001be5b0:
MOV EAX,EBX
ADD RSP,0x8
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
LAB_001be5c1:
MOV BL,0x1
JMP 0x001be5b0
|
ulong my_bitmap_init(long *param_1,long param_2,int param_3,char param_4)
{
int8 *puVar1;
int iVar2;
uint uVar3;
int8 uVar4;
ulong uVar5;
pthread_mutex_t *__mutex;
uint uVar6;
param_1[2] = 0;
if (param_2 == 0) {
uVar3 = param_3 + 0x1fU >> 5;
uVar6 = uVar3 * 4 + 7 & 0xfffffff8;
uVar5 = (ulong)uVar6;
iVar2 = uVar6 + 0x48;
if (param_4 == '\0') {
iVar2 = uVar3 << 2;
}
param_2 = my_malloc(key_memory_MY_BITMAP_bitmap,iVar2,0x10);
if ((param_4 == '\0') || (param_2 == 0)) {
if (param_2 == 0) {
uVar5 = CONCAT71((int7)((ulong)param_1 >> 8),1);
goto LAB_001be5b0;
}
}
else {
__mutex = (pthread_mutex_t *)(param_2 + uVar5);
param_1[2] = (long)__mutex;
uVar4 = (**(code **)(PSI_server + 0x40))(key_BITMAP_mutex,__mutex);
*(int8 *)(param_2 + 0x40 + uVar5) = uVar4;
*(pthread_mutex_t **)(param_2 + 0x38 + uVar5) = __mutex;
puVar1 = (int8 *)(param_2 + 0x28 + uVar5);
*puVar1 = 0;
puVar1[1] = 0;
pthread_mutex_init(__mutex,(pthread_mutexattr_t *)&my_fast_mutexattr);
}
}
*param_1 = param_2;
*(int *)((long)param_1 + 0x1c) = param_3;
create_last_word_mask(param_1);
uVar5 = 0;
memset((void *)*param_1,0,(ulong)(*(int *)((long)param_1 + 0x1c) + 0x1fU >> 3 & 0xfffffffc));
LAB_001be5b0:
return uVar5 & 0xffffffff;
}
| |
45,209 | my_numcells_cp932 | eloqsql/strings/ctype-cp932.c | static
size_t my_numcells_cp932(CHARSET_INFO *cs __attribute__((unused)),
const char *str, const char *str_end)
{
size_t clen= 0;
const uchar *b= (const uchar *) str;
const uchar *e= (const uchar *) str_end;
for (clen= 0; b < e; )
{
if (*b >= 0xA1 && *b <= 0xDF)
{
clen++;
b++;
}
else if (*b > 0x7F)
{
clen+= 2;
b+= 2;
}
else
{
clen++;
b++;
}
}
return clen;
} | O0 | c | my_numcells_cp932:
pushq %rbp
movq %rsp, %rbp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movq $0x0, -0x20(%rbp)
movq -0x10(%rbp), %rax
movq %rax, -0x28(%rbp)
movq -0x18(%rbp), %rax
movq %rax, -0x30(%rbp)
movq $0x0, -0x20(%rbp)
movq -0x28(%rbp), %rax
cmpq -0x30(%rbp), %rax
jae 0x46f25
movq -0x28(%rbp), %rax
movzbl (%rax), %eax
cmpl $0xa1, %eax
jl 0x46ee0
movq -0x28(%rbp), %rax
movzbl (%rax), %eax
cmpl $0xdf, %eax
jg 0x46ee0
movq -0x20(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x20(%rbp)
movq -0x28(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x28(%rbp)
jmp 0x46f20
movq -0x28(%rbp), %rax
movzbl (%rax), %eax
cmpl $0x7f, %eax
jle 0x46f06
movq -0x20(%rbp), %rax
addq $0x2, %rax
movq %rax, -0x20(%rbp)
movq -0x28(%rbp), %rax
addq $0x2, %rax
movq %rax, -0x28(%rbp)
jmp 0x46f1e
movq -0x20(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x20(%rbp)
movq -0x28(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x28(%rbp)
jmp 0x46f20
jmp 0x46ea0
movq -0x20(%rbp), %rax
popq %rbp
retq
nopl (%rax,%rax)
| my_numcells_cp932:
push rbp
mov rbp, rsp
mov [rbp+var_8], rdi
mov [rbp+var_10], rsi
mov [rbp+var_18], rdx
mov [rbp+var_20], 0
mov rax, [rbp+var_10]
mov [rbp+var_28], rax
mov rax, [rbp+var_18]
mov [rbp+var_30], rax
mov [rbp+var_20], 0
loc_46EA0:
mov rax, [rbp+var_28]
cmp rax, [rbp+var_30]
jnb short loc_46F25
mov rax, [rbp+var_28]
movzx eax, byte ptr [rax]
cmp eax, 0A1h
jl short loc_46EE0
mov rax, [rbp+var_28]
movzx eax, byte ptr [rax]
cmp eax, 0DFh
jg short loc_46EE0
mov rax, [rbp+var_20]
add rax, 1
mov [rbp+var_20], rax
mov rax, [rbp+var_28]
add rax, 1
mov [rbp+var_28], rax
jmp short loc_46F20
loc_46EE0:
mov rax, [rbp+var_28]
movzx eax, byte ptr [rax]
cmp eax, 7Fh
jle short loc_46F06
mov rax, [rbp+var_20]
add rax, 2
mov [rbp+var_20], rax
mov rax, [rbp+var_28]
add rax, 2
mov [rbp+var_28], rax
jmp short loc_46F1E
loc_46F06:
mov rax, [rbp+var_20]
add rax, 1
mov [rbp+var_20], rax
mov rax, [rbp+var_28]
add rax, 1
mov [rbp+var_28], rax
loc_46F1E:
jmp short $+2
loc_46F20:
jmp loc_46EA0
loc_46F25:
mov rax, [rbp+var_20]
pop rbp
retn
| long long my_numcells_cp932(long long a1, unsigned __int8 *a2, unsigned long long a3)
{
long long v5; // [rsp+10h] [rbp-20h]
v5 = 0LL;
while ( (unsigned long long)a2 < a3 )
{
if ( *a2 < 0xA1u || *a2 > 0xDFu )
{
if ( *a2 <= 0x7Fu )
{
++v5;
++a2;
}
else
{
v5 += 2LL;
a2 += 2;
}
}
else
{
++v5;
++a2;
}
}
return v5;
}
| my_numcells_cp932:
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],0x0
MOV RAX,qword ptr [RBP + -0x10]
MOV qword ptr [RBP + -0x28],RAX
MOV RAX,qword ptr [RBP + -0x18]
MOV qword ptr [RBP + -0x30],RAX
MOV qword ptr [RBP + -0x20],0x0
LAB_00146ea0:
MOV RAX,qword ptr [RBP + -0x28]
CMP RAX,qword ptr [RBP + -0x30]
JNC 0x00146f25
MOV RAX,qword ptr [RBP + -0x28]
MOVZX EAX,byte ptr [RAX]
CMP EAX,0xa1
JL 0x00146ee0
MOV RAX,qword ptr [RBP + -0x28]
MOVZX EAX,byte ptr [RAX]
CMP EAX,0xdf
JG 0x00146ee0
MOV RAX,qword ptr [RBP + -0x20]
ADD RAX,0x1
MOV qword ptr [RBP + -0x20],RAX
MOV RAX,qword ptr [RBP + -0x28]
ADD RAX,0x1
MOV qword ptr [RBP + -0x28],RAX
JMP 0x00146f20
LAB_00146ee0:
MOV RAX,qword ptr [RBP + -0x28]
MOVZX EAX,byte ptr [RAX]
CMP EAX,0x7f
JLE 0x00146f06
MOV RAX,qword ptr [RBP + -0x20]
ADD RAX,0x2
MOV qword ptr [RBP + -0x20],RAX
MOV RAX,qword ptr [RBP + -0x28]
ADD RAX,0x2
MOV qword ptr [RBP + -0x28],RAX
JMP 0x00146f1e
LAB_00146f06:
MOV RAX,qword ptr [RBP + -0x20]
ADD RAX,0x1
MOV qword ptr [RBP + -0x20],RAX
MOV RAX,qword ptr [RBP + -0x28]
ADD RAX,0x1
MOV qword ptr [RBP + -0x28],RAX
LAB_00146f1e:
JMP 0x00146f20
LAB_00146f20:
JMP 0x00146ea0
LAB_00146f25:
MOV RAX,qword ptr [RBP + -0x20]
POP RBP
RET
|
long my_numcells_cp932(int8 param_1,byte *param_2,byte *param_3)
{
byte *local_30;
long local_28;
local_28 = 0;
local_30 = param_2;
while (local_30 < param_3) {
if ((*local_30 < 0xa1) || (0xdf < *local_30)) {
if (*local_30 < 0x80) {
local_28 = local_28 + 1;
local_30 = local_30 + 1;
}
else {
local_28 = local_28 + 2;
local_30 = local_30 + 2;
}
}
else {
local_28 = local_28 + 1;
local_30 = local_30 + 1;
}
}
return local_28;
}
| |
45,210 | PFS_single_stat::aggregate_no_check(PFS_single_stat const*) | eloqsql/storage/perfschema/pfs_stat.h | inline void aggregate_no_check(const PFS_single_stat *stat)
{
m_count+= stat->m_count;
m_sum+= stat->m_sum;
if (unlikely(m_min > stat->m_min))
m_min= stat->m_min;
if (unlikely(m_max < stat->m_max))
m_max= stat->m_max;
} | O0 | c | PFS_single_stat::aggregate_no_check(PFS_single_stat const*):
pushq %rbp
movq %rsp, %rbp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x18(%rbp)
movq -0x10(%rbp), %rcx
movq (%rcx), %rcx
addq (%rax), %rcx
movq %rcx, (%rax)
movq -0x10(%rbp), %rcx
movq 0x8(%rcx), %rcx
addq 0x8(%rax), %rcx
movq %rcx, 0x8(%rax)
movq 0x10(%rax), %rax
movq -0x10(%rbp), %rcx
cmpq 0x10(%rcx), %rax
seta %al
andb $0x1, %al
movzbl %al, %eax
cmpl $0x0, %eax
je 0x36eba
movq -0x18(%rbp), %rax
movq -0x10(%rbp), %rcx
movq 0x10(%rcx), %rcx
movq %rcx, 0x10(%rax)
movq -0x18(%rbp), %rax
movq 0x18(%rax), %rax
movq -0x10(%rbp), %rcx
cmpq 0x18(%rcx), %rax
setb %al
andb $0x1, %al
movzbl %al, %eax
cmpl $0x0, %eax
je 0x36ee7
movq -0x18(%rbp), %rax
movq -0x10(%rbp), %rcx
movq 0x18(%rcx), %rcx
movq %rcx, 0x18(%rax)
popq %rbp
retq
nopl (%rax)
| _ZN15PFS_single_stat18aggregate_no_checkEPKS_:
push rbp
mov rbp, rsp
mov [rbp+var_8], rdi
mov [rbp+var_10], rsi
mov rax, [rbp+var_8]
mov [rbp+var_18], rax
mov rcx, [rbp+var_10]
mov rcx, [rcx]
add rcx, [rax]
mov [rax], rcx
mov rcx, [rbp+var_10]
mov rcx, [rcx+8]
add rcx, [rax+8]
mov [rax+8], rcx
mov rax, [rax+10h]
mov rcx, [rbp+var_10]
cmp rax, [rcx+10h]
setnbe al
and al, 1
movzx eax, al
cmp eax, 0
jz short loc_36EBA
mov rax, [rbp+var_18]
mov rcx, [rbp+var_10]
mov rcx, [rcx+10h]
mov [rax+10h], rcx
loc_36EBA:
mov rax, [rbp+var_18]
mov rax, [rax+18h]
mov rcx, [rbp+var_10]
cmp rax, [rcx+18h]
setb al
and al, 1
movzx eax, al
cmp eax, 0
jz short loc_36EE7
mov rax, [rbp+var_18]
mov rcx, [rbp+var_10]
mov rcx, [rcx+18h]
mov [rax+18h], rcx
loc_36EE7:
pop rbp
retn
| long long PFS_single_stat::aggregate_no_check(PFS_single_stat *this, const PFS_single_stat *a2)
{
long long result; // rax
*(_QWORD *)this += *(_QWORD *)a2;
*((_QWORD *)this + 1) += *((_QWORD *)a2 + 1);
if ( *((_QWORD *)this + 2) > *((_QWORD *)a2 + 2) )
*((_QWORD *)this + 2) = *((_QWORD *)a2 + 2);
result = *((_QWORD *)this + 3) < *((_QWORD *)a2 + 3);
if ( *((_QWORD *)this + 3) < *((_QWORD *)a2 + 3) )
{
result = (long long)this;
*((_QWORD *)this + 3) = *((_QWORD *)a2 + 3);
}
return result;
}
| aggregate_no_check:
PUSH RBP
MOV RBP,RSP
MOV qword ptr [RBP + -0x8],RDI
MOV qword ptr [RBP + -0x10],RSI
MOV RAX,qword ptr [RBP + -0x8]
MOV qword ptr [RBP + -0x18],RAX
MOV RCX,qword ptr [RBP + -0x10]
MOV RCX,qword ptr [RCX]
ADD RCX,qword ptr [RAX]
MOV qword ptr [RAX],RCX
MOV RCX,qword ptr [RBP + -0x10]
MOV RCX,qword ptr [RCX + 0x8]
ADD RCX,qword ptr [RAX + 0x8]
MOV qword ptr [RAX + 0x8],RCX
MOV RAX,qword ptr [RAX + 0x10]
MOV RCX,qword ptr [RBP + -0x10]
CMP RAX,qword ptr [RCX + 0x10]
SETA AL
AND AL,0x1
MOVZX EAX,AL
CMP EAX,0x0
JZ 0x00136eba
MOV RAX,qword ptr [RBP + -0x18]
MOV RCX,qword ptr [RBP + -0x10]
MOV RCX,qword ptr [RCX + 0x10]
MOV qword ptr [RAX + 0x10],RCX
LAB_00136eba:
MOV RAX,qword ptr [RBP + -0x18]
MOV RAX,qword ptr [RAX + 0x18]
MOV RCX,qword ptr [RBP + -0x10]
CMP RAX,qword ptr [RCX + 0x18]
SETC AL
AND AL,0x1
MOVZX EAX,AL
CMP EAX,0x0
JZ 0x00136ee7
MOV RAX,qword ptr [RBP + -0x18]
MOV RCX,qword ptr [RBP + -0x10]
MOV RCX,qword ptr [RCX + 0x18]
MOV qword ptr [RAX + 0x18],RCX
LAB_00136ee7:
POP RBP
RET
|
/* PFS_single_stat::aggregate_no_check(PFS_single_stat const*) */
void __thiscall PFS_single_stat::aggregate_no_check(PFS_single_stat *this,PFS_single_stat *param_1)
{
*(long *)this = *(long *)param_1 + *(long *)this;
*(long *)(this + 8) = *(long *)(param_1 + 8) + *(long *)(this + 8);
if (*(ulong *)(param_1 + 0x10) < *(ulong *)(this + 0x10)) {
*(int8 *)(this + 0x10) = *(int8 *)(param_1 + 0x10);
}
if (*(ulong *)(this + 0x18) < *(ulong *)(param_1 + 0x18)) {
*(int8 *)(this + 0x18) = *(int8 *)(param_1 + 0x18);
}
return;
}
| |
45,211 | plutovg_path_cubic_to | dmazzella[P]pylunasvg/lunasvg/plutovg/source/plutovg-path.c | void plutovg_path_cubic_to(plutovg_path_t* path, float x1, float y1, float x2, float y2, float x3, float y3)
{
if(path->elements.size == 0)
plutovg_path_move_to(path, 0, 0);
plutovg_path_element_t* elements = plutovg_path_add_command(path, PLUTOVG_PATH_COMMAND_CUBIC_TO, 3);
elements[0].point = PLUTOVG_MAKE_POINT(x1, y1);
elements[1].point = PLUTOVG_MAKE_POINT(x2, y2);
elements[2].point = PLUTOVG_MAKE_POINT(x3, y3);
path->num_curves += 1;
} | O1 | c | plutovg_path_cubic_to:
pushq %r14
pushq %rbx
subq $0x18, %rsp
movss %xmm5, 0x14(%rsp)
movss %xmm4, 0x10(%rsp)
movss %xmm3, 0xc(%rsp)
movss %xmm2, 0x8(%rsp)
movss %xmm1, 0x4(%rsp)
movss %xmm0, (%rsp)
movq %rdi, %rbx
cmpl $0x0, 0x20(%rdi)
jne 0x2a4a1
xorl %r14d, %r14d
movq %rbx, %rdi
xorl %esi, %esi
movl $0x1, %edx
callq 0x2a2d3
movq %r14, (%rax)
movq %r14, 0x10(%rbx)
incl 0x8(%rbx)
movq %rbx, %rdi
movl $0x2, %esi
movl $0x3, %edx
callq 0x2a2d3
movss (%rsp), %xmm0
movss %xmm0, (%rax)
movss 0x4(%rsp), %xmm0
movss %xmm0, 0x4(%rax)
movss 0x8(%rsp), %xmm0
movss %xmm0, 0x8(%rax)
movss 0xc(%rsp), %xmm0
movss %xmm0, 0xc(%rax)
movss 0x10(%rsp), %xmm0
movss %xmm0, 0x10(%rax)
movss 0x14(%rsp), %xmm0
movss %xmm0, 0x14(%rax)
incl 0xc(%rbx)
addq $0x18, %rsp
popq %rbx
popq %r14
retq
| plutovg_path_cubic_to:
push r14
push rbx
sub rsp, 18h
movss [rsp+28h+var_14], xmm5
movss [rsp+28h+var_18], xmm4
movss [rsp+28h+var_1C], xmm3
movss [rsp+28h+var_20], xmm2
movss [rsp+28h+var_24], xmm1
movss [rsp+28h+var_28], xmm0
mov rbx, rdi
cmp dword ptr [rdi+20h], 0
jnz short loc_2A4A1
xor r14d, r14d
mov rdi, rbx
xor esi, esi
mov edx, 1
call plutovg_path_add_command
mov [rax], r14
mov [rbx+10h], r14
inc dword ptr [rbx+8]
loc_2A4A1:
mov rdi, rbx
mov esi, 2
mov edx, 3
call plutovg_path_add_command
movss xmm0, [rsp+28h+var_28]
movss dword ptr [rax], xmm0
movss xmm0, [rsp+28h+var_24]
movss dword ptr [rax+4], xmm0
movss xmm0, [rsp+28h+var_20]
movss dword ptr [rax+8], xmm0
movss xmm0, [rsp+28h+var_1C]
movss dword ptr [rax+0Ch], xmm0
movss xmm0, [rsp+28h+var_18]
movss dword ptr [rax+10h], xmm0
movss xmm0, [rsp+28h+var_14]
movss dword ptr [rax+14h], xmm0
inc dword ptr [rbx+0Ch]
add rsp, 18h
pop rbx
pop r14
retn
| float * plutovg_path_cubic_to(long long a1, float a2, float a3, float a4, float a5, float a6, float a7)
{
float *result; // rax
if ( !*(_DWORD *)(a1 + 32) )
{
*(_QWORD *)plutovg_path_add_command(a1, 0, 1) = 0LL;
*(_QWORD *)(a1 + 16) = 0LL;
++*(_DWORD *)(a1 + 8);
}
result = (float *)plutovg_path_add_command(a1, 2, 3);
*result = a2;
result[1] = a3;
result[2] = a4;
result[3] = a5;
result[4] = a6;
result[5] = a7;
++*(_DWORD *)(a1 + 12);
return result;
}
| plutovg_path_cubic_to:
PUSH R14
PUSH RBX
SUB RSP,0x18
MOVSS dword ptr [RSP + 0x14],XMM5
MOVSS dword ptr [RSP + 0x10],XMM4
MOVSS dword ptr [RSP + 0xc],XMM3
MOVSS dword ptr [RSP + 0x8],XMM2
MOVSS dword ptr [RSP + 0x4],XMM1
MOVSS dword ptr [RSP],XMM0
MOV RBX,RDI
CMP dword ptr [RDI + 0x20],0x0
JNZ 0x0012a4a1
XOR R14D,R14D
MOV RDI,RBX
XOR ESI,ESI
MOV EDX,0x1
CALL 0x0012a2d3
MOV qword ptr [RAX],R14
MOV qword ptr [RBX + 0x10],R14
INC dword ptr [RBX + 0x8]
LAB_0012a4a1:
MOV RDI,RBX
MOV ESI,0x2
MOV EDX,0x3
CALL 0x0012a2d3
MOVSS XMM0,dword ptr [RSP]
MOVSS dword ptr [RAX],XMM0
MOVSS XMM0,dword ptr [RSP + 0x4]
MOVSS dword ptr [RAX + 0x4],XMM0
MOVSS XMM0,dword ptr [RSP + 0x8]
MOVSS dword ptr [RAX + 0x8],XMM0
MOVSS XMM0,dword ptr [RSP + 0xc]
MOVSS dword ptr [RAX + 0xc],XMM0
MOVSS XMM0,dword ptr [RSP + 0x10]
MOVSS dword ptr [RAX + 0x10],XMM0
MOVSS XMM0,dword ptr [RSP + 0x14]
MOVSS dword ptr [RAX + 0x14],XMM0
INC dword ptr [RBX + 0xc]
ADD RSP,0x18
POP RBX
POP R14
RET
|
void plutovg_path_cubic_to
(int4 param_1,int4 param_2,int4 param_3,int4 param_4,
int4 param_5,int4 param_6,long param_7)
{
int8 *puVar1;
int4 *puVar2;
if (*(int *)(param_7 + 0x20) == 0) {
puVar1 = (int8 *)plutovg_path_add_command(param_7,0,1);
*puVar1 = 0;
*(int8 *)(param_7 + 0x10) = 0;
*(int *)(param_7 + 8) = *(int *)(param_7 + 8) + 1;
}
puVar2 = (int4 *)plutovg_path_add_command(param_7,2,3);
*puVar2 = param_1;
puVar2[1] = param_2;
puVar2[2] = param_3;
puVar2[3] = param_4;
puVar2[4] = param_5;
puVar2[5] = param_6;
*(int *)(param_7 + 0xc) = *(int *)(param_7 + 0xc) + 1;
return;
}
| |
45,212 | fill_quick_table | eloqsql/storage/maria/ma_packrec.c | static void fill_quick_table(uint16 *table, uint bits, uint max_bits,
uint value)
{
uint16 *end;
DBUG_ENTER("fill_quick_table");
/*
Bits 1..8 of value represent the decoded uchar value.
Bits 9..14 become the length of the Huffman code for this uchar value.
Bit 16 flags a valid code (IS_CHAR).
*/
value|= (max_bits - bits) << 8 | IS_CHAR;
for (end= table + ((my_ptrdiff_t) 1 << bits); table < end; table++)
{
*table= (uint16) value;
}
DBUG_VOID_RETURN;
} | O0 | c | fill_quick_table:
pushq %rbp
movq %rsp, %rbp
movq %rdi, -0x8(%rbp)
movl %esi, -0xc(%rbp)
movl %edx, -0x10(%rbp)
movl %ecx, -0x14(%rbp)
movl -0x10(%rbp), %eax
subl -0xc(%rbp), %eax
shll $0x8, %eax
orl $0x8000, %eax # imm = 0x8000
orl -0x14(%rbp), %eax
movl %eax, -0x14(%rbp)
movq -0x8(%rbp), %rax
movl -0xc(%rbp), %ecx
movl $0x1, %edx
shlq %cl, %rdx
movq %rdx, %rcx
shlq %rcx
addq %rcx, %rax
movq %rax, -0x20(%rbp)
movq -0x8(%rbp), %rax
cmpq -0x20(%rbp), %rax
jae 0x4fca6
movl -0x14(%rbp), %eax
movw %ax, %cx
movq -0x8(%rbp), %rax
movw %cx, (%rax)
movq -0x8(%rbp), %rax
addq $0x2, %rax
movq %rax, -0x8(%rbp)
jmp 0x4fc81
jmp 0x4fca8
jmp 0x4fcaa
popq %rbp
retq
nopl (%rax)
| fill_quick_table:
push rbp
mov rbp, rsp
mov [rbp+var_8], rdi
mov [rbp+var_C], esi
mov [rbp+var_10], edx
mov [rbp+var_14], ecx
mov eax, [rbp+var_10]
sub eax, [rbp+var_C]
shl eax, 8
or eax, 8000h
or eax, [rbp+var_14]
mov [rbp+var_14], eax
mov rax, [rbp+var_8]
mov ecx, [rbp+var_C]
mov edx, 1
shl rdx, cl
mov rcx, rdx
shl rcx, 1
add rax, rcx
mov [rbp+var_20], rax
loc_4FC81:
mov rax, [rbp+var_8]
cmp rax, [rbp+var_20]
jnb short loc_4FCA6
mov eax, [rbp+var_14]
mov cx, ax
mov rax, [rbp+var_8]
mov [rax], cx
mov rax, [rbp+var_8]
add rax, 2
mov [rbp+var_8], rax
jmp short loc_4FC81
loc_4FCA6:
jmp short $+2
loc_4FCA8:
jmp short $+2
loc_4FCAA:
pop rbp
retn
| _WORD * fill_quick_table(_WORD *a1, __int16 a2, __int16 a3, __int16 a4)
{
_WORD *result; // rax
_WORD *i; // [rsp+18h] [rbp-8h]
for ( i = a1; ; ++i )
{
result = i;
if ( i >= &a1[1LL << a2] )
break;
*i = a4 | ((a3 - a2) << 8) | 0x8000;
}
return result;
}
| fill_quick_table:
PUSH RBP
MOV RBP,RSP
MOV qword ptr [RBP + -0x8],RDI
MOV dword ptr [RBP + -0xc],ESI
MOV dword ptr [RBP + -0x10],EDX
MOV dword ptr [RBP + -0x14],ECX
MOV EAX,dword ptr [RBP + -0x10]
SUB EAX,dword ptr [RBP + -0xc]
SHL EAX,0x8
OR EAX,0x8000
OR EAX,dword ptr [RBP + -0x14]
MOV dword ptr [RBP + -0x14],EAX
MOV RAX,qword ptr [RBP + -0x8]
MOV ECX,dword ptr [RBP + -0xc]
MOV EDX,0x1
SHL RDX,CL
MOV RCX,RDX
SHL RCX,0x1
ADD RAX,RCX
MOV qword ptr [RBP + -0x20],RAX
LAB_0014fc81:
MOV RAX,qword ptr [RBP + -0x8]
CMP RAX,qword ptr [RBP + -0x20]
JNC 0x0014fca6
MOV EAX,dword ptr [RBP + -0x14]
MOV CX,AX
MOV RAX,qword ptr [RBP + -0x8]
MOV word ptr [RAX],CX
MOV RAX,qword ptr [RBP + -0x8]
ADD RAX,0x2
MOV qword ptr [RBP + -0x8],RAX
JMP 0x0014fc81
LAB_0014fca6:
JMP 0x0014fca8
LAB_0014fca8:
JMP 0x0014fcaa
LAB_0014fcaa:
POP RBP
RET
|
void fill_quick_table(ushort *param_1,short param_2,short param_3,ushort param_4)
{
ushort *local_10;
for (local_10 = param_1; local_10 < param_1 + (1L << ((byte)param_2 & 0x3f));
local_10 = local_10 + 1) {
*local_10 = (param_3 - param_2) * 0x100 | 0x8000U | param_4;
}
return;
}
| |
45,213 | js_std_file_putByte | bluesky950520[P]quickjs/quickjs-libc.c | static JSValue js_std_file_putByte(JSContext *ctx, JSValue this_val,
int argc, JSValue *argv)
{
FILE *f = js_std_file_get(ctx, this_val);
int c;
if (!f)
return JS_EXCEPTION;
if (JS_ToInt32(ctx, &c, argv[0]))
return JS_EXCEPTION;
c = fputc(c, f);
return JS_NewInt32(ctx, c);
} | O0 | c | js_std_file_putByte:
subq $0x68, %rsp
movq %rsi, 0x28(%rsp)
movq %rdx, 0x30(%rsp)
movq %rdi, 0x20(%rsp)
movl %ecx, 0x1c(%rsp)
movq %r8, 0x10(%rsp)
movq 0x20(%rsp), %rdi
movq 0x28(%rsp), %rsi
movq 0x30(%rsp), %rdx
callq 0x127c0
movq %rax, 0x8(%rsp)
cmpq $0x0, 0x8(%rsp)
jne 0x12700
movl $0x0, 0x38(%rsp)
movq $0x6, 0x40(%rsp)
jmp 0x1277c
movq 0x20(%rsp), %rdi
movq 0x10(%rsp), %rax
movq (%rax), %rdx
movq 0x8(%rax), %rcx
leaq 0x4(%rsp), %rsi
callq 0x37c60
cmpl $0x0, %eax
je 0x12733
movl $0x0, 0x38(%rsp)
movq $0x6, 0x40(%rsp)
jmp 0x1277c
movl 0x4(%rsp), %edi
movq 0x8(%rsp), %rsi
callq 0xe410
movl %eax, 0x4(%rsp)
movq 0x20(%rsp), %rcx
movl 0x4(%rsp), %eax
movq %rcx, 0x50(%rsp)
movl %eax, 0x4c(%rsp)
movl 0x4c(%rsp), %eax
movl %eax, 0x58(%rsp)
movq $0x0, 0x60(%rsp)
movq 0x58(%rsp), %rcx
movq 0x60(%rsp), %rax
movq %rcx, 0x38(%rsp)
movq %rax, 0x40(%rsp)
movq 0x38(%rsp), %rax
movq 0x40(%rsp), %rdx
addq $0x68, %rsp
retq
nopl (%rax,%rax)
| js_std_file_putByte:
sub rsp, 68h
mov [rsp+68h+var_40], rsi
mov [rsp+68h+var_38], rdx
mov [rsp+68h+var_48], rdi
mov [rsp+68h+var_4C], ecx
mov [rsp+68h+var_58], r8
mov rdi, [rsp+68h+var_48]
mov rsi, [rsp+68h+var_40]
mov rdx, [rsp+68h+var_38]
call js_std_file_get
mov [rsp+68h+var_60], rax
cmp [rsp+68h+var_60], 0
jnz short loc_12700
mov dword ptr [rsp+68h+var_30], 0
mov [rsp+68h+var_28], 6
jmp short loc_1277C
loc_12700:
mov rdi, [rsp+68h+var_48]
mov rax, [rsp+68h+var_58]
mov rdx, [rax]
mov rcx, [rax+8]
lea rsi, [rsp+68h+var_64]
call JS_ToInt32
cmp eax, 0
jz short loc_12733
mov dword ptr [rsp+68h+var_30], 0
mov [rsp+68h+var_28], 6
jmp short loc_1277C
loc_12733:
mov edi, [rsp+68h+var_64]
mov rsi, [rsp+68h+var_60]
call _fputc
mov [rsp+68h+var_64], eax
mov rcx, [rsp+68h+var_48]
mov eax, [rsp+68h+var_64]
mov [rsp+68h+var_18], rcx
mov [rsp+68h+var_1C], eax
mov eax, [rsp+68h+var_1C]
mov dword ptr [rsp+68h+var_10], eax
mov [rsp+68h+var_8], 0
mov rcx, [rsp+68h+var_10]
mov rax, [rsp+68h+var_8]
mov [rsp+68h+var_30], rcx
mov [rsp+68h+var_28], rax
loc_1277C:
mov rax, [rsp+68h+var_30]
mov rdx, [rsp+68h+var_28]
add rsp, 68h
retn
| long long js_std_file_putByte(long long a1, long long a2, long long a3, int a4, _QWORD *a5)
{
unsigned int v6; // [rsp+4h] [rbp-64h] BYREF
long long v7; // [rsp+8h] [rbp-60h]
_QWORD *v8; // [rsp+10h] [rbp-58h]
int v9; // [rsp+1Ch] [rbp-4Ch]
long long v10; // [rsp+20h] [rbp-48h]
long long v11; // [rsp+28h] [rbp-40h]
long long v12; // [rsp+30h] [rbp-38h]
long long v13; // [rsp+38h] [rbp-30h]
long long v14; // [rsp+40h] [rbp-28h]
unsigned int v15; // [rsp+4Ch] [rbp-1Ch]
long long v16; // [rsp+50h] [rbp-18h]
long long v17; // [rsp+58h] [rbp-10h]
long long v18; // [rsp+60h] [rbp-8h]
v11 = a2;
v12 = a3;
v10 = a1;
v9 = a4;
v8 = a5;
v7 = js_std_file_get(a1, a2, a3);
if ( v7 )
{
if ( (unsigned int)JS_ToInt32(v10, &v6, *v8, v8[1]) )
{
LODWORD(v13) = 0;
v14 = 6LL;
}
else
{
v6 = fputc(v6, v7);
v16 = v10;
v15 = v6;
LODWORD(v17) = v6;
v18 = 0LL;
v13 = v17;
v14 = 0LL;
}
}
else
{
LODWORD(v13) = 0;
v14 = 6LL;
}
return v13;
}
| js_std_file_putByte:
SUB RSP,0x68
MOV qword ptr [RSP + 0x28],RSI
MOV qword ptr [RSP + 0x30],RDX
MOV qword ptr [RSP + 0x20],RDI
MOV dword ptr [RSP + 0x1c],ECX
MOV qword ptr [RSP + 0x10],R8
MOV RDI,qword ptr [RSP + 0x20]
MOV RSI,qword ptr [RSP + 0x28]
MOV RDX,qword ptr [RSP + 0x30]
CALL 0x001127c0
MOV qword ptr [RSP + 0x8],RAX
CMP qword ptr [RSP + 0x8],0x0
JNZ 0x00112700
MOV dword ptr [RSP + 0x38],0x0
MOV qword ptr [RSP + 0x40],0x6
JMP 0x0011277c
LAB_00112700:
MOV RDI,qword ptr [RSP + 0x20]
MOV RAX,qword ptr [RSP + 0x10]
MOV RDX,qword ptr [RAX]
MOV RCX,qword ptr [RAX + 0x8]
LEA RSI,[RSP + 0x4]
CALL 0x00137c60
CMP EAX,0x0
JZ 0x00112733
MOV dword ptr [RSP + 0x38],0x0
MOV qword ptr [RSP + 0x40],0x6
JMP 0x0011277c
LAB_00112733:
MOV EDI,dword ptr [RSP + 0x4]
MOV RSI,qword ptr [RSP + 0x8]
CALL 0x0010e410
MOV dword ptr [RSP + 0x4],EAX
MOV RCX,qword ptr [RSP + 0x20]
MOV EAX,dword ptr [RSP + 0x4]
MOV qword ptr [RSP + 0x50],RCX
MOV dword ptr [RSP + 0x4c],EAX
MOV EAX,dword ptr [RSP + 0x4c]
MOV dword ptr [RSP + 0x58],EAX
MOV qword ptr [RSP + 0x60],0x0
MOV RCX,qword ptr [RSP + 0x58]
MOV RAX,qword ptr [RSP + 0x60]
MOV qword ptr [RSP + 0x38],RCX
MOV qword ptr [RSP + 0x40],RAX
LAB_0011277c:
MOV RAX,qword ptr [RSP + 0x38]
MOV RDX,qword ptr [RSP + 0x40]
ADD RSP,0x68
RET
|
int1 [16]
js_std_file_putByte(int8 param_1,int8 param_2,int8 param_3,int4 param_4,
int8 *param_5)
{
int1 auVar1 [16];
int iVar2;
int local_64;
FILE *local_60;
int8 *local_58;
int4 local_4c;
int8 local_48;
int8 local_40;
int8 local_38;
int local_30;
int4 uStack_2c;
int8 local_28;
int4 uStack_c;
local_58 = param_5;
local_4c = param_4;
local_48 = param_1;
local_40 = param_2;
local_38 = param_3;
local_60 = (FILE *)js_std_file_get(param_1,param_2,param_3);
if (local_60 == (FILE *)0x0) {
local_30 = 0;
local_28 = 6;
}
else {
iVar2 = JS_ToInt32(local_48,&local_64,*local_58,local_58[1]);
if (iVar2 == 0) {
local_30 = fputc(local_64,local_60);
uStack_2c = uStack_c;
local_28 = 0;
}
else {
local_30 = 0;
local_28 = 6;
}
}
auVar1._4_4_ = uStack_2c;
auVar1._0_4_ = local_30;
auVar1._8_8_ = local_28;
return auVar1;
}
| |
45,214 | convert_dirname | eloqsql/mysys/mf_dirname.c | char *convert_dirname(char *to, const char *from, const char *from_end)
{
char *to_org=to;
#ifdef BACKSLASH_MBTAIL
CHARSET_INFO *fs= fs_character_set();
#endif
DBUG_ENTER("convert_dirname");
/* We use -2 here, becasue we need place for the last FN_LIBCHAR */
if (!from_end || (from_end - from) > FN_REFLEN-2)
from_end=from+FN_REFLEN -2;
#if FN_LIBCHAR != '/'
{
for (; from != from_end && *from ; from++)
{
if (*from == '/')
*to++= FN_LIBCHAR;
else
{
#ifdef BACKSLASH_MBTAIL
uint l;
if (my_ci_use_mb(fs) && (l= my_ismbchar(fs, from, from + 3)))
{
memmove(to, from, l);
to+= l;
from+= l - 1;
to_org= to; /* Don't look inside mbchar */
}
else
#endif
{
*to++= *from;
}
}
}
*to=0;
}
#else
/* This is ok even if to == from, becasue we need to cut the string */
to= strmake(to, from, (size_t) (from_end-from));
#endif
/* Add FN_LIBCHAR to the end of directory path */
if (to != to_org && (to[-1] != FN_LIBCHAR && to[-1] != FN_DEVCHAR))
{
*to++=FN_LIBCHAR;
*to=0;
}
DBUG_RETURN(to); /* Pointer to end of dir */
} | O0 | c | convert_dirname:
pushq %rbp
movq %rsp, %rbp
subq $0x30, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x20(%rbp)
cmpq $0x0, -0x18(%rbp)
je 0x2cb36
movq -0x18(%rbp), %rax
movq -0x10(%rbp), %rcx
subq %rcx, %rax
cmpq $0x1fe, %rax # imm = 0x1FE
jle 0x2cb48
movq -0x10(%rbp), %rax
addq $0x200, %rax # imm = 0x200
addq $-0x2, %rax
movq %rax, -0x18(%rbp)
movq -0x8(%rbp), %rdi
movq -0x10(%rbp), %rsi
movq -0x18(%rbp), %rdx
movq -0x10(%rbp), %rax
subq %rax, %rdx
callq 0x75c70
movq %rax, -0x8(%rbp)
movq -0x8(%rbp), %rax
cmpq -0x20(%rbp), %rax
je 0x2cba1
movq -0x8(%rbp), %rax
movsbl -0x1(%rax), %eax
cmpl $0x2f, %eax
je 0x2cba1
movq -0x8(%rbp), %rax
movsbl -0x1(%rax), %eax
cmpl $0x0, %eax
je 0x2cba1
movq -0x8(%rbp), %rax
movq %rax, %rcx
addq $0x1, %rcx
movq %rcx, -0x8(%rbp)
movb $0x2f, (%rax)
movq -0x8(%rbp), %rax
movb $0x0, (%rax)
jmp 0x2cba3
movq -0x8(%rbp), %rax
movq %rax, -0x28(%rbp)
movq -0x28(%rbp), %rax
addq $0x30, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
nop
| convert_dirname:
push rbp
mov rbp, rsp
sub rsp, 30h
mov [rbp+var_8], rdi
mov [rbp+var_10], rsi
mov [rbp+var_18], rdx
mov rax, [rbp+var_8]
mov [rbp+var_20], rax
cmp [rbp+var_18], 0
jz short loc_2CB36
mov rax, [rbp+var_18]
mov rcx, [rbp+var_10]
sub rax, rcx
cmp rax, 1FEh
jle short loc_2CB48
loc_2CB36:
mov rax, [rbp+var_10]
add rax, 200h
add rax, 0FFFFFFFFFFFFFFFEh
mov [rbp+var_18], rax
loc_2CB48:
mov rdi, [rbp+var_8]
mov rsi, [rbp+var_10]
mov rdx, [rbp+var_18]
mov rax, [rbp+var_10]
sub rdx, rax
call strmake
mov [rbp+var_8], rax
mov rax, [rbp+var_8]
cmp rax, [rbp+var_20]
jz short loc_2CBA1
mov rax, [rbp+var_8]
movsx eax, byte ptr [rax-1]
cmp eax, 2Fh ; '/'
jz short loc_2CBA1
mov rax, [rbp+var_8]
movsx eax, byte ptr [rax-1]
cmp eax, 0
jz short loc_2CBA1
mov rax, [rbp+var_8]
mov rcx, rax
add rcx, 1
mov [rbp+var_8], rcx
mov byte ptr [rax], 2Fh ; '/'
mov rax, [rbp+var_8]
mov byte ptr [rax], 0
loc_2CBA1:
jmp short $+2
loc_2CBA3:
mov rax, [rbp+var_8]
mov [rbp+var_28], rax
mov rax, [rbp+var_28]
add rsp, 30h
pop rbp
retn
| _BYTE * convert_dirname(_BYTE *a1, long long a2, long long a3)
{
_BYTE *v3; // rax
long long v5; // [rsp+18h] [rbp-18h]
_BYTE *v6; // [rsp+28h] [rbp-8h]
v5 = a3;
if ( !a3 || a3 - a2 > 510 )
v5 = a2 + 510;
v6 = (_BYTE *)strmake(a1, a2, v5 - a2);
if ( v6 != a1 && *(v6 - 1) != 47 && *(v6 - 1) )
{
v3 = v6++;
*v3 = 47;
*v6 = 0;
}
return v6;
}
| convert_dirname:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x30
MOV qword ptr [RBP + -0x8],RDI
MOV qword ptr [RBP + -0x10],RSI
MOV qword ptr [RBP + -0x18],RDX
MOV RAX,qword ptr [RBP + -0x8]
MOV qword ptr [RBP + -0x20],RAX
CMP qword ptr [RBP + -0x18],0x0
JZ 0x0012cb36
MOV RAX,qword ptr [RBP + -0x18]
MOV RCX,qword ptr [RBP + -0x10]
SUB RAX,RCX
CMP RAX,0x1fe
JLE 0x0012cb48
LAB_0012cb36:
MOV RAX,qword ptr [RBP + -0x10]
ADD RAX,0x200
ADD RAX,-0x2
MOV qword ptr [RBP + -0x18],RAX
LAB_0012cb48:
MOV RDI,qword ptr [RBP + -0x8]
MOV RSI,qword ptr [RBP + -0x10]
MOV RDX,qword ptr [RBP + -0x18]
MOV RAX,qword ptr [RBP + -0x10]
SUB RDX,RAX
CALL 0x00175c70
MOV qword ptr [RBP + -0x8],RAX
MOV RAX,qword ptr [RBP + -0x8]
CMP RAX,qword ptr [RBP + -0x20]
JZ 0x0012cba1
MOV RAX,qword ptr [RBP + -0x8]
MOVSX EAX,byte ptr [RAX + -0x1]
CMP EAX,0x2f
JZ 0x0012cba1
MOV RAX,qword ptr [RBP + -0x8]
MOVSX EAX,byte ptr [RAX + -0x1]
CMP EAX,0x0
JZ 0x0012cba1
MOV RAX,qword ptr [RBP + -0x8]
MOV RCX,RAX
ADD RCX,0x1
MOV qword ptr [RBP + -0x8],RCX
MOV byte ptr [RAX],0x2f
MOV RAX,qword ptr [RBP + -0x8]
MOV byte ptr [RAX],0x0
LAB_0012cba1:
JMP 0x0012cba3
LAB_0012cba3:
MOV RAX,qword ptr [RBP + -0x8]
MOV qword ptr [RBP + -0x28],RAX
MOV RAX,qword ptr [RBP + -0x28]
ADD RSP,0x30
POP RBP
RET
|
int1 * convert_dirname(int1 *param_1,long param_2,long param_3)
{
int1 *puVar1;
long local_20;
int1 *local_10;
if ((param_3 == 0) || (local_20 = param_3, 0x1fe < param_3 - param_2)) {
local_20 = param_2 + 0x1fe;
}
puVar1 = (int1 *)strmake(param_1,param_2,local_20 - param_2);
local_10 = puVar1;
if (((puVar1 != param_1) && (puVar1[-1] != '/')) && (puVar1[-1] != '\0')) {
local_10 = puVar1 + 1;
*puVar1 = 0x2f;
*local_10 = 0;
}
return local_10;
}
| |
45,215 | convert_dirname | eloqsql/mysys/mf_dirname.c | char *convert_dirname(char *to, const char *from, const char *from_end)
{
char *to_org=to;
#ifdef BACKSLASH_MBTAIL
CHARSET_INFO *fs= fs_character_set();
#endif
DBUG_ENTER("convert_dirname");
/* We use -2 here, becasue we need place for the last FN_LIBCHAR */
if (!from_end || (from_end - from) > FN_REFLEN-2)
from_end=from+FN_REFLEN -2;
#if FN_LIBCHAR != '/'
{
for (; from != from_end && *from ; from++)
{
if (*from == '/')
*to++= FN_LIBCHAR;
else
{
#ifdef BACKSLASH_MBTAIL
uint l;
if (my_ci_use_mb(fs) && (l= my_ismbchar(fs, from, from + 3)))
{
memmove(to, from, l);
to+= l;
from+= l - 1;
to_org= to; /* Don't look inside mbchar */
}
else
#endif
{
*to++= *from;
}
}
}
*to=0;
}
#else
/* This is ok even if to == from, becasue we need to cut the string */
to= strmake(to, from, (size_t) (from_end-from));
#endif
/* Add FN_LIBCHAR to the end of directory path */
if (to != to_org && (to[-1] != FN_LIBCHAR && to[-1] != FN_DEVCHAR))
{
*to++=FN_LIBCHAR;
*to=0;
}
DBUG_RETURN(to); /* Pointer to end of dir */
} | O3 | c | convert_dirname:
pushq %rbp
movq %rsp, %rbp
pushq %rbx
pushq %rax
movq %rdi, %rbx
movq %rdx, %rax
subq %rsi, %rax
leaq 0x1fe(%rsi), %rcx
cmpq $0x1ff, %rax # imm = 0x1FF
movq %rdx, %rax
cmovgeq %rcx, %rax
testq %rdx, %rdx
cmoveq %rcx, %rax
subq %rsi, %rax
movq %rax, %rdx
callq 0x5930c
cmpq %rbx, %rax
je 0x297e6
movzbl -0x1(%rax), %ecx
testl %ecx, %ecx
je 0x297e6
cmpl $0x2f, %ecx
je 0x297e6
movw $0x2f, (%rax)
incq %rax
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
nopl (%rax)
| convert_dirname:
push rbp
mov rbp, rsp
push rbx
push rax
mov rbx, rdi
mov rax, rdx
sub rax, rsi
lea rcx, [rsi+1FEh]
cmp rax, 1FFh
mov rax, rdx
cmovge rax, rcx
test rdx, rdx
cmovz rax, rcx
sub rax, rsi
mov rdx, rax
call strmake
cmp rax, rbx
jz short loc_297E6
movzx ecx, byte ptr [rax-1]
test ecx, ecx
jz short loc_297E6
cmp ecx, 2Fh ; '/'
jz short loc_297E6
mov word ptr [rax], 2Fh ; '/'
inc rax
loc_297E6:
add rsp, 8
pop rbx
pop rbp
retn
| _WORD * convert_dirname(_WORD *a1, long long a2, long long a3)
{
long long v3; // rax
_WORD *result; // rax
v3 = a3;
if ( a3 - a2 >= 511 )
v3 = a2 + 510;
if ( !a3 )
v3 = a2 + 510;
result = (_WORD *)strmake(a1, a2, v3 - a2);
if ( result != a1 && *((_BYTE *)result - 1) && *((_BYTE *)result - 1) != 47 )
{
*result = 47;
return (_WORD *)((char *)result + 1);
}
return result;
}
| convert_dirname:
PUSH RBP
MOV RBP,RSP
PUSH RBX
PUSH RAX
MOV RBX,RDI
MOV RAX,RDX
SUB RAX,RSI
LEA RCX,[RSI + 0x1fe]
CMP RAX,0x1ff
MOV RAX,RDX
CMOVGE RAX,RCX
TEST RDX,RDX
CMOVZ RAX,RCX
SUB RAX,RSI
MOV RDX,RAX
CALL 0x0015930c
CMP RAX,RBX
JZ 0x001297e6
MOVZX ECX,byte ptr [RAX + -0x1]
TEST ECX,ECX
JZ 0x001297e6
CMP ECX,0x2f
JZ 0x001297e6
MOV word ptr [RAX],0x2f
INC RAX
LAB_001297e6:
ADD RSP,0x8
POP RBX
POP RBP
RET
|
int2 * convert_dirname(int2 *param_1,long param_2,long param_3)
{
long lVar1;
int2 *puVar2;
lVar1 = param_3;
if (0x1fe < param_3 - param_2) {
lVar1 = param_2 + 0x1fe;
}
if (param_3 == 0) {
lVar1 = param_2 + 0x1fe;
}
puVar2 = (int2 *)strmake(param_1,param_2,lVar1 - param_2);
if (((puVar2 != param_1) && (*(char *)((long)puVar2 + -1) != '\0')) &&
(*(char *)((long)puVar2 + -1) != '/')) {
*puVar2 = 0x2f;
puVar2 = (int2 *)((long)puVar2 + 1);
}
return puVar2;
}
| |
45,216 | minja::Value::at(minja::Value const&) | monkey531[P]llama/common/minja.hpp | Value& at(const Value & index) {
if (!index.is_hashable()) throw std::runtime_error("Unashable type: " + dump());
if (is_array()) return array_->at(index.get<int>());
if (is_object()) return object_->at(index.primitive_);
throw std::runtime_error("Value is not an array or object: " + dump());
} | O2 | cpp | minja::Value::at(minja::Value const&):
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x48, %rsp
movq %rsi, %rbx
movq %rdi, %r14
movq %rsi, %rdi
callq 0x639f0
testb %al, %al
je 0x6dbf1
movq 0x10(%r14), %r15
testq %r15, %r15
je 0x6dbd2
movq %rbx, %rdi
callq 0x6bbfa
movslq %eax, %rsi
movq %r15, %rdi
addq $0x48, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
jmp 0x6bafc
movq 0x20(%r14), %rdi
testq %rdi, %rdi
je 0x6dc4e
addq $0x40, %rbx
movq %rbx, %rsi
addq $0x48, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
jmp 0x6eb9e
pushq $0x10
popq %rdi
callq 0x23460
movq %rax, %rbx
leaq 0x8(%rsp), %rdi
pushq $-0x1
popq %rdx
movq %r14, %rsi
xorl %ecx, %ecx
callq 0x63a00
leaq 0x46e59(%rip), %rsi # 0xb4a6e
leaq 0x28(%rsp), %rdi
leaq 0x8(%rsp), %rdx
callq 0x59126
movb $0x1, %bpl
leaq 0x28(%rsp), %rsi
movq %rbx, %rdi
callq 0x23e60
xorl %ebp, %ebp
movq 0x903b3(%rip), %rsi # 0xfdff0
movq 0x90314(%rip), %rdx # 0xfdf58
movq %rbx, %rdi
callq 0x23f30
jmp 0x6dca9
pushq $0x10
popq %rdi
callq 0x23460
movq %rax, %rbx
leaq 0x8(%rsp), %rdi
pushq $-0x1
popq %rdx
movq %r14, %rsi
xorl %ecx, %ecx
callq 0x63a00
leaq 0x46f48(%rip), %rsi # 0xb4bba
leaq 0x28(%rsp), %rdi
leaq 0x8(%rsp), %rdx
callq 0x59126
movb $0x1, %bpl
leaq 0x28(%rsp), %rsi
movq %rbx, %rdi
callq 0x23e60
xorl %ebp, %ebp
movq 0x90356(%rip), %rsi # 0xfdff0
movq 0x902b7(%rip), %rdx # 0xfdf58
movq %rbx, %rdi
callq 0x23f30
jmp 0x6dcaf
jmp 0x6dcbe
jmp 0x6dcd5
movq %rax, %r14
leaq 0x28(%rsp), %rdi
callq 0x24208
jmp 0x6dcc4
movq %rax, %r14
movb $0x1, %bpl
leaq 0x8(%rsp), %rdi
callq 0x24208
testb %bpl, %bpl
jne 0x6dcd8
jmp 0x6dce0
movq %rax, %r14
movq %rbx, %rdi
callq 0x236a0
movq %r14, %rdi
callq 0x23fc0
| _ZN5minja5Value2atERKS0_:
push rbp
push r15
push r14
push rbx
sub rsp, 48h
mov rbx, rsi
mov r14, rdi
mov rdi, rsi; this
call _ZNK5minja5Value12is_primitiveEv; minja::Value::is_primitive(void)
test al, al
jz short loc_6DBF1
mov r15, [r14+10h]
test r15, r15
jz short loc_6DBD2
mov rdi, rbx
call _ZNK5minja5Value3getIiEET_v; minja::Value::get<int>(void)
movsxd rsi, eax
mov rdi, r15
add rsp, 48h
pop rbx
pop r14
pop r15
pop rbp
jmp _ZNSt6vectorIN5minja5ValueESaIS1_EE2atEm; std::vector<minja::Value>::at(ulong)
loc_6DBD2:
mov rdi, [r14+20h]
test rdi, rdi
jz short loc_6DC4E
add rbx, 40h ; '@'
mov rsi, rbx
add rsp, 48h
pop rbx
pop r14
pop r15
pop rbp
jmp _ZN8nlohmann16json_abi_v3_11_311ordered_mapINS0_10basic_jsonIS1_St6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEEN5minja5ValueESt4lessISD_ESaISt4pairIKSD_SF_EEE2atERSJ_; 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>>>::at(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&)
loc_6DBF1:
push 10h
pop rdi; thrown_size
call ___cxa_allocate_exception
mov rbx, rax
lea rdi, [rsp+68h+var_60]
push 0FFFFFFFFFFFFFFFFh
pop rdx
mov rsi, r14
xor ecx, ecx
call _ZNK5minja5Value4dumpB5cxx11Eib; minja::Value::dump(int,bool)
lea rsi, aUnashableType; "Unashable type: "
lea rdi, [rsp+68h+var_40]
lea rdx, [rsp+68h+var_60]
call _ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_OS8_; std::operator+<char>(char const*,std::string&&)
mov bpl, 1
lea rsi, [rsp+68h+var_40]
mov rdi, rbx
call __ZNSt13runtime_errorC1ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE; std::runtime_error::runtime_error(std::string const&)
xor ebp, ebp
mov rsi, cs:_ZTISt13runtime_error_ptr; lptinfo
mov rdx, cs:_ZNSt13runtime_errorD1Ev_ptr; void (*)(void *)
mov rdi, rbx; void *
call ___cxa_throw
jmp short loc_6DCA9
loc_6DC4E:
push 10h
pop rdi; thrown_size
call ___cxa_allocate_exception
mov rbx, rax
lea rdi, [rsp+68h+var_60]
push 0FFFFFFFFFFFFFFFFh
pop rdx
mov rsi, r14
xor ecx, ecx
call _ZNK5minja5Value4dumpB5cxx11Eib; minja::Value::dump(int,bool)
lea rsi, aValueIsNotAnAr_0; "Value is not an array or object: "
lea rdi, [rsp+68h+var_40]
lea rdx, [rsp+68h+var_60]
call _ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_OS8_; std::operator+<char>(char const*,std::string&&)
mov bpl, 1
lea rsi, [rsp+68h+var_40]
mov rdi, rbx
call __ZNSt13runtime_errorC1ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE; std::runtime_error::runtime_error(std::string const&)
xor ebp, ebp
mov rsi, cs:_ZTISt13runtime_error_ptr; lptinfo
mov rdx, cs:_ZNSt13runtime_errorD1Ev_ptr; void (*)(void *)
mov rdi, rbx; void *
call ___cxa_throw
loc_6DCA9:
jmp short loc_6DCAF
jmp short loc_6DCBE
jmp short loc_6DCD5
loc_6DCAF:
mov r14, rax
lea rdi, [rsp+68h+var_40]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
jmp short loc_6DCC4
loc_6DCBE:
mov r14, rax
mov bpl, 1
loc_6DCC4:
lea rdi, [rsp+68h+var_60]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
test bpl, bpl
jnz short loc_6DCD8
jmp short loc_6DCE0
loc_6DCD5:
mov r14, rax
loc_6DCD8:
mov rdi, rbx; void *
call ___cxa_free_exception
loc_6DCE0:
mov rdi, r14
call __Unwind_Resume
| long long minja::Value::at(minja::Value *this, const minja::Value *a2)
{
_QWORD *v3; // r15
int v4; // eax
long long v6; // rdi
void *exception; // rbx
void *v8; // rbx
_BYTE v9[32]; // [rsp+8h] [rbp-60h] BYREF
_BYTE v10[64]; // [rsp+28h] [rbp-40h] BYREF
if ( !minja::Value::is_primitive(a2) )
{
exception = __cxa_allocate_exception(0x10uLL);
minja::Value::dump[abi:cxx11]((long long)v9, (long long)this, 0xFFFFFFFF, 0);
std::operator+<char>((long long)v10, (long long)"Unashable type: ", (long long)v9);
std::runtime_error::runtime_error(exception, v10);
__cxa_throw(
exception,
(struct type_info *)&`typeinfo for'std::runtime_error,
(void (*)(void *))&std::runtime_error::~runtime_error);
}
v3 = (_QWORD *)*((_QWORD *)this + 2);
if ( v3 )
{
v4 = minja::Value::get<int>(a2);
return std::vector<minja::Value>::at(v3, v4);
}
else
{
v6 = *((_QWORD *)this + 4);
if ( !v6 )
{
v8 = __cxa_allocate_exception(0x10uLL);
minja::Value::dump[abi:cxx11]((long long)v9, (long long)this, 0xFFFFFFFF, 0);
std::operator+<char>((long long)v10, (long long)"Value is not an array or object: ", (long long)v9);
std::runtime_error::runtime_error(v8, v10);
__cxa_throw(
v8,
(struct type_info *)&`typeinfo for'std::runtime_error,
(void (*)(void *))&std::runtime_error::~runtime_error);
}
return 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>>>::at(
v6,
(char *)a2 + 64);
}
}
| at:
PUSH RBP
PUSH R15
PUSH R14
PUSH RBX
SUB RSP,0x48
MOV RBX,RSI
MOV R14,RDI
MOV RDI,RSI
CALL 0x001639f0
TEST AL,AL
JZ 0x0016dbf1
MOV R15,qword ptr [R14 + 0x10]
TEST R15,R15
JZ 0x0016dbd2
MOV RDI,RBX
CALL 0x0016bbfa
MOVSXD RSI,EAX
MOV RDI,R15
ADD RSP,0x48
POP RBX
POP R14
POP R15
POP RBP
JMP 0x0016bafc
LAB_0016dbd2:
MOV RDI,qword ptr [R14 + 0x20]
TEST RDI,RDI
JZ 0x0016dc4e
ADD RBX,0x40
MOV RSI,RBX
ADD RSP,0x48
POP RBX
POP R14
POP R15
POP RBP
JMP 0x0016eb9e
LAB_0016dbf1:
PUSH 0x10
POP RDI
CALL 0x00123460
MOV RBX,RAX
LAB_0016dbfc:
LEA RDI,[RSP + 0x8]
PUSH -0x1
POP RDX
MOV RSI,R14
XOR ECX,ECX
CALL 0x00163a00
LAB_0016dc0e:
LEA RSI,[0x1b4a6e]
LEA RDI,[RSP + 0x28]
LEA RDX,[RSP + 0x8]
CALL 0x00159126
MOV BPL,0x1
LAB_0016dc27:
LEA RSI,[RSP + 0x28]
MOV RDI,RBX
CALL 0x00123e60
XOR EBP,EBP
MOV RSI,qword ptr [0x001fdff0]
MOV RDX,qword ptr [0x001fdf58]
MOV RDI,RBX
CALL 0x00123f30
LAB_0016dc4e:
PUSH 0x10
POP RDI
CALL 0x00123460
MOV RBX,RAX
LAB_0016dc59:
LEA RDI,[RSP + 0x8]
PUSH -0x1
POP RDX
MOV RSI,R14
XOR ECX,ECX
CALL 0x00163a00
LAB_0016dc6b:
LEA RSI,[0x1b4bba]
LEA RDI,[RSP + 0x28]
LEA RDX,[RSP + 0x8]
CALL 0x00159126
MOV BPL,0x1
LAB_0016dc84:
LEA RSI,[RSP + 0x28]
MOV RDI,RBX
CALL 0x00123e60
XOR EBP,EBP
MOV RSI,qword ptr [0x001fdff0]
MOV RDX,qword ptr [0x001fdf58]
MOV RDI,RBX
CALL 0x00123f30
|
/* minja::Value::at(minja::Value const&) */
void __thiscall minja::Value::at(Value *this,Value *param_1)
{
vector<minja::Value,std::allocator<minja::Value>> *this_00;
runtime_error *prVar1;
char cVar2;
int iVar3;
int1 local_60 [32];
string local_40 [32];
cVar2 = is_primitive(param_1);
if (cVar2 == '\0') {
prVar1 = (runtime_error *)__cxa_allocate_exception(0x10);
/* try { // try from 0016dbfc to 0016dc0d has its CatchHandler @ 0016dcd5 */
dump_abi_cxx11_((int)local_60,SUB81(this,0));
/* try { // try from 0016dc0e to 0016dc23 has its CatchHandler @ 0016dcbe */
std::operator+((char *)local_40,(string *)"Unashable type: ");
/* try { // try from 0016dc27 to 0016dc4b has its CatchHandler @ 0016dcaf */
std::runtime_error::runtime_error(prVar1,local_40);
/* WARNING: Subroutine does not return */
__cxa_throw(prVar1,PTR_typeinfo_001fdff0,PTR__runtime_error_001fdf58);
}
this_00 = *(vector<minja::Value,std::allocator<minja::Value>> **)(this + 0x10);
if (this_00 != (vector<minja::Value,std::allocator<minja::Value>> *)0x0) {
iVar3 = get<int>(param_1);
std::vector<minja::Value,std::allocator<minja::Value>>::at(this_00,(long)iVar3);
return;
}
if (*(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>>>
**)(this + 0x20) !=
(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>>>
*)0x0) {
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>>>
::at(*(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>>>
**)(this + 0x20),param_1 + 0x40);
return;
}
prVar1 = (runtime_error *)__cxa_allocate_exception(0x10);
/* try { // try from 0016dc59 to 0016dc6a has its CatchHandler @ 0016dcad */
dump_abi_cxx11_((int)local_60,SUB81(this,0));
/* try { // try from 0016dc6b to 0016dc80 has its CatchHandler @ 0016dcab */
std::operator+((char *)local_40,(string *)"Value is not an array or object: ");
/* try { // try from 0016dc84 to 0016dca8 has its CatchHandler @ 0016dca9 */
std::runtime_error::runtime_error(prVar1,local_40);
/* WARNING: Subroutine does not return */
__cxa_throw(prVar1,PTR_typeinfo_001fdff0,PTR__runtime_error_001fdf58);
}
| |
45,217 | copy_decode_table | eloqsql/storage/maria/ma_packrec.c | static uint copy_decode_table(uint16 *to_pos, uint offset,
uint16 *decode_table)
{
uint prev_offset= offset;
DBUG_ENTER("copy_decode_table");
/* Descent on the left side. */
if (!(*decode_table & IS_CHAR))
{
/* Set a pointer to the next target node. */
to_pos[offset]=2;
/* Copy the left hand subtree there. */
offset=copy_decode_table(to_pos,offset+2,decode_table+ *decode_table);
}
else
{
/* Copy the uchar value. */
to_pos[offset]= *decode_table;
/* Step behind this node. */
offset+=2;
}
/* Descent on the right side. */
decode_table++;
if (!(*decode_table & IS_CHAR))
{
/* Set a pointer to the next free target node. */
to_pos[prev_offset+1]=(uint16) (offset-prev_offset-1);
/* Copy the right hand subtree to the entry of that node. */
offset=copy_decode_table(to_pos,offset,decode_table+ *decode_table);
}
else
{
/* Copy the uchar value. */
to_pos[prev_offset+1]= *decode_table;
}
DBUG_RETURN(offset);
} | O3 | c | copy_decode_table:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rdx, %r14
movl %esi, %eax
movq %rdi, %rbx
movzwl (%r14), %ecx
movl %eax, %r15d
addl $0x2, %eax
testw %cx, %cx
js 0x46962
movw $0x2, (%rbx,%r15,2)
movzwl (%r14), %ecx
leaq (%r14,%rcx,2), %rdx
movq %rbx, %rdi
movl %eax, %esi
callq 0x46926
jmp 0x46967
movw %cx, (%rbx,%r15,2)
movzwl 0x2(%r14), %ecx
testw %cx, %cx
js 0x4698e
addq $0x2, %r14
movl %r15d, %ecx
notl %ecx
addl %eax, %ecx
incl %r15d
movw %cx, (%rbx,%r15,2)
movzwl (%r14), %ecx
leaq (%r14,%rcx,2), %r14
jmp 0x46938
incl %r15d
movw %cx, (%rbx,%r15,2)
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
| copy_decode_table:
push rbp
mov rbp, rsp
push r15
push r14
push rbx
push rax
mov r14, rdx
mov eax, esi
mov rbx, rdi
loc_46938:
movzx ecx, word ptr [r14]
mov r15d, eax
add eax, 2
test cx, cx
js short loc_46962
mov word ptr [rbx+r15*2], 2
movzx ecx, word ptr [r14]
lea rdx, [r14+rcx*2]
mov rdi, rbx
mov esi, eax
call copy_decode_table
jmp short loc_46967
loc_46962:
mov [rbx+r15*2], cx
loc_46967:
movzx ecx, word ptr [r14+2]
test cx, cx
js short loc_4698E
add r14, 2
mov ecx, r15d
not ecx
add ecx, eax
inc r15d
mov [rbx+r15*2], cx
movzx ecx, word ptr [r14]
lea r14, [r14+rcx*2]
jmp short loc_46938
loc_4698E:
inc r15d
mov [rbx+r15*2], cx
add rsp, 8
pop rbx
pop r14
pop r15
pop rbp
retn
| long long copy_decode_table(long long a1, int a2, unsigned __int16 *a3)
{
long long result; // rax
long long v5; // r15
__int16 v6; // cx
LODWORD(result) = a2;
while ( 1 )
{
v5 = (unsigned int)result;
result = (unsigned int)(result + 2);
if ( (*a3 & 0x8000u) != 0 )
{
*(_WORD *)(a1 + 2 * v5) = *a3;
}
else
{
*(_WORD *)(a1 + 2 * v5) = 2;
result = copy_decode_table(a1, (unsigned int)result, &a3[*a3]);
}
v6 = a3[1];
if ( v6 < 0 )
break;
*(_WORD *)(a1 + 2LL * (unsigned int)(v5 + 1)) = result + ~(_WORD)v5;
a3 += a3[1] + 1;
}
*(_WORD *)(a1 + 2LL * (unsigned int)(v5 + 1)) = v6;
return result;
}
| copy_decode_table:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH RBX
PUSH RAX
MOV R14,RDX
MOV EAX,ESI
MOV RBX,RDI
LAB_00146938:
MOVZX ECX,word ptr [R14]
MOV R15D,EAX
ADD EAX,0x2
TEST CX,CX
JS 0x00146962
MOV word ptr [RBX + R15*0x2],0x2
MOVZX ECX,word ptr [R14]
LEA RDX,[R14 + RCX*0x2]
MOV RDI,RBX
MOV ESI,EAX
CALL 0x00146926
JMP 0x00146967
LAB_00146962:
MOV word ptr [RBX + R15*0x2],CX
LAB_00146967:
MOVZX ECX,word ptr [R14 + 0x2]
TEST CX,CX
JS 0x0014698e
ADD R14,0x2
MOV ECX,R15D
NOT ECX
ADD ECX,EAX
INC R15D
MOV word ptr [RBX + R15*0x2],CX
MOVZX ECX,word ptr [R14]
LEA R14,[R14 + RCX*0x2]
JMP 0x00146938
LAB_0014698e:
INC R15D
MOV word ptr [RBX + R15*0x2],CX
ADD RSP,0x8
POP RBX
POP R14
POP R15
POP RBP
RET
|
void copy_decode_table(long param_1,uint param_2,ushort *param_3)
{
uint uVar1;
while( true ) {
uVar1 = param_2 + 2;
if ((short)*param_3 < 0) {
*(ushort *)(param_1 + (ulong)param_2 * 2) = *param_3;
}
else {
*(int2 *)(param_1 + (ulong)param_2 * 2) = 2;
uVar1 = copy_decode_table(param_1,uVar1,param_3 + *param_3);
}
if ((short)param_3[1] < 0) break;
*(ushort *)(param_1 + (ulong)(param_2 + 1) * 2) = ~(ushort)param_2 + (short)uVar1;
param_3 = param_3 + 1 + param_3[1];
param_2 = uVar1;
}
*(ushort *)(param_1 + (ulong)(param_2 + 1) * 2) = param_3[1];
return;
}
| |
45,218 | thr_print_locks | eloqsql/mysys/thr_lock.c | void thr_print_locks(void)
{
LIST *list;
uint count=0;
mysql_mutex_lock(&THR_LOCK_lock);
puts("Current active THR (table level locks):");
for (list= thr_lock_thread_list; list && count++ < MAX_THREADS;
list= list_rest(list))
{
THR_LOCK *lock=(THR_LOCK*) list->data;
mysql_mutex_lock(&lock->mutex);
if ((lock->write.data || lock->read.data ||
lock->write_wait.data || lock->read_wait.data))
{
printf("lock: %p:", lock);
if ((lock->write_wait.data || lock->read_wait.data) &&
(! lock->read.data && ! lock->write.data))
printf(" WARNING: ");
if (lock->write.data)
printf(" write");
if (lock->write_wait.data)
printf(" write_wait");
if (lock->read.data)
printf(" read");
if (lock->read_wait.data)
printf(" read_wait");
puts("");
thr_print_lock("write",&lock->write);
thr_print_lock("write_wait",&lock->write_wait);
thr_print_lock("read",&lock->read);
thr_print_lock("read_wait",&lock->read_wait);
puts("");
}
mysql_mutex_unlock(&lock->mutex);
}
fflush(stdout);
mysql_mutex_unlock(&THR_LOCK_lock);
} | O3 | c | thr_print_locks:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
leaq 0xb645f9(%rip), %rax # 0xc08708
cmpq $0x0, 0x40(%rax)
jne 0xa434c
leaq 0xb645e7(%rip), %rdi # 0xc08708
callq 0x29210
leaq 0x3837e(%rip), %rdi # 0xdc4ab
callq 0x297d0
leaq 0xb6487f(%rip), %rax # 0xc089b8
movq (%rax), %r15
testq %r15, %r15
je 0xa4313
movl $0x3e9, %ebx # imm = 0x3E9
decl %ebx
je 0xa4313
movq 0x10(%r15), %r14
leaq 0x18(%r14), %r12
cmpq $0x0, 0x58(%r14)
jne 0xa42e8
movq %r12, %rdi
callq 0x29210
cmpq $0x0, 0x90(%r14)
jne 0xa4193
cmpq $0x0, 0x70(%r14)
jne 0xa4193
cmpq $0x0, 0x80(%r14)
jne 0xa4193
cmpq $0x0, 0x60(%r14)
je 0xa42b0
movq %r15, -0x38(%rbp)
leaq 0x90(%r14), %r15
movl $0x1, %edi
leaq 0x38329(%rip), %rsi # 0xdc4d3
movq %r14, %rdx
xorl %eax, %eax
callq 0x29800
cmpq $0x0, 0x80(%r14)
jne 0xa41c5
cmpq $0x0, 0x60(%r14)
je 0xa41cc
cmpq $0x0, 0x70(%r14)
je 0xa41d4
cmpq $0x0, (%r15)
jne 0xa41de
jmp 0xa41f1
cmpq $0x0, (%r15)
je 0xa42d0
movl $0x1, %edi
leaq 0x382fe(%rip), %rsi # 0xdc4e8
xorl %eax, %eax
callq 0x29800
movq %r12, -0x40(%rbp)
leaq 0x80(%r14), %r12
cmpq $0x0, (%r12)
je 0xa4216
movl $0x1, %edi
leaq 0x382e0(%rip), %rsi # 0xdc4ef
xorl %eax, %eax
callq 0x29800
cmpq $0x0, 0x70(%r14)
je 0xa4230
movl $0x1, %edi
leaq 0x3c0d4(%rip), %rsi # 0xe02fd
xorl %eax, %eax
callq 0x29800
movl %ebx, -0x2c(%rbp)
cmpq $0x0, 0x60(%r14)
je 0xa424d
movl $0x1, %edi
leaq 0x382b5(%rip), %rsi # 0xdc4fb
xorl %eax, %eax
callq 0x29800
leaq 0x70(%r14), %r13
leaq 0x60(%r14), %rbx
movl $0xa, %edi
callq 0x298f0
leaq 0x38283(%rip), %rdi # 0xdc4e9
movq %r15, %rsi
callq 0xa4368
leaq 0x3827b(%rip), %rdi # 0xdc4f0
movq %r12, %rsi
callq 0xa4368
leaq 0x3c07a(%rip), %rdi # 0xe02fe
movq %r13, %rsi
callq 0xa4368
leaq 0x38269(%rip), %rdi # 0xdc4fc
movq %rbx, %rsi
callq 0xa4368
movl $0xa, %edi
callq 0x298f0
movl -0x2c(%rbp), %ebx
movq -0x40(%rbp), %r12
movq -0x38(%rbp), %r15
movq 0x58(%r14), %rdi
testq %rdi, %rdi
jne 0xa4301
movq %r12, %rdi
callq 0x291d0
movq 0x8(%r15), %r15
testq %r15, %r15
jne 0xa414a
jmp 0xa4313
movl $0x1, %edi
leaq 0x38201(%rip), %rsi # 0xdc4dd
xorl %eax, %eax
callq 0x29800
jmp 0xa41cc
movq %r12, %rdi
leaq 0x3817f(%rip), %rsi # 0xdc471
movl $0x621, %edx # imm = 0x621
callq 0x2eb7f
jmp 0xa416d
leaq 0x2e1d08(%rip), %rax # 0x386010
movq (%rax), %rax
callq *0x160(%rax)
jmp 0xa42b9
movq 0x2dfc86(%rip), %rax # 0x383fa0
movq (%rax), %rdi
callq 0x29400
leaq 0xb643df(%rip), %rax # 0xc08708
movq 0x40(%rax), %rdi
testq %rdi, %rdi
jne 0xa4356
leaq 0xb643cf(%rip), %rdi # 0xc08708
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x291d0
callq 0x2f1f8
jmp 0xa4126
leaq 0x2e1cb3(%rip), %rax # 0x386010
movq (%rax), %rax
callq *0x160(%rax)
jmp 0xa4332
| thr_print_locks:
push rbp
mov rbp, rsp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 18h
lea rax, THR_LOCK_lock
cmp qword ptr [rax+40h], 0
jnz loc_A434C
lea rdi, THR_LOCK_lock
call _pthread_mutex_lock
loc_A4126:
lea rdi, aCurrentActiveT; "Current active THR (table level locks):"
call _puts
lea rax, thr_lock_thread_list
mov r15, [rax]
test r15, r15
jz loc_A4313
mov ebx, 3E9h
loc_A414A:
dec ebx
jz loc_A4313
mov r14, [r15+10h]
lea r12, [r14+18h]
cmp qword ptr [r14+58h], 0
jnz loc_A42E8
mov rdi, r12
call _pthread_mutex_lock
loc_A416D:
cmp qword ptr [r14+90h], 0
jnz short loc_A4193
cmp qword ptr [r14+70h], 0
jnz short loc_A4193
cmp qword ptr [r14+80h], 0
jnz short loc_A4193
cmp qword ptr [r14+60h], 0
jz loc_A42B0
loc_A4193:
mov [rbp+var_38], r15
lea r15, [r14+90h]
mov edi, 1
lea rsi, aLockP; "lock: %p:"
mov rdx, r14
xor eax, eax
call ___printf_chk
cmp qword ptr [r14+80h], 0
jnz short loc_A41C5
cmp qword ptr [r14+60h], 0
jz short loc_A41CC
loc_A41C5:
cmp qword ptr [r14+70h], 0
jz short loc_A41D4
loc_A41CC:
cmp qword ptr [r15], 0
jnz short loc_A41DE
jmp short loc_A41F1
loc_A41D4:
cmp qword ptr [r15], 0
jz loc_A42D0
loc_A41DE:
mov edi, 1
lea rsi, aWrite_0; " write"
xor eax, eax
call ___printf_chk
loc_A41F1:
mov [rbp+var_40], r12
lea r12, [r14+80h]
cmp qword ptr [r12], 0
jz short loc_A4216
mov edi, 1
lea rsi, aWriteWait; " write_wait"
xor eax, eax
call ___printf_chk
loc_A4216:
cmp qword ptr [r14+70h], 0
jz short loc_A4230
mov edi, 1
lea rsi, aTheEventWasCor+34h; " read"
xor eax, eax
call ___printf_chk
loc_A4230:
mov [rbp+var_2C], ebx
cmp qword ptr [r14+60h], 0
jz short loc_A424D
mov edi, 1
lea rsi, aReadWait; " read_wait"
xor eax, eax
call ___printf_chk
loc_A424D:
lea r13, [r14+70h]
lea rbx, [r14+60h]
mov edi, 0Ah
call _putchar
lea rdi, aWrite_0+1; "write"
mov rsi, r15
call thr_print_lock
lea rdi, aWriteWait+1; "write_wait"
mov rsi, r12
call thr_print_lock
lea rdi, aTheEventWasCor+35h; "read"
mov rsi, r13
call thr_print_lock
lea rdi, aReadWait+1; "read_wait"
mov rsi, rbx
call thr_print_lock
mov edi, 0Ah
call _putchar
mov ebx, [rbp+var_2C]
mov r12, [rbp+var_40]
mov r15, [rbp+var_38]
loc_A42B0:
mov rdi, [r14+58h]
test rdi, rdi
jnz short loc_A4301
loc_A42B9:
mov rdi, r12
call _pthread_mutex_unlock
mov r15, [r15+8]
test r15, r15
jnz loc_A414A
jmp short loc_A4313
loc_A42D0:
mov edi, 1
lea rsi, aWarning; " WARNING: "
xor eax, eax
call ___printf_chk
jmp loc_A41CC
loc_A42E8:
mov rdi, r12
lea rsi, aWorkspaceLlm4b_23; "/workspace/llm4binary/github2025/eloqsq"...
mov edx, 621h
call psi_mutex_lock
jmp loc_A416D
loc_A4301:
lea rax, PSI_server
mov rax, [rax]
call qword ptr [rax+160h]
jmp short loc_A42B9
loc_A4313:
mov rax, cs:stdout_ptr
mov rdi, [rax]
call _fflush
lea rax, THR_LOCK_lock
mov rdi, [rax+40h]
test rdi, rdi
jnz short loc_A4356
loc_A4332:
lea rdi, THR_LOCK_lock
add rsp, 18h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
jmp _pthread_mutex_unlock
loc_A434C:
call thr_print_locks_cold_1
jmp loc_A4126
loc_A4356:
lea rax, PSI_server
mov rax, [rax]
call qword ptr [rax+160h]
jmp short loc_A4332
| long long thr_print_locks()
{
long long *v0; // r15
int v1; // ebx
_QWORD *v2; // r14
_QWORD *v3; // r12
_QWORD *v4; // r15
long long *v6; // [rsp+8h] [rbp-38h]
if ( THR_LOCK_lock[8] )
thr_print_locks_cold_1();
else
pthread_mutex_lock(THR_LOCK_lock);
puts("Current active THR (table level locks):");
v0 = thr_lock_thread_list;
if ( thr_lock_thread_list )
{
v1 = 1001;
while ( 1 )
{
if ( !--v1 )
goto LABEL_32;
v2 = (_QWORD *)v0[2];
v3 = v2 + 3;
if ( v2[11] )
psi_mutex_lock((long long)(v2 + 3), (long long)"/workspace/llm4binary/github2025/eloqsql/mysys/thr_lock.c", 0x621u);
else
pthread_mutex_lock(v2 + 3);
if ( v2[18] || v2[14] || v2[16] || v2[12] )
break;
LABEL_26:
if ( v2[11] )
PSI_server[44]();
pthread_mutex_unlock(v3);
v0 = (long long *)v0[1];
if ( !v0 )
goto LABEL_32;
}
v6 = v0;
v4 = v2 + 18;
__printf_chk(1LL, "lock: %p:", v2);
if ( (v2[16] || v2[12]) && !v2[14] )
{
if ( *v4 )
{
LABEL_18:
__printf_chk(1LL, " write");
LABEL_19:
if ( v2[16] )
__printf_chk(1LL, " write_wait");
if ( v2[14] )
__printf_chk(1LL, " read");
if ( v2[12] )
__printf_chk(1LL, " read_wait");
putchar(10LL);
thr_print_lock("write", v2 + 18);
thr_print_lock("write_wait", v2 + 16);
thr_print_lock("read", v2 + 14);
thr_print_lock("read_wait", v2 + 12);
putchar(10LL);
v3 = v2 + 3;
v0 = v6;
goto LABEL_26;
}
__printf_chk(1LL, " WARNING: ");
}
if ( !*v4 )
goto LABEL_19;
goto LABEL_18;
}
LABEL_32:
fflush(stdout);
if ( THR_LOCK_lock[8] )
PSI_server[44]();
return pthread_mutex_unlock(THR_LOCK_lock);
}
| thr_print_locks:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x18
LEA RAX,[0xd08708]
CMP qword ptr [RAX + 0x40],0x0
JNZ 0x001a434c
LEA RDI,[0xd08708]
CALL 0x00129210
LAB_001a4126:
LEA RDI,[0x1dc4ab]
CALL 0x001297d0
LEA RAX,[0xd089b8]
MOV R15,qword ptr [RAX]
TEST R15,R15
JZ 0x001a4313
MOV EBX,0x3e9
LAB_001a414a:
DEC EBX
JZ 0x001a4313
MOV R14,qword ptr [R15 + 0x10]
LEA R12,[R14 + 0x18]
CMP qword ptr [R14 + 0x58],0x0
JNZ 0x001a42e8
MOV RDI,R12
CALL 0x00129210
LAB_001a416d:
CMP qword ptr [R14 + 0x90],0x0
JNZ 0x001a4193
CMP qword ptr [R14 + 0x70],0x0
JNZ 0x001a4193
CMP qword ptr [R14 + 0x80],0x0
JNZ 0x001a4193
CMP qword ptr [R14 + 0x60],0x0
JZ 0x001a42b0
LAB_001a4193:
MOV qword ptr [RBP + -0x38],R15
LEA R15,[R14 + 0x90]
MOV EDI,0x1
LEA RSI,[0x1dc4d3]
MOV RDX,R14
XOR EAX,EAX
CALL 0x00129800
CMP qword ptr [R14 + 0x80],0x0
JNZ 0x001a41c5
CMP qword ptr [R14 + 0x60],0x0
JZ 0x001a41cc
LAB_001a41c5:
CMP qword ptr [R14 + 0x70],0x0
JZ 0x001a41d4
LAB_001a41cc:
CMP qword ptr [R15],0x0
JNZ 0x001a41de
JMP 0x001a41f1
LAB_001a41d4:
CMP qword ptr [R15],0x0
JZ 0x001a42d0
LAB_001a41de:
MOV EDI,0x1
LEA RSI,[0x1dc4e8]
XOR EAX,EAX
CALL 0x00129800
LAB_001a41f1:
MOV qword ptr [RBP + -0x40],R12
LEA R12,[R14 + 0x80]
CMP qword ptr [R12],0x0
JZ 0x001a4216
MOV EDI,0x1
LEA RSI,[0x1dc4ef]
XOR EAX,EAX
CALL 0x00129800
LAB_001a4216:
CMP qword ptr [R14 + 0x70],0x0
JZ 0x001a4230
MOV EDI,0x1
LEA RSI,[0x1e02fd]
XOR EAX,EAX
CALL 0x00129800
LAB_001a4230:
MOV dword ptr [RBP + -0x2c],EBX
CMP qword ptr [R14 + 0x60],0x0
JZ 0x001a424d
MOV EDI,0x1
LEA RSI,[0x1dc4fb]
XOR EAX,EAX
CALL 0x00129800
LAB_001a424d:
LEA R13,[R14 + 0x70]
LEA RBX,[R14 + 0x60]
MOV EDI,0xa
CALL 0x001298f0
LEA RDI,[0x1dc4e9]
MOV RSI,R15
CALL 0x001a4368
LEA RDI,[0x1dc4f0]
MOV RSI,R12
CALL 0x001a4368
LEA RDI,[0x1e02fe]
MOV RSI,R13
CALL 0x001a4368
LEA RDI,[0x1dc4fc]
MOV RSI,RBX
CALL 0x001a4368
MOV EDI,0xa
CALL 0x001298f0
MOV EBX,dword ptr [RBP + -0x2c]
MOV R12,qword ptr [RBP + -0x40]
MOV R15,qword ptr [RBP + -0x38]
LAB_001a42b0:
MOV RDI,qword ptr [R14 + 0x58]
TEST RDI,RDI
JNZ 0x001a4301
LAB_001a42b9:
MOV RDI,R12
CALL 0x001291d0
MOV R15,qword ptr [R15 + 0x8]
TEST R15,R15
JNZ 0x001a414a
JMP 0x001a4313
LAB_001a42d0:
MOV EDI,0x1
LEA RSI,[0x1dc4dd]
XOR EAX,EAX
CALL 0x00129800
JMP 0x001a41cc
LAB_001a42e8:
MOV RDI,R12
LEA RSI,[0x1dc471]
MOV EDX,0x621
CALL 0x0012eb7f
JMP 0x001a416d
LAB_001a4301:
LEA RAX,[0x486010]
MOV RAX,qword ptr [RAX]
CALL qword ptr [RAX + 0x160]
JMP 0x001a42b9
LAB_001a4313:
MOV RAX,qword ptr [0x00483fa0]
MOV RDI,qword ptr [RAX]
CALL 0x00129400
LEA RAX,[0xd08708]
MOV RDI,qword ptr [RAX + 0x40]
TEST RDI,RDI
JNZ 0x001a4356
LAB_001a4332:
LEA RDI,[0xd08708]
ADD RSP,0x18
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
JMP 0x001291d0
LAB_001a434c:
CALL 0x0012f1f8
JMP 0x001a4126
LAB_001a4356:
LEA RAX,[0x486010]
MOV RAX,qword ptr [RAX]
CALL qword ptr [RAX + 0x160]
JMP 0x001a4332
|
void thr_print_locks(void)
{
pthread_mutex_t *__mutex;
long *plVar1;
long lVar2;
int iVar3;
long lVar4;
if (THR_LOCK_lock._64_8_ == 0) {
pthread_mutex_lock((pthread_mutex_t *)THR_LOCK_lock);
}
else {
thr_print_locks_cold_1();
}
puts("Current active THR (table level locks):");
if (thr_lock_thread_list != 0) {
iVar3 = 0x3e9;
lVar4 = thr_lock_thread_list;
do {
iVar3 = iVar3 + -1;
if (iVar3 == 0) break;
lVar2 = *(long *)(lVar4 + 0x10);
__mutex = (pthread_mutex_t *)(lVar2 + 0x18);
if (*(long *)(lVar2 + 0x58) == 0) {
pthread_mutex_lock(__mutex);
}
else {
psi_mutex_lock(__mutex,"/workspace/llm4binary/github2025/eloqsql/mysys/thr_lock.c",0x621);
}
if ((((*(long *)(lVar2 + 0x90) != 0) || (*(long *)(lVar2 + 0x70) != 0)) ||
(*(long *)(lVar2 + 0x80) != 0)) || (*(long *)(lVar2 + 0x60) != 0)) {
plVar1 = (long *)(lVar2 + 0x90);
__printf_chk(1,"lock: %p:",lVar2);
if (((*(long *)(lVar2 + 0x80) == 0) && (*(long *)(lVar2 + 0x60) == 0)) ||
(*(long *)(lVar2 + 0x70) != 0)) {
LAB_001a41cc:
if (*plVar1 != 0) goto LAB_001a41de;
}
else {
if (*plVar1 == 0) {
__printf_chk(1," WARNING: ");
goto LAB_001a41cc;
}
LAB_001a41de:
__printf_chk(1," write");
}
if (*(long *)(lVar2 + 0x80) != 0) {
__printf_chk(1," write_wait");
}
if (*(long *)(lVar2 + 0x70) != 0) {
__printf_chk(1," read");
}
if (*(long *)(lVar2 + 0x60) != 0) {
__printf_chk(1," read_wait");
}
putchar(10);
thr_print_lock("write",plVar1);
thr_print_lock("write_wait",(long *)(lVar2 + 0x80));
thr_print_lock("read",lVar2 + 0x70);
thr_print_lock("read_wait",lVar2 + 0x60);
putchar(10);
}
if (*(long *)(lVar2 + 0x58) != 0) {
(**(code **)(PSI_server + 0x160))();
}
pthread_mutex_unlock(__mutex);
lVar4 = *(long *)(lVar4 + 8);
} while (lVar4 != 0);
}
fflush(*(FILE **)PTR_stdout_00483fa0);
if (THR_LOCK_lock._64_8_ != 0) {
(**(code **)(PSI_server + 0x160))();
}
pthread_mutex_unlock((pthread_mutex_t *)THR_LOCK_lock);
return;
}
| |
45,219 | string_buffer_end | bluesky950520[P]quickjs/quickjs.c | static JSValue string_buffer_end(StringBuffer *s)
{
JSString *str;
str = s->str;
if (s->error_status)
return JS_EXCEPTION;
if (s->len == 0) {
js_free(s->ctx, str);
s->str = NULL;
return JS_AtomToString(s->ctx, JS_ATOM_empty_string);
}
if (s->len < s->size) {
/* smaller size so js_realloc should not fail, but OK if it does */
/* XXX: should add some slack to avoid unnecessary calls */
/* XXX: might need to use malloc+free to ensure smaller size */
str = js_realloc_rt(s->ctx->rt, str, sizeof(JSString) +
(s->len << s->is_wide_char) + 1 - s->is_wide_char);
if (str == NULL)
str = s->str;
s->str = str;
}
if (!s->is_wide_char)
str->u.str8[s->len] = 0;
#ifdef DUMP_LEAKS
list_add_tail(&str->link, &s->ctx->rt->string_list);
#endif
str->is_wide_char = s->is_wide_char;
str->len = s->len;
s->str = NULL;
return JS_MKPTR(JS_TAG_STRING, str);
} | O1 | c | string_buffer_end:
pushq %rbx
subq $0x10, %rsp
cmpl $0x0, 0x1c(%rdi)
je 0x33461
movl $0x0, 0x8(%rsp)
movl $0x6, %edx
jmp 0x33523
movq %rdi, %rbx
movq 0x8(%rdi), %rsi
movl 0x10(%rdi), %eax
testl %eax, %eax
je 0x334f3
cmpl 0x14(%rbx), %eax
jge 0x334a4
movq (%rbx), %rdx
movslq 0x18(%rbx), %rcx
shll %cl, %eax
movq 0x18(%rdx), %rdi
movslq %eax, %rdx
subq %rcx, %rdx
addq $0x19, %rdx
callq 0x1cac2
movq %rax, %rsi
testq %rax, %rax
jne 0x334a0
movq 0x8(%rbx), %rsi
movq %rsi, 0x8(%rbx)
cmpl $0x0, 0x18(%rbx)
jne 0x334b3
movslq 0x10(%rbx), %rax
movb $0x0, 0x18(%rsi,%rax)
movl 0x18(%rbx), %eax
shll $0x1f, %eax
movabsq $-0x80000001, %rcx # imm = 0xFFFFFFFF7FFFFFFF
andq 0x4(%rsi), %rcx
orq %rax, %rcx
movq %rcx, 0x4(%rsi)
movl 0x10(%rbx), %eax
andl $0x7fffffff, %eax # imm = 0x7FFFFFFF
andq $-0x80000000, %rcx # imm = 0x80000000
orq %rax, %rcx
movq %rcx, 0x4(%rsi)
movq $0x0, 0x8(%rbx)
movq %rsi, 0x8(%rsp)
jmp 0x3351c
movq (%rbx), %rdi
callq 0x1cb99
movq $0x0, 0x8(%rbx)
movq (%rbx), %rax
movq 0x18(%rax), %rax
movq 0x68(%rax), %rax
movq 0x178(%rax), %rax
incl (%rax)
movq %rax, 0x8(%rsp)
movq $-0x7, %rdx
movq 0x8(%rsp), %rax
addq $0x10, %rsp
popq %rbx
retq
| string_buffer_end:
push rbx
sub rsp, 10h
cmp dword ptr [rdi+1Ch], 0
jz short loc_33461
mov dword ptr [rsp+18h+var_10], 0
mov edx, 6
jmp loc_33523
loc_33461:
mov rbx, rdi
mov rsi, [rdi+8]
mov eax, [rdi+10h]
test eax, eax
jz loc_334F3
cmp eax, [rbx+14h]
jge short loc_334A4
mov rdx, [rbx]
movsxd rcx, dword ptr [rbx+18h]
shl eax, cl
mov rdi, [rdx+18h]
movsxd rdx, eax
sub rdx, rcx
add rdx, 19h
call js_realloc_rt
mov rsi, rax
test rax, rax
jnz short loc_334A0
mov rsi, [rbx+8]
loc_334A0:
mov [rbx+8], rsi
loc_334A4:
cmp dword ptr [rbx+18h], 0
jnz short loc_334B3
movsxd rax, dword ptr [rbx+10h]
mov byte ptr [rsi+rax+18h], 0
loc_334B3:
mov eax, [rbx+18h]
shl eax, 1Fh
mov rcx, 0FFFFFFFF7FFFFFFFh
and rcx, [rsi+4]
or rcx, rax
mov [rsi+4], rcx
mov eax, [rbx+10h]
and eax, 7FFFFFFFh
and rcx, 0FFFFFFFF80000000h
or rcx, rax
mov [rsi+4], rcx
mov qword ptr [rbx+8], 0
mov [rsp+18h+var_10], rsi
jmp short loc_3351C
loc_334F3:
mov rdi, [rbx]
call js_free
mov qword ptr [rbx+8], 0
mov rax, [rbx]
mov rax, [rax+18h]
mov rax, [rax+68h]
mov rax, [rax+178h]
inc dword ptr [rax]
mov [rsp+18h+var_10], rax
loc_3351C:
mov rdx, 0FFFFFFFFFFFFFFF9h
loc_33523:
mov rax, [rsp+18h+var_10]
add rsp, 10h
pop rbx
retn
| _DWORD * string_buffer_end(long long a1)
{
long long v1; // rsi
int v2; // eax
unsigned long long v3; // rcx
_DWORD *v4; // rax
long long v6; // [rsp+8h] [rbp-10h]
if ( *(_DWORD *)(a1 + 28) )
{
LODWORD(v6) = 0;
}
else
{
v1 = *(_QWORD *)(a1 + 8);
v2 = *(_DWORD *)(a1 + 16);
if ( v2 )
{
if ( v2 < *(_DWORD *)(a1 + 20) )
{
v1 = js_realloc_rt(
*(_QWORD *)(*(_QWORD *)a1 + 24LL),
v1,
(v2 << *(_DWORD *)(a1 + 24)) - (long long)*(int *)(a1 + 24) + 25);
if ( !v1 )
v1 = *(_QWORD *)(a1 + 8);
*(_QWORD *)(a1 + 8) = v1;
}
if ( !*(_DWORD *)(a1 + 24) )
*(_BYTE *)(v1 + *(int *)(a1 + 16) + 24) = 0;
v3 = (unsigned int)(*(_DWORD *)(a1 + 24) << 31) | *(_QWORD *)(v1 + 4) & 0xFFFFFFFF7FFFFFFFLL;
*(_QWORD *)(v1 + 4) = v3;
*(_QWORD *)(v1 + 4) = *(_DWORD *)(a1 + 16) & 0x7FFFFFFF | v3 & 0xFFFFFFFF80000000LL;
*(_QWORD *)(a1 + 8) = 0LL;
return (_DWORD *)v1;
}
else
{
js_free(*(_QWORD *)a1, v1);
*(_QWORD *)(a1 + 8) = 0LL;
v4 = *(_DWORD **)(*(_QWORD *)(*(_QWORD *)(*(_QWORD *)a1 + 24LL) + 104LL) + 376LL);
++*v4;
return v4;
}
}
return (_DWORD *)v6;
}
| string_buffer_end:
PUSH RBX
SUB RSP,0x10
CMP dword ptr [RDI + 0x1c],0x0
JZ 0x00133461
MOV dword ptr [RSP + 0x8],0x0
MOV EDX,0x6
JMP 0x00133523
LAB_00133461:
MOV RBX,RDI
MOV RSI,qword ptr [RDI + 0x8]
MOV EAX,dword ptr [RDI + 0x10]
TEST EAX,EAX
JZ 0x001334f3
CMP EAX,dword ptr [RBX + 0x14]
JGE 0x001334a4
MOV RDX,qword ptr [RBX]
MOVSXD RCX,dword ptr [RBX + 0x18]
SHL EAX,CL
MOV RDI,qword ptr [RDX + 0x18]
MOVSXD RDX,EAX
SUB RDX,RCX
ADD RDX,0x19
CALL 0x0011cac2
MOV RSI,RAX
TEST RAX,RAX
JNZ 0x001334a0
MOV RSI,qword ptr [RBX + 0x8]
LAB_001334a0:
MOV qword ptr [RBX + 0x8],RSI
LAB_001334a4:
CMP dword ptr [RBX + 0x18],0x0
JNZ 0x001334b3
MOVSXD RAX,dword ptr [RBX + 0x10]
MOV byte ptr [RSI + RAX*0x1 + 0x18],0x0
LAB_001334b3:
MOV EAX,dword ptr [RBX + 0x18]
SHL EAX,0x1f
MOV RCX,-0x80000001
AND RCX,qword ptr [RSI + 0x4]
OR RCX,RAX
MOV qword ptr [RSI + 0x4],RCX
MOV EAX,dword ptr [RBX + 0x10]
AND EAX,0x7fffffff
AND RCX,-0x80000000
OR RCX,RAX
MOV qword ptr [RSI + 0x4],RCX
MOV qword ptr [RBX + 0x8],0x0
MOV qword ptr [RSP + 0x8],RSI
JMP 0x0013351c
LAB_001334f3:
MOV RDI,qword ptr [RBX]
CALL 0x0011cb99
MOV qword ptr [RBX + 0x8],0x0
MOV RAX,qword ptr [RBX]
MOV RAX,qword ptr [RAX + 0x18]
MOV RAX,qword ptr [RAX + 0x68]
MOV RAX,qword ptr [RAX + 0x178]
INC dword ptr [RAX]
MOV qword ptr [RSP + 0x8],RAX
LAB_0013351c:
MOV RDX,-0x7
LAB_00133523:
MOV RAX,qword ptr [RSP + 0x8]
ADD RSP,0x10
POP RBX
RET
|
int1 [16] string_buffer_end(long *param_1)
{
int iVar1;
ulong uVar2;
ulong uVar3;
int8 uVar4;
int1 auVar5 [16];
int *local_10;
if (*(int *)((long)param_1 + 0x1c) == 0) {
local_10 = (int *)param_1[1];
iVar1 = (int)param_1[2];
if (iVar1 == 0) {
js_free(*param_1);
param_1[1] = 0;
local_10 = *(int **)(*(long *)(*(long *)(*param_1 + 0x18) + 0x68) + 0x178);
*local_10 = *local_10 + 1;
}
else {
if (iVar1 < *(int *)((long)param_1 + 0x14)) {
local_10 = (int *)js_realloc_rt(*(int8 *)(*param_1 + 0x18),local_10,
((long)(iVar1 << ((byte)(int)param_1[3] & 0x1f)) -
(long)(int)param_1[3]) + 0x19);
if (local_10 == (int *)0x0) {
local_10 = (int *)param_1[1];
}
param_1[1] = (long)local_10;
}
if ((int)param_1[3] == 0) {
*(int1 *)((long)local_10 + (long)(int)param_1[2] + 0x18) = 0;
}
uVar3 = (ulong)(uint)((int)param_1[3] << 0x1f);
uVar2 = *(ulong *)(local_10 + 1);
*(ulong *)(local_10 + 1) = uVar2 & 0xffffffff7fffffff | uVar3;
*(ulong *)(local_10 + 1) =
uVar2 & 0xffffffff00000000 | uVar3 | (ulong)(*(uint *)(param_1 + 2) & 0x7fffffff);
param_1[1] = 0;
}
uVar4 = 0xfffffffffffffff9;
}
else {
local_10 = (int *)((ulong)local_10 & 0xffffffff00000000);
uVar4 = 6;
}
auVar5._8_8_ = uVar4;
auVar5._0_8_ = local_10;
return auVar5;
}
| |
45,220 | string_buffer_end | bluesky950520[P]quickjs/quickjs.c | static JSValue string_buffer_end(StringBuffer *s)
{
JSString *str;
str = s->str;
if (s->error_status)
return JS_EXCEPTION;
if (s->len == 0) {
js_free(s->ctx, str);
s->str = NULL;
return JS_AtomToString(s->ctx, JS_ATOM_empty_string);
}
if (s->len < s->size) {
/* smaller size so js_realloc should not fail, but OK if it does */
/* XXX: should add some slack to avoid unnecessary calls */
/* XXX: might need to use malloc+free to ensure smaller size */
str = js_realloc_rt(s->ctx->rt, str, sizeof(JSString) +
(s->len << s->is_wide_char) + 1 - s->is_wide_char);
if (str == NULL)
str = s->str;
s->str = str;
}
if (!s->is_wide_char)
str->u.str8[s->len] = 0;
#ifdef DUMP_LEAKS
list_add_tail(&str->link, &s->ctx->rt->string_list);
#endif
str->is_wide_char = s->is_wide_char;
str->len = s->len;
s->str = NULL;
return JS_MKPTR(JS_TAG_STRING, str);
} | O2 | c | string_buffer_end:
cmpl $0x0, 0x1c(%rdi)
je 0x2cae0
pushq $0x6
popq %rdx
xorl %eax, %eax
retq
pushq %rbx
movq %rdi, %rbx
movq 0x8(%rdi), %rax
movl 0x10(%rdi), %edx
testl %edx, %edx
je 0x2cb6c
cmpl 0x14(%rbx), %edx
jge 0x2cb20
movq (%rbx), %rsi
movslq 0x18(%rbx), %rcx
shll %cl, %edx
movq 0x18(%rsi), %rdi
movslq %edx, %rdx
subq %rcx, %rdx
addq $0x19, %rdx
movq %rax, %rsi
callq 0x17109
testq %rax, %rax
jne 0x2cb1c
movq 0x8(%rbx), %rax
movq %rax, 0x8(%rbx)
movl 0x18(%rbx), %ecx
testl %ecx, %ecx
jne 0x2cb33
movslq 0x10(%rbx), %rcx
movb $0x0, 0x18(%rax,%rcx)
movl 0x18(%rbx), %ecx
movabsq $-0x80000001, %rdx # imm = 0xFFFFFFFF7FFFFFFF
andq 0x4(%rax), %rdx
shll $0x1f, %ecx
orq %rcx, %rdx
movq %rdx, 0x4(%rax)
movl 0x10(%rbx), %ecx
andl $0x7fffffff, %ecx # imm = 0x7FFFFFFF
andq $-0x80000000, %rdx # imm = 0x80000000
orq %rcx, %rdx
movq %rdx, 0x4(%rax)
andq $0x0, 0x8(%rbx)
pushq $-0x7
popq %rdx
jmp 0x2cb87
movq (%rbx), %rdi
movq %rax, %rsi
callq 0x1726e
andq $0x0, 0x8(%rbx)
movq (%rbx), %rdi
pushq $0x2f
popq %rsi
callq 0x1a990
popq %rbx
retq
| string_buffer_end:
cmp dword ptr [rdi+1Ch], 0
jz short loc_2CAE0
push 6
pop rdx
xor eax, eax
retn
loc_2CAE0:
push rbx
mov rbx, rdi
mov rax, [rdi+8]
mov edx, [rdi+10h]
test edx, edx
jz short loc_2CB6C
cmp edx, [rbx+14h]
jge short loc_2CB20
mov rsi, [rbx]
movsxd rcx, dword ptr [rbx+18h]
shl edx, cl
mov rdi, [rsi+18h]
movsxd rdx, edx
sub rdx, rcx
add rdx, 19h
mov rsi, rax
call js_realloc_rt
test rax, rax
jnz short loc_2CB1C
mov rax, [rbx+8]
loc_2CB1C:
mov [rbx+8], rax
loc_2CB20:
mov ecx, [rbx+18h]
test ecx, ecx
jnz short loc_2CB33
movsxd rcx, dword ptr [rbx+10h]
mov byte ptr [rax+rcx+18h], 0
mov ecx, [rbx+18h]
loc_2CB33:
mov rdx, 0FFFFFFFF7FFFFFFFh
and rdx, [rax+4]
shl ecx, 1Fh
or rdx, rcx
mov [rax+4], rdx
mov ecx, [rbx+10h]
and ecx, 7FFFFFFFh
and rdx, 0FFFFFFFF80000000h
or rdx, rcx
mov [rax+4], rdx
and qword ptr [rbx+8], 0
push 0FFFFFFFFFFFFFFF9h
pop rdx
jmp short loc_2CB87
loc_2CB6C:
mov rdi, [rbx]
mov rsi, rax
call js_free
and qword ptr [rbx+8], 0
mov rdi, [rbx]
push 2Fh ; '/'
pop rsi
call JS_AtomToString
loc_2CB87:
pop rbx
retn
| long long string_buffer_end(long long *a1)
{
long long result; // rax
int v2; // edx
int v3; // ecx
unsigned long long v4; // rdx
if ( *((_DWORD *)a1 + 7) )
return 0LL;
result = a1[1];
v2 = *((_DWORD *)a1 + 4);
if ( v2 )
{
if ( v2 < *((_DWORD *)a1 + 5) )
{
result = js_realloc_rt(
*(_QWORD *)(*a1 + 24),
result,
(v2 << *((_DWORD *)a1 + 6)) - (long long)*((int *)a1 + 6) + 25);
if ( !result )
result = a1[1];
a1[1] = result;
}
v3 = *((_DWORD *)a1 + 6);
if ( !v3 )
{
*(_BYTE *)(result + *((int *)a1 + 4) + 24) = 0;
v3 = *((_DWORD *)a1 + 6);
}
v4 = (unsigned int)(v3 << 31) | *(_QWORD *)(result + 4) & 0xFFFFFFFF7FFFFFFFLL;
*(_QWORD *)(result + 4) = v4;
*(_QWORD *)(result + 4) = a1[2] & 0x7FFFFFFF | v4 & 0xFFFFFFFF80000000LL;
a1[1] = 0LL;
}
else
{
js_free(*a1, result);
a1[1] = 0LL;
return JS_AtomToString(*a1, 47);
}
return result;
}
| string_buffer_end:
CMP dword ptr [RDI + 0x1c],0x0
JZ 0x0012cae0
PUSH 0x6
POP RDX
XOR EAX,EAX
RET
LAB_0012cae0:
PUSH RBX
MOV RBX,RDI
MOV RAX,qword ptr [RDI + 0x8]
MOV EDX,dword ptr [RDI + 0x10]
TEST EDX,EDX
JZ 0x0012cb6c
CMP EDX,dword ptr [RBX + 0x14]
JGE 0x0012cb20
MOV RSI,qword ptr [RBX]
MOVSXD RCX,dword ptr [RBX + 0x18]
SHL EDX,CL
MOV RDI,qword ptr [RSI + 0x18]
MOVSXD RDX,EDX
SUB RDX,RCX
ADD RDX,0x19
MOV RSI,RAX
CALL 0x00117109
TEST RAX,RAX
JNZ 0x0012cb1c
MOV RAX,qword ptr [RBX + 0x8]
LAB_0012cb1c:
MOV qword ptr [RBX + 0x8],RAX
LAB_0012cb20:
MOV ECX,dword ptr [RBX + 0x18]
TEST ECX,ECX
JNZ 0x0012cb33
MOVSXD RCX,dword ptr [RBX + 0x10]
MOV byte ptr [RAX + RCX*0x1 + 0x18],0x0
MOV ECX,dword ptr [RBX + 0x18]
LAB_0012cb33:
MOV RDX,-0x80000001
AND RDX,qword ptr [RAX + 0x4]
SHL ECX,0x1f
OR RDX,RCX
MOV qword ptr [RAX + 0x4],RDX
MOV ECX,dword ptr [RBX + 0x10]
AND ECX,0x7fffffff
AND RDX,-0x80000000
OR RDX,RCX
MOV qword ptr [RAX + 0x4],RDX
AND qword ptr [RBX + 0x8],0x0
PUSH -0x7
POP RDX
JMP 0x0012cb87
LAB_0012cb6c:
MOV RDI,qword ptr [RBX]
MOV RSI,RAX
CALL 0x0011726e
AND qword ptr [RBX + 0x8],0x0
MOV RDI,qword ptr [RBX]
PUSH 0x2f
POP RSI
CALL 0x0011a990
LAB_0012cb87:
POP RBX
RET
|
int1 [16] string_buffer_end(long *param_1)
{
ulong uVar1;
long lVar2;
int iVar3;
int1 auVar4 [16];
if (*(int *)((long)param_1 + 0x1c) != 0) {
return ZEXT816(6) << 0x40;
}
lVar2 = param_1[1];
iVar3 = (int)param_1[2];
if (iVar3 == 0) {
js_free(*param_1,lVar2);
param_1[1] = 0;
auVar4 = JS_AtomToString(*param_1,0x2f);
}
else {
if (iVar3 < *(int *)((long)param_1 + 0x14)) {
lVar2 = js_realloc_rt(*(int8 *)(*param_1 + 0x18),lVar2,
((long)(iVar3 << ((byte)(int)param_1[3] & 0x1f)) - (long)(int)param_1[3]
) + 0x19);
if (lVar2 == 0) {
lVar2 = param_1[1];
}
param_1[1] = lVar2;
}
iVar3 = (int)param_1[3];
if (iVar3 == 0) {
*(int1 *)(lVar2 + 0x18 + (long)(int)param_1[2]) = 0;
iVar3 = (int)param_1[3];
}
uVar1 = *(ulong *)(lVar2 + 4);
*(ulong *)(lVar2 + 4) = uVar1 & 0xffffffff7fffffff | (ulong)(uint)(iVar3 << 0x1f);
*(ulong *)(lVar2 + 4) =
uVar1 & 0xffffffff00000000 | (ulong)(uint)(iVar3 << 0x1f) |
(ulong)(*(uint *)(param_1 + 2) & 0x7fffffff);
param_1[1] = 0;
auVar4._8_8_ = 0xfffffffffffffff9;
auVar4._0_8_ = lVar2;
}
return auVar4;
}
| |
45,221 | my_wc_mb_gbk | eloqsql/strings/ctype-gbk.c | static int
my_wc_mb_gbk(CHARSET_INFO *cs __attribute__((unused)),
my_wc_t wc, uchar *s, uchar *e)
{
int code;
if (s >= e)
return MY_CS_TOOSMALL;
if ((uint) wc < 0x80)
{
s[0]= (uchar) wc;
return 1;
}
if (!(code=func_uni_gbk_onechar(wc)))
return MY_CS_ILUNI;
if (s+2>e)
return MY_CS_TOOSMALL2;
s[0]=code>>8;
s[1]=code&0xFF;
return 2;
} | O3 | c | my_wc_mb_gbk:
movl $0xffffff9b, %eax # imm = 0xFFFFFF9B
cmpq %rcx, %rdx
jae 0xb28e2
cmpl $0x7f, %esi
ja 0xb28e3
movb %sil, (%rdx)
movl $0x1, %eax
retq
leal -0xa4(%rsi), %eax
cmpl $0x3ad, %eax # imm = 0x3AD
ja 0xb28fe
movl %eax, %eax
leaq 0x15b1a7(%rip), %rsi # 0x20daa0
jmp 0xb29c0
leal -0x2010(%rsi), %eax
cmpl $0x302, %eax # imm = 0x302
ja 0xb2919
movl %eax, %eax
leaq 0x15b8ec(%rip), %rsi # 0x20e200
jmp 0xb29c0
leal -0x2460(%rsi), %eax
cmpl $0x1e2, %eax # imm = 0x1E2
ja 0xb2934
movl %eax, %eax
leaq 0x15bee1(%rip), %rsi # 0x20e810
jmp 0xb29c0
leal -0x3000(%rsi), %eax
cmpl $0x129, %eax # imm = 0x129
ja 0xb294c
movl %eax, %eax
leaq 0x15c296(%rip), %rsi # 0x20ebe0
jmp 0xb29c0
leal -0x3220(%rsi), %eax
cmpl $0x83, %eax
ja 0xb2964
movl %eax, %eax
leaq 0x15c4de(%rip), %rsi # 0x20ee40
jmp 0xb29c0
leal -0x338e(%rsi), %eax
cmpl $0x47, %eax
ja 0xb297a
movl %eax, %eax
leaq 0x15c5d8(%rip), %rsi # 0x20ef50
jmp 0xb29c0
leal -0x4e00(%rsi), %eax
cmpl $0x51a5, %eax # imm = 0x51A5
ja 0xb2992
movl %eax, %eax
leaq 0x15c650(%rip), %rsi # 0x20efe0
jmp 0xb29c0
leal -0xf92c(%rsi), %eax
cmpl $0xfd, %eax
ja 0xb29aa
movl %eax, %eax
leaq 0x166988(%rip), %rsi # 0x219330
jmp 0xb29c0
leal -0xfe30(%rsi), %eax
cmpl $0x1b5, %eax # imm = 0x1B5
ja 0xb29f0
movl %eax, %eax
leaq 0x166b70(%rip), %rsi # 0x219530
leaq (%rsi,%rax,2), %rax
pushq %rbp
movq %rsp, %rbp
movzwl (%rax), %esi
testw %si, %si
je 0xb29ec
leaq 0x2(%rdx), %rdi
movl $0xffffff9a, %eax # imm = 0xFFFFFF9A
cmpq %rcx, %rdi
ja 0xb29ee
rolw $0x8, %si
movw %si, (%rdx)
movl $0x2, %eax
jmp 0xb29ee
xorl %eax, %eax
popq %rbp
retq
xorl %eax, %eax
retq
| my_wc_mb_gbk:
mov eax, 0FFFFFF9Bh
cmp rdx, rcx
jnb short locret_B28E2
cmp esi, 7Fh
ja short loc_B28E3
mov [rdx], sil
mov eax, 1
locret_B28E2:
retn
loc_B28E3:
lea eax, [rsi-0A4h]
cmp eax, 3ADh
ja short loc_B28FE
mov eax, eax
lea rsi, tab_uni_gbk0
jmp loc_B29C0
loc_B28FE:
lea eax, [rsi-2010h]
cmp eax, 302h
ja short loc_B2919
mov eax, eax
lea rsi, tab_uni_gbk1
jmp loc_B29C0
loc_B2919:
lea eax, [rsi-2460h]
cmp eax, 1E2h
ja short loc_B2934
mov eax, eax
lea rsi, tab_uni_gbk2
jmp loc_B29C0
loc_B2934:
lea eax, [rsi-3000h]
cmp eax, 129h
ja short loc_B294C
mov eax, eax
lea rsi, tab_uni_gbk3
jmp short loc_B29C0
loc_B294C:
lea eax, [rsi-3220h]
cmp eax, 83h
ja short loc_B2964
mov eax, eax
lea rsi, tab_uni_gbk4
jmp short loc_B29C0
loc_B2964:
lea eax, [rsi-338Eh]
cmp eax, 47h ; 'G'
ja short loc_B297A
mov eax, eax
lea rsi, tab_uni_gbk5
jmp short loc_B29C0
loc_B297A:
lea eax, [rsi-4E00h]
cmp eax, 51A5h
ja short loc_B2992
mov eax, eax
lea rsi, tab_uni_gbk6
jmp short loc_B29C0
loc_B2992:
lea eax, [rsi-0F92Ch]
cmp eax, 0FDh
ja short loc_B29AA
mov eax, eax
lea rsi, tab_uni_gbk7
jmp short loc_B29C0
loc_B29AA:
lea eax, [rsi-0FE30h]
cmp eax, 1B5h
ja short loc_B29F0
mov eax, eax
lea rsi, tab_uni_gbk8
loc_B29C0:
lea rax, [rsi+rax*2]
push rbp
mov rbp, rsp
movzx esi, word ptr [rax]
test si, si
jz short loc_B29EC
lea rdi, [rdx+2]
mov eax, 0FFFFFF9Ah
cmp rdi, rcx
ja short loc_B29EE
rol si, 8
mov [rdx], si
mov eax, 2
jmp short loc_B29EE
loc_B29EC:
xor eax, eax
loc_B29EE:
pop rbp
retn
loc_B29F0:
xor eax, eax
retn
| long long my_wc_mb_gbk(long long a1, unsigned int a2, _WORD *a3, unsigned long long a4)
{
long long result; // rax
long long v5; // rax
_WORD *v6; // rsi
__int16 v7; // si
result = 4294967195LL;
if ( (unsigned long long)a3 < a4 )
{
if ( a2 > 0x7F )
{
LODWORD(v5) = a2 - 164;
if ( a2 - 164 > 0x3AD )
{
LODWORD(v5) = a2 - 8208;
if ( a2 - 8208 > 0x302 )
{
LODWORD(v5) = a2 - 9312;
if ( a2 - 9312 > 0x1E2 )
{
LODWORD(v5) = a2 - 12288;
if ( a2 - 12288 > 0x129 )
{
LODWORD(v5) = a2 - 12832;
if ( a2 - 12832 > 0x83 )
{
LODWORD(v5) = a2 - 13198;
if ( a2 - 13198 > 0x47 )
{
LODWORD(v5) = a2 - 19968;
if ( a2 - 19968 > 0x51A5 )
{
LODWORD(v5) = a2 - 63788;
if ( a2 - 63788 > 0xFD )
{
LODWORD(v5) = a2 - 65072;
if ( a2 - 65072 > 0x1B5 )
return 0LL;
v5 = (unsigned int)v5;
v6 = &tab_uni_gbk8;
}
else
{
v5 = (unsigned int)v5;
v6 = &tab_uni_gbk7;
}
}
else
{
v5 = (unsigned int)v5;
v6 = &tab_uni_gbk6;
}
}
else
{
v5 = (unsigned int)v5;
v6 = &tab_uni_gbk5;
}
}
else
{
v5 = (unsigned int)v5;
v6 = &tab_uni_gbk4;
}
}
else
{
v5 = (unsigned int)v5;
v6 = &tab_uni_gbk3;
}
}
else
{
v5 = (unsigned int)v5;
v6 = &tab_uni_gbk2;
}
}
else
{
v5 = (unsigned int)v5;
v6 = &tab_uni_gbk1;
}
}
else
{
v5 = (unsigned int)v5;
v6 = &tab_uni_gbk0;
}
v7 = v6[v5];
if ( v7 )
{
result = 4294967194LL;
if ( (unsigned long long)(a3 + 1) <= a4 )
{
*a3 = __ROL2__(v7, 8);
return 2LL;
}
}
else
{
return 0LL;
}
}
else
{
*(_BYTE *)a3 = a2;
return 1LL;
}
}
return result;
}
| my_wc_mb_gbk:
MOV EAX,0xffffff9b
CMP RDX,RCX
JNC 0x001b28e2
CMP ESI,0x7f
JA 0x001b28e3
MOV byte ptr [RDX],SIL
MOV EAX,0x1
LAB_001b28e2:
RET
LAB_001b28e3:
LEA EAX,[RSI + -0xa4]
CMP EAX,0x3ad
JA 0x001b28fe
MOV EAX,EAX
LEA RSI,[0x30daa0]
JMP 0x001b29c0
LAB_001b28fe:
LEA EAX,[RSI + -0x2010]
CMP EAX,0x302
JA 0x001b2919
MOV EAX,EAX
LEA RSI,[0x30e200]
JMP 0x001b29c0
LAB_001b2919:
LEA EAX,[RSI + -0x2460]
CMP EAX,0x1e2
JA 0x001b2934
MOV EAX,EAX
LEA RSI,[0x30e810]
JMP 0x001b29c0
LAB_001b2934:
LEA EAX,[RSI + -0x3000]
CMP EAX,0x129
JA 0x001b294c
MOV EAX,EAX
LEA RSI,[0x30ebe0]
JMP 0x001b29c0
LAB_001b294c:
LEA EAX,[RSI + -0x3220]
CMP EAX,0x83
JA 0x001b2964
MOV EAX,EAX
LEA RSI,[0x30ee40]
JMP 0x001b29c0
LAB_001b2964:
LEA EAX,[RSI + -0x338e]
CMP EAX,0x47
JA 0x001b297a
MOV EAX,EAX
LEA RSI,[0x30ef50]
JMP 0x001b29c0
LAB_001b297a:
LEA EAX,[RSI + -0x4e00]
CMP EAX,0x51a5
JA 0x001b2992
MOV EAX,EAX
LEA RSI,[0x30efe0]
JMP 0x001b29c0
LAB_001b2992:
LEA EAX,[RSI + -0xf92c]
CMP EAX,0xfd
JA 0x001b29aa
MOV EAX,EAX
LEA RSI,[0x319330]
JMP 0x001b29c0
LAB_001b29aa:
LEA EAX,[RSI + -0xfe30]
CMP EAX,0x1b5
JA 0x001b29f0
MOV EAX,EAX
LEA RSI,[0x319530]
LAB_001b29c0:
LEA RAX,[RSI + RAX*0x2]
PUSH RBP
MOV RBP,RSP
MOVZX ESI,word ptr [RAX]
TEST SI,SI
JZ 0x001b29ec
LEA RDI,[RDX + 0x2]
MOV EAX,0xffffff9a
CMP RDI,RCX
JA 0x001b29ee
ROL SI,0x8
MOV word ptr [RDX],SI
MOV EAX,0x2
JMP 0x001b29ee
LAB_001b29ec:
XOR EAX,EAX
LAB_001b29ee:
POP RBP
RET
LAB_001b29f0:
XOR EAX,EAX
RET
|
int8 my_wc_mb_gbk(int8 param_1,uint param_2,ushort *param_3,ushort *param_4)
{
ushort uVar1;
int8 uVar2;
ulong uVar3;
int1 *puVar4;
uVar2 = 0xffffff9b;
if (param_3 < param_4) {
if (0x7f < param_2) {
if (param_2 - 0xa4 < 0x3ae) {
uVar3 = (ulong)(param_2 - 0xa4);
puVar4 = tab_uni_gbk0;
}
else if (param_2 - 0x2010 < 0x303) {
uVar3 = (ulong)(param_2 - 0x2010);
puVar4 = tab_uni_gbk1;
}
else if (param_2 - 0x2460 < 0x1e3) {
uVar3 = (ulong)(param_2 - 0x2460);
puVar4 = tab_uni_gbk2;
}
else if (param_2 - 0x3000 < 0x12a) {
uVar3 = (ulong)(param_2 - 0x3000);
puVar4 = tab_uni_gbk3;
}
else if (param_2 - 0x3220 < 0x84) {
uVar3 = (ulong)(param_2 - 0x3220);
puVar4 = tab_uni_gbk4;
}
else if (param_2 - 0x338e < 0x48) {
uVar3 = (ulong)(param_2 - 0x338e);
puVar4 = tab_uni_gbk5;
}
else if (param_2 - 0x4e00 < 0x51a6) {
uVar3 = (ulong)(param_2 - 0x4e00);
puVar4 = tab_uni_gbk6;
}
else if (param_2 - 0xf92c < 0xfe) {
uVar3 = (ulong)(param_2 - 0xf92c);
puVar4 = tab_uni_gbk7;
}
else {
uVar3 = (ulong)(param_2 - 0xfe30);
if (0x1b5 < param_2 - 0xfe30) {
return 0;
}
puVar4 = tab_uni_gbk8;
}
uVar1 = *(ushort *)(puVar4 + uVar3 * 2);
if (uVar1 == 0) {
uVar2 = 0;
}
else {
uVar2 = 0xffffff9a;
if (param_3 + 1 <= param_4) {
*param_3 = uVar1 << 8 | uVar1 >> 8;
uVar2 = 2;
}
}
return uVar2;
}
*(char *)param_3 = (char)param_2;
uVar2 = 1;
}
return uVar2;
}
| |
45,222 | google::protobuf::compiler::cpp::MapFieldGenerator::GenerateCopyAggregateInitializer(google::protobuf::io::Printer*) const | aimrt_mujoco_sim/_deps/protobuf-src/src/google/protobuf/compiler/cpp/map_field.cc | void MapFieldGenerator::GenerateCopyAggregateInitializer(
io::Printer* printer) const {
Formatter format(printer, variables_);
// MapField has no move constructor, which prevents explicit aggregate
// initialization pre-C++17.
format("/*decltype($field$)*/{}");
} | O3 | cpp | google::protobuf::compiler::cpp::MapFieldGenerator::GenerateCopyAggregateInitializer(google::protobuf::io::Printer*) const:
pushq %r14
pushq %rbx
subq $0x38, %rsp
leaq 0x18(%rdi), %rax
leaq 0x8(%rsp), %rbx
movq %rsi, -0x8(%rbx)
movq %rbx, %rdi
movq %rax, %rsi
callq 0x7e61e
leaq 0x1003a0(%rip), %rsi # 0x1c7e46
movq %rsp, %rdi
callq 0x39938
movq %rbx, %rdi
callq 0x2e5e0
addq $0x38, %rsp
popq %rbx
popq %r14
retq
movq %rax, %r14
movq %rbx, %rdi
callq 0x2e5e0
movq %r14, %rdi
callq 0x1f860
nop
| _ZNK6google8protobuf8compiler3cpp17MapFieldGenerator32GenerateCopyAggregateInitializerEPNS0_2io7PrinterE:
push r14
push rbx
sub rsp, 38h
lea rax, [rdi+18h]
lea rbx, [rsp+48h+var_40]
mov [rbx-8], rsi
mov rdi, rbx
mov rsi, rax
call _ZNSt8_Rb_treeINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4pairIKS5_S5_ESt10_Select1stIS8_ESt4lessIS5_ESaIS8_EEC2ERKSE_; std::_Rb_tree<std::string,std::pair<std::string const,std::string>,std::_Select1st<std::pair<std::string const,std::string>>,std::less<std::string>,std::allocator<std::pair<std::string const,std::string>>>::_Rb_tree(std::_Rb_tree<std::string,std::pair<std::string const,std::string>,std::_Select1st<std::pair<std::string const,std::string>>,std::less<std::string>,std::allocator<std::pair<std::string const,std::string>>> const&)
lea rsi, aDecltypeField; "/*decltype($field$)*/{}"
mov rdi, rsp
call _ZNK6google8protobuf8compiler3cpp9FormatterclIJEEEvPKcDpRKT_
mov rdi, rbx
call _ZNSt8_Rb_treeINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4pairIKS5_S5_ESt10_Select1stIS8_ESt4lessIS5_ESaIS8_EED2Ev; std::_Rb_tree<std::string,std::pair<std::string const,std::string>,std::_Select1st<std::pair<std::string const,std::string>>,std::less<std::string>,std::allocator<std::pair<std::string const,std::string>>>::~_Rb_tree()
add rsp, 38h
pop rbx
pop r14
retn
mov r14, rax
mov rdi, rbx
call _ZNSt8_Rb_treeINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4pairIKS5_S5_ESt10_Select1stIS8_ESt4lessIS5_ESaIS8_EED2Ev; std::_Rb_tree<std::string,std::pair<std::string const,std::string>,std::_Select1st<std::pair<std::string const,std::string>>,std::less<std::string>,std::allocator<std::pair<std::string const,std::string>>>::~_Rb_tree()
mov rdi, r14
call __Unwind_Resume
| long long google::protobuf::compiler::cpp::MapFieldGenerator::GenerateCopyAggregateInitializer(
google::protobuf::compiler::cpp::MapFieldGenerator *this,
google::protobuf::io::Printer *a2)
{
long long result; // rax
google::protobuf::io::Printer *v3; // [rsp+0h] [rbp-48h] BYREF
_BYTE v4[64]; // [rsp+8h] [rbp-40h] BYREF
v3 = a2;
std::_Rb_tree<std::string,std::pair<std::string const,std::string>,std::_Select1st<std::pair<std::string const,std::string>>,std::less<std::string>,std::allocator<std::pair<std::string const,std::string>>>::_Rb_tree(
(long long)v4,
(long long)this + 24);
result = google::protobuf::compiler::cpp::Formatter::operator()<>(&v3, "/*decltype($field$)*/{}");
std::_Rb_tree<std::string,std::pair<std::string const,std::string>,std::_Select1st<std::pair<std::string const,std::string>>,std::less<std::string>,std::allocator<std::pair<std::string const,std::string>>>::~_Rb_tree((long long)v4);
return result;
}
| GenerateCopyAggregateInitializer:
PUSH R14
PUSH RBX
SUB RSP,0x38
LEA RAX,[RDI + 0x18]
LEA RBX,[RSP + 0x8]
MOV qword ptr [RBX + -0x8],RSI
MOV RDI,RBX
MOV RSI,RAX
CALL 0x0017e61e
LAB_001c7a9f:
LEA RSI,[0x2c7e46]
MOV RDI,RSP
CALL 0x00139938
LAB_001c7aae:
MOV RDI,RBX
CALL 0x0012e5e0
ADD RSP,0x38
POP RBX
POP R14
RET
|
/* google::protobuf::compiler::cpp::MapFieldGenerator::GenerateCopyAggregateInitializer(google::protobuf::io::Printer*)
const */
void __thiscall
google::protobuf::compiler::cpp::MapFieldGenerator::GenerateCopyAggregateInitializer
(MapFieldGenerator *this,Printer *param_1)
{
Printer *local_48;
_Rb_tree<std::__cxx11::string,std::pair<std::__cxx11::string_const,std::__cxx11::string>,std::_Select1st<std::pair<std::__cxx11::string_const,std::__cxx11::string>>,std::less<std::__cxx11::string>,std::allocator<std::pair<std::__cxx11::string_const,std::__cxx11::string>>>
local_40 [48];
local_48 = param_1;
std::
_Rb_tree<std::__cxx11::string,std::pair<std::__cxx11::string_const,std::__cxx11::string>,std::_Select1st<std::pair<std::__cxx11::string_const,std::__cxx11::string>>,std::less<std::__cxx11::string>,std::allocator<std::pair<std::__cxx11::string_const,std::__cxx11::string>>>
::_Rb_tree(local_40,(_Rb_tree *)(this + 0x18));
/* try { // try from 001c7a9f to 001c7aad has its CatchHandler @ 001c7abe */
Formatter::operator()<>((Formatter *)&local_48,"/*decltype($field$)*/{}");
std::
_Rb_tree<std::__cxx11::string,std::pair<std::__cxx11::string_const,std::__cxx11::string>,std::_Select1st<std::pair<std::__cxx11::string_const,std::__cxx11::string>>,std::less<std::__cxx11::string>,std::allocator<std::pair<std::__cxx11::string_const,std::__cxx11::string>>>
::~_Rb_tree(local_40);
return;
}
| |
45,223 | rlClearColor | csit-sgu[P]mit-game-2025_1/Libraries/raylib/src/rlgl.h | void rlClearColor(unsigned char r, unsigned char g, unsigned char b, unsigned char a)
{
// Color values clamp to 0.0f(0) and 1.0f(255)
float cr = (float)r/255;
float cg = (float)g/255;
float cb = (float)b/255;
float ca = (float)a/255;
glClearColor(cr, cg, cb, ca);
} | O0 | c | rlClearColor:
pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movb %cl, %al
movb %dl, %cl
movb %sil, %dl
movb %dil, %sil
movb %sil, -0x1(%rbp)
movb %dl, -0x2(%rbp)
movb %cl, -0x3(%rbp)
movb %al, -0x4(%rbp)
movzbl -0x1(%rbp), %eax
cvtsi2ss %eax, %xmm0
movss 0xf4fd1(%rip), %xmm1 # 0x1a7f90
divss %xmm1, %xmm0
movss %xmm0, -0x8(%rbp)
movzbl -0x2(%rbp), %eax
cvtsi2ss %eax, %xmm0
divss %xmm1, %xmm0
movss %xmm0, -0xc(%rbp)
movzbl -0x3(%rbp), %eax
cvtsi2ss %eax, %xmm0
divss %xmm1, %xmm0
movss %xmm0, -0x10(%rbp)
movzbl -0x4(%rbp), %eax
cvtsi2ss %eax, %xmm0
movss 0xf4f96(%rip), %xmm1 # 0x1a7f90
divss %xmm1, %xmm0
movss %xmm0, -0x14(%rbp)
movq 0x1654ae(%rip), %rax # 0x2184b8
movss -0x8(%rbp), %xmm0
movss -0xc(%rbp), %xmm1
movss -0x10(%rbp), %xmm2
movss -0x14(%rbp), %xmm3
callq *%rax
addq $0x20, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
| rlClearColor:
push rbp
mov rbp, rsp
sub rsp, 20h
mov al, cl
mov cl, dl
mov dl, sil
mov sil, dil
mov [rbp+var_1], sil
mov [rbp+var_2], dl
mov [rbp+var_3], cl
mov [rbp+var_4], al
movzx eax, [rbp+var_1]
cvtsi2ss xmm0, eax
movss xmm1, cs:dword_1A7F90
divss xmm0, xmm1
movss [rbp+var_8], xmm0
movzx eax, [rbp+var_2]
cvtsi2ss xmm0, eax
divss xmm0, xmm1
movss [rbp+var_C], xmm0
movzx eax, [rbp+var_3]
cvtsi2ss xmm0, eax
divss xmm0, xmm1
movss [rbp+var_10], xmm0
movzx eax, [rbp+var_4]
cvtsi2ss xmm0, eax
movss xmm1, cs:dword_1A7F90
divss xmm0, xmm1
movss [rbp+var_14], xmm0
mov rax, cs:glad_glClearColor
movss xmm0, [rbp+var_8]
movss xmm1, [rbp+var_C]
movss xmm2, [rbp+var_10]
movss xmm3, [rbp+var_14]
call rax ; glad_glClearColor
add rsp, 20h
pop rbp
retn
| long long rlClearColor(unsigned __int8 a1, unsigned __int8 a2, unsigned __int8 a3, unsigned __int8 a4)
{
return glad_glClearColor((float)a1 / 255.0, (float)a2 / 255.0, (float)a3 / 255.0, (float)a4 / 255.0);
}
| rlClearColor:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x20
MOV AL,CL
MOV CL,DL
MOV DL,SIL
MOV SIL,DIL
MOV byte ptr [RBP + -0x1],SIL
MOV byte ptr [RBP + -0x2],DL
MOV byte ptr [RBP + -0x3],CL
MOV byte ptr [RBP + -0x4],AL
MOVZX EAX,byte ptr [RBP + -0x1]
CVTSI2SS XMM0,EAX
MOVSS XMM1,dword ptr [0x002a7f90]
DIVSS XMM0,XMM1
MOVSS dword ptr [RBP + -0x8],XMM0
MOVZX EAX,byte ptr [RBP + -0x2]
CVTSI2SS XMM0,EAX
DIVSS XMM0,XMM1
MOVSS dword ptr [RBP + -0xc],XMM0
MOVZX EAX,byte ptr [RBP + -0x3]
CVTSI2SS XMM0,EAX
DIVSS XMM0,XMM1
MOVSS dword ptr [RBP + -0x10],XMM0
MOVZX EAX,byte ptr [RBP + -0x4]
CVTSI2SS XMM0,EAX
MOVSS XMM1,dword ptr [0x002a7f90]
DIVSS XMM0,XMM1
MOVSS dword ptr [RBP + -0x14],XMM0
MOV RAX,qword ptr [0x003184b8]
MOVSS XMM0,dword ptr [RBP + -0x8]
MOVSS XMM1,dword ptr [RBP + -0xc]
MOVSS XMM2,dword ptr [RBP + -0x10]
MOVSS XMM3,dword ptr [RBP + -0x14]
CALL RAX
ADD RSP,0x20
POP RBP
RET
|
void rlClearColor(byte param_1,byte param_2,byte param_3,byte param_4)
{
(*glad_glClearColor)
((float)param_1 / DAT_002a7f90,(float)param_2 / DAT_002a7f90,
(float)param_3 / DAT_002a7f90,(float)param_4 / DAT_002a7f90);
return;
}
| |
45,224 | rlClearColor | csit-sgu[P]mit-game-2025_1/Libraries/raylib/src/rlgl.h | void rlClearColor(unsigned char r, unsigned char g, unsigned char b, unsigned char a)
{
// Color values clamp to 0.0f(0) and 1.0f(255)
float cr = (float)r/255;
float cg = (float)g/255;
float cb = (float)b/255;
float ca = (float)a/255;
glClearColor(cr, cg, cb, ca);
} | O2 | c | rlClearColor:
cvtsi2ss %edi, %xmm0
cvtsi2ss %esi, %xmm1
movss 0x6656a(%rip), %xmm4 # 0xb9718
cvtsi2ss %edx, %xmm2
divss %xmm4, %xmm0
cvtsi2ss %ecx, %xmm3
divss %xmm4, %xmm1
divss %xmm4, %xmm2
divss %xmm4, %xmm3
movq 0xd224b(%rip), %rax # 0x125418
jmpq *%rax
| rlClearColor:
cvtsi2ss xmm0, edi
cvtsi2ss xmm1, esi
movss xmm4, cs:dword_B9718
cvtsi2ss xmm2, edx
divss xmm0, xmm4
cvtsi2ss xmm3, ecx
divss xmm1, xmm4
divss xmm2, xmm4
divss xmm3, xmm4
mov rax, cs:glad_glClearColor
jmp rax
| long long rlClearColor(int a1, int a2, int a3, int a4)
{
return glad_glClearColor((float)a1 / 255.0, (float)a2 / 255.0, (float)a3 / 255.0, (float)a4 / 255.0);
}
| rlClearColor:
CVTSI2SS XMM0,EDI
CVTSI2SS XMM1,ESI
MOVSS XMM4,dword ptr [0x001b9718]
CVTSI2SS XMM2,EDX
DIVSS XMM0,XMM4
CVTSI2SS XMM3,ECX
DIVSS XMM1,XMM4
DIVSS XMM2,XMM4
DIVSS XMM3,XMM4
MOV RAX,qword ptr [0x00225418]
JMP RAX
|
void rlClearColor(int param_1,int param_2,int param_3,int param_4)
{
/* WARNING: Could not recover jumptable at 0x001531cd. Too many branches */
/* WARNING: Treating indirect jump as call */
(*glad_glClearColor)
((float)param_1 / DAT_001b9718,(float)param_2 / DAT_001b9718,
(float)param_3 / DAT_001b9718,(float)param_4 / DAT_001b9718);
return;
}
| |
45,225 | rlClearColor | csit-sgu[P]mit-game-2025_1/Libraries/raylib/src/rlgl.h | void rlClearColor(unsigned char r, unsigned char g, unsigned char b, unsigned char a)
{
// Color values clamp to 0.0f(0) and 1.0f(255)
float cr = (float)r/255;
float cg = (float)g/255;
float cb = (float)b/255;
float ca = (float)a/255;
glClearColor(cr, cg, cb, ca);
} | O3 | c | rlClearColor:
cvtsi2ss %edi, %xmm0
cvtsi2ss %esi, %xmm1
movss 0x70c36(%rip), %xmm4 # 0xd3b94
cvtsi2ss %edx, %xmm2
divss %xmm4, %xmm0
cvtsi2ss %ecx, %xmm3
divss %xmm4, %xmm1
divss %xmm4, %xmm2
divss %xmm4, %xmm3
movq 0xd647b(%rip), %rax # 0x1393f8
jmpq *%rax
| rlClearColor:
cvtsi2ss xmm0, edi
cvtsi2ss xmm1, esi
movss xmm4, cs:dword_D3B94
cvtsi2ss xmm2, edx
divss xmm0, xmm4
cvtsi2ss xmm3, ecx
divss xmm1, xmm4
divss xmm2, xmm4
divss xmm3, xmm4
mov rax, cs:glad_glClearColor
jmp rax
| long long rlClearColor(int a1, int a2, int a3, int a4)
{
return glad_glClearColor((float)a1 / 255.0, (float)a2 / 255.0, (float)a3 / 255.0, (float)a4 / 255.0);
}
| rlClearColor:
CVTSI2SS XMM0,EDI
CVTSI2SS XMM1,ESI
MOVSS XMM4,dword ptr [0x001d3b94]
CVTSI2SS XMM2,EDX
DIVSS XMM0,XMM4
CVTSI2SS XMM3,ECX
DIVSS XMM1,XMM4
DIVSS XMM2,XMM4
DIVSS XMM3,XMM4
MOV RAX,qword ptr [0x002393f8]
JMP RAX
|
void rlClearColor(int param_1,int param_2,int param_3,int param_4)
{
/* WARNING: Could not recover jumptable at 0x00162f7d. Too many branches */
/* WARNING: Treating indirect jump as call */
(*glad_glClearColor)
((float)param_1 / DAT_001d3b94,(float)param_2 / DAT_001d3b94,
(float)param_3 / DAT_001d3b94,(float)param_4 / DAT_001d3b94);
return;
}
| |
45,226 | mysql_set_local_infile_handler | eloqsql/libmariadb/libmariadb/ma_loaddata.c | void STDCALL mysql_set_local_infile_handler(MYSQL *conn,
int (*local_infile_init)(void **, const char *, void *),
int (*local_infile_read)(void *, char *, uint),
void (*local_infile_end)(void *),
int (*local_infile_error)(void *, char *, uint),
void *userdata)
{
conn->options.local_infile_init= local_infile_init;
conn->options.local_infile_read= local_infile_read;
conn->options.local_infile_end= local_infile_end;
conn->options.local_infile_error= local_infile_error;
conn->options.local_infile_userdata = userdata;
return;
} | O0 | c | mysql_set_local_infile_handler:
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 -0x10(%rbp), %rcx
movq -0x8(%rbp), %rax
movq %rcx, 0x458(%rax)
movq -0x18(%rbp), %rcx
movq -0x8(%rbp), %rax
movq %rcx, 0x460(%rax)
movq -0x20(%rbp), %rcx
movq -0x8(%rbp), %rax
movq %rcx, 0x468(%rax)
movq -0x28(%rbp), %rcx
movq -0x8(%rbp), %rax
movq %rcx, 0x470(%rax)
movq -0x30(%rbp), %rcx
movq -0x8(%rbp), %rax
movq %rcx, 0x478(%rax)
popq %rbp
retq
nopl (%rax)
| mysql_set_local_infile_handler:
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 rcx, [rbp+var_10]
mov rax, [rbp+var_8]
mov [rax+458h], rcx
mov rcx, [rbp+var_18]
mov rax, [rbp+var_8]
mov [rax+460h], rcx
mov rcx, [rbp+var_20]
mov rax, [rbp+var_8]
mov [rax+468h], rcx
mov rcx, [rbp+var_28]
mov rax, [rbp+var_8]
mov [rax+470h], rcx
mov rcx, [rbp+var_30]
mov rax, [rbp+var_8]
mov [rax+478h], rcx
pop rbp
retn
| _QWORD * mysql_set_local_infile_handler(
_QWORD *a1,
long long a2,
long long a3,
long long a4,
long long a5,
long long a6)
{
_QWORD *result; // rax
a1[139] = a2;
a1[140] = a3;
a1[141] = a4;
a1[142] = a5;
result = a1;
a1[143] = a6;
return result;
}
| mysql_set_local_infile_handler:
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 RCX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RBP + -0x8]
MOV qword ptr [RAX + 0x458],RCX
MOV RCX,qword ptr [RBP + -0x18]
MOV RAX,qword ptr [RBP + -0x8]
MOV qword ptr [RAX + 0x460],RCX
MOV RCX,qword ptr [RBP + -0x20]
MOV RAX,qword ptr [RBP + -0x8]
MOV qword ptr [RAX + 0x468],RCX
MOV RCX,qword ptr [RBP + -0x28]
MOV RAX,qword ptr [RBP + -0x8]
MOV qword ptr [RAX + 0x470],RCX
MOV RCX,qword ptr [RBP + -0x30]
MOV RAX,qword ptr [RBP + -0x8]
MOV qword ptr [RAX + 0x478],RCX
POP RBP
RET
|
void mysql_set_local_infile_handler
(long param_1,int8 param_2,int8 param_3,int8 param_4,
int8 param_5,int8 param_6)
{
*(int8 *)(param_1 + 0x458) = param_2;
*(int8 *)(param_1 + 0x460) = param_3;
*(int8 *)(param_1 + 0x468) = param_4;
*(int8 *)(param_1 + 0x470) = param_5;
*(int8 *)(param_1 + 0x478) = param_6;
return;
}
| |
45,227 | (anonymous namespace)::msgpack23_map_arrayTest_Test::~msgpack23_map_arrayTest_Test() | msgpack23/tests/map_tests.cpp | TEST_P(msgpack23_map, arrayTest) {
std::map<std::size_t, std::size_t> expected{};
for (std::size_t i = 0; i < GetParam(); ++i) {
expected.insert_or_assign(i, i);
}
msgpack23::Packer packer{};
auto data = packer(expected);
msgpack23::Unpacker unpacker{data};
std::map<std::size_t, std::size_t> actual{};
unpacker(actual);
EXPECT_EQ(actual, expected);
} | O0 | cpp | (anonymous namespace)::msgpack23_map_arrayTest_Test::~msgpack23_map_arrayTest_Test():
pushq %rbp
movq %rsp, %rbp
movq %rdi, -0x8(%rbp)
ud2
nopw (%rax,%rax)
| _ZN12_GLOBAL__N_113msgpack23_mapD0Ev:
push rbp
mov rbp, rsp
mov [rbp+var_8], rdi
ud2
| void __noreturn `anonymous namespace'::msgpack23_map::~msgpack23_map(
_anonymous_namespace_::msgpack23_map *this)
{
BUG();
}
| ~msgpack23_map:
PUSH RBP
MOV RBP,RSP
MOV qword ptr [RBP + -0x8],RDI
UD2
|
/* (anonymous namespace)::msgpack23_map::~msgpack23_map() */
void __thiscall (anonymous_namespace)::msgpack23_map::~msgpack23_map(msgpack23_map *this)
{
code *pcVar1;
/* WARNING: Does not return */
pcVar1 = (code *)invalidInstructionException();
(*pcVar1)();
}
| |
45,228 | plan | eloqsql/unittest/mytap/tap.c | void
plan(int count)
{
char *config= getenv("MYTAP_CONFIG");
size_t i;
start_time= start_timer();
if (config)
skip_big_tests= strcmp(config, "big");
setvbuf(tapout, 0, _IONBF, 0); /* provide output at once */
/*
Install signal handler
*/
for (i= 0; i < sizeof(install_signal)/sizeof(*install_signal); ++i)
signal(install_signal[i].signo, install_signal[i].handler);
g_test.plan= count;
switch (count)
{
case NO_PLAN:
break;
default:
if (count > 0)
{
fprintf(tapout, "1..%d\n", count);
fflush(tapout);
}
break;
}
} | O0 | c | plan:
pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movl %edi, -0x4(%rbp)
leaq 0x838aa(%rip), %rdi # 0xb2b1c
callq 0x26400
movq %rax, -0x10(%rbp)
callq 0x2f360
movq %rax, 0x3a0009(%rip) # 0x3cf290
cmpq $0x0, -0x10(%rbp)
je 0x2f2a4
movq -0x10(%rbp), %rdi
leaq 0x88ece(%rip), %rsi # 0xb8167
callq 0x26460
movl %eax, 0x1e7d6c(%rip) # 0x217010
movq 0x1e7d0d(%rip), %rax # 0x216fb8
movq (%rax), %rdi
xorl %eax, %eax
movl %eax, %ecx
movl $0x2, %edx
movq %rcx, %rsi
callq 0x26040
movq $0x0, -0x18(%rbp)
cmpq $0xb, -0x18(%rbp)
jae 0x2f30b
movq -0x18(%rbp), %rcx
leaq 0x1e7d47(%rip), %rax # 0x217020
shlq $0x4, %rcx
addq %rcx, %rax
movl (%rax), %edi
movq -0x18(%rbp), %rcx
leaq 0x1e7d33(%rip), %rax # 0x217020
shlq $0x4, %rcx
addq %rcx, %rax
movq 0x8(%rax), %rsi
callq 0x263c0
movq -0x18(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x18(%rbp)
jmp 0x2f2c7
movl -0x4(%rbp), %eax
movl %eax, 0x39feec(%rip) # 0x3cf200
movl -0x4(%rbp), %eax
testl %eax, %eax
jne 0x2f31f
jmp 0x2f31d
jmp 0x2f351
cmpl $0x0, -0x4(%rbp)
jle 0x2f34f
movq 0x1e7c8c(%rip), %rax # 0x216fb8
movq (%rax), %rdi
movl -0x4(%rbp), %edx
leaq 0x837f0(%rip), %rsi # 0xb2b29
movb $0x0, %al
callq 0x26480
movq 0x1e7c71(%rip), %rax # 0x216fb8
movq (%rax), %rdi
callq 0x263a0
jmp 0x2f351
addq $0x20, %rsp
popq %rbp
retq
nopw (%rax,%rax)
| plan:
push rbp
mov rbp, rsp
sub rsp, 20h
mov [rbp+var_4], edi
lea rdi, aMytapConfig; "MYTAP_CONFIG"
call _getenv
mov [rbp+var_10], rax
call start_timer
mov cs:start_time, rax
cmp [rbp+var_10], 0
jz short loc_2F2A4
mov rdi, [rbp+var_10]
lea rsi, aUndoRecordTooB+10h; "big"
call _strcmp
mov cs:skip_big_tests, eax
loc_2F2A4:
mov rax, cs:stdout_ptr
mov rdi, [rax]
xor eax, eax
mov ecx, eax
mov edx, 2
mov rsi, rcx
call _setvbuf
mov [rbp+var_18], 0
loc_2F2C7:
cmp [rbp+var_18], 0Bh
jnb short loc_2F30B
mov rcx, [rbp+var_18]
lea rax, install_signal
shl rcx, 4
add rax, rcx
mov edi, [rax]
mov rcx, [rbp+var_18]
lea rax, install_signal
shl rcx, 4
add rax, rcx
mov rsi, [rax+8]
call _signal
mov rax, [rbp+var_18]
add rax, 1
mov [rbp+var_18], rax
jmp short loc_2F2C7
loc_2F30B:
mov eax, [rbp+var_4]
mov cs:g_test, eax
mov eax, [rbp+var_4]
test eax, eax
jnz short loc_2F31F
jmp short $+2
loc_2F31D:
jmp short loc_2F351
loc_2F31F:
cmp [rbp+var_4], 0
jle short loc_2F34F
mov rax, cs:stdout_ptr
mov rdi, [rax]
mov edx, [rbp+var_4]
lea rsi, a1D; "1..%d\n"
mov al, 0
call _fprintf
mov rax, cs:stdout_ptr
mov rdi, [rax]
call _fflush
loc_2F34F:
jmp short $+2
loc_2F351:
add rsp, 20h
pop rbp
retn
| long long plan(int a1)
{
long long result; // rax
unsigned long long i; // [rsp+8h] [rbp-18h]
long long v3; // [rsp+10h] [rbp-10h]
v3 = getenv("MYTAP_CONFIG");
start_time = start_timer();
if ( v3 )
skip_big_tests = strcmp(v3, "big");
setvbuf(stdout, 0LL, 2LL);
for ( i = 0LL; i < 0xB; ++i )
signal(*((unsigned int *)&install_signal + 4 * i), *((_QWORD *)&install_signal + 2 * i + 1));
g_test = a1;
result = (unsigned int)a1;
if ( a1 > 0 )
{
fprintf(stdout, "1..%d\n", a1);
return fflush(stdout);
}
return result;
}
| plan:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x20
MOV dword ptr [RBP + -0x4],EDI
LEA RDI,[0x1b2b1c]
CALL 0x00126400
MOV qword ptr [RBP + -0x10],RAX
CALL 0x0012f360
MOV qword ptr [0x004cf290],RAX
CMP qword ptr [RBP + -0x10],0x0
JZ 0x0012f2a4
MOV RDI,qword ptr [RBP + -0x10]
LEA RSI,[0x1b8167]
CALL 0x00126460
MOV dword ptr [0x00317010],EAX
LAB_0012f2a4:
MOV RAX,qword ptr [0x00316fb8]
MOV RDI,qword ptr [RAX]
XOR EAX,EAX
MOV ECX,EAX
MOV EDX,0x2
MOV RSI,RCX
CALL 0x00126040
MOV qword ptr [RBP + -0x18],0x0
LAB_0012f2c7:
CMP qword ptr [RBP + -0x18],0xb
JNC 0x0012f30b
MOV RCX,qword ptr [RBP + -0x18]
LEA RAX,[0x317020]
SHL RCX,0x4
ADD RAX,RCX
MOV EDI,dword ptr [RAX]
MOV RCX,qword ptr [RBP + -0x18]
LEA RAX,[0x317020]
SHL RCX,0x4
ADD RAX,RCX
MOV RSI,qword ptr [RAX + 0x8]
CALL 0x001263c0
MOV RAX,qword ptr [RBP + -0x18]
ADD RAX,0x1
MOV qword ptr [RBP + -0x18],RAX
JMP 0x0012f2c7
LAB_0012f30b:
MOV EAX,dword ptr [RBP + -0x4]
MOV dword ptr [0x004cf200],EAX
MOV EAX,dword ptr [RBP + -0x4]
TEST EAX,EAX
JNZ 0x0012f31f
JMP 0x0012f31d
LAB_0012f31d:
JMP 0x0012f351
LAB_0012f31f:
CMP dword ptr [RBP + -0x4],0x0
JLE 0x0012f34f
MOV RAX,qword ptr [0x00316fb8]
MOV RDI,qword ptr [RAX]
MOV EDX,dword ptr [RBP + -0x4]
LEA RSI,[0x1b2b29]
MOV AL,0x0
CALL 0x00126480
MOV RAX,qword ptr [0x00316fb8]
MOV RDI,qword ptr [RAX]
CALL 0x001263a0
LAB_0012f34f:
JMP 0x0012f351
LAB_0012f351:
ADD RSP,0x20
POP RBP
RET
|
void plan(uint param_1)
{
char *__s1;
ulong local_20;
__s1 = getenv("MYTAP_CONFIG");
start_time = start_timer();
if (__s1 != (char *)0x0) {
skip_big_tests = strcmp(__s1,"big");
}
setvbuf(*(FILE **)PTR_stdout_00316fb8,(char *)0x0,2,0);
for (local_20 = 0; local_20 < 0xb; local_20 = local_20 + 1) {
signal(*(int *)(install_signal + local_20 * 0x10),
*(__sighandler_t *)(install_signal + local_20 * 0x10 + 8));
}
g_test = param_1;
if ((param_1 != 0) && (0 < (int)param_1)) {
fprintf(*(FILE **)PTR_stdout_00316fb8,"1..%d\n",(ulong)param_1);
fflush(*(FILE **)PTR_stdout_00316fb8);
}
return;
}
| |
45,229 | mi_unique_hash | eloqsql/storage/myisam/mi_unique.c | ha_checksum mi_unique_hash(MI_UNIQUEDEF *def, const uchar *record)
{
const uchar *pos, *end;
ha_checksum crc= 0;
ulong seed1=0, seed2= 4;
HA_KEYSEG *keyseg;
for (keyseg=def->seg ; keyseg < def->end ; keyseg++)
{
enum ha_base_keytype type=(enum ha_base_keytype) keyseg->type;
uint length=keyseg->length;
if (keyseg->null_bit)
{
if (record[keyseg->null_pos] & keyseg->null_bit)
{
/*
Change crc in a way different from an empty string or 0.
(This is an optimisation; The code will work even if this isn't
done)
*/
crc=((crc << 8) + 511+
(crc >> (8*sizeof(ha_checksum)-8)));
continue;
}
}
pos= record+keyseg->start;
if (keyseg->flag & HA_VAR_LENGTH_PART)
{
uint pack_length= keyseg->bit_start;
uint tmp_length= (pack_length == 1 ? (uint) *(uchar*) pos :
uint2korr(pos));
pos+= pack_length; /* Skip VARCHAR length */
set_if_smaller(length,tmp_length);
}
else if (keyseg->flag & HA_BLOB_PART)
{
uint tmp_length=_mi_calc_blob_length(keyseg->bit_start,pos);
memcpy((char**) &pos, pos+keyseg->bit_start, sizeof(char*));
if (!length || length > tmp_length)
length=tmp_length; /* The whole blob */
}
end= pos+length;
if (type == HA_KEYTYPE_TEXT || type == HA_KEYTYPE_VARTEXT1 ||
type == HA_KEYTYPE_VARTEXT2)
{
my_ci_hash_sort(keyseg->charset,
(const uchar*) pos, length,
&seed1, &seed2);
crc^= seed1;
}
else
while (pos != end)
crc=((crc << 8) +
(((uchar) *(uchar*) pos++))) +
(crc >> (8*sizeof(ha_checksum)-8));
}
return crc;
} | O3 | c | mi_unique_hash:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq $0x0, -0x38(%rbp)
movq $0x4, -0x48(%rbp)
movq 0x8(%rdi), %r13
xorl %r15d, %r15d
movq %rdi, -0x40(%rbp)
cmpq 0x10(%rdi), %r13
jae 0x87848
xorl %r15d, %r15d
movq %rsi, -0x30(%rbp)
movzbl 0x18(%r13), %r14d
movzwl 0x14(%r13), %ebx
movb 0x19(%r13), %al
testb %al, %al
je 0x87786
movl 0xc(%r13), %ecx
testb %al, (%rsi,%rcx)
je 0x87786
roll $0x8, %r15d
addl $0x1ff, %r15d # imm = 0x1FF
jmp 0x87817
movl 0x8(%r13), %r12d
addq %rsi, %r12
movzwl 0x12(%r13), %eax
testb $0x8, %al
jne 0x877c4
testb $0x20, %al
je 0x877e3
movzbl 0x1a(%r13), %edi
movq %r12, %rsi
callq 0x78bfd
movq -0x30(%rbp), %rsi
movzbl 0x1a(%r13), %ecx
movq (%r12,%rcx), %r12
cmpl %eax, %ebx
movl %eax, %ecx
cmovbl %ebx, %ecx
testl %ebx, %ebx
cmovel %eax, %ecx
movl %ecx, %ebx
jmp 0x877e3
movzbl 0x1a(%r13), %eax
cmpq $0x1, %rax
jne 0x877d6
movzbl (%r12), %ecx
jmp 0x877db
movzwl (%r12), %ecx
addq %rax, %r12
cmpl %ebx, %ecx
cmovbl %ecx, %ebx
movl %ebx, %edx
cmpl $0x11, %r14d
ja 0x8782b
movl $0x28002, %eax # imm = 0x28002
btl %r14d, %eax
jae 0x8782b
movq (%r13), %rdi
movq 0xc0(%rdi), %rax
movq %r12, %rsi
leaq -0x38(%rbp), %rcx
leaq -0x48(%rbp), %r8
callq *0x50(%rax)
movq -0x30(%rbp), %rsi
xorl -0x38(%rbp), %r15d
addq $0x20, %r13
movq -0x40(%rbp), %rax
cmpq 0x10(%rax), %r13
jb 0x8775b
jmp 0x87848
testq %rdx, %rdx
je 0x87817
xorl %eax, %eax
roll $0x8, %r15d
movzbl (%r12,%rax), %ecx
addl %ecx, %r15d
incq %rax
cmpq %rax, %rdx
jne 0x87832
jmp 0x87817
movl %r15d, %eax
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
| mi_unique_hash:
push rbp
mov rbp, rsp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 28h
mov [rbp+var_38], 0
mov [rbp+var_48], 4
mov r13, [rdi+8]
xor r15d, r15d
mov [rbp+var_40], rdi
cmp r13, [rdi+10h]
jnb loc_87848
xor r15d, r15d
mov [rbp+var_30], rsi
loc_8775B:
movzx r14d, byte ptr [r13+18h]
movzx ebx, word ptr [r13+14h]
mov al, [r13+19h]
test al, al
jz short loc_87786
mov ecx, [r13+0Ch]
test [rsi+rcx], al
jz short loc_87786
rol r15d, 8
add r15d, 1FFh
jmp loc_87817
loc_87786:
mov r12d, [r13+8]
add r12, rsi
movzx eax, word ptr [r13+12h]
test al, 8
jnz short loc_877C4
test al, 20h
jz short loc_877E3
movzx edi, byte ptr [r13+1Ah]
mov rsi, r12
call _mi_calc_blob_length
mov rsi, [rbp+var_30]
movzx ecx, byte ptr [r13+1Ah]
mov r12, [r12+rcx]
cmp ebx, eax
mov ecx, eax
cmovb ecx, ebx
test ebx, ebx
cmovz ecx, eax
mov ebx, ecx
jmp short loc_877E3
loc_877C4:
movzx eax, byte ptr [r13+1Ah]
cmp rax, 1
jnz short loc_877D6
movzx ecx, byte ptr [r12]
jmp short loc_877DB
loc_877D6:
movzx ecx, word ptr [r12]
loc_877DB:
add r12, rax
cmp ecx, ebx
cmovb ebx, ecx
loc_877E3:
mov edx, ebx
cmp r14d, 11h
ja short loc_8782B
mov eax, 28002h
bt eax, r14d
jnb short loc_8782B
mov rdi, [r13+0]
mov rax, [rdi+0C0h]
mov rsi, r12
lea rcx, [rbp+var_38]
lea r8, [rbp+var_48]
call qword ptr [rax+50h]
mov rsi, [rbp+var_30]
xor r15d, dword ptr [rbp+var_38]
loc_87817:
add r13, 20h ; ' '
mov rax, [rbp+var_40]
cmp r13, [rax+10h]
jb loc_8775B
jmp short loc_87848
loc_8782B:
test rdx, rdx
jz short loc_87817
xor eax, eax
loc_87832:
rol r15d, 8
movzx ecx, byte ptr [r12+rax]
add r15d, ecx
inc rax
cmp rdx, rax
jnz short loc_87832
jmp short loc_87817
loc_87848:
mov eax, r15d
add rsp, 28h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
| long long mi_unique_hash(long long a1, long long a2)
{
_QWORD *v2; // r13
unsigned int v3; // r15d
unsigned int v4; // r14d
unsigned int v5; // ebx
unsigned __int8 v6; // al
unsigned __int8 *v7; // r12
__int16 v8; // ax
unsigned int v9; // eax
unsigned int v10; // ecx
long long v11; // rax
unsigned int v12; // ecx
int v13; // eax
long long i; // rax
long long v16; // [rsp+8h] [rbp-48h] BYREF
long long v17; // [rsp+10h] [rbp-40h]
long long v18; // [rsp+18h] [rbp-38h] BYREF
long long v19; // [rsp+20h] [rbp-30h]
v18 = 0LL;
v16 = 4LL;
v2 = *(_QWORD **)(a1 + 8);
v3 = 0;
v17 = a1;
if ( (unsigned long long)v2 < *(_QWORD *)(a1 + 16) )
{
v3 = 0;
v19 = a2;
do
{
v4 = *((unsigned __int8 *)v2 + 24);
v5 = *((unsigned __int16 *)v2 + 10);
v6 = *((_BYTE *)v2 + 25);
if ( v6 && (v6 & *(_BYTE *)(a2 + *((unsigned int *)v2 + 3))) != 0 )
{
v3 = __ROL4__(v3, 8) + 511;
}
else
{
v7 = (unsigned __int8 *)(a2 + *((unsigned int *)v2 + 2));
v8 = *((_WORD *)v2 + 9);
if ( (v8 & 8) != 0 )
{
v11 = *((unsigned __int8 *)v2 + 26);
if ( v11 == 1 )
v12 = *v7;
else
v12 = *(unsigned __int16 *)v7;
v7 += v11;
if ( v12 < v5 )
v5 = v12;
}
else if ( (v8 & 0x20) != 0 )
{
v9 = mi_calc_blob_length(*((unsigned __int8 *)v2 + 26), (unsigned __int8 *)(a2 + *((unsigned int *)v2 + 2)));
a2 = v19;
v7 = *(unsigned __int8 **)&v7[*((unsigned __int8 *)v2 + 26)];
v10 = v9;
if ( v5 < v9 )
v10 = v5;
if ( !v5 )
v10 = v9;
v5 = v10;
}
if ( v4 <= 0x11 && (v13 = 163842, _bittest(&v13, v4)) )
{
(*(void ( **)(_QWORD, unsigned __int8 *, _QWORD, long long *, long long *))(*(_QWORD *)(*v2 + 192LL)
+ 80LL))(
*v2,
v7,
v5,
&v18,
&v16);
a2 = v19;
v3 ^= v18;
}
else if ( v5 )
{
for ( i = 0LL; i != v5; v3 = v7[i++] + __ROL4__(v3, 8) )
;
}
}
v2 += 4;
}
while ( (unsigned long long)v2 < *(_QWORD *)(v17 + 16) );
}
return v3;
}
| mi_unique_hash:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x28
MOV qword ptr [RBP + -0x38],0x0
MOV qword ptr [RBP + -0x48],0x4
MOV R13,qword ptr [RDI + 0x8]
XOR R15D,R15D
MOV qword ptr [RBP + -0x40],RDI
CMP R13,qword ptr [RDI + 0x10]
JNC 0x00187848
XOR R15D,R15D
MOV qword ptr [RBP + -0x30],RSI
LAB_0018775b:
MOVZX R14D,byte ptr [R13 + 0x18]
MOVZX EBX,word ptr [R13 + 0x14]
MOV AL,byte ptr [R13 + 0x19]
TEST AL,AL
JZ 0x00187786
MOV ECX,dword ptr [R13 + 0xc]
TEST byte ptr [RSI + RCX*0x1],AL
JZ 0x00187786
ROL R15D,0x8
ADD R15D,0x1ff
JMP 0x00187817
LAB_00187786:
MOV R12D,dword ptr [R13 + 0x8]
ADD R12,RSI
MOVZX EAX,word ptr [R13 + 0x12]
TEST AL,0x8
JNZ 0x001877c4
TEST AL,0x20
JZ 0x001877e3
MOVZX EDI,byte ptr [R13 + 0x1a]
MOV RSI,R12
CALL 0x00178bfd
MOV RSI,qword ptr [RBP + -0x30]
MOVZX ECX,byte ptr [R13 + 0x1a]
MOV R12,qword ptr [R12 + RCX*0x1]
CMP EBX,EAX
MOV ECX,EAX
CMOVC ECX,EBX
TEST EBX,EBX
CMOVZ ECX,EAX
MOV EBX,ECX
JMP 0x001877e3
LAB_001877c4:
MOVZX EAX,byte ptr [R13 + 0x1a]
CMP RAX,0x1
JNZ 0x001877d6
MOVZX ECX,byte ptr [R12]
JMP 0x001877db
LAB_001877d6:
MOVZX ECX,word ptr [R12]
LAB_001877db:
ADD R12,RAX
CMP ECX,EBX
CMOVC EBX,ECX
LAB_001877e3:
MOV EDX,EBX
CMP R14D,0x11
JA 0x0018782b
MOV EAX,0x28002
BT EAX,R14D
JNC 0x0018782b
MOV RDI,qword ptr [R13]
MOV RAX,qword ptr [RDI + 0xc0]
MOV RSI,R12
LEA RCX,[RBP + -0x38]
LEA R8,[RBP + -0x48]
CALL qword ptr [RAX + 0x50]
MOV RSI,qword ptr [RBP + -0x30]
XOR R15D,dword ptr [RBP + -0x38]
LAB_00187817:
ADD R13,0x20
MOV RAX,qword ptr [RBP + -0x40]
CMP R13,qword ptr [RAX + 0x10]
JC 0x0018775b
JMP 0x00187848
LAB_0018782b:
TEST RDX,RDX
JZ 0x00187817
XOR EAX,EAX
LAB_00187832:
ROL R15D,0x8
MOVZX ECX,byte ptr [R12 + RAX*0x1]
ADD R15D,ECX
INC RAX
CMP RDX,RAX
JNZ 0x00187832
JMP 0x00187817
LAB_00187848:
MOV EAX,R15D
ADD RSP,0x28
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
|
uint mi_unique_hash(long param_1,long param_2)
{
byte bVar1;
ushort uVar2;
uint uVar3;
ulong uVar4;
uint uVar5;
ulong uVar6;
ushort *puVar7;
long *plVar8;
uint uVar9;
int8 local_50;
long local_48;
int8 local_40;
long local_38;
local_40 = 0;
local_50 = 4;
plVar8 = *(long **)(param_1 + 8);
uVar9 = 0;
if (plVar8 < *(long **)(param_1 + 0x10)) {
uVar9 = 0;
local_48 = param_1;
local_38 = param_2;
do {
bVar1 = *(byte *)(plVar8 + 3);
uVar2 = *(ushort *)((long)plVar8 + 0x14);
uVar6 = (ulong)uVar2;
if ((*(byte *)((long)plVar8 + 0x19) == 0) ||
((*(byte *)(param_2 + (ulong)*(uint *)((long)plVar8 + 0xc)) &
*(byte *)((long)plVar8 + 0x19)) == 0)) {
puVar7 = (ushort *)((ulong)*(uint *)(plVar8 + 1) + param_2);
if ((*(ushort *)((long)plVar8 + 0x12) & 8) == 0) {
if ((*(ushort *)((long)plVar8 + 0x12) & 0x20) != 0) {
uVar3 = _mi_calc_blob_length(*(int1 *)((long)plVar8 + 0x1a),puVar7);
puVar7 = *(ushort **)((long)puVar7 + (ulong)*(byte *)((long)plVar8 + 0x1a));
uVar5 = uVar3;
if (uVar2 < uVar3) {
uVar5 = (uint)uVar2;
}
if (uVar2 == 0) {
uVar5 = uVar3;
}
uVar6 = (ulong)uVar5;
param_2 = local_38;
}
}
else {
if ((ulong)*(byte *)((long)plVar8 + 0x1a) == 1) {
uVar5 = (uint)(byte)*puVar7;
}
else {
uVar5 = (uint)*puVar7;
}
puVar7 = (ushort *)((long)puVar7 + (ulong)*(byte *)((long)plVar8 + 0x1a));
if (uVar5 < uVar2) {
uVar6 = (ulong)uVar5;
}
}
if ((bVar1 < 0x12) && ((0x28002U >> (bVar1 & 0x1f) & 1) != 0)) {
(**(code **)(*(long *)(*plVar8 + 0xc0) + 0x50))(*plVar8,puVar7,uVar6,&local_40,&local_50);
uVar9 = uVar9 ^ (uint)local_40;
param_2 = local_38;
}
else if (uVar6 != 0) {
uVar4 = 0;
do {
uVar9 = (uVar9 << 8 | uVar9 >> 0x18) + (uint)*(byte *)((long)puVar7 + uVar4);
uVar4 = uVar4 + 1;
} while (uVar6 != uVar4);
}
}
else {
uVar9 = (uVar9 << 8 | uVar9 >> 0x18) + 0x1ff;
}
plVar8 = plVar8 + 4;
} while (plVar8 < *(long **)(local_48 + 0x10));
}
return uVar9;
}
| |
45,230 | minja::Value::Value(std::shared_ptr<std::function<minja::Value (std::shared_ptr<minja::Context> const&, minja::ArgumentsValue&)>> const&) | llama.cpp/common/minja/minja.hpp | Value(const std::shared_ptr<CallableType> & callable) : object_(std::make_shared<ObjectType>()), callable_(callable) {} | O3 | cpp | minja::Value::Value(std::shared_ptr<std::function<minja::Value (std::shared_ptr<minja::Context> const&, minja::ArgumentsValue&)>> const&):
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %r14
movq %rdi, %rbx
xorps %xmm0, %xmm0
movups %xmm0, 0x10(%rdi)
movups %xmm0, (%rdi)
movl $0x30, %edi
callq 0x20200
movabsq $0x100000001, %rcx # imm = 0x100000001
movq %rcx, 0x8(%rax)
leaq 0x9383b(%rip), %rcx # 0x15f430
addq $0x10, %rcx
movq %rcx, (%rax)
movq %rax, %rcx
addq $0x10, %rcx
xorps %xmm0, %xmm0
movups %xmm0, 0x10(%rax)
movq $0x0, 0x20(%rax)
movq %rax, 0x28(%rbx)
movq %rcx, 0x20(%rbx)
movq (%r14), %rax
movq %rax, 0x30(%rbx)
movq 0x8(%r14), %rax
movq %rax, 0x38(%rbx)
testq %rax, %rax
je 0xcbc43
movq 0x95363(%rip), %rcx # 0x160f98
cmpb $0x0, (%rcx)
je 0xcbc3f
incl 0x8(%rax)
jmp 0xcbc43
lock
incl 0x8(%rax)
leaq 0x40(%rbx), %r14
movb $0x0, 0x40(%rbx)
movq $0x0, 0x48(%rbx)
movq %r14, %rdi
movl $0x1, %esi
callq 0x83b2c
movq %r14, %rdi
movl $0x1, %esi
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0x83b2c
movq %rax, %r14
leaq 0x18(%rbx), %rdi
callq 0x6f416
movq %rbx, %rdi
callq 0xbc09a
movq %r14, %rdi
callq 0x20ab0
| _ZN5minja5ValueC2ERKSt10shared_ptrISt8functionIFS0_RKS1_INS_7ContextEERNS_14ArgumentsValueEEEE:
push r14
push rbx
push rax
mov r14, rsi
mov rbx, rdi
xorps xmm0, xmm0
movups xmmword ptr [rdi+10h], xmm0
movups xmmword ptr [rdi], xmm0
mov edi, 30h ; '0'; unsigned __int64
call __Znwm; operator new(ulong)
mov rcx, 100000001h
mov [rax+8], rcx
lea rcx, _ZTVSt23_Sp_counted_ptr_inplaceIN8nlohmann16json_abi_v3_11_311ordered_mapINS1_10basic_jsonIS2_St6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES4_IhSaIhEEvEEN5minja5ValueESt4lessISE_ESaISt4pairIKSE_SG_EEEESaIvELN9__gnu_cxx12_Lock_policyE2EE; `vtable for'std::_Sp_counted_ptr_inplace<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>>>,std::allocator<void>,(__gnu_cxx::_Lock_policy)2>
add rcx, 10h
mov [rax], rcx
mov rcx, rax
add rcx, 10h
xorps xmm0, xmm0
movups xmmword ptr [rax+10h], xmm0
mov qword ptr [rax+20h], 0
mov [rbx+28h], rax
mov [rbx+20h], rcx
mov rax, [r14]
mov [rbx+30h], rax
mov rax, [r14+8]
mov [rbx+38h], rax
test rax, rax
jz short loc_CBC43
mov rcx, cs:_ZTISt19_Sp_make_shared_tag; `typeinfo for'std::_Sp_make_shared_tag
cmp byte ptr [rcx], 0
jz short loc_CBC3F
inc dword ptr [rax+8]
jmp short loc_CBC43
loc_CBC3F:
lock inc dword ptr [rax+8]
loc_CBC43:
lea r14, [rbx+40h]
mov byte ptr [rbx+40h], 0
mov qword ptr [rbx+48h], 0
mov rdi, r14
mov esi, 1
call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE16assert_invariantEb; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::assert_invariant(bool)
mov rdi, r14
mov esi, 1
add rsp, 8
pop rbx
pop r14
jmp _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 r14, rax
lea rdi, [rbx+18h]
call _ZNSt14__shared_countILN9__gnu_cxx12_Lock_policyE2EED2Ev; std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count()
mov rdi, rbx
call _ZNSt23enable_shared_from_thisIN5minja5ValueEED2Ev; std::enable_shared_from_this<minja::Value>::~enable_shared_from_this()
mov rdi, r14
call __Unwind_Resume
| long long minja::Value::Value(long long a1, _QWORD *a2)
{
long long v2; // rax
long long result; // rax
*(_OWORD *)(a1 + 16) = 0LL;
*(_OWORD *)a1 = 0LL;
v2 = operator new(0x30uLL);
*(_QWORD *)(v2 + 8) = 0x100000001LL;
*(_QWORD *)v2 = &`vtable for'std::_Sp_counted_ptr_inplace<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>>>,std::allocator<void>,(__gnu_cxx::_Lock_policy)2>
+ 2;
*(_OWORD *)(v2 + 16) = 0LL;
*(_QWORD *)(v2 + 32) = 0LL;
*(_QWORD *)(a1 + 40) = v2;
*(_QWORD *)(a1 + 32) = v2 + 16;
*(_QWORD *)(a1 + 48) = *a2;
result = a2[1];
*(_QWORD *)(a1 + 56) = result;
if ( result )
{
if ( _libc_single_threaded )
++*(_DWORD *)(result + 8);
else
_InterlockedIncrement((volatile signed __int32 *)(result + 8));
}
*(_BYTE *)(a1 + 64) = 0;
*(_QWORD *)(a1 + 72) = 0LL;
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::assert_invariant((char *)(a1 + 64));
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 + 64));
return result;
}
| Value:
PUSH R14
PUSH RBX
PUSH RAX
MOV R14,RSI
MOV RBX,RDI
XORPS XMM0,XMM0
MOVUPS xmmword ptr [RDI + 0x10],XMM0
MOVUPS xmmword ptr [RDI],XMM0
LAB_001cbbd6:
MOV EDI,0x30
CALL 0x00120200
LAB_001cbbe0:
MOV RCX,0x100000001
MOV qword ptr [RAX + 0x8],RCX
LEA RCX,[0x25f430]
ADD RCX,0x10
MOV qword ptr [RAX],RCX
MOV RCX,RAX
ADD RCX,0x10
XORPS XMM0,XMM0
MOVUPS xmmword ptr [RAX + 0x10],XMM0
MOV qword ptr [RAX + 0x20],0x0
MOV qword ptr [RBX + 0x28],RAX
MOV qword ptr [RBX + 0x20],RCX
MOV RAX,qword ptr [R14]
MOV qword ptr [RBX + 0x30],RAX
MOV RAX,qword ptr [R14 + 0x8]
MOV qword ptr [RBX + 0x38],RAX
TEST RAX,RAX
JZ 0x001cbc43
MOV RCX,qword ptr [0x00260f98]
CMP byte ptr [RCX],0x0
JZ 0x001cbc3f
INC dword ptr [RAX + 0x8]
JMP 0x001cbc43
LAB_001cbc3f:
INC.LOCK dword ptr [RAX + 0x8]
LAB_001cbc43:
LEA R14,[RBX + 0x40]
MOV byte ptr [RBX + 0x40],0x0
MOV qword ptr [RBX + 0x48],0x0
MOV RDI,R14
MOV ESI,0x1
CALL 0x00183b2c
MOV RDI,R14
MOV ESI,0x1
ADD RSP,0x8
POP RBX
POP R14
JMP 0x00183b2c
|
/* minja::Value::Value(std::shared_ptr<std::function<minja::Value (std::shared_ptr<minja::Context>
const&, minja::ArgumentsValue&)> > const&) */
void __thiscall minja::Value::Value(Value *this,shared_ptr *param_1)
{
long lVar1;
int8 *puVar2;
bool bVar3;
*(int8 *)(this + 0x10) = 0;
*(int8 *)(this + 0x18) = 0;
*(int8 *)this = 0;
*(int8 *)(this + 8) = 0;
/* try { // try from 001cbbd6 to 001cbbdf has its CatchHandler @ 001cbc74 */
puVar2 = (int8 *)operator_new(0x30);
puVar2[1] = 0x100000001;
*puVar2 = &PTR___Sp_counted_base_0025f440;
puVar2[2] = 0;
puVar2[3] = 0;
puVar2[4] = 0;
*(int8 **)(this + 0x28) = puVar2;
*(int8 **)(this + 0x20) = puVar2 + 2;
*(int8 *)(this + 0x30) = *(int8 *)param_1;
lVar1 = *(long *)(param_1 + 8);
*(long *)(this + 0x38) = lVar1;
if (lVar1 != 0) {
if (*PTR___libc_single_threaded_00260f98 == '\0') {
LOCK();
*(int *)(lVar1 + 8) = *(int *)(lVar1 + 8) + 1;
UNLOCK();
}
else {
*(int *)(lVar1 + 8) = *(int *)(lVar1 + 8) + 1;
}
}
bVar3 = (bool)((char)this + '@');
this[0x40] = (Value)0x0;
*(int8 *)(this + 0x48) = 0;
nlohmann::json_abi_v3_11_3::
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::assert_invariant(bVar3);
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(bVar3);
return;
}
| |
45,231 | psi_prlock_rdlock | eloqsql/mysys/my_thr_init.c | ATTRIBUTE_COLD
int psi_prlock_rdlock(mysql_prlock_t *that, const char *file, uint line)
{
PSI_rwlock_locker_state state;
PSI_rwlock_locker *locker= PSI_RWLOCK_CALL(start_rwlock_rdwait)
(&state, that->m_psi, PSI_RWLOCK_READLOCK, file, line);
int result= rw_pr_rdlock(&that->m_prlock);
if (locker)
PSI_RWLOCK_CALL(end_rwlock_rdwait)(locker, result);
return result;
} | O0 | c | psi_prlock_rdlock:
pushq %rbp
movq %rsp, %rbp
subq $0x60, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movl %edx, -0x14(%rbp)
leaq 0x1c965e(%rip), %rax # 0x2c00b8
movq (%rax), %rax
movq 0x1a0(%rax), %rax
movq -0x8(%rbp), %rcx
movq 0x68(%rcx), %rsi
movq -0x10(%rbp), %rcx
movl -0x14(%rbp), %r8d
leaq -0x48(%rbp), %rdi
xorl %edx, %edx
callq *%rax
movq %rax, -0x50(%rbp)
movq -0x8(%rbp), %rdi
callq 0xfa250
movl %eax, -0x54(%rbp)
cmpq $0x0, -0x50(%rbp)
je 0xf6aad
leaq 0x1c961e(%rip), %rax # 0x2c00b8
movq (%rax), %rax
movq 0x1a8(%rax), %rax
movq -0x50(%rbp), %rdi
movl -0x54(%rbp), %esi
callq *%rax
movl -0x54(%rbp), %eax
addq $0x60, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
| psi_prlock_rdlock:
push rbp
mov rbp, rsp
sub rsp, 60h
mov [rbp+var_8], rdi
mov [rbp+var_10], rsi
mov [rbp+var_14], edx
lea rax, PSI_server
mov rax, [rax]
mov rax, [rax+1A0h]
mov rcx, [rbp+var_8]
mov rsi, [rcx+68h]
mov rcx, [rbp+var_10]
mov r8d, [rbp+var_14]
lea rdi, [rbp+var_48]
xor edx, edx
call rax
mov [rbp+var_50], rax
mov rdi, [rbp+var_8]
call rw_pr_rdlock
mov [rbp+var_54], eax
cmp [rbp+var_50], 0
jz short loc_F6AAD
lea rax, PSI_server
mov rax, [rax]
mov rax, [rax+1A8h]
mov rdi, [rbp+var_50]
mov esi, [rbp+var_54]
call rax
loc_F6AAD:
mov eax, [rbp+var_54]
add rsp, 60h
pop rbp
retn
| long long psi_prlock_rdlock(long long a1, long long a2, unsigned int a3)
{
unsigned int v4; // [rsp+Ch] [rbp-54h]
long long v5; // [rsp+10h] [rbp-50h]
_BYTE v6[52]; // [rsp+18h] [rbp-48h] BYREF
unsigned int v7; // [rsp+4Ch] [rbp-14h]
long long v8; // [rsp+50h] [rbp-10h]
long long v9; // [rsp+58h] [rbp-8h]
v9 = a1;
v8 = a2;
v7 = a3;
v5 = ((long long ( *)(_BYTE *, _QWORD, _QWORD, long long, _QWORD))PSI_server[52])(
v6,
*(_QWORD *)(a1 + 104),
0LL,
a2,
a3);
v4 = rw_pr_rdlock(v9);
if ( v5 )
((void ( *)(long long, _QWORD))PSI_server[53])(v5, v4);
return v4;
}
| psi_prlock_rdlock:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x60
MOV qword ptr [RBP + -0x8],RDI
MOV qword ptr [RBP + -0x10],RSI
MOV dword ptr [RBP + -0x14],EDX
LEA RAX,[0x3c00b8]
MOV RAX,qword ptr [RAX]
MOV RAX,qword ptr [RAX + 0x1a0]
MOV RCX,qword ptr [RBP + -0x8]
MOV RSI,qword ptr [RCX + 0x68]
MOV RCX,qword ptr [RBP + -0x10]
MOV R8D,dword ptr [RBP + -0x14]
LEA RDI,[RBP + -0x48]
XOR EDX,EDX
CALL RAX
MOV qword ptr [RBP + -0x50],RAX
MOV RDI,qword ptr [RBP + -0x8]
CALL 0x001fa250
MOV dword ptr [RBP + -0x54],EAX
CMP qword ptr [RBP + -0x50],0x0
JZ 0x001f6aad
LEA RAX,[0x3c00b8]
MOV RAX,qword ptr [RAX]
MOV RAX,qword ptr [RAX + 0x1a8]
MOV RDI,qword ptr [RBP + -0x50]
MOV ESI,dword ptr [RBP + -0x54]
CALL RAX
LAB_001f6aad:
MOV EAX,dword ptr [RBP + -0x54]
ADD RSP,0x60
POP RBP
RET
|
int4 psi_prlock_rdlock(long param_1,int8 param_2,int4 param_3)
{
int4 uVar1;
long lVar2;
int1 local_50 [52];
int4 local_1c;
int8 local_18;
long local_10;
local_1c = param_3;
local_18 = param_2;
local_10 = param_1;
lVar2 = (**(code **)(PSI_server + 0x1a0))
(local_50,*(int8 *)(param_1 + 0x68),0,param_2,param_3);
uVar1 = rw_pr_rdlock(local_10);
if (lVar2 != 0) {
(**(code **)(PSI_server + 0x1a8))(lVar2,uVar1);
}
return uVar1;
}
| |
45,232 | Vector3Reject | csit-sgu[P]mit-game-2025_1/Libraries/raylib/src/raymath.h | RMAPI Vector3 Vector3Reject(Vector3 v1, Vector3 v2)
{
Vector3 result = { 0 };
float v1dv2 = (v1.x*v2.x + v1.y*v2.y + v1.z*v2.z);
float v2dv2 = (v2.x*v2.x + v2.y*v2.y + v2.z*v2.z);
float mag = v1dv2/v2dv2;
result.x = v1.x - (v2.x*mag);
result.y = v1.y - (v2.y*mag);
result.z = v1.z - (v2.z*mag);
return result;
} | O2 | c | Vector3Reject:
movaps %xmm2, %xmm4
shufps $0x55, %xmm2, %xmm4 # xmm4 = xmm4[1,1],xmm2[1,1]
movaps %xmm2, %xmm5
shufps $0x11, %xmm0, %xmm5 # xmm5 = xmm5[1,0],xmm0[1,0]
shufps $0xe2, %xmm0, %xmm5 # xmm5 = xmm5[2,0],xmm0[2,3]
mulps %xmm4, %xmm5
movaps %xmm2, %xmm4
shufps $0x0, %xmm2, %xmm4 # xmm4 = xmm4[0,0],xmm2[0,0]
movaps %xmm0, %xmm6
unpcklps %xmm2, %xmm6 # xmm6 = xmm6[0],xmm2[0],xmm6[1],xmm2[1]
mulps %xmm4, %xmm6
addps %xmm5, %xmm6
movaps %xmm3, %xmm4
shufps $0x0, %xmm3, %xmm4 # xmm4 = xmm4[0,0],xmm3[0,0]
movaps %xmm3, %xmm5
movlhps %xmm1, %xmm5 # xmm5 = xmm5[0],xmm1[0]
shufps $0xe2, %xmm1, %xmm5 # xmm5 = xmm5[2,0],xmm1[2,3]
mulps %xmm4, %xmm5
addps %xmm6, %xmm5
movaps %xmm5, %xmm4
shufps $0x55, %xmm5, %xmm4 # xmm4 = xmm4[1,1],xmm5[1,1]
divss %xmm4, %xmm5
mulss %xmm5, %xmm3
shufps $0x0, %xmm5, %xmm5 # xmm5 = xmm5[0,0,0,0]
mulps %xmm2, %xmm5
subps %xmm5, %xmm0
subss %xmm3, %xmm1
retq
| Vector3Reject:
movaps xmm4, xmm2
shufps xmm4, xmm2, 55h ; 'U'
movaps xmm5, xmm2
shufps xmm5, xmm0, 11h
shufps xmm5, xmm0, 0E2h
mulps xmm5, xmm4
movaps xmm4, xmm2
shufps xmm4, xmm2, 0
movaps xmm6, xmm0
unpcklps xmm6, xmm2
mulps xmm6, xmm4
addps xmm6, xmm5
movaps xmm4, xmm3
shufps xmm4, xmm3, 0
movaps xmm5, xmm3
movlhps xmm5, xmm1
shufps xmm5, xmm1, 0E2h
mulps xmm5, xmm4
addps xmm5, xmm6
movaps xmm4, xmm5
shufps xmm4, xmm5, 55h ; 'U'
divss xmm5, xmm4
mulss xmm3, xmm5
shufps xmm5, xmm5, 0
mulps xmm5, xmm2
subps xmm0, xmm5
subss xmm1, xmm3
retn
| __m128 Vector3Reject(__m128 a1, __m128 a2, __m128 a3, __m128 a4)
{
__m128 v4; // xmm5
v4 = _mm_add_ps(
_mm_mul_ps(_mm_shuffle_ps(_mm_movelh_ps(a4, a2), a2, 226), _mm_shuffle_ps(a4, a4, 0)),
_mm_add_ps(
_mm_mul_ps(_mm_unpacklo_ps(a1, a3), _mm_shuffle_ps(a3, a3, 0)),
_mm_mul_ps(_mm_shuffle_ps(_mm_shuffle_ps(a3, a1, 17), a1, 226), _mm_shuffle_ps(a3, a3, 85))));
v4.m128_f32[0] = v4.m128_f32[0] / _mm_shuffle_ps(v4, v4, 85).m128_f32[0];
return _mm_sub_ps(a1, _mm_mul_ps(_mm_shuffle_ps(v4, v4, 0), a3));
}
| Vector3Reject:
MOVAPS XMM4,XMM2
SHUFPS XMM4,XMM2,0x55
MOVAPS XMM5,XMM2
SHUFPS XMM5,XMM0,0x11
SHUFPS XMM5,XMM0,0xe2
MULPS XMM5,XMM4
MOVAPS XMM4,XMM2
SHUFPS XMM4,XMM2,0x0
MOVAPS XMM6,XMM0
UNPCKLPS XMM6,XMM2
MULPS XMM6,XMM4
ADDPS XMM6,XMM5
MOVAPS XMM4,XMM3
SHUFPS XMM4,XMM3,0x0
MOVAPS XMM5,XMM3
MOVLHPS XMM5,XMM1
SHUFPS XMM5,XMM1,0xe2
MULPS XMM5,XMM4
ADDPS XMM5,XMM6
MOVAPS XMM4,XMM5
SHUFPS XMM4,XMM5,0x55
DIVSS XMM5,XMM4
MULSS XMM3,XMM5
SHUFPS XMM5,XMM5,0x0
MULPS XMM5,XMM2
SUBPS XMM0,XMM5
SUBSS XMM1,XMM3
RET
|
int8 Vector3Reject(int8 param_1,float param_2,int8 param_3,float param_4)
{
float fVar1;
float fVar2;
float fVar3;
float fVar4;
fVar3 = (float)((ulong)param_3 >> 0x20);
fVar2 = (float)param_3;
fVar1 = (float)((ulong)param_1 >> 0x20);
fVar4 = (param_2 * param_4 + (float)param_1 * fVar2 + fVar1 * fVar3) /
(param_4 * param_4 + fVar2 * fVar2 + fVar3 * fVar3);
return CONCAT44(fVar1 - fVar4 * fVar3,(float)param_1 - fVar4 * fVar2);
}
| |
45,233 | pvio_socket_close | eloqsql/libmariadb/plugins/pvio/pvio_socket.c | my_bool pvio_socket_close(MARIADB_PVIO *pvio)
{
struct st_pvio_socket *csock= NULL;
int r= 0;
if (!pvio)
return 1;
if (pvio->data)
{
csock= (struct st_pvio_socket *)pvio->data;
if (csock && csock->socket != INVALID_SOCKET)
{
r= closesocket(csock->socket);
csock->socket= INVALID_SOCKET;
}
free((gptr)pvio->data);
pvio->data= NULL;
}
return r;
} | O0 | c | pvio_socket_close:
pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movq %rdi, -0x10(%rbp)
movq $0x0, -0x18(%rbp)
movl $0x0, -0x1c(%rbp)
cmpq $0x0, -0x10(%rbp)
jne 0x5c8f8
movb $0x1, -0x1(%rbp)
jmp 0x5c952
movq -0x10(%rbp), %rax
cmpq $0x0, (%rax)
je 0x5c94c
movq -0x10(%rbp), %rax
movq (%rax), %rax
movq %rax, -0x18(%rbp)
cmpq $0x0, -0x18(%rbp)
je 0x5c935
movq -0x18(%rbp), %rax
cmpl $-0x1, (%rax)
je 0x5c935
movq -0x18(%rbp), %rax
movl (%rax), %edi
callq 0x14850
movl %eax, -0x1c(%rbp)
movq -0x18(%rbp), %rax
movl $0xffffffff, (%rax) # imm = 0xFFFFFFFF
movq -0x10(%rbp), %rax
movq (%rax), %rdi
callq 0x14530
movq -0x10(%rbp), %rax
movq $0x0, (%rax)
movl -0x1c(%rbp), %eax
movb %al, -0x1(%rbp)
movb -0x1(%rbp), %al
addq $0x20, %rsp
popq %rbp
retq
nopl (%rax,%rax)
| pvio_socket_close:
push rbp
mov rbp, rsp
sub rsp, 20h
mov [rbp+var_10], rdi
mov [rbp+var_18], 0
mov [rbp+var_1C], 0
cmp [rbp+var_10], 0
jnz short loc_5C8F8
mov [rbp+var_1], 1
jmp short loc_5C952
loc_5C8F8:
mov rax, [rbp+var_10]
cmp qword ptr [rax], 0
jz short loc_5C94C
mov rax, [rbp+var_10]
mov rax, [rax]
mov [rbp+var_18], rax
cmp [rbp+var_18], 0
jz short loc_5C935
mov rax, [rbp+var_18]
cmp dword ptr [rax], 0FFFFFFFFh
jz short loc_5C935
mov rax, [rbp+var_18]
mov edi, [rax]
call _close
mov [rbp+var_1C], eax
mov rax, [rbp+var_18]
mov dword ptr [rax], 0FFFFFFFFh
loc_5C935:
mov rax, [rbp+var_10]
mov rdi, [rax]
call _free
mov rax, [rbp+var_10]
mov qword ptr [rax], 0
loc_5C94C:
mov eax, [rbp+var_1C]
mov [rbp+var_1], al
loc_5C952:
mov al, [rbp+var_1]
add rsp, 20h
pop rbp
retn
| char pvio_socket_close(_QWORD *a1)
{
char v2; // [rsp+4h] [rbp-1Ch]
_DWORD *v3; // [rsp+8h] [rbp-18h]
v2 = 0;
if ( !a1 )
return 1;
if ( *a1 )
{
v3 = (_DWORD *)*a1;
if ( *(_DWORD *)*a1 != -1 )
{
v2 = close((unsigned int)*v3);
*v3 = -1;
}
free(*a1);
*a1 = 0LL;
}
return v2;
}
| pvio_socket_close:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x20
MOV qword ptr [RBP + -0x10],RDI
MOV qword ptr [RBP + -0x18],0x0
MOV dword ptr [RBP + -0x1c],0x0
CMP qword ptr [RBP + -0x10],0x0
JNZ 0x0015c8f8
MOV byte ptr [RBP + -0x1],0x1
JMP 0x0015c952
LAB_0015c8f8:
MOV RAX,qword ptr [RBP + -0x10]
CMP qword ptr [RAX],0x0
JZ 0x0015c94c
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX]
MOV qword ptr [RBP + -0x18],RAX
CMP qword ptr [RBP + -0x18],0x0
JZ 0x0015c935
MOV RAX,qword ptr [RBP + -0x18]
CMP dword ptr [RAX],-0x1
JZ 0x0015c935
MOV RAX,qword ptr [RBP + -0x18]
MOV EDI,dword ptr [RAX]
CALL 0x00114850
MOV dword ptr [RBP + -0x1c],EAX
MOV RAX,qword ptr [RBP + -0x18]
MOV dword ptr [RAX],0xffffffff
LAB_0015c935:
MOV RAX,qword ptr [RBP + -0x10]
MOV RDI,qword ptr [RAX]
CALL 0x00114530
MOV RAX,qword ptr [RBP + -0x10]
MOV qword ptr [RAX],0x0
LAB_0015c94c:
MOV EAX,dword ptr [RBP + -0x1c]
MOV byte ptr [RBP + -0x1],AL
LAB_0015c952:
MOV AL,byte ptr [RBP + -0x1]
ADD RSP,0x20
POP RBP
RET
|
int1 pvio_socket_close(long *param_1)
{
int *piVar1;
int1 uVar2;
int iVar3;
int1 local_24;
int1 local_9;
local_24 = 0;
uVar2 = local_24;
local_24 = 0;
if (param_1 == (long *)0x0) {
local_9 = 1;
}
else {
if (*param_1 != 0) {
piVar1 = (int *)*param_1;
local_24 = uVar2;
if ((piVar1 != (int *)0x0) && (*piVar1 != -1)) {
iVar3 = close(*piVar1);
local_24 = (int1)iVar3;
*piVar1 = -1;
}
free((void *)*param_1);
*param_1 = 0;
}
local_9 = local_24;
}
return local_9;
}
| |
45,234 | my_xml_attr_ensure_space | eloqsql/strings/xml.c | static int my_xml_attr_ensure_space(MY_XML_PARSER *st, size_t len)
{
size_t ofs= st->attr.end - st->attr.start;
len++; // Add terminating zero.
if (ofs + len > st->attr.buffer_size)
{
st->attr.buffer_size= (SIZE_T_MAX - len) / 2 > st->attr.buffer_size ?
st->attr.buffer_size * 2 + len : SIZE_T_MAX;
if (!st->attr.buffer)
{
st->attr.buffer= (char *) my_malloc(PSI_INSTRUMENT_ME, st->attr.buffer_size, MYF(0));
if (st->attr.buffer)
memcpy(st->attr.buffer, st->attr.static_buffer, ofs + 1 /*term. zero */);
}
else
st->attr.buffer= (char *) my_realloc(PSI_INSTRUMENT_ME, st->attr.buffer,
st->attr.buffer_size, MYF(0));
st->attr.start= st->attr.buffer;
st->attr.end= st->attr.start + ofs;
return st->attr.buffer ? MY_XML_OK : MY_XML_ERROR;
}
return MY_XML_OK;
} | O0 | c | my_xml_attr_ensure_space:
pushq %rbp
movq %rsp, %rbp
subq $0x30, %rsp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movq -0x10(%rbp), %rax
movq 0x120(%rax), %rax
movq -0x10(%rbp), %rcx
movq 0x118(%rcx), %rcx
subq %rcx, %rax
movq %rax, -0x20(%rbp)
movq -0x18(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x18(%rbp)
movq -0x20(%rbp), %rax
addq -0x18(%rbp), %rax
movq -0x10(%rbp), %rcx
cmpq 0x110(%rcx), %rax
jbe 0x77f93
movq $-0x1, %rax
subq -0x18(%rbp), %rax
shrq %rax
movq -0x10(%rbp), %rcx
cmpq 0x110(%rcx), %rax
jbe 0x77e95
movq -0x10(%rbp), %rax
movq 0x110(%rax), %rax
shlq %rax
addq -0x18(%rbp), %rax
movq %rax, -0x28(%rbp)
jmp 0x77ea2
movq $-0x1, %rax
movq %rax, -0x28(%rbp)
jmp 0x77ea2
movq -0x28(%rbp), %rcx
movq -0x10(%rbp), %rax
movq %rcx, 0x110(%rax)
movq -0x10(%rbp), %rax
cmpq $0x0, 0x108(%rax)
jne 0x77f16
movq -0x10(%rbp), %rax
movq 0x110(%rax), %rsi
xorl %edi, %edi
xorl %eax, %eax
movl %eax, %edx
callq 0x25b50
movq %rax, %rcx
movq -0x10(%rbp), %rax
movq %rcx, 0x108(%rax)
movq -0x10(%rbp), %rax
cmpq $0x0, 0x108(%rax)
je 0x77f14
movq -0x10(%rbp), %rax
movq 0x108(%rax), %rdi
movq -0x10(%rbp), %rsi
addq $0x88, %rsi
movq -0x20(%rbp), %rdx
addq $0x1, %rdx
callq 0x24210
jmp 0x77f45
movq -0x10(%rbp), %rax
movq 0x108(%rax), %rsi
movq -0x10(%rbp), %rax
movq 0x110(%rax), %rdx
xorl %edi, %edi
xorl %eax, %eax
movl %eax, %ecx
callq 0x25d20
movq %rax, %rcx
movq -0x10(%rbp), %rax
movq %rcx, 0x108(%rax)
movq -0x10(%rbp), %rax
movq 0x108(%rax), %rcx
movq -0x10(%rbp), %rax
movq %rcx, 0x118(%rax)
movq -0x10(%rbp), %rax
movq 0x118(%rax), %rcx
addq -0x20(%rbp), %rcx
movq -0x10(%rbp), %rax
movq %rcx, 0x120(%rax)
movq -0x10(%rbp), %rax
movq 0x108(%rax), %rdx
movl $0x1, %eax
xorl %ecx, %ecx
cmpq $0x0, %rdx
cmovnel %ecx, %eax
movl %eax, -0x4(%rbp)
jmp 0x77f9a
movl $0x0, -0x4(%rbp)
movl -0x4(%rbp), %eax
addq $0x30, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
nopl (%rax)
| my_xml_attr_ensure_space:
push rbp
mov rbp, rsp
sub rsp, 30h
mov [rbp+var_10], rdi
mov [rbp+var_18], rsi
mov rax, [rbp+var_10]
mov rax, [rax+120h]
mov rcx, [rbp+var_10]
mov rcx, [rcx+118h]
sub rax, rcx
mov [rbp+var_20], rax
mov rax, [rbp+var_18]
add rax, 1
mov [rbp+var_18], rax
mov rax, [rbp+var_20]
add rax, [rbp+var_18]
mov rcx, [rbp+var_10]
cmp rax, [rcx+110h]
jbe loc_77F93
mov rax, 0FFFFFFFFFFFFFFFFh
sub rax, [rbp+var_18]
shr rax, 1
mov rcx, [rbp+var_10]
cmp rax, [rcx+110h]
jbe short loc_77E95
mov rax, [rbp+var_10]
mov rax, [rax+110h]
shl rax, 1
add rax, [rbp+var_18]
mov [rbp+var_28], rax
jmp short loc_77EA2
loc_77E95:
mov rax, 0FFFFFFFFFFFFFFFFh
mov [rbp+var_28], rax
jmp short $+2
loc_77EA2:
mov rcx, [rbp+var_28]
mov rax, [rbp+var_10]
mov [rax+110h], rcx
mov rax, [rbp+var_10]
cmp qword ptr [rax+108h], 0
jnz short loc_77F16
mov rax, [rbp+var_10]
mov rsi, [rax+110h]
xor edi, edi
xor eax, eax
mov edx, eax
call my_malloc
mov rcx, rax
mov rax, [rbp+var_10]
mov [rax+108h], rcx
mov rax, [rbp+var_10]
cmp qword ptr [rax+108h], 0
jz short loc_77F14
mov rax, [rbp+var_10]
mov rdi, [rax+108h]
mov rsi, [rbp+var_10]
add rsi, 88h
mov rdx, [rbp+var_20]
add rdx, 1
call _memcpy
loc_77F14:
jmp short loc_77F45
loc_77F16:
mov rax, [rbp+var_10]
mov rsi, [rax+108h]
mov rax, [rbp+var_10]
mov rdx, [rax+110h]
xor edi, edi
xor eax, eax
mov ecx, eax
call my_realloc
mov rcx, rax
mov rax, [rbp+var_10]
mov [rax+108h], rcx
loc_77F45:
mov rax, [rbp+var_10]
mov rcx, [rax+108h]
mov rax, [rbp+var_10]
mov [rax+118h], rcx
mov rax, [rbp+var_10]
mov rcx, [rax+118h]
add rcx, [rbp+var_20]
mov rax, [rbp+var_10]
mov [rax+120h], rcx
mov rax, [rbp+var_10]
mov rdx, [rax+108h]
mov eax, 1
xor ecx, ecx
cmp rdx, 0
cmovnz eax, ecx
mov [rbp+var_4], eax
jmp short loc_77F9A
loc_77F93:
mov [rbp+var_4], 0
loc_77F9A:
mov eax, [rbp+var_4]
add rsp, 30h
pop rbp
retn
| _BOOL8 my_xml_attr_ensure_space(_QWORD *a1, long long a2)
{
long long v3; // [rsp+8h] [rbp-28h]
long long v4; // [rsp+10h] [rbp-20h]
long long v5; // [rsp+18h] [rbp-18h]
v4 = a1[36] - a1[35];
v5 = a2 + 1;
if ( (unsigned long long)(a2 + 1 + v4) <= a1[34] )
{
return 0;
}
else
{
if ( (unsigned long long)(-1 - v5) >> 1 <= a1[34] )
v3 = -1LL;
else
v3 = v5 + 2LL * a1[34];
a1[34] = v3;
if ( a1[33] )
{
a1[33] = my_realloc(0, a1[33], a1[34], 0);
}
else
{
a1[33] = my_malloc(0, a1[34], 0);
if ( a1[33] )
memcpy(a1[33], a1 + 17, v4 + 1);
}
a1[35] = a1[33];
a1[36] = v4 + a1[35];
return a1[33] == 0LL;
}
}
| my_xml_attr_ensure_space:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x30
MOV qword ptr [RBP + -0x10],RDI
MOV qword ptr [RBP + -0x18],RSI
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX + 0x120]
MOV RCX,qword ptr [RBP + -0x10]
MOV RCX,qword ptr [RCX + 0x118]
SUB RAX,RCX
MOV qword ptr [RBP + -0x20],RAX
MOV RAX,qword ptr [RBP + -0x18]
ADD RAX,0x1
MOV qword ptr [RBP + -0x18],RAX
MOV RAX,qword ptr [RBP + -0x20]
ADD RAX,qword ptr [RBP + -0x18]
MOV RCX,qword ptr [RBP + -0x10]
CMP RAX,qword ptr [RCX + 0x110]
JBE 0x00177f93
MOV RAX,-0x1
SUB RAX,qword ptr [RBP + -0x18]
SHR RAX,0x1
MOV RCX,qword ptr [RBP + -0x10]
CMP RAX,qword ptr [RCX + 0x110]
JBE 0x00177e95
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX + 0x110]
SHL RAX,0x1
ADD RAX,qword ptr [RBP + -0x18]
MOV qword ptr [RBP + -0x28],RAX
JMP 0x00177ea2
LAB_00177e95:
MOV RAX,-0x1
MOV qword ptr [RBP + -0x28],RAX
JMP 0x00177ea2
LAB_00177ea2:
MOV RCX,qword ptr [RBP + -0x28]
MOV RAX,qword ptr [RBP + -0x10]
MOV qword ptr [RAX + 0x110],RCX
MOV RAX,qword ptr [RBP + -0x10]
CMP qword ptr [RAX + 0x108],0x0
JNZ 0x00177f16
MOV RAX,qword ptr [RBP + -0x10]
MOV RSI,qword ptr [RAX + 0x110]
XOR EDI,EDI
XOR EAX,EAX
MOV EDX,EAX
CALL 0x00125b50
MOV RCX,RAX
MOV RAX,qword ptr [RBP + -0x10]
MOV qword ptr [RAX + 0x108],RCX
MOV RAX,qword ptr [RBP + -0x10]
CMP qword ptr [RAX + 0x108],0x0
JZ 0x00177f14
MOV RAX,qword ptr [RBP + -0x10]
MOV RDI,qword ptr [RAX + 0x108]
MOV RSI,qword ptr [RBP + -0x10]
ADD RSI,0x88
MOV RDX,qword ptr [RBP + -0x20]
ADD RDX,0x1
CALL 0x00124210
LAB_00177f14:
JMP 0x00177f45
LAB_00177f16:
MOV RAX,qword ptr [RBP + -0x10]
MOV RSI,qword ptr [RAX + 0x108]
MOV RAX,qword ptr [RBP + -0x10]
MOV RDX,qword ptr [RAX + 0x110]
XOR EDI,EDI
XOR EAX,EAX
MOV ECX,EAX
CALL 0x00125d20
MOV RCX,RAX
MOV RAX,qword ptr [RBP + -0x10]
MOV qword ptr [RAX + 0x108],RCX
LAB_00177f45:
MOV RAX,qword ptr [RBP + -0x10]
MOV RCX,qword ptr [RAX + 0x108]
MOV RAX,qword ptr [RBP + -0x10]
MOV qword ptr [RAX + 0x118],RCX
MOV RAX,qword ptr [RBP + -0x10]
MOV RCX,qword ptr [RAX + 0x118]
ADD RCX,qword ptr [RBP + -0x20]
MOV RAX,qword ptr [RBP + -0x10]
MOV qword ptr [RAX + 0x120],RCX
MOV RAX,qword ptr [RBP + -0x10]
MOV RDX,qword ptr [RAX + 0x108]
MOV EAX,0x1
XOR ECX,ECX
CMP RDX,0x0
CMOVNZ EAX,ECX
MOV dword ptr [RBP + -0x4],EAX
JMP 0x00177f9a
LAB_00177f93:
MOV dword ptr [RBP + -0x4],0x0
LAB_00177f9a:
MOV EAX,dword ptr [RBP + -0x4]
ADD RSP,0x30
POP RBP
RET
|
bool my_xml_attr_ensure_space(long param_1,long param_2)
{
long lVar1;
int8 uVar2;
bool bVar3;
long local_30;
lVar1 = *(long *)(param_1 + 0x120) - *(long *)(param_1 + 0x118);
param_2 = param_2 + 1;
if (*(ulong *)(param_1 + 0x110) < (ulong)(lVar1 + param_2)) {
if (*(ulong *)(param_1 + 0x110) < -param_2 - 1U >> 1) {
local_30 = *(long *)(param_1 + 0x110) * 2 + param_2;
}
else {
local_30 = -1;
}
*(long *)(param_1 + 0x110) = local_30;
if (*(long *)(param_1 + 0x108) == 0) {
uVar2 = my_malloc(0,*(int8 *)(param_1 + 0x110),0);
*(int8 *)(param_1 + 0x108) = uVar2;
if (*(long *)(param_1 + 0x108) != 0) {
memcpy(*(void **)(param_1 + 0x108),(void *)(param_1 + 0x88),lVar1 + 1);
}
}
else {
uVar2 = my_realloc(0,*(int8 *)(param_1 + 0x108),*(int8 *)(param_1 + 0x110),0);
*(int8 *)(param_1 + 0x108) = uVar2;
}
*(int8 *)(param_1 + 0x118) = *(int8 *)(param_1 + 0x108);
*(long *)(param_1 + 0x120) = *(long *)(param_1 + 0x118) + lVar1;
bVar3 = *(long *)(param_1 + 0x108) == 0;
}
else {
bVar3 = false;
}
return bVar3;
}
| |
45,235 | string_split(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&) | monkey531[P]llama/common/common.cpp | std::vector<std::string> string_split(const std::string & str, const std::string & delimiter) {
std::vector<std::string> parts;
size_t start = 0;
size_t end = str.find(delimiter);
while (end != std::string::npos) {
parts.push_back(str.substr(start, end - start));
start = end + delimiter.length();
end = str.find(delimiter, start);
}
parts.push_back(str.substr(start));
return parts;
} | O2 | cpp | string_split(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&):
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %rdx, %r15
movq %rsi, %r14
movq %rdi, %rbx
xorps %xmm0, %xmm0
movups %xmm0, (%rdi)
andq $0x0, 0x10(%rdi)
xorl %ebp, %ebp
movq %rsi, %rdi
movq %rdx, %rsi
xorl %edx, %edx
callq 0x241c0
movq %rax, %r12
leaq 0x8(%rsp), %r13
cmpq $-0x1, %r12
je 0x5479d
movq %r12, %rcx
subq %rbp, %rcx
movq %r13, %rdi
movq %r14, %rsi
movq %rbp, %rdx
callq 0x23970
movq %rbx, %rdi
movq %r13, %rsi
callq 0x3b5a4
movq %r13, %rdi
callq 0x24208
addq 0x8(%r15), %r12
movq %r14, %rdi
movq %r15, %rsi
movq %r12, %rdx
callq 0x241c0
movq %r12, %rbp
movq %rax, %r12
jmp 0x54756
leaq 0x8(%rsp), %rdi
pushq $-0x1
popq %rcx
movq %r14, %rsi
movq %rbp, %rdx
callq 0x23970
leaq 0x8(%rsp), %rsi
movq %rbx, %rdi
callq 0x3b5a4
leaq 0x8(%rsp), %rdi
callq 0x24208
movq %rbx, %rax
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x547e2
jmp 0x547dd
movq %rax, %r14
jmp 0x547ef
movq %rax, %r14
leaq 0x8(%rsp), %rdi
callq 0x24208
movq %rbx, %rdi
callq 0x26d2a
movq %r14, %rdi
callq 0x23fc0
| _Z12string_splitRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES6_:
push rbp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 28h
mov r15, rdx
mov r14, rsi
mov rbx, rdi
xorps xmm0, xmm0
movups xmmword ptr [rdi], xmm0
and qword ptr [rdi+10h], 0
xor ebp, ebp
mov rdi, rsi
mov rsi, rdx
xor edx, edx
call __ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4findERKS4_m; std::string::find(std::string const&,ulong)
mov r12, rax
lea r13, [rsp+58h+var_50]
loc_54756:
cmp r12, 0FFFFFFFFFFFFFFFFh
jz short loc_5479D
mov rcx, r12
sub rcx, rbp
mov rdi, r13
mov rsi, r14
mov rdx, rbp
call __ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6substrEmm; std::string::substr(ulong,ulong)
mov rdi, rbx
mov rsi, r13
call _ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE12emplace_backIJS5_EEERS5_DpOT_; std::vector<std::string>::emplace_back<std::string>(std::string &&)
mov rdi, r13; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
add r12, [r15+8]
mov rdi, r14
mov rsi, r15
mov rdx, r12
call __ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4findERKS4_m; std::string::find(std::string const&,ulong)
mov rbp, r12
mov r12, rax
jmp short loc_54756
loc_5479D:
lea rdi, [rsp+58h+var_50]
push 0FFFFFFFFFFFFFFFFh
pop rcx
mov rsi, r14
mov rdx, rbp
call __ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6substrEmm; std::string::substr(ulong,ulong)
lea rsi, [rsp+58h+var_50]
mov rdi, rbx
call _ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE12emplace_backIJS5_EEERS5_DpOT_; std::vector<std::string>::emplace_back<std::string>(std::string &&)
lea rdi, [rsp+58h+var_50]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
mov rax, rbx
add rsp, 28h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
jmp short loc_547E2
jmp short $+2
loc_547DD:
mov r14, rax
jmp short loc_547EF
loc_547E2:
mov r14, rax
lea rdi, [rsp+arg_0]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
loc_547EF:
mov rdi, rbx; void *
call _ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EED2Ev; std::vector<std::string>::~vector()
mov rdi, r14
call __Unwind_Resume
| long long string_split(long long a1, long long a2, long long a3)
{
long long v4; // rbp
long long i; // r12
_BYTE v7[80]; // [rsp+8h] [rbp-50h] BYREF
*(_OWORD *)a1 = 0LL;
*(_QWORD *)(a1 + 16) = 0LL;
v4 = 0LL;
for ( i = std::string::find(a2, a3, 0LL); i != -1; i = std::string::find(a2, a3, v4) )
{
std::string::substr(v7, a2, v4, i - v4);
std::vector<std::string>::emplace_back<std::string>(a1, (long long)v7);
std::string::~string(v7);
v4 = *(_QWORD *)(a3 + 8) + i;
}
std::string::substr(v7, a2, v4, -1LL);
std::vector<std::string>::emplace_back<std::string>(a1, (long long)v7);
std::string::~string(v7);
return a1;
}
| string_split:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x28
MOV R15,RDX
MOV R14,RSI
MOV RBX,RDI
XORPS XMM0,XMM0
MOVUPS xmmword ptr [RDI],XMM0
AND qword ptr [RDI + 0x10],0x0
XOR EBP,EBP
MOV RDI,RSI
MOV RSI,RDX
XOR EDX,EDX
CALL 0x001241c0
MOV R12,RAX
LEA R13,[RSP + 0x8]
LAB_00154756:
CMP R12,-0x1
JZ 0x0015479d
MOV RCX,R12
SUB RCX,RBP
LAB_00154762:
MOV RDI,R13
MOV RSI,R14
MOV RDX,RBP
CALL 0x00123970
LAB_00154770:
MOV RDI,RBX
MOV RSI,R13
CALL 0x0013b5a4
MOV RDI,R13
CALL 0x00124208
ADD R12,qword ptr [R15 + 0x8]
MOV RDI,R14
MOV RSI,R15
MOV RDX,R12
CALL 0x001241c0
MOV RBP,R12
MOV R12,RAX
JMP 0x00154756
LAB_0015479d:
LEA RDI,[RSP + 0x8]
PUSH -0x1
POP RCX
MOV RSI,R14
MOV RDX,RBP
CALL 0x00123970
LAB_001547b0:
LEA RSI,[RSP + 0x8]
MOV RDI,RBX
CALL 0x0013b5a4
LAB_001547bd:
LEA RDI,[RSP + 0x8]
CALL 0x00124208
MOV RAX,RBX
ADD RSP,0x28
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
|
/* string_split(std::__cxx11::string const&, std::__cxx11::string const&) */
string * string_split(string *param_1,string *param_2)
{
long lVar1;
ulong in_RDX;
string local_50 [32];
*(int8 *)param_1 = 0;
*(int8 *)(param_1 + 8) = 0;
*(int8 *)(param_1 + 0x10) = 0;
lVar1 = std::__cxx11::string::find(param_2,in_RDX);
while (lVar1 != -1) {
/* try { // try from 00154762 to 0015476f has its CatchHandler @ 001547dd */
std::__cxx11::string::substr((ulong)local_50,(ulong)param_2);
/* try { // try from 00154770 to 0015477a has its CatchHandler @ 001547e2 */
std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>::
emplace_back<std::__cxx11::string>
((vector<std::__cxx11::string,std::allocator<std::__cxx11::string>> *)param_1,local_50
);
std::__cxx11::string::~string(local_50);
lVar1 = std::__cxx11::string::find(param_2,in_RDX);
}
/* try { // try from 0015479d to 001547af has its CatchHandler @ 001547db */
std::__cxx11::string::substr((ulong)local_50,(ulong)param_2);
/* try { // try from 001547b0 to 001547bc has its CatchHandler @ 001547d9 */
std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>::
emplace_back<std::__cxx11::string>
((vector<std::__cxx11::string,std::allocator<std::__cxx11::string>> *)param_1,local_50);
std::__cxx11::string::~string(local_50);
return param_1;
}
| |
45,236 | lunasvg::SVGTextFragmentsBuilder::handleText(lunasvg::SVGTextNode const*) | dmazzella[P]pylunasvg/lunasvg/source/svgtextelement.cpp | void SVGTextFragmentsBuilder::handleText(const SVGTextNode* node)
{
const auto& text = node->data();
if(text.empty())
return;
auto element = toSVGTextPositioningElement(node->parentElement());
const auto startOffset = m_text.length();
uint32_t lastCharacter = ' ';
if(!m_text.empty()) {
lastCharacter = m_text.back();
}
plutovg_text_iterator_t it;
plutovg_text_iterator_init(&it, text.data(), text.length(), PLUTOVG_TEXT_ENCODING_UTF8);
while(plutovg_text_iterator_has_next(&it)) {
auto currentCharacter = plutovg_text_iterator_next(&it);
if(currentCharacter == '\t' || currentCharacter == '\n' || currentCharacter == '\r')
currentCharacter = ' ';
if(currentCharacter == ' ' && lastCharacter == ' ' && element->white_space() == WhiteSpace::Default)
continue;
m_text.push_back(currentCharacter);
lastCharacter = currentCharacter;
}
if(startOffset < m_text.length()) {
m_textPositions.emplace_back(node, startOffset, m_text.length());
}
} | O0 | cpp | lunasvg::SVGTextFragmentsBuilder::handleText(lunasvg::SVGTextNode const*):
pushq %rbp
movq %rsp, %rbp
subq $0x80, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x60(%rbp)
movq -0x10(%rbp), %rdi
callq 0xe730
movq %rax, -0x18(%rbp)
movq -0x18(%rbp), %rdi
callq 0xb660
testb $0x1, %al
jne 0x4e307
jmp 0x4e30c
jmp 0x4e43f
movq -0x10(%rbp), %rdi
callq 0xe710
movq %rax, %rdi
callq 0x4f690
movq %rax, %rcx
movq -0x60(%rbp), %rax
movq %rcx, -0x20(%rbp)
movq (%rax), %rdi
callq 0x4fad0
movq %rax, %rcx
movq -0x60(%rbp), %rax
movq %rcx, -0x28(%rbp)
movl $0x20, -0x2c(%rbp)
movq (%rax), %rdi
callq 0x4faf0
testb $0x1, %al
jne 0x4e35f
movq -0x60(%rbp), %rax
movq (%rax), %rdi
callq 0x4fb20
movl (%rax), %eax
movl %eax, -0x2c(%rbp)
movq -0x18(%rbp), %rdi
callq 0xb4b0
movq %rax, -0x68(%rbp)
movq -0x18(%rbp), %rdi
callq 0xb5b0
movq -0x68(%rbp), %rsi
movl %eax, %edx
leaq -0x48(%rbp), %rdi
movl $0x1, %ecx
callq 0x56860
leaq -0x48(%rbp), %rdi
callq 0x569a0
testb $0x1, %al
jne 0x4e398
jmp 0x4e3ef
leaq -0x48(%rbp), %rdi
callq 0x569c0
movl %eax, -0x4c(%rbp)
cmpl $0x9, -0x4c(%rbp)
je 0x4e3b6
cmpl $0xa, -0x4c(%rbp)
je 0x4e3b6
cmpl $0xd, -0x4c(%rbp)
jne 0x4e3bd
movl $0x20, -0x4c(%rbp)
cmpl $0x20, -0x4c(%rbp)
jne 0x4e3d8
cmpl $0x20, -0x2c(%rbp)
jne 0x4e3d8
movq -0x20(%rbp), %rdi
callq 0x4fb70
cmpb $0x0, %al
jne 0x4e3d8
jmp 0x4e389
movq -0x60(%rbp), %rax
movq (%rax), %rdi
movl -0x4c(%rbp), %esi
callq 0x4fb90
movl -0x4c(%rbp), %eax
movl %eax, -0x2c(%rbp)
jmp 0x4e389
movq -0x60(%rbp), %rax
movq -0x28(%rbp), %rcx
movq %rcx, -0x70(%rbp)
movq (%rax), %rdi
callq 0x4fad0
movq %rax, %rcx
movq -0x70(%rbp), %rax
cmpq %rcx, %rax
jae 0x4e43f
movq -0x60(%rbp), %rax
movq %rax, %rcx
addq $0x40, %rcx
movq %rcx, -0x78(%rbp)
movq (%rax), %rdi
callq 0x4fad0
movq -0x78(%rbp), %rdi
movq %rax, -0x58(%rbp)
leaq -0x10(%rbp), %rsi
leaq -0x28(%rbp), %rdx
leaq -0x58(%rbp), %rcx
callq 0x4fc30
addq $0x80, %rsp
popq %rbp
retq
nopl (%rax,%rax)
| _ZN7lunasvg23SVGTextFragmentsBuilder10handleTextEPKNS_11SVGTextNodeE:
push rbp
mov rbp, rsp
sub rsp, 80h
mov [rbp+var_8], rdi
mov [rbp+var_10], rsi
mov rax, [rbp+var_8]
mov [rbp+var_60], rax
mov rdi, [rbp+var_10]
call _ZNK7lunasvg11SVGTextNode4dataB5cxx11Ev; lunasvg::SVGTextNode::data(void)
mov [rbp+var_18], rax
mov rdi, [rbp+var_18]
call __ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5emptyEv; std::string::empty(void)
test al, 1
jnz short loc_4E307
jmp short loc_4E30C
loc_4E307:
jmp loc_4E43F
loc_4E30C:
mov rdi, [rbp+var_10]; this
call _ZNK7lunasvg7SVGNode13parentElementEv; lunasvg::SVGNode::parentElement(void)
mov rdi, rax; this
call _ZN7lunasvg27toSVGTextPositioningElementEPKNS_7SVGNodeE; lunasvg::toSVGTextPositioningElement(lunasvg::SVGNode const*)
mov rcx, rax
mov rax, [rbp+var_60]
mov [rbp+var_20], rcx
mov rdi, [rax]
call _ZNKSt7__cxx1112basic_stringIDiSt11char_traitsIDiESaIDiEE6lengthEv; std::basic_string<char32_t>::length(void)
mov rcx, rax
mov rax, [rbp+var_60]
mov [rbp+var_28], rcx
mov [rbp+var_2C], 20h ; ' '
mov rdi, [rax]
call _ZNKSt7__cxx1112basic_stringIDiSt11char_traitsIDiESaIDiEE5emptyEv; std::basic_string<char32_t>::empty(void)
test al, 1
jnz short loc_4E35F
mov rax, [rbp+var_60]
mov rdi, [rax]
call _ZNSt7__cxx1112basic_stringIDiSt11char_traitsIDiESaIDiEE4backEv; std::basic_string<char32_t>::back(void)
mov eax, [rax]
mov [rbp+var_2C], eax
loc_4E35F:
mov rdi, [rbp+var_18]
call __ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4dataEv; std::string::data(void)
mov [rbp+var_68], rax
mov rdi, [rbp+var_18]
call __ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6lengthEv; std::string::length(void)
mov rsi, [rbp+var_68]
mov edx, eax
lea rdi, [rbp+var_48]
mov ecx, 1
call plutovg_text_iterator_init
loc_4E389:
lea rdi, [rbp+var_48]
call plutovg_text_iterator_has_next
test al, 1
jnz short loc_4E398
jmp short loc_4E3EF
loc_4E398:
lea rdi, [rbp+var_48]
call plutovg_text_iterator_next
mov [rbp+var_4C], eax
cmp [rbp+var_4C], 9
jz short loc_4E3B6
cmp [rbp+var_4C], 0Ah
jz short loc_4E3B6
cmp [rbp+var_4C], 0Dh
jnz short loc_4E3BD
loc_4E3B6:
mov [rbp+var_4C], 20h ; ' '
loc_4E3BD:
cmp [rbp+var_4C], 20h ; ' '
jnz short loc_4E3D8
cmp [rbp+var_2C], 20h ; ' '
jnz short loc_4E3D8
mov rdi, [rbp+var_20]; this
call _ZNK7lunasvg25SVGTextPositioningElement11white_spaceEv; lunasvg::SVGTextPositioningElement::white_space(void)
cmp al, 0
jnz short loc_4E3D8
jmp short loc_4E389
loc_4E3D8:
mov rax, [rbp+var_60]
mov rdi, [rax]
mov esi, [rbp+var_4C]
call _ZNSt7__cxx1112basic_stringIDiSt11char_traitsIDiESaIDiEE9push_backEDi; std::basic_string<char32_t>::push_back(char32_t)
mov eax, [rbp+var_4C]
mov [rbp+var_2C], eax
jmp short loc_4E389
loc_4E3EF:
mov rax, [rbp+var_60]
mov rcx, [rbp+var_28]
mov [rbp+var_70], rcx
mov rdi, [rax]
call _ZNKSt7__cxx1112basic_stringIDiSt11char_traitsIDiESaIDiEE6lengthEv; std::basic_string<char32_t>::length(void)
mov rcx, rax
mov rax, [rbp+var_70]
cmp rax, rcx
jnb short loc_4E43F
mov rax, [rbp+var_60]
mov rcx, rax
add rcx, 40h ; '@'
mov [rbp+var_78], rcx
mov rdi, [rax]
call _ZNKSt7__cxx1112basic_stringIDiSt11char_traitsIDiESaIDiEE6lengthEv; std::basic_string<char32_t>::length(void)
mov rdi, [rbp+var_78]
mov [rbp+var_58], rax
lea rsi, [rbp+var_10]
lea rdx, [rbp+var_28]
lea rcx, [rbp+var_58]
call _ZNSt6vectorIN7lunasvg15SVGTextPositionESaIS1_EE12emplace_backIJRPKNS0_11SVGTextNodeERKmmEEERS1_DpOT_; std::vector<lunasvg::SVGTextPosition>::emplace_back<lunasvg::SVGTextNode const*&,ulong const&,ulong>(lunasvg::SVGTextNode const*&,ulong const&,ulong &&)
loc_4E43F:
add rsp, 80h
pop rbp
retn
| unsigned long long lunasvg::SVGTextFragmentsBuilder::handleText(
lunasvg::SVGTextFragmentsBuilder *this,
const lunasvg::SVGTextNode *a2)
{
unsigned long long result; // rax
lunasvg *v3; // rax
unsigned int v4; // eax
unsigned long long v5; // rcx
unsigned long long v6; // [rsp+10h] [rbp-70h]
long long v7; // [rsp+18h] [rbp-68h]
long long v8; // [rsp+28h] [rbp-58h] BYREF
unsigned int v9; // [rsp+34h] [rbp-4Ch]
_BYTE v10[28]; // [rsp+38h] [rbp-48h] BYREF
int v11; // [rsp+54h] [rbp-2Ch]
long long v12; // [rsp+58h] [rbp-28h] BYREF
lunasvg::SVGTextPositioningElement *v13; // [rsp+60h] [rbp-20h]
long long v14; // [rsp+68h] [rbp-18h]
lunasvg::SVGNode *v15[2]; // [rsp+70h] [rbp-10h] BYREF
v15[1] = this;
v15[0] = a2;
v14 = lunasvg::SVGTextNode::data[abi:cxx11]((long long)a2);
result = std::string::empty(v14);
if ( (result & 1) == 0 )
{
v3 = (lunasvg *)lunasvg::SVGNode::parentElement(v15[0]);
v13 = (lunasvg::SVGTextPositioningElement *)lunasvg::toSVGTextPositioningElement(v3, a2);
v12 = std::basic_string<char32_t>::length(*(_QWORD *)this);
v11 = 32;
if ( (std::basic_string<char32_t>::empty(*(_QWORD *)this) & 1) == 0 )
v11 = *(_DWORD *)std::basic_string<char32_t>::back(*(_QWORD *)this);
v7 = std::string::data(v14);
v4 = std::string::length(v14);
plutovg_text_iterator_init(v10, v7, v4, 1LL);
while ( (plutovg_text_iterator_has_next(v10) & 1) != 0 )
{
v9 = plutovg_text_iterator_next(v10);
if ( v9 == 9 || v9 == 10 || v9 == 13 )
v9 = 32;
if ( v9 != 32 || v11 != 32 || (unsigned __int8)lunasvg::SVGTextPositioningElement::white_space(v13) )
{
std::basic_string<char32_t>::push_back(*(_QWORD *)this, v9);
v11 = v9;
}
}
v6 = v12;
v5 = std::basic_string<char32_t>::length(*(_QWORD *)this);
result = v6;
if ( v6 < v5 )
{
v8 = std::basic_string<char32_t>::length(*(_QWORD *)this);
return std::vector<lunasvg::SVGTextPosition>::emplace_back<lunasvg::SVGTextNode const*&,unsigned long const&,unsigned long>(
(char *)this + 64,
v15,
&v12,
&v8);
}
}
return result;
}
| handleText:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x80
MOV qword ptr [RBP + -0x8],RDI
MOV qword ptr [RBP + -0x10],RSI
MOV RAX,qword ptr [RBP + -0x8]
MOV qword ptr [RBP + -0x60],RAX
MOV RDI,qword ptr [RBP + -0x10]
CALL 0x0010e730
MOV qword ptr [RBP + -0x18],RAX
MOV RDI,qword ptr [RBP + -0x18]
CALL 0x0010b660
TEST AL,0x1
JNZ 0x0014e307
JMP 0x0014e30c
LAB_0014e307:
JMP 0x0014e43f
LAB_0014e30c:
MOV RDI,qword ptr [RBP + -0x10]
CALL 0x0010e710
MOV RDI,RAX
CALL 0x0014f690
MOV RCX,RAX
MOV RAX,qword ptr [RBP + -0x60]
MOV qword ptr [RBP + -0x20],RCX
MOV RDI,qword ptr [RAX]
CALL 0x0014fad0
MOV RCX,RAX
MOV RAX,qword ptr [RBP + -0x60]
MOV qword ptr [RBP + -0x28],RCX
MOV dword ptr [RBP + -0x2c],0x20
MOV RDI,qword ptr [RAX]
CALL 0x0014faf0
TEST AL,0x1
JNZ 0x0014e35f
MOV RAX,qword ptr [RBP + -0x60]
MOV RDI,qword ptr [RAX]
CALL 0x0014fb20
MOV EAX,dword ptr [RAX]
MOV dword ptr [RBP + -0x2c],EAX
LAB_0014e35f:
MOV RDI,qword ptr [RBP + -0x18]
CALL 0x0010b4b0
MOV qword ptr [RBP + -0x68],RAX
MOV RDI,qword ptr [RBP + -0x18]
CALL 0x0010b5b0
MOV RSI,qword ptr [RBP + -0x68]
MOV EDX,EAX
LEA RDI,[RBP + -0x48]
MOV ECX,0x1
CALL 0x00156860
LAB_0014e389:
LEA RDI,[RBP + -0x48]
CALL 0x001569a0
TEST AL,0x1
JNZ 0x0014e398
JMP 0x0014e3ef
LAB_0014e398:
LEA RDI,[RBP + -0x48]
CALL 0x001569c0
MOV dword ptr [RBP + -0x4c],EAX
CMP dword ptr [RBP + -0x4c],0x9
JZ 0x0014e3b6
CMP dword ptr [RBP + -0x4c],0xa
JZ 0x0014e3b6
CMP dword ptr [RBP + -0x4c],0xd
JNZ 0x0014e3bd
LAB_0014e3b6:
MOV dword ptr [RBP + -0x4c],0x20
LAB_0014e3bd:
CMP dword ptr [RBP + -0x4c],0x20
JNZ 0x0014e3d8
CMP dword ptr [RBP + -0x2c],0x20
JNZ 0x0014e3d8
MOV RDI,qword ptr [RBP + -0x20]
CALL 0x0014fb70
CMP AL,0x0
JNZ 0x0014e3d8
JMP 0x0014e389
LAB_0014e3d8:
MOV RAX,qword ptr [RBP + -0x60]
MOV RDI,qword ptr [RAX]
MOV ESI,dword ptr [RBP + -0x4c]
CALL 0x0014fb90
MOV EAX,dword ptr [RBP + -0x4c]
MOV dword ptr [RBP + -0x2c],EAX
JMP 0x0014e389
LAB_0014e3ef:
MOV RAX,qword ptr [RBP + -0x60]
MOV RCX,qword ptr [RBP + -0x28]
MOV qword ptr [RBP + -0x70],RCX
MOV RDI,qword ptr [RAX]
CALL 0x0014fad0
MOV RCX,RAX
MOV RAX,qword ptr [RBP + -0x70]
CMP RAX,RCX
JNC 0x0014e43f
MOV RAX,qword ptr [RBP + -0x60]
MOV RCX,RAX
ADD RCX,0x40
MOV qword ptr [RBP + -0x78],RCX
MOV RDI,qword ptr [RAX]
CALL 0x0014fad0
MOV RDI,qword ptr [RBP + -0x78]
MOV qword ptr [RBP + -0x58],RAX
LEA RSI,[RBP + -0x10]
LEA RDX,[RBP + -0x28]
LEA RCX,[RBP + -0x58]
CALL 0x0014fc30
LAB_0014e43f:
ADD RSP,0x80
POP RBP
RET
|
/* lunasvg::SVGTextFragmentsBuilder::handleText(lunasvg::SVGTextNode const*) */
void __thiscall
lunasvg::SVGTextFragmentsBuilder::handleText(SVGTextFragmentsBuilder *this,SVGTextNode *param_1)
{
char cVar1;
int4 uVar2;
ulong uVar3;
SVGNode *pSVar4;
wchar32 *pwVar5;
int8 uVar6;
ulong uVar7;
ulong local_60;
wchar32 local_54;
int1 local_50 [28];
wchar32 local_34;
ulong local_30;
SVGTextPositioningElement *local_28;
int8 local_20;
SVGTextNode *local_18;
SVGTextFragmentsBuilder *local_10;
local_18 = param_1;
local_10 = this;
local_20 = SVGTextNode::data_abi_cxx11_(param_1);
uVar3 = std::__cxx11::string::empty();
if ((uVar3 & 1) == 0) {
pSVar4 = (SVGNode *)SVGNode::parentElement((SVGNode *)local_18);
local_28 = (SVGTextPositioningElement *)toSVGTextPositioningElement(pSVar4);
local_30 = std::__cxx11::u32string::length(*(u32string **)this);
local_34 = L' ';
uVar3 = std::__cxx11::u32string::empty(*(u32string **)this);
if ((uVar3 & 1) == 0) {
pwVar5 = (wchar32 *)std::__cxx11::u32string::back(*(u32string **)this);
local_34 = *pwVar5;
}
uVar6 = std::__cxx11::string::data();
uVar2 = std::__cxx11::string::length();
plutovg_text_iterator_init(local_50,uVar6,uVar2,1);
while (uVar7 = plutovg_text_iterator_has_next(local_50), uVar3 = local_30, (uVar7 & 1) != 0) {
local_54 = plutovg_text_iterator_next(local_50);
if (((local_54 == L'\t') || (local_54 == L'\n')) || (local_54 == L'\r')) {
local_54 = L' ';
}
if (((local_54 != L' ') || (local_34 != L' ')) ||
(cVar1 = SVGTextPositioningElement::white_space(local_28), cVar1 != '\0')) {
std::__cxx11::u32string::push_back(*(u32string **)this,local_54);
local_34 = local_54;
}
}
uVar7 = std::__cxx11::u32string::length(*(u32string **)this);
if (uVar3 < uVar7) {
local_60 = std::__cxx11::u32string::length(*(u32string **)this);
std::vector<lunasvg::SVGTextPosition,std::allocator<lunasvg::SVGTextPosition>>::
emplace_back<lunasvg::SVGTextNode_const*&,unsigned_long_const&,unsigned_long>
((vector<lunasvg::SVGTextPosition,std::allocator<lunasvg::SVGTextPosition>> *)
(this + 0x40),&local_18,&local_30,&local_60);
}
}
return;
}
| |
45,237 | lunasvg::SVGTextFragmentsBuilder::handleText(lunasvg::SVGTextNode const*) | dmazzella[P]pylunasvg/lunasvg/source/svgtextelement.cpp | void SVGTextFragmentsBuilder::handleText(const SVGTextNode* node)
{
const auto& text = node->data();
if(text.empty())
return;
auto element = toSVGTextPositioningElement(node->parentElement());
const auto startOffset = m_text.length();
uint32_t lastCharacter = ' ';
if(!m_text.empty()) {
lastCharacter = m_text.back();
}
plutovg_text_iterator_t it;
plutovg_text_iterator_init(&it, text.data(), text.length(), PLUTOVG_TEXT_ENCODING_UTF8);
while(plutovg_text_iterator_has_next(&it)) {
auto currentCharacter = plutovg_text_iterator_next(&it);
if(currentCharacter == '\t' || currentCharacter == '\n' || currentCharacter == '\r')
currentCharacter = ' ';
if(currentCharacter == ' ' && lastCharacter == ' ' && element->white_space() == WhiteSpace::Default)
continue;
m_text.push_back(currentCharacter);
lastCharacter = currentCharacter;
}
if(startOffset < m_text.length()) {
m_textPositions.emplace_back(node, startOffset, m_text.length());
}
} | O1 | cpp | lunasvg::SVGTextFragmentsBuilder::handleText(lunasvg::SVGTextNode const*):
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x38, %rsp
movq %rsi, 0x10(%rsp)
cmpq $0x0, 0x20(%rsi)
je 0x21d68
movq %rsi, %r15
movq 0x10(%rsi), %r14
testq %r14, %r14
je 0x21d77
movq %rdi, %rbx
movq (%r14), %rax
movq %r14, %rdi
callq *0x38(%rax)
testb %al, %al
je 0x21d77
movq (%rbx), %rax
movq 0x8(%rax), %rcx
movq %rcx, 0x8(%rsp)
testq %rcx, %rcx
je 0x21cb3
movq (%rax), %rax
movl -0x4(%rax,%rcx,4), %r12d
jmp 0x21cb9
movl $0x20, %r12d
movq 0x18(%r15), %rsi
movl 0x20(%r15), %edx
leaq 0x20(%rsp), %r15
movq %r15, %rdi
movl $0x1, %ecx
callq 0x244c4
movq %r15, %rdi
callq 0x24548
testb %al, %al
je 0x21d3c
leaq 0x20(%rsp), %r15
movl $0x20, %r13d
movq %r15, %rdi
callq 0x24552
leal -0x9(%rax), %ecx
cmpl $0x2, %ecx
movl %eax, %ebp
cmovbl %r13d, %ebp
cmpl $0xd, %eax
cmovel %r13d, %ebp
cmpl $0x20, %ebp
jne 0x21d1a
cmpl $0x20, %r12d
jne 0x21d1a
cmpb $0x0, 0x1c3(%r14)
je 0x21d35
movq (%rbx), %rdi
movl %ebp, %esi
callq 0x2288a
movq %r15, %rdi
callq 0x24548
movl %ebp, %r12d
testb %al, %al
jne 0x21cea
jmp 0x21d3c
movl $0x20, %ebp
jmp 0x21d24
movq (%rbx), %rax
movq 0x8(%rax), %rax
cmpq %rax, 0x8(%rsp)
jae 0x21d68
addq $0x40, %rbx
leaq 0x18(%rsp), %rcx
movq %rax, (%rcx)
leaq 0x10(%rsp), %rsi
leaq 0x8(%rsp), %rdx
movq %rbx, %rdi
callq 0x228e8
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x22900(%rip), %rdi # 0x4467e
leaq 0x22841(%rip), %rsi # 0x445c6
leaq 0x2291b(%rip), %rcx # 0x446a7
movl $0x11, %edx
callq 0xa200
| _ZN7lunasvg23SVGTextFragmentsBuilder10handleTextEPKNS_11SVGTextNodeE:
push rbp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 38h
mov [rsp+68h+var_58], rsi
cmp qword ptr [rsi+20h], 0
jz loc_21D68
mov r15, rsi
mov r14, [rsi+10h]
test r14, r14
jz loc_21D77
mov rbx, rdi
mov rax, [r14]
mov rdi, r14
call qword ptr [rax+38h]
test al, al
jz loc_21D77
mov rax, [rbx]
mov rcx, [rax+8]
mov [rsp+68h+var_60], rcx
test rcx, rcx
jz short loc_21CB3
mov rax, [rax]
mov r12d, [rax+rcx*4-4]
jmp short loc_21CB9
loc_21CB3:
mov r12d, 20h ; ' '
loc_21CB9:
mov rsi, [r15+18h]
mov edx, [r15+20h]
lea r15, [rsp+68h+var_48]
mov rdi, r15
mov ecx, 1
call plutovg_text_iterator_init
mov rdi, r15
call plutovg_text_iterator_has_next
test al, al
jz short loc_21D3C
lea r15, [rsp+68h+var_48]
mov r13d, 20h ; ' '
loc_21CEA:
mov rdi, r15
call plutovg_text_iterator_next
lea ecx, [rax-9]
cmp ecx, 2
mov ebp, eax
cmovb ebp, r13d
cmp eax, 0Dh
cmovz ebp, r13d
cmp ebp, 20h ; ' '
jnz short loc_21D1A
cmp r12d, 20h ; ' '
jnz short loc_21D1A
cmp byte ptr [r14+1C3h], 0
jz short loc_21D35
loc_21D1A:
mov rdi, [rbx]
mov esi, ebp
call _ZNSt7__cxx1112basic_stringIDiSt11char_traitsIDiESaIDiEE9push_backEDi; std::basic_string<char32_t>::push_back(char32_t)
loc_21D24:
mov rdi, r15
call plutovg_text_iterator_has_next
mov r12d, ebp
test al, al
jnz short loc_21CEA
jmp short loc_21D3C
loc_21D35:
mov ebp, 20h ; ' '
jmp short loc_21D24
loc_21D3C:
mov rax, [rbx]
mov rax, [rax+8]
cmp [rsp+68h+var_60], rax
jnb short loc_21D68
add rbx, 40h ; '@'
lea rcx, [rsp+68h+var_50]
mov [rcx], rax
lea rsi, [rsp+68h+var_58]
lea rdx, [rsp+68h+var_60]
mov rdi, rbx
call _ZNSt6vectorIN7lunasvg15SVGTextPositionESaIS1_EE12emplace_backIJRPKNS0_11SVGTextNodeERKmmEEERS1_DpOT_; std::vector<lunasvg::SVGTextPosition>::emplace_back<lunasvg::SVGTextNode const*&,ulong const&,ulong>(lunasvg::SVGTextNode const*&,ulong const&,ulong &&)
loc_21D68:
add rsp, 38h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
loc_21D77:
lea rdi, aNodeNodeIstext; "node && node->isTextPositioningElement("...
lea rsi, aWorkspaceLlm4b_2; "/workspace/llm4binary/github/2025_star3"...
lea rcx, aConstSvgtextpo; "const SVGTextPositioningElement *lunasv"...
mov edx, 11h
call ___assert_fail
| void lunasvg::SVGTextFragmentsBuilder::handleText(
lunasvg::SVGTextFragmentsBuilder *this,
const lunasvg::SVGTextNode *a2)
{
_BYTE *v2; // r14
_QWORD *v3; // rax
unsigned long long v4; // rcx
int v5; // r12d
unsigned int v6; // eax
unsigned int v7; // ebp
unsigned long long v8; // [rsp+8h] [rbp-60h] BYREF
_QWORD v9[2]; // [rsp+10h] [rbp-58h] BYREF
_BYTE v10[72]; // [rsp+20h] [rbp-48h] BYREF
v9[0] = a2;
if ( *((_QWORD *)a2 + 4) )
{
v2 = (_BYTE *)*((_QWORD *)a2 + 2);
if ( !v2 || !(*(unsigned __int8 ( **)(_QWORD))(*(_QWORD *)v2 + 56LL))(*((_QWORD *)a2 + 2)) )
__assert_fail(
"node && node->isTextPositioningElement()",
"/workspace/llm4binary/github/2025_star3/dmazzella[P]pylunasvg/lunasvg/source/svgtextelement.cpp",
17LL,
"const SVGTextPositioningElement *lunasvg::toSVGTextPositioningElement(const SVGNode *)");
v3 = *(_QWORD **)this;
v4 = *(_QWORD *)(*(_QWORD *)this + 8LL);
v8 = v4;
if ( v4 )
v5 = *(_DWORD *)(*v3 + 4 * v4 - 4);
else
v5 = 32;
plutovg_text_iterator_init(v10, *((_QWORD *)a2 + 3), *((unsigned int *)a2 + 8), 1LL);
for ( ; (unsigned __int8)plutovg_text_iterator_has_next(v10); v5 = v7 )
{
v6 = plutovg_text_iterator_next(v10);
v7 = v6;
if ( v6 - 9 < 2 )
v7 = 32;
if ( v6 == 13 )
v7 = 32;
if ( v7 == 32 && v5 == 32 && !v2[451] )
v7 = 32;
else
std::basic_string<char32_t>::push_back(*(_QWORD *)this, v7);
}
if ( v8 < *(_QWORD *)(*(_QWORD *)this + 8LL) )
{
v9[1] = *(_QWORD *)(*(_QWORD *)this + 8LL);
std::vector<lunasvg::SVGTextPosition>::emplace_back<lunasvg::SVGTextNode const*&,unsigned long const&,unsigned long>(
(char *)this + 64,
v9,
&v8);
}
}
}
| handleText:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x38
MOV qword ptr [RSP + 0x10],RSI
CMP qword ptr [RSI + 0x20],0x0
JZ 0x00121d68
MOV R15,RSI
MOV R14,qword ptr [RSI + 0x10]
TEST R14,R14
JZ 0x00121d77
MOV RBX,RDI
MOV RAX,qword ptr [R14]
MOV RDI,R14
CALL qword ptr [RAX + 0x38]
TEST AL,AL
JZ 0x00121d77
MOV RAX,qword ptr [RBX]
MOV RCX,qword ptr [RAX + 0x8]
MOV qword ptr [RSP + 0x8],RCX
TEST RCX,RCX
JZ 0x00121cb3
MOV RAX,qword ptr [RAX]
MOV R12D,dword ptr [RAX + RCX*0x4 + -0x4]
JMP 0x00121cb9
LAB_00121cb3:
MOV R12D,0x20
LAB_00121cb9:
MOV RSI,qword ptr [R15 + 0x18]
MOV EDX,dword ptr [R15 + 0x20]
LEA R15,[RSP + 0x20]
MOV RDI,R15
MOV ECX,0x1
CALL 0x001244c4
MOV RDI,R15
CALL 0x00124548
TEST AL,AL
JZ 0x00121d3c
LEA R15,[RSP + 0x20]
MOV R13D,0x20
LAB_00121cea:
MOV RDI,R15
CALL 0x00124552
LEA ECX,[RAX + -0x9]
CMP ECX,0x2
MOV EBP,EAX
CMOVC EBP,R13D
CMP EAX,0xd
CMOVZ EBP,R13D
CMP EBP,0x20
JNZ 0x00121d1a
CMP R12D,0x20
JNZ 0x00121d1a
CMP byte ptr [R14 + 0x1c3],0x0
JZ 0x00121d35
LAB_00121d1a:
MOV RDI,qword ptr [RBX]
MOV ESI,EBP
CALL 0x0012288a
LAB_00121d24:
MOV RDI,R15
CALL 0x00124548
MOV R12D,EBP
TEST AL,AL
JNZ 0x00121cea
JMP 0x00121d3c
LAB_00121d35:
MOV EBP,0x20
JMP 0x00121d24
LAB_00121d3c:
MOV RAX,qword ptr [RBX]
MOV RAX,qword ptr [RAX + 0x8]
CMP qword ptr [RSP + 0x8],RAX
JNC 0x00121d68
ADD RBX,0x40
LEA RCX,[RSP + 0x18]
MOV qword ptr [RCX],RAX
LEA RSI,[RSP + 0x10]
LEA RDX,[RSP + 0x8]
MOV RDI,RBX
CALL 0x001228e8
LAB_00121d68:
ADD RSP,0x38
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
LAB_00121d77:
LEA RDI,[0x14467e]
LEA RSI,[0x1445c6]
LEA RCX,[0x1446a7]
MOV EDX,0x11
CALL 0x0010a200
|
/* lunasvg::SVGTextFragmentsBuilder::handleText(lunasvg::SVGTextNode const*) */
void __thiscall
lunasvg::SVGTextFragmentsBuilder::handleText(SVGTextFragmentsBuilder *this,SVGTextNode *param_1)
{
long *plVar1;
char cVar2;
wchar32 wVar3;
wchar32 wVar4;
wchar32 wVar5;
ulong local_60;
SVGTextNode *local_58;
ulong local_50;
int1 local_48 [24];
if (*(long *)(param_1 + 0x20) != 0) {
plVar1 = *(long **)(param_1 + 0x10);
local_58 = param_1;
if ((plVar1 == (long *)0x0) || (cVar2 = (**(code **)(*plVar1 + 0x38))(plVar1), cVar2 == '\0')) {
/* WARNING: Subroutine does not return */
__assert_fail("node && node->isTextPositioningElement()",
"/workspace/llm4binary/github/2025_star3/dmazzella[P]pylunasvg/lunasvg/source/svgtextelement.cpp"
,0x11,
"const SVGTextPositioningElement *lunasvg::toSVGTextPositioningElement(const SVGNode *)"
);
}
local_60 = (*(long **)this)[1];
if (local_60 == 0) {
wVar5 = L' ';
}
else {
wVar5 = *(wchar32 *)(**(long **)this + -4 + local_60 * 4);
}
plutovg_text_iterator_init
(local_48,*(int8 *)(param_1 + 0x18),*(int4 *)(param_1 + 0x20),1);
cVar2 = plutovg_text_iterator_has_next(local_48);
if (cVar2 != '\0') {
do {
wVar3 = plutovg_text_iterator_next(local_48);
wVar4 = wVar3;
if ((uint)(wVar3 + L'\xfffffff7') < 2) {
wVar4 = L' ';
}
if (wVar3 == L'\r') {
wVar4 = L' ';
}
if (((wVar4 == L' ') && (wVar5 == L' ')) && (*(char *)((long)plVar1 + 0x1c3) == '\0')) {
wVar5 = L' ';
}
else {
std::__cxx11::u32string::push_back(*(u32string **)this,wVar4);
wVar5 = wVar4;
}
cVar2 = plutovg_text_iterator_has_next(local_48);
} while (cVar2 != '\0');
}
local_50 = *(ulong *)(*(long *)this + 8);
if (local_60 < local_50) {
std::vector<lunasvg::SVGTextPosition,std::allocator<lunasvg::SVGTextPosition>>::
emplace_back<lunasvg::SVGTextNode_const*&,unsigned_long_const&,unsigned_long>
((vector<lunasvg::SVGTextPosition,std::allocator<lunasvg::SVGTextPosition>> *)
(this + 0x40),&local_58,&local_60,&local_50);
}
}
return;
}
| |
45,238 | my_b_flush_io_cache | eloqsql/mysys/mf_iocache.c | int my_b_flush_io_cache(IO_CACHE *info, int need_append_buffer_lock)
{
size_t length;
my_bool append_cache= (info->type == SEQ_READ_APPEND);
DBUG_ENTER("my_b_flush_io_cache");
DBUG_PRINT("enter", ("cache: %p", info));
if (!append_cache)
need_append_buffer_lock= 0;
if (info->type == WRITE_CACHE || append_cache)
{
if (info->file == -1)
{
if (real_open_cached_file(info))
DBUG_RETURN((info->error= -1));
}
LOCK_APPEND_BUFFER;
if ((length=(size_t) (info->write_pos - info->write_buffer)))
{
if (append_cache)
{
if (mysql_file_write(info->file, info->write_buffer, length,
info->myflags | MY_NABP))
{
info->error= -1;
DBUG_RETURN(-1);
}
info->end_of_file+= info->write_pos - info->append_read_pos;
info->append_read_pos= info->write_buffer;
DBUG_ASSERT(info->end_of_file == mysql_file_tell(info->file, MYF(0)));
}
else
{
int res= info->write_function(info, info->write_buffer, length);
if (res)
DBUG_RETURN(res);
set_if_bigger(info->end_of_file, info->pos_in_file);
}
info->write_end= (info->write_buffer + info->buffer_length -
((info->pos_in_file + length) & (IO_SIZE - 1)));
info->write_pos= info->write_buffer;
++info->disk_writes;
UNLOCK_APPEND_BUFFER;
DBUG_RETURN(info->error);
}
}
UNLOCK_APPEND_BUFFER;
DBUG_RETURN(0);
} | O0 | c | my_b_flush_io_cache:
pushq %rbp
movq %rsp, %rbp
subq $0x30, %rsp
movq %rdi, -0x10(%rbp)
movl %esi, -0x14(%rbp)
movq -0x10(%rbp), %rax
cmpl $0x3, 0xb0(%rax)
sete %al
andb $0x1, %al
movzbl %al, %eax
movb %al, -0x21(%rbp)
jmp 0xe5c17
cmpb $0x0, -0x21(%rbp)
jne 0xe5c24
movl $0x0, -0x14(%rbp)
movq -0x10(%rbp), %rax
cmpl $0x2, 0xb0(%rax)
je 0xe5c3e
movsbl -0x21(%rbp), %eax
cmpl $0x0, %eax
je 0xe5e23
movq -0x10(%rbp), %rax
cmpl $-0x1, 0xd4(%rax)
jne 0xe5c76
movq -0x10(%rbp), %rdi
callq 0x10e580
cmpb $0x0, %al
je 0xe5c74
jmp 0xe5c5a
movq -0x10(%rbp), %rax
movl $0xffffffff, 0xe4(%rax) # imm = 0xFFFFFFFF
movl $0xffffffff, -0x4(%rbp) # imm = 0xFFFFFFFF
jmp 0xe5e3f
jmp 0xe5c76
cmpl $0x0, -0x14(%rbp)
je 0xe5c95
movq -0x10(%rbp), %rdi
addq $0x50, %rdi
leaq 0x79c05(%rip), %rsi # 0x15f890
movl $0x6ad, %edx # imm = 0x6AD
callq 0xe67d0
movq -0x10(%rbp), %rax
movq 0x40(%rax), %rax
movq -0x10(%rbp), %rcx
movq 0x30(%rcx), %rcx
subq %rcx, %rax
movq %rax, -0x20(%rbp)
cmpq $0x0, %rax
je 0xe5e21
cmpb $0x0, -0x21(%rbp)
je 0xe5d49
movq -0x10(%rbp), %rax
movl 0xd4(%rax), %edx
movq -0x10(%rbp), %rax
movq 0x30(%rax), %rcx
movq -0x20(%rbp), %r8
movq -0x10(%rbp), %rax
movq 0xf8(%rax), %r9
orq $0x4, %r9
leaq 0x79ba4(%rip), %rdi # 0x15f890
movl $0x6b4, %esi # imm = 0x6B4
callq 0xe6c20
cmpq $0x0, %rax
je 0xe5d16
movq -0x10(%rbp), %rax
movl $0xffffffff, 0xe4(%rax) # imm = 0xFFFFFFFF
movl $0xffffffff, -0x4(%rbp) # imm = 0xFFFFFFFF
jmp 0xe5e3f
movq -0x10(%rbp), %rax
movq 0x40(%rax), %rcx
movq -0x10(%rbp), %rax
movq 0x38(%rax), %rax
subq %rax, %rcx
movq -0x10(%rbp), %rax
addq 0x8(%rax), %rcx
movq %rcx, 0x8(%rax)
movq -0x10(%rbp), %rax
movq 0x30(%rax), %rcx
movq -0x10(%rbp), %rax
movq %rcx, 0x38(%rax)
jmp 0xe5d47
jmp 0xe5da2
movq -0x10(%rbp), %rax
movq 0xa8(%rax), %rax
movq -0x10(%rbp), %rdi
movq -0x10(%rbp), %rcx
movq 0x30(%rcx), %rsi
movq -0x20(%rbp), %rdx
callq *%rax
movl %eax, -0x28(%rbp)
cmpl $0x0, -0x28(%rbp)
je 0xe5d7c
jmp 0xe5d71
movl -0x28(%rbp), %eax
movl %eax, -0x4(%rbp)
jmp 0xe5e3f
jmp 0xe5d7e
movq -0x10(%rbp), %rax
movq 0x8(%rax), %rax
movq -0x10(%rbp), %rcx
cmpq (%rcx), %rax
jae 0xe5d9e
movq -0x10(%rbp), %rax
movq (%rax), %rcx
movq -0x10(%rbp), %rax
movq %rcx, 0x8(%rax)
jmp 0xe5da0
jmp 0xe5da2
movq -0x10(%rbp), %rax
movq 0x30(%rax), %rcx
movq -0x10(%rbp), %rax
addq 0xe8(%rax), %rcx
movq -0x10(%rbp), %rax
movq (%rax), %rdx
addq -0x20(%rbp), %rdx
andq $0xfff, %rdx # imm = 0xFFF
xorl %eax, %eax
subq %rdx, %rax
addq %rax, %rcx
movq -0x10(%rbp), %rax
movq %rcx, 0x48(%rax)
movq -0x10(%rbp), %rax
movq 0x30(%rax), %rcx
movq -0x10(%rbp), %rax
movq %rcx, 0x40(%rax)
movq -0x10(%rbp), %rax
movq 0xb8(%rax), %rcx
addq $0x1, %rcx
movq %rcx, 0xb8(%rax)
cmpl $0x0, -0x14(%rbp)
je 0xe5e10
movq -0x10(%rbp), %rdi
addq $0x50, %rdi
callq 0xe6900
jmp 0xe5e12
movq -0x10(%rbp), %rax
movl 0xe4(%rax), %eax
movl %eax, -0x4(%rbp)
jmp 0xe5e3f
jmp 0xe5e23
cmpl $0x0, -0x14(%rbp)
je 0xe5e36
movq -0x10(%rbp), %rdi
addq $0x50, %rdi
callq 0xe6900
jmp 0xe5e38
movl $0x0, -0x4(%rbp)
movl -0x4(%rbp), %eax
addq $0x30, %rsp
popq %rbp
retq
nopl (%rax,%rax)
| my_b_flush_io_cache:
push rbp
mov rbp, rsp
sub rsp, 30h
mov [rbp+var_10], rdi
mov [rbp+var_14], esi
mov rax, [rbp+var_10]
cmp dword ptr [rax+0B0h], 3
setz al
and al, 1
movzx eax, al
mov [rbp+var_21], al
jmp short $+2
loc_E5C17:
cmp [rbp+var_21], 0
jnz short loc_E5C24
mov [rbp+var_14], 0
loc_E5C24:
mov rax, [rbp+var_10]
cmp dword ptr [rax+0B0h], 2
jz short loc_E5C3E
movsx eax, [rbp+var_21]
cmp eax, 0
jz loc_E5E23
loc_E5C3E:
mov rax, [rbp+var_10]
cmp dword ptr [rax+0D4h], 0FFFFFFFFh
jnz short loc_E5C76
mov rdi, [rbp+var_10]
call real_open_cached_file
cmp al, 0
jz short loc_E5C74
jmp short $+2
loc_E5C5A:
mov rax, [rbp+var_10]
mov dword ptr [rax+0E4h], 0FFFFFFFFh
mov [rbp+var_4], 0FFFFFFFFh
jmp loc_E5E3F
loc_E5C74:
jmp short $+2
loc_E5C76:
cmp [rbp+var_14], 0
jz short loc_E5C95
mov rdi, [rbp+var_10]
add rdi, 50h ; 'P'
lea rsi, aWorkspaceLlm4b_39; "/workspace/llm4binary/github2025/eloqsq"...
mov edx, 6ADh
call inline_mysql_mutex_lock_24
loc_E5C95:
mov rax, [rbp+var_10]
mov rax, [rax+40h]
mov rcx, [rbp+var_10]
mov rcx, [rcx+30h]
sub rax, rcx
mov [rbp+var_20], rax
cmp rax, 0
jz loc_E5E21
cmp [rbp+var_21], 0
jz loc_E5D49
mov rax, [rbp+var_10]
mov edx, [rax+0D4h]
mov rax, [rbp+var_10]
mov rcx, [rax+30h]
mov r8, [rbp+var_20]
mov rax, [rbp+var_10]
mov r9, [rax+0F8h]
or r9, 4
lea rdi, aWorkspaceLlm4b_39; "/workspace/llm4binary/github2025/eloqsq"...
mov esi, 6B4h
call inline_mysql_file_write_3
cmp rax, 0
jz short loc_E5D16
mov rax, [rbp+var_10]
mov dword ptr [rax+0E4h], 0FFFFFFFFh
mov [rbp+var_4], 0FFFFFFFFh
jmp loc_E5E3F
loc_E5D16:
mov rax, [rbp+var_10]
mov rcx, [rax+40h]
mov rax, [rbp+var_10]
mov rax, [rax+38h]
sub rcx, rax
mov rax, [rbp+var_10]
add rcx, [rax+8]
mov [rax+8], rcx
mov rax, [rbp+var_10]
mov rcx, [rax+30h]
mov rax, [rbp+var_10]
mov [rax+38h], rcx
jmp short $+2
loc_E5D47:
jmp short loc_E5DA2
loc_E5D49:
mov rax, [rbp+var_10]
mov rax, [rax+0A8h]
mov rdi, [rbp+var_10]
mov rcx, [rbp+var_10]
mov rsi, [rcx+30h]
mov rdx, [rbp+var_20]
call rax
mov [rbp+var_28], eax
cmp [rbp+var_28], 0
jz short loc_E5D7C
jmp short $+2
loc_E5D71:
mov eax, [rbp+var_28]
mov [rbp+var_4], eax
jmp loc_E5E3F
loc_E5D7C:
jmp short $+2
loc_E5D7E:
mov rax, [rbp+var_10]
mov rax, [rax+8]
mov rcx, [rbp+var_10]
cmp rax, [rcx]
jnb short loc_E5D9E
mov rax, [rbp+var_10]
mov rcx, [rax]
mov rax, [rbp+var_10]
mov [rax+8], rcx
loc_E5D9E:
jmp short $+2
loc_E5DA0:
jmp short $+2
loc_E5DA2:
mov rax, [rbp+var_10]
mov rcx, [rax+30h]
mov rax, [rbp+var_10]
add rcx, [rax+0E8h]
mov rax, [rbp+var_10]
mov rdx, [rax]
add rdx, [rbp+var_20]
and rdx, 0FFFh
xor eax, eax
sub rax, rdx
add rcx, rax
mov rax, [rbp+var_10]
mov [rax+48h], rcx
mov rax, [rbp+var_10]
mov rcx, [rax+30h]
mov rax, [rbp+var_10]
mov [rax+40h], rcx
mov rax, [rbp+var_10]
mov rcx, [rax+0B8h]
add rcx, 1
mov [rax+0B8h], rcx
cmp [rbp+var_14], 0
jz short loc_E5E10
mov rdi, [rbp+var_10]
add rdi, 50h ; 'P'
call inline_mysql_mutex_unlock_25
loc_E5E10:
jmp short $+2
loc_E5E12:
mov rax, [rbp+var_10]
mov eax, [rax+0E4h]
mov [rbp+var_4], eax
jmp short loc_E5E3F
loc_E5E21:
jmp short $+2
loc_E5E23:
cmp [rbp+var_14], 0
jz short loc_E5E36
mov rdi, [rbp+var_10]
add rdi, 50h ; 'P'
call inline_mysql_mutex_unlock_25
loc_E5E36:
jmp short $+2
loc_E5E38:
mov [rbp+var_4], 0
loc_E5E3F:
mov eax, [rbp+var_4]
add rsp, 30h
pop rbp
retn
| long long my_b_flush_io_cache(long long a1, int a2)
{
unsigned int v3; // [rsp+8h] [rbp-28h]
bool v4; // [rsp+Fh] [rbp-21h]
long long v5; // [rsp+10h] [rbp-20h]
v4 = *(_DWORD *)(a1 + 176) == 3;
if ( *(_DWORD *)(a1 + 176) != 3 )
a2 = 0;
if ( *(_DWORD *)(a1 + 176) != 2 && *(_DWORD *)(a1 + 176) != 3 )
goto LABEL_22;
if ( *(_DWORD *)(a1 + 212) == -1 && (unsigned __int8)real_open_cached_file(a1) )
{
*(_DWORD *)(a1 + 228) = -1;
return (unsigned int)-1;
}
if ( a2 )
inline_mysql_mutex_lock_24(a1 + 80, "/workspace/llm4binary/github2025/eloqsql/mysys/mf_iocache.c", 1709LL);
v5 = *(_QWORD *)(a1 + 64) - *(_QWORD *)(a1 + 48);
if ( v5 )
{
if ( v4 )
{
if ( inline_mysql_file_write_3(
"/workspace/llm4binary/github2025/eloqsql/mysys/mf_iocache.c",
1716LL,
*(unsigned int *)(a1 + 212),
*(_QWORD *)(a1 + 48),
v5,
*(_QWORD *)(a1 + 248) | 4LL) )
{
*(_DWORD *)(a1 + 228) = -1;
return (unsigned int)-1;
}
*(_QWORD *)(a1 + 8) += *(_QWORD *)(a1 + 64) - *(_QWORD *)(a1 + 56);
*(_QWORD *)(a1 + 56) = *(_QWORD *)(a1 + 48);
}
else
{
v3 = (*(long long ( **)(long long, _QWORD, long long))(a1 + 168))(a1, *(_QWORD *)(a1 + 48), v5);
if ( v3 )
return v3;
if ( *(_QWORD *)(a1 + 8) < *(_QWORD *)a1 )
*(_QWORD *)(a1 + 8) = *(_QWORD *)a1;
}
*(_QWORD *)(a1 + 72) = *(_QWORD *)(a1 + 232)
+ *(_QWORD *)(a1 + 48)
- (((_WORD)v5 + (unsigned __int16)*(_QWORD *)a1) & 0xFFF);
*(_QWORD *)(a1 + 64) = *(_QWORD *)(a1 + 48);
++*(_QWORD *)(a1 + 184);
if ( a2 )
inline_mysql_mutex_unlock_25(a1 + 80);
return *(unsigned int *)(a1 + 228);
}
else
{
LABEL_22:
if ( a2 )
inline_mysql_mutex_unlock_25(a1 + 80);
return 0;
}
}
| my_b_flush_io_cache:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x30
MOV qword ptr [RBP + -0x10],RDI
MOV dword ptr [RBP + -0x14],ESI
MOV RAX,qword ptr [RBP + -0x10]
CMP dword ptr [RAX + 0xb0],0x3
SETZ AL
AND AL,0x1
MOVZX EAX,AL
MOV byte ptr [RBP + -0x21],AL
JMP 0x001e5c17
LAB_001e5c17:
CMP byte ptr [RBP + -0x21],0x0
JNZ 0x001e5c24
MOV dword ptr [RBP + -0x14],0x0
LAB_001e5c24:
MOV RAX,qword ptr [RBP + -0x10]
CMP dword ptr [RAX + 0xb0],0x2
JZ 0x001e5c3e
MOVSX EAX,byte ptr [RBP + -0x21]
CMP EAX,0x0
JZ 0x001e5e23
LAB_001e5c3e:
MOV RAX,qword ptr [RBP + -0x10]
CMP dword ptr [RAX + 0xd4],-0x1
JNZ 0x001e5c76
MOV RDI,qword ptr [RBP + -0x10]
CALL 0x0020e580
CMP AL,0x0
JZ 0x001e5c74
JMP 0x001e5c5a
LAB_001e5c5a:
MOV RAX,qword ptr [RBP + -0x10]
MOV dword ptr [RAX + 0xe4],0xffffffff
MOV dword ptr [RBP + -0x4],0xffffffff
JMP 0x001e5e3f
LAB_001e5c74:
JMP 0x001e5c76
LAB_001e5c76:
CMP dword ptr [RBP + -0x14],0x0
JZ 0x001e5c95
MOV RDI,qword ptr [RBP + -0x10]
ADD RDI,0x50
LEA RSI,[0x25f890]
MOV EDX,0x6ad
CALL 0x001e67d0
LAB_001e5c95:
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX + 0x40]
MOV RCX,qword ptr [RBP + -0x10]
MOV RCX,qword ptr [RCX + 0x30]
SUB RAX,RCX
MOV qword ptr [RBP + -0x20],RAX
CMP RAX,0x0
JZ 0x001e5e21
CMP byte ptr [RBP + -0x21],0x0
JZ 0x001e5d49
MOV RAX,qword ptr [RBP + -0x10]
MOV EDX,dword ptr [RAX + 0xd4]
MOV RAX,qword ptr [RBP + -0x10]
MOV RCX,qword ptr [RAX + 0x30]
MOV R8,qword ptr [RBP + -0x20]
MOV RAX,qword ptr [RBP + -0x10]
MOV R9,qword ptr [RAX + 0xf8]
OR R9,0x4
LEA RDI,[0x25f890]
MOV ESI,0x6b4
CALL 0x001e6c20
CMP RAX,0x0
JZ 0x001e5d16
MOV RAX,qword ptr [RBP + -0x10]
MOV dword ptr [RAX + 0xe4],0xffffffff
MOV dword ptr [RBP + -0x4],0xffffffff
JMP 0x001e5e3f
LAB_001e5d16:
MOV RAX,qword ptr [RBP + -0x10]
MOV RCX,qword ptr [RAX + 0x40]
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX + 0x38]
SUB RCX,RAX
MOV RAX,qword ptr [RBP + -0x10]
ADD RCX,qword ptr [RAX + 0x8]
MOV qword ptr [RAX + 0x8],RCX
MOV RAX,qword ptr [RBP + -0x10]
MOV RCX,qword ptr [RAX + 0x30]
MOV RAX,qword ptr [RBP + -0x10]
MOV qword ptr [RAX + 0x38],RCX
JMP 0x001e5d47
LAB_001e5d47:
JMP 0x001e5da2
LAB_001e5d49:
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX + 0xa8]
MOV RDI,qword ptr [RBP + -0x10]
MOV RCX,qword ptr [RBP + -0x10]
MOV RSI,qword ptr [RCX + 0x30]
MOV RDX,qword ptr [RBP + -0x20]
CALL RAX
MOV dword ptr [RBP + -0x28],EAX
CMP dword ptr [RBP + -0x28],0x0
JZ 0x001e5d7c
JMP 0x001e5d71
LAB_001e5d71:
MOV EAX,dword ptr [RBP + -0x28]
MOV dword ptr [RBP + -0x4],EAX
JMP 0x001e5e3f
LAB_001e5d7c:
JMP 0x001e5d7e
LAB_001e5d7e:
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX + 0x8]
MOV RCX,qword ptr [RBP + -0x10]
CMP RAX,qword ptr [RCX]
JNC 0x001e5d9e
MOV RAX,qword ptr [RBP + -0x10]
MOV RCX,qword ptr [RAX]
MOV RAX,qword ptr [RBP + -0x10]
MOV qword ptr [RAX + 0x8],RCX
LAB_001e5d9e:
JMP 0x001e5da0
LAB_001e5da0:
JMP 0x001e5da2
LAB_001e5da2:
MOV RAX,qword ptr [RBP + -0x10]
MOV RCX,qword ptr [RAX + 0x30]
MOV RAX,qword ptr [RBP + -0x10]
ADD RCX,qword ptr [RAX + 0xe8]
MOV RAX,qword ptr [RBP + -0x10]
MOV RDX,qword ptr [RAX]
ADD RDX,qword ptr [RBP + -0x20]
AND RDX,0xfff
XOR EAX,EAX
SUB RAX,RDX
ADD RCX,RAX
MOV RAX,qword ptr [RBP + -0x10]
MOV qword ptr [RAX + 0x48],RCX
MOV RAX,qword ptr [RBP + -0x10]
MOV RCX,qword ptr [RAX + 0x30]
MOV RAX,qword ptr [RBP + -0x10]
MOV qword ptr [RAX + 0x40],RCX
MOV RAX,qword ptr [RBP + -0x10]
MOV RCX,qword ptr [RAX + 0xb8]
ADD RCX,0x1
MOV qword ptr [RAX + 0xb8],RCX
CMP dword ptr [RBP + -0x14],0x0
JZ 0x001e5e10
MOV RDI,qword ptr [RBP + -0x10]
ADD RDI,0x50
CALL 0x001e6900
LAB_001e5e10:
JMP 0x001e5e12
LAB_001e5e12:
MOV RAX,qword ptr [RBP + -0x10]
MOV EAX,dword ptr [RAX + 0xe4]
MOV dword ptr [RBP + -0x4],EAX
JMP 0x001e5e3f
LAB_001e5e21:
JMP 0x001e5e23
LAB_001e5e23:
CMP dword ptr [RBP + -0x14],0x0
JZ 0x001e5e36
MOV RDI,qword ptr [RBP + -0x10]
ADD RDI,0x50
CALL 0x001e6900
LAB_001e5e36:
JMP 0x001e5e38
LAB_001e5e38:
MOV dword ptr [RBP + -0x4],0x0
LAB_001e5e3f:
MOV EAX,dword ptr [RBP + -0x4]
ADD RSP,0x30
POP RBP
RET
|
int my_b_flush_io_cache(ulong *param_1,int param_2)
{
char cVar1;
int iVar2;
long lVar3;
long lVar4;
bool bVar5;
int local_1c;
bVar5 = (int)param_1[0x16] == 3;
local_1c = param_2;
if (!bVar5) {
local_1c = 0;
}
if (((int)param_1[0x16] == 2) || (bVar5)) {
if ((*(int *)((long)param_1 + 0xd4) == -1) &&
(cVar1 = real_open_cached_file(param_1), cVar1 != '\0')) {
*(int4 *)((long)param_1 + 0xe4) = 0xffffffff;
return -1;
}
if (local_1c != 0) {
inline_mysql_mutex_lock
(param_1 + 10,"/workspace/llm4binary/github2025/eloqsql/mysys/mf_iocache.c",0x6ad);
}
lVar3 = param_1[8] - param_1[6];
if (lVar3 != 0) {
if (bVar5) {
lVar4 = inline_mysql_file_write
("/workspace/llm4binary/github2025/eloqsql/mysys/mf_iocache.c",0x6b4,
*(int4 *)((long)param_1 + 0xd4),param_1[6],lVar3,param_1[0x1f] | 4)
;
if (lVar4 != 0) {
*(int4 *)((long)param_1 + 0xe4) = 0xffffffff;
return -1;
}
param_1[1] = (param_1[8] - param_1[7]) + param_1[1];
param_1[7] = param_1[6];
}
else {
iVar2 = (*(code *)param_1[0x15])(param_1,param_1[6],lVar3);
if (iVar2 != 0) {
return iVar2;
}
if (param_1[1] < *param_1) {
param_1[1] = *param_1;
}
}
param_1[9] = (param_1[6] + param_1[0x1d]) - (*param_1 + lVar3 & 0xfff);
param_1[8] = param_1[6];
param_1[0x17] = param_1[0x17] + 1;
if (local_1c != 0) {
inline_mysql_mutex_unlock(param_1 + 10);
}
return *(int *)((long)param_1 + 0xe4);
}
}
if (local_1c != 0) {
inline_mysql_mutex_unlock(param_1 + 10);
}
return 0;
}
| |
45,239 | my_b_flush_io_cache | eloqsql/mysys/mf_iocache.c | int my_b_flush_io_cache(IO_CACHE *info, int need_append_buffer_lock)
{
size_t length;
my_bool append_cache= (info->type == SEQ_READ_APPEND);
DBUG_ENTER("my_b_flush_io_cache");
DBUG_PRINT("enter", ("cache: %p", info));
if (!append_cache)
need_append_buffer_lock= 0;
if (info->type == WRITE_CACHE || append_cache)
{
if (info->file == -1)
{
if (real_open_cached_file(info))
DBUG_RETURN((info->error= -1));
}
LOCK_APPEND_BUFFER;
if ((length=(size_t) (info->write_pos - info->write_buffer)))
{
if (append_cache)
{
if (mysql_file_write(info->file, info->write_buffer, length,
info->myflags | MY_NABP))
{
info->error= -1;
DBUG_RETURN(-1);
}
info->end_of_file+= info->write_pos - info->append_read_pos;
info->append_read_pos= info->write_buffer;
DBUG_ASSERT(info->end_of_file == mysql_file_tell(info->file, MYF(0)));
}
else
{
int res= info->write_function(info, info->write_buffer, length);
if (res)
DBUG_RETURN(res);
set_if_bigger(info->end_of_file, info->pos_in_file);
}
info->write_end= (info->write_buffer + info->buffer_length -
((info->pos_in_file + length) & (IO_SIZE - 1)));
info->write_pos= info->write_buffer;
++info->disk_writes;
UNLOCK_APPEND_BUFFER;
DBUG_RETURN(info->error);
}
}
UNLOCK_APPEND_BUFFER;
DBUG_RETURN(0);
} | O3 | c | my_b_flush_io_cache:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x58, %rsp
movl %esi, %r14d
movq %rdi, %rbx
movl 0xb0(%rdi), %r15d
xorl %r12d, %r12d
cmpl $0x3, %r15d
cmovnel %r12d, %r14d
movl %r15d, %eax
andl $-0x2, %eax
cmpl $0x2, %eax
jne 0x9a43a
cmpl $-0x1, 0xd4(%rbx)
je 0x9a464
testl %r14d, %r14d
je 0x9a3b6
leaq 0x50(%rbx), %rdi
cmpq $0x0, 0x90(%rbx)
jne 0x9a527
callq 0x2a1f0
movq 0x30(%rbx), %r13
movq 0x40(%rbx), %rax
subq %r13, %rax
je 0x9a43a
cmpl $0x3, %r15d
jne 0x9a486
movq %rax, -0x30(%rbp)
movl 0xd4(%rbx), %esi
movq 0xf8(%rbx), %r12
orq $0x4, %r12
leaq 0x2f6aef(%rip), %rax # 0x390ed8
movq (%rax), %rax
leaq -0x80(%rbp), %rdi
movl %esi, %r15d
movl $0x7, %edx
callq *0x158(%rax)
testq %rax, %rax
jne 0x9a53d
movl %r15d, %edi
movq %r13, %rsi
movq -0x30(%rbp), %rdx
movq %r12, %rcx
callq 0x303a4
movq %rax, %r12
testq %r12, %r12
jne 0x9a474
movq 0x40(%rbx), %rax
subq 0x38(%rbx), %rax
addq %rax, 0x8(%rbx)
movq (%rbx), %rax
movq 0x30(%rbx), %rcx
movq %rcx, 0x38(%rbx)
jmp 0x9a4b0
testl %r14d, %r14d
je 0x9a500
movq 0x90(%rbx), %rdi
addq $0x50, %rbx
testq %rdi, %rdi
jne 0x9a512
movq %rbx, %rdi
callq 0x2a1c0
jmp 0x9a500
movq %rbx, %rdi
callq 0xb1066
testb %al, %al
je 0x9a39a
movl $0xffffffff, 0xe4(%rbx) # imm = 0xFFFFFFFF
movl $0xffffffff, %r12d # imm = 0xFFFFFFFF
jmp 0x9a500
movq %rbx, %rdi
movq %r13, %rsi
movq %rax, %r15
movq %rax, %rdx
callq *0xa8(%rbx)
movl %eax, %r12d
testl %eax, %eax
jne 0x9a500
movq %r15, -0x30(%rbp)
movq (%rbx), %rax
cmpq %rax, 0x8(%rbx)
jae 0x9a4b0
movq %rax, 0x8(%rbx)
movq 0x30(%rbx), %rcx
movq 0xe8(%rbx), %rdx
addq %rcx, %rdx
addl -0x30(%rbp), %eax
andl $0xfff, %eax # imm = 0xFFF
incq 0xb8(%rbx)
subq %rax, %rdx
movq %rdx, 0x48(%rbx)
movq %rcx, 0x40(%rbx)
testl %r14d, %r14d
je 0x9a4f9
leaq 0x50(%rbx), %r14
movq 0x90(%rbx), %rdi
testq %rdi, %rdi
jne 0x9a5a1
movq %r14, %rdi
callq 0x2a1c0
movl 0xe4(%rbx), %r12d
movl %r12d, %eax
addq $0x58, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x2f69bf(%rip), %rax # 0x390ed8
movq (%rax), %rax
callq *0x160(%rax)
jmp 0x9a457
leaq 0x4a41d(%rip), %rsi # 0xe494b
movl $0x6ad, %edx # imm = 0x6AD
callq 0x2ff2f
jmp 0x9a3b6
movq %rax, %rcx
leaq 0x2f6991(%rip), %rax # 0x390ed8
movq (%rax), %rax
leaq 0x4a3fa(%rip), %rdx # 0xe494b
movq %rcx, -0x38(%rbp)
movq %rcx, %rdi
movq -0x30(%rbp), %rsi
movl $0x6b4, %ecx # imm = 0x6B4
callq *0x210(%rax)
movl %r15d, %edi
movq %r13, %rsi
movq -0x30(%rbp), %r15
movq %r15, %rdx
movq %r12, %rcx
callq 0x303a4
movq %rax, %r12
xorl %esi, %esi
testq %rax, %rax
cmoveq %r15, %rsi
leaq 0x2f6949(%rip), %rax # 0x390ed8
movq (%rax), %rax
movq -0x38(%rbp), %rdi
callq *0x218(%rax)
jmp 0x9a41c
leaq 0x2f6930(%rip), %rax # 0x390ed8
movq (%rax), %rax
callq *0x160(%rax)
jmp 0x9a4f1
| my_b_flush_io_cache:
push rbp
mov rbp, rsp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 58h
mov r14d, esi
mov rbx, rdi
mov r15d, [rdi+0B0h]
xor r12d, r12d
cmp r15d, 3
cmovnz r14d, r12d
mov eax, r15d
and eax, 0FFFFFFFEh
cmp eax, 2
jnz loc_9A43A
cmp dword ptr [rbx+0D4h], 0FFFFFFFFh
jz loc_9A464
loc_9A39A:
test r14d, r14d
jz short loc_9A3B6
lea rdi, [rbx+50h]
cmp qword ptr [rbx+90h], 0
jnz loc_9A527
call _pthread_mutex_lock
loc_9A3B6:
mov r13, [rbx+30h]
mov rax, [rbx+40h]
sub rax, r13
jz short loc_9A43A
cmp r15d, 3
jnz loc_9A486
mov [rbp+var_30], rax
mov esi, [rbx+0D4h]
mov r12, [rbx+0F8h]
or r12, 4
lea rax, PSI_server
mov rax, [rax]
lea rdi, [rbp+var_80]
mov r15d, esi
mov edx, 7
call qword ptr [rax+158h]
test rax, rax
jnz loc_9A53D
mov edi, r15d
mov rsi, r13
mov rdx, [rbp+var_30]
mov rcx, r12
call my_write
mov r12, rax
loc_9A41C:
test r12, r12
jnz short loc_9A474
mov rax, [rbx+40h]
sub rax, [rbx+38h]
add [rbx+8], rax
mov rax, [rbx]
mov rcx, [rbx+30h]
mov [rbx+38h], rcx
jmp short loc_9A4B0
loc_9A43A:
test r14d, r14d
jz loc_9A500
mov rdi, [rbx+90h]
add rbx, 50h ; 'P'
test rdi, rdi
jnz loc_9A512
loc_9A457:
mov rdi, rbx
call _pthread_mutex_unlock
jmp loc_9A500
loc_9A464:
mov rdi, rbx
call real_open_cached_file
test al, al
jz loc_9A39A
loc_9A474:
mov dword ptr [rbx+0E4h], 0FFFFFFFFh
mov r12d, 0FFFFFFFFh
jmp short loc_9A500
loc_9A486:
mov rdi, rbx
mov rsi, r13
mov r15, rax
mov rdx, rax
call qword ptr [rbx+0A8h]
mov r12d, eax
test eax, eax
jnz short loc_9A500
mov [rbp+var_30], r15
mov rax, [rbx]
cmp [rbx+8], rax
jnb short loc_9A4B0
mov [rbx+8], rax
loc_9A4B0:
mov rcx, [rbx+30h]
mov rdx, [rbx+0E8h]
add rdx, rcx
add eax, dword ptr [rbp+var_30]
and eax, 0FFFh
inc qword ptr [rbx+0B8h]
sub rdx, rax
mov [rbx+48h], rdx
mov [rbx+40h], rcx
test r14d, r14d
jz short loc_9A4F9
lea r14, [rbx+50h]
mov rdi, [rbx+90h]
test rdi, rdi
jnz loc_9A5A1
loc_9A4F1:
mov rdi, r14
call _pthread_mutex_unlock
loc_9A4F9:
mov r12d, [rbx+0E4h]
loc_9A500:
mov eax, r12d
add rsp, 58h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
loc_9A512:
lea rax, PSI_server
mov rax, [rax]
call qword ptr [rax+160h]
jmp loc_9A457
loc_9A527:
lea rsi, aWorkspaceLlm4b_22; "/workspace/llm4binary/github2025/eloqsq"...
mov edx, 6ADh
call psi_mutex_lock
jmp loc_9A3B6
loc_9A53D:
mov rcx, rax
lea rax, PSI_server
mov rax, [rax]
lea rdx, aWorkspaceLlm4b_22; "/workspace/llm4binary/github2025/eloqsq"...
mov [rbp+var_38], rcx
mov rdi, rcx
mov rsi, [rbp+var_30]
mov ecx, 6B4h
call qword ptr [rax+210h]
mov edi, r15d
mov rsi, r13
mov r15, [rbp+var_30]
mov rdx, r15
mov rcx, r12
call my_write
mov r12, rax
xor esi, esi
test rax, rax
cmovz rsi, r15
lea rax, PSI_server
mov rax, [rax]
mov rdi, [rbp+var_38]
call qword ptr [rax+218h]
jmp loc_9A41C
loc_9A5A1:
lea rax, PSI_server
mov rax, [rax]
call qword ptr [rax+160h]
jmp loc_9A4F1
| long long my_b_flush_io_cache(long long *a1, int a2)
{
int v4; // r15d
unsigned int v5; // r12d
long long v6; // rdi
long long v7; // r13
long long v8; // rax
long long v9; // r12
unsigned int v10; // r15d
long long v11; // rax
long long v12; // r12
long long v13; // rax
long long v14; // rdi
long long *v15; // rbx
long long v16; // r15
long long v17; // rcx
long long v18; // rdx
long long v19; // rax
unsigned int v21; // edi
long long v22; // r15
long long v23; // rsi
_BYTE v24[72]; // [rsp+0h] [rbp-80h] BYREF
long long v25; // [rsp+48h] [rbp-38h]
long long v26; // [rsp+50h] [rbp-30h]
v4 = *((_DWORD *)a1 + 44);
v5 = 0;
if ( v4 != 3 )
a2 = 0;
if ( (v4 & 0xFFFFFFFE) != 2 )
goto LABEL_14;
if ( *((_DWORD *)a1 + 53) == -1 && (unsigned __int8)real_open_cached_file(a1) )
{
LABEL_19:
*((_DWORD *)a1 + 57) = -1;
return (unsigned int)-1;
}
if ( a2 )
{
v6 = (long long)(a1 + 10);
if ( a1[18] )
psi_mutex_lock(v6, (long long)"/workspace/llm4binary/github2025/eloqsql/mysys/mf_iocache.c", 0x6ADu);
else
pthread_mutex_lock(v6);
}
v7 = a1[6];
v8 = a1[8] - v7;
if ( v8 )
{
if ( v4 == 3 )
{
v26 = a1[8] - v7;
v9 = a1[31] | 4;
v10 = *((_DWORD *)a1 + 53);
v11 = ((long long ( *)(_BYTE *, _QWORD, long long))PSI_server[43])(v24, v10, 7LL);
if ( v11 )
{
v25 = v11;
((void ( *)(long long, long long, const char *, long long))PSI_server[66])(
v11,
v26,
"/workspace/llm4binary/github2025/eloqsql/mysys/mf_iocache.c",
1716LL);
v21 = v10;
v22 = v26;
v12 = my_write(v21, v7, v26, v9);
v23 = 0LL;
if ( !v12 )
v23 = v22;
((void ( *)(long long, long long))PSI_server[67])(v25, v23);
}
else
{
v12 = my_write(v10, v7, v26, v9);
}
if ( v12 )
goto LABEL_19;
a1[1] += a1[8] - a1[7];
v13 = *a1;
a1[7] = a1[6];
}
else
{
v16 = a1[8] - v7;
v5 = ((long long ( *)(long long *, long long, long long))a1[21])(a1, a1[6], v8);
if ( v5 )
return v5;
v26 = v16;
v13 = *a1;
if ( a1[1] < (unsigned long long)*a1 )
a1[1] = v13;
}
v17 = a1[6];
v18 = v17 + a1[29];
v19 = ((_WORD)v26 + (_WORD)v13) & 0xFFF;
++a1[23];
a1[9] = v18 - v19;
a1[8] = v17;
if ( a2 )
{
if ( a1[18] )
PSI_server[44]();
pthread_mutex_unlock(a1 + 10);
}
return *((unsigned int *)a1 + 57);
}
else
{
LABEL_14:
if ( a2 )
{
v14 = a1[18];
v15 = a1 + 10;
if ( v14 )
PSI_server[44]();
pthread_mutex_unlock(v15);
}
}
return v5;
}
| my_b_flush_io_cache:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x58
MOV R14D,ESI
MOV RBX,RDI
MOV R15D,dword ptr [RDI + 0xb0]
XOR R12D,R12D
CMP R15D,0x3
CMOVNZ R14D,R12D
MOV EAX,R15D
AND EAX,0xfffffffe
CMP EAX,0x2
JNZ 0x0019a43a
CMP dword ptr [RBX + 0xd4],-0x1
JZ 0x0019a464
LAB_0019a39a:
TEST R14D,R14D
JZ 0x0019a3b6
LEA RDI,[RBX + 0x50]
CMP qword ptr [RBX + 0x90],0x0
JNZ 0x0019a527
CALL 0x0012a1f0
LAB_0019a3b6:
MOV R13,qword ptr [RBX + 0x30]
MOV RAX,qword ptr [RBX + 0x40]
SUB RAX,R13
JZ 0x0019a43a
CMP R15D,0x3
JNZ 0x0019a486
MOV qword ptr [RBP + -0x30],RAX
MOV ESI,dword ptr [RBX + 0xd4]
MOV R12,qword ptr [RBX + 0xf8]
OR R12,0x4
LEA RAX,[0x490ed8]
MOV RAX,qword ptr [RAX]
LEA RDI,[RBP + -0x80]
MOV R15D,ESI
MOV EDX,0x7
CALL qword ptr [RAX + 0x158]
TEST RAX,RAX
JNZ 0x0019a53d
MOV EDI,R15D
MOV RSI,R13
MOV RDX,qword ptr [RBP + -0x30]
MOV RCX,R12
CALL 0x001303a4
MOV R12,RAX
LAB_0019a41c:
TEST R12,R12
JNZ 0x0019a474
MOV RAX,qword ptr [RBX + 0x40]
SUB RAX,qword ptr [RBX + 0x38]
ADD qword ptr [RBX + 0x8],RAX
MOV RAX,qword ptr [RBX]
MOV RCX,qword ptr [RBX + 0x30]
MOV qword ptr [RBX + 0x38],RCX
JMP 0x0019a4b0
LAB_0019a43a:
TEST R14D,R14D
JZ 0x0019a500
MOV RDI,qword ptr [RBX + 0x90]
ADD RBX,0x50
TEST RDI,RDI
JNZ 0x0019a512
LAB_0019a457:
MOV RDI,RBX
CALL 0x0012a1c0
JMP 0x0019a500
LAB_0019a464:
MOV RDI,RBX
CALL 0x001b1066
TEST AL,AL
JZ 0x0019a39a
LAB_0019a474:
MOV dword ptr [RBX + 0xe4],0xffffffff
MOV R12D,0xffffffff
JMP 0x0019a500
LAB_0019a486:
MOV RDI,RBX
MOV RSI,R13
MOV R15,RAX
MOV RDX,RAX
CALL qword ptr [RBX + 0xa8]
MOV R12D,EAX
TEST EAX,EAX
JNZ 0x0019a500
MOV qword ptr [RBP + -0x30],R15
MOV RAX,qword ptr [RBX]
CMP qword ptr [RBX + 0x8],RAX
JNC 0x0019a4b0
MOV qword ptr [RBX + 0x8],RAX
LAB_0019a4b0:
MOV RCX,qword ptr [RBX + 0x30]
MOV RDX,qword ptr [RBX + 0xe8]
ADD RDX,RCX
ADD EAX,dword ptr [RBP + -0x30]
AND EAX,0xfff
INC qword ptr [RBX + 0xb8]
SUB RDX,RAX
MOV qword ptr [RBX + 0x48],RDX
MOV qword ptr [RBX + 0x40],RCX
TEST R14D,R14D
JZ 0x0019a4f9
LEA R14,[RBX + 0x50]
MOV RDI,qword ptr [RBX + 0x90]
TEST RDI,RDI
JNZ 0x0019a5a1
LAB_0019a4f1:
MOV RDI,R14
CALL 0x0012a1c0
LAB_0019a4f9:
MOV R12D,dword ptr [RBX + 0xe4]
LAB_0019a500:
MOV EAX,R12D
ADD RSP,0x58
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
LAB_0019a512:
LEA RAX,[0x490ed8]
MOV RAX,qword ptr [RAX]
CALL qword ptr [RAX + 0x160]
JMP 0x0019a457
LAB_0019a527:
LEA RSI,[0x1e494b]
MOV EDX,0x6ad
CALL 0x0012ff2f
JMP 0x0019a3b6
LAB_0019a53d:
MOV RCX,RAX
LEA RAX,[0x490ed8]
MOV RAX,qword ptr [RAX]
LEA RDX,[0x1e494b]
MOV qword ptr [RBP + -0x38],RCX
MOV RDI,RCX
MOV RSI,qword ptr [RBP + -0x30]
MOV ECX,0x6b4
CALL qword ptr [RAX + 0x210]
MOV EDI,R15D
MOV RSI,R13
MOV R15,qword ptr [RBP + -0x30]
MOV RDX,R15
MOV RCX,R12
CALL 0x001303a4
MOV R12,RAX
XOR ESI,ESI
TEST RAX,RAX
CMOVZ RSI,R15
LEA RAX,[0x490ed8]
MOV RAX,qword ptr [RAX]
MOV RDI,qword ptr [RBP + -0x38]
CALL qword ptr [RAX + 0x218]
JMP 0x0019a41c
LAB_0019a5a1:
LEA RAX,[0x490ed8]
MOV RAX,qword ptr [RAX]
CALL qword ptr [RAX + 0x160]
JMP 0x0019a4f1
|
int my_b_flush_io_cache(ulong *param_1,int param_2)
{
uint uVar1;
int4 uVar2;
ulong uVar3;
char cVar4;
int iVar5;
long lVar6;
long lVar7;
ulong uVar8;
long lVar9;
int1 local_88 [72];
long local_40;
long local_38;
uVar1 = (uint)param_1[0x16];
if (uVar1 != 3) {
param_2 = 0;
}
if ((uVar1 & 0xfffffffe) == 2) {
if ((*(int *)((long)param_1 + 0xd4) == -1) &&
(cVar4 = real_open_cached_file(param_1), cVar4 != '\0')) {
LAB_0019a474:
*(int4 *)((long)param_1 + 0xe4) = 0xffffffff;
return -1;
}
if (param_2 != 0) {
if (param_1[0x12] == 0) {
pthread_mutex_lock((pthread_mutex_t *)(param_1 + 10));
}
else {
psi_mutex_lock((pthread_mutex_t *)(param_1 + 10),
"/workspace/llm4binary/github2025/eloqsql/mysys/mf_iocache.c",0x6ad);
}
}
uVar8 = param_1[6];
local_38 = param_1[8] - uVar8;
if (local_38 != 0) {
if (uVar1 == 3) {
uVar2 = *(int4 *)((long)param_1 + 0xd4);
uVar3 = param_1[0x1f];
lVar6 = (**(code **)(PSI_server + 0x158))(local_88,uVar2,7);
if (lVar6 == 0) {
lVar7 = my_write(uVar2,uVar8,local_38,uVar3 | 4);
}
else {
local_40 = lVar6;
(**(code **)(PSI_server + 0x210))
(lVar6,local_38,"/workspace/llm4binary/github2025/eloqsql/mysys/mf_iocache.c",
0x6b4);
lVar6 = local_38;
lVar7 = my_write(uVar2,uVar8,local_38,uVar3 | 4);
lVar9 = 0;
if (lVar7 == 0) {
lVar9 = lVar6;
}
(**(code **)(PSI_server + 0x218))(local_40,lVar9);
}
if (lVar7 != 0) goto LAB_0019a474;
param_1[1] = param_1[1] + (param_1[8] - param_1[7]);
uVar8 = *param_1;
param_1[7] = param_1[6];
}
else {
iVar5 = (*(code *)param_1[0x15])(param_1,uVar8,local_38);
if (iVar5 != 0) {
return iVar5;
}
uVar8 = *param_1;
if (param_1[1] < uVar8) {
param_1[1] = uVar8;
}
}
param_1[0x17] = param_1[0x17] + 1;
param_1[9] = (param_1[0x1d] + param_1[6]) - (ulong)((int)uVar8 + (int)local_38 & 0xfff);
param_1[8] = param_1[6];
if (param_2 != 0) {
if (param_1[0x12] != 0) {
(**(code **)(PSI_server + 0x160))();
}
pthread_mutex_unlock((pthread_mutex_t *)(param_1 + 10));
}
return *(int *)((long)param_1 + 0xe4);
}
}
if (param_2 != 0) {
if (param_1[0x12] != 0) {
(**(code **)(PSI_server + 0x160))();
}
pthread_mutex_unlock((pthread_mutex_t *)(param_1 + 10));
}
return 0;
}
| |
45,240 | my_strnncollsp_tis620 | eloqsql/strings/ctype-tis620.c | static
int my_strnncollsp_tis620(CHARSET_INFO * cs __attribute__((unused)),
const uchar *a0, size_t a_length,
const uchar *b0, size_t b_length)
{
uchar buf[80], *end, *a, *b, *alloced= NULL;
size_t length;
int res= 0;
a= buf;
if ((a_length + b_length +2) > (int) sizeof(buf))
alloced= a= (uchar*) my_malloc(PSI_INSTRUMENT_ME, a_length+b_length+2, MYF(MY_FAE));
b= a + a_length+1;
if (a_length)
memcpy((char*) a, (char*) a0, a_length);
a[a_length]= 0; /* if length(a0)> len1, need to put 'end of string' */
if (b_length)
memcpy((char *)b, (char *)b0, b_length);
b[b_length]= 0; /* put end of string */
a_length= thai2sortable(a, a_length);
b_length= thai2sortable(b, b_length);
end= a + (length= MY_MIN(a_length, b_length));
while (a < end)
{
if (*a++ != *b++)
{
res= ((int) a[-1] - (int) b[-1]);
goto ret;
}
}
res= a_length == b_length ? 0 :
a_length < b_length ?
-my_strnncollsp_padspace_bin(b, b_length - length) :
my_strnncollsp_padspace_bin(a, a_length - length);
ret:
if (alloced)
my_free(alloced);
return res;
} | O3 | c | my_strnncollsp_tis620:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x68, %rsp
movq %r8, %r14
movq %rcx, -0x90(%rbp)
movq %rdx, %r15
movq %rsi, %rbx
movq %fs:0x28, %rax
movq %rax, -0x30(%rbp)
leaq (%rdx,%r8), %rsi
addq $0x2, %rsi
cmpq $0x51, %rsi
jb 0x39ed8
movl $0x8, %edx
xorl %edi, %edi
callq 0x26401
movq %rax, %r12
movq %rax, -0x88(%rbp)
jmp 0x39ee7
movq $0x0, -0x88(%rbp)
leaq -0x80(%rbp), %r12
leaq (%r12,%r15), %r13
testq %r15, %r15
je 0x39efe
movq %r12, %rdi
movq %rbx, %rsi
movq %r15, %rdx
callq 0x24200
leaq (%r12,%r15), %rbx
incq %rbx
movb $0x0, (%r13)
testq %r14, %r14
je 0x39f21
movq %rbx, %rdi
movq -0x90(%rbp), %rsi
movq %r14, %rdx
callq 0x24200
movb $0x0, (%rbx,%r14)
movq %r12, %rdi
movq %r15, %rsi
callq 0x3a07f
movq %rbx, %rdi
movq %r14, %rsi
callq 0x3a07f
cmpq %r14, %r15
movq %r14, %rax
cmovbq %r15, %rax
leaq (%r12,%rax), %rcx
cmpq %rcx, %r12
jae 0x39f67
movzbl (%r12), %r13d
movzbl 0x1(%r12,%r15), %edx
incq %r12
cmpb %dl, %r13b
je 0x39f4a
subl %edx, %r13d
jmp 0x39f9c
xorl %r13d, %r13d
cmpq %r14, %r15
je 0x39f9c
jae 0x39f8b
leaq (%r15,%r12), %rdi
incq %rdi
subq %rax, %r14
movq %r14, %rsi
callq 0x2e595
movl %eax, %r13d
negl %r13d
jmp 0x39f9c
subq %rax, %r15
movq %r12, %rdi
movq %r15, %rsi
callq 0x2e595
movl %eax, %r13d
movq -0x88(%rbp), %rdi
testq %rdi, %rdi
je 0x39fad
callq 0x2662e
movq %fs:0x28, %rax
cmpq -0x30(%rbp), %rax
jne 0x39fce
movl %r13d, %eax
addq $0x68, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
callq 0x242e0
| my_strnncollsp_tis620:
push rbp
mov rbp, rsp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 68h
mov r14, r8
mov [rbp+var_90], rcx
mov r15, rdx
mov rbx, rsi
mov rax, fs:28h
mov [rbp+var_30], rax
lea rsi, [rdx+r8]
add rsi, 2
cmp rsi, 51h ; 'Q'
jb short loc_39ED8
mov edx, 8
xor edi, edi
call my_malloc
mov r12, rax
mov [rbp+var_88], rax
jmp short loc_39EE7
loc_39ED8:
mov [rbp+var_88], 0
lea r12, [rbp+var_80]
loc_39EE7:
lea r13, [r12+r15]
test r15, r15
jz short loc_39EFE
mov rdi, r12
mov rsi, rbx
mov rdx, r15
call _memcpy
loc_39EFE:
lea rbx, [r12+r15]
inc rbx
mov byte ptr [r13+0], 0
test r14, r14
jz short loc_39F21
mov rdi, rbx
mov rsi, [rbp+var_90]
mov rdx, r14
call _memcpy
loc_39F21:
mov byte ptr [rbx+r14], 0
mov rdi, r12
mov rsi, r15
call thai2sortable
mov rdi, rbx
mov rsi, r14
call thai2sortable
cmp r15, r14
mov rax, r14
cmovb rax, r15
lea rcx, [r12+rax]
loc_39F4A:
cmp r12, rcx
jnb short loc_39F67
movzx r13d, byte ptr [r12]
movzx edx, byte ptr [r12+r15+1]
inc r12
cmp r13b, dl
jz short loc_39F4A
sub r13d, edx
jmp short loc_39F9C
loc_39F67:
xor r13d, r13d
cmp r15, r14
jz short loc_39F9C
jnb short loc_39F8B
lea rdi, [r15+r12]
inc rdi
sub r14, rax
mov rsi, r14
call my_strnncollsp_padspace_bin
mov r13d, eax
neg r13d
jmp short loc_39F9C
loc_39F8B:
sub r15, rax
mov rdi, r12
mov rsi, r15
call my_strnncollsp_padspace_bin
mov r13d, eax
loc_39F9C:
mov rdi, [rbp+var_88]
test rdi, rdi
jz short loc_39FAD
call my_free
loc_39FAD:
mov rax, fs:28h
cmp rax, [rbp+var_30]
jnz short loc_39FCE
mov eax, r13d
add rsp, 68h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
loc_39FCE:
call ___stack_chk_fail
| long long my_strnncollsp_tis620(long long a1, long long a2, unsigned long long a3, long long a4, unsigned long long a5)
{
unsigned long long v8; // rsi
unsigned __int8 *v9; // r12
unsigned long long v10; // rax
unsigned __int8 *v11; // rcx
int v12; // r13d
int v13; // edx
unsigned int v14; // r13d
long long v17; // [rsp+8h] [rbp-88h]
char v18; // [rsp+10h] [rbp-80h] BYREF
unsigned long long v19; // [rsp+60h] [rbp-30h]
v19 = __readfsqword(0x28u);
v8 = a3 + a5 + 2;
if ( v8 < 0x51 )
{
v17 = 0LL;
v9 = (unsigned __int8 *)&v18;
}
else
{
v9 = (unsigned __int8 *)my_malloc(0, v8, 8);
v17 = (long long)v9;
}
if ( a3 )
memcpy(v9, a2, a3);
v9[a3] = 0;
if ( a5 )
memcpy(&v9[a3 + 1], a4, a5);
v9[a3 + 1 + a5] = 0;
thai2sortable(v9, a3);
thai2sortable(&v9[a3 + 1], a5);
v10 = a5;
if ( a3 < a5 )
v10 = a3;
v11 = &v9[v10];
while ( v9 < v11 )
{
v12 = *v9;
v13 = v9[a3 + 1];
++v9;
if ( (_BYTE)v12 != (_BYTE)v13 )
{
v14 = v12 - v13;
goto LABEL_18;
}
}
v14 = 0;
if ( a3 != a5 )
{
if ( a3 >= a5 )
v14 = my_strnncollsp_padspace_bin((long long)v9, a3 - v10);
else
v14 = -(int)my_strnncollsp_padspace_bin((long long)&v9[a3 + 1], a5 - v10);
}
LABEL_18:
if ( v17 )
my_free(v17);
return v14;
}
| my_strnncollsp_tis620:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x68
MOV R14,R8
MOV qword ptr [RBP + -0x90],RCX
MOV R15,RDX
MOV RBX,RSI
MOV RAX,qword ptr FS:[0x28]
MOV qword ptr [RBP + -0x30],RAX
LEA RSI,[RDX + R8*0x1]
ADD RSI,0x2
CMP RSI,0x51
JC 0x00139ed8
MOV EDX,0x8
XOR EDI,EDI
CALL 0x00126401
MOV R12,RAX
MOV qword ptr [RBP + -0x88],RAX
JMP 0x00139ee7
LAB_00139ed8:
MOV qword ptr [RBP + -0x88],0x0
LEA R12,[RBP + -0x80]
LAB_00139ee7:
LEA R13,[R12 + R15*0x1]
TEST R15,R15
JZ 0x00139efe
MOV RDI,R12
MOV RSI,RBX
MOV RDX,R15
CALL 0x00124200
LAB_00139efe:
LEA RBX,[R12 + R15*0x1]
INC RBX
MOV byte ptr [R13],0x0
TEST R14,R14
JZ 0x00139f21
MOV RDI,RBX
MOV RSI,qword ptr [RBP + -0x90]
MOV RDX,R14
CALL 0x00124200
LAB_00139f21:
MOV byte ptr [RBX + R14*0x1],0x0
MOV RDI,R12
MOV RSI,R15
CALL 0x0013a07f
MOV RDI,RBX
MOV RSI,R14
CALL 0x0013a07f
CMP R15,R14
MOV RAX,R14
CMOVC RAX,R15
LEA RCX,[R12 + RAX*0x1]
LAB_00139f4a:
CMP R12,RCX
JNC 0x00139f67
MOVZX R13D,byte ptr [R12]
MOVZX EDX,byte ptr [R12 + R15*0x1 + 0x1]
INC R12
CMP R13B,DL
JZ 0x00139f4a
SUB R13D,EDX
JMP 0x00139f9c
LAB_00139f67:
XOR R13D,R13D
CMP R15,R14
JZ 0x00139f9c
JNC 0x00139f8b
LEA RDI,[R15 + R12*0x1]
INC RDI
SUB R14,RAX
MOV RSI,R14
CALL 0x0012e595
MOV R13D,EAX
NEG R13D
JMP 0x00139f9c
LAB_00139f8b:
SUB R15,RAX
MOV RDI,R12
MOV RSI,R15
CALL 0x0012e595
MOV R13D,EAX
LAB_00139f9c:
MOV RDI,qword ptr [RBP + -0x88]
TEST RDI,RDI
JZ 0x00139fad
CALL 0x0012662e
LAB_00139fad:
MOV RAX,qword ptr FS:[0x28]
CMP RAX,qword ptr [RBP + -0x30]
JNZ 0x00139fce
MOV EAX,R13D
ADD RSP,0x68
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
LAB_00139fce:
CALL 0x001242e0
|
int my_strnncollsp_tis620
(int8 param_1,void *param_2,ulong param_3,void *param_4,ulong param_5)
{
byte *pbVar1;
byte bVar2;
byte *__dest;
byte *pbVar3;
ulong uVar4;
int iVar5;
long in_FS_OFFSET;
byte *local_90;
byte local_88 [80];
long local_38;
local_38 = *(long *)(in_FS_OFFSET + 0x28);
uVar4 = param_3 + param_5 + 2;
if (uVar4 < 0x51) {
local_90 = (byte *)0x0;
__dest = local_88;
}
else {
__dest = (byte *)my_malloc(0,uVar4,8);
local_90 = __dest;
}
if (param_3 != 0) {
memcpy(__dest,param_2,param_3);
}
pbVar3 = __dest + param_3 + 1;
__dest[param_3] = 0;
if (param_5 != 0) {
memcpy(pbVar3,param_4,param_5);
}
pbVar3[param_5] = 0;
thai2sortable(__dest,param_3);
thai2sortable(pbVar3,param_5);
uVar4 = param_5;
if (param_3 < param_5) {
uVar4 = param_3;
}
pbVar3 = __dest + uVar4;
do {
if (pbVar3 <= __dest) {
iVar5 = 0;
if (param_3 != param_5) {
if (param_3 < param_5) {
iVar5 = my_strnncollsp_padspace_bin(__dest + param_3 + 1,param_5 - uVar4);
iVar5 = -iVar5;
}
else {
iVar5 = my_strnncollsp_padspace_bin(__dest,param_3 - uVar4);
}
}
goto LAB_00139f9c;
}
bVar2 = *__dest;
pbVar1 = __dest + param_3 + 1;
__dest = __dest + 1;
} while (bVar2 == *pbVar1);
iVar5 = (uint)bVar2 - (uint)*pbVar1;
LAB_00139f9c:
if (local_90 != (byte *)0x0) {
my_free();
}
if (*(long *)(in_FS_OFFSET + 0x28) == local_38) {
return iVar5;
}
/* WARNING: Subroutine does not return */
__stack_chk_fail();
}
| |
45,241 | void fmt::v11::detail::format_hexfloat<long double, 0>(long double, fmt::v11::format_specs, fmt::v11::detail::buffer<char>&) | zkingston[P]unknot/build_O1/_deps/fmt-src/include/fmt/format.h | FMT_CONSTEXPR20 void format_hexfloat(Float value, format_specs specs,
buffer<char>& buf) {
// float is passed as double to reduce the number of instantiations and to
// simplify implementation.
static_assert(!std::is_same<Float, float>::value, "");
using info = dragonbox::float_info<Float>;
// Assume Float is in the format [sign][exponent][significand].
using carrier_uint = typename info::carrier_uint;
const auto num_float_significand_bits = detail::num_significand_bits<Float>();
basic_fp<carrier_uint> f(value);
f.e += num_float_significand_bits;
if (!has_implicit_bit<Float>()) --f.e;
const auto num_fraction_bits =
num_float_significand_bits + (has_implicit_bit<Float>() ? 1 : 0);
const auto num_xdigits = (num_fraction_bits + 3) / 4;
const auto leading_shift = ((num_xdigits - 1) * 4);
const auto leading_mask = carrier_uint(0xF) << leading_shift;
const auto leading_xdigit =
static_cast<uint32_t>((f.f & leading_mask) >> leading_shift);
if (leading_xdigit > 1) f.e -= (32 - countl_zero(leading_xdigit) - 1);
int print_xdigits = num_xdigits - 1;
if (specs.precision >= 0 && print_xdigits > specs.precision) {
const int shift = ((print_xdigits - specs.precision - 1) * 4);
const auto mask = carrier_uint(0xF) << shift;
const auto v = static_cast<uint32_t>((f.f & mask) >> shift);
if (v >= 8) {
const auto inc = carrier_uint(1) << (shift + 4);
f.f += inc;
f.f &= ~(inc - 1);
}
// Check long double overflow
if (!has_implicit_bit<Float>()) {
const auto implicit_bit = carrier_uint(1) << num_float_significand_bits;
if ((f.f & implicit_bit) == implicit_bit) {
f.f >>= 4;
f.e += 4;
}
}
print_xdigits = specs.precision;
}
char xdigits[num_bits<carrier_uint>() / 4];
detail::fill_n(xdigits, sizeof(xdigits), '0');
format_base2e(4, xdigits, f.f, num_xdigits, specs.upper());
// Remove zero tail
while (print_xdigits > 0 && xdigits[print_xdigits] == '0') --print_xdigits;
buf.push_back('0');
buf.push_back(specs.upper() ? 'X' : 'x');
buf.push_back(xdigits[0]);
if (specs.alt() || print_xdigits > 0 || print_xdigits < specs.precision)
buf.push_back('.');
buf.append(xdigits + 1, xdigits + 1 + print_xdigits);
for (; print_xdigits < specs.precision; ++print_xdigits) buf.push_back('0');
buf.push_back(specs.upper() ? 'P' : 'p');
uint32_t abs_e;
if (f.e < 0) {
buf.push_back('-');
abs_e = static_cast<uint32_t>(-f.e);
} else {
buf.push_back('+');
abs_e = static_cast<uint32_t>(f.e);
}
format_decimal<char>(appender(buf), abs_e, detail::count_digits(abs_e));
} | O1 | c | void fmt::v11::detail::format_hexfloat<long double, 0>(long double, fmt::v11::format_specs, fmt::v11::detail::buffer<char>&):
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x38, %rsp
movq %rdx, %rbx
movq %rdi, %r15
movq %rsi, %r12
shrq $0x20, %r12
movq 0x70(%rsp), %rax
movzwl 0x78(%rsp), %ecx
xorl %edx, %edx
andl $0x7fff, %ecx # imm = 0x7FFF
movq %rax, %rdi
shrq $0x3c, %rdi
bsrl %edi, %r14d
xorl $0x1f, %r14d
addl $-0x1f, %r14d
cmpl $0x2, %edi
cmovbl %edx, %r14d
cmpl $0x1, %ecx
adcl %ecx, %r14d
addl $0xffffc001, %r14d # imm = 0xFFFFC001
testq %rsi, %rsi
sets %cl
cmpl $0xf, %r12d
setge %sil
orb %cl, %sil
jne 0x439c1
xorl %edx, %edx
leal (,%r12,4), %esi
movb $0x38, %cl
subb %sil, %cl
movq %rax, %rdi
shrdq %cl, %rdx, %rdi
testb $0x40, %cl
cmovneq %rdx, %rdi
testb $0x8, %dil
je 0x439a5
movb $0x3c, %cl
subb %sil, %cl
movl $0x1, %esi
xorl %edi, %edi
shldq %cl, %rsi, %rdi
shlq %cl, %rsi
xorl %edx, %edx
testb $0x40, %cl
cmovneq %rsi, %rdi
cmovneq %rdx, %rsi
addq %rsi, %rax
movq %rdi, %rcx
adcq $0x0, %rcx
negq %rsi
sbbq %rdi, %rdx
andq %rcx, %rdx
andq %rsi, %rax
movl %edx, %esi
andl $0x1, %esi
leal (,%rsi,4), %ecx
shrdq %cl, %rdx, %rax
shrq %cl, %rdx
leal (%r14,%rsi,4), %r14d
movl %r12d, %r13d
jmp 0x439c7
movl $0xf, %r13d
movaps 0x24fc62(%rip), %xmm0 # 0x293630
leaq 0x1f(%rsp), %rcx
movaps %xmm0, 0x1(%rcx)
movaps %xmm0, -0xf(%rcx)
btl $0xc, %r15d
leaq 0x24ff37(%rip), %rdi # 0x29391e
leaq 0x24ca62(%rip), %rsi # 0x290450
cmovaeq %rdi, %rsi
movl $0xf, %edi
movq %rdx, %r8
movl %eax, %r9d
andl $0xf, %r9d
movb (%rsi,%r9), %r9b
movb %r9b, (%rcx)
movq %rdx, %r9
shldq $0x3c, %rax, %r9
shrq $0x4, %r8
decq %rcx
cmpq %rax, %rdi
movl $0x0, %eax
sbbq %rdx, %rax
movq %r9, %rax
movq %r8, %rdx
jb 0x439fa
testl %r13d, %r13d
setg %bpl
jle 0x43a57
movl %r13d, %eax
cmpb $0x30, 0x10(%rsp,%rax)
jne 0x43a57
cmpl $0x2, %r13d
setge %bpl
jl 0x43a54
decl %r13d
cmpb $0x30, 0x10(%rsp,%r13)
je 0x43a3d
jmp 0x43a57
xorl %r13d, %r13d
movq 0x8(%rbx), %rsi
incq %rsi
cmpq %rsi, 0x10(%rbx)
jae 0x43a6a
movq %rbx, %rdi
callq *0x18(%rbx)
movq %r15, 0x8(%rsp)
btl $0xc, %r15d
setae %r15b
movq (%rbx), %rax
movq 0x8(%rbx), %rcx
leaq 0x1(%rcx), %rdx
movq %rdx, 0x8(%rbx)
movb $0x30, (%rax,%rcx)
shlb $0x5, %r15b
orb $0x58, %r15b
movq 0x8(%rbx), %rsi
incq %rsi
cmpq %rsi, 0x10(%rbx)
jae 0x43aa6
movq %rbx, %rdi
callq *0x18(%rbx)
movq (%rbx), %rax
movq 0x8(%rbx), %rcx
leaq 0x1(%rcx), %rdx
movq %rdx, 0x8(%rbx)
movb %r15b, (%rax,%rcx)
movq 0x8(%rbx), %rsi
incq %rsi
cmpq %rsi, 0x10(%rbx)
jae 0x43acc
movq %rbx, %rdi
callq *0x18(%rbx)
movb 0x10(%rsp), %al
movq (%rbx), %rcx
movq 0x8(%rbx), %rdx
leaq 0x1(%rdx), %rsi
movq %rsi, 0x8(%rbx)
movb %al, (%rcx,%rdx)
movq 0x8(%rsp), %r15
movl %r15d, %eax
shrl $0xd, %eax
andl $0x1, %eax
cmpl %r13d, %r12d
setg %cl
orb %al, %bpl
orb %cl, %bpl
cmpb $0x1, %bpl
jne 0x43b28
movq 0x8(%rbx), %rsi
incq %rsi
cmpq %rsi, 0x10(%rbx)
jae 0x43b15
movq %rbx, %rdi
callq *0x18(%rbx)
movq (%rbx), %rax
movq 0x8(%rbx), %rcx
leaq 0x1(%rcx), %rdx
movq %rdx, 0x8(%rbx)
movb $0x2e, (%rax,%rcx)
leaq 0x11(%rsp), %rsi
movslq %r13d, %rax
leaq (%rsp,%rax), %rdx
addq $0x11, %rdx
movq %rbx, %rdi
callq 0x3f992
subl %r13d, %r12d
jle 0x43b70
movq 0x8(%rbx), %rsi
incq %rsi
cmpq %rsi, 0x10(%rbx)
jae 0x43b58
movq %rbx, %rdi
callq *0x18(%rbx)
movq (%rbx), %rax
movq 0x8(%rbx), %rcx
leaq 0x1(%rcx), %rdx
movq %rdx, 0x8(%rbx)
movb $0x30, (%rax,%rcx)
decl %r12d
jne 0x43b45
btl $0xc, %r15d
setae %bpl
shlb $0x5, %bpl
orb $0x50, %bpl
movq 0x8(%rbx), %rsi
incq %rsi
cmpq %rsi, 0x10(%rbx)
jae 0x43b94
movq %rbx, %rdi
callq *0x18(%rbx)
movq (%rbx), %rax
movq 0x8(%rbx), %rcx
leaq 0x1(%rcx), %rdx
movq %rdx, 0x8(%rbx)
movb %bpl, (%rax,%rcx)
movq 0x8(%rbx), %rsi
movq 0x10(%rbx), %rax
incq %rsi
testl %r14d, %r14d
js 0x43bd7
cmpq %rsi, %rax
jae 0x43bc2
movq %rbx, %rdi
callq *0x18(%rbx)
movq (%rbx), %rax
movq 0x8(%rbx), %rcx
leaq 0x1(%rcx), %rdx
movq %rdx, 0x8(%rbx)
movb $0x2b, (%rax,%rcx)
jmp 0x43bf8
cmpq %rsi, %rax
jae 0x43be2
movq %rbx, %rdi
callq *0x18(%rbx)
movq (%rbx), %rax
movq 0x8(%rbx), %rcx
leaq 0x1(%rcx), %rdx
movq %rdx, 0x8(%rbx)
movb $0x2d, (%rax,%rcx)
negl %r14d
movl %r14d, %eax
orl $0x1, %eax
bsrl %eax, %eax
leaq 0x24ff58(%rip), %rcx # 0x293b60
movl %r14d, %edx
addq (%rcx,%rax,8), %rdx
shrq $0x20, %rdx
movq %rbx, %rdi
movl %r14d, %esi
callq 0x3ff0e
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
| _ZN3fmt3v116detail15format_hexfloatIeTnNSt9enable_ifIXntsr16is_double_doubleIT_EE5valueEiE4typeELi0EEEvS4_NS0_12format_specsERNS1_6bufferIcEE:
push rbp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 38h
mov rbx, rdx
mov r15, rdi
mov r12, rsi
shr r12, 20h
mov rax, [rsp+68h+arg_0]
movzx ecx, [rsp+68h+arg_8]
xor edx, edx
and ecx, 7FFFh
mov rdi, rax
shr rdi, 3Ch
bsr r14d, edi
xor r14d, 1Fh
add r14d, 0FFFFFFE1h
cmp edi, 2
cmovb r14d, edx
cmp ecx, 1
adc r14d, ecx
add r14d, 0FFFFC001h
test rsi, rsi
sets cl
cmp r12d, 0Fh
setnl sil
or sil, cl
jnz short loc_439C1
xor edx, edx
lea esi, ds:0[r12*4]
mov cl, 38h ; '8'
sub cl, sil
mov rdi, rax
shrd rdi, rdx, cl
test cl, 40h
cmovnz rdi, rdx
test dil, 8
jz short loc_439A5
mov cl, 3Ch ; '<'
sub cl, sil
mov esi, 1
xor edi, edi
shld rdi, rsi, cl
shl rsi, cl
xor edx, edx
test cl, 40h
cmovnz rdi, rsi
cmovnz rsi, rdx
add rax, rsi
mov rcx, rdi
adc rcx, 0
neg rsi
sbb rdx, rdi
and rdx, rcx
and rax, rsi
loc_439A5:
mov esi, edx
and esi, 1
lea ecx, ds:0[rsi*4]
shrd rax, rdx, cl
shr rdx, cl
lea r14d, [r14+rsi*4]
mov r13d, r12d
jmp short loc_439C7
loc_439C1:
mov r13d, 0Fh
loc_439C7:
movaps xmm0, cs:xmmword_293630
lea rcx, [rsp+68h+var_49]
movaps xmmword ptr [rcx+1], xmm0
movaps xmmword ptr [rcx-0Fh], xmm0
bt r15d, 0Ch
lea rdi, a0123456789abcd_0; "0123456789abcdef"
lea rsi, a0123456789abcd; "0123456789ABCDEF"
cmovnb rsi, rdi
mov edi, 0Fh
mov r8, rdx
loc_439FA:
mov r9d, eax
and r9d, 0Fh
mov r9b, [rsi+r9]
mov [rcx], r9b
mov r9, rdx
shld r9, rax, 3Ch
shr r8, 4
dec rcx
cmp rdi, rax
mov eax, 0
sbb rax, rdx
mov rax, r9
mov rdx, r8
jb short loc_439FA
test r13d, r13d
setnle bpl
jle short loc_43A57
mov eax, r13d
cmp [rsp+rax+68h+var_58], 30h ; '0'
jnz short loc_43A57
loc_43A3D:
cmp r13d, 2
setnl bpl
jl short loc_43A54
dec r13d
cmp [rsp+r13+68h+var_58], 30h ; '0'
jz short loc_43A3D
jmp short loc_43A57
loc_43A54:
xor r13d, r13d
loc_43A57:
mov rsi, [rbx+8]
inc rsi
cmp [rbx+10h], rsi
jnb short loc_43A6A
mov rdi, rbx
call qword ptr [rbx+18h]
loc_43A6A:
mov [rsp+68h+var_60], r15
bt r15d, 0Ch
setnb r15b
mov rax, [rbx]
mov rcx, [rbx+8]
lea rdx, [rcx+1]
mov [rbx+8], rdx
mov byte ptr [rax+rcx], 30h ; '0'
shl r15b, 5
or r15b, 58h
mov rsi, [rbx+8]
inc rsi
cmp [rbx+10h], rsi
jnb short loc_43AA6
mov rdi, rbx
call qword ptr [rbx+18h]
loc_43AA6:
mov rax, [rbx]
mov rcx, [rbx+8]
lea rdx, [rcx+1]
mov [rbx+8], rdx
mov [rax+rcx], r15b
mov rsi, [rbx+8]
inc rsi
cmp [rbx+10h], rsi
jnb short loc_43ACC
mov rdi, rbx
call qword ptr [rbx+18h]
loc_43ACC:
mov al, [rsp+68h+var_58]
mov rcx, [rbx]
mov rdx, [rbx+8]
lea rsi, [rdx+1]
mov [rbx+8], rsi
mov [rcx+rdx], al
mov r15, [rsp+68h+var_60]
mov eax, r15d
shr eax, 0Dh
and eax, 1
cmp r12d, r13d
setnle cl
or bpl, al
or bpl, cl
cmp bpl, 1
jnz short loc_43B28
mov rsi, [rbx+8]
inc rsi
cmp [rbx+10h], rsi
jnb short loc_43B15
mov rdi, rbx
call qword ptr [rbx+18h]
loc_43B15:
mov rax, [rbx]
mov rcx, [rbx+8]
lea rdx, [rcx+1]
mov [rbx+8], rdx
mov byte ptr [rax+rcx], 2Eh ; '.'
loc_43B28:
lea rsi, [rsp+68h+var_57]
movsxd rax, r13d
lea rdx, [rsp+rax+68h+var_68]
add rdx, 11h
mov rdi, rbx
call _ZN3fmt3v116detail6bufferIcE6appendIcEEvPKT_S7_; fmt::v11::detail::buffer<char>::append<char>(char const*,char const*)
sub r12d, r13d
jle short loc_43B70
loc_43B45:
mov rsi, [rbx+8]
inc rsi
cmp [rbx+10h], rsi
jnb short loc_43B58
mov rdi, rbx
call qword ptr [rbx+18h]
loc_43B58:
mov rax, [rbx]
mov rcx, [rbx+8]
lea rdx, [rcx+1]
mov [rbx+8], rdx
mov byte ptr [rax+rcx], 30h ; '0'
dec r12d
jnz short loc_43B45
loc_43B70:
bt r15d, 0Ch
setnb bpl
shl bpl, 5
or bpl, 50h
mov rsi, [rbx+8]
inc rsi
cmp [rbx+10h], rsi
jnb short loc_43B94
mov rdi, rbx
call qword ptr [rbx+18h]
loc_43B94:
mov rax, [rbx]
mov rcx, [rbx+8]
lea rdx, [rcx+1]
mov [rbx+8], rdx
mov [rax+rcx], bpl
mov rsi, [rbx+8]
mov rax, [rbx+10h]
inc rsi
test r14d, r14d
js short loc_43BD7
cmp rax, rsi
jnb short loc_43BC2
mov rdi, rbx
call qword ptr [rbx+18h]
loc_43BC2:
mov rax, [rbx]
mov rcx, [rbx+8]
lea rdx, [rcx+1]
mov [rbx+8], rdx
mov byte ptr [rax+rcx], 2Bh ; '+'
jmp short loc_43BF8
loc_43BD7:
cmp rax, rsi
jnb short loc_43BE2
mov rdi, rbx
call qword ptr [rbx+18h]
loc_43BE2:
mov rax, [rbx]
mov rcx, [rbx+8]
lea rdx, [rcx+1]
mov [rbx+8], rdx
mov byte ptr [rax+rcx], 2Dh ; '-'
neg r14d
loc_43BF8:
mov eax, r14d
or eax, 1
bsr eax, eax
lea rcx, _ZZN3fmt3v116detail15do_count_digitsEjE5table; fmt::v11::detail::do_count_digits(uint)::table
mov edx, r14d
add rdx, [rcx+rax*8]
shr rdx, 20h
mov rdi, rbx
mov esi, r14d
call _ZN3fmt3v116detail14format_decimalIcjNS0_14basic_appenderIcEETnNSt9enable_ifIXntsr3std10is_pointerINSt9remove_cvINSt16remove_referenceIT1_E4typeEE4typeEEE5valueEiE4typeELi0EEES8_S8_T0_i
add rsp, 38h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
| long long ZN3fmt3v116detail15format_hexfloatIeTnNSt9enable_ifIXntsr16is_double_doubleIT_EE5valueEiE4typeELi0EEEvS4_NS0_12format_specsERNS1_6bufferIcEE(
__int16 a1,
long long a2,
long long a3,
long long a4,
long long a5,
long long a6,
unsigned long long a7,
__int16 a8)
{
unsigned long long v10; // r12
__int128 v11; // rax
unsigned int v12; // r14d
unsigned int v13; // r14d
signed int v14; // r14d
char v15; // si
char v16; // cl
unsigned long long v17; // rdi
char v18; // cl
unsigned long long v19; // rdi
long long v20; // rsi
unsigned long long v21; // rax
long long v22; // rcx
long long v23; // rsi
int v24; // esi
long long v25; // r13
_BYTE *v26; // rcx
const char *v27; // rsi
unsigned long long v28; // r8
bool v29; // cf
bool v30; // bp
unsigned long long v31; // rsi
long long v32; // rax
long long v33; // rcx
char v34; // r15
long long v35; // rax
long long v36; // rcx
char v37; // al
long long v38; // rcx
long long v39; // rdx
long long v40; // rax
long long v41; // rcx
bool v42; // cc
int v43; // r12d
long long v44; // rax
long long v45; // rcx
long long v46; // rax
long long v47; // rcx
unsigned long long v48; // rax
unsigned long long v49; // rsi
long long v50; // rax
long long v51; // rcx
long long v52; // rax
long long v53; // rcx
long long v54; // rax
__int16 v56; // [rsp+8h] [rbp-60h]
_BYTE v57[88]; // [rsp+10h] [rbp-58h] BYREF
v10 = HIDWORD(a2);
v11 = a7;
_BitScanReverse(&v12, a7 >> 60);
v13 = (v12 ^ 0x1F) - 31;
if ( (unsigned int)(a7 >> 60) < 2 )
v13 = 0;
v14 = (a8 & 0x7FFF) + ((a8 & 0x7FFF) == 0) + v13 - 0x3FFF;
if ( a2 < 0 || SHIDWORD(a2) >= 15 )
{
LODWORD(v25) = 15;
}
else
{
*((_QWORD *)&v11 + 1) = 0LL;
v15 = 4 * BYTE4(a2);
v16 = 56 - 4 * v10;
v17 = a7 >> v16;
if ( (v16 & 0x40) != 0 )
LOBYTE(v17) = 0;
if ( (v17 & 8) != 0 )
{
v18 = 60 - v15;
v19 = 1uLL >> (64 - (60 - v15));
v20 = 1LL << (60 - v15);
if ( (v18 & 0x40) != 0 )
{
v19 = v20;
v20 = 0LL;
}
v22 = (__PAIR128__(v19, v20) + a7) >> 64;
v21 = v20 + a7;
v23 = -v20;
*((_QWORD *)&v11 + 1) = v22 & ((unsigned __int128)-(__int128)__PAIR128__(v19, v23) >> 64);
*(_QWORD *)&v11 = v23 & v21;
}
v24 = BYTE8(v11) & 1;
*(_QWORD *)&v11 = ((unsigned long long)v11 >> (4 * (unsigned __int8)v24)) | (*((_QWORD *)&v11 + 1) << (64 - 4 * (unsigned __int8)v24));
*((_QWORD *)&v11 + 1) >>= 4 * (unsigned __int8)v24;
v14 += 4 * v24;
LODWORD(v25) = v10;
}
v26 = &v57[15];
memset(v57, 48, 32);
v27 = "0123456789ABCDEF";
if ( (a1 & 0x1000) == 0 )
v27 = "0123456789abcdef";
v28 = *((_QWORD *)&v11 + 1);
do
{
*v26 = v27[v11 & 0xF];
v28 >>= 4;
--v26;
v29 = ((unsigned long long)v11 > 0xF) + *((_QWORD *)&v11 + 1) != 0LL;
*(_QWORD *)&v11 = v11 >> 4;
*((_QWORD *)&v11 + 1) = v28;
}
while ( v29 );
v30 = (int)v25 > 0;
if ( (int)v25 > 0 && v57[(unsigned int)v25] == 48 )
{
while ( 1 )
{
v30 = (int)v25 >= 2;
if ( (int)v25 < 2 )
break;
v25 = (unsigned int)(v25 - 1);
if ( v57[v25] != 48 )
goto LABEL_22;
}
LODWORD(v25) = 0;
}
LABEL_22:
v31 = *(_QWORD *)(a3 + 8) + 1LL;
if ( *(_QWORD *)(a3 + 16) < v31 )
(*(void ( **)(long long, unsigned long long, unsigned long long, _BYTE *))(a3 + 24))(a3, v31, v28, v26);
v56 = a1;
v32 = *(_QWORD *)a3;
v33 = *(_QWORD *)(a3 + 8);
*(_QWORD *)(a3 + 8) = v33 + 1;
*(_BYTE *)(v32 + v33) = 48;
v34 = (32 * ((a1 & 0x1000) == 0)) | 0x58;
if ( *(_QWORD *)(a3 + 16) < (unsigned long long)(*(_QWORD *)(a3 + 8) + 1LL) )
(*(void ( **)(long long))(a3 + 24))(a3);
v35 = *(_QWORD *)a3;
v36 = *(_QWORD *)(a3 + 8);
*(_QWORD *)(a3 + 8) = v36 + 1;
*(_BYTE *)(v35 + v36) = v34;
if ( *(_QWORD *)(a3 + 16) < (unsigned long long)(*(_QWORD *)(a3 + 8) + 1LL) )
(*(void ( **)(long long))(a3 + 24))(a3);
v37 = v57[0];
v38 = *(_QWORD *)a3;
v39 = *(_QWORD *)(a3 + 8);
*(_QWORD *)(a3 + 8) = v39 + 1;
*(_BYTE *)(v38 + v39) = v37;
if ( (int)v10 > (int)v25 || (v56 & 0x2000) != 0 || v30 )
{
if ( *(_QWORD *)(a3 + 16) < (unsigned long long)(*(_QWORD *)(a3 + 8) + 1LL) )
(*(void ( **)(long long))(a3 + 24))(a3);
v40 = *(_QWORD *)a3;
v41 = *(_QWORD *)(a3 + 8);
*(_QWORD *)(a3 + 8) = v41 + 1;
*(_BYTE *)(v40 + v41) = 46;
}
fmt::v11::detail::buffer<char>::append<char>(a3, (long long)&v57[1], (long long)&v57[(int)v25 + 1]);
v42 = (int)v10 <= (int)v25;
v43 = v10 - v25;
if ( !v42 )
{
do
{
if ( *(_QWORD *)(a3 + 16) < (unsigned long long)(*(_QWORD *)(a3 + 8) + 1LL) )
(*(void ( **)(long long))(a3 + 24))(a3);
v44 = *(_QWORD *)a3;
v45 = *(_QWORD *)(a3 + 8);
*(_QWORD *)(a3 + 8) = v45 + 1;
*(_BYTE *)(v44 + v45) = 48;
--v43;
}
while ( v43 );
}
if ( *(_QWORD *)(a3 + 16) < (unsigned long long)(*(_QWORD *)(a3 + 8) + 1LL) )
(*(void ( **)(long long))(a3 + 24))(a3);
v46 = *(_QWORD *)a3;
v47 = *(_QWORD *)(a3 + 8);
*(_QWORD *)(a3 + 8) = v47 + 1;
*(_BYTE *)(v46 + v47) = (32 * ((v56 & 0x1000) == 0)) | 0x50;
v48 = *(_QWORD *)(a3 + 16);
v49 = *(_QWORD *)(a3 + 8) + 1LL;
if ( v14 < 0 )
{
if ( v48 < v49 )
(*(void ( **)(long long))(a3 + 24))(a3);
v52 = *(_QWORD *)a3;
v53 = *(_QWORD *)(a3 + 8);
*(_QWORD *)(a3 + 8) = v53 + 1;
*(_BYTE *)(v52 + v53) = 45;
v14 = -v14;
}
else
{
if ( v48 < v49 )
(*(void ( **)(long long))(a3 + 24))(a3);
v50 = *(_QWORD *)a3;
v51 = *(_QWORD *)(a3 + 8);
*(_QWORD *)(a3 + 8) = v51 + 1;
*(_BYTE *)(v50 + v51) = 43;
}
_BitScanReverse((unsigned int *)&v54, v14 | 1);
return ZN3fmt3v116detail14format_decimalIcjNS0_14basic_appenderIcEETnNSt9enable_ifIXntsr3std10is_pointerINSt9remove_cvINSt16remove_referenceIT1_E4typeEE4typeEEE5valueEiE4typeELi0EEES8_S8_T0_i(
a3,
v14,
(fmt::v11::detail::do_count_digits(unsigned int)::table[v54] + (unsigned long long)(unsigned int)v14) >> 32);
}
| _ZN3fmt3v116detail15format_hexfloatIeTnNSt9enable_ifIXntsr16is_double_doubleIT_EE5valueEiE4typeELi0EEEvS4_NS0_12format_specsERNS1_6bufferIcEE:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x38
MOV RBX,RDX
MOV R15,RDI
MOV R12,RSI
SHR R12,0x20
MOV RAX,qword ptr [RSP + 0x70]
MOVZX ECX,word ptr [RSP + 0x78]
XOR EDX,EDX
AND ECX,0x7fff
MOV RDI,RAX
SHR RDI,0x3c
BSR R14D,EDI
XOR R14D,0x1f
ADD R14D,-0x1f
CMP EDI,0x2
CMOVC R14D,EDX
CMP ECX,0x1
ADC R14D,ECX
ADD R14D,0xffffc001
TEST RSI,RSI
SETS CL
CMP R12D,0xf
SETGE SIL
OR SIL,CL
JNZ 0x001439c1
XOR EDX,EDX
LEA ESI,[R12*0x4]
MOV CL,0x38
SUB CL,SIL
MOV RDI,RAX
SHRD RDI,RDX,CL
TEST CL,0x40
CMOVNZ RDI,RDX
TEST DIL,0x8
JZ 0x001439a5
MOV CL,0x3c
SUB CL,SIL
MOV ESI,0x1
XOR EDI,EDI
SHLD RDI,RSI,CL
SHL RSI,CL
XOR EDX,EDX
TEST CL,0x40
CMOVNZ RDI,RSI
CMOVNZ RSI,RDX
ADD RAX,RSI
MOV RCX,RDI
ADC RCX,0x0
NEG RSI
SBB RDX,RDI
AND RDX,RCX
AND RAX,RSI
LAB_001439a5:
MOV ESI,EDX
AND ESI,0x1
LEA ECX,[RSI*0x4]
SHRD RAX,RDX,CL
SHR RDX,CL
LEA R14D,[R14 + RSI*0x4]
MOV R13D,R12D
JMP 0x001439c7
LAB_001439c1:
MOV R13D,0xf
LAB_001439c7:
MOVAPS XMM0,xmmword ptr [0x00393630]
LEA RCX,[RSP + 0x1f]
MOVAPS xmmword ptr [RCX + 0x1],XMM0
MOVAPS xmmword ptr [RCX + -0xf],XMM0
BT R15D,0xc
LEA RDI,[0x39391e]
LEA RSI,[0x390450]
CMOVNC RSI,RDI
MOV EDI,0xf
MOV R8,RDX
LAB_001439fa:
MOV R9D,EAX
AND R9D,0xf
MOV R9B,byte ptr [RSI + R9*0x1]
MOV byte ptr [RCX],R9B
MOV R9,RDX
SHLD R9,RAX,0x3c
SHR R8,0x4
DEC RCX
CMP RDI,RAX
MOV EAX,0x0
SBB RAX,RDX
MOV RAX,R9
MOV RDX,R8
JC 0x001439fa
TEST R13D,R13D
SETG BPL
JLE 0x00143a57
MOV EAX,R13D
CMP byte ptr [RSP + RAX*0x1 + 0x10],0x30
JNZ 0x00143a57
LAB_00143a3d:
CMP R13D,0x2
SETGE BPL
JL 0x00143a54
DEC R13D
CMP byte ptr [RSP + R13*0x1 + 0x10],0x30
JZ 0x00143a3d
JMP 0x00143a57
LAB_00143a54:
XOR R13D,R13D
LAB_00143a57:
MOV RSI,qword ptr [RBX + 0x8]
INC RSI
CMP qword ptr [RBX + 0x10],RSI
JNC 0x00143a6a
MOV RDI,RBX
CALL qword ptr [RBX + 0x18]
LAB_00143a6a:
MOV qword ptr [RSP + 0x8],R15
BT R15D,0xc
SETNC R15B
MOV RAX,qword ptr [RBX]
MOV RCX,qword ptr [RBX + 0x8]
LEA RDX,[RCX + 0x1]
MOV qword ptr [RBX + 0x8],RDX
MOV byte ptr [RAX + RCX*0x1],0x30
SHL R15B,0x5
OR R15B,0x58
MOV RSI,qword ptr [RBX + 0x8]
INC RSI
CMP qword ptr [RBX + 0x10],RSI
JNC 0x00143aa6
MOV RDI,RBX
CALL qword ptr [RBX + 0x18]
LAB_00143aa6:
MOV RAX,qword ptr [RBX]
MOV RCX,qword ptr [RBX + 0x8]
LEA RDX,[RCX + 0x1]
MOV qword ptr [RBX + 0x8],RDX
MOV byte ptr [RAX + RCX*0x1],R15B
MOV RSI,qword ptr [RBX + 0x8]
INC RSI
CMP qword ptr [RBX + 0x10],RSI
JNC 0x00143acc
MOV RDI,RBX
CALL qword ptr [RBX + 0x18]
LAB_00143acc:
MOV AL,byte ptr [RSP + 0x10]
MOV RCX,qword ptr [RBX]
MOV RDX,qword ptr [RBX + 0x8]
LEA RSI,[RDX + 0x1]
MOV qword ptr [RBX + 0x8],RSI
MOV byte ptr [RCX + RDX*0x1],AL
MOV R15,qword ptr [RSP + 0x8]
MOV EAX,R15D
SHR EAX,0xd
AND EAX,0x1
CMP R12D,R13D
SETG CL
OR BPL,AL
OR BPL,CL
CMP BPL,0x1
JNZ 0x00143b28
MOV RSI,qword ptr [RBX + 0x8]
INC RSI
CMP qword ptr [RBX + 0x10],RSI
JNC 0x00143b15
MOV RDI,RBX
CALL qword ptr [RBX + 0x18]
LAB_00143b15:
MOV RAX,qword ptr [RBX]
MOV RCX,qword ptr [RBX + 0x8]
LEA RDX,[RCX + 0x1]
MOV qword ptr [RBX + 0x8],RDX
MOV byte ptr [RAX + RCX*0x1],0x2e
LAB_00143b28:
LEA RSI,[RSP + 0x11]
MOVSXD RAX,R13D
LEA RDX,[RSP + RAX*0x1]
ADD RDX,0x11
MOV RDI,RBX
CALL 0x0013f992
SUB R12D,R13D
JLE 0x00143b70
LAB_00143b45:
MOV RSI,qword ptr [RBX + 0x8]
INC RSI
CMP qword ptr [RBX + 0x10],RSI
JNC 0x00143b58
MOV RDI,RBX
CALL qword ptr [RBX + 0x18]
LAB_00143b58:
MOV RAX,qword ptr [RBX]
MOV RCX,qword ptr [RBX + 0x8]
LEA RDX,[RCX + 0x1]
MOV qword ptr [RBX + 0x8],RDX
MOV byte ptr [RAX + RCX*0x1],0x30
DEC R12D
JNZ 0x00143b45
LAB_00143b70:
BT R15D,0xc
SETNC BPL
SHL BPL,0x5
OR BPL,0x50
MOV RSI,qword ptr [RBX + 0x8]
INC RSI
CMP qword ptr [RBX + 0x10],RSI
JNC 0x00143b94
MOV RDI,RBX
CALL qword ptr [RBX + 0x18]
LAB_00143b94:
MOV RAX,qword ptr [RBX]
MOV RCX,qword ptr [RBX + 0x8]
LEA RDX,[RCX + 0x1]
MOV qword ptr [RBX + 0x8],RDX
MOV byte ptr [RAX + RCX*0x1],BPL
MOV RSI,qword ptr [RBX + 0x8]
MOV RAX,qword ptr [RBX + 0x10]
INC RSI
TEST R14D,R14D
JS 0x00143bd7
CMP RAX,RSI
JNC 0x00143bc2
MOV RDI,RBX
CALL qword ptr [RBX + 0x18]
LAB_00143bc2:
MOV RAX,qword ptr [RBX]
MOV RCX,qword ptr [RBX + 0x8]
LEA RDX,[RCX + 0x1]
MOV qword ptr [RBX + 0x8],RDX
MOV byte ptr [RAX + RCX*0x1],0x2b
JMP 0x00143bf8
LAB_00143bd7:
CMP RAX,RSI
JNC 0x00143be2
MOV RDI,RBX
CALL qword ptr [RBX + 0x18]
LAB_00143be2:
MOV RAX,qword ptr [RBX]
MOV RCX,qword ptr [RBX + 0x8]
LEA RDX,[RCX + 0x1]
MOV qword ptr [RBX + 0x8],RDX
MOV byte ptr [RAX + RCX*0x1],0x2d
NEG R14D
LAB_00143bf8:
MOV EAX,R14D
OR EAX,0x1
BSR EAX,EAX
LEA RCX,[0x393b60]
MOV EDX,R14D
ADD RDX,qword ptr [RCX + RAX*0x8]
SHR RDX,0x20
MOV RDI,RBX
MOV ESI,R14D
CALL 0x0013ff0e
ADD RSP,0x38
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
|
void _ZN3fmt3v116detail15format_hexfloatIeTnNSt9enable_ifIXntsr16is_double_doubleIT_EE5valueEiE4typeELi0EEEvS4_NS0_12format_specsERNS1_6bufferIcEE
(ulong param_1,ulong param_2,buffer<char> *param_3)
{
char cVar1;
long lVar2;
byte bVar3;
byte bVar4;
sbyte sVar5;
char *pcVar6;
ulong uVar7;
uint uVar8;
ulong uVar9;
ulong uVar10;
char *pcVar11;
int iVar12;
int iVar13;
ulong uVar14;
uint uVar15;
uint uVar16;
bool bVar17;
bool bVar18;
ulong in_stack_00000008;
ushort in_stack_00000010;
char acStack_58 [8];
char acStack_50 [4];
char acStack_4c [3];
char acStack_49 [5];
char acStack_44 [4];
char acStack_40 [4];
char acStack_3c [12];
uVar14 = param_2 >> 0x20;
uVar7 = 0;
uVar15 = 0x1f;
uVar8 = (uint)(in_stack_00000008 >> 0x3c);
if (uVar8 != 0) {
for (; uVar8 >> uVar15 == 0; uVar15 = uVar15 - 1) {
}
}
iVar12 = (uVar15 ^ 0x1f) - 0x1f;
if (uVar8 < 2) {
iVar12 = 0;
}
uVar15 = (iVar12 + (in_stack_00000010 & 0x7fff) + (uint)((in_stack_00000010 & 0x7fff) == 0)) -
0x3fff;
iVar12 = (int)(param_2 >> 0x20);
if (iVar12 < 0xf && -1 < (long)param_2) {
uVar7 = 0;
cVar1 = (char)(param_2 >> 0x20);
bVar3 = cVar1 * -4 + 0x38;
bVar4 = bVar3 & 0x3f;
uVar10 = in_stack_00000008 >> bVar4 | 0L << 0x40 - bVar4;
if ((bVar3 & 0x40) != 0) {
uVar10 = uVar7;
}
if ((uVar10 & 8) != 0) {
bVar4 = cVar1 * -4 + 0x3c;
uVar9 = 1L << (bVar4 & 0x3f);
uVar10 = uVar9;
uVar7 = 0L << (bVar4 & 0x3f) | 1UL >> 0x40 - (bVar4 & 0x3f);
if ((bVar4 & 0x40) != 0) {
uVar10 = 0;
uVar7 = uVar9;
}
uVar7 = -(ulong)(uVar10 != 0) - uVar7 & uVar7 + CARRY8(in_stack_00000008,uVar10);
in_stack_00000008 = in_stack_00000008 + uVar10 & -uVar10;
}
uVar8 = (uint)uVar7 & 1;
cVar1 = (char)uVar8;
sVar5 = cVar1 * '\x04';
in_stack_00000008 = in_stack_00000008 >> sVar5 | uVar7 << cVar1 * -4 + 0x40;
uVar7 = uVar7 >> sVar5;
uVar15 = uVar15 + uVar8 * 4;
}
else {
uVar14 = 0xf;
}
uVar8 = (uint)uVar14;
pcVar6 = acStack_4c + 3;
acStack_49._1_4_ = s_0000000000000000_00393630._0_4_;
acStack_44 = (char [4])s_0000000000000000_00393630._4_4_;
acStack_40 = (char [4])s_0000000000000000_00393630._8_4_;
acStack_3c._0_4_ = s_0000000000000000_00393630._12_4_;
acStack_58._0_4_ = s_0000000000000000_00393630._0_4_;
acStack_58._4_4_ = s_0000000000000000_00393630._4_4_;
acStack_50 = (char [4])s_0000000000000000_00393630._8_4_;
_acStack_4c = s_0000000000000000_00393630._12_4_;
uVar16 = (uint)param_1;
pcVar11 = "0123456789ABCDEF";
if ((uVar16 >> 0xc & 1) == 0) {
pcVar11 = "0123456789abcdef";
}
do {
*pcVar6 = pcVar11[(uint)in_stack_00000008 & 0xf];
pcVar6 = pcVar6 + -1;
bVar17 = 0xf < in_stack_00000008;
bVar18 = uVar7 != 0;
uVar10 = -uVar7;
in_stack_00000008 = uVar7 << 0x3c | in_stack_00000008 >> 4;
uVar7 = uVar7 >> 4;
} while (bVar18 || uVar10 < bVar17);
bVar17 = 0 < (int)uVar8;
if (0 < (int)uVar8) {
cVar1 = acStack_58[uVar14];
while (cVar1 == '0') {
iVar13 = (int)uVar14;
bVar17 = 1 < iVar13;
if (iVar13 < 2) {
uVar8 = 0;
break;
}
uVar8 = iVar13 - 1;
uVar14 = (ulong)uVar8;
cVar1 = acStack_58[uVar14];
}
}
if (*(ulong *)(param_3 + 0x10) < *(long *)(param_3 + 8) + 1U) {
(**(code **)(param_3 + 0x18))(param_3);
}
lVar2 = *(long *)(param_3 + 8);
*(long *)(param_3 + 8) = lVar2 + 1;
*(int1 *)(*(long *)param_3 + lVar2) = 0x30;
if (*(ulong *)(param_3 + 0x10) < *(long *)(param_3 + 8) + 1U) {
(**(code **)(param_3 + 0x18))(param_3);
}
lVar2 = *(long *)(param_3 + 8);
*(long *)(param_3 + 8) = lVar2 + 1;
*(byte *)(*(long *)param_3 + lVar2) = ((uVar16 >> 0xc & 1) == 0) << 5 | 0x58;
if (*(ulong *)(param_3 + 0x10) < *(long *)(param_3 + 8) + 1U) {
(**(code **)(param_3 + 0x18))(param_3);
}
lVar2 = *(long *)(param_3 + 8);
*(long *)(param_3 + 8) = lVar2 + 1;
*(char *)(*(long *)param_3 + lVar2) = acStack_58[0];
if ((byte)(bVar17 | (byte)(param_1 >> 0xd) & 1 | (int)uVar8 < iVar12) == 1) {
if (*(ulong *)(param_3 + 0x10) < *(long *)(param_3 + 8) + 1U) {
(**(code **)(param_3 + 0x18))(param_3);
}
lVar2 = *(long *)(param_3 + 8);
*(long *)(param_3 + 8) = lVar2 + 1;
*(int1 *)(*(long *)param_3 + lVar2) = 0x2e;
}
fmt::v11::detail::buffer<char>::append<char>
(param_3,acStack_58 + 1,acStack_58 + (long)(int)uVar8 + 1);
iVar13 = iVar12 - uVar8;
if (iVar13 != 0 && (int)uVar8 <= iVar12) {
do {
if (*(ulong *)(param_3 + 0x10) < *(long *)(param_3 + 8) + 1U) {
(**(code **)(param_3 + 0x18))(param_3);
}
lVar2 = *(long *)(param_3 + 8);
*(long *)(param_3 + 8) = lVar2 + 1;
*(int1 *)(*(long *)param_3 + lVar2) = 0x30;
iVar13 = iVar13 + -1;
} while (iVar13 != 0);
}
if (*(ulong *)(param_3 + 0x10) < *(long *)(param_3 + 8) + 1U) {
(**(code **)(param_3 + 0x18))(param_3);
}
lVar2 = *(long *)(param_3 + 8);
*(long *)(param_3 + 8) = lVar2 + 1;
*(byte *)(*(long *)param_3 + lVar2) = ((uVar16 >> 0xc & 1) == 0) << 5 | 0x50;
if ((int)uVar15 < 0) {
if (*(ulong *)(param_3 + 0x10) < *(long *)(param_3 + 8) + 1U) {
(**(code **)(param_3 + 0x18))(param_3);
}
lVar2 = *(long *)(param_3 + 8);
*(long *)(param_3 + 8) = lVar2 + 1;
*(int1 *)(*(long *)param_3 + lVar2) = 0x2d;
uVar15 = -uVar15;
}
else {
if (*(ulong *)(param_3 + 0x10) < *(long *)(param_3 + 8) + 1U) {
(**(code **)(param_3 + 0x18))(param_3);
}
lVar2 = *(long *)(param_3 + 8);
*(long *)(param_3 + 8) = lVar2 + 1;
*(int1 *)(*(long *)param_3 + lVar2) = 0x2b;
}
uVar8 = 0x1f;
if ((uVar15 | 1) != 0) {
for (; (uVar15 | 1) >> uVar8 == 0; uVar8 = uVar8 - 1) {
}
}
_ZN3fmt3v116detail14format_decimalIcjNS0_14basic_appenderIcEETnNSt9enable_ifIXntsr3std10is_pointerINSt9remove_cvINSt16remove_referenceIT1_E4typeEE4typeEEE5valueEiE4typeELi0EEES8_S8_T0_i
(param_3,uVar15,
(ulong)uVar15 +
*(long *)(fmt::v11::detail::do_count_digits(unsigned_int)::table + (ulong)uVar8 * 8) >>
0x20);
return;
}
| |
45,242 | psi_rwlock_rdlock | eloqsql/mysys/my_thr_init.c | ATTRIBUTE_COLD
int psi_rwlock_rdlock(mysql_rwlock_t *that, const char *file, uint line)
{
PSI_rwlock_locker_state state;
PSI_rwlock_locker *locker= PSI_RWLOCK_CALL(start_rwlock_rdwait)
(&state, that->m_psi, PSI_RWLOCK_READLOCK, file, line);
int result= rw_rdlock(&that->m_rwlock);
if (locker)
PSI_RWLOCK_CALL(end_rwlock_rdwait)(locker, result);
return result;
} | O0 | c | psi_rwlock_rdlock:
pushq %rbp
movq %rsp, %rbp
subq $0x60, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movl %edx, -0x14(%rbp)
leaq 0x1b7ea6(%rip), %rax # 0x2186c0
movq (%rax), %rax
movq 0x1a0(%rax), %rax
movq -0x8(%rbp), %rcx
movq 0x90(%rcx), %rsi
movq -0x10(%rbp), %rcx
movl -0x14(%rbp), %r8d
leaq -0x48(%rbp), %rdi
xorl %edx, %edx
callq *%rax
movq %rax, -0x50(%rbp)
movq -0x8(%rbp), %rdi
callq 0x60e10
movl %eax, -0x54(%rbp)
cmpq $0x0, -0x50(%rbp)
je 0x60870
leaq 0x1b7e63(%rip), %rax # 0x2186c0
movq (%rax), %rax
movq 0x1a8(%rax), %rax
movq -0x50(%rbp), %rdi
movl -0x54(%rbp), %esi
callq *%rax
movl -0x54(%rbp), %eax
addq $0x60, %rsp
popq %rbp
retq
nopl (%rax)
| psi_rwlock_rdlock:
push rbp
mov rbp, rsp
sub rsp, 60h
mov [rbp+var_8], rdi
mov [rbp+var_10], rsi
mov [rbp+var_14], edx
lea rax, PSI_server
mov rax, [rax]
mov rax, [rax+1A0h]
mov rcx, [rbp+var_8]
mov rsi, [rcx+90h]
mov rcx, [rbp+var_10]
mov r8d, [rbp+var_14]
lea rdi, [rbp+var_48]
xor edx, edx
call rax
mov [rbp+var_50], rax
mov rdi, [rbp+var_8]
call my_rw_rdlock
mov [rbp+var_54], eax
cmp [rbp+var_50], 0
jz short loc_60870
lea rax, PSI_server
mov rax, [rax]
mov rax, [rax+1A8h]
mov rdi, [rbp+var_50]
mov esi, [rbp+var_54]
call rax
loc_60870:
mov eax, [rbp+var_54]
add rsp, 60h
pop rbp
retn
| long long psi_rwlock_rdlock(long long a1, long long a2, unsigned int a3)
{
unsigned int v4; // [rsp+Ch] [rbp-54h]
long long v5; // [rsp+10h] [rbp-50h]
_BYTE v6[52]; // [rsp+18h] [rbp-48h] BYREF
unsigned int v7; // [rsp+4Ch] [rbp-14h]
long long v8; // [rsp+50h] [rbp-10h]
long long v9; // [rsp+58h] [rbp-8h]
v9 = a1;
v8 = a2;
v7 = a3;
v5 = ((long long ( *)(_BYTE *, _QWORD, _QWORD, long long, _QWORD))PSI_server[52])(
v6,
*(_QWORD *)(a1 + 144),
0LL,
a2,
a3);
v4 = my_rw_rdlock(v9);
if ( v5 )
((void ( *)(long long, _QWORD))PSI_server[53])(v5, v4);
return v4;
}
| psi_rwlock_rdlock:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x60
MOV qword ptr [RBP + -0x8],RDI
MOV qword ptr [RBP + -0x10],RSI
MOV dword ptr [RBP + -0x14],EDX
LEA RAX,[0x3186c0]
MOV RAX,qword ptr [RAX]
MOV RAX,qword ptr [RAX + 0x1a0]
MOV RCX,qword ptr [RBP + -0x8]
MOV RSI,qword ptr [RCX + 0x90]
MOV RCX,qword ptr [RBP + -0x10]
MOV R8D,dword ptr [RBP + -0x14]
LEA RDI,[RBP + -0x48]
XOR EDX,EDX
CALL RAX
MOV qword ptr [RBP + -0x50],RAX
MOV RDI,qword ptr [RBP + -0x8]
CALL 0x00160e10
MOV dword ptr [RBP + -0x54],EAX
CMP qword ptr [RBP + -0x50],0x0
JZ 0x00160870
LEA RAX,[0x3186c0]
MOV RAX,qword ptr [RAX]
MOV RAX,qword ptr [RAX + 0x1a8]
MOV RDI,qword ptr [RBP + -0x50]
MOV ESI,dword ptr [RBP + -0x54]
CALL RAX
LAB_00160870:
MOV EAX,dword ptr [RBP + -0x54]
ADD RSP,0x60
POP RBP
RET
|
int4 psi_rwlock_rdlock(long param_1,int8 param_2,int4 param_3)
{
int4 uVar1;
long lVar2;
int1 local_50 [52];
int4 local_1c;
int8 local_18;
long local_10;
local_1c = param_3;
local_18 = param_2;
local_10 = param_1;
lVar2 = (**(code **)(PSI_server + 0x1a0))
(local_50,*(int8 *)(param_1 + 0x90),0,param_2,param_3);
uVar1 = my_rw_rdlock(local_10);
if (lVar2 != 0) {
(**(code **)(PSI_server + 0x1a8))(lVar2,uVar1);
}
return uVar1;
}
| |
45,243 | testing::internal::ParseFlag(char const*, char const*, bool*) | giladroyz[P]FindPeaks/build_O3/_deps/googletest-src/googletest/src/gtest.cc | static bool ParseFlag(const char* str, const char* flag_name, bool* value) {
// Gets the value of the flag as a string.
const char* const value_str = ParseFlagValue(str, flag_name, true);
// Aborts if the parsing failed.
if (value_str == nullptr) return false;
// Converts the string value to a bool.
*value = !(*value_str == '0' || *value_str == 'f' || *value_str == 'F');
return true;
} | O3 | cpp | testing::internal::ParseFlag(char const*, char const*, bool*):
pushq %rbx
movq %rdx, %rbx
movl $0x1, %edx
callq 0x2f06b
testq %rax, %rax
je 0x31ccb
movzbl (%rax), %edx
xorl %ecx, %ecx
cmpl $0x30, %edx
je 0x31cc9
cmpl $0x66, %edx
je 0x31cc9
cmpb $0x46, %dl
setne %cl
movb %cl, (%rbx)
testq %rax, %rax
setne %al
popq %rbx
retq
nop
| _ZN7testing8internalL9ParseFlagEPKcS2_Pb:
push rbx
mov rbx, rdx
mov edx, (offset dword_0+1); char *
call _ZN7testing8internalL14ParseFlagValueEPKcS2_b; testing::internal::ParseFlagValue(char const*,char const*,bool)
test rax, rax
jz short loc_31CCB
movzx edx, byte ptr [rax]
xor ecx, ecx
cmp edx, 30h ; '0'
jz short loc_31CC9
cmp edx, 66h ; 'f'
jz short loc_31CC9
cmp dl, 46h ; 'F'
setnz cl
loc_31CC9:
mov [rbx], cl
loc_31CCB:
test rax, rax
setnz al
pop rbx
retn
| bool testing::internal::ParseFlag(testing::internal *this, const char *a2, bool *a3, bool *a4)
{
char *v5; // rax
int v6; // edx
bool v7; // cl
v5 = testing::internal::ParseFlagValue(this, a2, (const char *)&dword_0 + 1);
if ( v5 )
{
v6 = (unsigned __int8)*v5;
v7 = 0;
if ( v6 != 48 && v6 != 102 )
v7 = (_BYTE)v6 != 70;
*a3 = v7;
}
return v5 != 0LL;
}
| ParseFlag:
PUSH RBX
MOV RBX,RDX
MOV EDX,0x1
CALL 0x0012f06b
TEST RAX,RAX
JZ 0x00131ccb
MOVZX EDX,byte ptr [RAX]
XOR ECX,ECX
CMP EDX,0x30
JZ 0x00131cc9
CMP EDX,0x66
JZ 0x00131cc9
CMP DL,0x46
SETNZ CL
LAB_00131cc9:
MOV byte ptr [RBX],CL
LAB_00131ccb:
TEST RAX,RAX
SETNZ AL
POP RBX
RET
|
/* testing::internal::ParseFlag(char const*, char const*, bool*) */
bool testing::internal::ParseFlag(char *param_1,char *param_2,bool *param_3)
{
char cVar1;
char *pcVar2;
bool bVar3;
pcVar2 = (char *)ParseFlagValue(param_1,param_2,true);
if (pcVar2 != (char *)0x0) {
cVar1 = *pcVar2;
bVar3 = false;
if ((cVar1 != '0') && (bVar3 = false, cVar1 != 'f')) {
bVar3 = cVar1 != 'F';
}
*param_3 = bVar3;
}
return pcVar2 != (char *)0x0;
}
| |
45,244 | google::protobuf::DescriptorPool::Tables::AddExtension(google::protobuf::FieldDescriptor const*) | aimrt_mujoco_sim/_deps/protobuf-src/src/google/protobuf/descriptor.cc | bool DescriptorPool::Tables::AddExtension(const FieldDescriptor* field) {
DescriptorIntPair key(field->containing_type(), field->number());
if (InsertIfNotPresent(&extensions_, key, field)) {
extensions_after_checkpoint_.push_back(key);
return true;
} else {
return false;
}
} | O0 | cpp | google::protobuf::DescriptorPool::Tables::AddExtension(google::protobuf::FieldDescriptor const*):
subq $0x48, %rsp
movq %rdi, 0x38(%rsp)
movq %rsi, 0x30(%rsp)
movq 0x38(%rsp), %rax
movq %rax, 0x8(%rsp)
movq 0x30(%rsp), %rdi
callq 0x73400
movq %rax, 0x18(%rsp)
movq 0x30(%rsp), %rdi
callq 0x73db0
movl %eax, 0x14(%rsp)
leaq 0x20(%rsp), %rdi
leaq 0x18(%rsp), %rsi
leaq 0x14(%rsp), %rdx
callq 0x73ec0
movq 0x8(%rsp), %rdi
addq $0x198, %rdi # imm = 0x198
leaq 0x20(%rsp), %rsi
leaq 0x30(%rsp), %rdx
callq 0x73ef0
testb $0x1, %al
jne 0x3427a
jmp 0x34297
movq 0x8(%rsp), %rdi
addq $0x210, %rdi # imm = 0x210
leaq 0x20(%rsp), %rsi
callq 0x73f40
movb $0x1, 0x47(%rsp)
jmp 0x3429c
movb $0x0, 0x47(%rsp)
movb 0x47(%rsp), %al
andb $0x1, %al
addq $0x48, %rsp
retq
nopw (%rax,%rax)
| _ZN6google8protobuf14DescriptorPool6Tables12AddExtensionEPKNS0_15FieldDescriptorE:
sub rsp, 48h
mov [rsp+48h+var_10], rdi
mov [rsp+48h+var_18], rsi
mov rax, [rsp+48h+var_10]
mov [rsp+48h+var_40], rax
mov rdi, [rsp+48h+var_18]; this
call _ZNK6google8protobuf15FieldDescriptor15containing_typeEv; google::protobuf::FieldDescriptor::containing_type(void)
mov [rsp+48h+var_30], rax
mov rdi, [rsp+48h+var_18]; this
call _ZNK6google8protobuf15FieldDescriptor6numberEv; google::protobuf::FieldDescriptor::number(void)
mov [rsp+48h+var_34], eax
lea rdi, [rsp+48h+var_28]
lea rsi, [rsp+48h+var_30]
lea rdx, [rsp+48h+var_34]
call _ZNSt4pairIPKN6google8protobuf10DescriptorEiEC2IS4_iTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS8_S9_EEEbE4typeELb1EEEOS8_OS9_
mov rdi, [rsp+48h+var_40]
add rdi, 198h
lea rsi, [rsp+48h+var_28]
lea rdx, [rsp+48h+var_18]
call _ZN6google8protobuf18InsertIfNotPresentISt3mapISt4pairIPKNS0_10DescriptorEiEPKNS0_15FieldDescriptorESt4lessIS7_ESaIS3_IKS7_SA_EEEEEbPT_RKNSH_10value_type10first_typeERKNSJ_11second_typeE; google::protobuf::InsertIfNotPresent<std::map<std::pair<google::protobuf::Descriptor const*,int>,google::protobuf::FieldDescriptor const*>>(std::map<std::pair<google::protobuf::Descriptor const*,int>,google::protobuf::FieldDescriptor const*> *,std::map<std::pair<google::protobuf::Descriptor const*,int>,google::protobuf::FieldDescriptor const*>::value_type::first_type const&,std::map<std::pair<google::protobuf::Descriptor const*,int>,google::protobuf::FieldDescriptor const*>::value_type::second_type const&)
test al, 1
jnz short loc_3427A
jmp short loc_34297
loc_3427A:
mov rdi, [rsp+48h+var_40]
add rdi, 210h
lea rsi, [rsp+48h+var_28]
call _ZNSt6vectorISt4pairIPKN6google8protobuf10DescriptorEiESaIS6_EE9push_backERKS6_; std::vector<std::pair<google::protobuf::Descriptor const*,int>>::push_back(std::pair<google::protobuf::Descriptor const*,int> const&)
mov [rsp+48h+var_1], 1
jmp short loc_3429C
loc_34297:
mov [rsp+48h+var_1], 0
loc_3429C:
mov al, [rsp+48h+var_1]
and al, 1
add rsp, 48h
retn
| char google::protobuf::DescriptorPool::Tables::AddExtension(
google::protobuf::DescriptorPool::Tables *this,
const google::protobuf::FieldDescriptor *a2)
{
int v3; // [rsp+14h] [rbp-34h] BYREF
long long v4; // [rsp+18h] [rbp-30h] BYREF
_BYTE v5[16]; // [rsp+20h] [rbp-28h] BYREF
google::protobuf::FieldDescriptor *v6[2]; // [rsp+30h] [rbp-18h] BYREF
v6[1] = this;
v6[0] = a2;
v4 = google::protobuf::FieldDescriptor::containing_type(a2);
v3 = google::protobuf::FieldDescriptor::number(a2);
ZNSt4pairIPKN6google8protobuf10DescriptorEiEC2IS4_iTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS8_S9_EEEbE4typeELb1EEEOS8_OS9_(
v5,
&v4,
&v3);
if ( (google::protobuf::InsertIfNotPresent<std::map<std::pair<google::protobuf::Descriptor const*,int>,google::protobuf::FieldDescriptor const*>>(
(char *)this + 408,
v5,
v6) & 1) == 0 )
return 0;
std::vector<std::pair<google::protobuf::Descriptor const*,int>>::push_back((char *)this + 528, v5);
return 1;
}
| AddExtension:
SUB RSP,0x48
MOV qword ptr [RSP + 0x38],RDI
MOV qword ptr [RSP + 0x30],RSI
MOV RAX,qword ptr [RSP + 0x38]
MOV qword ptr [RSP + 0x8],RAX
MOV RDI,qword ptr [RSP + 0x30]
CALL 0x00173400
MOV qword ptr [RSP + 0x18],RAX
MOV RDI,qword ptr [RSP + 0x30]
CALL 0x00173db0
MOV dword ptr [RSP + 0x14],EAX
LEA RDI,[RSP + 0x20]
LEA RSI,[RSP + 0x18]
LEA RDX,[RSP + 0x14]
CALL 0x00173ec0
MOV RDI,qword ptr [RSP + 0x8]
ADD RDI,0x198
LEA RSI,[RSP + 0x20]
LEA RDX,[RSP + 0x30]
CALL 0x00173ef0
TEST AL,0x1
JNZ 0x0013427a
JMP 0x00134297
LAB_0013427a:
MOV RDI,qword ptr [RSP + 0x8]
ADD RDI,0x210
LEA RSI,[RSP + 0x20]
CALL 0x00173f40
MOV byte ptr [RSP + 0x47],0x1
JMP 0x0013429c
LAB_00134297:
MOV byte ptr [RSP + 0x47],0x0
LAB_0013429c:
MOV AL,byte ptr [RSP + 0x47]
AND AL,0x1
ADD RSP,0x48
RET
|
/* google::protobuf::DescriptorPool::Tables::AddExtension(google::protobuf::FieldDescriptor const*)
*/
int8 __thiscall
google::protobuf::DescriptorPool::Tables::AddExtension(Tables *this,FieldDescriptor *param_1)
{
bool bVar1;
int7 extraout_var;
int7 extraout_var_00;
int7 uVar2;
int4 local_34;
int8 local_30;
first_type local_28 [16];
FieldDescriptor *local_18;
Tables *local_10;
local_18 = param_1;
local_10 = this;
local_30 = FieldDescriptor::containing_type(param_1);
local_34 = FieldDescriptor::number(local_18);
_ZNSt4pairIPKN6google8protobuf10DescriptorEiEC2IS4_iTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS8_S9_EEEbE4typeELb1EEEOS8_OS9_
(local_28,&local_30,&local_34);
bVar1 = InsertIfNotPresent<std::map<std::pair<google::protobuf::Descriptor_const*,int>,google::protobuf::FieldDescriptor_const*,std::less<std::pair<google::protobuf::Descriptor_const*,int>>,std::allocator<std::pair<std::pair<google::protobuf::Descriptor_const*,int>const,google::protobuf::FieldDescriptor_const*>>>>
((map *)(this + 0x198),local_28,(second_type *)&local_18);
uVar2 = extraout_var;
if (bVar1) {
std::
vector<std::pair<google::protobuf::Descriptor_const*,int>,std::allocator<std::pair<google::protobuf::Descriptor_const*,int>>>
::push_back((vector<std::pair<google::protobuf::Descriptor_const*,int>,std::allocator<std::pair<google::protobuf::Descriptor_const*,int>>>
*)(this + 0x210),(pair *)local_28);
uVar2 = extraout_var_00;
}
return CONCAT71(uVar2,bVar1);
}
| |
45,245 | google::protobuf::io::CodedOutputStream::WriteVarint32ToArrayOutOfLineHelper(unsigned int, unsigned char*) | aimrt_mujoco_sim/_deps/protobuf-src/src/google/protobuf/io/coded_stream.cc | uint8_t* CodedOutputStream::WriteVarint32ToArrayOutOfLineHelper(uint32_t value,
uint8_t* target) {
GOOGLE_DCHECK_GE(value, 0x80);
target[0] |= static_cast<uint8_t>(0x80);
value >>= 7;
target[1] = static_cast<uint8_t>(value);
if (value < 0x80) {
return target + 2;
}
target += 2;
do {
// Turn on continuation bit in the byte we just wrote.
target[-1] |= static_cast<uint8_t>(0x80);
value >>= 7;
*target = static_cast<uint8_t>(value);
++target;
} while (value >= 0x80);
return target;
} | O0 | cpp | google::protobuf::io::CodedOutputStream::WriteVarint32ToArrayOutOfLineHelper(unsigned int, unsigned char*):
subq $0x78, %rsp
movl %edi, 0x6c(%rsp)
movq %rsi, 0x60(%rsp)
xorl %eax, %eax
testb $0x1, %al
jne 0x21898
jmp 0x21933
movl 0x6c(%rsp), %eax
movb $0x0, 0x27(%rsp)
cmpl $0x80, %eax
jb 0x218aa
jmp 0x218f8
leaq 0x1ca2d2(%rip), %rdx # 0x1ebb83
leaq 0x28(%rsp), %rdi
movq %rdi, (%rsp)
movl $0x3, %esi
movl $0x3b1, %ecx # imm = 0x3B1
callq 0x237e0
movq (%rsp), %rdi
movb $0x1, 0x27(%rsp)
leaq 0x1ca60e(%rip), %rsi # 0x1ebee7
callq 0x230a0
movq %rax, 0x8(%rsp)
jmp 0x218e5
movq 0x8(%rsp), %rsi
leaq 0x13(%rsp), %rdi
callq 0x23250
jmp 0x218f6
jmp 0x218f8
testb $0x1, 0x27(%rsp)
jne 0x21901
jmp 0x2190b
leaq 0x28(%rsp), %rdi
callq 0x23820
jmp 0x2188d
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x18(%rsp)
movl %eax, 0x14(%rsp)
testb $0x1, 0x27(%rsp)
jne 0x21924
jmp 0x2192e
leaq 0x28(%rsp), %rdi
callq 0x23820
jmp 0x219da
movq 0x60(%rsp), %rax
movzbl (%rax), %ecx
orl $0x80, %ecx
movb %cl, (%rax)
movl 0x6c(%rsp), %eax
shrl $0x7, %eax
movl %eax, 0x6c(%rsp)
movl 0x6c(%rsp), %eax
movb %al, %cl
movq 0x60(%rsp), %rax
movb %cl, 0x1(%rax)
cmpl $0x80, 0x6c(%rsp)
jae 0x21976
movq 0x60(%rsp), %rax
addq $0x2, %rax
movq %rax, 0x70(%rsp)
jmp 0x219d0
movq 0x60(%rsp), %rax
addq $0x2, %rax
movq %rax, 0x60(%rsp)
movq 0x60(%rsp), %rax
movzbl -0x1(%rax), %ecx
orl $0x80, %ecx
movb %cl, -0x1(%rax)
movl 0x6c(%rsp), %eax
shrl $0x7, %eax
movl %eax, 0x6c(%rsp)
movl 0x6c(%rsp), %eax
movb %al, %cl
movq 0x60(%rsp), %rax
movb %cl, (%rax)
movq 0x60(%rsp), %rax
addq $0x1, %rax
movq %rax, 0x60(%rsp)
cmpl $0x80, 0x6c(%rsp)
jae 0x21984
movq 0x60(%rsp), %rax
movq %rax, 0x70(%rsp)
movq 0x70(%rsp), %rax
addq $0x78, %rsp
retq
movq 0x18(%rsp), %rdi
callq 0x13750
nopw %cs:(%rax,%rax)
| _ZN6google8protobuf2io17CodedOutputStream35WriteVarint32ToArrayOutOfLineHelperEjPh:
sub rsp, 78h
mov [rsp+78h+var_C], edi
mov [rsp+78h+var_18], rsi
loc_2188D:
xor eax, eax
test al, 1
jnz short loc_21898
jmp loc_21933
loc_21898:
mov eax, [rsp+78h+var_C]
mov [rsp+78h+var_51], 0
cmp eax, 80h
jb short loc_218AA
jmp short loc_218F8
loc_218AA:
lea rdx, aWorkspaceLlm4b; "/workspace/llm4binary/github2025/aimrt_"...
lea rdi, [rsp+78h+var_50]
mov [rsp+78h+var_78], rdi
mov esi, 3
mov ecx, 3B1h
call _ZN6google8protobuf8internal10LogMessageC2ENS0_8LogLevelEPKci; google::protobuf::internal::LogMessage::LogMessage(google::protobuf::LogLevel,char const*,int)
mov rdi, [rsp+78h+var_78]
mov [rsp+78h+var_51], 1
lea rsi, aCheckFailedVal; "CHECK failed: (value) >= (0x80): "
call _ZN6google8protobuf8internal10LogMessagelsEPKc; google::protobuf::internal::LogMessage::operator<<(char const*)
mov [rsp+78h+var_70], rax
jmp short $+2
loc_218E5:
mov rsi, [rsp+78h+var_70]
lea rdi, [rsp+78h+var_65]
call _ZN6google8protobuf8internal11LogFinisheraSERNS1_10LogMessageE; google::protobuf::internal::LogFinisher::operator=(google::protobuf::internal::LogMessage &)
jmp short $+2
loc_218F6:
jmp short $+2
loc_218F8:
test [rsp+78h+var_51], 1
jnz short loc_21901
jmp short loc_2190B
loc_21901:
lea rdi, [rsp+78h+var_50]; this
call _ZN6google8protobuf8internal10LogMessageD2Ev; google::protobuf::internal::LogMessage::~LogMessage()
loc_2190B:
jmp short loc_2188D
mov rcx, rax
mov eax, edx
mov [rsp+arg_10], rcx
mov [rsp+arg_C], eax
test [rsp+arg_1F], 1
jnz short loc_21924
jmp short loc_2192E
loc_21924:
lea rdi, [rsp+arg_20]; this
call _ZN6google8protobuf8internal10LogMessageD2Ev; google::protobuf::internal::LogMessage::~LogMessage()
loc_2192E:
jmp loc_219DA
loc_21933:
mov rax, [rsp+78h+var_18]
movzx ecx, byte ptr [rax]
or ecx, 80h
mov [rax], cl
mov eax, [rsp+78h+var_C]
shr eax, 7
mov [rsp+78h+var_C], eax
mov eax, [rsp+78h+var_C]
mov cl, al
mov rax, [rsp+78h+var_18]
mov [rax+1], cl
cmp [rsp+78h+var_C], 80h
jnb short loc_21976
mov rax, [rsp+78h+var_18]
add rax, 2
mov [rsp+78h+var_8], rax
jmp short loc_219D0
loc_21976:
mov rax, [rsp+78h+var_18]
add rax, 2
mov [rsp+78h+var_18], rax
loc_21984:
mov rax, [rsp+78h+var_18]
movzx ecx, byte ptr [rax-1]
or ecx, 80h
mov [rax-1], cl
mov eax, [rsp+78h+var_C]
shr eax, 7
mov [rsp+78h+var_C], eax
mov eax, [rsp+78h+var_C]
mov cl, al
mov rax, [rsp+78h+var_18]
mov [rax], cl
mov rax, [rsp+78h+var_18]
add rax, 1
mov [rsp+78h+var_18], rax
cmp [rsp+78h+var_C], 80h
jnb short loc_21984
mov rax, [rsp+78h+var_18]
mov [rsp+78h+var_8], rax
loc_219D0:
mov rax, [rsp+78h+var_8]
add rsp, 78h
retn
loc_219DA:
mov rdi, [rsp+arg_10]
call __Unwind_Resume
| _BYTE * google::protobuf::io::CodedOutputStream::WriteVarint32ToArrayOutOfLineHelper(
google::protobuf::io::CodedOutputStream *this,
_BYTE *a2,
unsigned __int8 *a3)
{
_BYTE *v4; // [rsp+60h] [rbp-18h]
unsigned int v5; // [rsp+6Ch] [rbp-Ch]
v5 = (unsigned int)this;
v4 = a2;
*a2 |= 0x80u;
v5 >>= 7;
v4[1] = v5;
if ( v5 < 0x80 )
return v4 + 2;
v4 += 2;
do
{
*(v4 - 1) |= 0x80u;
v5 >>= 7;
*v4++ = v5;
}
while ( v5 >= 0x80 );
return v4;
}
| WriteVarint32ToArrayOutOfLineHelper:
SUB RSP,0x78
MOV dword ptr [RSP + 0x6c],EDI
MOV qword ptr [RSP + 0x60],RSI
LAB_0012188d:
XOR EAX,EAX
TEST AL,0x1
JNZ 0x00121898
JMP 0x00121933
LAB_00121898:
MOV EAX,dword ptr [RSP + 0x6c]
MOV byte ptr [RSP + 0x27],0x0
CMP EAX,0x80
JC 0x001218aa
JMP 0x001218f8
LAB_001218aa:
LEA RDX,[0x2ebb83]
LEA RDI,[RSP + 0x28]
MOV qword ptr [RSP],RDI
MOV ESI,0x3
MOV ECX,0x3b1
CALL 0x001237e0
MOV RDI,qword ptr [RSP]
MOV byte ptr [RSP + 0x27],0x1
LAB_001218d2:
LEA RSI,[0x2ebee7]
CALL 0x001230a0
MOV qword ptr [RSP + 0x8],RAX
JMP 0x001218e5
LAB_001218e5:
MOV RSI,qword ptr [RSP + 0x8]
LEA RDI,[RSP + 0x13]
CALL 0x00123250
LAB_001218f4:
JMP 0x001218f6
LAB_001218f6:
JMP 0x001218f8
LAB_001218f8:
TEST byte ptr [RSP + 0x27],0x1
JNZ 0x00121901
JMP 0x0012190b
LAB_00121901:
LEA RDI,[RSP + 0x28]
CALL 0x00123820
LAB_0012190b:
JMP 0x0012188d
LAB_00121933:
MOV RAX,qword ptr [RSP + 0x60]
MOVZX ECX,byte ptr [RAX]
OR ECX,0x80
MOV byte ptr [RAX],CL
MOV EAX,dword ptr [RSP + 0x6c]
SHR EAX,0x7
MOV dword ptr [RSP + 0x6c],EAX
MOV EAX,dword ptr [RSP + 0x6c]
MOV CL,AL
MOV RAX,qword ptr [RSP + 0x60]
MOV byte ptr [RAX + 0x1],CL
CMP dword ptr [RSP + 0x6c],0x80
JNC 0x00121976
MOV RAX,qword ptr [RSP + 0x60]
ADD RAX,0x2
MOV qword ptr [RSP + 0x70],RAX
JMP 0x001219d0
LAB_00121976:
MOV RAX,qword ptr [RSP + 0x60]
ADD RAX,0x2
MOV qword ptr [RSP + 0x60],RAX
LAB_00121984:
MOV RAX,qword ptr [RSP + 0x60]
MOVZX ECX,byte ptr [RAX + -0x1]
OR ECX,0x80
MOV byte ptr [RAX + -0x1],CL
MOV EAX,dword ptr [RSP + 0x6c]
SHR EAX,0x7
MOV dword ptr [RSP + 0x6c],EAX
MOV EAX,dword ptr [RSP + 0x6c]
MOV CL,AL
MOV RAX,qword ptr [RSP + 0x60]
MOV byte ptr [RAX],CL
MOV RAX,qword ptr [RSP + 0x60]
ADD RAX,0x1
MOV qword ptr [RSP + 0x60],RAX
CMP dword ptr [RSP + 0x6c],0x80
JNC 0x00121984
MOV RAX,qword ptr [RSP + 0x60]
MOV qword ptr [RSP + 0x70],RAX
LAB_001219d0:
MOV RAX,qword ptr [RSP + 0x70]
ADD RSP,0x78
RET
|
/* WARNING: Removing unreachable block (ram,0x00121898) */
/* WARNING: Removing unreachable block (ram,0x001218aa) */
/* WARNING: Removing unreachable block (ram,0x001218a8) */
/* WARNING: Removing unreachable block (ram,0x001218f8) */
/* WARNING: Removing unreachable block (ram,0x00121901) */
/* WARNING: Removing unreachable block (ram,0x001218ff) */
/* WARNING: Removing unreachable block (ram,0x0012190b) */
/* google::protobuf::io::CodedOutputStream::WriteVarint32ToArrayOutOfLineHelper(unsigned int,
unsigned char*) */
uchar * google::protobuf::io::CodedOutputStream::WriteVarint32ToArrayOutOfLineHelper
(uint param_1,uchar *param_2)
{
uchar *local_18;
uint local_c;
uchar *local_8;
*param_2 = *param_2 | 0x80;
local_c = param_1 >> 7;
param_2[1] = (uchar)local_c;
if (local_c < 0x80) {
local_8 = param_2 + 2;
}
else {
local_18 = param_2 + 2;
do {
local_18[-1] = local_18[-1] | 0x80;
local_c = local_c >> 7;
*local_18 = (uchar)local_c;
local_18 = local_18 + 1;
local_8 = local_18;
} while (0x7f < local_c);
}
return local_8;
}
| |
45,246 | my_message_stderr | eloqsql/mysys/my_mess.c | void my_message_stderr(uint error __attribute__((unused)),
const char *str, myf MyFlags)
{
DBUG_ENTER("my_message_stderr");
DBUG_PRINT("enter",("message: %s",str));
(void) fflush(stdout);
if (MyFlags & (ME_NOTE | ME_ERROR_LOG_ONLY))
DBUG_VOID_RETURN;
if (MyFlags & ME_BELL)
(void) fputc('\007', stderr);
if (my_progname)
{
(void)fputs(my_progname,stderr); (void)fputs(": ",stderr);
}
(void)fputs(str,stderr);
(void)fputc('\n',stderr);
(void)fflush(stderr);
DBUG_VOID_RETURN;
} | O0 | c | my_message_stderr:
pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movl %edi, -0x4(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
jmp 0xf3dd5
movq 0x1c91f4(%rip), %rax # 0x2bcfd0
movq (%rax), %rdi
callq 0x2a3e0
movq -0x18(%rbp), %rax
andq $0x480, %rax # imm = 0x480
cmpq $0x0, %rax
je 0xf3dfb
jmp 0xf3df6
jmp 0xf3e91
movq -0x18(%rbp), %rax
andq $0x4, %rax
cmpq $0x0, %rax
je 0xf3e1d
movq 0x1c91c8(%rip), %rax # 0x2bcfd8
movq (%rax), %rsi
movl $0x7, %edi
callq 0x2a690
leaq 0xb8eb7c(%rip), %rax # 0xc829a0
cmpq $0x0, (%rax)
je 0xf3e59
leaq 0xb8eb6f(%rip), %rax # 0xc829a0
movq (%rax), %rdi
movq 0x1c919d(%rip), %rax # 0x2bcfd8
movq (%rax), %rsi
callq 0x2a2e0
movq 0x1c918e(%rip), %rax # 0x2bcfd8
movq (%rax), %rsi
leaq 0x608a8(%rip), %rdi # 0x1546fc
callq 0x2a2e0
movq -0x10(%rbp), %rdi
movq 0x1c9174(%rip), %rax # 0x2bcfd8
movq (%rax), %rsi
callq 0x2a2e0
movq 0x1c9165(%rip), %rax # 0x2bcfd8
movq (%rax), %rsi
movl $0xa, %edi
callq 0x2a690
movq 0x1c9151(%rip), %rax # 0x2bcfd8
movq (%rax), %rdi
callq 0x2a3e0
jmp 0xf3e91
addq $0x20, %rsp
popq %rbp
retq
nopw (%rax,%rax)
| my_message_stderr:
push rbp
mov rbp, rsp
sub rsp, 20h
mov [rbp+var_4], edi
mov [rbp+var_10], rsi
mov [rbp+var_18], rdx
jmp short $+2
loc_F3DD5:
mov rax, cs:stdout_ptr
mov rdi, [rax]
call _fflush
mov rax, [rbp+var_18]
and rax, 480h
cmp rax, 0
jz short loc_F3DFB
jmp short $+2
loc_F3DF6:
jmp loc_F3E91
loc_F3DFB:
mov rax, [rbp+var_18]
and rax, 4
cmp rax, 0
jz short loc_F3E1D
mov rax, cs:stderr_ptr
mov rsi, [rax]
mov edi, 7
call _fputc
loc_F3E1D:
lea rax, my_progname
cmp qword ptr [rax], 0
jz short loc_F3E59
lea rax, my_progname
mov rdi, [rax]
mov rax, cs:stderr_ptr
mov rsi, [rax]
call _fputs
mov rax, cs:stderr_ptr
mov rsi, [rax]
lea rdi, aWarning+8; ": "
call _fputs
loc_F3E59:
mov rdi, [rbp+var_10]
mov rax, cs:stderr_ptr
mov rsi, [rax]
call _fputs
mov rax, cs:stderr_ptr
mov rsi, [rax]
mov edi, 0Ah
call _fputc
mov rax, cs:stderr_ptr
mov rdi, [rax]
call _fflush
jmp short $+2
loc_F3E91:
add rsp, 20h
pop rbp
retn
| long long my_message_stderr(long long a1, long long a2, __int16 a3)
{
long long result; // rax
fflush(stdout);
result = a3 & 0x480;
if ( (a3 & 0x480) == 0 )
{
if ( (a3 & 4) != 0 )
fputc(7LL, stderr);
if ( my_progname )
{
fputs(my_progname, stderr);
fputs(": ", stderr);
}
fputs(a2, stderr);
fputc(10LL, stderr);
return fflush(stderr);
}
return result;
}
| my_message_stderr:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x20
MOV dword ptr [RBP + -0x4],EDI
MOV qword ptr [RBP + -0x10],RSI
MOV qword ptr [RBP + -0x18],RDX
JMP 0x001f3dd5
LAB_001f3dd5:
MOV RAX,qword ptr [0x003bcfd0]
MOV RDI,qword ptr [RAX]
CALL 0x0012a3e0
MOV RAX,qword ptr [RBP + -0x18]
AND RAX,0x480
CMP RAX,0x0
JZ 0x001f3dfb
JMP 0x001f3df6
LAB_001f3df6:
JMP 0x001f3e91
LAB_001f3dfb:
MOV RAX,qword ptr [RBP + -0x18]
AND RAX,0x4
CMP RAX,0x0
JZ 0x001f3e1d
MOV RAX,qword ptr [0x003bcfd8]
MOV RSI,qword ptr [RAX]
MOV EDI,0x7
CALL 0x0012a690
LAB_001f3e1d:
LEA RAX,[0xd829a0]
CMP qword ptr [RAX],0x0
JZ 0x001f3e59
LEA RAX,[0xd829a0]
MOV RDI,qword ptr [RAX]
MOV RAX,qword ptr [0x003bcfd8]
MOV RSI,qword ptr [RAX]
CALL 0x0012a2e0
MOV RAX,qword ptr [0x003bcfd8]
MOV RSI,qword ptr [RAX]
LEA RDI,[0x2546fc]
CALL 0x0012a2e0
LAB_001f3e59:
MOV RDI,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [0x003bcfd8]
MOV RSI,qword ptr [RAX]
CALL 0x0012a2e0
MOV RAX,qword ptr [0x003bcfd8]
MOV RSI,qword ptr [RAX]
MOV EDI,0xa
CALL 0x0012a690
MOV RAX,qword ptr [0x003bcfd8]
MOV RDI,qword ptr [RAX]
CALL 0x0012a3e0
JMP 0x001f3e91
LAB_001f3e91:
ADD RSP,0x20
POP RBP
RET
|
void my_message_stderr(int8 param_1,char *param_2,ulong param_3)
{
fflush(*(FILE **)PTR_stdout_003bcfd0);
if ((param_3 & 0x480) == 0) {
if ((param_3 & 4) != 0) {
fputc(7,*(FILE **)PTR_stderr_003bcfd8);
}
if (my_progname != (char *)0x0) {
fputs(my_progname,*(FILE **)PTR_stderr_003bcfd8);
fputs(": ",*(FILE **)PTR_stderr_003bcfd8);
}
fputs(param_2,*(FILE **)PTR_stderr_003bcfd8);
fputc(10,*(FILE **)PTR_stderr_003bcfd8);
fflush(*(FILE **)PTR_stderr_003bcfd8);
}
return;
}
| |
45,247 | minja::error_location_suffix(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, unsigned long) | monkey531[P]llama/common/minja.hpp | static std::string error_location_suffix(const std::string & source, size_t pos) {
auto get_line = [&](size_t line) {
auto start = source.begin();
for (size_t i = 1; i < line; ++i) {
start = std::find(start, source.end(), '\n') + 1;
}
auto end = std::find(start, source.end(), '\n');
return std::string(start, end);
};
auto start = source.begin();
auto end = source.end();
auto it = start + pos;
auto line = std::count(start, it, '\n') + 1;
auto max_line = std::count(start, end, '\n') + 1;
auto col = pos - std::string(start, it).rfind('\n');
std::ostringstream out;
out << " at row " << line << ", column " << col << ":\n";
if (line > 1) out << get_line(line - 1) << "\n";
out << get_line(line) << "\n";
out << std::string(col - 1, ' ') << "^\n";
if (line < max_line) out << get_line(line + 1) << "\n";
return out.str();
} | O1 | cpp | minja::error_location_suffix(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, unsigned long):
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x1b8, %rsp # imm = 0x1B8
movq %rsi, %r14
movq %rdi, 0x30(%rsp)
movq (%rsi), %rsi
movq 0x8(%r14), %rax
testq %rdx, %rdx
je 0xda04c
xorl %ecx, %ecx
xorl %r12d, %r12d
xorl %edi, %edi
cmpb $0xa, (%rsi,%rcx)
sete %dil
addq %rdi, %r12
incq %rcx
cmpq %rcx, %rdx
jne 0xda035
jmp 0xda04f
xorl %r12d, %r12d
movq %rdx, 0x28(%rsp)
addq %rsi, %rdx
testq %rax, %rax
je 0xda078
xorl %ecx, %ecx
xorl %r15d, %r15d
xorl %edi, %edi
cmpb $0xa, (%rsi,%rcx)
sete %dil
addq %rdi, %r15
incq %rcx
cmpq %rcx, %rax
jne 0xda061
jmp 0xda07b
xorl %r15d, %r15d
leaq 0x50(%rsp), %rbp
movq %rbp, -0x10(%rbp)
leaq 0x40(%rsp), %rbx
movq %rbx, %rdi
callq 0x71746
movq %rbx, %rdi
movl $0xa, %esi
movq $-0x1, %rdx
callq 0x1c160
movq %rax, %r13
movq (%rbx), %rdi
cmpq %rbp, %rdi
je 0xda0bd
movq 0x50(%rsp), %rsi
incq %rsi
callq 0x1b900
leaq 0x40(%rsp), %rbx
movq %rbx, %rdi
callq 0x1bbb0
leaq 0x1a0f8(%rip), %rsi # 0xf41c9
movl $0x8, %edx
movq %rbx, %rdi
callq 0x1ba20
leaq 0x1(%r12), %rbx
leaq 0x40(%rsp), %rdi
movq %rbx, %rsi
callq 0x1b860
movq %rax, %rbp
leaq 0x16613(%rip), %rsi # 0xf070d
movl $0x9, %edx
movq %rax, %rdi
callq 0x1ba20
movq 0x28(%rsp), %rsi
subq %r13, %rsi
movq %rbp, %rdi
movq %rsi, 0x28(%rsp)
callq 0x1b600
leaq 0x1debc(%rip), %rsi # 0xf7fdf
movl $0x2, %edx
movq %rax, %rdi
callq 0x1ba20
testq %r12, %r12
jle 0xda1da
movq (%r14), %r13
cmpq $0x1, %r12
je 0xda16b
leaq -0x1(%r12), %rbp
movq (%r14), %rsi
addq 0x8(%r14), %rsi
movb $0xa, 0x7(%rsp)
movq %r13, %rdi
leaq 0x7(%rsp), %rdx
callq 0x9af2e
movq %rax, %r13
incq %r13
decq %rbp
jne 0xda147
movq (%r14), %rsi
addq 0x8(%r14), %rsi
leaq 0x7(%rsp), %rdx
movb $0xa, (%rdx)
movq %r13, %rdi
callq 0x9af2e
leaq 0x18(%rsp), %rbp
movq %rbp, -0x10(%rbp)
leaq 0x8(%rsp), %rdi
movq %r13, %rsi
movq %rax, %rdx
callq 0x71746
movq 0x8(%rsp), %rsi
movq 0x10(%rsp), %rdx
leaq 0x40(%rsp), %rdi
callq 0x1ba20
leaq 0xf699(%rip), %rsi # 0xe984f
movl $0x1, %edx
movq %rax, %rdi
callq 0x1ba20
movq 0x8(%rsp), %rdi
cmpq %rbp, %rdi
je 0xda1da
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x1b900
movq (%r14), %r13
movq %rbx, 0x38(%rsp)
cmpq $0x2, %rbx
jb 0xda212
leaq 0x7(%rsp), %rbp
movq %r12, %rbx
movq (%r14), %rsi
addq 0x8(%r14), %rsi
movb $0xa, 0x7(%rsp)
movq %r13, %rdi
movq %rbp, %rdx
callq 0x9af2e
movq %rax, %r13
incq %r13
decq %rbx
jne 0xda1f0
movq (%r14), %rsi
addq 0x8(%r14), %rsi
leaq 0x7(%rsp), %rdx
movb $0xa, (%rdx)
movq %r13, %rdi
callq 0x9af2e
leaq 0x18(%rsp), %rbp
movq %rbp, -0x10(%rbp)
leaq 0x8(%rsp), %rdi
movq %r13, %rsi
movq %rax, %rdx
callq 0x71746
movq 0x8(%rsp), %rsi
movq 0x10(%rsp), %rdx
leaq 0x40(%rsp), %rdi
callq 0x1ba20
movq 0x38(%rsp), %rbx
leaq 0xf5ed(%rip), %rsi # 0xe984f
movl $0x1, %edx
movq %rax, %rdi
callq 0x1ba20
movq 0x8(%rsp), %rdi
cmpq %rbp, %rdi
je 0xda286
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x1b900
movq 0x28(%rsp), %rsi
decq %rsi
leaq 0x8(%rsp), %rdi
movq %rbp, (%rdi)
movl $0x20, %edx
callq 0x1ba50
movq 0x8(%rsp), %rsi
movq 0x10(%rsp), %rdx
leaq 0x40(%rsp), %rdi
callq 0x1ba20
leaq 0x19f17(%rip), %rsi # 0xf41d2
movl $0x2, %edx
movq %rax, %rdi
callq 0x1ba20
movq 0x8(%rsp), %rdi
cmpq %rbp, %rdi
je 0xda2df
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x1b900
cmpq %r15, %r12
jge 0xda381
movq (%r14), %r15
cmpq $-0x3, %r12
ja 0xda318
leaq 0x7(%rsp), %r13
movq (%r14), %rsi
addq 0x8(%r14), %rsi
movb $0xa, 0x7(%rsp)
movq %r15, %rdi
movq %r13, %rdx
callq 0x9af2e
movq %rax, %r15
incq %r15
decq %rbx
jne 0xda2f6
movq (%r14), %rsi
addq 0x8(%r14), %rsi
leaq 0x7(%rsp), %rdx
movb $0xa, (%rdx)
movq %r15, %rdi
callq 0x9af2e
leaq 0x8(%rsp), %rdi
movq %rbp, (%rdi)
movq %r15, %rsi
movq %rax, %rdx
callq 0x71746
movq 0x8(%rsp), %rsi
movq 0x10(%rsp), %rdx
leaq 0x40(%rsp), %rdi
callq 0x1ba20
leaq 0xf4f2(%rip), %rsi # 0xe984f
movl $0x1, %edx
movq %rax, %rdi
callq 0x1ba20
movq 0x8(%rsp), %rdi
cmpq %rbp, %rdi
je 0xda381
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x1b900
leaq 0x48(%rsp), %rsi
movq 0x30(%rsp), %rdi
callq 0x1bdd0
movq 0x54be1(%rip), %rsi # 0x12ef78
leaq 0x40(%rsp), %rdi
callq 0x1b4b0
leaq 0xb0(%rsp), %rdi
callq 0x1b2b0
movq 0x30(%rsp), %rax
addq $0x1b8, %rsp # imm = 0x1B8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0xda3ef
jmp 0xda3ef
jmp 0xda3d3
jmp 0xda3ef
jmp 0xda3ef
jmp 0xda3d3
jmp 0xda3d3
movq %rax, %rbx
movq 0x8(%rsp), %rdi
cmpq %rbp, %rdi
je 0xda3f2
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x1b900
jmp 0xda3f2
movq %rax, %rbx
movq 0x54b7f(%rip), %rsi # 0x12ef78
leaq 0x40(%rsp), %rdi
callq 0x1b4b0
leaq 0xb0(%rsp), %rdi
callq 0x1b2b0
movq %rbx, %rdi
callq 0x1bfc0
| _ZN5minjaL21error_location_suffixERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEm_0:
push rbp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 1B8h
mov r14, rsi
mov [rsp+1E8h+var_1B8], rdi
mov rsi, [rsi]
mov rax, [r14+8]
test rdx, rdx
jz short loc_DA04C
xor ecx, ecx
xor r12d, r12d
loc_DA035:
xor edi, edi
cmp byte ptr [rsi+rcx], 0Ah
setz dil
add r12, rdi
inc rcx
cmp rdx, rcx
jnz short loc_DA035
jmp short loc_DA04F
loc_DA04C:
xor r12d, r12d
loc_DA04F:
mov [rsp+1E8h+var_1C0], rdx
add rdx, rsi
test rax, rax
jz short loc_DA078
xor ecx, ecx
xor r15d, r15d
loc_DA061:
xor edi, edi
cmp byte ptr [rsi+rcx], 0Ah
setz dil
add r15, rdi
inc rcx
cmp rax, rcx
jnz short loc_DA061
jmp short loc_DA07B
loc_DA078:
xor r15d, r15d
loc_DA07B:
lea rbp, [rsp+1E8h+var_198]
mov [rbp-10h], rbp
lea rbx, [rsp+1E8h+var_1A8]
mov rdi, rbx
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIN9__gnu_cxx17__normal_iteratorIPKcS4_EEEEvT_SB_St20forward_iterator_tag; std::string::_M_construct<__gnu_cxx::__normal_iterator<char const*,std::string>>(__gnu_cxx::__normal_iterator<char const*,std::string>,__gnu_cxx::__normal_iterator<char const*,std::string>,std::forward_iterator_tag)
mov rdi, rbx
mov esi, 0Ah
mov rdx, 0FFFFFFFFFFFFFFFFh
call __ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5rfindEcm; std::string::rfind(char,ulong)
mov r13, rax
mov rdi, [rbx]; void *
cmp rdi, rbp
jz short loc_DA0BD
mov rsi, [rsp+1E8h+var_198]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_DA0BD:
lea rbx, [rsp+1E8h+var_1A8]
mov rdi, rbx
call __ZNSt7__cxx1119basic_ostringstreamIcSt11char_traitsIcESaIcEEC1Ev; std::ostringstream::basic_ostringstream(void)
lea rsi, aAtRow; " at row "
mov edx, 8
mov rdi, rbx
call __ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l; std::__ostream_insert<char,std::char_traits<char>>(std::ostream &,char const*,long)
lea rbx, [r12+1]
lea rdi, [rsp+1E8h+var_1A8]
mov rsi, rbx
call __ZNSo9_M_insertIlEERSoT_; std::ostream::_M_insert<long>(long)
mov rbp, rax
lea rsi, aColumn; ", column "
mov edx, 9
mov rdi, rax
call __ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l; std::__ostream_insert<char,std::char_traits<char>>(std::ostream &,char const*,long)
mov rsi, [rsp+1E8h+var_1C0]
sub rsi, r13
mov rdi, rbp
mov [rsp+1E8h+var_1C0], rsi
call __ZNSo9_M_insertImEERSoT_; std::ostream::_M_insert<ulong>(ulong)
lea rsi, aJsonSchemaConv+1Dh; ":\n"
mov edx, 2
mov rdi, rax
call __ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l; std::__ostream_insert<char,std::char_traits<char>>(std::ostream &,char const*,long)
test r12, r12
jle loc_DA1DA
mov r13, [r14]
cmp r12, 1
jz short loc_DA16B
lea rbp, [r12-1]
loc_DA147:
mov rsi, [r14]
add rsi, [r14+8]
mov [rsp+1E8h+var_1E1], 0Ah
mov rdi, r13
lea rdx, [rsp+1E8h+var_1E1]
call _ZSt9__find_ifIN9__gnu_cxx17__normal_iteratorIPKcNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEENS0_5__ops16_Iter_equals_valIS2_EEET_SE_SE_T0_St26random_access_iterator_tag; std::__find_if<__gnu_cxx::__normal_iterator<char const*,std::string>,__gnu_cxx::__ops::_Iter_equals_val<char const>>(__gnu_cxx::__normal_iterator<char const*,std::string>,__gnu_cxx::__normal_iterator<char const*,std::string>,__gnu_cxx::__ops::_Iter_equals_val<char const>,std::random_access_iterator_tag)
mov r13, rax
inc r13
dec rbp
jnz short loc_DA147
loc_DA16B:
mov rsi, [r14]
add rsi, [r14+8]
lea rdx, [rsp+1E8h+var_1E1]
mov byte ptr [rdx], 0Ah
mov rdi, r13
call _ZSt9__find_ifIN9__gnu_cxx17__normal_iteratorIPKcNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEENS0_5__ops16_Iter_equals_valIS2_EEET_SE_SE_T0_St26random_access_iterator_tag; std::__find_if<__gnu_cxx::__normal_iterator<char const*,std::string>,__gnu_cxx::__ops::_Iter_equals_val<char const>>(__gnu_cxx::__normal_iterator<char const*,std::string>,__gnu_cxx::__normal_iterator<char const*,std::string>,__gnu_cxx::__ops::_Iter_equals_val<char const>,std::random_access_iterator_tag)
lea rbp, [rsp+1E8h+var_1D0]
mov [rbp-10h], rbp
lea rdi, [rsp+1E8h+var_1E0]
mov rsi, r13
mov rdx, rax
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIN9__gnu_cxx17__normal_iteratorIPKcS4_EEEEvT_SB_St20forward_iterator_tag; std::string::_M_construct<__gnu_cxx::__normal_iterator<char const*,std::string>>(__gnu_cxx::__normal_iterator<char const*,std::string>,__gnu_cxx::__normal_iterator<char const*,std::string>,std::forward_iterator_tag)
mov rsi, [rsp+1E8h+var_1E0]
mov rdx, [rsp+1E8h+var_1D8]
lea rdi, [rsp+1E8h+var_1A8]
call __ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l; std::__ostream_insert<char,std::char_traits<char>>(std::ostream &,char const*,long)
lea rsi, aProcessingRequ+18h; "\n"
mov edx, 1
mov rdi, rax
call __ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l; std::__ostream_insert<char,std::char_traits<char>>(std::ostream &,char const*,long)
mov rdi, [rsp+1E8h+var_1E0]; void *
cmp rdi, rbp
jz short loc_DA1DA
mov rsi, [rsp+1E8h+var_1D0]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_DA1DA:
mov r13, [r14]
mov [rsp+1E8h+var_1B0], rbx
cmp rbx, 2
jb short loc_DA212
lea rbp, [rsp+1E8h+var_1E1]
mov rbx, r12
loc_DA1F0:
mov rsi, [r14]
add rsi, [r14+8]
mov [rsp+1E8h+var_1E1], 0Ah
mov rdi, r13
mov rdx, rbp
call _ZSt9__find_ifIN9__gnu_cxx17__normal_iteratorIPKcNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEENS0_5__ops16_Iter_equals_valIS2_EEET_SE_SE_T0_St26random_access_iterator_tag; std::__find_if<__gnu_cxx::__normal_iterator<char const*,std::string>,__gnu_cxx::__ops::_Iter_equals_val<char const>>(__gnu_cxx::__normal_iterator<char const*,std::string>,__gnu_cxx::__normal_iterator<char const*,std::string>,__gnu_cxx::__ops::_Iter_equals_val<char const>,std::random_access_iterator_tag)
mov r13, rax
inc r13
dec rbx
jnz short loc_DA1F0
loc_DA212:
mov rsi, [r14]
add rsi, [r14+8]
lea rdx, [rsp+1E8h+var_1E1]
mov byte ptr [rdx], 0Ah
mov rdi, r13
call _ZSt9__find_ifIN9__gnu_cxx17__normal_iteratorIPKcNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEENS0_5__ops16_Iter_equals_valIS2_EEET_SE_SE_T0_St26random_access_iterator_tag; std::__find_if<__gnu_cxx::__normal_iterator<char const*,std::string>,__gnu_cxx::__ops::_Iter_equals_val<char const>>(__gnu_cxx::__normal_iterator<char const*,std::string>,__gnu_cxx::__normal_iterator<char const*,std::string>,__gnu_cxx::__ops::_Iter_equals_val<char const>,std::random_access_iterator_tag)
lea rbp, [rsp+1E8h+var_1D0]
mov [rbp-10h], rbp
lea rdi, [rsp+1E8h+var_1E0]
mov rsi, r13
mov rdx, rax
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIN9__gnu_cxx17__normal_iteratorIPKcS4_EEEEvT_SB_St20forward_iterator_tag; std::string::_M_construct<__gnu_cxx::__normal_iterator<char const*,std::string>>(__gnu_cxx::__normal_iterator<char const*,std::string>,__gnu_cxx::__normal_iterator<char const*,std::string>,std::forward_iterator_tag)
mov rsi, [rsp+1E8h+var_1E0]
mov rdx, [rsp+1E8h+var_1D8]
lea rdi, [rsp+1E8h+var_1A8]
call __ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l; std::__ostream_insert<char,std::char_traits<char>>(std::ostream &,char const*,long)
mov rbx, [rsp+1E8h+var_1B0]
lea rsi, aProcessingRequ+18h; "\n"
mov edx, 1
mov rdi, rax
call __ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l; std::__ostream_insert<char,std::char_traits<char>>(std::ostream &,char const*,long)
mov rdi, [rsp+1E8h+var_1E0]; void *
cmp rdi, rbp
jz short loc_DA286
mov rsi, [rsp+1E8h+var_1D0]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_DA286:
mov rsi, [rsp+1E8h+var_1C0]
dec rsi
lea rdi, [rsp+1E8h+var_1E0]
mov [rdi], rbp
mov edx, 20h ; ' '
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructEmc; std::string::_M_construct(ulong,char)
mov rsi, [rsp+1E8h+var_1E0]
mov rdx, [rsp+1E8h+var_1D8]
lea rdi, [rsp+1E8h+var_1A8]
call __ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l; std::__ostream_insert<char,std::char_traits<char>>(std::ostream &,char const*,long)
lea rsi, asc_F41D2; "^\n"
mov edx, 2
mov rdi, rax
call __ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l; std::__ostream_insert<char,std::char_traits<char>>(std::ostream &,char const*,long)
mov rdi, [rsp+1E8h+var_1E0]; void *
cmp rdi, rbp
jz short loc_DA2DF
mov rsi, [rsp+1E8h+var_1D0]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_DA2DF:
cmp r12, r15
jge loc_DA381
mov r15, [r14]
cmp r12, 0FFFFFFFFFFFFFFFDh
ja short loc_DA318
lea r13, [rsp+1E8h+var_1E1]
loc_DA2F6:
mov rsi, [r14]
add rsi, [r14+8]
mov [rsp+1E8h+var_1E1], 0Ah
mov rdi, r15
mov rdx, r13
call _ZSt9__find_ifIN9__gnu_cxx17__normal_iteratorIPKcNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEENS0_5__ops16_Iter_equals_valIS2_EEET_SE_SE_T0_St26random_access_iterator_tag; std::__find_if<__gnu_cxx::__normal_iterator<char const*,std::string>,__gnu_cxx::__ops::_Iter_equals_val<char const>>(__gnu_cxx::__normal_iterator<char const*,std::string>,__gnu_cxx::__normal_iterator<char const*,std::string>,__gnu_cxx::__ops::_Iter_equals_val<char const>,std::random_access_iterator_tag)
mov r15, rax
inc r15
dec rbx
jnz short loc_DA2F6
loc_DA318:
mov rsi, [r14]
add rsi, [r14+8]
lea rdx, [rsp+1E8h+var_1E1]
mov byte ptr [rdx], 0Ah
mov rdi, r15
call _ZSt9__find_ifIN9__gnu_cxx17__normal_iteratorIPKcNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEENS0_5__ops16_Iter_equals_valIS2_EEET_SE_SE_T0_St26random_access_iterator_tag; std::__find_if<__gnu_cxx::__normal_iterator<char const*,std::string>,__gnu_cxx::__ops::_Iter_equals_val<char const>>(__gnu_cxx::__normal_iterator<char const*,std::string>,__gnu_cxx::__normal_iterator<char const*,std::string>,__gnu_cxx::__ops::_Iter_equals_val<char const>,std::random_access_iterator_tag)
lea rdi, [rsp+1E8h+var_1E0]
mov [rdi], rbp
mov rsi, r15
mov rdx, rax
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIN9__gnu_cxx17__normal_iteratorIPKcS4_EEEEvT_SB_St20forward_iterator_tag; std::string::_M_construct<__gnu_cxx::__normal_iterator<char const*,std::string>>(__gnu_cxx::__normal_iterator<char const*,std::string>,__gnu_cxx::__normal_iterator<char const*,std::string>,std::forward_iterator_tag)
mov rsi, [rsp+1E8h+var_1E0]
mov rdx, [rsp+1E8h+var_1D8]
lea rdi, [rsp+1E8h+var_1A8]
call __ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l; std::__ostream_insert<char,std::char_traits<char>>(std::ostream &,char const*,long)
lea rsi, aProcessingRequ+18h; "\n"
mov edx, 1
mov rdi, rax
call __ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l; std::__ostream_insert<char,std::char_traits<char>>(std::ostream &,char const*,long)
mov rdi, [rsp+1E8h+var_1E0]; void *
cmp rdi, rbp
jz short loc_DA381
mov rsi, [rsp+1E8h+var_1D0]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_DA381:
lea rsi, [rsp+1E8h+var_1A0]
mov rdi, [rsp+1E8h+var_1B8]
call __ZNKSt7__cxx1115basic_stringbufIcSt11char_traitsIcESaIcEE3strEv; std::stringbuf::str(void)
mov rsi, cs:_ZTTNSt7__cxx1119basic_ostringstreamIcSt11char_traitsIcESaIcEEE_ptr
lea rdi, [rsp+1E8h+var_1A8]
call __ZNSt7__cxx1119basic_ostringstreamIcSt11char_traitsIcESaIcEED2Ev; std::ostringstream::~ostringstream()
lea rdi, [rsp+1E8h+var_138]; this
call __ZNSt8ios_baseD2Ev; std::ios_base::~ios_base()
mov rax, [rsp+1E8h+var_1B8]
add rsp, 1B8h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
jmp short loc_DA3EF
jmp short loc_DA3EF
jmp short loc_DA3D3
jmp short loc_DA3EF
jmp short loc_DA3EF
jmp short loc_DA3D3
jmp short $+2
loc_DA3D3:
mov rbx, rax
mov rdi, [rsp+arg_0]; void *
cmp rdi, rbp
jz short loc_DA3F2
mov rsi, [rsp+arg_10]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
jmp short loc_DA3F2
loc_DA3EF:
mov rbx, rax
loc_DA3F2:
mov rsi, cs:_ZTTNSt7__cxx1119basic_ostringstreamIcSt11char_traitsIcESaIcEEE_ptr
lea rdi, [rsp+arg_38]
call __ZNSt7__cxx1119basic_ostringstreamIcSt11char_traitsIcESaIcEED2Ev; std::ostringstream::~ostringstream()
lea rdi, [rsp+arg_A8]; this
call __ZNSt8ios_baseD2Ev; std::ios_base::~ios_base()
mov rdi, rbx
call __Unwind_Resume
| long long minja::error_location_suffix(long long a1, long long a2, long long a3)
{
_BYTE *v4; // rsi
long long v5; // rax
long long v6; // rcx
long long v7; // r12
long long v8; // rdx
long long v9; // rcx
long long v10; // r15
long long v11; // r13
long long v12; // rbp
long long v13; // rax
_BYTE *v14; // r13
long long v15; // rbp
long long v16; // rsi
long long v17; // rsi
_BYTE *v18; // rax
long long v19; // rax
_BYTE *v20; // r13
long long v21; // rbx
long long v22; // rsi
long long v23; // rsi
_BYTE *v24; // rax
long long v25; // rax
long long v26; // rbx
long long v27; // rax
_BYTE *v28; // r15
long long v29; // rsi
long long v30; // rsi
_BYTE *v31; // rax
long long v32; // rax
char v34; // [rsp+7h] [rbp-1E1h] BYREF
void *v35; // [rsp+8h] [rbp-1E0h] BYREF
long long v36; // [rsp+10h] [rbp-1D8h]
_QWORD v37[2]; // [rsp+18h] [rbp-1D0h] BYREF
long long v38; // [rsp+28h] [rbp-1C0h]
long long v39; // [rsp+30h] [rbp-1B8h]
long long v40; // [rsp+38h] [rbp-1B0h]
_QWORD *v41; // [rsp+40h] [rbp-1A8h] BYREF
char v42[8]; // [rsp+48h] [rbp-1A0h] BYREF
_QWORD v43[12]; // [rsp+50h] [rbp-198h] BYREF
char v44[312]; // [rsp+B0h] [rbp-138h] BYREF
v39 = a1;
v4 = *(_BYTE **)a2;
v5 = *(_QWORD *)(a2 + 8);
if ( a3 )
{
v6 = 0LL;
v7 = 0LL;
do
v7 += v4[v6++] == 10;
while ( a3 != v6 );
}
else
{
v7 = 0LL;
}
v38 = a3;
v8 = (long long)&v4[a3];
if ( v5 )
{
v9 = 0LL;
v10 = 0LL;
do
v10 += v4[v9++] == 10;
while ( v5 != v9 );
}
else
{
v10 = 0LL;
}
v41 = v43;
std::string::_M_construct<__gnu_cxx::__normal_iterator<char const*,std::string>>(&v41, v4, v8);
v11 = std::string::rfind(&v41, 10LL, -1LL);
if ( v41 != v43 )
operator delete(v41, v43[0] + 1LL);
std::ostringstream::basic_ostringstream(&v41);
std::__ostream_insert<char,std::char_traits<char>>(&v41, " at row ", 8LL);
v12 = std::ostream::_M_insert<long>(&v41, v7 + 1);
std::__ostream_insert<char,std::char_traits<char>>(v12, ", column ", 9LL);
v38 -= v11;
v13 = std::ostream::_M_insert<unsigned long>(v12, v38);
std::__ostream_insert<char,std::char_traits<char>>(v13, ":\n", 2LL);
if ( v7 > 0 )
{
v14 = *(_BYTE **)a2;
if ( v7 != 1 )
{
v15 = v7 - 1;
do
{
v16 = *(_QWORD *)(a2 + 8) + *(_QWORD *)a2;
v34 = 10;
v14 = std::__find_if<__gnu_cxx::__normal_iterator<char const*,std::string>,__gnu_cxx::__ops::_Iter_equals_val<char const>>(
v14,
v16,
&v34)
+ 1;
--v15;
}
while ( v15 );
}
v17 = *(_QWORD *)(a2 + 8) + *(_QWORD *)a2;
v34 = 10;
v18 = std::__find_if<__gnu_cxx::__normal_iterator<char const*,std::string>,__gnu_cxx::__ops::_Iter_equals_val<char const>>(
v14,
v17,
&v34);
v35 = v37;
std::string::_M_construct<__gnu_cxx::__normal_iterator<char const*,std::string>>(&v35, v14, (long long)v18);
v19 = std::__ostream_insert<char,std::char_traits<char>>(&v41, v35, v36);
std::__ostream_insert<char,std::char_traits<char>>(v19, "\n", 1LL);
if ( v35 != v37 )
operator delete(v35, v37[0] + 1LL);
}
v20 = *(_BYTE **)a2;
v40 = v7 + 1;
if ( (unsigned long long)(v7 + 1) >= 2 )
{
v21 = v7;
do
{
v22 = *(_QWORD *)(a2 + 8) + *(_QWORD *)a2;
v34 = 10;
v20 = std::__find_if<__gnu_cxx::__normal_iterator<char const*,std::string>,__gnu_cxx::__ops::_Iter_equals_val<char const>>(
v20,
v22,
&v34)
+ 1;
--v21;
}
while ( v21 );
}
v23 = *(_QWORD *)(a2 + 8) + *(_QWORD *)a2;
v34 = 10;
v24 = std::__find_if<__gnu_cxx::__normal_iterator<char const*,std::string>,__gnu_cxx::__ops::_Iter_equals_val<char const>>(
v20,
v23,
&v34);
v35 = v37;
std::string::_M_construct<__gnu_cxx::__normal_iterator<char const*,std::string>>(&v35, v20, (long long)v24);
v25 = std::__ostream_insert<char,std::char_traits<char>>(&v41, v35, v36);
v26 = v40;
std::__ostream_insert<char,std::char_traits<char>>(v25, "\n", 1LL);
if ( v35 != v37 )
operator delete(v35, v37[0] + 1LL);
v35 = v37;
std::string::_M_construct(&v35, v38 - 1, 32LL);
v27 = std::__ostream_insert<char,std::char_traits<char>>(&v41, v35, v36);
std::__ostream_insert<char,std::char_traits<char>>(v27, "^\n", 2LL);
if ( v35 != v37 )
operator delete(v35, v37[0] + 1LL);
if ( v7 < v10 )
{
v28 = *(_BYTE **)a2;
if ( (unsigned long long)v7 <= 0xFFFFFFFFFFFFFFFDLL )
{
do
{
v29 = *(_QWORD *)(a2 + 8) + *(_QWORD *)a2;
v34 = 10;
v28 = std::__find_if<__gnu_cxx::__normal_iterator<char const*,std::string>,__gnu_cxx::__ops::_Iter_equals_val<char const>>(
v28,
v29,
&v34)
+ 1;
--v26;
}
while ( v26 );
}
v30 = *(_QWORD *)(a2 + 8) + *(_QWORD *)a2;
v34 = 10;
v31 = std::__find_if<__gnu_cxx::__normal_iterator<char const*,std::string>,__gnu_cxx::__ops::_Iter_equals_val<char const>>(
v28,
v30,
&v34);
v35 = v37;
std::string::_M_construct<__gnu_cxx::__normal_iterator<char const*,std::string>>(&v35, v28, (long long)v31);
v32 = std::__ostream_insert<char,std::char_traits<char>>(&v41, v35, v36);
std::__ostream_insert<char,std::char_traits<char>>(v32, "\n", 1LL);
if ( v35 != v37 )
operator delete(v35, v37[0] + 1LL);
}
std::stringbuf::str(v39, v42);
std::ostringstream::~ostringstream(&v41, &`VTT for'std::ostringstream);
std::ios_base::~ios_base((std::ios_base *)v44);
return v39;
}
| error_location_suffix:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x1b8
MOV R14,RSI
MOV qword ptr [RSP + 0x30],RDI
MOV RSI,qword ptr [RSI]
MOV RAX,qword ptr [R14 + 0x8]
TEST RDX,RDX
JZ 0x001da04c
XOR ECX,ECX
XOR R12D,R12D
LAB_001da035:
XOR EDI,EDI
CMP byte ptr [RSI + RCX*0x1],0xa
SETZ DIL
ADD R12,RDI
INC RCX
CMP RDX,RCX
JNZ 0x001da035
JMP 0x001da04f
LAB_001da04c:
XOR R12D,R12D
LAB_001da04f:
MOV qword ptr [RSP + 0x28],RDX
ADD RDX,RSI
TEST RAX,RAX
JZ 0x001da078
XOR ECX,ECX
XOR R15D,R15D
LAB_001da061:
XOR EDI,EDI
CMP byte ptr [RSI + RCX*0x1],0xa
SETZ DIL
ADD R15,RDI
INC RCX
CMP RAX,RCX
JNZ 0x001da061
JMP 0x001da07b
LAB_001da078:
XOR R15D,R15D
LAB_001da07b:
LEA RBP,[RSP + 0x50]
MOV qword ptr [RBP + -0x10],RBP
LEA RBX,[RSP + 0x40]
MOV RDI,RBX
CALL 0x00171746
MOV RDI,RBX
MOV ESI,0xa
MOV RDX,-0x1
CALL 0x0011c160
MOV R13,RAX
MOV RDI,qword ptr [RBX]
CMP RDI,RBP
JZ 0x001da0bd
MOV RSI,qword ptr [RSP + 0x50]
INC RSI
CALL 0x0011b900
LAB_001da0bd:
LEA RBX,[RSP + 0x40]
MOV RDI,RBX
CALL 0x0011bbb0
LAB_001da0ca:
LEA RSI,[0x1f41c9]
MOV EDX,0x8
MOV RDI,RBX
CALL 0x0011ba20
LEA RBX,[R12 + 0x1]
LEA RDI,[RSP + 0x40]
MOV RSI,RBX
CALL 0x0011b860
MOV RBP,RAX
LEA RSI,[0x1f070d]
MOV EDX,0x9
MOV RDI,RAX
CALL 0x0011ba20
MOV RSI,qword ptr [RSP + 0x28]
SUB RSI,R13
MOV RDI,RBP
MOV qword ptr [RSP + 0x28],RSI
CALL 0x0011b600
LEA RSI,[0x1f7fdf]
MOV EDX,0x2
MOV RDI,RAX
CALL 0x0011ba20
TEST R12,R12
JLE 0x001da1da
MOV R13,qword ptr [R14]
CMP R12,0x1
JZ 0x001da16b
LEA RBP,[R12 + -0x1]
LAB_001da147:
MOV RSI,qword ptr [R14]
ADD RSI,qword ptr [R14 + 0x8]
MOV byte ptr [RSP + 0x7],0xa
MOV RDI,R13
LEA RDX,[RSP + 0x7]
CALL 0x0019af2e
MOV R13,RAX
INC R13
DEC RBP
JNZ 0x001da147
LAB_001da16b:
MOV RSI,qword ptr [R14]
ADD RSI,qword ptr [R14 + 0x8]
LEA RDX,[RSP + 0x7]
MOV byte ptr [RDX],0xa
MOV RDI,R13
CALL 0x0019af2e
LEA RBP,[RSP + 0x18]
MOV qword ptr [RBP + -0x10],RBP
LAB_001da18b:
LEA RDI,[RSP + 0x8]
MOV RSI,R13
MOV RDX,RAX
CALL 0x00171746
MOV RSI,qword ptr [RSP + 0x8]
MOV RDX,qword ptr [RSP + 0x10]
LAB_001da1a5:
LEA RDI,[RSP + 0x40]
CALL 0x0011ba20
LEA RSI,[0x1e984f]
MOV EDX,0x1
MOV RDI,RAX
CALL 0x0011ba20
MOV RDI,qword ptr [RSP + 0x8]
CMP RDI,RBP
JZ 0x001da1da
MOV RSI,qword ptr [RSP + 0x18]
INC RSI
CALL 0x0011b900
LAB_001da1da:
MOV R13,qword ptr [R14]
MOV qword ptr [RSP + 0x38],RBX
CMP RBX,0x2
JC 0x001da212
LEA RBP,[RSP + 0x7]
MOV RBX,R12
LAB_001da1f0:
MOV RSI,qword ptr [R14]
ADD RSI,qword ptr [R14 + 0x8]
MOV byte ptr [RSP + 0x7],0xa
MOV RDI,R13
MOV RDX,RBP
CALL 0x0019af2e
MOV R13,RAX
INC R13
DEC RBX
JNZ 0x001da1f0
LAB_001da212:
MOV RSI,qword ptr [R14]
ADD RSI,qword ptr [R14 + 0x8]
LEA RDX,[RSP + 0x7]
MOV byte ptr [RDX],0xa
MOV RDI,R13
CALL 0x0019af2e
LEA RBP,[RSP + 0x18]
MOV qword ptr [RBP + -0x10],RBP
LAB_001da232:
LEA RDI,[RSP + 0x8]
MOV RSI,R13
MOV RDX,RAX
CALL 0x00171746
MOV RSI,qword ptr [RSP + 0x8]
MOV RDX,qword ptr [RSP + 0x10]
LAB_001da24c:
LEA RDI,[RSP + 0x40]
CALL 0x0011ba20
MOV RBX,qword ptr [RSP + 0x38]
LEA RSI,[0x1e984f]
MOV EDX,0x1
MOV RDI,RAX
CALL 0x0011ba20
MOV RDI,qword ptr [RSP + 0x8]
CMP RDI,RBP
JZ 0x001da286
MOV RSI,qword ptr [RSP + 0x18]
INC RSI
CALL 0x0011b900
LAB_001da286:
MOV RSI,qword ptr [RSP + 0x28]
DEC RSI
LEA RDI,[RSP + 0x8]
MOV qword ptr [RDI],RBP
LAB_001da296:
MOV EDX,0x20
CALL 0x0011ba50
MOV RSI,qword ptr [RSP + 0x8]
MOV RDX,qword ptr [RSP + 0x10]
LAB_001da2aa:
LEA RDI,[RSP + 0x40]
CALL 0x0011ba20
LEA RSI,[0x1f41d2]
MOV EDX,0x2
MOV RDI,RAX
CALL 0x0011ba20
MOV RDI,qword ptr [RSP + 0x8]
CMP RDI,RBP
JZ 0x001da2df
MOV RSI,qword ptr [RSP + 0x18]
INC RSI
CALL 0x0011b900
LAB_001da2df:
CMP R12,R15
JGE 0x001da381
MOV R15,qword ptr [R14]
CMP R12,-0x3
JA 0x001da318
LEA R13,[RSP + 0x7]
LAB_001da2f6:
MOV RSI,qword ptr [R14]
ADD RSI,qword ptr [R14 + 0x8]
MOV byte ptr [RSP + 0x7],0xa
MOV RDI,R15
MOV RDX,R13
CALL 0x0019af2e
MOV R15,RAX
INC R15
DEC RBX
JNZ 0x001da2f6
LAB_001da318:
MOV RSI,qword ptr [R14]
ADD RSI,qword ptr [R14 + 0x8]
LEA RDX,[RSP + 0x7]
MOV byte ptr [RDX],0xa
MOV RDI,R15
CALL 0x0019af2e
LEA RDI,[RSP + 0x8]
MOV qword ptr [RDI],RBP
LAB_001da337:
MOV RSI,R15
MOV RDX,RAX
CALL 0x00171746
MOV RSI,qword ptr [RSP + 0x8]
MOV RDX,qword ptr [RSP + 0x10]
LAB_001da34c:
LEA RDI,[RSP + 0x40]
CALL 0x0011ba20
LEA RSI,[0x1e984f]
MOV EDX,0x1
MOV RDI,RAX
CALL 0x0011ba20
MOV RDI,qword ptr [RSP + 0x8]
CMP RDI,RBP
JZ 0x001da381
MOV RSI,qword ptr [RSP + 0x18]
INC RSI
CALL 0x0011b900
LAB_001da381:
LEA RSI,[RSP + 0x48]
LAB_001da386:
MOV RDI,qword ptr [RSP + 0x30]
CALL 0x0011bdd0
LAB_001da390:
MOV RSI,qword ptr [0x0022ef78]
LEA RDI,[RSP + 0x40]
CALL 0x0011b4b0
LEA RDI,[RSP + 0xb0]
CALL 0x0011b2b0
MOV RAX,qword ptr [RSP + 0x30]
ADD RSP,0x1b8
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
|
/* minja::error_location_suffix(std::__cxx11::string const&, unsigned long) */
minja * __thiscall minja::error_location_suffix(minja *this,string *param_1,ulong param_2)
{
long lVar1;
ostream *poVar2;
int8 uVar3;
ulong uVar4;
long lVar5;
ulong uVar6;
long lVar7;
int1 local_1e1;
long *local_1e0;
long local_1d8;
long local_1d0 [2];
ulong local_1c0;
minja *local_1b8;
ulong local_1b0;
long *local_1a8 [2];
long local_198 [12];
ios_base local_138 [264];
lVar1 = *(long *)param_1;
if (param_2 == 0) {
uVar6 = 0;
}
else {
uVar4 = 0;
uVar6 = 0;
do {
uVar6 = uVar6 + (*(char *)(lVar1 + uVar4) == '\n');
uVar4 = uVar4 + 1;
} while (param_2 != uVar4);
}
if (*(long *)(param_1 + 8) == 0) {
lVar7 = 0;
}
else {
lVar5 = 0;
lVar7 = 0;
do {
lVar7 = lVar7 + (ulong)(*(char *)(lVar1 + lVar5) == '\n');
lVar5 = lVar5 + 1;
} while (*(long *)(param_1 + 8) != lVar5);
}
local_1c0 = param_2;
local_1b8 = this;
local_1a8[0] = local_198;
std::__cxx11::string::_M_construct<__gnu_cxx::__normal_iterator<char_const*,std::__cxx11::string>>
(local_1a8,lVar1,param_2 + lVar1);
lVar1 = std::__cxx11::string::rfind((char)local_1a8,10);
if (local_1a8[0] != local_198) {
operator_delete(local_1a8[0],local_198[0] + 1);
}
std::__cxx11::ostringstream::ostringstream((ostringstream *)local_1a8);
/* try { // try from 001da0ca to 001da12f has its CatchHandler @ 001da3ef */
std::__ostream_insert<char,std::char_traits<char>>((ostream *)local_1a8," at row ",8);
uVar4 = uVar6 + 1;
poVar2 = std::ostream::_M_insert<long>((long)local_1a8);
std::__ostream_insert<char,std::char_traits<char>>(poVar2,", column ",9);
local_1c0 = local_1c0 - lVar1;
poVar2 = std::ostream::_M_insert<unsigned_long>((ulong)poVar2);
std::__ostream_insert<char,std::char_traits<char>>(poVar2,":\n",2);
if (0 < (long)uVar6) {
lVar1 = *(long *)param_1;
if (uVar6 != 1) {
lVar5 = uVar6 - 1;
do {
local_1e1 = 10;
lVar1 = std::
__find_if<__gnu_cxx::__normal_iterator<char_const*,std::__cxx11::string>,__gnu_cxx::__ops::_Iter_equals_val<char_const>>
(lVar1,*(long *)param_1 + *(long *)(param_1 + 8),&local_1e1);
lVar1 = lVar1 + 1;
lVar5 = lVar5 + -1;
} while (lVar5 != 0);
}
local_1e1 = 10;
uVar3 = std::
__find_if<__gnu_cxx::__normal_iterator<char_const*,std::__cxx11::string>,__gnu_cxx::__ops::_Iter_equals_val<char_const>>
(lVar1,*(long *)param_1 + *(long *)(param_1 + 8));
/* try { // try from 001da18b to 001da19a has its CatchHandler @ 001da3c7 */
local_1e0 = local_1d0;
std::__cxx11::string::
_M_construct<__gnu_cxx::__normal_iterator<char_const*,std::__cxx11::string>>
(&local_1e0,lVar1,uVar3);
/* try { // try from 001da1a5 to 001da1c2 has its CatchHandler @ 001da3cf */
poVar2 = std::__ostream_insert<char,std::char_traits<char>>
((ostream *)local_1a8,(char *)local_1e0,local_1d8);
std::__ostream_insert<char,std::char_traits<char>>(poVar2,"\n",1);
if (local_1e0 != local_1d0) {
operator_delete(local_1e0,local_1d0[0] + 1);
}
}
lVar1 = *(long *)param_1;
local_1b0 = uVar4;
if (1 < uVar4) {
uVar4 = uVar6;
do {
local_1e1 = 10;
lVar1 = std::
__find_if<__gnu_cxx::__normal_iterator<char_const*,std::__cxx11::string>,__gnu_cxx::__ops::_Iter_equals_val<char_const>>
(lVar1,*(long *)param_1 + *(long *)(param_1 + 8),&local_1e1);
lVar1 = lVar1 + 1;
uVar4 = uVar4 - 1;
} while (uVar4 != 0);
}
local_1e1 = 10;
uVar3 = std::
__find_if<__gnu_cxx::__normal_iterator<char_const*,std::__cxx11::string>,__gnu_cxx::__ops::_Iter_equals_val<char_const>>
(lVar1,*(long *)param_1 + *(long *)(param_1 + 8));
/* try { // try from 001da232 to 001da241 has its CatchHandler @ 001da3cd */
local_1e0 = local_1d0;
std::__cxx11::string::_M_construct<__gnu_cxx::__normal_iterator<char_const*,std::__cxx11::string>>
(&local_1e0,lVar1,uVar3);
/* try { // try from 001da24c to 001da26e has its CatchHandler @ 001da3d3 */
poVar2 = std::__ostream_insert<char,std::char_traits<char>>
((ostream *)local_1a8,(char *)local_1e0,local_1d8);
uVar4 = local_1b0;
std::__ostream_insert<char,std::char_traits<char>>(poVar2,"\n",1);
if (local_1e0 != local_1d0) {
operator_delete(local_1e0,local_1d0[0] + 1);
}
local_1e0 = local_1d0;
/* try { // try from 001da296 to 001da29f has its CatchHandler @ 001da3cb */
std::__cxx11::string::_M_construct((ulong)&local_1e0,(char)local_1c0 + -1);
/* try { // try from 001da2aa to 001da2c7 has its CatchHandler @ 001da3d1 */
poVar2 = std::__ostream_insert<char,std::char_traits<char>>
((ostream *)local_1a8,(char *)local_1e0,local_1d8);
std::__ostream_insert<char,std::char_traits<char>>(poVar2,"^\n",2);
if (local_1e0 != local_1d0) {
operator_delete(local_1e0,local_1d0[0] + 1);
}
if ((long)uVar6 < lVar7) {
lVar1 = *(long *)param_1;
if (uVar6 < 0xfffffffffffffffe) {
do {
local_1e1 = 10;
lVar1 = std::
__find_if<__gnu_cxx::__normal_iterator<char_const*,std::__cxx11::string>,__gnu_cxx::__ops::_Iter_equals_val<char_const>>
(lVar1,*(long *)param_1 + *(long *)(param_1 + 8),&local_1e1);
lVar1 = lVar1 + 1;
uVar4 = uVar4 - 1;
} while (uVar4 != 0);
}
local_1e1 = 10;
uVar3 = std::
__find_if<__gnu_cxx::__normal_iterator<char_const*,std::__cxx11::string>,__gnu_cxx::__ops::_Iter_equals_val<char_const>>
(lVar1,*(long *)param_1 + *(long *)(param_1 + 8));
local_1e0 = local_1d0;
/* try { // try from 001da337 to 001da341 has its CatchHandler @ 001da3c5 */
std::__cxx11::string::
_M_construct<__gnu_cxx::__normal_iterator<char_const*,std::__cxx11::string>>
(&local_1e0,lVar1,uVar3);
/* try { // try from 001da34c to 001da369 has its CatchHandler @ 001da3c9 */
poVar2 = std::__ostream_insert<char,std::char_traits<char>>
((ostream *)local_1a8,(char *)local_1e0,local_1d8);
std::__ostream_insert<char,std::char_traits<char>>(poVar2,"\n",1);
if (local_1e0 != local_1d0) {
operator_delete(local_1e0,local_1d0[0] + 1);
}
}
/* try { // try from 001da386 to 001da38f has its CatchHandler @ 001da3ef */
std::__cxx11::stringbuf::str();
std::__cxx11::ostringstream::~ostringstream((ostringstream *)local_1a8);
std::ios_base::~ios_base(local_138);
return local_1b8;
}
| |
45,248 | void fmt::v11::detail::ignore_unused<bool>(bool const&) | zkingston[P]unknot/build_O0/_deps/fmt-src/include/fmt/base.h | constexpr auto is_constant_evaluated(bool default_value = false) noexcept
-> bool {
// Workaround for incompatibility between clang 14 and libstdc++ consteval-based
// std::is_constant_evaluated: https://github.com/fmtlib/fmt/issues/3247.
#if FMT_CPLUSPLUS >= 202002L && FMT_GLIBCXX_RELEASE >= 12 && \
(FMT_CLANG_VERSION >= 1400 && FMT_CLANG_VERSION < 1500)
ignore_unused(default_value);
return __builtin_is_constant_evaluated();
#elif defined(__cpp_lib_is_constant_evaluated)
ignore_unused(default_value);
return std::is_constant_evaluated();
#else
return default_value;
#endif
} | O0 | c | void fmt::v11::detail::ignore_unused<bool>(bool const&):
movq %rdi, -0x8(%rsp)
movq %rsi, -0x10(%rsp)
retq
nopl (%rax,%rax)
| _ZN3fmt3v116detail13ignore_unusedIJbA13_cEEEvDpRKT_:
mov [rsp+var_8], rdi
mov [rsp+var_10], rsi
retn
| void fmt::v11::detail::ignore_unused<bool,char [13]>()
{
;
}
| ignore_unused<bool,char[13]>:
MOV qword ptr [RSP + -0x8],RDI
MOV qword ptr [RSP + -0x10],RSI
RET
|
/* void fmt::v11::detail::ignore_unused<bool, char [13]>(bool const&, char const (&) [13]) */
void fmt::v11::detail::ignore_unused<bool,char[13]>(bool *param_1,char *param_2)
{
return;
}
| |
45,249 | DrawSplineSegmentBezierCubic | csit-sgu[P]mit-game-2025_1/Libraries/raylib/src/rshapes.c | void DrawSplineSegmentBezierCubic(Vector2 p1, Vector2 c2, Vector2 c3, Vector2 p4, float thick, Color color)
{
const float step = 1.0f/SPLINE_SEGMENT_DIVISIONS;
Vector2 previous = p1;
Vector2 current = { 0 };
float t = 0.0f;
Vector2 points[2*SPLINE_SEGMENT_DIVISIONS + 2] = { 0 };
for (int i = 1; i <= SPLINE_SEGMENT_DIVISIONS; i++)
{
t = step*(float)i;
float a = powf(1.0f - t, 3);
float b = 3.0f*powf(1.0f - t, 2)*t;
float c = 3.0f*(1.0f - t)*powf(t, 2);
float d = powf(t, 3);
current.y = a*p1.y + b*c2.y + c*c3.y + d*p4.y;
current.x = a*p1.x + b*c2.x + c*c3.x + d*p4.x;
float dy = current.y - previous.y;
float dx = current.x - previous.x;
float size = 0.5f*thick/sqrtf(dx*dx+dy*dy);
if (i == 1)
{
points[0].x = previous.x + dy*size;
points[0].y = previous.y - dx*size;
points[1].x = previous.x - dy*size;
points[1].y = previous.y + dx*size;
}
points[2*i + 1].x = current.x - dy*size;
points[2*i + 1].y = current.y + dx*size;
points[2*i].x = current.x + dy*size;
points[2*i].y = current.y - dx*size;
previous = current;
}
DrawTriangleStrip(points, 2*SPLINE_SEGMENT_DIVISIONS + 2, color);
} | O0 | c | DrawSplineSegmentBezierCubic:
pushq %rbp
movq %rsp, %rbp
subq $0x200, %rsp # imm = 0x200
movlpd %xmm0, -0x8(%rbp)
movlpd %xmm1, -0x10(%rbp)
movlpd %xmm2, -0x18(%rbp)
movlpd %xmm3, -0x20(%rbp)
movl %edi, -0x24(%rbp)
movss %xmm4, -0x28(%rbp)
movss 0xde995(%rip), %xmm0 # 0x1bcbb4
movss %xmm0, -0x2c(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x34(%rbp)
leaq -0x3c(%rbp), %rdi
xorl %esi, %esi
movl $0x8, %edx
callq 0xa2d0
xorps %xmm0, %xmm0
movss %xmm0, -0x40(%rbp)
leaq -0x1d0(%rbp), %rdi
xorl %esi, %esi
movl $0x190, %edx # imm = 0x190
callq 0xa2d0
movl $0x1, -0x1d4(%rbp)
cmpl $0x18, -0x1d4(%rbp)
jg 0xde619
cvtsi2ssl -0x1d4(%rbp), %xmm1
movss 0xde936(%rip), %xmm0 # 0x1bcbb4
mulss %xmm1, %xmm0
movss %xmm0, -0x40(%rbp)
movss 0xc5e65(%rip), %xmm0 # 0x1a40f4
subss -0x40(%rbp), %xmm0
movss 0xc9db4(%rip), %xmm1 # 0x1a8050
callq 0xa8a0
movss %xmm0, -0x1d8(%rbp)
movss 0xc5e43(%rip), %xmm0 # 0x1a40f4
subss -0x40(%rbp), %xmm0
movss 0xc9d5e(%rip), %xmm1 # 0x1a801c
callq 0xa8a0
movaps %xmm0, %xmm1
movss 0xc9d82(%rip), %xmm0 # 0x1a8050
mulss %xmm1, %xmm0
mulss -0x40(%rbp), %xmm0
movss %xmm0, -0x1dc(%rbp)
movss 0xc5e0d(%rip), %xmm1 # 0x1a40f4
subss -0x40(%rbp), %xmm1
movss 0xc9d5c(%rip), %xmm0 # 0x1a8050
mulss %xmm1, %xmm0
movss %xmm0, -0x1f8(%rbp)
movss -0x40(%rbp), %xmm0
movss 0xc9d0f(%rip), %xmm1 # 0x1a801c
callq 0xa8a0
movaps %xmm0, %xmm1
movss -0x1f8(%rbp), %xmm0
mulss %xmm1, %xmm0
movss %xmm0, -0x1e0(%rbp)
movss -0x40(%rbp), %xmm0
movss 0xc9d1a(%rip), %xmm1 # 0x1a8050
callq 0xa8a0
movss %xmm0, -0x1e4(%rbp)
movss -0x1d8(%rbp), %xmm0
movss -0x4(%rbp), %xmm2
movss -0x1dc(%rbp), %xmm1
mulss -0xc(%rbp), %xmm1
mulss %xmm2, %xmm0
addss %xmm1, %xmm0
movss -0x1e0(%rbp), %xmm1
movss -0x14(%rbp), %xmm2
mulss %xmm2, %xmm1
addss %xmm0, %xmm1
movss -0x1e4(%rbp), %xmm0
movss -0x1c(%rbp), %xmm2
mulss %xmm2, %xmm0
addss %xmm1, %xmm0
movss %xmm0, -0x38(%rbp)
movss -0x1d8(%rbp), %xmm0
movss -0x8(%rbp), %xmm2
movss -0x1dc(%rbp), %xmm1
mulss -0x10(%rbp), %xmm1
mulss %xmm2, %xmm0
addss %xmm1, %xmm0
movss -0x1e0(%rbp), %xmm1
movss -0x18(%rbp), %xmm2
mulss %xmm2, %xmm1
addss %xmm0, %xmm1
movss -0x1e4(%rbp), %xmm0
movss -0x20(%rbp), %xmm2
mulss %xmm2, %xmm0
addss %xmm1, %xmm0
movss %xmm0, -0x3c(%rbp)
movss -0x38(%rbp), %xmm0
subss -0x30(%rbp), %xmm0
movss %xmm0, -0x1e8(%rbp)
movss -0x3c(%rbp), %xmm0
subss -0x34(%rbp), %xmm0
movss %xmm0, -0x1ec(%rbp)
movss 0xc5cdf(%rip), %xmm0 # 0x1a40f0
mulss -0x28(%rbp), %xmm0
movss %xmm0, -0x1f4(%rbp)
movss -0x1ec(%rbp), %xmm0
movss -0x1ec(%rbp), %xmm2
movss -0x1e8(%rbp), %xmm1
mulss -0x1e8(%rbp), %xmm1
mulss %xmm2, %xmm0
addss %xmm1, %xmm0
callq 0xaa30
movaps %xmm0, %xmm1
movss -0x1f4(%rbp), %xmm0
divss %xmm1, %xmm0
movss %xmm0, -0x1f0(%rbp)
cmpl $0x1, -0x1d4(%rbp)
jne 0xde51d
movss -0x34(%rbp), %xmm1
movss -0x1e8(%rbp), %xmm0
movss -0x1f0(%rbp), %xmm2
mulss %xmm2, %xmm0
addss %xmm1, %xmm0
movss %xmm0, -0x1d0(%rbp)
movss -0x30(%rbp), %xmm1
movss -0x1ec(%rbp), %xmm0
movss -0x1f0(%rbp), %xmm2
movd %xmm0, %eax
xorl $0x80000000, %eax # imm = 0x80000000
movd %eax, %xmm0
mulss %xmm2, %xmm0
addss %xmm1, %xmm0
movss %xmm0, -0x1cc(%rbp)
movss -0x34(%rbp), %xmm1
movss -0x1e8(%rbp), %xmm0
movss -0x1f0(%rbp), %xmm2
movd %xmm0, %eax
xorl $0x80000000, %eax # imm = 0x80000000
movd %eax, %xmm0
mulss %xmm2, %xmm0
addss %xmm1, %xmm0
movss %xmm0, -0x1c8(%rbp)
movss -0x30(%rbp), %xmm1
movss -0x1ec(%rbp), %xmm0
movss -0x1f0(%rbp), %xmm2
mulss %xmm2, %xmm0
addss %xmm1, %xmm0
movss %xmm0, -0x1c4(%rbp)
movss -0x3c(%rbp), %xmm1
movss -0x1e8(%rbp), %xmm0
movss -0x1f0(%rbp), %xmm2
movd %xmm0, %eax
xorl $0x80000000, %eax # imm = 0x80000000
movd %eax, %xmm0
mulss %xmm2, %xmm0
addss %xmm1, %xmm0
movl -0x1d4(%rbp), %eax
shll %eax
addl $0x1, %eax
cltq
movss %xmm0, -0x1d0(%rbp,%rax,8)
movss -0x38(%rbp), %xmm1
movss -0x1ec(%rbp), %xmm0
movss -0x1f0(%rbp), %xmm2
mulss %xmm2, %xmm0
addss %xmm1, %xmm0
movl -0x1d4(%rbp), %eax
shll %eax
addl $0x1, %eax
cltq
movss %xmm0, -0x1cc(%rbp,%rax,8)
movss -0x3c(%rbp), %xmm1
movss -0x1e8(%rbp), %xmm0
movss -0x1f0(%rbp), %xmm2
mulss %xmm2, %xmm0
addss %xmm1, %xmm0
movl -0x1d4(%rbp), %eax
shll %eax
cltq
movss %xmm0, -0x1d0(%rbp,%rax,8)
movss -0x38(%rbp), %xmm1
movss -0x1ec(%rbp), %xmm0
movss -0x1f0(%rbp), %xmm2
movd %xmm0, %eax
xorl $0x80000000, %eax # imm = 0x80000000
movd %eax, %xmm0
mulss %xmm2, %xmm0
addss %xmm1, %xmm0
movl -0x1d4(%rbp), %eax
shll %eax
cltq
movss %xmm0, -0x1cc(%rbp,%rax,8)
movq -0x3c(%rbp), %rax
movq %rax, -0x34(%rbp)
movl -0x1d4(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x1d4(%rbp)
jmp 0xde261
leaq -0x1d0(%rbp), %rdi
movl -0x24(%rbp), %edx
movl $0x32, %esi
callq 0xd7610
addq $0x200, %rsp # imm = 0x200
popq %rbp
retq
nopw %cs:(%rax,%rax)
| DrawSplineSegmentBezierCubic:
push rbp
mov rbp, rsp
sub rsp, 200h
movlpd [rbp+var_8], xmm0
movlpd [rbp+var_10], xmm1
movlpd [rbp+var_18], xmm2
movlpd [rbp+var_20], xmm3
mov [rbp+var_24], edi
movss [rbp+var_28], xmm4
movss xmm0, cs:dword_1BCBB4
movss [rbp+var_2C], xmm0
mov rax, [rbp+var_8]
mov [rbp+var_34], rax
lea rdi, [rbp+var_3C]
xor esi, esi
mov edx, 8
call _memset
xorps xmm0, xmm0
movss [rbp+var_40], xmm0
lea rdi, [rbp+var_1D0]
xor esi, esi
mov edx, 190h
call _memset
mov [rbp+var_1D4], 1
loc_DE261:
cmp [rbp+var_1D4], 18h
jg loc_DE619
cvtsi2ss xmm1, [rbp+var_1D4]
movss xmm0, cs:dword_1BCBB4
mulss xmm0, xmm1
movss [rbp+var_40], xmm0
movss xmm0, cs:dword_1A40F4
subss xmm0, [rbp+var_40]
movss xmm1, cs:dword_1A8050
call _powf
movss [rbp+var_1D8], xmm0
movss xmm0, cs:dword_1A40F4
subss xmm0, [rbp+var_40]
movss xmm1, cs:dword_1A801C
call _powf
movaps xmm1, xmm0
movss xmm0, cs:dword_1A8050
mulss xmm0, xmm1
mulss xmm0, [rbp+var_40]
movss [rbp+var_1DC], xmm0
movss xmm1, cs:dword_1A40F4
subss xmm1, [rbp+var_40]
movss xmm0, cs:dword_1A8050
mulss xmm0, xmm1
movss [rbp+var_1F8], xmm0
movss xmm0, [rbp+var_40]
movss xmm1, cs:dword_1A801C
call _powf
movaps xmm1, xmm0
movss xmm0, [rbp+var_1F8]
mulss xmm0, xmm1
movss [rbp+var_1E0], xmm0
movss xmm0, [rbp+var_40]
movss xmm1, cs:dword_1A8050
call _powf
movss [rbp+var_1E4], xmm0
movss xmm0, [rbp+var_1D8]
movss xmm2, dword ptr [rbp+var_8+4]
movss xmm1, [rbp+var_1DC]
mulss xmm1, dword ptr [rbp+var_10+4]
mulss xmm0, xmm2
addss xmm0, xmm1
movss xmm1, [rbp+var_1E0]
movss xmm2, dword ptr [rbp+var_18+4]
mulss xmm1, xmm2
addss xmm1, xmm0
movss xmm0, [rbp+var_1E4]
movss xmm2, dword ptr [rbp+var_20+4]
mulss xmm0, xmm2
addss xmm0, xmm1
movss dword ptr [rbp+var_3C+4], xmm0
movss xmm0, [rbp+var_1D8]
movss xmm2, dword ptr [rbp+var_8]
movss xmm1, [rbp+var_1DC]
mulss xmm1, dword ptr [rbp+var_10]
mulss xmm0, xmm2
addss xmm0, xmm1
movss xmm1, [rbp+var_1E0]
movss xmm2, dword ptr [rbp+var_18]
mulss xmm1, xmm2
addss xmm1, xmm0
movss xmm0, [rbp+var_1E4]
movss xmm2, dword ptr [rbp+var_20]
mulss xmm0, xmm2
addss xmm0, xmm1
movss dword ptr [rbp+var_3C], xmm0
movss xmm0, dword ptr [rbp+var_3C+4]
subss xmm0, dword ptr [rbp+var_34+4]
movss [rbp+var_1E8], xmm0
movss xmm0, dword ptr [rbp+var_3C]
subss xmm0, dword ptr [rbp+var_34]
movss [rbp+var_1EC], xmm0
movss xmm0, cs:dword_1A40F0
mulss xmm0, [rbp+var_28]
movss [rbp+var_1F4], xmm0
movss xmm0, [rbp+var_1EC]
movss xmm2, [rbp+var_1EC]
movss xmm1, [rbp+var_1E8]
mulss xmm1, [rbp+var_1E8]
mulss xmm0, xmm2
addss xmm0, xmm1
call _sqrtf
movaps xmm1, xmm0
movss xmm0, [rbp+var_1F4]
divss xmm0, xmm1
movss [rbp+var_1F0], xmm0
cmp [rbp+var_1D4], 1
jnz loc_DE51D
movss xmm1, dword ptr [rbp+var_34]
movss xmm0, [rbp+var_1E8]
movss xmm2, [rbp+var_1F0]
mulss xmm0, xmm2
addss xmm0, xmm1
movss [rbp+var_1D0], xmm0
movss xmm1, dword ptr [rbp+var_34+4]
movss xmm0, [rbp+var_1EC]
movss xmm2, [rbp+var_1F0]
movd eax, xmm0
xor eax, 80000000h
movd xmm0, eax
mulss xmm0, xmm2
addss xmm0, xmm1
movss [rbp+var_1CC], xmm0
movss xmm1, dword ptr [rbp+var_34]
movss xmm0, [rbp+var_1E8]
movss xmm2, [rbp+var_1F0]
movd eax, xmm0
xor eax, 80000000h
movd xmm0, eax
mulss xmm0, xmm2
addss xmm0, xmm1
movss [rbp+var_1C8], xmm0
movss xmm1, dword ptr [rbp+var_34+4]
movss xmm0, [rbp+var_1EC]
movss xmm2, [rbp+var_1F0]
mulss xmm0, xmm2
addss xmm0, xmm1
movss [rbp+var_1C4], xmm0
loc_DE51D:
movss xmm1, dword ptr [rbp+var_3C]
movss xmm0, [rbp+var_1E8]
movss xmm2, [rbp+var_1F0]
movd eax, xmm0
xor eax, 80000000h
movd xmm0, eax
mulss xmm0, xmm2
addss xmm0, xmm1
mov eax, [rbp+var_1D4]
shl eax, 1
add eax, 1
cdqe
movss [rbp+rax*8+var_1D0], xmm0
movss xmm1, dword ptr [rbp+var_3C+4]
movss xmm0, [rbp+var_1EC]
movss xmm2, [rbp+var_1F0]
mulss xmm0, xmm2
addss xmm0, xmm1
mov eax, [rbp+var_1D4]
shl eax, 1
add eax, 1
cdqe
movss [rbp+rax*8+var_1CC], xmm0
movss xmm1, dword ptr [rbp+var_3C]
movss xmm0, [rbp+var_1E8]
movss xmm2, [rbp+var_1F0]
mulss xmm0, xmm2
addss xmm0, xmm1
mov eax, [rbp+var_1D4]
shl eax, 1
cdqe
movss [rbp+rax*8+var_1D0], xmm0
movss xmm1, dword ptr [rbp+var_3C+4]
movss xmm0, [rbp+var_1EC]
movss xmm2, [rbp+var_1F0]
movd eax, xmm0
xor eax, 80000000h
movd xmm0, eax
mulss xmm0, xmm2
addss xmm0, xmm1
mov eax, [rbp+var_1D4]
shl eax, 1
cdqe
movss [rbp+rax*8+var_1CC], xmm0
mov rax, [rbp+var_3C]
mov [rbp+var_34], rax
mov eax, [rbp+var_1D4]
add eax, 1
mov [rbp+var_1D4], eax
jmp loc_DE261
loc_DE619:
lea rdi, [rbp+var_1D0]
mov edx, [rbp+var_24]
mov esi, 32h ; '2'
call DrawTriangleStrip
add rsp, 200h
pop rbp
retn
| long long DrawSplineSegmentBezierCubic(int a1, double a2, double a3, double a4, double a5, float a6)
{
double v6; // xmm0_8
double v7; // xmm0_8
double v8; // xmm0_8
double v9; // xmm0_8
double v10; // xmm0_8
float v12; // [rsp+8h] [rbp-1F8h]
float v13; // [rsp+Ch] [rbp-1F4h]
float v14; // [rsp+10h] [rbp-1F0h]
float v15; // [rsp+14h] [rbp-1ECh]
float v16; // [rsp+18h] [rbp-1E8h]
float v17; // [rsp+20h] [rbp-1E0h]
float v18; // [rsp+24h] [rbp-1DCh]
float v19; // [rsp+28h] [rbp-1D8h]
int i; // [rsp+2Ch] [rbp-1D4h]
float v21; // [rsp+30h] [rbp-1D0h] BYREF
float v22[99]; // [rsp+34h] [rbp-1CCh]
float v23; // [rsp+1C0h] [rbp-40h]
double v24; // [rsp+1C4h] [rbp-3Ch] BYREF
double v25; // [rsp+1CCh] [rbp-34h]
int v26; // [rsp+1D4h] [rbp-2Ch]
float v27; // [rsp+1D8h] [rbp-28h]
int v28; // [rsp+1DCh] [rbp-24h]
double v29; // [rsp+1E0h] [rbp-20h]
double v30; // [rsp+1E8h] [rbp-18h]
double v31; // [rsp+1F0h] [rbp-10h]
double v32; // [rsp+1F8h] [rbp-8h]
v32 = a2;
v31 = a3;
v30 = a4;
v29 = a5;
v28 = a1;
v27 = a6;
v26 = 1026206379;
v25 = a2;
memset(&v24, 0LL, sizeof(v24));
v23 = 0.0;
memset(&v21, 0LL, 400LL);
for ( i = 1; i <= 24; ++i )
{
v23 = 0.041666668 * (float)i;
v6 = powf(1.0 - v23, 3.0);
v19 = *(float *)&v6;
v7 = powf(1.0 - v23, 2.0);
v18 = (float)(3.0 * *(float *)&v7) * v23;
v12 = 3.0 * (float)(1.0 - v23);
v8 = powf(v23, 2.0);
v17 = v12 * *(float *)&v8;
v9 = powf(v23, 3.0);
*((float *)&v24 + 1) = (float)(*(float *)&v9 * *((float *)&v29 + 1))
+ (float)((float)(v17 * *((float *)&v30 + 1))
+ (float)((float)(v19 * *((float *)&v32 + 1)) + (float)(v18 * *((float *)&v31 + 1))));
*(float *)&v24 = (float)(*(float *)&v9 * *(float *)&v29)
+ (float)((float)(v17 * *(float *)&v30)
+ (float)((float)(v19 * *(float *)&v32) + (float)(v18 * *(float *)&v31)));
v16 = *((float *)&v24 + 1) - *((float *)&v25 + 1);
v15 = *(float *)&v24 - *(float *)&v25;
v13 = 0.5 * v27;
v10 = sqrtf((float)(v15 * v15) + (float)(v16 * v16));
v14 = v13 / *(float *)&v10;
if ( i == 1 )
{
v21 = (float)(v16 * v14) + *(float *)&v25;
v22[0] = (float)(COERCE_FLOAT(_mm_cvtsi128_si32((__m128i)LODWORD(v15)) ^ 0x80000000) * v14) + *((float *)&v25 + 1);
v22[1] = (float)(COERCE_FLOAT(_mm_cvtsi128_si32((__m128i)LODWORD(v16)) ^ 0x80000000) * v14) + *(float *)&v25;
v22[2] = (float)(v15 * v14) + *((float *)&v25 + 1);
}
v22[4 * i + 1] = (float)(COERCE_FLOAT(_mm_cvtsi128_si32((__m128i)LODWORD(v16)) ^ 0x80000000) * v14) + *(float *)&v24;
v22[4 * i + 2] = (float)(v15 * v14) + *((float *)&v24 + 1);
v22[4 * i - 1] = (float)(v16 * v14) + *(float *)&v24;
v22[4 * i] = (float)(COERCE_FLOAT(_mm_cvtsi128_si32((__m128i)LODWORD(v15)) ^ 0x80000000) * v14)
+ *((float *)&v24 + 1);
v25 = v24;
}
return DrawTriangleStrip((long long)&v21, 50, v28);
}
| DrawSplineSegmentBezierCubic:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x200
MOVLPD qword ptr [RBP + -0x8],XMM0
MOVLPD qword ptr [RBP + -0x10],XMM1
MOVLPD qword ptr [RBP + -0x18],XMM2
MOVLPD qword ptr [RBP + -0x20],XMM3
MOV dword ptr [RBP + -0x24],EDI
MOVSS dword ptr [RBP + -0x28],XMM4
MOVSS XMM0,dword ptr [0x002bcbb4]
MOVSS dword ptr [RBP + -0x2c],XMM0
MOV RAX,qword ptr [RBP + -0x8]
MOV qword ptr [RBP + -0x34],RAX
LEA RDI,[RBP + -0x3c]
XOR ESI,ESI
MOV EDX,0x8
CALL 0x0010a2d0
XORPS XMM0,XMM0
MOVSS dword ptr [RBP + -0x40],XMM0
LEA RDI,[RBP + -0x1d0]
XOR ESI,ESI
MOV EDX,0x190
CALL 0x0010a2d0
MOV dword ptr [RBP + -0x1d4],0x1
LAB_001de261:
CMP dword ptr [RBP + -0x1d4],0x18
JG 0x001de619
CVTSI2SS XMM1,dword ptr [RBP + -0x1d4]
MOVSS XMM0,dword ptr [0x002bcbb4]
MULSS XMM0,XMM1
MOVSS dword ptr [RBP + -0x40],XMM0
MOVSS XMM0,dword ptr [0x002a40f4]
SUBSS XMM0,dword ptr [RBP + -0x40]
MOVSS XMM1,dword ptr [0x002a8050]
CALL 0x0010a8a0
MOVSS dword ptr [RBP + -0x1d8],XMM0
MOVSS XMM0,dword ptr [0x002a40f4]
SUBSS XMM0,dword ptr [RBP + -0x40]
MOVSS XMM1,dword ptr [0x002a801c]
CALL 0x0010a8a0
MOVAPS XMM1,XMM0
MOVSS XMM0,dword ptr [0x002a8050]
MULSS XMM0,XMM1
MULSS XMM0,dword ptr [RBP + -0x40]
MOVSS dword ptr [RBP + -0x1dc],XMM0
MOVSS XMM1,dword ptr [0x002a40f4]
SUBSS XMM1,dword ptr [RBP + -0x40]
MOVSS XMM0,dword ptr [0x002a8050]
MULSS XMM0,XMM1
MOVSS dword ptr [RBP + -0x1f8],XMM0
MOVSS XMM0,dword ptr [RBP + -0x40]
MOVSS XMM1,dword ptr [0x002a801c]
CALL 0x0010a8a0
MOVAPS XMM1,XMM0
MOVSS XMM0,dword ptr [RBP + -0x1f8]
MULSS XMM0,XMM1
MOVSS dword ptr [RBP + -0x1e0],XMM0
MOVSS XMM0,dword ptr [RBP + -0x40]
MOVSS XMM1,dword ptr [0x002a8050]
CALL 0x0010a8a0
MOVSS dword ptr [RBP + -0x1e4],XMM0
MOVSS XMM0,dword ptr [RBP + -0x1d8]
MOVSS XMM2,dword ptr [RBP + -0x4]
MOVSS XMM1,dword ptr [RBP + -0x1dc]
MULSS XMM1,dword ptr [RBP + -0xc]
MULSS XMM0,XMM2
ADDSS XMM0,XMM1
MOVSS XMM1,dword ptr [RBP + -0x1e0]
MOVSS XMM2,dword ptr [RBP + -0x14]
MULSS XMM1,XMM2
ADDSS XMM1,XMM0
MOVSS XMM0,dword ptr [RBP + -0x1e4]
MOVSS XMM2,dword ptr [RBP + -0x1c]
MULSS XMM0,XMM2
ADDSS XMM0,XMM1
MOVSS dword ptr [RBP + -0x38],XMM0
MOVSS XMM0,dword ptr [RBP + -0x1d8]
MOVSS XMM2,dword ptr [RBP + -0x8]
MOVSS XMM1,dword ptr [RBP + -0x1dc]
MULSS XMM1,dword ptr [RBP + -0x10]
MULSS XMM0,XMM2
ADDSS XMM0,XMM1
MOVSS XMM1,dword ptr [RBP + -0x1e0]
MOVSS XMM2,dword ptr [RBP + -0x18]
MULSS XMM1,XMM2
ADDSS XMM1,XMM0
MOVSS XMM0,dword ptr [RBP + -0x1e4]
MOVSS XMM2,dword ptr [RBP + -0x20]
MULSS XMM0,XMM2
ADDSS XMM0,XMM1
MOVSS dword ptr [RBP + -0x3c],XMM0
MOVSS XMM0,dword ptr [RBP + -0x38]
SUBSS XMM0,dword ptr [RBP + -0x30]
MOVSS dword ptr [RBP + -0x1e8],XMM0
MOVSS XMM0,dword ptr [RBP + -0x3c]
SUBSS XMM0,dword ptr [RBP + -0x34]
MOVSS dword ptr [RBP + -0x1ec],XMM0
MOVSS XMM0,dword ptr [0x002a40f0]
MULSS XMM0,dword ptr [RBP + -0x28]
MOVSS dword ptr [RBP + -0x1f4],XMM0
MOVSS XMM0,dword ptr [RBP + -0x1ec]
MOVSS XMM2,dword ptr [RBP + -0x1ec]
MOVSS XMM1,dword ptr [RBP + -0x1e8]
MULSS XMM1,dword ptr [RBP + -0x1e8]
MULSS XMM0,XMM2
ADDSS XMM0,XMM1
CALL 0x0010aa30
MOVAPS XMM1,XMM0
MOVSS XMM0,dword ptr [RBP + -0x1f4]
DIVSS XMM0,XMM1
MOVSS dword ptr [RBP + -0x1f0],XMM0
CMP dword ptr [RBP + -0x1d4],0x1
JNZ 0x001de51d
MOVSS XMM1,dword ptr [RBP + -0x34]
MOVSS XMM0,dword ptr [RBP + -0x1e8]
MOVSS XMM2,dword ptr [RBP + -0x1f0]
MULSS XMM0,XMM2
ADDSS XMM0,XMM1
MOVSS dword ptr [RBP + -0x1d0],XMM0
MOVSS XMM1,dword ptr [RBP + -0x30]
MOVSS XMM0,dword ptr [RBP + -0x1ec]
MOVSS XMM2,dword ptr [RBP + -0x1f0]
MOVD EAX,XMM0
XOR EAX,0x80000000
MOVD XMM0,EAX
MULSS XMM0,XMM2
ADDSS XMM0,XMM1
MOVSS dword ptr [RBP + -0x1cc],XMM0
MOVSS XMM1,dword ptr [RBP + -0x34]
MOVSS XMM0,dword ptr [RBP + -0x1e8]
MOVSS XMM2,dword ptr [RBP + -0x1f0]
MOVD EAX,XMM0
XOR EAX,0x80000000
MOVD XMM0,EAX
MULSS XMM0,XMM2
ADDSS XMM0,XMM1
MOVSS dword ptr [RBP + -0x1c8],XMM0
MOVSS XMM1,dword ptr [RBP + -0x30]
MOVSS XMM0,dword ptr [RBP + -0x1ec]
MOVSS XMM2,dword ptr [RBP + -0x1f0]
MULSS XMM0,XMM2
ADDSS XMM0,XMM1
MOVSS dword ptr [RBP + -0x1c4],XMM0
LAB_001de51d:
MOVSS XMM1,dword ptr [RBP + -0x3c]
MOVSS XMM0,dword ptr [RBP + -0x1e8]
MOVSS XMM2,dword ptr [RBP + -0x1f0]
MOVD EAX,XMM0
XOR EAX,0x80000000
MOVD XMM0,EAX
MULSS XMM0,XMM2
ADDSS XMM0,XMM1
MOV EAX,dword ptr [RBP + -0x1d4]
SHL EAX,0x1
ADD EAX,0x1
CDQE
MOVSS dword ptr [RBP + RAX*0x8 + -0x1d0],XMM0
MOVSS XMM1,dword ptr [RBP + -0x38]
MOVSS XMM0,dword ptr [RBP + -0x1ec]
MOVSS XMM2,dword ptr [RBP + -0x1f0]
MULSS XMM0,XMM2
ADDSS XMM0,XMM1
MOV EAX,dword ptr [RBP + -0x1d4]
SHL EAX,0x1
ADD EAX,0x1
CDQE
MOVSS dword ptr [RBP + RAX*0x8 + -0x1cc],XMM0
MOVSS XMM1,dword ptr [RBP + -0x3c]
MOVSS XMM0,dword ptr [RBP + -0x1e8]
MOVSS XMM2,dword ptr [RBP + -0x1f0]
MULSS XMM0,XMM2
ADDSS XMM0,XMM1
MOV EAX,dword ptr [RBP + -0x1d4]
SHL EAX,0x1
CDQE
MOVSS dword ptr [RBP + RAX*0x8 + -0x1d0],XMM0
MOVSS XMM1,dword ptr [RBP + -0x38]
MOVSS XMM0,dword ptr [RBP + -0x1ec]
MOVSS XMM2,dword ptr [RBP + -0x1f0]
MOVD EAX,XMM0
XOR EAX,0x80000000
MOVD XMM0,EAX
MULSS XMM0,XMM2
ADDSS XMM0,XMM1
MOV EAX,dword ptr [RBP + -0x1d4]
SHL EAX,0x1
CDQE
MOVSS dword ptr [RBP + RAX*0x8 + -0x1cc],XMM0
MOV RAX,qword ptr [RBP + -0x3c]
MOV qword ptr [RBP + -0x34],RAX
MOV EAX,dword ptr [RBP + -0x1d4]
ADD EAX,0x1
MOV dword ptr [RBP + -0x1d4],EAX
JMP 0x001de261
LAB_001de619:
LEA RDI,[RBP + -0x1d0]
MOV EDX,dword ptr [RBP + -0x24]
MOV ESI,0x32
CALL 0x001d7610
ADD RSP,0x200
POP RBP
RET
|
void DrawSplineSegmentBezierCubic
(int8 param_1,int8 param_2,int8 param_3,int8 param_4,
float param_5,int4 param_6)
{
float fVar1;
float fVar2;
float fVar3;
float fVar4;
int local_1dc;
float local_1d8 [100];
float local_48;
float local_44;
float fStack_40;
int8 local_3c;
float local_34;
float local_30;
int4 local_2c;
int8 local_28;
int8 local_20;
int8 local_18;
int8 local_10;
local_34 = DAT_002bcbb4;
local_3c = param_1;
local_30 = param_5;
local_2c = param_6;
local_28 = param_4;
local_20 = param_3;
local_18 = param_2;
local_10 = param_1;
memset(&local_44,0,8);
local_48 = 0.0;
memset(local_1d8,0,400);
for (local_1dc = 1; local_1dc < 0x19; local_1dc = local_1dc + 1) {
local_48 = DAT_002bcbb4 * (float)local_1dc;
fVar1 = powf(DAT_002a40f4 - local_48,DAT_002a8050);
fVar2 = powf(DAT_002a40f4 - local_48,DAT_002a801c);
fVar2 = DAT_002a8050 * fVar2 * local_48;
fVar3 = DAT_002a8050 * (DAT_002a40f4 - local_48);
fVar4 = powf(local_48,DAT_002a801c);
fVar3 = fVar3 * fVar4;
fVar4 = powf(local_48,DAT_002a8050);
fStack_40 = fVar4 * local_28._4_4_ +
fVar3 * local_20._4_4_ + fVar1 * local_10._4_4_ + fVar2 * local_18._4_4_;
local_44 = fVar4 * (float)local_28 +
fVar3 * (float)local_20 + fVar1 * (float)local_10 + fVar2 * (float)local_18;
fVar1 = fStack_40 - local_3c._4_4_;
fVar2 = local_44 - (float)local_3c;
fVar3 = DAT_002a40f0 * local_30;
fVar4 = sqrtf(fVar2 * fVar2 + fVar1 * fVar1);
fVar3 = fVar3 / fVar4;
if (local_1dc == 1) {
local_1d8[0] = fVar1 * fVar3 + (float)local_3c;
local_1d8[1] = -fVar2 * fVar3 + local_3c._4_4_;
local_1d8[2] = -fVar1 * fVar3 + (float)local_3c;
local_1d8[3] = fVar2 * fVar3 + local_3c._4_4_;
}
local_1d8[(long)(local_1dc * 2 + 1) * 2] = -fVar1 * fVar3 + local_44;
local_1d8[(long)(local_1dc * 2 + 1) * 2 + 1] = fVar2 * fVar3 + fStack_40;
local_1d8[(long)(local_1dc << 1) * 2] = fVar1 * fVar3 + local_44;
local_1d8[(long)(local_1dc << 1) * 2 + 1] = -fVar2 * fVar3 + fStack_40;
local_3c = CONCAT44(fStack_40,local_44);
}
DrawTriangleStrip(local_1d8,0x32,local_2c);
return;
}
| |
45,250 | DrawSplineSegmentBezierCubic | csit-sgu[P]mit-game-2025_1/Libraries/raylib/src/rshapes.c | void DrawSplineSegmentBezierCubic(Vector2 p1, Vector2 c2, Vector2 c3, Vector2 p4, float thick, Color color)
{
const float step = 1.0f/SPLINE_SEGMENT_DIVISIONS;
Vector2 previous = p1;
Vector2 current = { 0 };
float t = 0.0f;
Vector2 points[2*SPLINE_SEGMENT_DIVISIONS + 2] = { 0 };
for (int i = 1; i <= SPLINE_SEGMENT_DIVISIONS; i++)
{
t = step*(float)i;
float a = powf(1.0f - t, 3);
float b = 3.0f*powf(1.0f - t, 2)*t;
float c = 3.0f*(1.0f - t)*powf(t, 2);
float d = powf(t, 3);
current.y = a*p1.y + b*c2.y + c*c3.y + d*p4.y;
current.x = a*p1.x + b*c2.x + c*c3.x + d*p4.x;
float dy = current.y - previous.y;
float dx = current.x - previous.x;
float size = 0.5f*thick/sqrtf(dx*dx+dy*dy);
if (i == 1)
{
points[0].x = previous.x + dy*size;
points[0].y = previous.y - dx*size;
points[1].x = previous.x - dy*size;
points[1].y = previous.y + dx*size;
}
points[2*i + 1].x = current.x - dy*size;
points[2*i + 1].y = current.y + dx*size;
points[2*i].x = current.x + dy*size;
points[2*i].y = current.y - dx*size;
previous = current;
}
DrawTriangleStrip(points, 2*SPLINE_SEGMENT_DIVISIONS + 2, color);
} | O3 | c | DrawSplineSegmentBezierCubic:
pushq %rbp
pushq %r14
pushq %rbx
subq $0x230, %rsp # imm = 0x230
movl %edi, %ebx
movss %xmm4, 0x8(%rsp)
movaps %xmm3, 0x60(%rsp)
movaps %xmm2, 0x50(%rsp)
movaps %xmm1, 0x40(%rsp)
movaps %xmm0, 0x30(%rsp)
leaq 0xb0(%rsp), %rdi
movl $0x180, %edx # imm = 0x180
xorl %esi, %esi
callq 0xa2d0
movss 0x8(%rsp), %xmm0
mulss 0x560ed(%rip), %xmm0 # 0xd3b58
movss %xmm0, 0x8(%rsp)
xorps %xmm0, %xmm0
movaps %xmm0, 0x20(%rsp)
movl $0x10, %r14d
movl $0x1, %ebp
movaps 0x30(%rsp), %xmm0
movaps %xmm0, 0x90(%rsp)
xorps %xmm1, %xmm1
cvtsi2ss %ebp, %xmm1
mulss 0x696f0(%rip), %xmm1 # 0xe7190
movss %xmm1, 0xc(%rsp)
movss 0x5606e(%rip), %xmm0 # 0xd3b1c
subss %xmm1, %xmm0
movss %xmm0, 0x10(%rsp)
movss 0x516ec(%rip), %xmm1 # 0xcf1ac
callq 0xa8a0
movaps %xmm0, 0x80(%rsp)
movss 0x10(%rsp), %xmm2
movaps %xmm2, %xmm0
mulss %xmm2, %xmm0
movss 0x516ca(%rip), %xmm1 # 0xcf1ac
mulss %xmm1, %xmm0
movss 0xc(%rsp), %xmm3
mulss %xmm3, %xmm0
movaps %xmm0, 0x70(%rsp)
mulss %xmm1, %xmm2
movaps %xmm2, %xmm4
movaps %xmm3, %xmm2
movaps %xmm3, %xmm0
mulss %xmm3, %xmm2
mulss %xmm4, %xmm2
movaps %xmm2, 0x10(%rsp)
callq 0xa8a0
movaps 0x90(%rsp), %xmm9
movaps 0x70(%rsp), %xmm1
shufps $0x0, %xmm1, %xmm1 # xmm1 = xmm1[0,0,0,0]
mulps 0x40(%rsp), %xmm1
movaps %xmm1, %xmm2
movaps 0x80(%rsp), %xmm1
shufps $0x0, %xmm1, %xmm1 # xmm1 = xmm1[0,0,0,0]
mulps 0x30(%rsp), %xmm1
addps %xmm2, %xmm1
movaps 0x10(%rsp), %xmm2
shufps $0x0, %xmm2, %xmm2 # xmm2 = xmm2[0,0,0,0]
mulps 0x50(%rsp), %xmm2
addps %xmm1, %xmm2
shufps $0x0, %xmm0, %xmm0 # xmm0 = xmm0[0,0,0,0]
mulps 0x60(%rsp), %xmm0
addps %xmm2, %xmm0
movaps %xmm0, %xmm1
shufps $0x55, %xmm0, %xmm1 # xmm1 = xmm1[1,1],xmm0[1,1]
movaps %xmm9, %xmm2
shufps $0x55, %xmm9, %xmm2 # xmm2 = xmm2[1,1],xmm9[1,1]
subss %xmm2, %xmm1
movaps %xmm0, %xmm3
subss %xmm9, %xmm3
movaps %xmm1, %xmm2
mulss %xmm1, %xmm2
movaps %xmm3, %xmm4
mulss %xmm3, %xmm4
addss %xmm2, %xmm4
sqrtss %xmm4, %xmm4
movss 0x8(%rsp), %xmm2
divss %xmm4, %xmm2
movaps %xmm3, %xmm4
movaps 0x515ab(%rip), %xmm6 # 0xcf150
xorps %xmm6, %xmm4
cmpq $0x10, %r14
jne 0x7dbe4
movlhps %xmm9, %xmm9 # xmm9 = xmm9[0,0]
movaps %xmm1, %xmm5
xorps %xmm6, %xmm5
movaps %xmm2, %xmm6
unpcklps %xmm3, %xmm6 # xmm6 = xmm6[0],xmm3[0],xmm6[1],xmm3[1]
shufps $0x40, %xmm6, %xmm6 # xmm6 = xmm6[0,0,0,1]
movaps %xmm1, %xmm8
unpcklps %xmm4, %xmm8 # xmm8 = xmm8[0],xmm4[0],xmm8[1],xmm4[1]
movaps %xmm5, %xmm7
unpcklps %xmm2, %xmm7 # xmm7 = xmm7[0],xmm2[0],xmm7[1],xmm2[1]
movlhps %xmm7, %xmm8 # xmm8 = xmm8[0],xmm7[0]
mulps %xmm6, %xmm8
addps %xmm9, %xmm8
movaps %xmm8, 0x20(%rsp)
jmp 0x7dbea
movaps %xmm1, %xmm5
xorps %xmm6, %xmm5
movaps %xmm0, %xmm6
movlhps %xmm0, %xmm6 # xmm6 = xmm6[0],xmm0[0]
unpcklps %xmm3, %xmm5 # xmm5 = xmm5[0],xmm3[0],xmm5[1],xmm3[1]
unpcklps %xmm4, %xmm1 # xmm1 = xmm1[0],xmm4[0],xmm1[1],xmm4[1]
movlhps %xmm5, %xmm1 # xmm1 = xmm1[0],xmm5[0]
shufps $0x0, %xmm2, %xmm2 # xmm2 = xmm2[0,0,0,0]
mulps %xmm1, %xmm2
addps %xmm6, %xmm2
movaps %xmm2, 0xa0(%rsp,%r14)
addq $0x10, %r14
incl %ebp
cmpq $0x190, %r14 # imm = 0x190
jne 0x7da89
leaq 0xa0(%rsp), %rdi
movaps 0x20(%rsp), %xmm0
movaps %xmm0, (%rdi)
movl $0x32, %esi
movl %ebx, %edx
callq 0x78c90
addq $0x230, %rsp # imm = 0x230
popq %rbx
popq %r14
popq %rbp
retq
| DrawSplineSegmentBezierCubic:
push rbp
push r14
push rbx
sub rsp, 230h
mov ebx, edi
movss [rsp+248h+var_240], xmm4
movaps [rsp+248h+var_1E8], xmm3
movaps [rsp+248h+var_1F8], xmm2
movaps [rsp+248h+var_208], xmm1
movaps [rsp+248h+var_218], xmm0
lea rdi, [rsp+248h+var_198]
mov edx, 180h
xor esi, esi
call _memset
movss xmm0, [rsp+248h+var_240]
mulss xmm0, cs:dword_D3B58
movss [rsp+248h+var_240], xmm0
xorps xmm0, xmm0
movaps [rsp+248h+var_228], xmm0
mov r14d, 10h
mov ebp, 1
movaps xmm0, [rsp+248h+var_218]
loc_7DA89:
movaps [rsp+248h+var_1B8], xmm0
xorps xmm1, xmm1
cvtsi2ss xmm1, ebp
mulss xmm1, cs:dword_E7190
movss [rsp+248h+var_23C], xmm1
movss xmm0, cs:dword_D3B1C
subss xmm0, xmm1
movss dword ptr [rsp+248h+var_238], xmm0
movss xmm1, cs:dword_CF1AC
call _powf
movaps [rsp+248h+var_1C8], xmm0
movss xmm2, dword ptr [rsp+248h+var_238]
movaps xmm0, xmm2
mulss xmm0, xmm2
movss xmm1, cs:dword_CF1AC
mulss xmm0, xmm1
movss xmm3, [rsp+248h+var_23C]
mulss xmm0, xmm3
movaps [rsp+248h+var_1D8], xmm0
mulss xmm2, xmm1
movaps xmm4, xmm2
movaps xmm2, xmm3
movaps xmm0, xmm3
mulss xmm2, xmm3
mulss xmm2, xmm4
movaps [rsp+248h+var_238], xmm2
call _powf
movaps xmm9, [rsp+248h+var_1B8]
movaps xmm1, [rsp+248h+var_1D8]
shufps xmm1, xmm1, 0
mulps xmm1, [rsp+248h+var_208]
movaps xmm2, xmm1
movaps xmm1, [rsp+248h+var_1C8]
shufps xmm1, xmm1, 0
mulps xmm1, [rsp+248h+var_218]
addps xmm1, xmm2
movaps xmm2, [rsp+248h+var_238]
shufps xmm2, xmm2, 0
mulps xmm2, [rsp+248h+var_1F8]
addps xmm2, xmm1
shufps xmm0, xmm0, 0
mulps xmm0, [rsp+248h+var_1E8]
addps xmm0, xmm2
movaps xmm1, xmm0
shufps xmm1, xmm0, 55h ; 'U'
movaps xmm2, xmm9
shufps xmm2, xmm9, 55h ; 'U'
subss xmm1, xmm2
movaps xmm3, xmm0
subss xmm3, xmm9
movaps xmm2, xmm1
mulss xmm2, xmm1
movaps xmm4, xmm3
mulss xmm4, xmm3
addss xmm4, xmm2
sqrtss xmm4, xmm4
movss xmm2, [rsp+248h+var_240]
divss xmm2, xmm4
movaps xmm4, xmm3
movaps xmm6, cs:xmmword_CF150
xorps xmm4, xmm6
cmp r14, 10h
jnz short loc_7DBE4
movlhps xmm9, xmm9
movaps xmm5, xmm1
xorps xmm5, xmm6
movaps xmm6, xmm2
unpcklps xmm6, xmm3
shufps xmm6, xmm6, 40h ; '@'
movaps xmm8, xmm1
unpcklps xmm8, xmm4
movaps xmm7, xmm5
unpcklps xmm7, xmm2
movlhps xmm8, xmm7
mulps xmm8, xmm6
addps xmm8, xmm9
movaps [rsp+248h+var_228], xmm8
jmp short loc_7DBEA
loc_7DBE4:
movaps xmm5, xmm1
xorps xmm5, xmm6
loc_7DBEA:
movaps xmm6, xmm0
movlhps xmm6, xmm0
unpcklps xmm5, xmm3
unpcklps xmm1, xmm4
movlhps xmm1, xmm5
shufps xmm2, xmm2, 0
mulps xmm2, xmm1
addps xmm2, xmm6
movaps [rsp+r14+248h+var_1A8], xmm2
add r14, 10h
inc ebp
cmp r14, 190h
jnz loc_7DA89
lea rdi, [rsp+248h+var_1A8]
movaps xmm0, [rsp+248h+var_228]
movaps xmmword ptr [rdi], xmm0
mov esi, 32h ; '2'
mov edx, ebx
call DrawTriangleStrip
add rsp, 230h
pop rbx
pop r14
pop rbp
retn
| long long DrawSplineSegmentBezierCubic(unsigned int a1, __m128 a2, __m128 a3, __m128 a4, __m128 a5, float a6)
{
long long v6; // r14
int v7; // ebp
__m128 v8; // xmm0
__m128 v9; // xmm0
__m128 v10; // xmm2
__m128 v11; // xmm0
__m128 v12; // xmm1
__m128 v13; // xmm3
__m128 v14; // xmm2
__m128 v15; // xmm4
__m128 v16; // xmm5
__m128 v17; // xmm6
float v20; // [rsp+8h] [rbp-240h]
float v21; // [rsp+Ch] [rbp-23Ch]
__m128 v22; // [rsp+20h] [rbp-228h]
__m128 v23; // [rsp+30h] [rbp-218h]
__m128 v27; // [rsp+70h] [rbp-1D8h]
__m128 v28; // [rsp+80h] [rbp-1C8h]
__m128 v29; // [rsp+90h] [rbp-1B8h]
__m128 v30; // [rsp+A0h] [rbp-1A8h] BYREF
_BYTE v31[408]; // [rsp+B0h] [rbp-198h] BYREF
v23 = a2;
memset(v31, 0LL, 384LL);
v20 = a6 * 0.5;
v22 = 0LL;
v6 = 16LL;
v7 = 1;
do
{
v29 = a2;
v21 = (float)v7 * 0.041666668;
v8 = (__m128)0x3F800000u;
*(double *)v8.m128_u64 = powf(1.0 - v21, 3.0);
v28 = v8;
v9 = (__m128)COERCE_UNSIGNED_INT(1.0 - v21);
v9.m128_f32[0] = (float)((float)(v9.m128_f32[0] * v9.m128_f32[0]) * 3.0) * v21;
v27 = v9;
v10 = (__m128)LODWORD(v21);
v11 = (__m128)LODWORD(v21);
v10.m128_f32[0] = (float)(v10.m128_f32[0] * v10.m128_f32[0]) * (float)((float)(1.0 - v21) * 3.0);
*(double *)v11.m128_u64 = powf(v21, 3.0);
a2 = _mm_add_ps(
_mm_mul_ps(_mm_shuffle_ps(v11, v11, 0), a5),
_mm_add_ps(
_mm_mul_ps(_mm_shuffle_ps(v10, v10, 0), a4),
_mm_add_ps(_mm_mul_ps(_mm_shuffle_ps(v28, v28, 0), v23), _mm_mul_ps(_mm_shuffle_ps(v27, v27, 0), a3))));
v12 = _mm_shuffle_ps(a2, a2, 85);
v12.m128_f32[0] = v12.m128_f32[0] - _mm_shuffle_ps(v29, v29, 85).m128_f32[0];
v13 = a2;
v13.m128_f32[0] = a2.m128_f32[0] - v29.m128_f32[0];
v14 = (__m128)LODWORD(v20);
v14.m128_f32[0] = v20
/ fsqrt((float)(v13.m128_f32[0] * v13.m128_f32[0]) + (float)(v12.m128_f32[0] * v12.m128_f32[0]));
v15 = _mm_xor_ps(v13, (__m128)xmmword_CF150);
v16 = _mm_xor_ps(v12, (__m128)xmmword_CF150);
if ( v6 == 16 )
{
v17 = _mm_unpacklo_ps(v14, v13);
v22 = _mm_add_ps(
_mm_mul_ps(
_mm_movelh_ps(_mm_unpacklo_ps(v12, v15), _mm_unpacklo_ps(v16, v14)),
_mm_shuffle_ps(v17, v17, 64)),
_mm_movelh_ps(v29, v29));
}
*(__m128 *)((char *)&v30 + v6) = _mm_add_ps(
_mm_mul_ps(
_mm_shuffle_ps(v14, v14, 0),
_mm_movelh_ps(_mm_unpacklo_ps(v12, v15), _mm_unpacklo_ps(v16, v13))),
_mm_movelh_ps(a2, a2));
v6 += 16LL;
++v7;
}
while ( v6 != 400 );
v30 = v22;
return DrawTriangleStrip((long long)&v30, 50, a1);
}
| DrawSplineSegmentBezierCubic:
PUSH RBP
PUSH R14
PUSH RBX
SUB RSP,0x230
MOV EBX,EDI
MOVSS dword ptr [RSP + 0x8],XMM4
MOVAPS xmmword ptr [RSP + 0x60],XMM3
MOVAPS xmmword ptr [RSP + 0x50],XMM2
MOVAPS xmmword ptr [RSP + 0x40],XMM1
MOVAPS xmmword ptr [RSP + 0x30],XMM0
LEA RDI,[RSP + 0xb0]
MOV EDX,0x180
XOR ESI,ESI
CALL 0x0010a2d0
MOVSS XMM0,dword ptr [RSP + 0x8]
MULSS XMM0,dword ptr [0x001d3b58]
MOVSS dword ptr [RSP + 0x8],XMM0
XORPS XMM0,XMM0
MOVAPS xmmword ptr [RSP + 0x20],XMM0
MOV R14D,0x10
MOV EBP,0x1
MOVAPS XMM0,xmmword ptr [RSP + 0x30]
LAB_0017da89:
MOVAPS xmmword ptr [RSP + 0x90],XMM0
XORPS XMM1,XMM1
CVTSI2SS XMM1,EBP
MULSS XMM1,dword ptr [0x001e7190]
MOVSS dword ptr [RSP + 0xc],XMM1
MOVSS XMM0,dword ptr [0x001d3b1c]
SUBSS XMM0,XMM1
MOVSS dword ptr [RSP + 0x10],XMM0
MOVSS XMM1,dword ptr [0x001cf1ac]
CALL 0x0010a8a0
MOVAPS xmmword ptr [RSP + 0x80],XMM0
MOVSS XMM2,dword ptr [RSP + 0x10]
MOVAPS XMM0,XMM2
MULSS XMM0,XMM2
MOVSS XMM1,dword ptr [0x001cf1ac]
MULSS XMM0,XMM1
MOVSS XMM3,dword ptr [RSP + 0xc]
MULSS XMM0,XMM3
MOVAPS xmmword ptr [RSP + 0x70],XMM0
MULSS XMM2,XMM1
MOVAPS XMM4,XMM2
MOVAPS XMM2,XMM3
MOVAPS XMM0,XMM3
MULSS XMM2,XMM3
MULSS XMM2,XMM4
MOVAPS xmmword ptr [RSP + 0x10],XMM2
CALL 0x0010a8a0
MOVAPS XMM9,xmmword ptr [RSP + 0x90]
MOVAPS XMM1,xmmword ptr [RSP + 0x70]
SHUFPS XMM1,XMM1,0x0
MULPS XMM1,xmmword ptr [RSP + 0x40]
MOVAPS XMM2,XMM1
MOVAPS XMM1,xmmword ptr [RSP + 0x80]
SHUFPS XMM1,XMM1,0x0
MULPS XMM1,xmmword ptr [RSP + 0x30]
ADDPS XMM1,XMM2
MOVAPS XMM2,xmmword ptr [RSP + 0x10]
SHUFPS XMM2,XMM2,0x0
MULPS XMM2,xmmword ptr [RSP + 0x50]
ADDPS XMM2,XMM1
SHUFPS XMM0,XMM0,0x0
MULPS XMM0,xmmword ptr [RSP + 0x60]
ADDPS XMM0,XMM2
MOVAPS XMM1,XMM0
SHUFPS XMM1,XMM0,0x55
MOVAPS XMM2,XMM9
SHUFPS XMM2,XMM9,0x55
SUBSS XMM1,XMM2
MOVAPS XMM3,XMM0
SUBSS XMM3,XMM9
MOVAPS XMM2,XMM1
MULSS XMM2,XMM1
MOVAPS XMM4,XMM3
MULSS XMM4,XMM3
ADDSS XMM4,XMM2
SQRTSS XMM4,XMM4
MOVSS XMM2,dword ptr [RSP + 0x8]
DIVSS XMM2,XMM4
MOVAPS XMM4,XMM3
MOVAPS XMM6,xmmword ptr [0x001cf150]
XORPS XMM4,XMM6
CMP R14,0x10
JNZ 0x0017dbe4
MOVLHPS XMM9,XMM9
MOVAPS XMM5,XMM1
XORPS XMM5,XMM6
MOVAPS XMM6,XMM2
UNPCKLPS XMM6,XMM3
SHUFPS XMM6,XMM6,0x40
MOVAPS XMM8,XMM1
UNPCKLPS XMM8,XMM4
MOVAPS XMM7,XMM5
UNPCKLPS XMM7,XMM2
MOVLHPS XMM8,XMM7
MULPS XMM8,XMM6
ADDPS XMM8,XMM9
MOVAPS xmmword ptr [RSP + 0x20],XMM8
JMP 0x0017dbea
LAB_0017dbe4:
MOVAPS XMM5,XMM1
XORPS XMM5,XMM6
LAB_0017dbea:
MOVAPS XMM6,XMM0
MOVLHPS XMM6,XMM0
UNPCKLPS XMM5,XMM3
UNPCKLPS XMM1,XMM4
MOVLHPS XMM1,XMM5
SHUFPS XMM2,XMM2,0x0
MULPS XMM2,XMM1
ADDPS XMM2,XMM6
MOVAPS xmmword ptr [RSP + R14*0x1 + 0xa0],XMM2
ADD R14,0x10
INC EBP
CMP R14,0x190
JNZ 0x0017da89
LEA RDI,[RSP + 0xa0]
MOVAPS XMM0,xmmword ptr [RSP + 0x20]
MOVAPS xmmword ptr [RDI],XMM0
MOV ESI,0x32
MOV EDX,EBX
CALL 0x00178c90
ADD RSP,0x230
POP RBX
POP R14
POP RBP
RET
|
/* WARNING: Globals starting with '_' overlap smaller symbols at the same address */
void DrawSplineSegmentBezierCubic
(int8 param_1,int8 param_2,int8 param_3,int8 param_4,
float param_5,int4 param_6)
{
int iVar1;
long lVar2;
float fVar3;
float fVar4;
float fVar5;
float fVar6;
float fVar7;
float fVar8;
float fVar9;
float fVar10;
float local_228;
float fStack_224;
float fStack_220;
float fStack_21c;
float local_1a8 [100];
fVar7 = (float)((ulong)param_1 >> 0x20);
memset(local_1a8 + 4,0,0x180);
param_5 = param_5 * DAT_001d3b58;
local_228 = 0.0;
fStack_224 = 0.0;
fStack_220 = 0.0;
fStack_21c = 0.0;
lVar2 = 0x10;
iVar1 = 1;
fVar3 = (float)param_1;
fVar8 = fVar7;
do {
fVar9 = (float)iVar1 * DAT_001e7190;
fVar4 = DAT_001d3b1c - fVar9;
fVar5 = powf(fVar4,DAT_001cf1ac);
fVar6 = fVar4 * fVar4 * DAT_001cf1ac * fVar9;
fVar10 = fVar9 * fVar9 * fVar4 * DAT_001cf1ac;
fVar4 = powf(fVar9,DAT_001cf1ac);
fVar9 = fVar4 * (float)param_4 +
fVar10 * (float)param_3 + fVar5 * (float)param_1 + fVar6 * (float)param_2;
fVar4 = fVar4 * (float)((ulong)param_4 >> 0x20) +
fVar10 * (float)((ulong)param_3 >> 0x20) +
fVar5 * fVar7 + fVar6 * (float)((ulong)param_2 >> 0x20);
fVar5 = fVar4 - fVar8;
fVar10 = fVar9 - fVar3;
fVar6 = param_5 / SQRT(fVar10 * fVar10 + fVar5 * fVar5);
if (lVar2 == 0x10) {
local_228 = fVar5 * fVar6 + fVar3;
fStack_224 = (float)((uint)fVar10 ^ _DAT_001cf150) * fVar6 + fVar8;
fStack_220 = (float)((uint)fVar5 ^ _DAT_001cf150) * fVar6 + fVar3;
fStack_21c = fVar6 * fVar10 + fVar8;
}
*(float *)((long)local_1a8 + lVar2) = fVar6 * fVar5 + fVar9;
*(float *)((long)local_1a8 + lVar2 + 4) = fVar6 * (float)((uint)fVar10 ^ _DAT_001cf150) + fVar4;
*(float *)((long)local_1a8 + lVar2 + 8) = fVar6 * (float)((uint)fVar5 ^ _DAT_001cf150) + fVar9;
*(float *)((long)local_1a8 + lVar2 + 0xc) = fVar6 * fVar10 + fVar4;
lVar2 = lVar2 + 0x10;
iVar1 = iVar1 + 1;
fVar3 = fVar9;
fVar8 = fVar4;
} while (lVar2 != 400);
local_1a8[0] = local_228;
local_1a8[1] = fStack_224;
local_1a8[2] = fStack_220;
local_1a8[3] = fStack_21c;
DrawTriangleStrip(local_1a8,0x32,param_6);
return;
}
| |
45,251 | spdlog::details::z_formatter<spdlog::details::scoped_padder>::z_formatter(spdlog::details::padding_info) | AlayaLite/build_O0/_deps/spdlog-src/include/spdlog/pattern_formatter-inl.h | explicit z_formatter(padding_info padinfo)
: flag_formatter(padinfo) {} | O0 | c | spdlog::details::z_formatter<spdlog::details::scoped_padder>::z_formatter(spdlog::details::padding_info):
subq $0x68, %rsp
movq %rsi, 0x58(%rsp)
movq %rdx, 0x60(%rsp)
movq %rdi, 0x50(%rsp)
movq 0x50(%rsp), %rdi
movq %rdi, 0x8(%rsp)
movups 0x58(%rsp), %xmm0
movaps %xmm0, 0x40(%rsp)
movq 0x40(%rsp), %rsi
movq 0x48(%rsp), %rdx
callq 0x8e230
movq 0x8(%rsp), %rax
leaq 0x12e266(%rip), %rcx # 0x1cd5c8
addq $0x10, %rcx
movq %rcx, (%rax)
addq $0x18, %rax
movq %rax, 0x10(%rsp)
movl $0x0, 0x2c(%rsp)
leaq 0x30(%rsp), %rdi
leaq 0x2c(%rsp), %rsi
callq 0x7d9b0
jmp 0x9f38b
leaq 0x38(%rsp), %rdi
leaq 0x30(%rsp), %rsi
callq 0x86b00
jmp 0x9f39c
movq 0x10(%rsp), %rdi
leaq 0x38(%rsp), %rsi
callq 0x9f410
jmp 0x9f3ad
movq 0x8(%rsp), %rax
movl $0x0, 0x20(%rax)
addq $0x68, %rsp
retq
movq 0x8(%rsp), %rdi
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x20(%rsp)
movl %eax, 0x1c(%rsp)
callq 0x8e940
movq 0x20(%rsp), %rdi
callq 0x15dd0
| _ZN6spdlog7details11z_formatterINS0_13scoped_padderEEC2ENS0_12padding_infoE:
sub rsp, 68h
mov qword ptr [rsp+68h+var_10], rsi
mov qword ptr [rsp+68h+var_10+8], rdx
mov [rsp+68h+var_18], rdi
mov rdi, [rsp+68h+var_18]
mov [rsp+68h+var_60], rdi
movups xmm0, [rsp+68h+var_10]
movaps [rsp+68h+var_28], xmm0
mov rsi, qword ptr [rsp+68h+var_28]
mov rdx, qword ptr [rsp+68h+var_28+8]
call _ZN6spdlog7details14flag_formatterC2ENS0_12padding_infoE; spdlog::details::flag_formatter::flag_formatter(spdlog::details::padding_info)
mov rax, [rsp+68h+var_60]
lea rcx, _ZTVN6spdlog7details11z_formatterINS0_13scoped_padderEEE; `vtable for'spdlog::details::z_formatter<spdlog::details::scoped_padder>
add rcx, 10h
mov [rax], rcx
add rax, 18h
mov [rsp+68h+var_58], rax
mov [rsp+68h+var_3C], 0
lea rdi, [rsp+68h+var_38]
lea rsi, [rsp+68h+var_3C]
call _ZNSt6chrono8durationIlSt5ratioILl1ELl1EEEC2IivEERKT_; std::chrono::duration<long,std::ratio<1l,1l>>::duration<int,void>(int const&)
jmp short $+2
loc_9F38B:
lea rdi, [rsp+68h+var_30]
lea rsi, [rsp+68h+var_38]
call _ZNSt6chrono8durationIlSt5ratioILl1ELl1000000000EEEC2IlS1_ILl1ELl1EEvEERKNS0_IT_T0_EE; std::chrono::duration<long,std::ratio<1l,1000000000l>>::duration<long,std::ratio<1l,1l>,void>(std::chrono::duration<long,std::ratio<1l,1l>> const&)
jmp short $+2
loc_9F39C:
mov rdi, [rsp+68h+var_58]
lea rsi, [rsp+68h+var_30]
call _ZNSt6chrono10time_pointINS_3_V212system_clockENS_8durationIlSt5ratioILl1ELl1000000000EEEEEC2ERKS6_; std::chrono::time_point<std::chrono::_V2::system_clock,std::chrono::duration<long,std::ratio<1l,1000000000l>>>::time_point(std::chrono::duration<long,std::ratio<1l,1000000000l>> const&)
jmp short $+2
loc_9F3AD:
mov rax, [rsp+68h+var_60]
mov dword ptr [rax+20h], 0
add rsp, 68h
retn
mov rdi, [rsp+arg_0]; this
mov rcx, rax
mov eax, edx
mov [rsp+arg_18], rcx
mov [rsp+arg_14], eax
call _ZN6spdlog7details14flag_formatterD2Ev; spdlog::details::flag_formatter::~flag_formatter()
mov rdi, [rsp+arg_18]
call __Unwind_Resume
| long long spdlog::details::z_formatter<spdlog::details::scoped_padder>::z_formatter(
long long a1,
long long a2,
long long a3)
{
long long result; // rax
int v4; // [rsp+2Ch] [rbp-3Ch] BYREF
long long v5; // [rsp+30h] [rbp-38h] BYREF
long long v6; // [rsp+38h] [rbp-30h] BYREF
__int128 v7; // [rsp+40h] [rbp-28h]
long long v8; // [rsp+50h] [rbp-18h]
__int128 v9; // [rsp+58h] [rbp-10h]
*(_QWORD *)&v9 = a2;
*((_QWORD *)&v9 + 1) = a3;
v8 = a1;
v7 = v9;
spdlog::details::flag_formatter::flag_formatter((_QWORD *)a1, a2, a3);
*(_QWORD *)a1 = &`vtable for'spdlog::details::z_formatter<spdlog::details::scoped_padder> + 2;
v4 = 0;
std::chrono::duration<long,std::ratio<1l,1l>>::duration<int,void>(&v5, &v4);
std::chrono::duration<long,std::ratio<1l,1000000000l>>::duration<long,std::ratio<1l,1l>,void>(&v6, (long long)&v5);
std::chrono::time_point<std::chrono::_V2::system_clock,std::chrono::duration<long,std::ratio<1l,1000000000l>>>::time_point(
a1 + 24,
&v6);
result = a1;
*(_DWORD *)(a1 + 32) = 0;
return result;
}
| z_formatter:
SUB RSP,0x68
MOV qword ptr [RSP + 0x58],RSI
MOV qword ptr [RSP + 0x60],RDX
MOV qword ptr [RSP + 0x50],RDI
MOV RDI,qword ptr [RSP + 0x50]
MOV qword ptr [RSP + 0x8],RDI
MOVUPS XMM0,xmmword ptr [RSP + 0x58]
MOVAPS xmmword ptr [RSP + 0x40],XMM0
MOV RSI,qword ptr [RSP + 0x40]
MOV RDX,qword ptr [RSP + 0x48]
CALL 0x0018e230
MOV RAX,qword ptr [RSP + 0x8]
LEA RCX,[0x2cd5c8]
ADD RCX,0x10
MOV qword ptr [RAX],RCX
ADD RAX,0x18
MOV qword ptr [RSP + 0x10],RAX
MOV dword ptr [RSP + 0x2c],0x0
LAB_0019f37a:
LEA RDI,[RSP + 0x30]
LEA RSI,[RSP + 0x2c]
CALL 0x0017d9b0
JMP 0x0019f38b
LAB_0019f38b:
LEA RDI,[RSP + 0x38]
LEA RSI,[RSP + 0x30]
CALL 0x00186b00
JMP 0x0019f39c
LAB_0019f39c:
MOV RDI,qword ptr [RSP + 0x10]
LEA RSI,[RSP + 0x38]
CALL 0x0019f410
LAB_0019f3ab:
JMP 0x0019f3ad
LAB_0019f3ad:
MOV RAX,qword ptr [RSP + 0x8]
MOV dword ptr [RAX + 0x20],0x0
ADD RSP,0x68
RET
|
/* spdlog::details::z_formatter<spdlog::details::scoped_padder>::z_formatter(spdlog::details::padding_info)
*/
void spdlog::details::z_formatter<spdlog::details::scoped_padder>::z_formatter
(flag_formatter *param_1,int8 param_2,int8 param_3)
{
int local_3c;
duration<long,std::ratio<1l,1l>> local_38 [8];
duration<long,std::ratio<1l,1000000000l>> local_30 [8];
int4 local_28;
int4 uStack_24;
int4 uStack_20;
int4 uStack_1c;
flag_formatter *local_18;
int8 local_10;
int8 uStack_8;
local_10._0_4_ = (int4)param_2;
local_10._4_4_ = (int4)((ulong)param_2 >> 0x20);
uStack_8._0_4_ = (int4)param_3;
uStack_8._4_4_ = (int4)((ulong)param_3 >> 0x20);
local_28 = (int4)local_10;
uStack_24 = local_10._4_4_;
uStack_20 = (int4)uStack_8;
uStack_1c = uStack_8._4_4_;
local_18 = param_1;
local_10 = param_2;
uStack_8 = param_3;
flag_formatter::flag_formatter(param_1,param_2,param_3);
*(int ***)param_1 = &PTR__z_formatter_002cd5d8;
local_3c = 0;
/* try { // try from 0019f37a to 0019f3aa has its CatchHandler @ 0019f3be */
std::chrono::duration<long,std::ratio<1l,1l>>::duration<int,void>(local_38,&local_3c);
std::chrono::duration<long,std::ratio<1l,1000000000l>>::duration<long,std::ratio<1l,1l>,void>
(local_30,(duration *)local_38);
std::chrono::
time_point<std::chrono::_V2::system_clock,std::chrono::duration<long,std::ratio<1l,1000000000l>>>
::time_point((time_point<std::chrono::_V2::system_clock,std::chrono::duration<long,std::ratio<1l,1000000000l>>>
*)(param_1 + 0x18),(duration *)local_30);
*(int4 *)(param_1 + 0x20) = 0;
return;
}
| |
45,252 | testing::TestInfo::~TestInfo() | seiftnesse[P]memoryallocator/build_O1/_deps/googletest-src/googletest/src/gtest.cc | TestInfo::~TestInfo() { delete factory_; } | O1 | cpp | testing::TestInfo::~TestInfo():
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
movq 0x88(%rdi), %rdi
testq %rdi, %rdi
je 0x24f55
movq (%rdi), %rax
callq *0x8(%rax)
leaq 0x90(%rbx), %r14
leaq 0xe0(%rbx), %rdi
callq 0x36e4e
leaq 0xc8(%rbx), %rdi
callq 0x36e7e
movq %r14, %rdi
callq 0x36eae
movq 0x50(%rbx), %rdi
leaq 0x60(%rbx), %rax
cmpq %rax, %rdi
je 0x24f94
movq (%rax), %rsi
incq %rsi
callq 0x94c0
movq 0x48(%rbx), %rsi
testq %rsi, %rsi
je 0x24fa6
leaq 0x48(%rbx), %rdi
callq 0x3ea74
movq $0x0, 0x48(%rbx)
movq 0x40(%rbx), %rsi
testq %rsi, %rsi
je 0x24fc0
leaq 0x40(%rbx), %rdi
callq 0x3ea74
movq $0x0, 0x40(%rbx)
movq 0x20(%rbx), %rdi
leaq 0x30(%rbx), %rax
cmpq %rax, %rdi
je 0x24fe0
movq (%rax), %rsi
incq %rsi
callq 0x94c0
movq (%rbx), %rdi
addq $0x10, %rbx
cmpq %rbx, %rdi
je 0x24ffe
movq (%rbx), %rsi
incq %rsi
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0x94c0
addq $0x8, %rsp
popq %rbx
popq %r14
retq
| _ZN7testing8TestInfoD2Ev:
push r14; Alternative name is 'testing::TestInfo::~TestInfo()'
push rbx
push rax
mov rbx, rdi
mov rdi, [rdi+88h]
test rdi, rdi
jz short loc_24F55
mov rax, [rdi]
call qword ptr [rax+8]
loc_24F55:
lea r14, [rbx+90h]
lea rdi, [rbx+0E0h]
call _ZNSt6vectorIN7testing12TestPropertyESaIS1_EED2Ev; std::vector<testing::TestProperty>::~vector()
lea rdi, [rbx+0C8h]
call _ZNSt6vectorIN7testing14TestPartResultESaIS1_EED2Ev; std::vector<testing::TestPartResult>::~vector()
mov rdi, r14; this
call _ZN7testing8internal5MutexD2Ev; testing::internal::Mutex::~Mutex()
mov rdi, [rbx+50h]; void *
lea rax, [rbx+60h]
cmp rdi, rax
jz short loc_24F94
mov rsi, [rax]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_24F94:
mov rsi, [rbx+48h]
test rsi, rsi
jz short loc_24FA6
lea rdi, [rbx+48h]
call _ZNKSt14default_deleteIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEclEPS6_; std::default_delete<std::string const>::operator()(std::string const*)
loc_24FA6:
mov qword ptr [rbx+48h], 0
mov rsi, [rbx+40h]
test rsi, rsi
jz short loc_24FC0
lea rdi, [rbx+40h]
call _ZNKSt14default_deleteIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEclEPS6_; std::default_delete<std::string const>::operator()(std::string const*)
loc_24FC0:
mov qword ptr [rbx+40h], 0
mov rdi, [rbx+20h]; void *
lea rax, [rbx+30h]
cmp rdi, rax
jz short loc_24FE0
mov rsi, [rax]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_24FE0:
mov rdi, [rbx]; void *
add rbx, 10h
cmp rdi, rbx
jz short loc_24FFE
mov rsi, [rbx]
inc rsi; unsigned __int64
add rsp, 8
pop rbx
pop r14
jmp __ZdlPvm; operator delete(void *,ulong)
loc_24FFE:
add rsp, 8
pop rbx
pop r14
retn
| void testing::TestInfo::~TestInfo(testing::TestInfo *this)
{
long long v2; // rdi
char *v3; // rdi
char *v4; // rdi
_QWORD *v5; // rdi
_QWORD *v6; // rbx
v2 = *((_QWORD *)this + 17);
if ( v2 )
(*(void ( **)(long long))(*(_QWORD *)v2 + 8LL))(v2);
std::vector<testing::TestProperty>::~vector((char *)this + 224);
std::vector<testing::TestPartResult>::~vector((char *)this + 200);
testing::internal::Mutex::~Mutex((testing::TestInfo *)((char *)this + 144));
v3 = (char *)*((_QWORD *)this + 10);
if ( v3 != (char *)this + 96 )
operator delete(v3, *((_QWORD *)this + 12) + 1LL);
if ( *((_QWORD *)this + 9) )
std::default_delete<std::string const>::operator()((char *)this + 72);
*((_QWORD *)this + 9) = 0LL;
if ( *((_QWORD *)this + 8) )
std::default_delete<std::string const>::operator()((char *)this + 64);
*((_QWORD *)this + 8) = 0LL;
v4 = (char *)*((_QWORD *)this + 4);
if ( v4 != (char *)this + 48 )
operator delete(v4, *((_QWORD *)this + 6) + 1LL);
v5 = *(_QWORD **)this;
v6 = (_QWORD *)((char *)this + 16);
if ( v5 != v6 )
operator delete(v5, *v6 + 1LL);
}
| ~TestInfo:
PUSH R14
PUSH RBX
PUSH RAX
MOV RBX,RDI
MOV RDI,qword ptr [RDI + 0x88]
TEST RDI,RDI
JZ 0x00124f55
MOV RAX,qword ptr [RDI]
CALL qword ptr [RAX + 0x8]
LAB_00124f55:
LEA R14,[RBX + 0x90]
LEA RDI,[RBX + 0xe0]
CALL 0x00136e4e
LEA RDI,[RBX + 0xc8]
CALL 0x00136e7e
MOV RDI,R14
CALL 0x00136eae
MOV RDI,qword ptr [RBX + 0x50]
LEA RAX,[RBX + 0x60]
CMP RDI,RAX
JZ 0x00124f94
MOV RSI,qword ptr [RAX]
INC RSI
CALL 0x001094c0
LAB_00124f94:
MOV RSI,qword ptr [RBX + 0x48]
TEST RSI,RSI
JZ 0x00124fa6
LEA RDI,[RBX + 0x48]
CALL 0x0013ea74
LAB_00124fa6:
MOV qword ptr [RBX + 0x48],0x0
MOV RSI,qword ptr [RBX + 0x40]
TEST RSI,RSI
JZ 0x00124fc0
LEA RDI,[RBX + 0x40]
CALL 0x0013ea74
LAB_00124fc0:
MOV qword ptr [RBX + 0x40],0x0
MOV RDI,qword ptr [RBX + 0x20]
LEA RAX,[RBX + 0x30]
CMP RDI,RAX
JZ 0x00124fe0
MOV RSI,qword ptr [RAX]
INC RSI
CALL 0x001094c0
LAB_00124fe0:
MOV RDI,qword ptr [RBX]
ADD RBX,0x10
CMP RDI,RBX
JZ 0x00124ffe
MOV RSI,qword ptr [RBX]
INC RSI
ADD RSP,0x8
POP RBX
POP R14
JMP 0x001094c0
LAB_00124ffe:
ADD RSP,0x8
POP RBX
POP R14
RET
|
/* testing::TestInfo::~TestInfo() */
void __thiscall testing::TestInfo::~TestInfo(TestInfo *this)
{
if (*(long **)(this + 0x88) != (long *)0x0) {
(**(code **)(**(long **)(this + 0x88) + 8))();
}
std::vector<testing::TestProperty,std::allocator<testing::TestProperty>>::~vector
((vector<testing::TestProperty,std::allocator<testing::TestProperty>> *)(this + 0xe0));
std::vector<testing::TestPartResult,std::allocator<testing::TestPartResult>>::~vector
((vector<testing::TestPartResult,std::allocator<testing::TestPartResult>> *)(this + 200)
);
internal::Mutex::~Mutex((Mutex *)(this + 0x90));
if (*(TestInfo **)(this + 0x50) != this + 0x60) {
operator_delete(*(TestInfo **)(this + 0x50),*(long *)(this + 0x60) + 1);
}
if (*(string **)(this + 0x48) != (string *)0x0) {
std::default_delete<std::__cxx11::string_const>::operator()
((default_delete<std::__cxx11::string_const> *)(this + 0x48),*(string **)(this + 0x48)
);
}
*(int8 *)(this + 0x48) = 0;
if (*(string **)(this + 0x40) != (string *)0x0) {
std::default_delete<std::__cxx11::string_const>::operator()
((default_delete<std::__cxx11::string_const> *)(this + 0x40),*(string **)(this + 0x40)
);
}
*(int8 *)(this + 0x40) = 0;
if (*(TestInfo **)(this + 0x20) != this + 0x30) {
operator_delete(*(TestInfo **)(this + 0x20),*(long *)(this + 0x30) + 1);
}
if (*(TestInfo **)this != this + 0x10) {
operator_delete(*(TestInfo **)this,*(long *)(this + 0x10) + 1);
return;
}
return;
}
| |
45,253 | OpenSubdiv::v3_6_0::Vtr::internal::QuadRefinement::populateVertexEdgesFromParentFaces() | NVIDIA-RTX[P]OSD-Lite/opensubdiv/vtr/quadRefinement.cpp | void
QuadRefinement::populateVertexEdgesFromParentFaces() {
for (int pFace = 0; pFace < _parent->getNumFaces(); ++pFace) {
int cVert = _faceChildVertIndex[pFace];
if (!IndexIsValid(cVert)) continue;
ConstIndexArray pFaceVerts = _parent->getFaceVertices(pFace),
pFaceChildEdges = getFaceChildEdges(pFace);
//
// Reserve enough vert-edges, populate and trim to the actual size:
//
_child->resizeVertexEdges(cVert, pFaceVerts.size());
IndexArray cVertEdges = _child->getVertexEdges(cVert);
LocalIndexArray cVertInEdge = _child->getVertexEdgeLocalIndices(cVert);
//
// Need to ensure correct ordering here when complete -- we want the "leading"
// edge of each child face first. The child vert is in the center of a new
// face so new "boundaries" will only occur when the vertex is incomplete.
//
int cVertEdgeCount = 0;
for (int j = 0; j < pFaceVerts.size(); ++j) {
int jLeadingEdge = j ? (j - 1) : (pFaceVerts.size() - 1);
if (IndexIsValid(pFaceChildEdges[jLeadingEdge])) {
cVertEdges[cVertEdgeCount] = pFaceChildEdges[jLeadingEdge];
cVertInEdge[cVertEdgeCount] = 0;
cVertEdgeCount++;
}
}
_child->trimVertexEdges(cVert, cVertEdgeCount);
}
} | O0 | cpp | OpenSubdiv::v3_6_0::Vtr::internal::QuadRefinement::populateVertexEdgesFromParentFaces():
pushq %rbp
movq %rsp, %rbp
subq $0xe0, %rsp
movq %rdi, -0x8(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0xb8(%rbp)
movl $0x0, -0xc(%rbp)
movq -0xb8(%rbp), %rax
movl -0xc(%rbp), %ecx
movl %ecx, -0xbc(%rbp)
movq 0x8(%rax), %rdi
callq 0xc3430
movl %eax, %ecx
movl -0xbc(%rbp), %eax
cmpl %ecx, %eax
jge 0xfbf49
movq -0xb8(%rbp), %rdi
addq $0xa8, %rdi
movslq -0xc(%rbp), %rsi
callq 0xc7140
movl (%rax), %eax
movl %eax, -0x10(%rbp)
movl -0x10(%rbp), %edi
callq 0xd63b0
testb $0x1, %al
jne 0xfbd37
jmp 0xfbf3b
movq -0xb8(%rbp), %rax
movq 0x8(%rax), %rdi
movl -0xc(%rbp), %esi
callq 0xce580
movq -0xb8(%rbp), %rdi
movl %edx, -0x28(%rbp)
movq %rax, -0x30(%rbp)
movl -0x28(%rbp), %eax
movl %eax, -0x18(%rbp)
movq -0x30(%rbp), %rax
movq %rax, -0x20(%rbp)
movl -0xc(%rbp), %esi
callq 0xc3dc0
movq %rax, %rcx
movq -0xb8(%rbp), %rax
movl %edx, -0x58(%rbp)
movq %rcx, -0x60(%rbp)
movl -0x58(%rbp), %ecx
movl %ecx, -0x48(%rbp)
movq -0x60(%rbp), %rcx
movq %rcx, -0x50(%rbp)
movups -0x50(%rbp), %xmm0
movaps %xmm0, -0x40(%rbp)
movq 0x10(%rax), %rax
movq %rax, -0xc8(%rbp)
movl -0x10(%rbp), %eax
movl %eax, -0xc0(%rbp)
leaq -0x20(%rbp), %rdi
callq 0xcc250
movq -0xc8(%rbp), %rdi
movl -0xc0(%rbp), %esi
movl %eax, %edx
callq 0xc3ee0
movq -0xb8(%rbp), %rax
movq 0x10(%rax), %rdi
movl -0x10(%rbp), %esi
callq 0xc3970
movq %rax, %rcx
movq -0xb8(%rbp), %rax
movl %edx, -0x78(%rbp)
movq %rcx, -0x80(%rbp)
movl -0x78(%rbp), %ecx
movl %ecx, -0x68(%rbp)
movq -0x80(%rbp), %rcx
movq %rcx, -0x70(%rbp)
movq 0x10(%rax), %rdi
movl -0x10(%rbp), %esi
callq 0xca110
movl %edx, -0x98(%rbp)
movq %rax, -0xa0(%rbp)
movq -0xa0(%rbp), %rax
movq %rax, -0x90(%rbp)
movl -0x98(%rbp), %eax
movl %eax, -0x88(%rbp)
movl $0x0, -0xa4(%rbp)
movl $0x0, -0xa8(%rbp)
movl -0xa8(%rbp), %eax
movl %eax, -0xcc(%rbp)
leaq -0x20(%rbp), %rdi
callq 0xcc250
movl %eax, %ecx
movl -0xcc(%rbp), %eax
cmpl %ecx, %eax
jge 0xfbf22
cmpl $0x0, -0xa8(%rbp)
je 0xfbe7e
movl -0xa8(%rbp), %eax
subl $0x1, %eax
movl %eax, -0xd0(%rbp)
jmp 0xfbe90
leaq -0x20(%rbp), %rdi
callq 0xcc250
subl $0x1, %eax
movl %eax, -0xd0(%rbp)
movl -0xd0(%rbp), %eax
movl %eax, -0xac(%rbp)
movl -0xac(%rbp), %esi
leaq -0x40(%rbp), %rdi
callq 0xcabf0
movl (%rax), %edi
callq 0xd63b0
testb $0x1, %al
jne 0xfbeb8
jmp 0xfbf0c
movl -0xac(%rbp), %esi
leaq -0x40(%rbp), %rdi
callq 0xcabf0
movl (%rax), %eax
movl %eax, -0xd4(%rbp)
movl -0xa4(%rbp), %esi
leaq -0x70(%rbp), %rdi
callq 0xc37f0
movl -0xd4(%rbp), %ecx
movl %ecx, (%rax)
movl -0xa4(%rbp), %esi
leaq -0x90(%rbp), %rdi
callq 0xd1fd0
movw $0x0, (%rax)
movl -0xa4(%rbp), %eax
addl $0x1, %eax
movl %eax, -0xa4(%rbp)
jmp 0xfbf0e
movl -0xa8(%rbp), %eax
addl $0x1, %eax
movl %eax, -0xa8(%rbp)
jmp 0xfbe3f
movq -0xb8(%rbp), %rax
movq 0x10(%rax), %rdi
movl -0x10(%rbp), %esi
movl -0xa4(%rbp), %edx
callq 0xcdf60
movl -0xc(%rbp), %eax
addl $0x1, %eax
movl %eax, -0xc(%rbp)
jmp 0xfbce1
addq $0xe0, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
| _ZN10OpenSubdiv6v3_6_03Vtr8internal14QuadRefinement34populateVertexEdgesFromParentFacesEv:
push rbp
mov rbp, rsp
sub rsp, 0E0h
mov [rbp+var_8], rdi
mov rax, [rbp+var_8]
mov [rbp+var_B8], rax
mov dword ptr [rbp+var_10+4], 0
loc_FBCE1:
mov rax, [rbp+var_B8]
mov ecx, dword ptr [rbp+var_10+4]
mov [rbp+var_BC], ecx
mov rdi, [rax+8]; this
call __ZNK10OpenSubdiv6v3_6_03Vtr8internal5Level11getNumFacesEv; OpenSubdiv::v3_6_0::Vtr::internal::Level::getNumFaces(void)
mov ecx, eax
mov eax, [rbp+var_BC]
cmp eax, ecx
jge loc_FBF49
mov rdi, [rbp+var_B8]
add rdi, 0A8h
movsxd rsi, dword ptr [rbp+var_10+4]; int
call __ZNSt6vectorIiSaIiEEixEm; std::vector<int>::operator[](ulong)
mov eax, [rax]
mov dword ptr [rbp+var_10], eax
mov edi, dword ptr [rbp+var_10]; this
call __ZN10OpenSubdiv6v3_6_03Vtr12IndexIsValidEi; OpenSubdiv::v3_6_0::Vtr::IndexIsValid(int)
test al, 1
jnz short loc_FBD37
jmp loc_FBF3B
loc_FBD37:
mov rax, [rbp+var_B8]
mov rdi, [rax+8]; this
mov esi, dword ptr [rbp+var_10+4]; int
call __ZNK10OpenSubdiv6v3_6_03Vtr8internal5Level15getFaceVerticesEi; OpenSubdiv::v3_6_0::Vtr::internal::Level::getFaceVertices(int)
mov rdi, [rbp+var_B8]; this
mov [rbp+var_28], edx
mov [rbp+var_30], rax
mov eax, [rbp+var_28]
mov [rbp+var_18], eax
mov rax, [rbp+var_30]
mov [rbp+var_20], rax
mov esi, dword ptr [rbp+var_10+4]; int
call __ZN10OpenSubdiv6v3_6_03Vtr8internal10Refinement17getFaceChildEdgesEi; OpenSubdiv::v3_6_0::Vtr::internal::Refinement::getFaceChildEdges(int)
mov rcx, rax
mov rax, [rbp+var_B8]
mov [rbp+var_58], edx
mov [rbp+var_60], rcx
mov ecx, [rbp+var_58]
mov dword ptr [rbp+var_50+8], ecx
mov rcx, [rbp+var_60]
mov qword ptr [rbp+var_50], rcx
movups xmm0, [rbp+var_50]
movaps [rbp+var_40], xmm0
mov rax, [rax+10h]
mov [rbp+var_C8], rax
mov eax, dword ptr [rbp+var_10]
mov [rbp+var_C0], eax
lea rdi, [rbp+var_20]
call __ZNK10OpenSubdiv6v3_6_03Vtr10ConstArrayIiE4sizeEv; OpenSubdiv::v3_6_0::Vtr::ConstArray<int>::size(void)
mov rdi, [rbp+var_C8]; this
mov esi, [rbp+var_C0]; int
mov edx, eax; int
call __ZN10OpenSubdiv6v3_6_03Vtr8internal5Level17resizeVertexEdgesEii; OpenSubdiv::v3_6_0::Vtr::internal::Level::resizeVertexEdges(int,int)
mov rax, [rbp+var_B8]
mov rdi, [rax+10h]; this
mov esi, dword ptr [rbp+var_10]; int
call __ZN10OpenSubdiv6v3_6_03Vtr8internal5Level14getVertexEdgesEi; OpenSubdiv::v3_6_0::Vtr::internal::Level::getVertexEdges(int)
mov rcx, rax
mov rax, [rbp+var_B8]
mov [rbp+var_78], edx
mov [rbp+var_80], rcx
mov ecx, [rbp+var_78]
mov [rbp+var_68], ecx
mov rcx, [rbp+var_80]
mov [rbp+var_70], rcx
mov rdi, [rax+10h]; this
mov esi, dword ptr [rbp+var_10]; int
call __ZN10OpenSubdiv6v3_6_03Vtr8internal5Level25getVertexEdgeLocalIndicesEi; OpenSubdiv::v3_6_0::Vtr::internal::Level::getVertexEdgeLocalIndices(int)
mov [rbp+var_98], edx
mov [rbp+var_A0], rax
mov rax, [rbp+var_A0]
mov [rbp+var_90], rax
mov eax, [rbp+var_98]
mov [rbp+var_88], eax
mov [rbp+var_A4], 0
mov [rbp+var_A8], 0
loc_FBE3F:
mov eax, [rbp+var_A8]
mov [rbp+var_CC], eax
lea rdi, [rbp+var_20]
call __ZNK10OpenSubdiv6v3_6_03Vtr10ConstArrayIiE4sizeEv; OpenSubdiv::v3_6_0::Vtr::ConstArray<int>::size(void)
mov ecx, eax
mov eax, [rbp+var_CC]
cmp eax, ecx
jge loc_FBF22
cmp [rbp+var_A8], 0
jz short loc_FBE7E
mov eax, [rbp+var_A8]
sub eax, 1
mov [rbp+var_D0], eax
jmp short loc_FBE90
loc_FBE7E:
lea rdi, [rbp+var_20]
call __ZNK10OpenSubdiv6v3_6_03Vtr10ConstArrayIiE4sizeEv; OpenSubdiv::v3_6_0::Vtr::ConstArray<int>::size(void)
sub eax, 1
mov [rbp+var_D0], eax
loc_FBE90:
mov eax, [rbp+var_D0]
mov [rbp+var_AC], eax
mov esi, [rbp+var_AC]; int
lea rdi, [rbp+var_40]
call __ZNK10OpenSubdiv6v3_6_03Vtr10ConstArrayIiEixEi; OpenSubdiv::v3_6_0::Vtr::ConstArray<int>::operator[](int)
mov edi, [rax]; this
call __ZN10OpenSubdiv6v3_6_03Vtr12IndexIsValidEi; OpenSubdiv::v3_6_0::Vtr::IndexIsValid(int)
test al, 1
jnz short loc_FBEB8
jmp short loc_FBF0C
loc_FBEB8:
mov esi, [rbp+var_AC]
lea rdi, [rbp+var_40]
call __ZNK10OpenSubdiv6v3_6_03Vtr10ConstArrayIiEixEi; OpenSubdiv::v3_6_0::Vtr::ConstArray<int>::operator[](int)
mov eax, [rax]
mov [rbp+var_D4], eax
mov esi, [rbp+var_A4]
lea rdi, [rbp+var_70]
call __ZN10OpenSubdiv6v3_6_03Vtr5ArrayIiEixEi; OpenSubdiv::v3_6_0::Vtr::Array<int>::operator[](int)
mov ecx, [rbp+var_D4]
mov [rax], ecx
mov esi, [rbp+var_A4]
lea rdi, [rbp+var_90]
call __ZN10OpenSubdiv6v3_6_03Vtr5ArrayItEixEi; OpenSubdiv::v3_6_0::Vtr::Array<ushort>::operator[](int)
mov word ptr [rax], 0
mov eax, [rbp+var_A4]
add eax, 1
mov [rbp+var_A4], eax
loc_FBF0C:
jmp short $+2
loc_FBF0E:
mov eax, [rbp+var_A8]
add eax, 1
mov [rbp+var_A8], eax
jmp loc_FBE3F
loc_FBF22:
mov rax, [rbp+var_B8]
mov rdi, [rax+10h]; this
mov esi, dword ptr [rbp+var_10]; int
mov edx, [rbp+var_A4]; int
call __ZN10OpenSubdiv6v3_6_03Vtr8internal5Level15trimVertexEdgesEii; OpenSubdiv::v3_6_0::Vtr::internal::Level::trimVertexEdges(int,int)
loc_FBF3B:
mov eax, dword ptr [rbp+var_10+4]
add eax, 1
mov dword ptr [rbp+var_10+4], eax
jmp loc_FBCE1
loc_FBF49:
add rsp, 0E0h
pop rbp
retn
| long long OpenSubdiv::v3_6_0::Vtr::internal::QuadRefinement::populateVertexEdgesFromParentFaces(
OpenSubdiv::v3_6_0::Vtr::internal::Level **this)
{
int NumFaces; // ecx
long long result; // rax
int v3; // esi
long long FaceVertices; // rax
int v5; // edx
long long FaceChildEdges; // rax
int v7; // edx
int v8; // eax
long long VertexEdges; // rax
int v10; // edx
int v11; // edx
unsigned int *v12; // rax
int v13; // [rsp+Ch] [rbp-D4h]
unsigned int v14; // [rsp+10h] [rbp-D0h]
OpenSubdiv::v3_6_0::Vtr::internal::Level *v15; // [rsp+18h] [rbp-C8h]
unsigned int v16; // [rsp+20h] [rbp-C0h]
int v17; // [rsp+24h] [rbp-BCh]
int j; // [rsp+38h] [rbp-A8h]
unsigned int v19; // [rsp+3Ch] [rbp-A4h]
long long VertexEdgeLocalIndices; // [rsp+50h] [rbp-90h] BYREF
int v21; // [rsp+58h] [rbp-88h]
long long v22; // [rsp+60h] [rbp-80h]
int v23; // [rsp+68h] [rbp-78h]
long long v24; // [rsp+70h] [rbp-70h] BYREF
int v25; // [rsp+78h] [rbp-68h]
long long v26; // [rsp+80h] [rbp-60h]
int v27; // [rsp+88h] [rbp-58h]
__int128 v28; // [rsp+90h] [rbp-50h]
__int128 v29; // [rsp+A0h] [rbp-40h] BYREF
long long v30; // [rsp+B0h] [rbp-30h]
int v31; // [rsp+B8h] [rbp-28h]
long long v32; // [rsp+C0h] [rbp-20h] BYREF
int v33; // [rsp+C8h] [rbp-18h]
unsigned int v34; // [rsp+D0h] [rbp-10h]
int i; // [rsp+D4h] [rbp-Ch]
OpenSubdiv::v3_6_0::Vtr::internal::Level **v36; // [rsp+D8h] [rbp-8h]
v36 = this;
for ( i = 0; ; ++i )
{
v17 = i;
NumFaces = OpenSubdiv::v3_6_0::Vtr::internal::Level::getNumFaces(this[1]);
result = (unsigned int)v17;
if ( v17 >= NumFaces )
break;
v3 = i;
v34 = *(_DWORD *)std::vector<int>::operator[](this + 21, i);
if ( (OpenSubdiv::v3_6_0::Vtr::IndexIsValid((OpenSubdiv::v3_6_0::Vtr *)v34, v3) & 1) != 0 )
{
FaceVertices = OpenSubdiv::v3_6_0::Vtr::internal::Level::getFaceVertices(this[1], i);
v31 = v5;
v30 = FaceVertices;
v33 = v5;
v32 = FaceVertices;
FaceChildEdges = OpenSubdiv::v3_6_0::Vtr::internal::Refinement::getFaceChildEdges(
(OpenSubdiv::v3_6_0::Vtr::internal::Refinement *)this,
i);
v27 = v7;
v26 = FaceChildEdges;
DWORD2(v28) = v7;
*(_QWORD *)&v28 = FaceChildEdges;
v29 = v28;
v15 = this[2];
v16 = v34;
v8 = OpenSubdiv::v3_6_0::Vtr::ConstArray<int>::size(&v32);
OpenSubdiv::v3_6_0::Vtr::internal::Level::resizeVertexEdges(v15, v16, v8);
VertexEdges = OpenSubdiv::v3_6_0::Vtr::internal::Level::getVertexEdges(this[2], v34);
v23 = v10;
v22 = VertexEdges;
v25 = v10;
v24 = VertexEdges;
VertexEdgeLocalIndices = OpenSubdiv::v3_6_0::Vtr::internal::Level::getVertexEdgeLocalIndices(this[2], v34);
v21 = v11;
v19 = 0;
for ( j = 0; j < (int)OpenSubdiv::v3_6_0::Vtr::ConstArray<int>::size(&v32); ++j )
{
if ( j )
v14 = j - 1;
else
v14 = OpenSubdiv::v3_6_0::Vtr::ConstArray<int>::size(&v32) - 1;
v12 = (unsigned int *)OpenSubdiv::v3_6_0::Vtr::ConstArray<int>::operator[](&v29, v14);
if ( (OpenSubdiv::v3_6_0::Vtr::IndexIsValid((OpenSubdiv::v3_6_0::Vtr *)*v12, v14) & 1) != 0 )
{
v13 = *(_DWORD *)OpenSubdiv::v3_6_0::Vtr::ConstArray<int>::operator[](&v29, v14);
*(_DWORD *)OpenSubdiv::v3_6_0::Vtr::Array<int>::operator[](&v24, v19) = v13;
*(_WORD *)OpenSubdiv::v3_6_0::Vtr::Array<unsigned short>::operator[](&VertexEdgeLocalIndices, v19++) = 0;
}
}
OpenSubdiv::v3_6_0::Vtr::internal::Level::trimVertexEdges(this[2], v34, v19);
}
}
return result;
}
| populateVertexEdgesFromParentFaces:
PUSH RBP
MOV RBP,RSP
SUB RSP,0xe0
MOV qword ptr [RBP + -0x8],RDI
MOV RAX,qword ptr [RBP + -0x8]
MOV qword ptr [RBP + -0xb8],RAX
MOV dword ptr [RBP + -0xc],0x0
LAB_001fbce1:
MOV RAX,qword ptr [RBP + -0xb8]
MOV ECX,dword ptr [RBP + -0xc]
MOV dword ptr [RBP + -0xbc],ECX
MOV RDI,qword ptr [RAX + 0x8]
CALL 0x001c3430
MOV ECX,EAX
MOV EAX,dword ptr [RBP + -0xbc]
CMP EAX,ECX
JGE 0x001fbf49
MOV RDI,qword ptr [RBP + -0xb8]
ADD RDI,0xa8
MOVSXD RSI,dword ptr [RBP + -0xc]
CALL 0x001c7140
MOV EAX,dword ptr [RAX]
MOV dword ptr [RBP + -0x10],EAX
MOV EDI,dword ptr [RBP + -0x10]
CALL 0x001d63b0
TEST AL,0x1
JNZ 0x001fbd37
JMP 0x001fbf3b
LAB_001fbd37:
MOV RAX,qword ptr [RBP + -0xb8]
MOV RDI,qword ptr [RAX + 0x8]
MOV ESI,dword ptr [RBP + -0xc]
CALL 0x001ce580
MOV RDI,qword ptr [RBP + -0xb8]
MOV dword ptr [RBP + -0x28],EDX
MOV qword ptr [RBP + -0x30],RAX
MOV EAX,dword ptr [RBP + -0x28]
MOV dword ptr [RBP + -0x18],EAX
MOV RAX,qword ptr [RBP + -0x30]
MOV qword ptr [RBP + -0x20],RAX
MOV ESI,dword ptr [RBP + -0xc]
CALL 0x001c3dc0
MOV RCX,RAX
MOV RAX,qword ptr [RBP + -0xb8]
MOV dword ptr [RBP + -0x58],EDX
MOV qword ptr [RBP + -0x60],RCX
MOV ECX,dword ptr [RBP + -0x58]
MOV dword ptr [RBP + -0x48],ECX
MOV RCX,qword ptr [RBP + -0x60]
MOV qword ptr [RBP + -0x50],RCX
MOVUPS XMM0,xmmword ptr [RBP + -0x50]
MOVAPS xmmword ptr [RBP + -0x40],XMM0
MOV RAX,qword ptr [RAX + 0x10]
MOV qword ptr [RBP + -0xc8],RAX
MOV EAX,dword ptr [RBP + -0x10]
MOV dword ptr [RBP + -0xc0],EAX
LEA RDI,[RBP + -0x20]
CALL 0x001cc250
MOV RDI,qword ptr [RBP + -0xc8]
MOV ESI,dword ptr [RBP + -0xc0]
MOV EDX,EAX
CALL 0x001c3ee0
MOV RAX,qword ptr [RBP + -0xb8]
MOV RDI,qword ptr [RAX + 0x10]
MOV ESI,dword ptr [RBP + -0x10]
CALL 0x001c3970
MOV RCX,RAX
MOV RAX,qword ptr [RBP + -0xb8]
MOV dword ptr [RBP + -0x78],EDX
MOV qword ptr [RBP + -0x80],RCX
MOV ECX,dword ptr [RBP + -0x78]
MOV dword ptr [RBP + -0x68],ECX
MOV RCX,qword ptr [RBP + -0x80]
MOV qword ptr [RBP + -0x70],RCX
MOV RDI,qword ptr [RAX + 0x10]
MOV ESI,dword ptr [RBP + -0x10]
CALL 0x001ca110
MOV dword ptr [RBP + -0x98],EDX
MOV qword ptr [RBP + -0xa0],RAX
MOV RAX,qword ptr [RBP + -0xa0]
MOV qword ptr [RBP + -0x90],RAX
MOV EAX,dword ptr [RBP + -0x98]
MOV dword ptr [RBP + -0x88],EAX
MOV dword ptr [RBP + -0xa4],0x0
MOV dword ptr [RBP + -0xa8],0x0
LAB_001fbe3f:
MOV EAX,dword ptr [RBP + -0xa8]
MOV dword ptr [RBP + -0xcc],EAX
LEA RDI,[RBP + -0x20]
CALL 0x001cc250
MOV ECX,EAX
MOV EAX,dword ptr [RBP + -0xcc]
CMP EAX,ECX
JGE 0x001fbf22
CMP dword ptr [RBP + -0xa8],0x0
JZ 0x001fbe7e
MOV EAX,dword ptr [RBP + -0xa8]
SUB EAX,0x1
MOV dword ptr [RBP + -0xd0],EAX
JMP 0x001fbe90
LAB_001fbe7e:
LEA RDI,[RBP + -0x20]
CALL 0x001cc250
SUB EAX,0x1
MOV dword ptr [RBP + -0xd0],EAX
LAB_001fbe90:
MOV EAX,dword ptr [RBP + -0xd0]
MOV dword ptr [RBP + -0xac],EAX
MOV ESI,dword ptr [RBP + -0xac]
LEA RDI,[RBP + -0x40]
CALL 0x001cabf0
MOV EDI,dword ptr [RAX]
CALL 0x001d63b0
TEST AL,0x1
JNZ 0x001fbeb8
JMP 0x001fbf0c
LAB_001fbeb8:
MOV ESI,dword ptr [RBP + -0xac]
LEA RDI,[RBP + -0x40]
CALL 0x001cabf0
MOV EAX,dword ptr [RAX]
MOV dword ptr [RBP + -0xd4],EAX
MOV ESI,dword ptr [RBP + -0xa4]
LEA RDI,[RBP + -0x70]
CALL 0x001c37f0
MOV ECX,dword ptr [RBP + -0xd4]
MOV dword ptr [RAX],ECX
MOV ESI,dword ptr [RBP + -0xa4]
LEA RDI,[RBP + -0x90]
CALL 0x001d1fd0
MOV word ptr [RAX],0x0
MOV EAX,dword ptr [RBP + -0xa4]
ADD EAX,0x1
MOV dword ptr [RBP + -0xa4],EAX
LAB_001fbf0c:
JMP 0x001fbf0e
LAB_001fbf0e:
MOV EAX,dword ptr [RBP + -0xa8]
ADD EAX,0x1
MOV dword ptr [RBP + -0xa8],EAX
JMP 0x001fbe3f
LAB_001fbf22:
MOV RAX,qword ptr [RBP + -0xb8]
MOV RDI,qword ptr [RAX + 0x10]
MOV ESI,dword ptr [RBP + -0x10]
MOV EDX,dword ptr [RBP + -0xa4]
CALL 0x001cdf60
LAB_001fbf3b:
MOV EAX,dword ptr [RBP + -0xc]
ADD EAX,0x1
MOV dword ptr [RBP + -0xc],EAX
JMP 0x001fbce1
LAB_001fbf49:
ADD RSP,0xe0
POP RBP
RET
|
/* OpenSubdiv::v3_6_0::Vtr::internal::QuadRefinement::populateVertexEdgesFromParentFaces() */
void __thiscall
OpenSubdiv::v3_6_0::Vtr::internal::QuadRefinement::populateVertexEdgesFromParentFaces
(QuadRefinement *this)
{
int4 uVar1;
Level *this_00;
int iVar2;
int iVar3;
int *piVar4;
ulong uVar5;
int4 *puVar6;
int2 *puVar7;
int1 auVar8 [12];
int local_d8;
int local_b0;
int local_ac;
int1 local_98 [12];
int1 local_88 [12];
int1 local_78 [12];
int1 local_68 [12];
int1 local_58 [12];
int4 uStack_4c;
int8 local_48;
int8 uStack_40;
int1 local_38 [12];
int1 local_28 [12];
int local_18;
int local_14;
QuadRefinement *local_10;
local_14 = 0;
local_10 = this;
while( true ) {
iVar3 = local_14;
iVar2 = Level::getNumFaces(*(Level **)(this + 8));
if (iVar2 <= iVar3) break;
piVar4 = (int *)std::vector<int,std::allocator<int>>::operator[]
((vector<int,std::allocator<int>> *)(this + 0xa8),(long)local_14);
local_18 = *piVar4;
uVar5 = IndexIsValid(local_18);
if ((uVar5 & 1) != 0) {
auVar8 = Level::getFaceVertices(*(Level **)(this + 8),local_14);
local_38 = auVar8;
local_28 = auVar8;
auVar8 = Refinement::getFaceChildEdges((Refinement *)this,local_14);
iVar3 = local_18;
local_48 = auVar8._0_8_;
uStack_40 = CONCAT44(uStack_4c,auVar8._8_4_);
this_00 = *(Level **)(this + 0x10);
local_68 = auVar8;
local_58 = auVar8;
iVar2 = ConstArray<int>::size((ConstArray<int> *)local_28);
Level::resizeVertexEdges(this_00,iVar3,iVar2);
auVar8 = Level::getVertexEdges(*(Level **)(this + 0x10),local_18);
local_88 = auVar8;
local_78 = auVar8;
auVar8 = Level::getVertexEdgeLocalIndices(*(Level **)(this + 0x10),local_18);
local_ac = 0;
local_b0 = 0;
while( true ) {
local_98 = auVar8;
iVar3 = ConstArray<int>::size((ConstArray<int> *)local_28);
if (iVar3 <= local_b0) break;
local_d8 = local_b0;
if (local_b0 == 0) {
local_d8 = ConstArray<int>::size((ConstArray<int> *)local_28);
}
local_d8 = local_d8 + -1;
piVar4 = (int *)ConstArray<int>::operator[]((ConstArray<int> *)&local_48,local_d8);
uVar5 = IndexIsValid(*piVar4);
auVar8 = local_98;
if ((uVar5 & 1) != 0) {
puVar6 = (int4 *)ConstArray<int>::operator[]((ConstArray<int> *)&local_48,local_d8);
uVar1 = *puVar6;
puVar6 = (int4 *)Array<int>::operator[]((Array<int> *)local_78,local_ac);
*puVar6 = uVar1;
puVar7 = (int2 *)
Array<unsigned_short>::operator[]((Array<unsigned_short> *)local_98,local_ac);
*puVar7 = 0;
local_ac = local_ac + 1;
auVar8 = local_98;
}
local_b0 = local_b0 + 1;
}
Level::trimVertexEdges(*(Level **)(this + 0x10),local_18,local_ac);
}
local_14 = local_14 + 1;
}
return;
}
| |
45,254 | OpenSubdiv::v3_6_0::Vtr::internal::QuadRefinement::populateVertexEdgesFromParentFaces() | NVIDIA-RTX[P]OSD-Lite/opensubdiv/vtr/quadRefinement.cpp | void
QuadRefinement::populateVertexEdgesFromParentFaces() {
for (int pFace = 0; pFace < _parent->getNumFaces(); ++pFace) {
int cVert = _faceChildVertIndex[pFace];
if (!IndexIsValid(cVert)) continue;
ConstIndexArray pFaceVerts = _parent->getFaceVertices(pFace),
pFaceChildEdges = getFaceChildEdges(pFace);
//
// Reserve enough vert-edges, populate and trim to the actual size:
//
_child->resizeVertexEdges(cVert, pFaceVerts.size());
IndexArray cVertEdges = _child->getVertexEdges(cVert);
LocalIndexArray cVertInEdge = _child->getVertexEdgeLocalIndices(cVert);
//
// Need to ensure correct ordering here when complete -- we want the "leading"
// edge of each child face first. The child vert is in the center of a new
// face so new "boundaries" will only occur when the vertex is incomplete.
//
int cVertEdgeCount = 0;
for (int j = 0; j < pFaceVerts.size(); ++j) {
int jLeadingEdge = j ? (j - 1) : (pFaceVerts.size() - 1);
if (IndexIsValid(pFaceChildEdges[jLeadingEdge])) {
cVertEdges[cVertEdgeCount] = pFaceChildEdges[jLeadingEdge];
cVertInEdge[cVertEdgeCount] = 0;
cVertEdgeCount++;
}
}
_child->trimVertexEdges(cVert, cVertEdgeCount);
}
} | O1 | cpp | OpenSubdiv::v3_6_0::Vtr::internal::QuadRefinement::populateVertexEdgesFromParentFaces():
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
movq 0x8(%rdi), %rax
cmpl $0x0, (%rax)
jle 0x47eea
movq 0xa8(%rdi), %rcx
movq 0x10(%rdi), %rdx
movq 0x68(%rdi), %rsi
movq 0x90(%rdi), %rdi
addq $-0x4, %rdi
xorl %r8d, %r8d
movslq (%rcx,%r8,4), %r9
cmpq $-0x1, %r9
je 0x47edb
movl %r9d, %r14d
movq 0x18(%rax), %r10
movl (%r10,%r8,8), %r11d
movslq 0x4(%rsi,%r8,8), %r12
movq 0x150(%rdx), %r10
movl %r11d, (%r10,%r9,8)
addq %r9, %r9
xorl %ebx, %ebx
movl $0x0, %ebp
testl %r14d, %r14d
je 0x47e68
movl -0x4(%r10,%r9,4), %ebp
addl -0x8(%r10,%r9,4), %ebp
movl %ebp, 0x4(%r10,%r9,4)
movl 0x14(%rdx), %ebp
cmpl %r11d, %ebp
cmovlel %r11d, %ebp
movl %ebp, 0x14(%rdx)
testl %r11d, %r11d
jle 0x47ed7
movl %r9d, %ebx
orl $0x1, %ebx
movslq %ebx, %rbx
movslq (%r10,%rbx,4), %r14
leaq (,%r14,4), %r15
addq 0x168(%rdx), %r15
addq %r14, %r14
addq 0x180(%rdx), %r14
leaq (%rdi,%r12,4), %r12
xorl %ebp, %ebp
xorl %ebx, %ebx
testl %ebp, %ebp
movl %ebp, %r13d
cmovel %r11d, %r13d
movl (%r12,%r13,4), %r13d
cmpl $-0x1, %r13d
je 0x47ed0
movslq %ebx, %rbx
movl %r13d, (%r15,%rbx,4)
movw $0x0, (%r14,%rbx,2)
incl %ebx
incl %ebp
cmpl %ebp, %r11d
jne 0x47ead
movl %ebx, (%r10,%r9,4)
incq %r8
movslq (%rax), %r9
cmpq %r9, %r8
jl 0x47e26
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
nop
| _ZN10OpenSubdiv6v3_6_03Vtr8internal14QuadRefinement34populateVertexEdgesFromParentFacesEv:
push rbp
push r15
push r14
push r13
push r12
push rbx
mov rax, [rdi+8]
cmp dword ptr [rax], 0
jle loc_47EEA
mov rcx, [rdi+0A8h]
mov rdx, [rdi+10h]
mov rsi, [rdi+68h]
mov rdi, [rdi+90h]
add rdi, 0FFFFFFFFFFFFFFFCh
xor r8d, r8d
loc_47E26:
movsxd r9, dword ptr [rcx+r8*4]
cmp r9, 0FFFFFFFFFFFFFFFFh
jz loc_47EDB
mov r14d, r9d
mov r10, [rax+18h]
mov r11d, [r10+r8*8]
movsxd r12, dword ptr [rsi+r8*8+4]
mov r10, [rdx+150h]
mov [r10+r9*8], r11d
add r9, r9
xor ebx, ebx
mov ebp, 0
test r14d, r14d
jz short loc_47E68
mov ebp, [r10+r9*4-4]
add ebp, [r10+r9*4-8]
loc_47E68:
mov [r10+r9*4+4], ebp
mov ebp, [rdx+14h]
cmp ebp, r11d
cmovle ebp, r11d
mov [rdx+14h], ebp
test r11d, r11d
jle short loc_47ED7
mov ebx, r9d
or ebx, 1
movsxd rbx, ebx
movsxd r14, dword ptr [r10+rbx*4]
lea r15, ds:0[r14*4]
add r15, [rdx+168h]
add r14, r14
add r14, [rdx+180h]
lea r12, [rdi+r12*4]
xor ebp, ebp
xor ebx, ebx
loc_47EAD:
test ebp, ebp
mov r13d, ebp
cmovz r13d, r11d
mov r13d, [r12+r13*4]
cmp r13d, 0FFFFFFFFh
jz short loc_47ED0
movsxd rbx, ebx
mov [r15+rbx*4], r13d
mov word ptr [r14+rbx*2], 0
inc ebx
loc_47ED0:
inc ebp
cmp r11d, ebp
jnz short loc_47EAD
loc_47ED7:
mov [r10+r9*4], ebx
loc_47EDB:
inc r8
movsxd r9, dword ptr [rax]
cmp r8, r9
jl loc_47E26
loc_47EEA:
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
| int * OpenSubdiv::v3_6_0::Vtr::internal::QuadRefinement::populateVertexEdgesFromParentFaces(
OpenSubdiv::v3_6_0::Vtr::internal::QuadRefinement *this)
{
int *result; // rax
long long v2; // rcx
long long v3; // rdx
long long v4; // rsi
long long v5; // rdi
long long v6; // r8
long long v7; // r9
int v8; // r14d
int v9; // r11d
long long v10; // r12
long long v11; // r10
long long v12; // r9
int v13; // ebx
int v14; // ebp
int v15; // ebp
long long v16; // r14
long long v17; // r15
long long v18; // r14
long long v19; // r12
unsigned int v20; // ebp
long long v21; // r13
int v22; // r13d
result = (int *)*((_QWORD *)this + 1);
if ( *result > 0 )
{
v2 = *((_QWORD *)this + 21);
v3 = *((_QWORD *)this + 2);
v4 = *((_QWORD *)this + 13);
v5 = *((_QWORD *)this + 18) - 4LL;
v6 = 0LL;
do
{
v7 = *(int *)(v2 + 4 * v6);
if ( v7 != -1 )
{
v8 = *(_DWORD *)(v2 + 4 * v6);
v9 = *(_DWORD *)(*((_QWORD *)result + 3) + 8 * v6);
v10 = *(int *)(v4 + 8 * v6 + 4);
v11 = *(_QWORD *)(v3 + 336);
*(_DWORD *)(v11 + 8 * v7) = v9;
v12 = 2 * v7;
v13 = 0;
v14 = 0;
if ( v8 )
v14 = *(_DWORD *)(v11 + 4 * v12 - 8) + *(_DWORD *)(v11 + 4 * v12 - 4);
*(_DWORD *)(v11 + 4 * v12 + 4) = v14;
v15 = *(_DWORD *)(v3 + 20);
if ( v15 <= v9 )
v15 = v9;
*(_DWORD *)(v3 + 20) = v15;
if ( v9 > 0 )
{
v16 = *(int *)(v11 + 4LL * (int)(v12 | 1));
v17 = *(_QWORD *)(v3 + 360) + 4 * v16;
v18 = *(_QWORD *)(v3 + 384) + 2 * v16;
v19 = v5 + 4 * v10;
v20 = 0;
v13 = 0;
do
{
v21 = v20;
if ( !v20 )
v21 = (unsigned int)v9;
v22 = *(_DWORD *)(v19 + 4 * v21);
if ( v22 != -1 )
{
*(_DWORD *)(v17 + 4LL * v13) = v22;
*(_WORD *)(v18 + 2LL * v13++) = 0;
}
++v20;
}
while ( v9 != v20 );
}
*(_DWORD *)(v11 + 4 * v12) = v13;
}
++v6;
}
while ( v6 < *result );
}
return result;
}
| populateVertexEdgesFromParentFaces:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
MOV RAX,qword ptr [RDI + 0x8]
CMP dword ptr [RAX],0x0
JLE 0x00147eea
MOV RCX,qword ptr [RDI + 0xa8]
MOV RDX,qword ptr [RDI + 0x10]
MOV RSI,qword ptr [RDI + 0x68]
MOV RDI,qword ptr [RDI + 0x90]
ADD RDI,-0x4
XOR R8D,R8D
LAB_00147e26:
MOVSXD R9,dword ptr [RCX + R8*0x4]
CMP R9,-0x1
JZ 0x00147edb
MOV R14D,R9D
MOV R10,qword ptr [RAX + 0x18]
MOV R11D,dword ptr [R10 + R8*0x8]
MOVSXD R12,dword ptr [RSI + R8*0x8 + 0x4]
MOV R10,qword ptr [RDX + 0x150]
MOV dword ptr [R10 + R9*0x8],R11D
ADD R9,R9
XOR EBX,EBX
MOV EBP,0x0
TEST R14D,R14D
JZ 0x00147e68
MOV EBP,dword ptr [R10 + R9*0x4 + -0x4]
ADD EBP,dword ptr [R10 + R9*0x4 + -0x8]
LAB_00147e68:
MOV dword ptr [R10 + R9*0x4 + 0x4],EBP
MOV EBP,dword ptr [RDX + 0x14]
CMP EBP,R11D
CMOVLE EBP,R11D
MOV dword ptr [RDX + 0x14],EBP
TEST R11D,R11D
JLE 0x00147ed7
MOV EBX,R9D
OR EBX,0x1
MOVSXD RBX,EBX
MOVSXD R14,dword ptr [R10 + RBX*0x4]
LEA R15,[R14*0x4]
ADD R15,qword ptr [RDX + 0x168]
ADD R14,R14
ADD R14,qword ptr [RDX + 0x180]
LEA R12,[RDI + R12*0x4]
XOR EBP,EBP
XOR EBX,EBX
LAB_00147ead:
TEST EBP,EBP
MOV R13D,EBP
CMOVZ R13D,R11D
MOV R13D,dword ptr [R12 + R13*0x4]
CMP R13D,-0x1
JZ 0x00147ed0
MOVSXD RBX,EBX
MOV dword ptr [R15 + RBX*0x4],R13D
MOV word ptr [R14 + RBX*0x2],0x0
INC EBX
LAB_00147ed0:
INC EBP
CMP R11D,EBP
JNZ 0x00147ead
LAB_00147ed7:
MOV dword ptr [R10 + R9*0x4],EBX
LAB_00147edb:
INC R8
MOVSXD R9,dword ptr [RAX]
CMP R8,R9
JL 0x00147e26
LAB_00147eea:
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
|
/* OpenSubdiv::v3_6_0::Vtr::internal::QuadRefinement::populateVertexEdgesFromParentFaces() */
void __thiscall
OpenSubdiv::v3_6_0::Vtr::internal::QuadRefinement::populateVertexEdgesFromParentFaces
(QuadRefinement *this)
{
int iVar1;
uint uVar2;
int iVar3;
int *piVar4;
long lVar5;
long lVar6;
long lVar7;
long lVar8;
long lVar9;
long lVar10;
long lVar11;
uint uVar12;
int iVar13;
int iVar14;
uint uVar15;
long lVar16;
long lVar17;
long lVar18;
piVar4 = *(int **)(this + 8);
if (0 < *piVar4) {
lVar5 = *(long *)(this + 0xa8);
lVar6 = *(long *)(this + 0x10);
lVar7 = *(long *)(this + 0x68);
lVar8 = *(long *)(this + 0x90);
lVar16 = 0;
do {
iVar1 = *(int *)(lVar5 + lVar16 * 4);
lVar17 = (long)iVar1;
if (lVar17 != -1) {
uVar2 = *(uint *)(*(long *)(piVar4 + 6) + lVar16 * 8);
iVar3 = *(int *)(lVar7 + 4 + lVar16 * 8);
lVar9 = *(long *)(lVar6 + 0x150);
*(uint *)(lVar9 + lVar17 * 8) = uVar2;
iVar13 = 0;
iVar14 = 0;
if (iVar1 != 0) {
iVar14 = *(int *)(lVar9 + -4 + lVar17 * 8) + *(int *)(lVar9 + -8 + lVar17 * 8);
}
*(int *)(lVar9 + 4 + lVar17 * 8) = iVar14;
uVar15 = *(uint *)(lVar6 + 0x14);
if ((int)*(uint *)(lVar6 + 0x14) <= (int)uVar2) {
uVar15 = uVar2;
}
*(uint *)(lVar6 + 0x14) = uVar15;
if (0 < (int)uVar2) {
lVar18 = (long)*(int *)(lVar9 + (long)(int)(iVar1 * 2 | 1) * 4);
lVar10 = *(long *)(lVar6 + 0x168);
lVar11 = *(long *)(lVar6 + 0x180);
uVar15 = 0;
iVar13 = 0;
do {
uVar12 = uVar15;
if (uVar15 == 0) {
uVar12 = uVar2;
}
iVar1 = *(int *)(lVar8 + -4 + (long)iVar3 * 4 + (ulong)uVar12 * 4);
if (iVar1 != -1) {
*(int *)(lVar18 * 4 + lVar10 + (long)iVar13 * 4) = iVar1;
*(int2 *)(lVar18 * 2 + lVar11 + (long)iVar13 * 2) = 0;
iVar13 = iVar13 + 1;
}
uVar15 = uVar15 + 1;
} while (uVar2 != uVar15);
}
*(int *)(lVar9 + lVar17 * 8) = iVar13;
}
lVar16 = lVar16 + 1;
} while (lVar16 < *piVar4);
}
return;
}
| |
45,255 | OpenSubdiv::v3_6_0::Vtr::internal::QuadRefinement::populateVertexEdgesFromParentFaces() | NVIDIA-RTX[P]OSD-Lite/opensubdiv/vtr/quadRefinement.cpp | void
QuadRefinement::populateVertexEdgesFromParentFaces() {
for (int pFace = 0; pFace < _parent->getNumFaces(); ++pFace) {
int cVert = _faceChildVertIndex[pFace];
if (!IndexIsValid(cVert)) continue;
ConstIndexArray pFaceVerts = _parent->getFaceVertices(pFace),
pFaceChildEdges = getFaceChildEdges(pFace);
//
// Reserve enough vert-edges, populate and trim to the actual size:
//
_child->resizeVertexEdges(cVert, pFaceVerts.size());
IndexArray cVertEdges = _child->getVertexEdges(cVert);
LocalIndexArray cVertInEdge = _child->getVertexEdgeLocalIndices(cVert);
//
// Need to ensure correct ordering here when complete -- we want the "leading"
// edge of each child face first. The child vert is in the center of a new
// face so new "boundaries" will only occur when the vertex is incomplete.
//
int cVertEdgeCount = 0;
for (int j = 0; j < pFaceVerts.size(); ++j) {
int jLeadingEdge = j ? (j - 1) : (pFaceVerts.size() - 1);
if (IndexIsValid(pFaceChildEdges[jLeadingEdge])) {
cVertEdges[cVertEdgeCount] = pFaceChildEdges[jLeadingEdge];
cVertInEdge[cVertEdgeCount] = 0;
cVertEdgeCount++;
}
}
_child->trimVertexEdges(cVert, cVertEdgeCount);
}
} | O2 | cpp | OpenSubdiv::v3_6_0::Vtr::internal::QuadRefinement::populateVertexEdgesFromParentFaces():
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %rbx
xorl %r14d, %r14d
movq 0x8(%rbx), %rdi
movslq (%rdi), %rax
cmpq %rax, %r14
jge 0x60037
movq 0xa8(%rbx), %rax
movslq (%rax,%r14,4), %r15
cmpq $-0x1, %r15
je 0x6002f
movl %r14d, %esi
callq 0x52db0
movl %edx, %ebp
movq %rbx, %rdi
movl %r14d, %esi
callq 0x4f470
movq %rax, %r12
movq 0x10(%rbx), %rdi
movl %r15d, %esi
movl %ebp, %edx
callq 0x4f4f0
movq 0x10(%rbx), %rdi
movl %r15d, %esi
callq 0x4f370
movq %rax, %r13
movq 0x10(%rbx), %rdi
movl %r15d, %esi
callq 0x516c0
xorl %ecx, %ecx
testl %ebp, %ebp
movl $0x0, %edx
cmovgl %ebp, %edx
xorl %esi, %esi
cmpl %esi, %edx
je 0x60020
testl %esi, %esi
movl %esi, %edi
cmovel %ebp, %edi
movslq %edi, %rdi
movl -0x4(%r12,%rdi,4), %edi
cmpl $-0x1, %edi
je 0x6001c
movslq %ecx, %rcx
movl %edi, (%r13,%rcx,4)
andw $0x0, (%rax,%rcx,2)
incl %ecx
incl %esi
jmp 0x5fff5
movq 0x10(%rbx), %rax
movq 0x150(%rax), %rax
movl %ecx, (%rax,%r15,8)
incq %r14
jmp 0x5ff81
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
| _ZN10OpenSubdiv6v3_6_03Vtr8internal14QuadRefinement34populateVertexEdgesFromParentFacesEv:
push rbp
push r15
push r14
push r13
push r12
push rbx
push rax
mov rbx, rdi
xor r14d, r14d
loc_5FF81:
mov rdi, [rbx+8]; this
movsxd rax, dword ptr [rdi]
cmp r14, rax
jge loc_60037
mov rax, [rbx+0A8h]
movsxd r15, dword ptr [rax+r14*4]
cmp r15, 0FFFFFFFFFFFFFFFFh
jz loc_6002F
mov esi, r14d; int
call __ZNK10OpenSubdiv6v3_6_03Vtr8internal5Level15getFaceVerticesEi; OpenSubdiv::v3_6_0::Vtr::internal::Level::getFaceVertices(int)
mov ebp, edx
mov rdi, rbx; this
mov esi, r14d; int
call __ZN10OpenSubdiv6v3_6_03Vtr8internal10Refinement17getFaceChildEdgesEi; OpenSubdiv::v3_6_0::Vtr::internal::Refinement::getFaceChildEdges(int)
mov r12, rax
mov rdi, [rbx+10h]; this
mov esi, r15d; int
mov edx, ebp; int
call __ZN10OpenSubdiv6v3_6_03Vtr8internal5Level17resizeVertexEdgesEii; OpenSubdiv::v3_6_0::Vtr::internal::Level::resizeVertexEdges(int,int)
mov rdi, [rbx+10h]; this
mov esi, r15d; int
call __ZN10OpenSubdiv6v3_6_03Vtr8internal5Level14getVertexEdgesEi; OpenSubdiv::v3_6_0::Vtr::internal::Level::getVertexEdges(int)
mov r13, rax
mov rdi, [rbx+10h]; this
mov esi, r15d; int
call __ZN10OpenSubdiv6v3_6_03Vtr8internal5Level25getVertexEdgeLocalIndicesEi; OpenSubdiv::v3_6_0::Vtr::internal::Level::getVertexEdgeLocalIndices(int)
xor ecx, ecx
test ebp, ebp
mov edx, 0
cmovg edx, ebp
xor esi, esi
loc_5FFF5:
cmp edx, esi
jz short loc_60020
test esi, esi
mov edi, esi
cmovz edi, ebp
movsxd rdi, edi
mov edi, [r12+rdi*4-4]
cmp edi, 0FFFFFFFFh
jz short loc_6001C
movsxd rcx, ecx
mov [r13+rcx*4+0], edi
and word ptr [rax+rcx*2], 0
inc ecx
loc_6001C:
inc esi
jmp short loc_5FFF5
loc_60020:
mov rax, [rbx+10h]
mov rax, [rax+150h]
mov [rax+r15*8], ecx
loc_6002F:
inc r14
jmp loc_5FF81
loc_60037:
add rsp, 8
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
| long long OpenSubdiv::v3_6_0::Vtr::internal::QuadRefinement::populateVertexEdgesFromParentFaces(
OpenSubdiv::v3_6_0::Vtr::internal::QuadRefinement *this)
{
long long i; // r14
OpenSubdiv::v3_6_0::Vtr::internal::Level *v3; // rdi
long long result; // rax
long long v5; // r15
int v6; // edx
int v7; // ebp
long long FaceChildEdges; // r12
long long VertexEdges; // r13
long long VertexEdgeLocalIndices; // rax
int v11; // ecx
int v12; // edx
int j; // esi
int v14; // edi
int v15; // edi
for ( i = 0LL; ; ++i )
{
v3 = (OpenSubdiv::v3_6_0::Vtr::internal::Level *)*((_QWORD *)this + 1);
result = *(int *)v3;
if ( i >= result )
break;
v5 = *(int *)(*((_QWORD *)this + 21) + 4 * i);
if ( v5 != -1 )
{
OpenSubdiv::v3_6_0::Vtr::internal::Level::getFaceVertices(v3, i);
v7 = v6;
FaceChildEdges = OpenSubdiv::v3_6_0::Vtr::internal::Refinement::getFaceChildEdges(this, i);
OpenSubdiv::v3_6_0::Vtr::internal::Level::resizeVertexEdges(
*((OpenSubdiv::v3_6_0::Vtr::internal::Level **)this + 2),
v5,
v7);
VertexEdges = OpenSubdiv::v3_6_0::Vtr::internal::Level::getVertexEdges(
*((OpenSubdiv::v3_6_0::Vtr::internal::Level **)this + 2),
v5);
VertexEdgeLocalIndices = OpenSubdiv::v3_6_0::Vtr::internal::Level::getVertexEdgeLocalIndices(
*((OpenSubdiv::v3_6_0::Vtr::internal::Level **)this + 2),
v5);
v11 = 0;
v12 = 0;
if ( v7 > 0 )
v12 = v7;
for ( j = 0; v12 != j; ++j )
{
v14 = j;
if ( !j )
v14 = v7;
v15 = *(_DWORD *)(FaceChildEdges + 4LL * v14 - 4);
if ( v15 != -1 )
{
*(_DWORD *)(VertexEdges + 4LL * v11) = v15;
*(_WORD *)(VertexEdgeLocalIndices + 2LL * v11++) = 0;
}
}
*(_DWORD *)(*(_QWORD *)(*((_QWORD *)this + 2) + 336LL) + 8 * v5) = v11;
}
}
return result;
}
| populateVertexEdgesFromParentFaces:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
PUSH RAX
MOV RBX,RDI
XOR R14D,R14D
LAB_0015ff81:
MOV RDI,qword ptr [RBX + 0x8]
MOVSXD RAX,dword ptr [RDI]
CMP R14,RAX
JGE 0x00160037
MOV RAX,qword ptr [RBX + 0xa8]
MOVSXD R15,dword ptr [RAX + R14*0x4]
CMP R15,-0x1
JZ 0x0016002f
MOV ESI,R14D
CALL 0x00152db0
MOV EBP,EDX
MOV RDI,RBX
MOV ESI,R14D
CALL 0x0014f470
MOV R12,RAX
MOV RDI,qword ptr [RBX + 0x10]
MOV ESI,R15D
MOV EDX,EBP
CALL 0x0014f4f0
MOV RDI,qword ptr [RBX + 0x10]
MOV ESI,R15D
CALL 0x0014f370
MOV R13,RAX
MOV RDI,qword ptr [RBX + 0x10]
MOV ESI,R15D
CALL 0x001516c0
XOR ECX,ECX
TEST EBP,EBP
MOV EDX,0x0
CMOVG EDX,EBP
XOR ESI,ESI
LAB_0015fff5:
CMP EDX,ESI
JZ 0x00160020
TEST ESI,ESI
MOV EDI,ESI
CMOVZ EDI,EBP
MOVSXD RDI,EDI
MOV EDI,dword ptr [R12 + RDI*0x4 + -0x4]
CMP EDI,-0x1
JZ 0x0016001c
MOVSXD RCX,ECX
MOV dword ptr [R13 + RCX*0x4],EDI
AND word ptr [RAX + RCX*0x2],0x0
INC ECX
LAB_0016001c:
INC ESI
JMP 0x0015fff5
LAB_00160020:
MOV RAX,qword ptr [RBX + 0x10]
MOV RAX,qword ptr [RAX + 0x150]
MOV dword ptr [RAX + R15*0x8],ECX
LAB_0016002f:
INC R14
JMP 0x0015ff81
LAB_00160037:
ADD RSP,0x8
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
|
/* OpenSubdiv::v3_6_0::Vtr::internal::QuadRefinement::populateVertexEdgesFromParentFaces() */
void __thiscall
OpenSubdiv::v3_6_0::Vtr::internal::QuadRefinement::populateVertexEdgesFromParentFaces
(QuadRefinement *this)
{
int iVar1;
long lVar2;
long lVar3;
long lVar4;
int iVar5;
int extraout_EDX;
int iVar6;
int iVar7;
int iVar8;
long lVar9;
for (lVar9 = 0; lVar9 < *(int *)*(Level **)(this + 8); lVar9 = lVar9 + 1) {
iVar1 = *(int *)(*(long *)(this + 0xa8) + lVar9 * 4);
if ((long)iVar1 != -1) {
Level::getFaceVertices(*(Level **)(this + 8),(int)lVar9);
lVar2 = Refinement::getFaceChildEdges((Refinement *)this,(int)lVar9);
Level::resizeVertexEdges(*(Level **)(this + 0x10),iVar1,extraout_EDX);
lVar3 = Level::getVertexEdges(*(Level **)(this + 0x10),iVar1);
lVar4 = Level::getVertexEdgeLocalIndices(*(Level **)(this + 0x10),iVar1);
iVar5 = 0;
iVar6 = 0;
if (0 < extraout_EDX) {
iVar6 = extraout_EDX;
}
for (iVar7 = 0; iVar6 != iVar7; iVar7 = iVar7 + 1) {
iVar8 = iVar7;
if (iVar7 == 0) {
iVar8 = extraout_EDX;
}
iVar8 = *(int *)(lVar2 + -4 + (long)iVar8 * 4);
if (iVar8 != -1) {
*(int *)(lVar3 + (long)iVar5 * 4) = iVar8;
*(int2 *)(lVar4 + (long)iVar5 * 2) = 0;
iVar5 = iVar5 + 1;
}
}
*(int *)(*(long *)(*(long *)(this + 0x10) + 0x150) + (long)iVar1 * 8) = iVar5;
}
}
return;
}
| |
45,256 | quantize_row_iq4_nl_ref | Yangxiaoz[P]GGML-Tutorial/ggml/src/ggml-quants.c | void quantize_row_iq4_nl_ref(const float * restrict x, block_iq4_nl * restrict y, int64_t k) {
GGML_ASSERT(k%QK4_NL == 0);
int64_t nblock = k/QK4_NL;
uint8_t L[QK4_NL];
float weight[QK4_NL];
uint16_t unused_h;
uint8_t * unused_l = NULL;
float scale;
block_iq4_nl * iq4 = y;
for (int ibl = 0; ibl < nblock; ++ibl) {
quantize_row_iq4_nl_impl(QK4_NL, 32, x + QK4_NL*ibl, &iq4[ibl].d, iq4[ibl].qs, &unused_h, unused_l,
&scale, weight, L, kvalues_iq4nl, NULL, -1);
}
} | O0 | c | quantize_row_iq4_nl_ref:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
subq $0x120, %rsp # imm = 0x120
movq %rdi, -0x18(%rbp)
movq %rsi, -0x20(%rbp)
movq %rdx, -0x28(%rbp)
movq -0x28(%rbp), %rax
movl $0x20, %ecx
cqto
idivq %rcx
cmpq $0x0, %rdx
je 0x8591f
leaq 0x3b457(%rip), %rdi # 0xc0d5c
movl $0x1264, %esi # imm = 0x1264
leaq 0x2bcf8(%rip), %rdx # 0xb1609
leaq 0x3c1b9(%rip), %rcx # 0xc1ad1
movb $0x0, %al
callq 0x48a00
movq -0x28(%rbp), %rax
movl $0x20, %ecx
cqto
idivq %rcx
movq %rax, -0x30(%rbp)
movq $0x0, -0xe0(%rbp)
movq -0x20(%rbp), %rax
movq %rax, -0xf0(%rbp)
movl $0x0, -0xf4(%rbp)
movslq -0xf4(%rbp), %rax
cmpq -0x30(%rbp), %rax
jge 0x85a18
movq -0x18(%rbp), %rdx
movl -0xf4(%rbp), %eax
shll $0x5, %eax
cltq
shlq $0x2, %rax
addq %rax, %rdx
movq -0xf0(%rbp), %rcx
movslq -0xf4(%rbp), %rax
imulq $0x12, %rax, %rax
addq %rax, %rcx
movq -0xf0(%rbp), %r8
movslq -0xf4(%rbp), %rax
imulq $0x12, %rax, %rax
addq %rax, %r8
addq $0x2, %r8
movq -0xe0(%rbp), %r14
leaq -0xd0(%rbp), %r11
leaq -0x50(%rbp), %r10
movl $0x20, %esi
leaq -0xd2(%rbp), %r9
leaq -0xe4(%rbp), %rbx
leaq 0x38f3e(%rip), %rax # 0xbe910
xorl %edi, %edi
movl %esi, %edi
movq %r14, (%rsp)
movq %rbx, 0x8(%rsp)
movq %r11, 0x10(%rsp)
movq %r10, 0x18(%rsp)
movq %rax, 0x20(%rsp)
movq $0x0, 0x28(%rsp)
movl $0xffffffff, 0x30(%rsp) # imm = 0xFFFFFFFF
callq 0x84d30
movl -0xf4(%rbp), %eax
addl $0x1, %eax
movl %eax, -0xf4(%rbp)
jmp 0x85951
addq $0x120, %rsp # imm = 0x120
popq %rbx
popq %r14
popq %rbp
retq
nopw %cs:(%rax,%rax)
| quantize_row_iq4_nl_ref:
push rbp
mov rbp, rsp
push r14
push rbx
sub rsp, 120h
mov [rbp+var_18], rdi
mov [rbp+var_20], rsi
mov [rbp+var_28], rdx
mov rax, [rbp+var_28]
mov ecx, 20h ; ' '
cqo
idiv rcx
cmp rdx, 0
jz short loc_8591F
lea rdi, aWorkspaceLlm4b_4; "/workspace/llm4binary/github/2025_star3"...
mov esi, 1264h
lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed"
lea rcx, aKQk4Nl0_0; "k%QK4_NL == 0"
mov al, 0
call _ggml_abort
loc_8591F:
mov rax, [rbp+var_28]
mov ecx, 20h ; ' '
cqo
idiv rcx
mov [rbp+var_30], rax
mov [rbp+var_E0], 0
mov rax, [rbp+var_20]
mov [rbp+var_F0], rax
mov [rbp+var_F4], 0
loc_85951:
movsxd rax, [rbp+var_F4]
cmp rax, [rbp+var_30]
jge loc_85A18
mov rdx, [rbp+var_18]
mov eax, [rbp+var_F4]
shl eax, 5
cdqe
shl rax, 2
add rdx, rax
mov rcx, [rbp+var_F0]
movsxd rax, [rbp+var_F4]
imul rax, 12h
add rcx, rax
mov r8, [rbp+var_F0]
movsxd rax, [rbp+var_F4]
imul rax, 12h
add r8, rax
add r8, 2
mov r14, [rbp+var_E0]
lea r11, [rbp+var_D0]
lea r10, [rbp+var_50]
mov esi, 20h ; ' '
lea r9, [rbp+var_D2]
lea rbx, [rbp+var_E4]
lea rax, kvalues_iq4nl
xor edi, edi
mov edi, esi
mov [rsp+130h+var_130], r14
mov [rsp+130h+var_128], rbx
mov [rsp+130h+var_120], r11
mov [rsp+130h+var_118], r10
mov [rsp+130h+var_110], rax
mov [rsp+130h+var_108], 0
mov [rsp+130h+var_100], 0FFFFFFFFh
call quantize_row_iq4_nl_impl
mov eax, [rbp+var_F4]
add eax, 1
mov [rbp+var_F4], eax
jmp loc_85951
loc_85A18:
add rsp, 120h
pop rbx
pop r14
pop rbp
retn
| long long quantize_row_iq4_nl_ref(long long a1, long long a2, long long a3)
{
long long result; // rax
int i; // [rsp+3Ch] [rbp-F4h]
long long v5; // [rsp+40h] [rbp-F0h]
float v6; // [rsp+4Ch] [rbp-E4h] BYREF
long long v7; // [rsp+50h] [rbp-E0h]
_BYTE v8[2]; // [rsp+5Eh] [rbp-D2h] BYREF
_BYTE v9[128]; // [rsp+60h] [rbp-D0h] BYREF
_BYTE v10[32]; // [rsp+E0h] [rbp-50h] BYREF
long long v11; // [rsp+100h] [rbp-30h]
long long v12; // [rsp+108h] [rbp-28h]
long long v13; // [rsp+110h] [rbp-20h]
long long v14; // [rsp+118h] [rbp-18h]
v14 = a1;
v13 = a2;
v12 = a3;
if ( a3 % 32 )
ggml_abort(
"/workspace/llm4binary/github/2025_star3/Yangxiaoz[P]GGML-Tutorial/ggml/src/ggml-quants.c",
4708,
(long long)"GGML_ASSERT(%s) failed",
"k%QK4_NL == 0");
v11 = v12 / 32;
v7 = 0LL;
v5 = v13;
for ( i = 0; ; ++i )
{
result = i;
if ( i >= v11 )
break;
quantize_row_iq4_nl_impl(
32,
32,
128LL * i + v14,
(_WORD *)(18LL * i + v5),
18LL * i + v5 + 2,
(long long)v8,
v7,
&v6,
(long long)v9,
(long long)v10,
kvalues_iq4nl,
0LL,
-1);
}
return result;
}
| quantize_row_iq4_nl_ref:
PUSH RBP
MOV RBP,RSP
PUSH R14
PUSH RBX
SUB RSP,0x120
MOV qword ptr [RBP + -0x18],RDI
MOV qword ptr [RBP + -0x20],RSI
MOV qword ptr [RBP + -0x28],RDX
MOV RAX,qword ptr [RBP + -0x28]
MOV ECX,0x20
CQO
IDIV RCX
CMP RDX,0x0
JZ 0x0018591f
LEA RDI,[0x1c0d5c]
MOV ESI,0x1264
LEA RDX,[0x1b1609]
LEA RCX,[0x1c1ad1]
MOV AL,0x0
CALL 0x00148a00
LAB_0018591f:
MOV RAX,qword ptr [RBP + -0x28]
MOV ECX,0x20
CQO
IDIV RCX
MOV qword ptr [RBP + -0x30],RAX
MOV qword ptr [RBP + -0xe0],0x0
MOV RAX,qword ptr [RBP + -0x20]
MOV qword ptr [RBP + -0xf0],RAX
MOV dword ptr [RBP + -0xf4],0x0
LAB_00185951:
MOVSXD RAX,dword ptr [RBP + -0xf4]
CMP RAX,qword ptr [RBP + -0x30]
JGE 0x00185a18
MOV RDX,qword ptr [RBP + -0x18]
MOV EAX,dword ptr [RBP + -0xf4]
SHL EAX,0x5
CDQE
SHL RAX,0x2
ADD RDX,RAX
MOV RCX,qword ptr [RBP + -0xf0]
MOVSXD RAX,dword ptr [RBP + -0xf4]
IMUL RAX,RAX,0x12
ADD RCX,RAX
MOV R8,qword ptr [RBP + -0xf0]
MOVSXD RAX,dword ptr [RBP + -0xf4]
IMUL RAX,RAX,0x12
ADD R8,RAX
ADD R8,0x2
MOV R14,qword ptr [RBP + -0xe0]
LEA R11,[RBP + -0xd0]
LEA R10,[RBP + -0x50]
MOV ESI,0x20
LEA R9,[RBP + -0xd2]
LEA RBX,[RBP + -0xe4]
LEA RAX,[0x1be910]
XOR EDI,EDI
MOV EDI,ESI
MOV qword ptr [RSP],R14
MOV qword ptr [RSP + 0x8],RBX
MOV qword ptr [RSP + 0x10],R11
MOV qword ptr [RSP + 0x18],R10
MOV qword ptr [RSP + 0x20],RAX
MOV qword ptr [RSP + 0x28],0x0
MOV dword ptr [RSP + 0x30],0xffffffff
CALL 0x00184d30
MOV EAX,dword ptr [RBP + -0xf4]
ADD EAX,0x1
MOV dword ptr [RBP + -0xf4],EAX
JMP 0x00185951
LAB_00185a18:
ADD RSP,0x120
POP RBX
POP R14
POP RBP
RET
|
void quantize_row_iq4_nl_ref(long param_1,long param_2,long param_3)
{
long lVar1;
int local_fc;
int1 local_ec [4];
int8 local_e8;
int1 local_da [2];
int1 local_d8 [128];
int1 local_58 [32];
long local_38;
long local_30;
long local_28;
long local_20;
local_30 = param_3;
local_28 = param_2;
local_20 = param_1;
if (param_3 % 0x20 != 0) {
ggml_abort("/workspace/llm4binary/github/2025_star3/Yangxiaoz[P]GGML-Tutorial/ggml/src/ggml-quants.c"
,0x1264,"GGML_ASSERT(%s) failed","k%QK4_NL == 0");
}
lVar1 = local_28;
local_38 = local_30 / 0x20;
local_e8 = 0;
for (local_fc = 0; local_fc < local_38; local_fc = local_fc + 1) {
quantize_row_iq4_nl_impl
(0x20,0x20,local_20 + (long)(local_fc << 5) * 4,lVar1 + (long)local_fc * 0x12,
lVar1 + (long)local_fc * 0x12 + 2,local_da,local_e8,local_ec,local_d8,local_58,
kvalues_iq4nl,0,0xffffffff);
}
return;
}
| |
45,257 | quantize_row_iq4_nl_ref | Yangxiaoz[P]GGML-Tutorial/ggml/src/ggml-quants.c | void quantize_row_iq4_nl_ref(const float * restrict x, block_iq4_nl * restrict y, int64_t k) {
GGML_ASSERT(k%QK4_NL == 0);
int64_t nblock = k/QK4_NL;
uint8_t L[QK4_NL];
float weight[QK4_NL];
uint16_t unused_h;
uint8_t * unused_l = NULL;
float scale;
block_iq4_nl * iq4 = y;
for (int ibl = 0; ibl < nblock; ++ibl) {
quantize_row_iq4_nl_impl(QK4_NL, 32, x + QK4_NL*ibl, &iq4[ibl].d, iq4[ibl].qs, &unused_h, unused_l,
&scale, weight, L, kvalues_iq4nl, NULL, -1);
}
} | O1 | c | quantize_row_iq4_nl_ref:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xb8, %rsp
movq %rdx, %rbx
testb $0x1f, %bl
jne 0x3b0bb
sarq $0x5, %rbx
testq %rbx, %rbx
jle 0x3b0a9
movq %rsi, %r14
movq %rdi, %r15
leaq 0x30(%rsp), %rbp
leaq 0xc(%rsp), %r13
leaq 0xa(%rsp), %r12
leaq 0x2(%r14), %rcx
subq $0x8, %rsp
movl $0x20, %edi
movq %r15, %rsi
movq %r14, %rdx
movq %r12, %r8
xorl %r9d, %r9d
pushq $-0x1
pushq $0x0
leaq 0x28(%rsp), %rax
pushq %rax
pushq %rbp
pushq %r13
callq 0x3a702
addq $0x30, %rsp
subq $-0x80, %r15
addq $0x12, %r14
decq %rbx
jne 0x3b06d
addq $0xb8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x20742(%rip), %rdi # 0x5b804
leaq 0x114f8(%rip), %rdx # 0x4c5c1
leaq 0x214a9(%rip), %rcx # 0x5c579
movl $0x1264, %esi # imm = 0x1264
xorl %eax, %eax
callq 0x18ce0
| quantize_row_iq4_nl_ref:
push rbp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 0B8h
mov rbx, rdx
test bl, 1Fh
jnz short loc_3B0BB
sar rbx, 5
test rbx, rbx
jle short loc_3B0A9
mov r14, rsi
mov r15, rdi
lea rbp, [rsp+0E8h+var_B8]
lea r13, [rsp+0E8h+var_DC]
lea r12, [rsp+0E8h+var_DE]
loc_3B06D:
lea rcx, [r14+2]
sub rsp, 8
mov edi, 20h ; ' '
mov rsi, r15
mov rdx, r14
mov r8, r12
xor r9d, r9d
push 0FFFFFFFFFFFFFFFFh
push 0
lea rax, [rsp+100h+var_D8]
push rax
push rbp
push r13
call quantize_row_iq4_nl_impl
add rsp, 30h
sub r15, 0FFFFFFFFFFFFFF80h
add r14, 12h
dec rbx
jnz short loc_3B06D
loc_3B0A9:
add rsp, 0B8h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
loc_3B0BB:
lea rdi, aWorkspaceLlm4b_4; "/workspace/llm4binary/github/2025_star3"...
lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed"
lea rcx, aKQk4Nl0_0; "k%QK4_NL == 0"
mov esi, 1264h
xor eax, eax
call _ggml_abort
| long long quantize_row_iq4_nl_ref(long long a1, _WORD *a2, long long a3, long long a4, int a5, int a6)
{
long long v6; // rbx
long long result; // rax
__int16 v10; // [rsp+Ah] [rbp-DEh] BYREF
unsigned int v11; // [rsp+Ch] [rbp-DCh] BYREF
_BYTE v12[32]; // [rsp+10h] [rbp-D8h] BYREF
_BYTE v13[184]; // [rsp+30h] [rbp-B8h] BYREF
if ( (a3 & 0x1F) != 0 )
ggml_abort(
(unsigned int)"/workspace/llm4binary/github/2025_star3/Yangxiaoz[P]GGML-Tutorial/ggml/src/ggml-quants.c",
4708,
(unsigned int)"GGML_ASSERT(%s) failed",
(unsigned int)"k%QK4_NL == 0",
a5,
a6);
v6 = a3 >> 5;
if ( a3 >> 5 > 0 )
{
do
{
result = quantize_row_iq4_nl_impl(
0x20u,
a1,
a2,
(long long)(a2 + 1),
&v10,
0LL,
&v11,
(long long)v13,
(long long)v12,
0LL,
-1);
a1 += 128LL;
a2 += 9;
--v6;
}
while ( v6 );
}
return result;
}
| quantize_row_iq4_nl_ref:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0xb8
MOV RBX,RDX
TEST BL,0x1f
JNZ 0x0013b0bb
SAR RBX,0x5
TEST RBX,RBX
JLE 0x0013b0a9
MOV R14,RSI
MOV R15,RDI
LEA RBP,[RSP + 0x30]
LEA R13,[RSP + 0xc]
LEA R12,[RSP + 0xa]
LAB_0013b06d:
LEA RCX,[R14 + 0x2]
SUB RSP,0x8
MOV EDI,0x20
MOV RSI,R15
MOV RDX,R14
MOV R8,R12
XOR R9D,R9D
PUSH -0x1
PUSH 0x0
LEA RAX,[RSP + 0x28]
PUSH RAX
PUSH RBP
PUSH R13
CALL 0x0013a702
ADD RSP,0x30
SUB R15,-0x80
ADD R14,0x12
DEC RBX
JNZ 0x0013b06d
LAB_0013b0a9:
ADD RSP,0xb8
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
LAB_0013b0bb:
LEA RDI,[0x15b804]
LEA RDX,[0x14c5c1]
LEA RCX,[0x15c579]
MOV ESI,0x1264
XOR EAX,EAX
CALL 0x00118ce0
|
void quantize_row_iq4_nl_ref(long param_1,long param_2,ulong param_3)
{
long lVar1;
int1 local_de [2];
int1 local_dc [4];
int1 local_d8 [32];
int1 local_b8 [136];
if ((param_3 & 0x1f) == 0) {
lVar1 = (long)param_3 >> 5;
if (0 < lVar1) {
do {
quantize_row_iq4_nl_impl
(0x20,param_1,param_2,param_2 + 2,local_de,0,local_dc,local_b8,local_d8,0,
0xffffffffffffffff);
param_1 = param_1 + 0x80;
param_2 = param_2 + 0x12;
lVar1 = lVar1 + -1;
} while (lVar1 != 0);
}
return;
}
/* WARNING: Subroutine does not return */
ggml_abort("/workspace/llm4binary/github/2025_star3/Yangxiaoz[P]GGML-Tutorial/ggml/src/ggml-quants.c"
,0x1264,"GGML_ASSERT(%s) failed","k%QK4_NL == 0");
}
| |
45,258 | quantize_row_iq4_nl_ref | Yangxiaoz[P]GGML-Tutorial/ggml/src/ggml-quants.c | void quantize_row_iq4_nl_ref(const float * restrict x, block_iq4_nl * restrict y, int64_t k) {
GGML_ASSERT(k%QK4_NL == 0);
int64_t nblock = k/QK4_NL;
uint8_t L[QK4_NL];
float weight[QK4_NL];
uint16_t unused_h;
uint8_t * unused_l = NULL;
float scale;
block_iq4_nl * iq4 = y;
for (int ibl = 0; ibl < nblock; ++ibl) {
quantize_row_iq4_nl_impl(QK4_NL, 32, x + QK4_NL*ibl, &iq4[ibl].d, iq4[ibl].qs, &unused_h, unused_l,
&scale, weight, L, kvalues_iq4nl, NULL, -1);
}
} | O3 | c | quantize_row_iq4_nl_ref:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xb8, %rsp
movq %rdx, %rbx
testb $0x1f, %bl
jne 0x3a89b
sarq $0x5, %rbx
testq %rbx, %rbx
jle 0x3a889
movq %rsi, %r14
movq %rdi, %r15
leaq 0x30(%rsp), %rbp
leaq 0xc(%rsp), %r13
leaq 0xa(%rsp), %r12
leaq 0x2(%r14), %rcx
subq $0x8, %rsp
movl $0x20, %edi
movq %r15, %rsi
movq %r14, %rdx
movq %r12, %r8
xorl %r9d, %r9d
pushq $-0x1
pushq $0x0
leaq 0x28(%rsp), %rax
pushq %rax
pushq %rbp
pushq %r13
callq 0x39f2f
addq $0x30, %rsp
subq $-0x80, %r15
addq $0x12, %r14
decq %rbx
jne 0x3a84d
addq $0xb8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x21452(%rip), %rdi # 0x5bcf4
leaq 0x11dbc(%rip), %rdx # 0x4c665
leaq 0x221b9(%rip), %rcx # 0x5ca69
movl $0x1264, %esi # imm = 0x1264
xorl %eax, %eax
callq 0x17cd0
| quantize_row_iq4_nl_ref:
push rbp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 0B8h
mov rbx, rdx
test bl, 1Fh
jnz short loc_3A89B
sar rbx, 5
test rbx, rbx
jle short loc_3A889
mov r14, rsi
mov r15, rdi
lea rbp, [rsp+0E8h+var_B8]
lea r13, [rsp+0E8h+var_DC]
lea r12, [rsp+0E8h+var_DE]
loc_3A84D:
lea rcx, [r14+2]
sub rsp, 8
mov edi, 20h ; ' '
mov rsi, r15
mov rdx, r14
mov r8, r12
xor r9d, r9d
push 0FFFFFFFFFFFFFFFFh
push 0
lea rax, [rsp+100h+var_D8]
push rax
push rbp
push r13
call quantize_row_iq4_nl_impl
add rsp, 30h
sub r15, 0FFFFFFFFFFFFFF80h
add r14, 12h
dec rbx
jnz short loc_3A84D
loc_3A889:
add rsp, 0B8h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
loc_3A89B:
lea rdi, aWorkspaceLlm4b_4; "/workspace/llm4binary/github/2025_star3"...
lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed"
lea rcx, aKQk4Nl0_0; "k%QK4_NL == 0"
mov esi, 1264h
xor eax, eax
call _ggml_abort
| long long quantize_row_iq4_nl_ref(long long a1, _WORD *a2, long long a3, long long a4, int a5, int a6)
{
long long v6; // rbx
long long result; // rax
__int16 v10; // [rsp+Ah] [rbp-DEh] BYREF
unsigned int v11; // [rsp+Ch] [rbp-DCh] BYREF
_BYTE v12[32]; // [rsp+10h] [rbp-D8h] BYREF
_BYTE v13[184]; // [rsp+30h] [rbp-B8h] BYREF
if ( (a3 & 0x1F) != 0 )
ggml_abort(
(unsigned int)"/workspace/llm4binary/github/2025_star3/Yangxiaoz[P]GGML-Tutorial/ggml/src/ggml-quants.c",
4708,
(unsigned int)"GGML_ASSERT(%s) failed",
(unsigned int)"k%QK4_NL == 0",
a5,
a6);
v6 = a3 >> 5;
if ( a3 >> 5 > 0 )
{
do
{
result = quantize_row_iq4_nl_impl(
0x20u,
a1,
a2,
(long long)(a2 + 1),
&v10,
0LL,
&v11,
(long long)v13,
(long long)v12,
0LL,
-1);
a1 += 128LL;
a2 += 9;
--v6;
}
while ( v6 );
}
return result;
}
| quantize_row_iq4_nl_ref:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0xb8
MOV RBX,RDX
TEST BL,0x1f
JNZ 0x0013a89b
SAR RBX,0x5
TEST RBX,RBX
JLE 0x0013a889
MOV R14,RSI
MOV R15,RDI
LEA RBP,[RSP + 0x30]
LEA R13,[RSP + 0xc]
LEA R12,[RSP + 0xa]
LAB_0013a84d:
LEA RCX,[R14 + 0x2]
SUB RSP,0x8
MOV EDI,0x20
MOV RSI,R15
MOV RDX,R14
MOV R8,R12
XOR R9D,R9D
PUSH -0x1
PUSH 0x0
LEA RAX,[RSP + 0x28]
PUSH RAX
PUSH RBP
PUSH R13
CALL 0x00139f2f
ADD RSP,0x30
SUB R15,-0x80
ADD R14,0x12
DEC RBX
JNZ 0x0013a84d
LAB_0013a889:
ADD RSP,0xb8
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
LAB_0013a89b:
LEA RDI,[0x15bcf4]
LEA RDX,[0x14c665]
LEA RCX,[0x15ca69]
MOV ESI,0x1264
XOR EAX,EAX
CALL 0x00117cd0
|
void quantize_row_iq4_nl_ref(long param_1,long param_2,ulong param_3)
{
long lVar1;
int1 local_de [2];
int1 local_dc [4];
int1 local_d8 [32];
int1 local_b8 [136];
if ((param_3 & 0x1f) == 0) {
lVar1 = (long)param_3 >> 5;
if (0 < lVar1) {
do {
quantize_row_iq4_nl_impl
(0x20,param_1,param_2,param_2 + 2,local_de,0,local_dc,local_b8,local_d8,0,
0xffffffffffffffff);
param_1 = param_1 + 0x80;
param_2 = param_2 + 0x12;
lVar1 = lVar1 + -1;
} while (lVar1 != 0);
}
return;
}
/* WARNING: Subroutine does not return */
ggml_abort("/workspace/llm4binary/github/2025_star3/Yangxiaoz[P]GGML-Tutorial/ggml/src/ggml-quants.c"
,0x1264,"GGML_ASSERT(%s) failed","k%QK4_NL == 0");
}
| |
45,259 | Json::BuiltStyledStreamWriter::writeValue(Json::Value const&) | aimrt_mujoco_sim/_deps/jsoncpp-src/src/lib_json/json_writer.cpp | void BuiltStyledStreamWriter::writeValue(Value const& value) {
switch (value.type()) {
case nullValue:
pushValue(nullSymbol_);
break;
case intValue:
pushValue(valueToString(value.asLargestInt()));
break;
case uintValue:
pushValue(valueToString(value.asLargestUInt()));
break;
case realValue:
pushValue(valueToString(value.asDouble(), useSpecialFloats_, precision_,
precisionType_));
break;
case stringValue: {
// Is NULL is possible for value.string_? No.
char const* str;
char const* end;
bool ok = value.getString(&str, &end);
if (ok)
pushValue(
valueToQuotedStringN(str, static_cast<size_t>(end - str), emitUTF8_));
else
pushValue("");
break;
}
case booleanValue:
pushValue(valueToString(value.asBool()));
break;
case arrayValue:
writeArrayValue(value);
break;
case objectValue: {
Value::Members members(value.getMemberNames());
if (members.empty())
pushValue("{}");
else {
writeWithIndent("{");
indent();
auto it = members.begin();
for (;;) {
String const& name = *it;
Value const& childValue = value[name];
writeCommentBeforeValue(childValue);
writeWithIndent(
valueToQuotedStringN(name.data(), name.length(), emitUTF8_));
*sout_ << colonSymbol_;
writeValue(childValue);
if (++it == members.end()) {
writeCommentAfterValueOnSameLine(childValue);
break;
}
*sout_ << ",";
writeCommentAfterValueOnSameLine(childValue);
}
unindent();
writeWithIndent("}");
}
} break;
}
} | O3 | cpp | Json::BuiltStyledStreamWriter::writeValue(Json::Value const&):
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x48, %rsp
movq %rsi, %r14
movq %rdi, %rbx
movq %rsi, %rdi
callq 0x76e0e
cmpl $0x7, %eax
ja 0x7e4c0
movl %eax, %eax
leaq 0xb6f0(%rip), %rcx # 0x89870
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
leaq 0x98(%rbx), %rsi
movq %rbx, %rdi
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x7e70c
leaq 0x20(%rsp), %rsi
leaq 0x40(%rsp), %rdx
movq %r14, %rdi
callq 0x7714c
testb %al, %al
je 0x7e48c
movq 0x20(%rsp), %rsi
movq 0x40(%rsp), %rdx
subq %rsi, %rdx
movb 0xd8(%rbx), %al
andb $0x8, %al
shrb $0x3, %al
movzbl %al, %ecx
movq %rsp, %r14
movq %r14, %rdi
callq 0x7bc16
movq %rbx, %rdi
movq %r14, %rsi
callq 0x7e70c
jmp 0x7e39e
movq %r14, %rdi
callq 0x77ad2
movq %rsp, %r14
movq %r14, %rdi
movq %rax, %rsi
callq 0x7b935
movq %rbx, %rdi
movq %r14, %rsi
callq 0x7e70c
jmp 0x7e39e
movq %r14, %rdi
callq 0x77ad8
movb 0xd8(%rbx), %al
andb $0x4, %al
shrb $0x2, %al
movl 0xdc(%rbx), %edx
movl 0xe0(%rbx), %ecx
movzbl %al, %esi
movq %rsp, %r14
movq %r14, %rdi
callq 0x7b9c7
movq %rbx, %rdi
movq %r14, %rsi
callq 0x7e70c
jmp 0x7e39e
leaq 0x20(%rsp), %r15
movq %r15, %rdi
movq %r14, %rsi
callq 0x795a8
movq (%r15), %rax
cmpq 0x8(%r15), %rax
je 0x7e4cf
leaq 0x10(%rsp), %rax
movq %rax, -0x10(%rax)
leaq 0xb6b7(%rip), %rsi # 0x8993d
leaq 0xb6b1(%rip), %rdx # 0x8993e
movq %rsp, %rdi
callq 0x1e620
movq %rsp, %rsi
movq %rbx, %rdi
callq 0x7e9fc
movq (%rsp), %rdi
leaq 0x10(%rsp), %rax
cmpq %rax, %rdi
je 0x7e2b3
callq 0x1f0e0
leaq 0x28(%rbx), %rdi
movq 0x50(%rbx), %rsi
movq 0x58(%rbx), %rdx
movq %rdi, 0x38(%rsp)
callq 0x201d0
movq 0x20(%rsp), %r12
movq %rsp, %r13
leaq 0x9f23(%rip), %rbp # 0x881fb
movq %r14, %rdi
movq %r12, %rsi
callq 0x78dc0
movq %rax, %r15
movq %rbx, %rdi
movq %rax, %rsi
callq 0x7e00e
movq (%r12), %rsi
movq 0x8(%r12), %rdx
movb 0xd8(%rbx), %al
andb $0x8, %al
shrb $0x3, %al
movzbl %al, %ecx
movq %r13, %rdi
callq 0x7bc16
movq %rbx, %rdi
movq %r13, %rsi
callq 0x7e9fc
movq (%rsp), %rdi
leaq 0x10(%rsp), %rax
cmpq %rax, %rdi
je 0x7e32e
callq 0x1f0e0
movq 0x8(%rbx), %rdi
movq 0x78(%rbx), %rsi
movq 0x80(%rbx), %rdx
callq 0x1f400
movq %rbx, %rdi
movq %r15, %rsi
callq 0x7e152
addq $0x20, %r12
cmpq 0x28(%rsp), %r12
je 0x7e425
movq 0x8(%rbx), %rdi
movl $0x1, %edx
movq %rbp, %rsi
callq 0x1f400
movq %rbx, %rdi
movq %r15, %rsi
callq 0x7e598
jmp 0x7e2d8
movq %r14, %rdi
callq 0x77acc
movq %rsp, %r14
movq %r14, %rdi
movq %rax, %rsi
callq 0x7b838
movq %rbx, %rdi
movq %r14, %rsi
callq 0x7e70c
leaq 0x10(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
jne 0x7e4bb
jmp 0x7e4c0
movq %r14, %rdi
callq 0x77caa
leaq 0x556a(%rip), %rcx # 0x8392e
leaq 0x5568(%rip), %rsi # 0x83933
testb %al, %al
cmovneq %rcx, %rsi
leaq 0x10(%rsp), %r15
movq %r15, -0x10(%r15)
movzbl %al, %edx
xorq $0x5, %rdx
addq %rsi, %rdx
movq %rsp, %r14
movq %r14, %rdi
callq 0x1e620
movq %rbx, %rdi
movq %r14, %rsi
callq 0x7e70c
movq (%rsp), %rdi
cmpq %r15, %rdi
jne 0x7e4bb
jmp 0x7e4c0
movq %rbx, %rdi
movq %r14, %rsi
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x7e732
movq %rbx, %rdi
movq %r15, %rsi
callq 0x7e598
movq 0x30(%rbx), %rsi
subq 0x58(%rbx), %rsi
movq 0x38(%rsp), %rdi
xorl %edx, %edx
callq 0x1e5b0
movq %rsp, %rdi
leaq 0x10(%rsp), %rax
movq %rax, (%rdi)
leaq 0x522a(%rip), %rsi # 0x83680
leaq 0x5224(%rip), %rdx # 0x83681
callq 0x1e620
movq %rsp, %rsi
movq %rbx, %rdi
callq 0x7e9fc
movq (%rsp), %rdi
leaq 0x10(%rsp), %rax
cmpq %rax, %rdi
je 0x7e480
callq 0x1f0e0
leaq 0x20(%rsp), %rdi
callq 0x1ebd0
jmp 0x7e4c0
leaq 0x10(%rsp), %r14
movq %r14, -0x10(%r14)
leaq 0xb58e(%rip), %rdx # 0x89a2a
movq %rsp, %rdi
movq %rdx, %rsi
callq 0x1e620
movq %rsp, %rsi
movq %rbx, %rdi
callq 0x7e70c
movq (%rsp), %rdi
cmpq %r14, %rdi
je 0x7e4c0
callq 0x1f0e0
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x10(%rsp), %r14
movq %r14, -0x10(%r14)
leaq 0x51a0(%rip), %rsi # 0x8367f
leaq 0x519b(%rip), %rdx # 0x83681
movq %rsp, %rdi
callq 0x1e620
movq %rsp, %rsi
movq %rbx, %rdi
callq 0x7e70c
movq (%rsp), %rdi
cmpq %r14, %rdi
jne 0x7e47b
jmp 0x7e480
movq %rax, %rbx
movq (%rsp), %rdi
cmpq %r14, %rdi
jne 0x7e57b
jmp 0x7e585
jmp 0x7e582
movq %rax, %rbx
movq (%rsp), %rdi
cmpq %r14, %rdi
jne 0x7e561
jmp 0x7e58f
movq %rax, %rbx
jmp 0x7e58f
jmp 0x7e550
jmp 0x7e56a
jmp 0x7e582
jmp 0x7e582
jmp 0x7e582
jmp 0x7e582
jmp 0x7e56a
jmp 0x7e582
movq %rax, %rbx
movq (%rsp), %rdi
cmpq %r15, %rdi
jne 0x7e561
jmp 0x7e58f
jmp 0x7e550
jmp 0x7e550
movq %rax, %rbx
leaq 0x10(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x7e58f
callq 0x1f0e0
jmp 0x7e58f
jmp 0x7e582
movq %rax, %rbx
movq (%rsp), %rdi
leaq 0x10(%rsp), %rax
cmpq %rax, %rdi
je 0x7e585
callq 0x1f0e0
jmp 0x7e585
movq %rax, %rbx
leaq 0x20(%rsp), %rdi
callq 0x1ebd0
movq %rbx, %rdi
callq 0x1ffd0
nop
| _ZN4Json23BuiltStyledStreamWriter10writeValueERKNS_5ValueE:
push rbp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 48h
mov r14, rsi
mov rbx, rdi
mov rdi, rsi; this
call _ZNK4Json5Value4typeEv; Json::Value::type(void)
cmp eax, 7; switch 8 cases
ja def_7E187; jumptable 000000000007E187 default case
mov eax, eax
lea rcx, jpt_7E187
movsxd rax, ds:(jpt_7E187 - 89870h)[rcx+rax*4]
add rax, rcx
jmp rax; switch jump
loc_7E189:
lea rsi, [rbx+98h]; jumptable 000000000007E187 case 0
mov rdi, rbx
add rsp, 48h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
jmp _ZN4Json23BuiltStyledStreamWriter9pushValueERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE; Json::BuiltStyledStreamWriter::pushValue(std::string const&)
loc_7E1A6:
lea rsi, [rsp+78h+var_58]; jumptable 000000000007E187 case 4
lea rdx, [rsp+78h+var_38]; char **
mov rdi, r14; this
call _ZNK4Json5Value9getStringEPPKcS3_; Json::Value::getString(char const**,char const**)
test al, al
jz loc_7E48C
mov rsi, [rsp+78h+var_58]
mov rdx, [rsp+78h+var_38]
sub rdx, rsi
mov al, [rbx+0D8h]
and al, 8
shr al, 3
movzx ecx, al
mov r14, rsp
mov rdi, r14; int
call _ZN4JsonL20valueToQuotedStringNB5cxx11EPKcmb; Json::valueToQuotedStringN(char const*,ulong,bool)
mov rdi, rbx
mov rsi, r14
call _ZN4Json23BuiltStyledStreamWriter9pushValueERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE; Json::BuiltStyledStreamWriter::pushValue(std::string const&)
jmp loc_7E39E
loc_7E1F6:
mov rdi, r14; jumptable 000000000007E187 case 2
call _ZNK4Json5Value13asLargestUIntEv; Json::Value::asLargestUInt(void)
mov r14, rsp
mov rdi, r14
mov rsi, rax
call _ZN4Json13valueToStringB5cxx11Em; Json::valueToString(ulong)
mov rdi, rbx
mov rsi, r14
call _ZN4Json23BuiltStyledStreamWriter9pushValueERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE; Json::BuiltStyledStreamWriter::pushValue(std::string const&)
jmp loc_7E39E
loc_7E21C:
mov rdi, r14; jumptable 000000000007E187 case 3
call _ZNK4Json5Value8asDoubleEv; Json::Value::asDouble(void)
mov al, [rbx+0D8h]
and al, 4
shr al, 2
mov edx, [rbx+0DCh]
mov ecx, [rbx+0E0h]
movzx esi, al
mov r14, rsp
mov rdi, r14
call _ZN4Json12_GLOBAL__N_113valueToStringB5cxx11EdbjNS_13PrecisionTypeE; Json::`anonymous namespace'::valueToString(double,bool,uint,Json::PrecisionType)
mov rdi, rbx
mov rsi, r14
call _ZN4Json23BuiltStyledStreamWriter9pushValueERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE; Json::BuiltStyledStreamWriter::pushValue(std::string const&)
jmp loc_7E39E
loc_7E259:
lea r15, [rsp+78h+var_58]; jumptable 000000000007E187 case 7
mov rdi, r15
mov rsi, r14
call _ZNK4Json5Value14getMemberNamesB5cxx11Ev; Json::Value::getMemberNames(void)
mov rax, [r15]
cmp rax, [r15+8]
jz loc_7E4CF
lea rax, [rsp+78h+var_68]
mov [rax-10h], rax
lea rsi, asc_8993D; "{"
lea rdx, asc_8993D+1; ""
mov rdi, rsp
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPKcEEvT_S8_St20forward_iterator_tag; std::string::_M_construct<char const*>(char const*,char const*,std::forward_iterator_tag)
mov rsi, rsp
mov rdi, rbx; this
call _ZN4Json23BuiltStyledStreamWriter15writeWithIndentERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE; Json::BuiltStyledStreamWriter::writeWithIndent(std::string const&)
mov rdi, [rsp+78h+var_78]; void *
lea rax, [rsp+78h+var_68]
cmp rdi, rax
jz short loc_7E2B3
call __ZdlPv; operator delete(void *)
loc_7E2B3:
lea rdi, [rbx+28h]
mov rsi, [rbx+50h]
mov rdx, [rbx+58h]
mov [rsp+78h+var_40], rdi
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9_M_appendEPKcm; std::string::_M_append(char const*,ulong)
mov r12, [rsp+78h+var_58]
mov r13, rsp
lea rbp, asc_881FB; ","
loc_7E2D8:
mov rdi, r14
mov rsi, r12
call _ZNK4Json5ValueixERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE; Json::Value::operator[](std::string const&)
mov r15, rax
mov rdi, rbx; this
mov rsi, rax; Json::Value *
call _ZN4Json23BuiltStyledStreamWriter23writeCommentBeforeValueERKNS_5ValueE; Json::BuiltStyledStreamWriter::writeCommentBeforeValue(Json::Value const&)
mov rsi, [r12]
mov rdx, [r12+8]
mov al, [rbx+0D8h]
and al, 8
shr al, 3
movzx ecx, al
mov rdi, r13; int
call _ZN4JsonL20valueToQuotedStringNB5cxx11EPKcmb; Json::valueToQuotedStringN(char const*,ulong,bool)
mov rdi, rbx; this
mov rsi, r13
call _ZN4Json23BuiltStyledStreamWriter15writeWithIndentERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE; Json::BuiltStyledStreamWriter::writeWithIndent(std::string const&)
mov rdi, [rsp+78h+var_78]; void *
lea rax, [rsp+78h+var_68]
cmp rdi, rax
jz short loc_7E32E
call __ZdlPv; operator delete(void *)
loc_7E32E:
mov rdi, [rbx+8]
mov rsi, [rbx+78h]
mov rdx, [rbx+80h]
call __ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l; std::__ostream_insert<char,std::char_traits<char>>(std::ostream &,char const*,long)
mov rdi, rbx; this
mov rsi, r15; Json::Value *
call _ZN4Json23BuiltStyledStreamWriter10writeValueERKNS_5ValueE; Json::BuiltStyledStreamWriter::writeValue(Json::Value const&)
add r12, 20h ; ' '
cmp r12, [rsp+78h+var_50]
jz loc_7E425
mov rdi, [rbx+8]
mov edx, 1
mov rsi, rbp
call __ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l; std::__ostream_insert<char,std::char_traits<char>>(std::ostream &,char const*,long)
mov rdi, rbx; this
mov rsi, r15; Json::Value *
call _ZN4Json23BuiltStyledStreamWriter32writeCommentAfterValueOnSameLineERKNS_5ValueE; Json::BuiltStyledStreamWriter::writeCommentAfterValueOnSameLine(Json::Value const&)
jmp loc_7E2D8
loc_7E37D:
mov rdi, r14; jumptable 000000000007E187 case 1
call _ZNK4Json5Value12asLargestIntEv; Json::Value::asLargestInt(void)
mov r14, rsp
mov rdi, r14
mov rsi, rax
call _ZN4Json13valueToStringB5cxx11El; Json::valueToString(long)
mov rdi, rbx
mov rsi, r14
call _ZN4Json23BuiltStyledStreamWriter9pushValueERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE; Json::BuiltStyledStreamWriter::pushValue(std::string const&)
loc_7E39E:
lea rax, [rsp+78h+var_68]
mov rdi, [rax-10h]
cmp rdi, rax
jnz loc_7E4BB
jmp def_7E187; jumptable 000000000007E187 default case
loc_7E3B5:
mov rdi, r14; jumptable 000000000007E187 case 5
call _ZNK4Json5Value6asBoolEv; Json::Value::asBool(void)
lea rcx, aTrue; "true"
lea rsi, aFalse; "false"
test al, al
cmovnz rsi, rcx
lea r15, [rsp+78h+var_68]
mov [r15-10h], r15
movzx edx, al
xor rdx, 5
add rdx, rsi
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, rbx
mov rsi, r14
call _ZN4Json23BuiltStyledStreamWriter9pushValueERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE; Json::BuiltStyledStreamWriter::pushValue(std::string const&)
mov rdi, [rsp+78h+var_78]
cmp rdi, r15
jnz loc_7E4BB
jmp def_7E187; jumptable 000000000007E187 default case
loc_7E40C:
mov rdi, rbx; jumptable 000000000007E187 case 6
mov rsi, r14; Json::Value *
add rsp, 48h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
jmp _ZN4Json23BuiltStyledStreamWriter15writeArrayValueERKNS_5ValueE; Json::BuiltStyledStreamWriter::writeArrayValue(Json::Value const&)
loc_7E425:
mov rdi, rbx; this
mov rsi, r15; Json::Value *
call _ZN4Json23BuiltStyledStreamWriter32writeCommentAfterValueOnSameLineERKNS_5ValueE; Json::BuiltStyledStreamWriter::writeCommentAfterValueOnSameLine(Json::Value const&)
mov rsi, [rbx+30h]
sub rsi, [rbx+58h]
mov rdi, [rsp+78h+var_40]
xor edx, edx
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6resizeEmc; std::string::resize(ulong,char)
mov rdi, rsp
lea rax, [rsp+78h+var_68]
mov [rdi], rax
lea rsi, aInitializeFail+14h; "}"
lea rdx, aInitializeFail+15h; ""
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPKcEEvT_S8_St20forward_iterator_tag; std::string::_M_construct<char const*>(char const*,char const*,std::forward_iterator_tag)
mov rsi, rsp
mov rdi, rbx; this
call _ZN4Json23BuiltStyledStreamWriter15writeWithIndentERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE; Json::BuiltStyledStreamWriter::writeWithIndent(std::string const&)
mov rdi, [rsp+78h+var_78]; void *
lea rax, [rsp+78h+var_68]
cmp rdi, rax
jz short loc_7E480
loc_7E47B:
call __ZdlPv; operator delete(void *)
loc_7E480:
lea rdi, [rsp+78h+var_58]
call __ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EED2Ev; std::vector<std::string>::~vector()
jmp short def_7E187; jumptable 000000000007E187 default case
loc_7E48C:
lea r14, [rsp+78h+var_68]
mov [r14-10h], r14
lea rdx, asc_89A29+1; ""
mov rdi, rsp
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 rsi, rsp
mov rdi, rbx
call _ZN4Json23BuiltStyledStreamWriter9pushValueERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE; Json::BuiltStyledStreamWriter::pushValue(std::string const&)
mov rdi, [rsp+78h+var_78]; void *
cmp rdi, r14
jz short def_7E187; jumptable 000000000007E187 default case
loc_7E4BB:
call __ZdlPv; operator delete(void *)
def_7E187:
add rsp, 48h; jumptable 000000000007E187 default case
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
loc_7E4CF:
lea r14, [rsp+78h+var_68]
mov [r14-10h], r14
lea rsi, aInitializeFail+13h; "{}"
lea rdx, aInitializeFail+15h; ""
mov rdi, rsp
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPKcEEvT_S8_St20forward_iterator_tag; std::string::_M_construct<char const*>(char const*,char const*,std::forward_iterator_tag)
mov rsi, rsp
mov rdi, rbx
call _ZN4Json23BuiltStyledStreamWriter9pushValueERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE; Json::BuiltStyledStreamWriter::pushValue(std::string const&)
mov rdi, [rsp+78h+var_78]
cmp rdi, r14
jnz loc_7E47B
jmp loc_7E480
mov rbx, rax
mov rdi, [rsp+0]
cmp rdi, r14
jnz short loc_7E57B
jmp short loc_7E585
jmp short loc_7E582
mov rbx, rax
mov rdi, [rsp+0]
cmp rdi, r14
jnz short loc_7E561
jmp short loc_7E58F
mov rbx, rax
jmp short loc_7E58F
jmp short loc_7E550
jmp short loc_7E56A
jmp short loc_7E582
jmp short loc_7E582
jmp short loc_7E582
jmp short loc_7E582
jmp short loc_7E56A
jmp short loc_7E582
mov rbx, rax
mov rdi, [rsp+0]
cmp rdi, r15
jnz short loc_7E561
jmp short loc_7E58F
jmp short loc_7E550
jmp short $+2
loc_7E550:
mov rbx, rax
lea rax, [rsp+arg_8]
mov rdi, [rax-10h]; void *
cmp rdi, rax
jz short loc_7E58F
loc_7E561:
call __ZdlPv; operator delete(void *)
jmp short loc_7E58F
jmp short loc_7E582
loc_7E56A:
mov rbx, rax
mov rdi, [rsp+0]; void *
lea rax, [rsp+arg_8]
cmp rdi, rax
jz short loc_7E585
loc_7E57B:
call __ZdlPv; operator delete(void *)
jmp short loc_7E585
loc_7E582:
mov rbx, rax
loc_7E585:
lea rdi, [rsp+arg_18]
call __ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EED2Ev; std::vector<std::string>::~vector()
loc_7E58F:
mov rdi, rbx
call __Unwind_Resume
| void Json::BuiltStyledStreamWriter::writeValue(Json::BuiltStyledStreamWriter *this, const Json::Value *a2)
{
unsigned long long v3; // rax
double v4; // xmm0_8
long long v5; // rsi
long long v6; // rdx
char *v7; // r12
const Json::Value *v8; // r15
long long v9; // rax
void *v10; // rdi
unsigned __int8 v11; // al
const char *v12; // rsi
void *v13; // rdi
void *v14[2]; // [rsp+0h] [rbp-78h] BYREF
_BYTE v15[16]; // [rsp+10h] [rbp-68h] BYREF
char *v16; // [rsp+20h] [rbp-58h] BYREF
char *v17; // [rsp+28h] [rbp-50h]
char *v18; // [rsp+38h] [rbp-40h]
char *v19; // [rsp+40h] [rbp-38h] BYREF
switch ( (unsigned int)Json::Value::type(a2) )
{
case 0u:
Json::BuiltStyledStreamWriter::pushValue(this, (char *)this + 152);
return;
case 1u:
v9 = Json::Value::asLargestInt(a2);
Json::valueToString[abi:cxx11]((long long)v14, v9);
Json::BuiltStyledStreamWriter::pushValue(this, v14);
goto LABEL_16;
case 2u:
v3 = Json::Value::asLargestUInt(a2);
Json::valueToString[abi:cxx11]((long long)v14, v3);
Json::BuiltStyledStreamWriter::pushValue(this, v14);
goto LABEL_16;
case 3u:
v4 = Json::Value::asDouble(a2);
Json::`anonymous namespace'::valueToString[abi:cxx11](
(long long *)v14,
(unsigned __int8)(*((_BYTE *)this + 216) & 4) >> 2,
*((_DWORD *)this + 55),
*((_DWORD *)this + 56),
v4);
Json::BuiltStyledStreamWriter::pushValue(this, v14);
goto LABEL_16;
case 4u:
if ( !(unsigned __int8)Json::Value::getString((const char **)a2, (const char **)&v16, (const char **)&v19) )
{
v14[0] = v15;
std::string::_M_construct<char const*>(v14, "", "");
Json::BuiltStyledStreamWriter::pushValue(this, v14);
v10 = v14[0];
if ( v14[0] == v15 )
return;
goto LABEL_27;
}
Json::valueToQuotedStringN[abi:cxx11](
(long long)v14,
(unsigned __int8 *)v16,
v19 - v16,
(unsigned __int8)(*((_BYTE *)this + 216) & 8) >> 3);
Json::BuiltStyledStreamWriter::pushValue(this, v14);
LABEL_16:
v10 = v14[0];
if ( v14[0] != v15 )
LABEL_27:
operator delete(v10);
return;
case 5u:
v11 = Json::Value::asBool(a2);
v12 = "false";
if ( v11 )
v12 = "true";
v14[0] = v15;
std::string::_M_construct<char const*>(v14, v12, &v12[v11 ^ 5LL]);
Json::BuiltStyledStreamWriter::pushValue(this, v14);
v10 = v14[0];
if ( v14[0] == v15 )
return;
goto LABEL_27;
case 6u:
Json::BuiltStyledStreamWriter::writeArrayValue(this, a2);
return;
case 7u:
Json::Value::getMemberNames[abi:cxx11]((long long)&v16, a2);
if ( v16 == v17 )
{
v14[0] = v15;
std::string::_M_construct<char const*>(v14, "{}", "");
Json::BuiltStyledStreamWriter::pushValue(this, v14);
v13 = v14[0];
if ( v14[0] != v15 )
LABEL_24:
operator delete(v13);
}
else
{
v14[0] = v15;
std::string::_M_construct<char const*>(v14, "{", "");
Json::BuiltStyledStreamWriter::writeWithIndent(this);
if ( v14[0] != v15 )
operator delete(v14[0]);
v5 = *((_QWORD *)this + 10);
v6 = *((_QWORD *)this + 11);
v18 = (char *)this + 40;
std::string::_M_append((char *)this + 40, v5, v6);
v7 = v16;
while ( 1 )
{
v8 = (const Json::Value *)Json::Value::operator[](a2, (long long)v7);
Json::BuiltStyledStreamWriter::writeCommentBeforeValue(this, v8);
Json::valueToQuotedStringN[abi:cxx11](
(long long)v14,
*(unsigned __int8 **)v7,
*((_QWORD *)v7 + 1),
(unsigned __int8)(*((_BYTE *)this + 216) & 8) >> 3);
Json::BuiltStyledStreamWriter::writeWithIndent(this);
if ( v14[0] != v15 )
operator delete(v14[0]);
std::__ostream_insert<char,std::char_traits<char>>(
*((_QWORD *)this + 1),
*((_QWORD *)this + 15),
*((_QWORD *)this + 16));
Json::BuiltStyledStreamWriter::writeValue(this, v8);
v7 += 32;
if ( v7 == v17 )
break;
std::__ostream_insert<char,std::char_traits<char>>(*((_QWORD *)this + 1), ",", 1LL);
Json::BuiltStyledStreamWriter::writeCommentAfterValueOnSameLine(this, v8);
}
Json::BuiltStyledStreamWriter::writeCommentAfterValueOnSameLine(this, v8);
std::string::resize(v18, *((_QWORD *)this + 6) - *((_QWORD *)this + 11), 0LL);
v14[0] = v15;
std::string::_M_construct<char const*>(v14, "}", "");
Json::BuiltStyledStreamWriter::writeWithIndent(this);
v13 = v14[0];
if ( v14[0] != v15 )
goto LABEL_24;
}
std::vector<std::string>::~vector(&v16);
return;
default:
return;
}
}
| writeValue:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x48
MOV R14,RSI
MOV RBX,RDI
MOV RDI,RSI
CALL 0x00176e0e
CMP EAX,0x7
JA 0x0017e4c0
MOV EAX,EAX
LEA RCX,[0x189870]
MOVSXD RAX,dword ptr [RCX + RAX*0x4]
ADD RAX,RCX
switchD:
JMP RAX
caseD_0:
LEA RSI,[RBX + 0x98]
MOV RDI,RBX
ADD RSP,0x48
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
JMP 0x0017e70c
caseD_4:
LEA RSI,[RSP + 0x20]
LEA RDX,[RSP + 0x40]
MOV RDI,R14
CALL 0x0017714c
TEST AL,AL
JZ 0x0017e48c
MOV RSI,qword ptr [RSP + 0x20]
MOV RDX,qword ptr [RSP + 0x40]
SUB RDX,RSI
MOV AL,byte ptr [RBX + 0xd8]
AND AL,0x8
SHR AL,0x3
MOVZX ECX,AL
MOV R14,RSP
MOV RDI,R14
CALL 0x0017bc16
LAB_0017e1e6:
MOV RDI,RBX
MOV RSI,R14
CALL 0x0017e70c
LAB_0017e1f1:
JMP 0x0017e39e
caseD_2:
MOV RDI,R14
CALL 0x00177ad2
MOV R14,RSP
MOV RDI,R14
MOV RSI,RAX
CALL 0x0017b935
LAB_0017e20c:
MOV RDI,RBX
MOV RSI,R14
CALL 0x0017e70c
LAB_0017e217:
JMP 0x0017e39e
caseD_3:
MOV RDI,R14
CALL 0x00177ad8
MOV AL,byte ptr [RBX + 0xd8]
AND AL,0x4
SHR AL,0x2
MOV EDX,dword ptr [RBX + 0xdc]
MOV ECX,dword ptr [RBX + 0xe0]
MOVZX ESI,AL
MOV R14,RSP
MOV RDI,R14
CALL 0x0017b9c7
LAB_0017e249:
MOV RDI,RBX
MOV RSI,R14
CALL 0x0017e70c
LAB_0017e254:
JMP 0x0017e39e
caseD_7:
LEA R15,[RSP + 0x20]
MOV RDI,R15
MOV RSI,R14
CALL 0x001795a8
MOV RAX,qword ptr [R15]
CMP RAX,qword ptr [R15 + 0x8]
JZ 0x0017e4cf
LEA RAX,[RSP + 0x10]
MOV qword ptr [RAX + -0x10],RAX
LAB_0017e27f:
LEA RSI,[0x18993d]
LEA RDX,[0x18993e]
MOV RDI,RSP
CALL 0x0011e620
LAB_0017e295:
MOV RSI,RSP
MOV RDI,RBX
CALL 0x0017e9fc
MOV RDI,qword ptr [RSP]
LEA RAX,[RSP + 0x10]
CMP RDI,RAX
JZ 0x0017e2b3
CALL 0x0011f0e0
LAB_0017e2b3:
LEA RDI,[RBX + 0x28]
MOV RSI,qword ptr [RBX + 0x50]
MOV RDX,qword ptr [RBX + 0x58]
LAB_0017e2bf:
MOV qword ptr [RSP + 0x38],RDI
CALL 0x001201d0
MOV R12,qword ptr [RSP + 0x20]
MOV R13,RSP
LEA RBP,[0x1881fb]
LAB_0017e2d8:
MOV RDI,R14
MOV RSI,R12
CALL 0x00178dc0
MOV R15,RAX
MOV RDI,RBX
MOV RSI,RAX
CALL 0x0017e00e
MOV RSI,qword ptr [R12]
MOV RDX,qword ptr [R12 + 0x8]
MOV AL,byte ptr [RBX + 0xd8]
AND AL,0x8
SHR AL,0x3
LAB_0017e305:
MOVZX ECX,AL
MOV RDI,R13
CALL 0x0017bc16
LAB_0017e310:
MOV RDI,RBX
MOV RSI,R13
CALL 0x0017e9fc
MOV RDI,qword ptr [RSP]
LEA RAX,[RSP + 0x10]
CMP RDI,RAX
JZ 0x0017e32e
CALL 0x0011f0e0
LAB_0017e32e:
MOV RDI,qword ptr [RBX + 0x8]
MOV RSI,qword ptr [RBX + 0x78]
MOV RDX,qword ptr [RBX + 0x80]
LAB_0017e33d:
CALL 0x0011f400
MOV RDI,RBX
MOV RSI,R15
CALL 0x0017e152
ADD R12,0x20
CMP R12,qword ptr [RSP + 0x28]
JZ 0x0017e425
MOV RDI,qword ptr [RBX + 0x8]
MOV EDX,0x1
MOV RSI,RBP
CALL 0x0011f400
MOV RDI,RBX
MOV RSI,R15
CALL 0x0017e598
LAB_0017e378:
JMP 0x0017e2d8
caseD_1:
MOV RDI,R14
CALL 0x00177acc
MOV R14,RSP
MOV RDI,R14
MOV RSI,RAX
CALL 0x0017b838
LAB_0017e393:
MOV RDI,RBX
MOV RSI,R14
CALL 0x0017e70c
LAB_0017e39e:
LEA RAX,[RSP + 0x10]
MOV RDI,qword ptr [RAX + -0x10]
CMP RDI,RAX
JNZ 0x0017e4bb
JMP 0x0017e4c0
caseD_5:
MOV RDI,R14
CALL 0x00177caa
LEA RCX,[0x18392e]
LEA RSI,[0x183933]
TEST AL,AL
CMOVNZ RSI,RCX
LEA R15,[RSP + 0x10]
MOV qword ptr [R15 + -0x10],R15
MOVZX EDX,AL
XOR RDX,0x5
ADD RDX,RSI
MOV R14,RSP
MOV RDI,R14
CALL 0x0011e620
LAB_0017e3ef:
MOV RDI,RBX
MOV RSI,R14
CALL 0x0017e70c
LAB_0017e3fa:
MOV RDI,qword ptr [RSP]
CMP RDI,R15
JNZ 0x0017e4bb
JMP 0x0017e4c0
caseD_6:
MOV RDI,RBX
MOV RSI,R14
ADD RSP,0x48
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
JMP 0x0017e732
LAB_0017e425:
MOV RDI,RBX
MOV RSI,R15
CALL 0x0017e598
MOV RSI,qword ptr [RBX + 0x30]
SUB RSI,qword ptr [RBX + 0x58]
LAB_0017e438:
MOV RDI,qword ptr [RSP + 0x38]
XOR EDX,EDX
CALL 0x0011e5b0
MOV RDI,RSP
LEA RAX,[RSP + 0x10]
MOV qword ptr [RDI],RAX
LAB_0017e44f:
LEA RSI,[0x183680]
LEA RDX,[0x183681]
CALL 0x0011e620
LAB_0017e462:
MOV RSI,RSP
MOV RDI,RBX
CALL 0x0017e9fc
MOV RDI,qword ptr [RSP]
LEA RAX,[RSP + 0x10]
CMP RDI,RAX
JZ 0x0017e480
LAB_0017e47b:
CALL 0x0011f0e0
LAB_0017e480:
LEA RDI,[RSP + 0x20]
CALL 0x0011ebd0
JMP 0x0017e4c0
LAB_0017e48c:
LEA R14,[RSP + 0x10]
MOV qword ptr [R14 + -0x10],R14
LAB_0017e495:
LEA RDX,[0x189a2a]
MOV RDI,RSP
MOV RSI,RDX
CALL 0x0011e620
LAB_0017e4a7:
MOV RSI,RSP
MOV RDI,RBX
CALL 0x0017e70c
MOV RDI,qword ptr [RSP]
CMP RDI,R14
JZ 0x0017e4c0
LAB_0017e4bb:
CALL 0x0011f0e0
default:
ADD RSP,0x48
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
LAB_0017e4cf:
LEA R14,[RSP + 0x10]
MOV qword ptr [R14 + -0x10],R14
LAB_0017e4d8:
LEA RSI,[0x18367f]
LEA RDX,[0x183681]
MOV RDI,RSP
CALL 0x0011e620
LAB_0017e4ee:
MOV RSI,RSP
MOV RDI,RBX
CALL 0x0017e70c
LAB_0017e4f9:
MOV RDI,qword ptr [RSP]
CMP RDI,R14
JNZ 0x0017e47b
JMP 0x0017e480
|
/* Json::BuiltStyledStreamWriter::writeValue(Json::Value const&) */
void __thiscall
Json::BuiltStyledStreamWriter::writeValue(BuiltStyledStreamWriter *this,Value *param_1)
{
char cVar1;
byte bVar2;
int4 uVar3;
ulong uVar4;
Value *pVVar5;
long lVar6;
char *pcVar7;
string *psVar8;
int1 *local_78 [2];
int1 local_68 [16];
string *local_58;
string *local_50;
string *local_40;
char *local_38;
uVar3 = Value::type(param_1);
switch(uVar3) {
case 0:
pushValue(this,(string *)(this + 0x98));
return;
case 1:
lVar6 = Value::asLargestInt(param_1);
valueToString_abi_cxx11_((Json *)local_78,lVar6);
/* try { // try from 0017e393 to 0017e39d has its CatchHandler @ 0017e54c */
pushValue(this,(string *)local_78);
break;
case 2:
uVar4 = Value::asLargestUInt(param_1);
valueToString_abi_cxx11_((Json *)local_78,uVar4);
/* try { // try from 0017e20c to 0017e216 has its CatchHandler @ 0017e550 */
pushValue(this,(string *)local_78);
break;
case 3:
Value::asDouble(param_1);
(anonymous_namespace)::valueToString_abi_cxx11_
((_anonymous_namespace_ *)local_78,((byte)this[0xd8] & 4) >> 2,
*(int4 *)(this + 0xdc),*(int4 *)(this + 0xe0));
/* try { // try from 0017e249 to 0017e253 has its CatchHandler @ 0017e54e */
pushValue(this,(string *)local_78);
break;
case 4:
cVar1 = Value::getString(param_1,(char **)&local_58,&local_38);
if (cVar1 != '\0') {
valueToQuotedStringN_abi_cxx11_
((Json *)local_78,(char *)local_58,(long)local_38 - (long)local_58,
(bool)(((byte)this[0xd8] & 8) >> 3));
/* try { // try from 0017e1e6 to 0017e1f0 has its CatchHandler @ 0017e52e */
pushValue(this,(string *)local_78);
break;
}
local_78[0] = local_68;
/* try { // try from 0017e495 to 0017e4a6 has its CatchHandler @ 0017e529 */
std::__cxx11::string::_M_construct<char_const*>(local_78,&DAT_00189a2a);
/* try { // try from 0017e4a7 to 0017e4b1 has its CatchHandler @ 0017e51b */
pushValue(this,(string *)local_78);
if (local_78[0] == local_68) {
return;
}
goto LAB_0017e4bb;
case 5:
bVar2 = Value::asBool(param_1);
pcVar7 = "false";
if (bVar2 != 0) {
pcVar7 = "true";
}
local_78[0] = local_68;
std::__cxx11::string::_M_construct<char_const*>(local_78,pcVar7,pcVar7 + ((ulong)bVar2 ^ 5));
/* try { // try from 0017e3ef to 0017e3f9 has its CatchHandler @ 0017e53e */
pushValue(this,(string *)local_78);
if (local_78[0] == local_68) {
return;
}
goto LAB_0017e4bb;
case 6:
writeArrayValue(this,param_1);
return;
case 7:
Value::getMemberNames_abi_cxx11_();
if (local_58 == local_50) {
local_78[0] = local_68;
/* try { // try from 0017e4d8 to 0017e4ed has its CatchHandler @ 0017e519 */
std::__cxx11::string::_M_construct<char_const*>(local_78,"{}","");
/* try { // try from 0017e4ee to 0017e4f8 has its CatchHandler @ 0017e50b */
pushValue(this,(string *)local_78);
if (local_78[0] != local_68) goto LAB_0017e47b;
}
else {
local_78[0] = local_68;
/* try { // try from 0017e27f to 0017e294 has its CatchHandler @ 0017e53c */
std::__cxx11::string::_M_construct<char_const*>(local_78,&DAT_0018993d,&DAT_0018993e);
/* try { // try from 0017e295 to 0017e29f has its CatchHandler @ 0017e53a */
writeWithIndent(this,(string *)local_78);
if (local_78[0] != local_68) {
operator_delete(local_78[0]);
}
local_40 = (string *)(this + 0x28);
/* try { // try from 0017e2bf to 0017e2c8 has its CatchHandler @ 0017e538 */
std::__cxx11::string::_M_append(local_40,*(char **)(this + 0x50),*(ulong *)(this + 0x58));
psVar8 = local_58;
while( true ) {
/* try { // try from 0017e2d8 to 0017e2f0 has its CatchHandler @ 0017e582 */
pVVar5 = (Value *)Value::operator[](param_1,psVar8);
writeCommentBeforeValue(this,pVVar5);
/* try { // try from 0017e305 to 0017e30f has its CatchHandler @ 0017e568 */
valueToQuotedStringN_abi_cxx11_
((Json *)local_78,*(char **)psVar8,*(ulong *)(psVar8 + 8),
(bool)(((byte)this[0xd8] & 8) >> 3));
/* try { // try from 0017e310 to 0017e31a has its CatchHandler @ 0017e56a */
writeWithIndent(this,(string *)local_78);
if (local_78[0] != local_68) {
operator_delete(local_78[0]);
}
/* try { // try from 0017e33d to 0017e377 has its CatchHandler @ 0017e582 */
std::__ostream_insert<char,std::char_traits<char>>
(*(ostream **)(this + 8),*(char **)(this + 0x78),*(long *)(this + 0x80));
writeValue(this,pVVar5);
psVar8 = psVar8 + 0x20;
if (psVar8 == local_50) break;
std::__ostream_insert<char,std::char_traits<char>>(*(ostream **)(this + 8),",",1);
writeCommentAfterValueOnSameLine(this,pVVar5);
}
/* try { // try from 0017e425 to 0017e42f has its CatchHandler @ 0017e536 */
writeCommentAfterValueOnSameLine(this,pVVar5);
/* try { // try from 0017e438 to 0017e443 has its CatchHandler @ 0017e534 */
std::__cxx11::string::resize(local_40,*(long *)(this + 0x30) - *(long *)(this + 0x58),'\0');
local_78[0] = local_68;
/* try { // try from 0017e44f to 0017e461 has its CatchHandler @ 0017e532 */
std::__cxx11::string::_M_construct<char_const*>(local_78,"}","");
/* try { // try from 0017e462 to 0017e46c has its CatchHandler @ 0017e530 */
writeWithIndent(this,(string *)local_78);
if (local_78[0] != local_68) {
LAB_0017e47b:
operator_delete(local_78[0]);
}
}
std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>::~vector
((vector<std::__cxx11::string,std::allocator<std::__cxx11::string>> *)&local_58);
default:
goto switchD_0017e187_default;
}
if (local_78[0] != local_68) {
LAB_0017e4bb:
operator_delete(local_78[0]);
}
switchD_0017e187_default:
return;
}
| |
45,260 | allocate_dynamic | eloqsql/mysys/array.c | my_bool allocate_dynamic(DYNAMIC_ARRAY *array, uint max_elements)
{
DBUG_ENTER("allocate_dynamic");
if (max_elements >= array->max_element)
{
uint size;
uchar *new_ptr;
size= (max_elements + array->alloc_increment)/array->alloc_increment;
size*= array->alloc_increment;
if (array->malloc_flags & MY_INIT_BUFFER_USED)
{
/*
In this senerio, the buffer is statically preallocated,
so we have to create an all-new malloc since we overflowed
*/
if (!(new_ptr= (uchar *) my_malloc(array->m_psi_key, size *
array->size_of_element,
MYF(array->malloc_flags | MY_WME))))
DBUG_RETURN(0);
memcpy(new_ptr, array->buffer,
array->elements * array->size_of_element);
array->malloc_flags&= ~MY_INIT_BUFFER_USED;
}
else if (!(new_ptr= (uchar*) my_realloc(array->m_psi_key,
array->buffer,size *
array->size_of_element,
MYF(MY_WME | MY_ALLOW_ZERO_PTR |
array->malloc_flags))))
DBUG_RETURN(TRUE);
array->buffer= new_ptr;
array->max_element= size;
}
DBUG_RETURN(FALSE);
} | O0 | c | allocate_dynamic:
pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movq %rdi, -0x10(%rbp)
movl %esi, -0x14(%rbp)
movl -0x14(%rbp), %eax
movq -0x10(%rbp), %rcx
cmpl 0xc(%rcx), %eax
jb 0x81235
movl -0x14(%rbp), %eax
movq -0x10(%rbp), %rcx
addl 0x10(%rcx), %eax
movq -0x10(%rbp), %rcx
xorl %edx, %edx
divl 0x10(%rcx)
movl %eax, -0x18(%rbp)
movq -0x10(%rbp), %rax
movl 0x10(%rax), %eax
imull -0x18(%rbp), %eax
movl %eax, -0x18(%rbp)
movq -0x10(%rbp), %rax
movq 0x20(%rax), %rax
andq $0x100, %rax # imm = 0x100
cmpq $0x0, %rax
je 0x811de
movq -0x10(%rbp), %rax
movl 0x18(%rax), %edi
movl -0x18(%rbp), %eax
movq -0x10(%rbp), %rcx
imull 0x14(%rcx), %eax
movl %eax, %eax
movl %eax, %esi
movq -0x10(%rbp), %rax
movq 0x20(%rax), %rdx
orq $0x10, %rdx
callq 0x7c9f0
movq %rax, -0x20(%rbp)
cmpq $0x0, %rax
jne 0x811a3
jmp 0x8119a
movb $0x0, -0x1(%rbp)
jmp 0x8123b
movq -0x20(%rbp), %rdi
movq -0x10(%rbp), %rax
movq (%rax), %rsi
movq -0x10(%rbp), %rax
movl 0x8(%rax), %eax
movq -0x10(%rbp), %rcx
imull 0x14(%rcx), %eax
movl %eax, %eax
movl %eax, %edx
callq 0x360b0
movq -0x10(%rbp), %rax
movabsq $0xfffffeff, %rcx # imm = 0xFFFFFEFF
andq 0x20(%rax), %rcx
movq %rcx, 0x20(%rax)
jmp 0x81220
movq -0x10(%rbp), %rax
movl 0x18(%rax), %edi
movq -0x10(%rbp), %rax
movq (%rax), %rsi
movl -0x18(%rbp), %eax
movq -0x10(%rbp), %rcx
imull 0x14(%rcx), %eax
movl %eax, %eax
movl %eax, %edx
movq -0x10(%rbp), %rax
movq 0x20(%rax), %rcx
orq $0x50, %rcx
callq 0x7cbc0
movq %rax, -0x20(%rbp)
cmpq $0x0, %rax
jne 0x8121e
jmp 0x81218
movb $0x1, -0x1(%rbp)
jmp 0x8123b
jmp 0x81220
movq -0x20(%rbp), %rcx
movq -0x10(%rbp), %rax
movq %rcx, (%rax)
movl -0x18(%rbp), %ecx
movq -0x10(%rbp), %rax
movl %ecx, 0xc(%rax)
jmp 0x81237
movb $0x0, -0x1(%rbp)
movb -0x1(%rbp), %al
addq $0x20, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
| allocate_dynamic:
push rbp
mov rbp, rsp
sub rsp, 20h
mov [rbp+var_10], rdi
mov [rbp+var_14], esi
mov eax, [rbp+var_14]
mov rcx, [rbp+var_10]
cmp eax, [rcx+0Ch]
jb loc_81235
mov eax, [rbp+var_14]
mov rcx, [rbp+var_10]
add eax, [rcx+10h]
mov rcx, [rbp+var_10]
xor edx, edx
div dword ptr [rcx+10h]
mov [rbp+var_18], eax
mov rax, [rbp+var_10]
mov eax, [rax+10h]
imul eax, [rbp+var_18]
mov [rbp+var_18], eax
mov rax, [rbp+var_10]
mov rax, [rax+20h]
and rax, 100h
cmp rax, 0
jz short loc_811DE
mov rax, [rbp+var_10]
mov edi, [rax+18h]
mov eax, [rbp+var_18]
mov rcx, [rbp+var_10]
imul eax, [rcx+14h]
mov eax, eax
mov esi, eax
mov rax, [rbp+var_10]
mov rdx, [rax+20h]
or rdx, 10h
call my_malloc
mov [rbp+var_20], rax
cmp rax, 0
jnz short loc_811A3
jmp short $+2
loc_8119A:
mov [rbp+var_1], 0
jmp loc_8123B
loc_811A3:
mov rdi, [rbp+var_20]
mov rax, [rbp+var_10]
mov rsi, [rax]
mov rax, [rbp+var_10]
mov eax, [rax+8]
mov rcx, [rbp+var_10]
imul eax, [rcx+14h]
mov eax, eax
mov edx, eax
call _memcpy
mov rax, [rbp+var_10]
mov rcx, 0FFFFFEFFh
and rcx, [rax+20h]
mov [rax+20h], rcx
jmp short loc_81220
loc_811DE:
mov rax, [rbp+var_10]
mov edi, [rax+18h]
mov rax, [rbp+var_10]
mov rsi, [rax]
mov eax, [rbp+var_18]
mov rcx, [rbp+var_10]
imul eax, [rcx+14h]
mov eax, eax
mov edx, eax
mov rax, [rbp+var_10]
mov rcx, [rax+20h]
or rcx, 50h
call my_realloc
mov [rbp+var_20], rax
cmp rax, 0
jnz short loc_8121E
jmp short $+2
loc_81218:
mov [rbp+var_1], 1
jmp short loc_8123B
loc_8121E:
jmp short $+2
loc_81220:
mov rcx, [rbp+var_20]
mov rax, [rbp+var_10]
mov [rax], rcx
mov ecx, [rbp+var_18]
mov rax, [rbp+var_10]
mov [rax+0Ch], ecx
loc_81235:
jmp short $+2
loc_81237:
mov [rbp+var_1], 0
loc_8123B:
mov al, [rbp+var_1]
add rsp, 20h
pop rbp
retn
| char allocate_dynamic(long long *a1, unsigned int a2)
{
long long v3; // [rsp+0h] [rbp-20h]
unsigned int v4; // [rsp+8h] [rbp-18h]
if ( a2 < *((_DWORD *)a1 + 3) )
return 0;
v4 = (*((_DWORD *)a1 + 4) + a2) / *((_DWORD *)a1 + 4) * *((_DWORD *)a1 + 4);
if ( (a1[4] & 0x100) == 0 )
{
v3 = my_realloc(*((_DWORD *)a1 + 6), *a1, *((_DWORD *)a1 + 5) * v4, *((_BYTE *)a1 + 32) | 0x50u);
if ( !v3 )
return 1;
goto LABEL_8;
}
v3 = my_malloc(*((_DWORD *)a1 + 6), *((_DWORD *)a1 + 5) * v4, *((_DWORD *)a1 + 8) | 0x10u);
if ( v3 )
{
memcpy(v3, *a1, (unsigned int)(*((_DWORD *)a1 + 5) * *((_DWORD *)a1 + 2)));
a1[4] &= 0xFFFFFEFFuLL;
LABEL_8:
*a1 = v3;
*((_DWORD *)a1 + 3) = v4;
return 0;
}
return 0;
}
| allocate_dynamic:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x20
MOV qword ptr [RBP + -0x10],RDI
MOV dword ptr [RBP + -0x14],ESI
MOV EAX,dword ptr [RBP + -0x14]
MOV RCX,qword ptr [RBP + -0x10]
CMP EAX,dword ptr [RCX + 0xc]
JC 0x00181235
MOV EAX,dword ptr [RBP + -0x14]
MOV RCX,qword ptr [RBP + -0x10]
ADD EAX,dword ptr [RCX + 0x10]
MOV RCX,qword ptr [RBP + -0x10]
XOR EDX,EDX
DIV dword ptr [RCX + 0x10]
MOV dword ptr [RBP + -0x18],EAX
MOV RAX,qword ptr [RBP + -0x10]
MOV EAX,dword ptr [RAX + 0x10]
IMUL EAX,dword ptr [RBP + -0x18]
MOV dword ptr [RBP + -0x18],EAX
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX + 0x20]
AND RAX,0x100
CMP RAX,0x0
JZ 0x001811de
MOV RAX,qword ptr [RBP + -0x10]
MOV EDI,dword ptr [RAX + 0x18]
MOV EAX,dword ptr [RBP + -0x18]
MOV RCX,qword ptr [RBP + -0x10]
IMUL EAX,dword ptr [RCX + 0x14]
MOV EAX,EAX
MOV ESI,EAX
MOV RAX,qword ptr [RBP + -0x10]
MOV RDX,qword ptr [RAX + 0x20]
OR RDX,0x10
CALL 0x0017c9f0
MOV qword ptr [RBP + -0x20],RAX
CMP RAX,0x0
JNZ 0x001811a3
JMP 0x0018119a
LAB_0018119a:
MOV byte ptr [RBP + -0x1],0x0
JMP 0x0018123b
LAB_001811a3:
MOV RDI,qword ptr [RBP + -0x20]
MOV RAX,qword ptr [RBP + -0x10]
MOV RSI,qword ptr [RAX]
MOV RAX,qword ptr [RBP + -0x10]
MOV EAX,dword ptr [RAX + 0x8]
MOV RCX,qword ptr [RBP + -0x10]
IMUL EAX,dword ptr [RCX + 0x14]
MOV EAX,EAX
MOV EDX,EAX
CALL 0x001360b0
MOV RAX,qword ptr [RBP + -0x10]
MOV RCX,0xfffffeff
AND RCX,qword ptr [RAX + 0x20]
MOV qword ptr [RAX + 0x20],RCX
JMP 0x00181220
LAB_001811de:
MOV RAX,qword ptr [RBP + -0x10]
MOV EDI,dword ptr [RAX + 0x18]
MOV RAX,qword ptr [RBP + -0x10]
MOV RSI,qword ptr [RAX]
MOV EAX,dword ptr [RBP + -0x18]
MOV RCX,qword ptr [RBP + -0x10]
IMUL EAX,dword ptr [RCX + 0x14]
MOV EAX,EAX
MOV EDX,EAX
MOV RAX,qword ptr [RBP + -0x10]
MOV RCX,qword ptr [RAX + 0x20]
OR RCX,0x50
CALL 0x0017cbc0
MOV qword ptr [RBP + -0x20],RAX
CMP RAX,0x0
JNZ 0x0018121e
JMP 0x00181218
LAB_00181218:
MOV byte ptr [RBP + -0x1],0x1
JMP 0x0018123b
LAB_0018121e:
JMP 0x00181220
LAB_00181220:
MOV RCX,qword ptr [RBP + -0x20]
MOV RAX,qword ptr [RBP + -0x10]
MOV qword ptr [RAX],RCX
MOV ECX,dword ptr [RBP + -0x18]
MOV RAX,qword ptr [RBP + -0x10]
MOV dword ptr [RAX + 0xc],ECX
LAB_00181235:
JMP 0x00181237
LAB_00181237:
MOV byte ptr [RBP + -0x1],0x0
LAB_0018123b:
MOV AL,byte ptr [RBP + -0x1]
ADD RSP,0x20
POP RBP
RET
|
int1 allocate_dynamic(int8 *param_1,uint param_2)
{
int iVar1;
void *local_28;
if (*(uint *)((long)param_1 + 0xc) <= param_2) {
iVar1 = *(int *)(param_1 + 2) * ((param_2 + *(int *)(param_1 + 2)) / *(uint *)(param_1 + 2));
if ((param_1[4] & 0x100) == 0) {
local_28 = (void *)my_realloc(*(int4 *)(param_1 + 3),*param_1,
iVar1 * *(int *)((long)param_1 + 0x14),param_1[4] | 0x50);
if (local_28 == (void *)0x0) {
return 1;
}
}
else {
local_28 = (void *)my_malloc(*(int4 *)(param_1 + 3),
iVar1 * *(int *)((long)param_1 + 0x14),param_1[4] | 0x10);
if (local_28 == (void *)0x0) {
return 0;
}
memcpy(local_28,(void *)*param_1,
(ulong)(uint)(*(int *)(param_1 + 1) * *(int *)((long)param_1 + 0x14)));
param_1[4] = param_1[4] & 0xfffffeff;
}
*param_1 = local_28;
*(int *)((long)param_1 + 0xc) = iVar1;
}
return 0;
}
| |
45,261 | bf_cmp | bluesky950520[P]quickjs/libbf.c | int bf_cmp(const bf_t *a, const bf_t *b)
{
int res;
if (a->expn == BF_EXP_NAN || b->expn == BF_EXP_NAN) {
res = 2;
} else if (a->sign != b->sign) {
if (a->expn == BF_EXP_ZERO && b->expn == BF_EXP_ZERO)
res = 0;
else
res = 1 - 2 * a->sign;
} else {
res = bf_cmpu(a, b);
if (a->sign)
res = -res;
}
return res;
} | O0 | c | bf_cmp:
subq $0x18, %rsp
movq %rdi, 0x10(%rsp)
movq %rsi, 0x8(%rsp)
movq 0x10(%rsp), %rax
movabsq $0x7fffffffffffffff, %rcx # imm = 0x7FFFFFFFFFFFFFFF
cmpq %rcx, 0x10(%rax)
je 0xed4f8
movq 0x8(%rsp), %rax
movabsq $0x7fffffffffffffff, %rcx # imm = 0x7FFFFFFFFFFFFFFF
cmpq %rcx, 0x10(%rax)
jne 0xed505
movl $0x2, 0x4(%rsp)
jmp 0xed58e
movq 0x10(%rsp), %rax
movl 0x8(%rax), %eax
movq 0x8(%rsp), %rcx
cmpl 0x8(%rcx), %eax
je 0xed562
movq 0x10(%rsp), %rax
movabsq $-0x8000000000000000, %rcx # imm = 0x8000000000000000
cmpq %rcx, 0x10(%rax)
jne 0xed54b
movq 0x8(%rsp), %rax
movabsq $-0x8000000000000000, %rcx # imm = 0x8000000000000000
cmpq %rcx, 0x10(%rax)
jne 0xed54b
movl $0x0, 0x4(%rsp)
jmp 0xed560
movq 0x10(%rsp), %rax
movl 0x8(%rax), %ecx
shll %ecx
movl $0x1, %eax
subl %ecx, %eax
movl %eax, 0x4(%rsp)
jmp 0xed58c
movq 0x10(%rsp), %rdi
movq 0x8(%rsp), %rsi
callq 0xed230
movl %eax, 0x4(%rsp)
movq 0x10(%rsp), %rax
cmpl $0x0, 0x8(%rax)
je 0xed58a
xorl %eax, %eax
subl 0x4(%rsp), %eax
movl %eax, 0x4(%rsp)
jmp 0xed58c
jmp 0xed58e
movl 0x4(%rsp), %eax
addq $0x18, %rsp
retq
nopw (%rax,%rax)
| bf_cmp:
sub rsp, 18h
mov [rsp+18h+var_8], rdi
mov [rsp+18h+var_10], rsi
mov rax, [rsp+18h+var_8]
mov rcx, 7FFFFFFFFFFFFFFFh
cmp [rax+10h], rcx
jz short loc_ED4F8
mov rax, [rsp+18h+var_10]
mov rcx, 7FFFFFFFFFFFFFFFh
cmp [rax+10h], rcx
jnz short loc_ED505
loc_ED4F8:
mov [rsp+18h+var_14], 2
jmp loc_ED58E
loc_ED505:
mov rax, [rsp+18h+var_8]
mov eax, [rax+8]
mov rcx, [rsp+18h+var_10]
cmp eax, [rcx+8]
jz short loc_ED562
mov rax, [rsp+18h+var_8]
mov rcx, 8000000000000000h
cmp [rax+10h], rcx
jnz short loc_ED54B
mov rax, [rsp+18h+var_10]
mov rcx, 8000000000000000h
cmp [rax+10h], rcx
jnz short loc_ED54B
mov [rsp+18h+var_14], 0
jmp short loc_ED560
loc_ED54B:
mov rax, [rsp+18h+var_8]
mov ecx, [rax+8]
shl ecx, 1
mov eax, 1
sub eax, ecx
mov [rsp+18h+var_14], eax
loc_ED560:
jmp short loc_ED58C
loc_ED562:
mov rdi, [rsp+18h+var_8]
mov rsi, [rsp+18h+var_10]
call bf_cmpu
mov [rsp+18h+var_14], eax
mov rax, [rsp+18h+var_8]
cmp dword ptr [rax+8], 0
jz short loc_ED58A
xor eax, eax
sub eax, [rsp+18h+var_14]
mov [rsp+18h+var_14], eax
loc_ED58A:
jmp short $+2
loc_ED58C:
jmp short $+2
loc_ED58E:
mov eax, [rsp+18h+var_14]
add rsp, 18h
retn
| long long bf_cmp(long long a1, long long a2)
{
unsigned int v3; // [rsp+4h] [rbp-14h]
if ( *(_QWORD *)(a1 + 16) == 0x7FFFFFFFFFFFFFFFLL || *(_QWORD *)(a2 + 16) == 0x7FFFFFFFFFFFFFFFLL )
{
return 2;
}
else if ( *(_DWORD *)(a1 + 8) == *(_DWORD *)(a2 + 8) )
{
v3 = bf_cmpu(a1, a2);
if ( *(_DWORD *)(a1 + 8) )
return -v3;
}
else if ( *(_QWORD *)(a1 + 16) == 0x8000000000000000LL && *(_QWORD *)(a2 + 16) == 0x8000000000000000LL )
{
return 0;
}
else
{
return (unsigned int)(1 - 2 * *(_DWORD *)(a1 + 8));
}
return v3;
}
| bf_cmp:
SUB RSP,0x18
MOV qword ptr [RSP + 0x10],RDI
MOV qword ptr [RSP + 0x8],RSI
MOV RAX,qword ptr [RSP + 0x10]
MOV RCX,0x7fffffffffffffff
CMP qword ptr [RAX + 0x10],RCX
JZ 0x001ed4f8
MOV RAX,qword ptr [RSP + 0x8]
MOV RCX,0x7fffffffffffffff
CMP qword ptr [RAX + 0x10],RCX
JNZ 0x001ed505
LAB_001ed4f8:
MOV dword ptr [RSP + 0x4],0x2
JMP 0x001ed58e
LAB_001ed505:
MOV RAX,qword ptr [RSP + 0x10]
MOV EAX,dword ptr [RAX + 0x8]
MOV RCX,qword ptr [RSP + 0x8]
CMP EAX,dword ptr [RCX + 0x8]
JZ 0x001ed562
MOV RAX,qword ptr [RSP + 0x10]
MOV RCX,-0x8000000000000000
CMP qword ptr [RAX + 0x10],RCX
JNZ 0x001ed54b
MOV RAX,qword ptr [RSP + 0x8]
MOV RCX,-0x8000000000000000
CMP qword ptr [RAX + 0x10],RCX
JNZ 0x001ed54b
MOV dword ptr [RSP + 0x4],0x0
JMP 0x001ed560
LAB_001ed54b:
MOV RAX,qword ptr [RSP + 0x10]
MOV ECX,dword ptr [RAX + 0x8]
SHL ECX,0x1
MOV EAX,0x1
SUB EAX,ECX
MOV dword ptr [RSP + 0x4],EAX
LAB_001ed560:
JMP 0x001ed58c
LAB_001ed562:
MOV RDI,qword ptr [RSP + 0x10]
MOV RSI,qword ptr [RSP + 0x8]
CALL 0x001ed230
MOV dword ptr [RSP + 0x4],EAX
MOV RAX,qword ptr [RSP + 0x10]
CMP dword ptr [RAX + 0x8],0x0
JZ 0x001ed58a
XOR EAX,EAX
SUB EAX,dword ptr [RSP + 0x4]
MOV dword ptr [RSP + 0x4],EAX
LAB_001ed58a:
JMP 0x001ed58c
LAB_001ed58c:
JMP 0x001ed58e
LAB_001ed58e:
MOV EAX,dword ptr [RSP + 0x4]
ADD RSP,0x18
RET
|
int bf_cmp(long param_1,long param_2)
{
int4 local_14;
if ((*(long *)(param_1 + 0x10) == 0x7fffffffffffffff) ||
(*(long *)(param_2 + 0x10) == 0x7fffffffffffffff)) {
local_14 = 2;
}
else if (*(int *)(param_1 + 8) == *(int *)(param_2 + 8)) {
local_14 = bf_cmpu(param_1,param_2);
if (*(int *)(param_1 + 8) != 0) {
local_14 = -local_14;
}
}
else if ((*(long *)(param_1 + 0x10) == -0x8000000000000000) &&
(*(long *)(param_2 + 0x10) == -0x8000000000000000)) {
local_14 = 0;
}
else {
local_14 = *(int *)(param_1 + 8) * -2 + 1;
}
return local_14;
}
| |
45,262 | httpclient_write_chunked | navaro[P]qoraal-tictactoe/build_O3/_deps/qoraal_http-src/src/httpclient.c | static int32_t
httpclient_write_chunked (HTTP_CLIENT_T* client, uint8_t* buffer, uint32_t length, uint32_t timeout)
{
int32_t sent_bytes = 0;
unsigned int i ;
uint32_t total = 0 ;
char chunkhead[16] ;
setsockopt (client->socket, SOL_SOCKET, SO_SNDTIMEO, (char *)&timeout, sizeof(timeout));
i = snprintf (chunkhead, 16, "%x\r\n", (unsigned int)length) ;
send (client->socket, chunkhead, i, 0);
while (length) {
#if !defined CFG_HTTPCLIENT_TLS_DISABLE
if (client->ssl) {
sent_bytes = mbedtls_ssl_write ((mbedtls_ssl_context *)client->ssl,
(unsigned char*)&buffer[total], length) ;
} else
#endif
{
sent_bytes = send (client->socket, (unsigned char*)&buffer[total], length, 0);
}
if (sent_bytes <= 0) {
DBG_MESSAGE_HTTP_CLIENT (DBG_MESSAGE_SEVERITY_ERROR,
"httpserver_write : ERROR: socket 0x%x sent_bytes %d",
client->socket, sent_bytes);
return HTTP_CLIENT_E_CONNECTION ;
} else {
total += sent_bytes ;
if (length >= (unsigned int)sent_bytes) length -= sent_bytes ;
else break ;
}
}
#if !defined CFG_HTTPCLIENT_TLS_DISABLE
if (client->ssl) {
sent_bytes = mbedtls_ssl_write ((mbedtls_ssl_context *)client->ssl,
(const unsigned char *)"\r\n", 2) ;
} else
#endif
{
send (client->socket, "\r\n", 2, 0);
}
return total ;
} | O3 | c | httpclient_write_chunked:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movl %edx, %r15d
movq %rsi, %r12
movq %rdi, %r14
leaq -0x2c(%rbp), %rcx
movl $0x1f40, (%rcx) # imm = 0x1F40
movl (%rdi), %edi
movl $0x1, %esi
movl $0x15, %edx
movl $0x4, %r8d
callq 0x6110
leaq 0x5ea0(%rip), %rdx # 0x261ae
xorl %ebx, %ebx
leaq -0x40(%rbp), %r13
movl $0x10, %esi
movq %r13, %rdi
movl %r15d, %ecx
xorl %eax, %eax
callq 0x6200
movl (%r14), %edi
movl %eax, %edx
movq %r13, %rsi
xorl %ecx, %ecx
callq 0x61c0
testl %r15d, %r15d
je 0x2035b
xorl %ebx, %ebx
movl (%r14), %edi
movl %ebx, %esi
addq %r12, %rsi
movl %r15d, %edx
xorl %ecx, %ecx
callq 0x61c0
testl %eax, %eax
jle 0x20373
addl %eax, %ebx
subl %eax, %r15d
jb 0x2035b
jne 0x2033c
movl (%r14), %edi
leaq 0x12877(%rip), %rsi # 0x32bdc
movl $0x2, %edx
xorl %ecx, %ecx
callq 0x61c0
jmp 0x20393
movl (%r14), %ecx
leaq 0x1372a(%rip), %rdx # 0x33aa7
movl $0x2, %edi
xorl %esi, %esi
movl %eax, %r8d
xorl %eax, %eax
callq 0x160ad
movl $0xfffffffe, %ebx # imm = 0xFFFFFFFE
movl %ebx, %eax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
| httpclient_write_chunked:
push rbp
mov rbp, rsp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 18h
mov r15d, edx
mov r12, rsi
mov r14, rdi
lea rcx, [rbp+var_2C]
mov dword ptr [rcx], 1F40h
mov edi, [rdi]
mov esi, 1
mov edx, 15h
mov r8d, 4
call _setsockopt
lea rdx, aEngineSetDLogg+2Eh; "%x\r\n"
xor ebx, ebx
lea r13, [rbp+var_40]
mov esi, 10h
mov rdi, r13
mov ecx, r15d
xor eax, eax
call _snprintf
mov edi, [r14]
mov edx, eax
mov rsi, r13
xor ecx, ecx
call _send
test r15d, r15d
jz short loc_2035B
xor ebx, ebx
loc_2033C:
mov edi, [r14]
mov esi, ebx
add rsi, r12
mov edx, r15d
xor ecx, ecx
call _send
test eax, eax
jle short loc_20373
add ebx, eax
sub r15d, eax
jb short loc_2035B
jnz short loc_2033C
loc_2035B:
mov edi, [r14]
lea rsi, a0+3; "\r\n"
mov edx, 2
xor ecx, ecx
call _send
jmp short loc_20393
loc_20373:
mov ecx, [r14]
lea rdx, aHttpserverWrit; "httpserver_write : ERROR: socket 0x%x s"...
mov edi, 2
xor esi, esi
mov r8d, eax
xor eax, eax
call svc_logger_type_log
mov ebx, 0FFFFFFFEh
loc_20393:
mov eax, ebx
add rsp, 18h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
| long long httpclient_write_chunked(
unsigned int *a1,
long long a2,
unsigned int a3,
__m128 a4,
__m128 a5,
__m128 a6,
__m128 a7,
double a8,
double a9,
__m128 a10,
__m128 a11)
{
unsigned int v12; // ebx
unsigned int v13; // eax
int v14; // eax
long long v15; // r9
__m128 v16; // xmm4
__m128 v17; // xmm5
bool v18; // cf
char v20[20]; // [rsp+0h] [rbp-40h] BYREF
int v21[11]; // [rsp+14h] [rbp-2Ch] BYREF
v21[0] = 8000;
setsockopt(*a1, 1LL, 21LL, v21, 4LL);
v12 = 0;
*(double *)a4.m128_u64 = snprintf(v20, 16LL, "%x\r\n", a3);
send(*a1, v20, v13, 0LL);
if ( a3 )
{
v12 = 0;
while ( 1 )
{
v14 = send(*a1, a2 + v12, a3, 0LL);
if ( v14 <= 0 )
break;
v12 += v14;
v18 = a3 < v14;
a3 -= v14;
if ( v18 || !a3 )
goto LABEL_6;
}
svc_logger_type_log(
2LL,
0,
(long long)aHttpserverWrit,
*a1,
(unsigned int)v14,
v15,
a4,
a5,
a6,
a7,
v16,
v17,
a10,
a11,
v20[0]);
return (unsigned int)-2;
}
else
{
LABEL_6:
send(*a1, &a0[3], 2LL, 0LL);
}
return v12;
}
| httpclient_write_chunked:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x18
MOV R15D,EDX
MOV R12,RSI
MOV R14,RDI
LEA RCX,[RBP + -0x2c]
MOV dword ptr [RCX],0x1f40
MOV EDI,dword ptr [RDI]
MOV ESI,0x1
MOV EDX,0x15
MOV R8D,0x4
CALL 0x00106110
LEA RDX,[0x1261ae]
XOR EBX,EBX
LEA R13,[RBP + -0x40]
MOV ESI,0x10
MOV RDI,R13
MOV ECX,R15D
XOR EAX,EAX
CALL 0x00106200
MOV EDI,dword ptr [R14]
MOV EDX,EAX
MOV RSI,R13
XOR ECX,ECX
CALL 0x001061c0
TEST R15D,R15D
JZ 0x0012035b
XOR EBX,EBX
LAB_0012033c:
MOV EDI,dword ptr [R14]
MOV ESI,EBX
ADD RSI,R12
MOV EDX,R15D
XOR ECX,ECX
CALL 0x001061c0
TEST EAX,EAX
JLE 0x00120373
ADD EBX,EAX
SUB R15D,EAX
JC 0x0012035b
JNZ 0x0012033c
LAB_0012035b:
MOV EDI,dword ptr [R14]
LEA RSI,[0x132bdc]
MOV EDX,0x2
XOR ECX,ECX
CALL 0x001061c0
JMP 0x00120393
LAB_00120373:
MOV ECX,dword ptr [R14]
LEA RDX,[0x133aa7]
MOV EDI,0x2
XOR ESI,ESI
MOV R8D,EAX
XOR EAX,EAX
CALL 0x001160ad
MOV EBX,0xfffffffe
LAB_00120393:
MOV EAX,EBX
ADD RSP,0x18
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
|
uint httpclient_write_chunked(int *param_1,long param_2,uint param_3)
{
uint uVar1;
ulong uVar2;
uint uVar3;
uint uVar4;
uint uVar5;
size_t __n;
char local_48 [20];
int4 local_34;
__n = (size_t)param_3;
local_34 = 8000;
setsockopt(*param_1,1,0x15,&local_34,4);
uVar3 = 0;
uVar1 = snprintf(local_48,0x10,s_engine_set__d_logging_instance_0_00126180 + 0x2e);
send(*param_1,local_48,(ulong)uVar1,0);
if (param_3 != 0) {
uVar3 = 0;
do {
uVar4 = (uint)__n;
uVar2 = send(*param_1,(void *)((ulong)uVar3 + param_2),__n,0);
uVar1 = (uint)uVar2;
if ((int)uVar1 < 1) {
svc_logger_type_log(2,0,s_httpserver_write___ERROR__socket_00133aa7,*param_1,
uVar2 & 0xffffffff);
return 0xfffffffe;
}
uVar3 = uVar3 + uVar1;
uVar5 = uVar4 - uVar1;
__n = (size_t)uVar5;
} while ((uVar1 <= uVar4) && (uVar5 != 0));
}
send(*param_1,&DAT_00132bdc,2,0);
return uVar3;
}
| |
45,263 | findPeaks::argsort(std::vector<double, std::allocator<double>> const&) | giladroyz[P]FindPeaks/src/cpp/find_peaks.cpp | std::vector<size_t> argsort(const std::vector<double> &x) {
std::vector<size_t> idx(x.size());
std::iota(idx.begin(), idx.end(), 0);
stable_sort(idx.begin(), idx.end(), [&x](size_t i1, size_t i2) { return x[i1] < x[i2]; });
return idx;
} | O2 | cpp | findPeaks::argsort(std::vector<double, std::allocator<double>> const&):
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rsi, %r14
movq %rdi, %rbx
movq 0x8(%rsi), %rsi
subq (%r14), %rsi
sarq $0x3, %rsi
movq %rsp, %rdx
callq 0x2f53e
movq (%rbx), %r12
movq 0x8(%rbx), %r15
xorl %eax, %eax
xorl %ecx, %ecx
leaq (%r12,%rax), %rdx
cmpq %r15, %rdx
je 0x2df23
movq %rcx, (%r12,%rcx,8)
incq %rcx
addq $0x8, %rax
jmp 0x2df0d
cmpq %r15, %r12
je 0x2df82
movq %r15, %rax
subq %r12, %rax
sarq $0x3, %rax
incq %rax
pushq $0x2
popq %rcx
cqto
idivq %rcx
movq %rsp, %rdi
movq %r12, %rsi
movq %rax, %rdx
callq 0x2f9d8
movq 0x10(%rsp), %rdx
testq %rdx, %rdx
je 0x2df6a
movq 0x8(%rsp), %rcx
movq %r12, %rdi
movq %r15, %rsi
movq %r14, %r8
callq 0x2ecef
jmp 0x2df78
movq %r12, %rdi
movq %r15, %rsi
movq %r14, %rdx
callq 0x2ec6c
movq 0x10(%rsp), %rdi
callq 0x84a0
movq %rbx, %rax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
movq %rax, %r14
movq 0x10(%rsp), %rdi
callq 0x84a0
jmp 0x2dfa3
movq %rax, %r14
movq %rbx, %rdi
callq 0xda62
movq %r14, %rdi
callq 0x89a0
| _ZN9findPeaks7argsortERKSt6vectorIdSaIdEE:
push r15
push r14
push r12
push rbx
sub rsp, 18h
mov r14, rsi
mov rbx, rdi
mov rsi, [rsi+8]
sub rsi, [r14]
sar rsi, 3
mov rdx, rsp
call _ZNSt6vectorImSaImEEC2EmRKS0_; std::vector<ulong>::vector(ulong,std::allocator<ulong> const&)
mov r12, [rbx]
mov r15, [rbx+8]
xor eax, eax
xor ecx, ecx
loc_2DF0D:
lea rdx, [r12+rax]
cmp rdx, r15
jz short loc_2DF23
mov [r12+rcx*8], rcx
inc rcx
add rax, 8
jmp short loc_2DF0D
loc_2DF23:
cmp r12, r15
jz short loc_2DF82
mov rax, r15
sub rax, r12
sar rax, 3
inc rax
push 2
pop rcx
cqo
idiv rcx
mov rdi, rsp
mov rsi, r12
mov rdx, rax
call _ZNSt17_Temporary_bufferIN9__gnu_cxx17__normal_iteratorIPmSt6vectorImSaImEEEEmEC2ES6_l; std::_Temporary_buffer<__gnu_cxx::__normal_iterator<ulong *,std::vector<ulong>>,ulong>::_Temporary_buffer(__gnu_cxx::__normal_iterator<ulong *,std::vector<ulong>>,long)
mov rdx, [rsp+38h+var_28]
test rdx, rdx
jz short loc_2DF6A
mov rcx, [rsp+38h+var_30]
mov rdi, r12
mov rsi, r15
mov r8, r14
call _ZSt22__stable_sort_adaptiveIN9__gnu_cxx17__normal_iteratorIPmSt6vectorImSaImEEEES2_lNS0_5__ops15_Iter_comp_iterIZN9findPeaks7argsortERKS3_IdSaIdEEE3$_0EEEvT_SG_T0_T1_T2_; std::__stable_sort_adaptive<__gnu_cxx::__normal_iterator<ulong *,std::vector<ulong>>,ulong *,long,__gnu_cxx::__ops::_Iter_comp_iter<findPeaks::argsort(std::vector const&<double,std::allocator<double>>)::$_0>>(__gnu_cxx::__normal_iterator<ulong *,std::vector<ulong>>,__gnu_cxx::__normal_iterator<ulong *,std::vector<ulong>>,ulong *,long,__gnu_cxx::__ops::_Iter_comp_iter<findPeaks::argsort(std::vector const&<double,std::allocator<double>>)::$_0>)
jmp short loc_2DF78
loc_2DF6A:
mov rdi, r12
mov rsi, r15
mov rdx, r14
call _ZSt21__inplace_stable_sortIN9__gnu_cxx17__normal_iteratorIPmSt6vectorImSaImEEEENS0_5__ops15_Iter_comp_iterIZN9findPeaks7argsortERKS3_IdSaIdEEE3$_0EEEvT_SG_T0_; std::__inplace_stable_sort<__gnu_cxx::__normal_iterator<ulong *,std::vector<ulong>>,__gnu_cxx::__ops::_Iter_comp_iter<findPeaks::argsort(std::vector const&<double,std::allocator<double>>)::$_0>>(__gnu_cxx::__normal_iterator<ulong *,std::vector<ulong>>,__gnu_cxx::__normal_iterator<ulong *,std::vector<ulong>>,__gnu_cxx::__ops::_Iter_comp_iter<findPeaks::argsort(std::vector const&<double,std::allocator<double>>)::$_0>)
loc_2DF78:
mov rdi, [rsp+38h+var_28]; void *
call __ZdlPv; operator delete(void *)
loc_2DF82:
mov rax, rbx
add rsp, 18h
pop rbx
pop r12
pop r14
pop r15
retn
mov r14, rax
mov rdi, [rsp+arg_8]; void *
call __ZdlPv; operator delete(void *)
jmp short loc_2DFA3
mov r14, rax
loc_2DFA3:
mov rdi, rbx
call _ZNSt12_Vector_baseImSaImEED2Ev; std::_Vector_base<ulong>::~_Vector_base()
mov rdi, r14
call __Unwind_Resume
| long long * findPeaks::argsort(long long *a1, _QWORD *a2)
{
long long v2; // r12
long long v3; // r15
long long v4; // rax
long long v5; // rcx
void *v7[2]; // [rsp+0h] [rbp-38h] BYREF
void *v8; // [rsp+10h] [rbp-28h]
std::vector<unsigned long>::vector(a1, (long long)(a2[1] - *a2) >> 3, v7);
v2 = *a1;
v3 = a1[1];
v4 = 0LL;
v5 = 0LL;
while ( v2 + v4 != v3 )
{
*(_QWORD *)(v2 + 8 * v5) = v5;
++v5;
v4 += 8LL;
}
if ( v2 != v3 )
{
std::_Temporary_buffer<__gnu_cxx::__normal_iterator<unsigned long *,std::vector<unsigned long>>,unsigned long>::_Temporary_buffer(
v7,
v2,
(((v3 - v2) >> 3) + 1) / 2);
if ( v8 )
std::__stable_sort_adaptive<__gnu_cxx::__normal_iterator<unsigned long *,std::vector<unsigned long>>,unsigned long *,long,__gnu_cxx::__ops::_Iter_comp_iter<findPeaks::argsort(std::vector const&<double,std::allocator<double>>)::$_0>>(
v2,
v3,
v8,
v7[1],
a2);
else
std::__inplace_stable_sort<__gnu_cxx::__normal_iterator<unsigned long *,std::vector<unsigned long>>,__gnu_cxx::__ops::_Iter_comp_iter<findPeaks::argsort(std::vector const&<double,std::allocator<double>>)::$_0>>(
v2,
v3,
a2);
operator delete(v8);
}
return a1;
}
| argsort:
PUSH R15
PUSH R14
PUSH R12
PUSH RBX
SUB RSP,0x18
MOV R14,RSI
MOV RBX,RDI
MOV RSI,qword ptr [RSI + 0x8]
SUB RSI,qword ptr [R14]
SAR RSI,0x3
MOV RDX,RSP
CALL 0x0012f53e
MOV R12,qword ptr [RBX]
MOV R15,qword ptr [RBX + 0x8]
XOR EAX,EAX
XOR ECX,ECX
LAB_0012df0d:
LEA RDX,[R12 + RAX*0x1]
CMP RDX,R15
JZ 0x0012df23
MOV qword ptr [R12 + RCX*0x8],RCX
INC RCX
ADD RAX,0x8
JMP 0x0012df0d
LAB_0012df23:
CMP R12,R15
JZ 0x0012df82
MOV RAX,R15
SUB RAX,R12
SAR RAX,0x3
INC RAX
PUSH 0x2
POP RCX
CQO
IDIV RCX
LAB_0012df3d:
MOV RDI,RSP
MOV RSI,R12
MOV RDX,RAX
CALL 0x0012f9d8
MOV RDX,qword ptr [RSP + 0x10]
TEST RDX,RDX
JZ 0x0012df6a
MOV RCX,qword ptr [RSP + 0x8]
LAB_0012df5a:
MOV RDI,R12
MOV RSI,R15
MOV R8,R14
CALL 0x0012ecef
JMP 0x0012df78
LAB_0012df6a:
MOV RDI,R12
MOV RSI,R15
MOV RDX,R14
CALL 0x0012ec6c
LAB_0012df78:
MOV RDI,qword ptr [RSP + 0x10]
CALL 0x001084a0
LAB_0012df82:
MOV RAX,RBX
ADD RSP,0x18
POP RBX
POP R12
POP R14
POP R15
RET
|
/* findPeaks::argsort(std::vector<double, std::allocator<double> > const&) */
findPeaks * __thiscall findPeaks::argsort(findPeaks *this,vector *param_1)
{
long lVar1;
long lVar2;
long lVar3;
long lVar4;
allocator aaStack_38 [8];
int8 local_30;
void *local_28;
std::vector<unsigned_long,std::allocator<unsigned_long>>::vector
((vector<unsigned_long,std::allocator<unsigned_long>> *)this,
*(long *)(param_1 + 8) - *(long *)param_1 >> 3,aaStack_38);
lVar1 = *(long *)this;
lVar2 = *(long *)(this + 8);
lVar4 = 0;
for (lVar3 = 0; lVar1 + lVar3 != lVar2; lVar3 = lVar3 + 8) {
*(long *)(lVar1 + lVar4 * 8) = lVar4;
lVar4 = lVar4 + 1;
}
if (lVar1 != lVar2) {
/* try { // try from 0012df3d to 0012df4a has its CatchHandler @ 0012dfa0 */
std::
_Temporary_buffer<__gnu_cxx::__normal_iterator<unsigned_long*,std::vector<unsigned_long,std::allocator<unsigned_long>>>,unsigned_long>
::_Temporary_buffer((_Temporary_buffer<__gnu_cxx::__normal_iterator<unsigned_long*,std::vector<unsigned_long,std::allocator<unsigned_long>>>,unsigned_long>
*)aaStack_38,lVar1,((lVar2 - lVar1 >> 3) + 1) / 2);
if (local_28 == (void *)0x0) {
std::
__inplace_stable_sort<__gnu_cxx::__normal_iterator<unsigned_long*,std::vector<unsigned_long,std::allocator<unsigned_long>>>,__gnu_cxx::__ops::_Iter_comp_iter<findPeaks::argsort(std::vector<double,std::allocator<double>>const&)::__0>>
(lVar1,lVar2,param_1);
}
else {
/* try { // try from 0012df5a to 0012df77 has its CatchHandler @ 0012df91 */
std::
__stable_sort_adaptive<__gnu_cxx::__normal_iterator<unsigned_long*,std::vector<unsigned_long,std::allocator<unsigned_long>>>,unsigned_long*,long,__gnu_cxx::__ops::_Iter_comp_iter<findPeaks::argsort(std::vector<double,std::allocator<double>>const&)::__0>>
(lVar1,lVar2,local_28,local_30,param_1);
}
operator_delete(local_28);
}
return this;
}
| |
45,264 | findPeaks::argsort(std::vector<double, std::allocator<double>> const&) | giladroyz[P]FindPeaks/src/cpp/find_peaks.cpp | std::vector<size_t> argsort(const std::vector<double> &x) {
std::vector<size_t> idx(x.size());
std::iota(idx.begin(), idx.end(), 0);
stable_sort(idx.begin(), idx.end(), [&x](size_t i1, size_t i2) { return x[i1] < x[i2]; });
return idx;
} | O3 | cpp | findPeaks::argsort(std::vector<double, std::allocator<double>> const&):
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x10, %rsp
movq %rsi, %r14
movq %rdi, %rbx
movq 0x8(%rsi), %rsi
subq (%r14), %rsi
sarq $0x3, %rsi
leaq 0xf(%rsp), %rdx
callq 0x3e410
movq (%rbx), %r12
movq 0x8(%rbx), %r15
cmpq %r15, %r12
je 0x3c87f
movq %r15, %rax
subq %r12, %rax
leaq -0x8(%rax), %rcx
movq %rcx, %xmm0
shrq $0x3, %rcx
addq $0x2, %rcx
andq $-0x2, %rcx
pshufd $0x44, %xmm0, %xmm0 # xmm0 = xmm0[0,1,0,1]
psrlq $0x3, %xmm0
movdqa 0x5715(%rip), %xmm1 # 0x41ed0
xorl %edx, %edx
movdqa 0x571b(%rip), %xmm2 # 0x41ee0
pxor %xmm2, %xmm0
pcmpeqd %xmm3, %xmm3
movdqa 0x571b(%rip), %xmm4 # 0x41ef0
movdqa %xmm1, %xmm5
pxor %xmm2, %xmm5
movdqa %xmm5, %xmm6
pcmpgtd %xmm0, %xmm6
pcmpeqd %xmm0, %xmm5
pshufd $0xf5, %xmm5, %xmm7 # xmm7 = xmm5[1,1,3,3]
pand %xmm6, %xmm7
pshufd $0xf5, %xmm6, %xmm5 # xmm5 = xmm6[1,1,3,3]
por %xmm7, %xmm5
movd %xmm5, %esi
notl %esi
testb $0x1, %sil
je 0x3c80b
movq %rdx, (%r12,%rdx,8)
pxor %xmm3, %xmm5
pextrw $0x4, %xmm5, %esi
testb $0x1, %sil
je 0x3c823
leaq 0x1(%rdx), %rsi
movq %rsi, 0x8(%r12,%rdx,8)
addq $0x2, %rdx
paddq %xmm4, %xmm1
cmpq %rdx, %rcx
jne 0x3c7d5
sarq $0x3, %rax
leaq 0x1(%rax), %rcx
shrq $0x3f, %rcx
leaq (%rax,%rcx), %rdi
incq %rdi
sarq %rdi
callq 0x3e8d6
movq %rax, %r13
testq %rax, %rax
je 0x3c869
movq %rdx, %rcx
movq %r12, %rdi
movq %r15, %rsi
movq %r13, %rdx
movq %r14, %r8
callq 0x3dac0
jmp 0x3c877
movq %r12, %rdi
movq %r15, %rsi
movq %r14, %rdx
callq 0x3da3d
movq %r13, %rdi
callq 0x8470
movq %rbx, %rax
addq $0x10, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
movq %rax, %r14
movq %r13, %rdi
callq 0x8470
movq (%rbx), %rdi
testq %rdi, %rdi
je 0x3c8a8
callq 0x8470
movq %r14, %rdi
callq 0x8990
| _ZN9findPeaks7argsortERKSt6vectorIdSaIdEE:
push r15
push r14
push r13
push r12
push rbx
sub rsp, 10h
mov r14, rsi
mov rbx, rdi
mov rsi, [rsi+8]
sub rsi, [r14]
sar rsi, 3
lea rdx, [rsp+38h+var_29]
call _ZNSt6vectorImSaImEEC2EmRKS0_; std::vector<ulong>::vector(ulong,std::allocator<ulong> const&)
mov r12, [rbx]
mov r15, [rbx+8]
cmp r12, r15
jz loc_3C87F
mov rax, r15
sub rax, r12
lea rcx, [rax-8]
movq xmm0, rcx
shr rcx, 3
add rcx, 2
and rcx, 0FFFFFFFFFFFFFFFEh
pshufd xmm0, xmm0, 44h ; 'D'
psrlq xmm0, 3
movdqa xmm1, cs:xmmword_41ED0
xor edx, edx
movdqa xmm2, cs:xmmword_41EE0
pxor xmm0, xmm2
pcmpeqd xmm3, xmm3
movdqa xmm4, cs:xmmword_41EF0
loc_3C7D5:
movdqa xmm5, xmm1
pxor xmm5, xmm2
movdqa xmm6, xmm5
pcmpgtd xmm6, xmm0
pcmpeqd xmm5, xmm0
pshufd xmm7, xmm5, 0F5h
pand xmm7, xmm6
pshufd xmm5, xmm6, 0F5h
por xmm5, xmm7
movd esi, xmm5
not esi
test sil, 1
jz short loc_3C80B
mov [r12+rdx*8], rdx
loc_3C80B:
pxor xmm5, xmm3
pextrw esi, xmm5, 4
test sil, 1
jz short loc_3C823
lea rsi, [rdx+1]
mov [r12+rdx*8+8], rsi
loc_3C823:
add rdx, 2
paddq xmm1, xmm4
cmp rcx, rdx
jnz short loc_3C7D5
sar rax, 3
lea rcx, [rax+1]
shr rcx, 3Fh
lea rdi, [rax+rcx]
inc rdi
sar rdi, 1
call _ZSt20get_temporary_bufferImESt4pairIPT_lEl; std::get_temporary_buffer<ulong>(long)
mov r13, rax
test rax, rax
jz short loc_3C869
mov rcx, rdx
mov rdi, r12
mov rsi, r15
mov rdx, r13
mov r8, r14
call _ZSt22__stable_sort_adaptiveIN9__gnu_cxx17__normal_iteratorIPmSt6vectorImSaImEEEES2_lNS0_5__ops15_Iter_comp_iterIZN9findPeaks7argsortERKS3_IdSaIdEEE3$_0EEEvT_SG_T0_T1_T2_; std::__stable_sort_adaptive<__gnu_cxx::__normal_iterator<ulong *,std::vector<ulong>>,ulong *,long,__gnu_cxx::__ops::_Iter_comp_iter<findPeaks::argsort(std::vector const&<double,std::allocator<double>>)::$_0>>(__gnu_cxx::__normal_iterator<ulong *,std::vector<ulong>>,__gnu_cxx::__normal_iterator<ulong *,std::vector<ulong>>,ulong *,long,__gnu_cxx::__ops::_Iter_comp_iter<findPeaks::argsort(std::vector const&<double,std::allocator<double>>)::$_0>)
jmp short loc_3C877
loc_3C869:
mov rdi, r12
mov rsi, r15
mov rdx, r14
call _ZSt21__inplace_stable_sortIN9__gnu_cxx17__normal_iteratorIPmSt6vectorImSaImEEEENS0_5__ops15_Iter_comp_iterIZN9findPeaks7argsortERKS3_IdSaIdEEE3$_0EEEvT_SG_T0_; std::__inplace_stable_sort<__gnu_cxx::__normal_iterator<ulong *,std::vector<ulong>>,__gnu_cxx::__ops::_Iter_comp_iter<findPeaks::argsort(std::vector const&<double,std::allocator<double>>)::$_0>>(__gnu_cxx::__normal_iterator<ulong *,std::vector<ulong>>,__gnu_cxx::__normal_iterator<ulong *,std::vector<ulong>>,__gnu_cxx::__ops::_Iter_comp_iter<findPeaks::argsort(std::vector const&<double,std::allocator<double>>)::$_0>)
loc_3C877:
mov rdi, r13; void *
call __ZdlPv; operator delete(void *)
loc_3C87F:
mov rax, rbx
add rsp, 10h
pop rbx
pop r12
pop r13
pop r14
pop r15
retn
mov r14, rax
mov rdi, r13; void *
call __ZdlPv; operator delete(void *)
mov rdi, [rbx]; void *
test rdi, rdi
jz short loc_3C8A8
call __ZdlPv; operator delete(void *)
loc_3C8A8:
mov rdi, r14
call __Unwind_Resume
| long long * findPeaks::argsort(long long *a1, _QWORD *a2)
{
long long v2; // r12
long long v3; // r15
unsigned long long v4; // rcx
__m128i v5; // xmm0
unsigned long long v6; // rcx
__m128i si128; // xmm1
long long v8; // rdx
__m128i v9; // xmm2
__m128i v10; // xmm0
__m128i v11; // xmm4
__m128i v12; // xmm5
__m128i v13; // xmm6
__m128i v14; // xmm5
long long temporary; // rax
long long v16; // rdx
void *v17; // r13
_BYTE v19[41]; // [rsp+Fh] [rbp-29h] BYREF
std::vector<unsigned long>::vector(a1, (long long)(a2[1] - *a2) >> 3, v19);
v2 = *a1;
v3 = a1[1];
if ( *a1 != v3 )
{
v4 = v3 - v2 - 8;
v5 = (__m128i)v4;
v6 = ((v4 >> 3) + 2) & 0xFFFFFFFFFFFFFFFELL;
si128 = _mm_load_si128((const __m128i *)&xmmword_41ED0);
v8 = 0LL;
v9 = _mm_load_si128((const __m128i *)&xmmword_41EE0);
v10 = _mm_xor_si128(_mm_srli_epi64(_mm_shuffle_epi32(v5, 68), 3u), v9);
v11 = _mm_load_si128((const __m128i *)&xmmword_41EF0);
do
{
v12 = _mm_xor_si128(si128, v9);
v13 = _mm_cmpgt_epi32(v12, v10);
v14 = _mm_or_si128(
_mm_shuffle_epi32(v13, 245),
_mm_and_si128(_mm_shuffle_epi32(_mm_cmpeq_epi32(v12, v10), 245), v13));
if ( (~_mm_cvtsi128_si32(v14) & 1) != 0 )
*(_QWORD *)(v2 + 8 * v8) = v8;
if ( (_mm_extract_epi16(_mm_xor_si128(v14, (__m128i)-1LL), 4) & 1) != 0 )
*(_QWORD *)(v2 + 8 * v8 + 8) = v8 + 1;
v8 += 2LL;
si128 = _mm_add_epi64(si128, v11);
}
while ( v6 != v8 );
temporary = std::get_temporary_buffer<unsigned long>(
(long long)(((v3 - v2) >> 3) + ((unsigned long long)(((v3 - v2) >> 3) + 1) >> 63) + 1) >> 1,
*(double *)v10.m128i_i64,
*(double *)si128.m128i_i64,
*(double *)v9.m128i_i64,
NAN);
v17 = (void *)temporary;
if ( temporary )
std::__stable_sort_adaptive<__gnu_cxx::__normal_iterator<unsigned long *,std::vector<unsigned long>>,unsigned long *,long,__gnu_cxx::__ops::_Iter_comp_iter<findPeaks::argsort(std::vector const&<double,std::allocator<double>>)::$_0>>(
v2,
v3,
temporary,
v16,
a2);
else
std::__inplace_stable_sort<__gnu_cxx::__normal_iterator<unsigned long *,std::vector<unsigned long>>,__gnu_cxx::__ops::_Iter_comp_iter<findPeaks::argsort(std::vector const&<double,std::allocator<double>>)::$_0>>(
v2,
v3,
a2);
operator delete(v17);
}
return a1;
}
| argsort:
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x10
MOV R14,RSI
MOV RBX,RDI
MOV RSI,qword ptr [RSI + 0x8]
SUB RSI,qword ptr [R14]
SAR RSI,0x3
LEA RDX,[RSP + 0xf]
CALL 0x0013e410
MOV R12,qword ptr [RBX]
MOV R15,qword ptr [RBX + 0x8]
CMP R12,R15
JZ 0x0013c87f
MOV RAX,R15
SUB RAX,R12
LEA RCX,[RAX + -0x8]
MOVQ XMM0,RCX
SHR RCX,0x3
ADD RCX,0x2
AND RCX,-0x2
PSHUFD XMM0,XMM0,0x44
PSRLQ XMM0,0x3
MOVDQA XMM1,xmmword ptr [0x00141ed0]
XOR EDX,EDX
MOVDQA XMM2,xmmword ptr [0x00141ee0]
PXOR XMM0,XMM2
PCMPEQD XMM3,XMM3
MOVDQA XMM4,xmmword ptr [0x00141ef0]
LAB_0013c7d5:
MOVDQA XMM5,XMM1
PXOR XMM5,XMM2
MOVDQA XMM6,XMM5
PCMPGTD XMM6,XMM0
PCMPEQD XMM5,XMM0
PSHUFD XMM7,XMM5,0xf5
PAND XMM7,XMM6
PSHUFD XMM5,XMM6,0xf5
POR XMM5,XMM7
MOVD ESI,XMM5
NOT ESI
TEST SIL,0x1
JZ 0x0013c80b
MOV qword ptr [R12 + RDX*0x8],RDX
LAB_0013c80b:
PXOR XMM5,XMM3
PEXTRW ESI,XMM5,0x4
TEST SIL,0x1
JZ 0x0013c823
LEA RSI,[RDX + 0x1]
MOV qword ptr [R12 + RDX*0x8 + 0x8],RSI
LAB_0013c823:
ADD RDX,0x2
PADDQ XMM1,XMM4
CMP RCX,RDX
JNZ 0x0013c7d5
SAR RAX,0x3
LEA RCX,[RAX + 0x1]
SHR RCX,0x3f
LEA RDI,[RAX + RCX*0x1]
INC RDI
SAR RDI,0x1
CALL 0x0013e8d6
MOV R13,RAX
TEST RAX,RAX
JZ 0x0013c869
LAB_0013c853:
MOV RCX,RDX
MOV RDI,R12
MOV RSI,R15
MOV RDX,R13
MOV R8,R14
CALL 0x0013dac0
JMP 0x0013c877
LAB_0013c869:
MOV RDI,R12
MOV RSI,R15
MOV RDX,R14
CALL 0x0013da3d
LAB_0013c877:
MOV RDI,R13
CALL 0x00108470
LAB_0013c87f:
MOV RAX,RBX
ADD RSP,0x10
POP RBX
POP R12
POP R13
POP R14
POP R15
RET
|
/* WARNING: Globals starting with '_' overlap smaller symbols at the same address */
/* findPeaks::argsort(std::vector<double, std::allocator<double> > const&) */
findPeaks * __thiscall findPeaks::argsort(findPeaks *this,vector *param_1)
{
ulong uVar1;
long lVar2;
long lVar3;
long lVar4;
long lVar5;
void *pvVar6;
ulong uVar7;
int1 auVar8 [16];
int1 auVar9 [16];
int1 auVar11 [16];
int1 auVar12 [16];
long lVar10;
std::vector<unsigned_long,std::allocator<unsigned_long>>::vector
((ulong)this,(allocator *)(*(long *)(param_1 + 8) - *(long *)param_1 >> 3));
lVar4 = _UNK_00141ef8;
lVar5 = _DAT_00141ef0;
auVar12 = _DAT_00141ee0;
lVar2 = *(long *)this;
lVar3 = *(long *)(this + 8);
if (lVar2 != lVar3) {
uVar1 = (lVar3 - lVar2) - 8;
auVar11._8_4_ = (int)uVar1;
auVar11._0_8_ = uVar1;
auVar11._12_4_ = (int)(uVar1 >> 0x20);
auVar8._0_8_ = uVar1 >> 3;
auVar8._8_8_ = auVar11._8_8_ >> 3;
uVar7 = 0;
auVar8 = auVar8 ^ _DAT_00141ee0;
auVar9 = _DAT_00141ed0;
do {
auVar11 = auVar9 ^ auVar12;
if ((bool)(~(auVar11._4_4_ == auVar8._4_4_ && auVar8._0_4_ < auVar11._0_4_ ||
auVar8._4_4_ < auVar11._4_4_) & 1)) {
*(ulong *)(lVar2 + uVar7 * 8) = uVar7;
}
if ((auVar11._12_4_ != auVar8._12_4_ || auVar11._8_4_ <= auVar8._8_4_) &&
auVar11._12_4_ <= auVar8._12_4_) {
*(ulong *)(lVar2 + 8 + uVar7 * 8) = uVar7 + 1;
}
uVar7 = uVar7 + 2;
lVar10 = auVar9._8_8_;
auVar9._0_8_ = auVar9._0_8_ + lVar5;
auVar9._8_8_ = lVar10 + lVar4;
} while (((uVar1 >> 3) + 2 & 0xfffffffffffffffe) != uVar7);
lVar5 = lVar3 - lVar2 >> 3;
auVar12 = std::get_temporary_buffer<unsigned_long>((lVar5 - (lVar5 + 1 >> 0x3f)) + 1 >> 1);
pvVar6 = auVar12._0_8_;
if (pvVar6 == (void *)0x0) {
std::
__inplace_stable_sort<__gnu_cxx::__normal_iterator<unsigned_long*,std::vector<unsigned_long,std::allocator<unsigned_long>>>,__gnu_cxx::__ops::_Iter_comp_iter<findPeaks::argsort(std::vector<double,std::allocator<double>>const&)::__0>>
(lVar2,lVar3,param_1);
}
else {
/* try { // try from 0013c853 to 0013c876 has its CatchHandler @ 0013c890 */
std::
__stable_sort_adaptive<__gnu_cxx::__normal_iterator<unsigned_long*,std::vector<unsigned_long,std::allocator<unsigned_long>>>,unsigned_long*,long,__gnu_cxx::__ops::_Iter_comp_iter<findPeaks::argsort(std::vector<double,std::allocator<double>>const&)::__0>>
(lVar2,lVar3,pvVar6,auVar12._8_8_,param_1);
}
operator_delete(pvVar6);
}
return this;
}
| |
45,265 | thr_reschedule_write_lock | eloqsql/mysys/thr_lock.c | my_bool thr_reschedule_write_lock(THR_LOCK_DATA *data,
ulong lock_wait_timeout)
{
THR_LOCK *lock=data->lock;
enum thr_lock_type write_lock_type;
DBUG_ENTER("thr_reschedule_write_lock");
mysql_mutex_lock(&lock->mutex);
if (!lock->read_wait.data) /* No waiting read locks */
{
mysql_mutex_unlock(&lock->mutex);
DBUG_RETURN(0);
}
write_lock_type= data->type;
data->type=TL_WRITE_DELAYED;
if (lock->update_status)
(*lock->update_status)(data->status_param);
if (((*data->prev)=data->next)) /* remove from lock-list */
data->next->prev= data->prev;
else
lock->write.last=data->prev;
if ((data->next=lock->write_wait.data)) /* Put first in lock_list */
data->next->prev= &data->next;
else
lock->write_wait.last= &data->next;
data->prev= &lock->write_wait.data;
data->cond=get_cond(); /* This was zero */
lock->write_wait.data=data;
free_all_read_locks(lock,0);
mysql_mutex_unlock(&lock->mutex);
DBUG_RETURN(thr_upgrade_write_delay_lock(data, write_lock_type,
lock_wait_timeout));
} | O0 | c | thr_reschedule_write_lock:
pushq %rbp
movq %rsp, %rbp
subq $0x30, %rsp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movq -0x10(%rbp), %rax
movq 0x18(%rax), %rax
movq %rax, -0x20(%rbp)
movq -0x20(%rbp), %rdi
addq $0x18, %rdi
leaq 0x5e0d3(%rip), %rsi # 0x15df8e
movl $0x5de, %edx # imm = 0x5DE
callq 0xfe1d0
movq -0x20(%rbp), %rax
cmpq $0x0, 0x60(%rax)
jne 0xffee6
movq -0x20(%rbp), %rdi
addq $0x18, %rdi
callq 0xfe240
movb $0x0, -0x1(%rbp)
jmp 0xfffff
movq -0x10(%rbp), %rax
movl 0x40(%rax), %eax
movl %eax, -0x24(%rbp)
movq -0x10(%rbp), %rax
movl $0x9, 0x40(%rax)
movq -0x20(%rbp), %rax
cmpq $0x0, 0xc0(%rax)
je 0xfff1e
movq -0x20(%rbp), %rax
movq 0xc0(%rax), %rax
movq -0x10(%rbp), %rcx
movq 0x28(%rcx), %rdi
callq *%rax
movq -0x10(%rbp), %rax
movq 0x8(%rax), %rax
movq -0x10(%rbp), %rcx
movq 0x10(%rcx), %rcx
movq %rax, (%rcx)
cmpq $0x0, %rax
je 0xfff4d
movq -0x10(%rbp), %rax
movq 0x10(%rax), %rcx
movq -0x10(%rbp), %rax
movq 0x8(%rax), %rax
movq %rcx, 0x10(%rax)
jmp 0xfff60
movq -0x10(%rbp), %rax
movq 0x10(%rax), %rcx
movq -0x20(%rbp), %rax
movq %rcx, 0x98(%rax)
movq -0x20(%rbp), %rax
movq 0x80(%rax), %rax
movq -0x10(%rbp), %rcx
movq %rax, 0x8(%rcx)
cmpq $0x0, %rax
je 0xfff8f
movq -0x10(%rbp), %rcx
addq $0x8, %rcx
movq -0x10(%rbp), %rax
movq 0x8(%rax), %rax
movq %rcx, 0x10(%rax)
jmp 0xfffa2
movq -0x10(%rbp), %rcx
addq $0x8, %rcx
movq -0x20(%rbp), %rax
movq %rcx, 0x88(%rax)
movq -0x20(%rbp), %rcx
addq $0x80, %rcx
movq -0x10(%rbp), %rax
movq %rcx, 0x10(%rax)
callq 0x100010
movq %rax, %rcx
movq -0x10(%rbp), %rax
movq %rcx, 0x20(%rax)
movq -0x10(%rbp), %rcx
movq -0x20(%rbp), %rax
movq %rcx, 0x80(%rax)
movq -0x20(%rbp), %rdi
xorl %esi, %esi
callq 0x100020
movq -0x20(%rbp), %rdi
addq $0x18, %rdi
callq 0xfe240
movq -0x10(%rbp), %rdi
movl -0x24(%rbp), %esi
movq -0x18(%rbp), %rdx
callq 0xff910
movb %al, -0x1(%rbp)
movb -0x1(%rbp), %al
addq $0x30, %rsp
popq %rbp
retq
nopl (%rax,%rax)
| thr_reschedule_write_lock:
push rbp
mov rbp, rsp
sub rsp, 30h
mov [rbp+var_10], rdi
mov [rbp+var_18], rsi
mov rax, [rbp+var_10]
mov rax, [rax+18h]
mov [rbp+var_20], rax
mov rdi, [rbp+var_20]
add rdi, 18h
lea rsi, aWorkspaceLlm4b_43; "/workspace/llm4binary/github2025/eloqsq"...
mov edx, 5DEh
call inline_mysql_mutex_lock_28
mov rax, [rbp+var_20]
cmp qword ptr [rax+60h], 0
jnz short loc_FFEE6
mov rdi, [rbp+var_20]
add rdi, 18h
call inline_mysql_mutex_unlock_29
mov [rbp+var_1], 0
jmp loc_FFFFF
loc_FFEE6:
mov rax, [rbp+var_10]
mov eax, [rax+40h]
mov [rbp+var_24], eax
mov rax, [rbp+var_10]
mov dword ptr [rax+40h], 9
mov rax, [rbp+var_20]
cmp qword ptr [rax+0C0h], 0
jz short loc_FFF1E
mov rax, [rbp+var_20]
mov rax, [rax+0C0h]
mov rcx, [rbp+var_10]
mov rdi, [rcx+28h]
call rax
loc_FFF1E:
mov rax, [rbp+var_10]
mov rax, [rax+8]
mov rcx, [rbp+var_10]
mov rcx, [rcx+10h]
mov [rcx], rax
cmp rax, 0
jz short loc_FFF4D
mov rax, [rbp+var_10]
mov rcx, [rax+10h]
mov rax, [rbp+var_10]
mov rax, [rax+8]
mov [rax+10h], rcx
jmp short loc_FFF60
loc_FFF4D:
mov rax, [rbp+var_10]
mov rcx, [rax+10h]
mov rax, [rbp+var_20]
mov [rax+98h], rcx
loc_FFF60:
mov rax, [rbp+var_20]
mov rax, [rax+80h]
mov rcx, [rbp+var_10]
mov [rcx+8], rax
cmp rax, 0
jz short loc_FFF8F
mov rcx, [rbp+var_10]
add rcx, 8
mov rax, [rbp+var_10]
mov rax, [rax+8]
mov [rax+10h], rcx
jmp short loc_FFFA2
loc_FFF8F:
mov rcx, [rbp+var_10]
add rcx, 8
mov rax, [rbp+var_20]
mov [rax+88h], rcx
loc_FFFA2:
mov rcx, [rbp+var_20]
add rcx, 80h
mov rax, [rbp+var_10]
mov [rax+10h], rcx
call get_cond
mov rcx, rax
mov rax, [rbp+var_10]
mov [rax+20h], rcx
mov rcx, [rbp+var_10]
mov rax, [rbp+var_20]
mov [rax+80h], rcx
mov rdi, [rbp+var_20]
xor esi, esi
call free_all_read_locks
mov rdi, [rbp+var_20]
add rdi, 18h
call inline_mysql_mutex_unlock_29
mov rdi, [rbp+var_10]
mov esi, [rbp+var_24]
mov rdx, [rbp+var_18]
call thr_upgrade_write_delay_lock
mov [rbp+var_1], al
loc_FFFFF:
mov al, [rbp+var_1]
loc_100002:
add rsp, 30h
pop rbp
retn
| char thr_reschedule_write_lock(long long a1, long long a2)
{
long long v2; // rax
long long v3; // rax
int v5; // [rsp+Ch] [rbp-24h]
long long v6; // [rsp+10h] [rbp-20h]
v6 = *(_QWORD *)(a1 + 24);
inline_mysql_mutex_lock_28(v6 + 24, (long long)"/workspace/llm4binary/github2025/eloqsql/mysys/thr_lock.c", 0x5DEu);
if ( *(_QWORD *)(v6 + 96) )
{
v5 = *(_DWORD *)(a1 + 64);
*(_DWORD *)(a1 + 64) = 9;
if ( *(_QWORD *)(v6 + 192) )
(*(void ( **)(_QWORD))(v6 + 192))(*(_QWORD *)(a1 + 40));
v2 = *(_QWORD *)(a1 + 8);
**(_QWORD **)(a1 + 16) = v2;
if ( v2 )
*(_QWORD *)(*(_QWORD *)(a1 + 8) + 16LL) = *(_QWORD *)(a1 + 16);
else
*(_QWORD *)(v6 + 152) = *(_QWORD *)(a1 + 16);
v3 = *(_QWORD *)(v6 + 128);
*(_QWORD *)(a1 + 8) = v3;
if ( v3 )
*(_QWORD *)(*(_QWORD *)(a1 + 8) + 16LL) = a1 + 8;
else
*(_QWORD *)(v6 + 136) = a1 + 8;
*(_QWORD *)(a1 + 16) = v6 + 128;
*(_QWORD *)(a1 + 32) = get_cond();
*(_QWORD *)(v6 + 128) = a1;
free_all_read_locks(v6, 0LL);
inline_mysql_mutex_unlock_29(v6 + 24);
return thr_upgrade_write_delay_lock(a1, v5, a2);
}
else
{
inline_mysql_mutex_unlock_29(v6 + 24);
return 0;
}
}
| thr_reschedule_write_lock:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x30
MOV qword ptr [RBP + -0x10],RDI
MOV qword ptr [RBP + -0x18],RSI
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX + 0x18]
MOV qword ptr [RBP + -0x20],RAX
MOV RDI,qword ptr [RBP + -0x20]
ADD RDI,0x18
LEA RSI,[0x25df8e]
MOV EDX,0x5de
CALL 0x001fe1d0
MOV RAX,qword ptr [RBP + -0x20]
CMP qword ptr [RAX + 0x60],0x0
JNZ 0x001ffee6
MOV RDI,qword ptr [RBP + -0x20]
ADD RDI,0x18
CALL 0x001fe240
MOV byte ptr [RBP + -0x1],0x0
JMP 0x001fffff
LAB_001ffee6:
MOV RAX,qword ptr [RBP + -0x10]
MOV EAX,dword ptr [RAX + 0x40]
MOV dword ptr [RBP + -0x24],EAX
MOV RAX,qword ptr [RBP + -0x10]
MOV dword ptr [RAX + 0x40],0x9
MOV RAX,qword ptr [RBP + -0x20]
CMP qword ptr [RAX + 0xc0],0x0
JZ 0x001fff1e
MOV RAX,qword ptr [RBP + -0x20]
MOV RAX,qword ptr [RAX + 0xc0]
MOV RCX,qword ptr [RBP + -0x10]
MOV RDI,qword ptr [RCX + 0x28]
CALL RAX
LAB_001fff1e:
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX + 0x8]
MOV RCX,qword ptr [RBP + -0x10]
MOV RCX,qword ptr [RCX + 0x10]
MOV qword ptr [RCX],RAX
CMP RAX,0x0
JZ 0x001fff4d
MOV RAX,qword ptr [RBP + -0x10]
MOV RCX,qword ptr [RAX + 0x10]
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX + 0x8]
MOV qword ptr [RAX + 0x10],RCX
JMP 0x001fff60
LAB_001fff4d:
MOV RAX,qword ptr [RBP + -0x10]
MOV RCX,qword ptr [RAX + 0x10]
MOV RAX,qword ptr [RBP + -0x20]
MOV qword ptr [RAX + 0x98],RCX
LAB_001fff60:
MOV RAX,qword ptr [RBP + -0x20]
MOV RAX,qword ptr [RAX + 0x80]
MOV RCX,qword ptr [RBP + -0x10]
MOV qword ptr [RCX + 0x8],RAX
CMP RAX,0x0
JZ 0x001fff8f
MOV RCX,qword ptr [RBP + -0x10]
ADD RCX,0x8
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX + 0x8]
MOV qword ptr [RAX + 0x10],RCX
JMP 0x001fffa2
LAB_001fff8f:
MOV RCX,qword ptr [RBP + -0x10]
ADD RCX,0x8
MOV RAX,qword ptr [RBP + -0x20]
MOV qword ptr [RAX + 0x88],RCX
LAB_001fffa2:
MOV RCX,qword ptr [RBP + -0x20]
ADD RCX,0x80
MOV RAX,qword ptr [RBP + -0x10]
MOV qword ptr [RAX + 0x10],RCX
CALL 0x00200010
MOV RCX,RAX
MOV RAX,qword ptr [RBP + -0x10]
MOV qword ptr [RAX + 0x20],RCX
MOV RCX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RBP + -0x20]
MOV qword ptr [RAX + 0x80],RCX
MOV RDI,qword ptr [RBP + -0x20]
XOR ESI,ESI
CALL 0x00200020
MOV RDI,qword ptr [RBP + -0x20]
ADD RDI,0x18
CALL 0x001fe240
MOV RDI,qword ptr [RBP + -0x10]
MOV ESI,dword ptr [RBP + -0x24]
MOV RDX,qword ptr [RBP + -0x18]
CALL 0x001ff910
MOV byte ptr [RBP + -0x1],AL
LAB_001fffff:
MOV AL,byte ptr [RBP + -0x1]
ADD RSP,0x30
POP RBP
RET
|
int1 thr_reschedule_write_lock(long param_1,int8 param_2)
{
int4 uVar1;
long lVar2;
long lVar3;
int8 uVar4;
int1 local_9;
lVar2 = *(long *)(param_1 + 0x18);
inline_mysql_mutex_lock
(lVar2 + 0x18,"/workspace/llm4binary/github2025/eloqsql/mysys/thr_lock.c",0x5de);
if (*(long *)(lVar2 + 0x60) == 0) {
inline_mysql_mutex_unlock(lVar2 + 0x18);
local_9 = 0;
}
else {
uVar1 = *(int4 *)(param_1 + 0x40);
*(int4 *)(param_1 + 0x40) = 9;
if (*(long *)(lVar2 + 0xc0) != 0) {
(**(code **)(lVar2 + 0xc0))(*(int8 *)(param_1 + 0x28));
}
lVar3 = *(long *)(param_1 + 8);
**(long **)(param_1 + 0x10) = lVar3;
if (lVar3 == 0) {
*(int8 *)(lVar2 + 0x98) = *(int8 *)(param_1 + 0x10);
}
else {
*(int8 *)(*(long *)(param_1 + 8) + 0x10) = *(int8 *)(param_1 + 0x10);
}
lVar3 = *(long *)(lVar2 + 0x80);
*(long *)(param_1 + 8) = lVar3;
if (lVar3 == 0) {
*(long *)(lVar2 + 0x88) = param_1 + 8;
}
else {
*(long *)(*(long *)(param_1 + 8) + 0x10) = param_1 + 8;
}
*(long *)(param_1 + 0x10) = lVar2 + 0x80;
uVar4 = get_cond();
*(int8 *)(param_1 + 0x20) = uVar4;
*(long *)(lVar2 + 0x80) = param_1;
free_all_read_locks(lVar2,0);
inline_mysql_mutex_unlock(lVar2 + 0x18);
local_9 = thr_upgrade_write_delay_lock(param_1,uVar1,param_2);
}
return local_9;
}
| |
45,266 | google::protobuf::OneofDescriptor::DebugString(int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>*, google::protobuf::DebugStringOptions const&) const | aimrt_mujoco_sim/_deps/protobuf-src/src/google/protobuf/descriptor.cc | void OneofDescriptor::DebugString(
int depth, std::string* contents,
const DebugStringOptions& debug_string_options) const {
std::string prefix(depth * 2, ' ');
++depth;
SourceLocationCommentPrinter comment_printer(this, prefix,
debug_string_options);
comment_printer.AddPreComment(contents);
strings::SubstituteAndAppend(contents, "$0oneof $1 {", prefix, name());
FormatLineOptions(depth, options(), containing_type()->file()->pool(),
contents);
if (debug_string_options.elide_oneof_body) {
contents->append(" ... }\n");
} else {
contents->append("\n");
for (int i = 0; i < field_count(); i++) {
field(i)->DebugString(depth, contents, debug_string_options);
}
strings::SubstituteAndAppend(contents, "$0}\n", prefix);
}
comment_printer.AddPostComment(contents);
} | O0 | cpp | google::protobuf::OneofDescriptor::DebugString(int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>*, google::protobuf::DebugStringOptions const&) const:
subq $0x558, %rsp # imm = 0x558
movq %rdi, 0x550(%rsp)
movl %esi, 0x54c(%rsp)
movq %rdx, 0x540(%rsp)
movq %rcx, 0x538(%rsp)
movq 0x550(%rsp), %rax
movq %rax, 0x88(%rsp)
movl 0x54c(%rsp), %eax
addl %eax, %eax
cltq
movq %rax, 0x90(%rsp)
leaq 0x517(%rsp), %rdi
movq %rdi, 0x98(%rsp)
callq 0x13760
movq 0x90(%rsp), %rsi
movq 0x98(%rsp), %rcx
leaq 0x518(%rsp), %rdi
movl $0x20, %edx
callq 0x132f0
jmp 0x3f0f2
leaq 0x517(%rsp), %rdi
callq 0x134d0
movq 0x88(%rsp), %rsi
movl 0x54c(%rsp), %eax
incl %eax
movl %eax, 0x54c(%rsp)
movq 0x538(%rsp), %rcx
leaq 0x468(%rsp), %rdi
leaq 0x518(%rsp), %rdx
callq 0x3fc50
jmp 0x3f136
movq 0x540(%rsp), %rsi
leaq 0x468(%rsp), %rdi
callq 0x3af90
jmp 0x3f14d
movq 0x540(%rsp), %rax
movq %rax, 0x80(%rsp)
leaq 0x438(%rsp), %rdi
leaq 0x518(%rsp), %rsi
callq 0x769e0
jmp 0x3f174
movq 0x88(%rsp), %rdi
callq 0x764b0
movq %rax, 0x78(%rsp)
jmp 0x3f188
movq 0x78(%rsp), %rsi
leaq 0x408(%rsp), %rdi
callq 0x769e0
jmp 0x3f19c
leaq 0x3d8(%rsp), %rdi
callq 0x76920
jmp 0x3f1ab
leaq 0x3a8(%rsp), %rdi
callq 0x76920
jmp 0x3f1ba
leaq 0x378(%rsp), %rdi
callq 0x76920
jmp 0x3f1c9
leaq 0x348(%rsp), %rdi
callq 0x76920
jmp 0x3f1d8
leaq 0x318(%rsp), %rdi
callq 0x76920
jmp 0x3f1e7
leaq 0x2e8(%rsp), %rdi
callq 0x76920
jmp 0x3f1f6
leaq 0x2b8(%rsp), %rdi
callq 0x76920
jmp 0x3f205
leaq 0x288(%rsp), %rdi
callq 0x76920
jmp 0x3f214
movq 0x80(%rsp), %rdi
movq %rsp, %rax
leaq 0x288(%rsp), %rcx
movq %rcx, 0x28(%rax)
leaq 0x2b8(%rsp), %rcx
movq %rcx, 0x20(%rax)
leaq 0x2e8(%rsp), %rcx
movq %rcx, 0x18(%rax)
leaq 0x318(%rsp), %rcx
movq %rcx, 0x10(%rax)
leaq 0x348(%rsp), %rcx
movq %rcx, 0x8(%rax)
leaq 0x378(%rsp), %rcx
movq %rcx, (%rax)
leaq 0x1ae7cf(%rip), %rsi # 0x1eda3c
leaq 0x438(%rsp), %rdx
leaq 0x408(%rsp), %rcx
leaq 0x3d8(%rsp), %r8
leaq 0x3a8(%rsp), %r9
callq 0x144ce0
jmp 0x3f294
movq 0x88(%rsp), %rdi
movl 0x54c(%rsp), %eax
movl %eax, 0x6c(%rsp)
callq 0x764c0
movq %rax, 0x70(%rsp)
jmp 0x3f2b3
movq 0x88(%rsp), %rdi
callq 0x76d00
movq %rax, 0x60(%rsp)
jmp 0x3f2c7
movq 0x60(%rsp), %rdi
callq 0x74c50
movq %rax, 0x58(%rsp)
jmp 0x3f2d8
movq 0x58(%rsp), %rdi
callq 0x76a30
movq %rax, 0x50(%rsp)
jmp 0x3f2e9
movq 0x50(%rsp), %rdx
movq 0x70(%rsp), %rsi
movl 0x6c(%rsp), %edi
movq 0x540(%rsp), %rcx
callq 0x3b2c0
jmp 0x3f306
movq 0x538(%rsp), %rax
testb $0x1, 0x2(%rax)
je 0x3f398
movq 0x540(%rsp), %rdi
leaq 0x1ae722(%rip), %rsi # 0x1eda49
callq 0x193c0
jmp 0x3f32e
jmp 0x3f560
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x508(%rsp)
movl %eax, 0x504(%rsp)
leaq 0x517(%rsp), %rdi
callq 0x134d0
jmp 0x3f5a6
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x508(%rsp)
movl %eax, 0x504(%rsp)
jmp 0x3f599
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x508(%rsp)
movl %eax, 0x504(%rsp)
leaq 0x468(%rsp), %rdi
callq 0x3b1b0
jmp 0x3f599
movq 0x540(%rsp), %rdi
leaq 0x1ae581(%rip), %rsi # 0x1ed928
callq 0x193c0
jmp 0x3f3ae
movl $0x0, 0x284(%rsp)
movq 0x88(%rsp), %rdi
movl 0x284(%rsp), %eax
movl %eax, 0x48(%rsp)
callq 0x76d10
movl %eax, 0x4c(%rsp)
jmp 0x3f3d7
movl 0x48(%rsp), %eax
movl 0x4c(%rsp), %ecx
cmpl %ecx, %eax
jge 0x3f436
movq 0x88(%rsp), %rdi
movl 0x284(%rsp), %esi
callq 0x76b80
movq %rax, 0x40(%rsp)
jmp 0x3f3fe
movq 0x40(%rsp), %rdi
movl 0x54c(%rsp), %esi
movq 0x540(%rsp), %rdx
movq 0x538(%rsp), %rcx
callq 0x3e2b0
jmp 0x3f421
jmp 0x3f423
movl 0x284(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x284(%rsp)
jmp 0x3f3b9
movq 0x540(%rsp), %rax
movq %rax, 0x38(%rsp)
leaq 0x250(%rsp), %rdi
leaq 0x518(%rsp), %rsi
callq 0x769e0
jmp 0x3f45a
leaq 0x220(%rsp), %rdi
callq 0x76920
jmp 0x3f469
leaq 0x1f0(%rsp), %rdi
callq 0x76920
jmp 0x3f478
leaq 0x1c0(%rsp), %rdi
callq 0x76920
jmp 0x3f487
leaq 0x190(%rsp), %rdi
callq 0x76920
jmp 0x3f496
leaq 0x160(%rsp), %rdi
callq 0x76920
jmp 0x3f4a5
leaq 0x130(%rsp), %rdi
callq 0x76920
jmp 0x3f4b4
leaq 0x100(%rsp), %rdi
callq 0x76920
jmp 0x3f4c3
leaq 0xd0(%rsp), %rdi
callq 0x76920
jmp 0x3f4d2
leaq 0xa0(%rsp), %rdi
callq 0x76920
jmp 0x3f4e1
movq 0x38(%rsp), %rdi
movq %rsp, %rax
leaq 0xa0(%rsp), %rcx
movq %rcx, 0x28(%rax)
leaq 0xd0(%rsp), %rcx
movq %rcx, 0x20(%rax)
leaq 0x100(%rsp), %rcx
movq %rcx, 0x18(%rax)
leaq 0x130(%rsp), %rcx
movq %rcx, 0x10(%rax)
leaq 0x160(%rsp), %rcx
movq %rcx, 0x8(%rax)
leaq 0x190(%rsp), %rcx
movq %rcx, (%rax)
leaq 0x1ae4ba(%rip), %rsi # 0x1ed9f1
leaq 0x250(%rsp), %rdx
leaq 0x220(%rsp), %rcx
leaq 0x1f0(%rsp), %r8
leaq 0x1c0(%rsp), %r9
callq 0x144ce0
jmp 0x3f55e
jmp 0x3f560
movq 0x540(%rsp), %rsi
leaq 0x468(%rsp), %rdi
callq 0x3b110
jmp 0x3f577
leaq 0x468(%rsp), %rdi
callq 0x3b1b0
leaq 0x518(%rsp), %rdi
callq 0x13290
addq $0x558, %rsp # imm = 0x558
retq
leaq 0x518(%rsp), %rdi
callq 0x13290
movq 0x508(%rsp), %rdi
callq 0x13750
nopw %cs:(%rax,%rax)
| _ZNK6google8protobuf15OneofDescriptor11DebugStringEiPNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKNS0_18DebugStringOptionsE:
sub rsp, 558h
mov [rsp+558h+var_8], rdi
mov [rsp+558h+var_C], esi
mov [rsp+558h+var_18], rdx
mov qword ptr [rsp+558h+var_20], rcx
mov rax, [rsp+558h+var_8]
mov [rsp+558h+var_4D0], rax
mov eax, [rsp+558h+var_C]
add eax, eax
cdqe
mov [rsp+558h+var_4C8], rax
lea rdi, [rsp+558h+var_41]
mov [rsp+558h+var_4C0], rdi
call __ZNSaIcEC1Ev; std::allocator<char>::allocator(void)
mov rsi, [rsp+558h+var_4C8]
mov rcx, [rsp+558h+var_4C0]
lea rdi, [rsp+558h+var_40]
mov edx, 20h ; ' '
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC1EmcRKS3_; std::string::basic_string(ulong,char,std::allocator<char> const&)
jmp short $+2
loc_3F0F2:
lea rdi, [rsp+558h+var_41]
call __ZNSaIcED1Ev; std::allocator<char>::~allocator()
mov rsi, [rsp+558h+var_4D0]; int
mov eax, [rsp+558h+var_C]
inc eax
mov [rsp+558h+var_C], eax
mov rcx, qword ptr [rsp+558h+var_20]; int
lea rdi, [rsp+558h+var_F0]; int
lea rdx, [rsp+558h+var_40]; int
call _ZN6google8protobuf12_GLOBAL__N_128SourceLocationCommentPrinterC2INS0_15OneofDescriptorEEEPKT_RKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKNS0_18DebugStringOptionsE; google::protobuf::`anonymous namespace'::SourceLocationCommentPrinter::SourceLocationCommentPrinter<google::protobuf::OneofDescriptor>(google::protobuf::OneofDescriptor const*,std::string const&,google::protobuf::DebugStringOptions const&)
jmp short $+2
loc_3F136:
mov rsi, [rsp+558h+var_18]
lea rdi, [rsp+558h+var_F0]
call _ZN6google8protobuf12_GLOBAL__N_128SourceLocationCommentPrinter13AddPreCommentEPNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE; google::protobuf::`anonymous namespace'::SourceLocationCommentPrinter::AddPreComment(std::string *)
jmp short $+2
loc_3F14D:
mov rax, [rsp+558h+var_18]
mov [rsp+558h+var_4D8], rax
lea rdi, [rsp+558h+var_120]
lea rsi, [rsp+558h+var_40]
call _ZN6google8protobuf7strings8internal13SubstituteArgC2ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE; google::protobuf::strings::internal::SubstituteArg::SubstituteArg(std::string const&)
jmp short $+2
loc_3F174:
mov rdi, [rsp+558h+var_4D0]
call _ZNK6google8protobuf15OneofDescriptor4nameB5cxx11Ev; google::protobuf::OneofDescriptor::name(void)
mov [rsp+558h+var_4E0], rax
jmp short $+2
loc_3F188:
mov rsi, [rsp+558h+var_4E0]
lea rdi, [rsp+558h+var_150]
call _ZN6google8protobuf7strings8internal13SubstituteArgC2ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE; google::protobuf::strings::internal::SubstituteArg::SubstituteArg(std::string const&)
jmp short $+2
loc_3F19C:
lea rdi, [rsp+558h+var_180]; this
call _ZN6google8protobuf7strings8internal13SubstituteArgC2Ev; google::protobuf::strings::internal::SubstituteArg::SubstituteArg(void)
jmp short $+2
loc_3F1AB:
lea rdi, [rsp+558h+var_1B0]; this
call _ZN6google8protobuf7strings8internal13SubstituteArgC2Ev; google::protobuf::strings::internal::SubstituteArg::SubstituteArg(void)
jmp short $+2
loc_3F1BA:
lea rdi, [rsp+558h+var_1E0]; this
call _ZN6google8protobuf7strings8internal13SubstituteArgC2Ev; google::protobuf::strings::internal::SubstituteArg::SubstituteArg(void)
jmp short $+2
loc_3F1C9:
lea rdi, [rsp+558h+var_210]; this
call _ZN6google8protobuf7strings8internal13SubstituteArgC2Ev; google::protobuf::strings::internal::SubstituteArg::SubstituteArg(void)
jmp short $+2
loc_3F1D8:
lea rdi, [rsp+558h+var_240]; this
call _ZN6google8protobuf7strings8internal13SubstituteArgC2Ev; google::protobuf::strings::internal::SubstituteArg::SubstituteArg(void)
jmp short $+2
loc_3F1E7:
lea rdi, [rsp+558h+var_270]; this
call _ZN6google8protobuf7strings8internal13SubstituteArgC2Ev; google::protobuf::strings::internal::SubstituteArg::SubstituteArg(void)
jmp short $+2
loc_3F1F6:
lea rdi, [rsp+558h+var_2A0]; this
call _ZN6google8protobuf7strings8internal13SubstituteArgC2Ev; google::protobuf::strings::internal::SubstituteArg::SubstituteArg(void)
jmp short $+2
loc_3F205:
lea rdi, [rsp+558h+var_2D0]; this
call _ZN6google8protobuf7strings8internal13SubstituteArgC2Ev; google::protobuf::strings::internal::SubstituteArg::SubstituteArg(void)
jmp short $+2
loc_3F214:
mov rdi, [rsp+558h+var_4D8]
mov rax, rsp
lea rcx, [rsp+558h+var_2D0]
mov [rax+28h], rcx
lea rcx, [rsp+558h+var_2A0]
mov [rax+20h], rcx
lea rcx, [rsp+558h+var_270]
mov [rax+18h], rcx
lea rcx, [rsp+558h+var_240]
mov [rax+10h], rcx
lea rcx, [rsp+558h+var_210]
mov [rax+8], rcx
lea rcx, [rsp+558h+var_1E0]
mov [rax], rcx
lea rsi, a0oneof1; "$0oneof $1 {"
lea rdx, [rsp+558h+var_120]
lea rcx, [rsp+558h+var_150]
lea r8, [rsp+558h+var_180]
lea r9, [rsp+558h+var_1B0]
call _ZN6google8protobuf7strings19SubstituteAndAppendEPNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPKcRKNS1_8internal13SubstituteArgESE_SE_SE_SE_SE_SE_SE_SE_SE_; google::protobuf::strings::SubstituteAndAppend(std::string *,char const*,google::protobuf::strings::internal::SubstituteArg const&,google::protobuf::strings::internal::SubstituteArg const&,google::protobuf::strings::internal::SubstituteArg const&,google::protobuf::strings::internal::SubstituteArg const&,google::protobuf::strings::internal::SubstituteArg const&,google::protobuf::strings::internal::SubstituteArg const&,google::protobuf::strings::internal::SubstituteArg const&,google::protobuf::strings::internal::SubstituteArg const&,google::protobuf::strings::internal::SubstituteArg const&,google::protobuf::strings::internal::SubstituteArg const&)
jmp short $+2
loc_3F294:
mov rdi, [rsp+558h+var_4D0]; this
mov eax, [rsp+558h+var_C]
mov [rsp+558h+var_4EC], eax
call _ZNK6google8protobuf15OneofDescriptor7optionsEv; google::protobuf::OneofDescriptor::options(void)
mov [rsp+558h+var_4E8], rax
jmp short $+2
loc_3F2B3:
mov rdi, [rsp+558h+var_4D0]; this
call _ZNK6google8protobuf15OneofDescriptor15containing_typeEv; google::protobuf::OneofDescriptor::containing_type(void)
mov [rsp+558h+var_4F8], rax
jmp short $+2
loc_3F2C7:
mov rdi, [rsp+558h+var_4F8]; this
call _ZNK6google8protobuf10Descriptor4fileEv; google::protobuf::Descriptor::file(void)
mov [rsp+558h+var_500], rax
jmp short $+2
loc_3F2D8:
mov rdi, [rsp+558h+var_500]; this
call _ZNK6google8protobuf14FileDescriptor4poolEv; google::protobuf::FileDescriptor::pool(void)
mov [rsp+558h+var_508], rax
jmp short $+2
loc_3F2E9:
mov rdx, [rsp+558h+var_508]
mov rsi, [rsp+558h+var_4E8]
mov edi, [rsp+558h+var_4EC]
mov rcx, [rsp+558h+var_18]
call _ZN6google8protobuf12_GLOBAL__N_117FormatLineOptionsEiRKNS0_7MessageEPKNS0_14DescriptorPoolEPNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE; google::protobuf::`anonymous namespace'::FormatLineOptions(int,google::protobuf::Message const&,google::protobuf::DescriptorPool const*,std::string *)
jmp short $+2
loc_3F306:
mov rax, qword ptr [rsp+558h+var_20]
test byte ptr [rax+2], 1
jz loc_3F398
mov rdi, [rsp+558h+var_18]
lea rsi, asc_1EDA49; " ... }\n"
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6appendEPKc; std::string::append(char const*)
jmp short $+2
loc_3F32E:
jmp loc_3F560
mov rcx, rax
mov eax, edx
mov [rsp+arg_500], rcx
mov [rsp+arg_4FC], eax
lea rdi, [rsp+arg_50F]
call __ZNSaIcED1Ev; std::allocator<char>::~allocator()
jmp loc_3F5A6
mov rcx, rax
mov eax, edx
mov [rsp+arg_500], rcx
mov [rsp+arg_4FC], eax
jmp loc_3F599
mov rcx, rax
mov eax, edx
mov [rsp+arg_500], rcx
mov [rsp+arg_4FC], eax
lea rdi, [rsp+arg_460]; this
call _ZN6google8protobuf12_GLOBAL__N_128SourceLocationCommentPrinterD2Ev; google::protobuf::`anonymous namespace'::SourceLocationCommentPrinter::~SourceLocationCommentPrinter()
jmp loc_3F599
loc_3F398:
mov rdi, [rsp+558h+var_18]
lea rsi, aSyntax0+0Fh; "\n"
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6appendEPKc; std::string::append(char const*)
jmp short $+2
loc_3F3AE:
mov [rsp+558h+var_2D4], 0
loc_3F3B9:
mov rdi, [rsp+558h+var_4D0]; this
mov eax, [rsp+558h+var_2D4]
mov [rsp+558h+var_510], eax
call _ZNK6google8protobuf15OneofDescriptor11field_countEv; google::protobuf::OneofDescriptor::field_count(void)
mov [rsp+558h+var_50C], eax
jmp short $+2
loc_3F3D7:
mov eax, [rsp+558h+var_510]
mov ecx, [rsp+558h+var_50C]
cmp eax, ecx
jge short loc_3F436
mov rdi, [rsp+558h+var_4D0]; this
mov esi, [rsp+558h+var_2D4]; int
call _ZNK6google8protobuf15OneofDescriptor5fieldEi; google::protobuf::OneofDescriptor::field(int)
mov [rsp+558h+var_518], rax
jmp short $+2
loc_3F3FE:
mov rdi, [rsp+558h+var_518]
mov esi, [rsp+558h+var_C]
mov rdx, [rsp+558h+var_18]
mov rcx, qword ptr [rsp+558h+var_20]
call _ZNK6google8protobuf15FieldDescriptor11DebugStringEiPNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKNS0_18DebugStringOptionsE; google::protobuf::FieldDescriptor::DebugString(int,std::string *,google::protobuf::DebugStringOptions const&)
jmp short $+2
loc_3F421:
jmp short $+2
loc_3F423:
mov eax, [rsp+558h+var_2D4]
add eax, 1
mov [rsp+558h+var_2D4], eax
jmp short loc_3F3B9
loc_3F436:
mov rax, [rsp+558h+var_18]
mov [rsp+558h+var_520], rax
lea rdi, [rsp+558h+var_308]
lea rsi, [rsp+558h+var_40]
call _ZN6google8protobuf7strings8internal13SubstituteArgC2ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE; google::protobuf::strings::internal::SubstituteArg::SubstituteArg(std::string const&)
jmp short $+2
loc_3F45A:
lea rdi, [rsp+558h+var_338]; this
call _ZN6google8protobuf7strings8internal13SubstituteArgC2Ev; google::protobuf::strings::internal::SubstituteArg::SubstituteArg(void)
jmp short $+2
loc_3F469:
lea rdi, [rsp+558h+var_368]; this
call _ZN6google8protobuf7strings8internal13SubstituteArgC2Ev; google::protobuf::strings::internal::SubstituteArg::SubstituteArg(void)
jmp short $+2
loc_3F478:
lea rdi, [rsp+558h+var_398]; this
call _ZN6google8protobuf7strings8internal13SubstituteArgC2Ev; google::protobuf::strings::internal::SubstituteArg::SubstituteArg(void)
jmp short $+2
loc_3F487:
lea rdi, [rsp+558h+var_3C8]; this
call _ZN6google8protobuf7strings8internal13SubstituteArgC2Ev; google::protobuf::strings::internal::SubstituteArg::SubstituteArg(void)
jmp short $+2
loc_3F496:
lea rdi, [rsp+558h+var_3F8]; this
call _ZN6google8protobuf7strings8internal13SubstituteArgC2Ev; google::protobuf::strings::internal::SubstituteArg::SubstituteArg(void)
jmp short $+2
loc_3F4A5:
lea rdi, [rsp+558h+var_428]; this
call _ZN6google8protobuf7strings8internal13SubstituteArgC2Ev; google::protobuf::strings::internal::SubstituteArg::SubstituteArg(void)
jmp short $+2
loc_3F4B4:
lea rdi, [rsp+558h+var_458]; this
call _ZN6google8protobuf7strings8internal13SubstituteArgC2Ev; google::protobuf::strings::internal::SubstituteArg::SubstituteArg(void)
jmp short $+2
loc_3F4C3:
lea rdi, [rsp+558h+var_488]; this
call _ZN6google8protobuf7strings8internal13SubstituteArgC2Ev; google::protobuf::strings::internal::SubstituteArg::SubstituteArg(void)
jmp short $+2
loc_3F4D2:
lea rdi, [rsp+558h+var_4B8]; this
call _ZN6google8protobuf7strings8internal13SubstituteArgC2Ev; google::protobuf::strings::internal::SubstituteArg::SubstituteArg(void)
jmp short $+2
loc_3F4E1:
mov rdi, [rsp+558h+var_520]
mov rax, rsp
lea rcx, [rsp+558h+var_4B8]
mov [rax+28h], rcx
lea rcx, [rsp+558h+var_488]
mov [rax+20h], rcx
lea rcx, [rsp+558h+var_458]
mov [rax+18h], rcx
lea rcx, [rsp+558h+var_428]
mov [rax+10h], rcx
lea rcx, [rsp+558h+var_3F8]
mov [rax+8], rcx
lea rcx, [rsp+558h+var_3C8]
mov [rax], rcx
lea rsi, a0_1; "$0}\n"
lea rdx, [rsp+558h+var_308]
lea rcx, [rsp+558h+var_338]
lea r8, [rsp+558h+var_368]
lea r9, [rsp+558h+var_398]
call _ZN6google8protobuf7strings19SubstituteAndAppendEPNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPKcRKNS1_8internal13SubstituteArgESE_SE_SE_SE_SE_SE_SE_SE_SE_; google::protobuf::strings::SubstituteAndAppend(std::string *,char const*,google::protobuf::strings::internal::SubstituteArg const&,google::protobuf::strings::internal::SubstituteArg const&,google::protobuf::strings::internal::SubstituteArg const&,google::protobuf::strings::internal::SubstituteArg const&,google::protobuf::strings::internal::SubstituteArg const&,google::protobuf::strings::internal::SubstituteArg const&,google::protobuf::strings::internal::SubstituteArg const&,google::protobuf::strings::internal::SubstituteArg const&,google::protobuf::strings::internal::SubstituteArg const&,google::protobuf::strings::internal::SubstituteArg const&)
jmp short $+2
loc_3F55E:
jmp short $+2
loc_3F560:
mov rsi, [rsp+558h+var_18]
lea rdi, [rsp+558h+var_F0]
call _ZN6google8protobuf12_GLOBAL__N_128SourceLocationCommentPrinter14AddPostCommentEPNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE; google::protobuf::`anonymous namespace'::SourceLocationCommentPrinter::AddPostComment(std::string *)
jmp short $+2
loc_3F577:
lea rdi, [rsp+558h+var_F0]; this
call _ZN6google8protobuf12_GLOBAL__N_128SourceLocationCommentPrinterD2Ev; google::protobuf::`anonymous namespace'::SourceLocationCommentPrinter::~SourceLocationCommentPrinter()
lea rdi, [rsp+558h+var_40]
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string()
add rsp, 558h
retn
loc_3F599:
lea rdi, [rsp+arg_510]
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string()
loc_3F5A6:
mov rdi, [rsp+arg_500]
call __Unwind_Resume
| long long google::protobuf::OneofDescriptor::DebugString(
google::protobuf::OneofDescriptor *a1,
long long a2,
long long a3,
long long a4,
double a5)
{
int v5; // r8d
int v6; // r9d
int v8; // [rsp+0h] [rbp-558h]
google::protobuf::SourceLocation *v9; // [rsp+8h] [rbp-550h]
int v10; // [rsp+10h] [rbp-548h]
long long v11; // [rsp+18h] [rbp-540h]
int v12; // [rsp+20h] [rbp-538h]
long long v13; // [rsp+28h] [rbp-530h]
long long v14; // [rsp+38h] [rbp-520h]
google::protobuf::FieldDescriptor *v15; // [rsp+40h] [rbp-518h]
long long v16; // [rsp+50h] [rbp-508h]
google::protobuf::FileDescriptor *v17; // [rsp+58h] [rbp-500h]
google::protobuf::Descriptor *v18; // [rsp+60h] [rbp-4F8h]
int v19; // [rsp+6Ch] [rbp-4ECh]
long long *v20; // [rsp+70h] [rbp-4E8h]
long long v21; // [rsp+78h] [rbp-4E0h]
long long v22; // [rsp+80h] [rbp-4D8h]
_BYTE v23[48]; // [rsp+A0h] [rbp-4B8h] BYREF
_BYTE v24[48]; // [rsp+D0h] [rbp-488h] BYREF
_BYTE v25[48]; // [rsp+100h] [rbp-458h] BYREF
_BYTE v26[48]; // [rsp+130h] [rbp-428h] BYREF
_BYTE v27[48]; // [rsp+160h] [rbp-3F8h] BYREF
_BYTE v28[48]; // [rsp+190h] [rbp-3C8h] BYREF
_BYTE v29[48]; // [rsp+1C0h] [rbp-398h] BYREF
_BYTE v30[48]; // [rsp+1F0h] [rbp-368h] BYREF
_BYTE v31[48]; // [rsp+220h] [rbp-338h] BYREF
_BYTE v32[52]; // [rsp+250h] [rbp-308h] BYREF
int i; // [rsp+284h] [rbp-2D4h]
_BYTE v34[48]; // [rsp+288h] [rbp-2D0h] BYREF
_BYTE v35[48]; // [rsp+2B8h] [rbp-2A0h] BYREF
_BYTE v36[48]; // [rsp+2E8h] [rbp-270h] BYREF
_BYTE v37[48]; // [rsp+318h] [rbp-240h] BYREF
_BYTE v38[48]; // [rsp+348h] [rbp-210h] BYREF
_BYTE v39[48]; // [rsp+378h] [rbp-1E0h] BYREF
_BYTE v40[48]; // [rsp+3A8h] [rbp-1B0h] BYREF
_BYTE v41[48]; // [rsp+3D8h] [rbp-180h] BYREF
_BYTE v42[48]; // [rsp+408h] [rbp-150h] BYREF
_BYTE v43[48]; // [rsp+438h] [rbp-120h] BYREF
_BYTE v44[175]; // [rsp+468h] [rbp-F0h] BYREF
char v45; // [rsp+517h] [rbp-41h] BYREF
int v46[8]; // [rsp+518h] [rbp-40h] BYREF
int v47[2]; // [rsp+538h] [rbp-20h]
long long v48; // [rsp+540h] [rbp-18h]
unsigned int v49; // [rsp+54Ch] [rbp-Ch]
google::protobuf::OneofDescriptor *v50; // [rsp+550h] [rbp-8h]
v50 = a1;
v49 = a2;
v48 = a3;
*(_QWORD *)v47 = a4;
std::allocator<char>::allocator(&v45, a2);
std::string::basic_string(v46, 2 * (int)a2, 32LL, &v45);
std::allocator<char>::~allocator(&v45);
++v49;
google::protobuf::`anonymous namespace'::SourceLocationCommentPrinter::SourceLocationCommentPrinter<google::protobuf::OneofDescriptor>(
(int)v44,
(int)a1,
(int)v46,
v47[0],
v5,
v6,
v8,
v9,
v10,
v11,
v12,
v13);
google::protobuf::`anonymous namespace'::SourceLocationCommentPrinter::AddPreComment(v44, v48);
v22 = v48;
google::protobuf::strings::internal::SubstituteArg::SubstituteArg(v43, v46);
v21 = google::protobuf::OneofDescriptor::name[abi:cxx11](a1);
google::protobuf::strings::internal::SubstituteArg::SubstituteArg(v42, v21);
google::protobuf::strings::internal::SubstituteArg::SubstituteArg((google::protobuf::strings::internal::SubstituteArg *)v41);
google::protobuf::strings::internal::SubstituteArg::SubstituteArg((google::protobuf::strings::internal::SubstituteArg *)v40);
google::protobuf::strings::internal::SubstituteArg::SubstituteArg((google::protobuf::strings::internal::SubstituteArg *)v39);
google::protobuf::strings::internal::SubstituteArg::SubstituteArg((google::protobuf::strings::internal::SubstituteArg *)v38);
google::protobuf::strings::internal::SubstituteArg::SubstituteArg((google::protobuf::strings::internal::SubstituteArg *)v37);
google::protobuf::strings::internal::SubstituteArg::SubstituteArg((google::protobuf::strings::internal::SubstituteArg *)v36);
google::protobuf::strings::internal::SubstituteArg::SubstituteArg((google::protobuf::strings::internal::SubstituteArg *)v35);
google::protobuf::strings::internal::SubstituteArg::SubstituteArg((google::protobuf::strings::internal::SubstituteArg *)v34);
google::protobuf::strings::SubstituteAndAppend(v22, "$0oneof $1 {", v43, v42, v41, v40);
v19 = v49;
v20 = (long long *)google::protobuf::OneofDescriptor::options(a1);
v18 = (google::protobuf::Descriptor *)google::protobuf::OneofDescriptor::containing_type(a1);
v17 = (google::protobuf::FileDescriptor *)google::protobuf::Descriptor::file(v18);
v16 = google::protobuf::FileDescriptor::pool(v17);
google::protobuf::`anonymous namespace'::FormatLineOptions(v19, v20, v16, v48);
if ( (*(_BYTE *)(*(_QWORD *)v47 + 2LL) & 1) != 0 )
{
std::string::append(v48, (long long)" ... }\n");
}
else
{
std::string::append(v48, (long long)"\n");
for ( i = 0; i < (int)google::protobuf::OneofDescriptor::field_count(a1); ++i )
{
v15 = (google::protobuf::FieldDescriptor *)google::protobuf::OneofDescriptor::field(a1, i);
google::protobuf::FieldDescriptor::DebugString(v15, v49, v48, *(long long *)v47, a5);
}
v14 = v48;
google::protobuf::strings::internal::SubstituteArg::SubstituteArg(v32, v46);
google::protobuf::strings::internal::SubstituteArg::SubstituteArg((google::protobuf::strings::internal::SubstituteArg *)v31);
google::protobuf::strings::internal::SubstituteArg::SubstituteArg((google::protobuf::strings::internal::SubstituteArg *)v30);
google::protobuf::strings::internal::SubstituteArg::SubstituteArg((google::protobuf::strings::internal::SubstituteArg *)v29);
google::protobuf::strings::internal::SubstituteArg::SubstituteArg((google::protobuf::strings::internal::SubstituteArg *)v28);
google::protobuf::strings::internal::SubstituteArg::SubstituteArg((google::protobuf::strings::internal::SubstituteArg *)v27);
google::protobuf::strings::internal::SubstituteArg::SubstituteArg((google::protobuf::strings::internal::SubstituteArg *)v26);
google::protobuf::strings::internal::SubstituteArg::SubstituteArg((google::protobuf::strings::internal::SubstituteArg *)v25);
google::protobuf::strings::internal::SubstituteArg::SubstituteArg((google::protobuf::strings::internal::SubstituteArg *)v24);
google::protobuf::strings::internal::SubstituteArg::SubstituteArg((google::protobuf::strings::internal::SubstituteArg *)v23);
google::protobuf::strings::SubstituteAndAppend(v14, "$0}\n", v32, v31, v30, v29);
}
google::protobuf::`anonymous namespace'::SourceLocationCommentPrinter::AddPostComment(v44, v48);
google::protobuf::`anonymous namespace'::SourceLocationCommentPrinter::~SourceLocationCommentPrinter((google::protobuf::_anonymous_namespace_::SourceLocationCommentPrinter *)v44);
return std::string::~string(v46);
}
| DebugString:
SUB RSP,0x558
MOV qword ptr [RSP + 0x550],RDI
MOV dword ptr [RSP + 0x54c],ESI
MOV qword ptr [RSP + 0x540],RDX
MOV qword ptr [RSP + 0x538],RCX
MOV RAX,qword ptr [RSP + 0x550]
MOV qword ptr [RSP + 0x88],RAX
MOV EAX,dword ptr [RSP + 0x54c]
ADD EAX,EAX
CDQE
MOV qword ptr [RSP + 0x90],RAX
LEA RDI,[RSP + 0x517]
MOV qword ptr [RSP + 0x98],RDI
CALL 0x00113760
MOV RSI,qword ptr [RSP + 0x90]
MOV RCX,qword ptr [RSP + 0x98]
LAB_0013f0de:
LEA RDI,[RSP + 0x518]
MOV EDX,0x20
CALL 0x001132f0
JMP 0x0013f0f2
LAB_0013f0f2:
LEA RDI,[RSP + 0x517]
CALL 0x001134d0
MOV RSI,qword ptr [RSP + 0x88]
MOV EAX,dword ptr [RSP + 0x54c]
INC EAX
MOV dword ptr [RSP + 0x54c],EAX
MOV RCX,qword ptr [RSP + 0x538]
LAB_0013f11f:
LEA RDI,[RSP + 0x468]
LEA RDX,[RSP + 0x518]
CALL 0x0013fc50
JMP 0x0013f136
LAB_0013f136:
MOV RSI,qword ptr [RSP + 0x540]
LAB_0013f13e:
LEA RDI,[RSP + 0x468]
CALL 0x0013af90
JMP 0x0013f14d
LAB_0013f14d:
MOV RAX,qword ptr [RSP + 0x540]
MOV qword ptr [RSP + 0x80],RAX
LEA RDI,[RSP + 0x438]
LEA RSI,[RSP + 0x518]
CALL 0x001769e0
JMP 0x0013f174
LAB_0013f174:
MOV RDI,qword ptr [RSP + 0x88]
CALL 0x001764b0
MOV qword ptr [RSP + 0x78],RAX
JMP 0x0013f188
LAB_0013f188:
MOV RSI,qword ptr [RSP + 0x78]
LEA RDI,[RSP + 0x408]
CALL 0x001769e0
JMP 0x0013f19c
LAB_0013f19c:
LEA RDI,[RSP + 0x3d8]
CALL 0x00176920
JMP 0x0013f1ab
LAB_0013f1ab:
LEA RDI,[RSP + 0x3a8]
CALL 0x00176920
JMP 0x0013f1ba
LAB_0013f1ba:
LEA RDI,[RSP + 0x378]
CALL 0x00176920
JMP 0x0013f1c9
LAB_0013f1c9:
LEA RDI,[RSP + 0x348]
CALL 0x00176920
JMP 0x0013f1d8
LAB_0013f1d8:
LEA RDI,[RSP + 0x318]
CALL 0x00176920
JMP 0x0013f1e7
LAB_0013f1e7:
LEA RDI,[RSP + 0x2e8]
CALL 0x00176920
JMP 0x0013f1f6
LAB_0013f1f6:
LEA RDI,[RSP + 0x2b8]
CALL 0x00176920
JMP 0x0013f205
LAB_0013f205:
LEA RDI,[RSP + 0x288]
CALL 0x00176920
JMP 0x0013f214
LAB_0013f214:
MOV RDI,qword ptr [RSP + 0x80]
MOV RAX,RSP
LEA RCX,[RSP + 0x288]
MOV qword ptr [RAX + 0x28],RCX
LEA RCX,[RSP + 0x2b8]
MOV qword ptr [RAX + 0x20],RCX
LEA RCX,[RSP + 0x2e8]
MOV qword ptr [RAX + 0x18],RCX
LEA RCX,[RSP + 0x318]
MOV qword ptr [RAX + 0x10],RCX
LEA RCX,[RSP + 0x348]
MOV qword ptr [RAX + 0x8],RCX
LEA RCX,[RSP + 0x378]
MOV qword ptr [RAX],RCX
LEA RSI,[0x2eda3c]
LEA RDX,[RSP + 0x438]
LEA RCX,[RSP + 0x408]
LEA R8,[RSP + 0x3d8]
LEA R9,[RSP + 0x3a8]
CALL 0x00244ce0
JMP 0x0013f294
LAB_0013f294:
MOV RDI,qword ptr [RSP + 0x88]
MOV EAX,dword ptr [RSP + 0x54c]
MOV dword ptr [RSP + 0x6c],EAX
CALL 0x001764c0
MOV qword ptr [RSP + 0x70],RAX
JMP 0x0013f2b3
LAB_0013f2b3:
MOV RDI,qword ptr [RSP + 0x88]
CALL 0x00176d00
MOV qword ptr [RSP + 0x60],RAX
JMP 0x0013f2c7
LAB_0013f2c7:
MOV RDI,qword ptr [RSP + 0x60]
CALL 0x00174c50
MOV qword ptr [RSP + 0x58],RAX
JMP 0x0013f2d8
LAB_0013f2d8:
MOV RDI,qword ptr [RSP + 0x58]
CALL 0x00176a30
MOV qword ptr [RSP + 0x50],RAX
JMP 0x0013f2e9
LAB_0013f2e9:
MOV RDX,qword ptr [RSP + 0x50]
MOV RSI,qword ptr [RSP + 0x70]
MOV EDI,dword ptr [RSP + 0x6c]
MOV RCX,qword ptr [RSP + 0x540]
CALL 0x0013b2c0
JMP 0x0013f306
LAB_0013f306:
MOV RAX,qword ptr [RSP + 0x538]
TEST byte ptr [RAX + 0x2],0x1
JZ 0x0013f398
MOV RDI,qword ptr [RSP + 0x540]
LEA RSI,[0x2eda49]
CALL 0x001193c0
JMP 0x0013f32e
LAB_0013f32e:
JMP 0x0013f560
LAB_0013f398:
MOV RDI,qword ptr [RSP + 0x540]
LEA RSI,[0x2ed928]
CALL 0x001193c0
JMP 0x0013f3ae
LAB_0013f3ae:
MOV dword ptr [RSP + 0x284],0x0
LAB_0013f3b9:
MOV RDI,qword ptr [RSP + 0x88]
MOV EAX,dword ptr [RSP + 0x284]
MOV dword ptr [RSP + 0x48],EAX
CALL 0x00176d10
MOV dword ptr [RSP + 0x4c],EAX
JMP 0x0013f3d7
LAB_0013f3d7:
MOV EAX,dword ptr [RSP + 0x48]
MOV ECX,dword ptr [RSP + 0x4c]
CMP EAX,ECX
JGE 0x0013f436
MOV RDI,qword ptr [RSP + 0x88]
MOV ESI,dword ptr [RSP + 0x284]
CALL 0x00176b80
MOV qword ptr [RSP + 0x40],RAX
JMP 0x0013f3fe
LAB_0013f3fe:
MOV RDI,qword ptr [RSP + 0x40]
MOV ESI,dword ptr [RSP + 0x54c]
MOV RDX,qword ptr [RSP + 0x540]
MOV RCX,qword ptr [RSP + 0x538]
CALL 0x0013e2b0
JMP 0x0013f421
LAB_0013f421:
JMP 0x0013f423
LAB_0013f423:
MOV EAX,dword ptr [RSP + 0x284]
ADD EAX,0x1
MOV dword ptr [RSP + 0x284],EAX
JMP 0x0013f3b9
LAB_0013f436:
MOV RAX,qword ptr [RSP + 0x540]
MOV qword ptr [RSP + 0x38],RAX
LEA RDI,[RSP + 0x250]
LEA RSI,[RSP + 0x518]
CALL 0x001769e0
JMP 0x0013f45a
LAB_0013f45a:
LEA RDI,[RSP + 0x220]
CALL 0x00176920
JMP 0x0013f469
LAB_0013f469:
LEA RDI,[RSP + 0x1f0]
CALL 0x00176920
JMP 0x0013f478
LAB_0013f478:
LEA RDI,[RSP + 0x1c0]
CALL 0x00176920
JMP 0x0013f487
LAB_0013f487:
LEA RDI,[RSP + 0x190]
CALL 0x00176920
JMP 0x0013f496
LAB_0013f496:
LEA RDI,[RSP + 0x160]
CALL 0x00176920
JMP 0x0013f4a5
LAB_0013f4a5:
LEA RDI,[RSP + 0x130]
CALL 0x00176920
JMP 0x0013f4b4
LAB_0013f4b4:
LEA RDI,[RSP + 0x100]
CALL 0x00176920
JMP 0x0013f4c3
LAB_0013f4c3:
LEA RDI,[RSP + 0xd0]
CALL 0x00176920
JMP 0x0013f4d2
LAB_0013f4d2:
LEA RDI,[RSP + 0xa0]
CALL 0x00176920
JMP 0x0013f4e1
LAB_0013f4e1:
MOV RDI,qword ptr [RSP + 0x38]
MOV RAX,RSP
LEA RCX,[RSP + 0xa0]
MOV qword ptr [RAX + 0x28],RCX
LEA RCX,[RSP + 0xd0]
MOV qword ptr [RAX + 0x20],RCX
LEA RCX,[RSP + 0x100]
MOV qword ptr [RAX + 0x18],RCX
LEA RCX,[RSP + 0x130]
MOV qword ptr [RAX + 0x10],RCX
LEA RCX,[RSP + 0x160]
MOV qword ptr [RAX + 0x8],RCX
LEA RCX,[RSP + 0x190]
MOV qword ptr [RAX],RCX
LEA RSI,[0x2ed9f1]
LEA RDX,[RSP + 0x250]
LEA RCX,[RSP + 0x220]
LEA R8,[RSP + 0x1f0]
LEA R9,[RSP + 0x1c0]
CALL 0x00244ce0
JMP 0x0013f55e
LAB_0013f55e:
JMP 0x0013f560
LAB_0013f560:
MOV RSI,qword ptr [RSP + 0x540]
LEA RDI,[RSP + 0x468]
CALL 0x0013b110
LAB_0013f575:
JMP 0x0013f577
LAB_0013f577:
LEA RDI,[RSP + 0x468]
CALL 0x0013b1b0
LEA RDI,[RSP + 0x518]
CALL 0x00113290
ADD RSP,0x558
RET
|
/* google::protobuf::OneofDescriptor::DebugString(int, std::__cxx11::string*,
google::protobuf::DebugStringOptions const&) const */
void __thiscall
google::protobuf::OneofDescriptor::DebugString
(OneofDescriptor *this,int param_1,string *param_2,DebugStringOptions *param_3)
{
int iVar1;
string *psVar2;
int iVar3;
string *psVar4;
Message *pMVar5;
Descriptor *this_00;
FileDescriptor *this_01;
DescriptorPool *pDVar6;
FieldDescriptor *this_02;
SubstituteArg local_4b8 [48];
SubstituteArg local_488 [48];
SubstituteArg local_458 [48];
SubstituteArg local_428 [48];
SubstituteArg local_3f8 [48];
SubstituteArg local_3c8 [48];
SubstituteArg local_398 [48];
SubstituteArg local_368 [48];
SubstituteArg local_338 [48];
SubstituteArg local_308 [52];
int local_2d4;
SubstituteArg local_2d0 [48];
SubstituteArg local_2a0 [48];
SubstituteArg local_270 [48];
SubstituteArg local_240 [48];
SubstituteArg local_210 [48];
SubstituteArg local_1e0 [48];
SubstituteArg local_1b0 [48];
SubstituteArg local_180 [48];
SubstituteArg local_150 [48];
SubstituteArg local_120 [48];
SourceLocationCommentPrinter local_f0 [175];
allocator local_41;
string local_40 [32];
DebugStringOptions *local_20;
string *local_18;
int local_c;
OneofDescriptor *local_8;
local_20 = param_3;
local_18 = param_2;
local_c = param_1;
local_8 = this;
std::allocator<char>::allocator();
/* try { // try from 0013f0de to 0013f0ef has its CatchHandler @ 0013f333 */
std::__cxx11::string::string(local_40,(long)(param_1 * 2),' ',&local_41);
std::allocator<char>::~allocator((allocator<char> *)&local_41);
local_c = local_c + 1;
/* try { // try from 0013f11f to 0013f133 has its CatchHandler @ 0013f359 */
(anonymous_namespace)::SourceLocationCommentPrinter::
SourceLocationCommentPrinter<google::protobuf::OneofDescriptor>(local_f0,this,local_40,local_20);
/* try { // try from 0013f13e to 0013f574 has its CatchHandler @ 0013f372 */
(anonymous_namespace)::SourceLocationCommentPrinter::AddPreComment(local_f0,local_18);
psVar2 = local_18;
strings::internal::SubstituteArg::SubstituteArg(local_120,local_40);
psVar4 = (string *)name_abi_cxx11_(this);
strings::internal::SubstituteArg::SubstituteArg(local_150,psVar4);
strings::internal::SubstituteArg::SubstituteArg(local_180);
strings::internal::SubstituteArg::SubstituteArg(local_1b0);
strings::internal::SubstituteArg::SubstituteArg(local_1e0);
strings::internal::SubstituteArg::SubstituteArg(local_210);
strings::internal::SubstituteArg::SubstituteArg(local_240);
strings::internal::SubstituteArg::SubstituteArg(local_270);
strings::internal::SubstituteArg::SubstituteArg(local_2a0);
strings::internal::SubstituteArg::SubstituteArg(local_2d0);
strings::SubstituteAndAppend
(psVar2,"$0oneof $1 {",local_120,local_150,local_180,local_1b0,local_1e0,local_210,
local_240,local_270,local_2a0,local_2d0);
iVar1 = local_c;
pMVar5 = (Message *)options(this);
this_00 = (Descriptor *)containing_type(this);
this_01 = (FileDescriptor *)Descriptor::file(this_00);
pDVar6 = (DescriptorPool *)FileDescriptor::pool(this_01);
(anonymous_namespace)::FormatLineOptions(iVar1,pMVar5,pDVar6,local_18);
if (((byte)local_20[2] & 1) == 0) {
std::__cxx11::string::append(local_18,"\n");
local_2d4 = 0;
while( true ) {
iVar1 = local_2d4;
iVar3 = field_count(this);
psVar2 = local_18;
if (iVar3 <= iVar1) break;
this_02 = (FieldDescriptor *)field(this,local_2d4);
FieldDescriptor::DebugString(this_02,local_c,local_18,local_20);
local_2d4 = local_2d4 + 1;
}
strings::internal::SubstituteArg::SubstituteArg(local_308,local_40);
strings::internal::SubstituteArg::SubstituteArg(local_338);
strings::internal::SubstituteArg::SubstituteArg(local_368);
strings::internal::SubstituteArg::SubstituteArg(local_398);
strings::internal::SubstituteArg::SubstituteArg(local_3c8);
strings::internal::SubstituteArg::SubstituteArg(local_3f8);
strings::internal::SubstituteArg::SubstituteArg(local_428);
strings::internal::SubstituteArg::SubstituteArg(local_458);
strings::internal::SubstituteArg::SubstituteArg(local_488);
strings::internal::SubstituteArg::SubstituteArg(local_4b8);
strings::SubstituteAndAppend
(psVar2,"$0}\n",local_308,local_338,local_368,local_398,local_3c8,local_3f8,local_428,
local_458,local_488,local_4b8);
}
else {
std::__cxx11::string::append(local_18," ... }\n");
}
(anonymous_namespace)::SourceLocationCommentPrinter::AddPostComment(local_f0,local_18);
(anonymous_namespace)::SourceLocationCommentPrinter::~SourceLocationCommentPrinter(local_f0);
std::__cxx11::string::~string(local_40);
return;
}
| |
45,267 | google::protobuf::OneofDescriptor::DebugString(int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>*, google::protobuf::DebugStringOptions const&) const | aimrt_mujoco_sim/_deps/protobuf-src/src/google/protobuf/descriptor.cc | void OneofDescriptor::DebugString(
int depth, std::string* contents,
const DebugStringOptions& debug_string_options) const {
std::string prefix(depth * 2, ' ');
++depth;
SourceLocationCommentPrinter comment_printer(this, prefix,
debug_string_options);
comment_printer.AddPreComment(contents);
strings::SubstituteAndAppend(contents, "$0oneof $1 {", prefix, name());
FormatLineOptions(depth, options(), containing_type()->file()->pool(),
contents);
if (debug_string_options.elide_oneof_body) {
contents->append(" ... }\n");
} else {
contents->append("\n");
for (int i = 0; i < field_count(); i++) {
field(i)->DebugString(depth, contents, debug_string_options);
}
strings::SubstituteAndAppend(contents, "$0}\n", prefix);
}
comment_printer.AddPostComment(contents);
} | O3 | cpp | google::protobuf::OneofDescriptor::DebugString(int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>*, google::protobuf::DebugStringOptions const&) const:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x298, %rsp # imm = 0x298
movq %rcx, %r14
movq %rdx, %rbx
movl %esi, %r15d
movq %rdi, %r12
leal (%r15,%r15), %eax
movslq %eax, %rsi
leaq 0x10(%rsp), %rax
movq %rax, -0x10(%rax)
movq %rsp, %rbp
movq %rbp, %rdi
movl $0x20, %edx
callq 0xf3c0
leaq 0x28(%rsp), %r13
leaq 0x48(%rsp), %rcx
movq %rcx, -0x10(%rcx)
xorl %eax, %eax
movq %rax, -0x8(%rcx)
movb %al, (%rcx)
leaq 0x68(%rsp), %rcx
movq %rcx, -0x10(%rcx)
movq %rax, -0x8(%rcx)
movb %al, (%rcx)
xorps %xmm0, %xmm0
movups %xmm0, 0x10(%rcx)
movq %rax, 0x20(%rcx)
movzwl (%r14), %eax
movw %ax, 0x28(%rcx)
movb 0x2(%r14), %al
movb %al, 0x2a(%rcx)
leaq 0x98(%rsp), %rdi
leaq 0xa8(%rsp), %rax
movq %rax, -0x10(%rax)
movq (%rbp), %rsi
movq 0x8(%rbp), %rdx
addq %rsi, %rdx
callq 0x13ffc
cmpb $0x1, (%r14)
jne 0x24df9
movq %r12, %rdi
movq %r13, %rsi
callq 0x26350
jmp 0x24dfb
xorl %eax, %eax
leaq 0x20(%rsp), %rdi
movb %al, (%rdi)
movq %rbx, %rsi
callq 0x2201e
movq (%rsp), %rax
leaq 0x268(%rsp), %rdx
movq %rax, (%rdx)
movl 0x8(%rsp), %eax
movl %eax, 0x8(%rdx)
movq 0x8(%r12), %rax
movq (%rax), %rsi
leaq 0x238(%rsp), %rcx
movq %rsi, (%rcx)
movl 0x8(%rax), %eax
movl %eax, 0x8(%rcx)
xorl %eax, %eax
leaq 0x208(%rsp), %r8
movq %rax, (%r8)
movl $0xffffffff, %esi # imm = 0xFFFFFFFF
movl %esi, 0x8(%r8)
leaq 0x1d8(%rsp), %r9
movq %rax, (%r9)
movl %esi, 0x8(%r9)
leaq 0xe8(%rsp), %rdi
movq %rax, (%rdi)
movl %esi, 0x8(%rdi)
leaq 0xb8(%rsp), %rdi
movq %rax, (%rdi)
movl %esi, 0x8(%rdi)
leaq 0x1a8(%rsp), %rbp
movq %rax, (%rbp)
movl %esi, 0x8(%rbp)
leaq 0x178(%rsp), %r13
movq %rax, (%r13)
movl %esi, 0x8(%r13)
leaq 0x148(%rsp), %r10
movq %rax, (%r10)
movl %esi, 0x8(%r10)
leaq 0x118(%rsp), %r11
movq %rax, (%r11)
movl %esi, 0x8(%r11)
leaq 0x9136f(%rip), %rsi # 0xb622d
movq %rbx, %rdi
pushq %r11
pushq %r10
pushq %r13
pushq %rbp
leaq 0xd8(%rsp), %rax
pushq %rax
leaq 0x110(%rsp), %rax
pushq %rax
callq 0x7b9bd
addq $0x30, %rsp
incl %r15d
movq 0x10(%r12), %rax
movq 0x18(%r12), %rsi
movq 0x10(%rax), %rax
movq 0x18(%rax), %rdx
movl %r15d, %edi
movq %rbx, %rcx
callq 0x221d9
leaq 0x10(%rsp), %r13
cmpb $0x1, 0x2(%r14)
jne 0x24f23
leaq 0x91324(%rip), %rsi # 0xb623a
movq %rbx, %rdi
callq 0x13a08
jmp 0x25057
leaq 0x911ef(%rip), %rsi # 0xb6119
movq %rbx, %rdi
callq 0x13a08
cmpl $0x0, 0x4(%r12)
jle 0x24f66
xorl %ebp, %ebp
xorl %r13d, %r13d
movq 0x20(%r12), %rdi
addq %rbp, %rdi
movl %r15d, %esi
movq %rbx, %rdx
movq %r14, %rcx
callq 0x24354
incq %r13
movslq 0x4(%r12), %rax
addq $0x48, %rbp
cmpq %rax, %r13
jl 0x24f3f
movq (%rsp), %rax
leaq 0x268(%rsp), %rdx
movq %rax, (%rdx)
movl 0x8(%rsp), %eax
movl %eax, 0x8(%rdx)
xorl %eax, %eax
leaq 0x238(%rsp), %rcx
movq %rax, (%rcx)
movl $0xffffffff, %esi # imm = 0xFFFFFFFF
movl %esi, 0x8(%rcx)
leaq 0x208(%rsp), %r8
movq %rax, (%r8)
movl %esi, 0x8(%r8)
leaq 0x1d8(%rsp), %r9
movq %rax, (%r9)
movl %esi, 0x8(%r9)
movq %rax, 0xe8(%rsp)
movl %esi, 0xf0(%rsp)
movq %rax, 0xb8(%rsp)
movl %esi, 0xc0(%rsp)
movq %rax, 0x1a8(%rsp)
movl %esi, 0x1b0(%rsp)
movq %rax, 0x178(%rsp)
movl %esi, 0x180(%rsp)
movq %rax, 0x148(%rsp)
movl %esi, 0x150(%rsp)
movq %rax, 0x118(%rsp)
movl %esi, 0x120(%rsp)
leaq 0x911d2(%rip), %rsi # 0xb61e2
movq %rbx, %rdi
leaq 0x118(%rsp), %rax
pushq %rax
leaq 0x150(%rsp), %rax
pushq %rax
leaq 0x188(%rsp), %rax
pushq %rax
leaq 0x1c0(%rsp), %rax
pushq %rax
leaq 0xd8(%rsp), %rax
pushq %rax
leaq 0x110(%rsp), %rax
pushq %rax
callq 0x7b9bd
addq $0x30, %rsp
leaq 0x10(%rsp), %r13
leaq 0x20(%rsp), %rdi
movq %rbx, %rsi
callq 0x2211c
leaq 0x78(%rsp), %rbx
movq 0x20(%rbx), %rdi
leaq 0xa8(%rsp), %rax
cmpq %rax, %rdi
je 0x2507f
callq 0xf330
movq %rbx, %rdi
callq 0x11e36
movq 0x58(%rsp), %rdi
leaq 0x68(%rsp), %rax
cmpq %rax, %rdi
je 0x2509b
callq 0xf330
movq 0x38(%rsp), %rdi
leaq 0x48(%rsp), %rax
cmpq %rax, %rdi
je 0x250af
callq 0xf330
movq (%rsp), %rdi
cmpq %r13, %rdi
je 0x250bd
callq 0xf330
addq $0x298, %rsp # imm = 0x298
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x25101
movq %rax, %rbx
movq 0x98(%rsp), %rdi
leaq 0xa8(%rsp), %rax
cmpq %rax, %rdi
je 0x250f5
callq 0xf330
jmp 0x250f5
jmp 0x25101
movq %rax, %rbx
movq %r13, %rdi
callq 0x40206
jmp 0x2510e
jmp 0x25101
movq %rax, %rbx
leaq 0x20(%rsp), %rdi
callq 0x22190
movq (%rsp), %rdi
leaq 0x10(%rsp), %rax
cmpq %rax, %rdi
je 0x25121
callq 0xf330
movq %rbx, %rdi
callq 0xf570
nop
| _ZNK6google8protobuf15OneofDescriptor11DebugStringEiPNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKNS0_18DebugStringOptionsE:
push rbp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 298h
mov r14, rcx
mov rbx, rdx
mov r15d, esi
mov r12, rdi
lea eax, [r15+r15]
movsxd rsi, eax
lea rax, [rsp+var_s10]
mov [rax-10h], rax
mov rbp, rsp
mov rdi, rbp
mov edx, 20h ; ' '
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructEmc; std::string::_M_construct(ulong,char)
lea r13, [rsp+var_s28]
lea rcx, [rsp+var_s48]
mov [rcx-10h], rcx
xor eax, eax
mov [rcx-8], rax
mov [rcx], al
lea rcx, [rsp+var_s68]
mov [rcx-10h], rcx
mov [rcx-8], rax
mov [rcx], al
xorps xmm0, xmm0
movups xmmword ptr [rcx+10h], xmm0
mov [rcx+20h], rax
movzx eax, word ptr [r14]
mov [rcx+28h], ax
mov al, [r14+2]
mov [rcx+2Ah], al
lea rdi, [rsp+var_s98]
lea rax, [rsp+var_sA8]
mov [rax-10h], rax
mov rsi, [rbp+var_s0]
mov rdx, [rbp+var_s8]
add rdx, rsi
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPcEEvT_S7_St20forward_iterator_tag; std::string::_M_construct<char *>(char *,char *,std::forward_iterator_tag)
cmp byte ptr [r14], 1
jnz short loc_24DF9
mov rdi, r12; this
mov rsi, r13; google::protobuf::SourceLocation *
call _ZNK6google8protobuf15OneofDescriptor17GetSourceLocationEPNS0_14SourceLocationE; google::protobuf::OneofDescriptor::GetSourceLocation(google::protobuf::SourceLocation *)
jmp short loc_24DFB
loc_24DF9:
xor eax, eax
loc_24DFB:
lea rdi, [rsp+var_s20]
mov [rdi], al
mov rsi, rbx
call _ZN6google8protobuf12_GLOBAL__N_128SourceLocationCommentPrinter13AddPreCommentEPNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE; google::protobuf::`anonymous namespace'::SourceLocationCommentPrinter::AddPreComment(std::string *)
mov rax, [rsp+var_s0]
lea rdx, [rsp+var_s268]; int
mov [rdx], rax
mov eax, dword ptr [rsp+var_s8]
mov [rdx+8], eax
mov rax, [r12+8]
mov rsi, [rax]
lea rcx, [rsp+var_s238]; int
mov [rcx], rsi
mov eax, [rax+8]
mov [rcx+8], eax
xor eax, eax
lea r8, [rsp+var_s208]; int
mov [r8], rax
mov esi, 0FFFFFFFFh
mov [r8+8], esi
lea r9, [rsp+var_s1D8]; int
mov [r9], rax
mov [r9+8], esi
lea rdi, [rsp+var_sE8]
mov [rdi], rax
mov [rdi+8], esi
lea rdi, [rsp+var_sB8]
mov [rdi], rax
mov [rdi+8], esi
lea rbp, [rsp+var_s1A8]
mov [rbp+var_s0], rax
mov dword ptr [rbp+var_s8], esi
lea r13, [rsp+var_s178]
mov [r13+0], rax
mov [r13+8], esi
lea r10, [rsp+var_s148]
mov [r10], rax
mov [r10+8], esi
lea r11, [rsp+var_s118]
mov [r11], rax
mov [r11+8], esi
lea rsi, a0oneof1; "$0oneof $1 {"
mov rdi, rbx; int
push r11; int
push r10; void *
push r13
push rbp; __int128
lea rax, [rsp+20h+var_sB8]
push rax; int
lea rax, [rsp+28h+var_sE8]
push rax; void *
call _ZN6google8protobuf7strings19SubstituteAndAppendEPNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPKcRKNS1_8internal13SubstituteArgESE_SE_SE_SE_SE_SE_SE_SE_SE_; google::protobuf::strings::SubstituteAndAppend(std::string *,char const*,google::protobuf::strings::internal::SubstituteArg const&,google::protobuf::strings::internal::SubstituteArg const&,google::protobuf::strings::internal::SubstituteArg const&,google::protobuf::strings::internal::SubstituteArg const&,google::protobuf::strings::internal::SubstituteArg const&,google::protobuf::strings::internal::SubstituteArg const&,google::protobuf::strings::internal::SubstituteArg const&,google::protobuf::strings::internal::SubstituteArg const&,google::protobuf::strings::internal::SubstituteArg const&,google::protobuf::strings::internal::SubstituteArg const&)
add rsp, 30h
inc r15d
mov rax, [r12+10h]
mov rsi, [r12+18h]
mov rax, [rax+10h]
mov rdx, [rax+18h]
mov edi, r15d
mov rcx, rbx
call _ZN6google8protobuf12_GLOBAL__N_117FormatLineOptionsEiRKNS0_7MessageEPKNS0_14DescriptorPoolEPNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE; google::protobuf::`anonymous namespace'::FormatLineOptions(int,google::protobuf::Message const&,google::protobuf::DescriptorPool const*,std::string *)
lea r13, [rsp+var_s10]
cmp byte ptr [r14+2], 1
jnz short loc_24F23
lea rsi, asc_B623A; " ... }\n"
mov rdi, rbx
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6appendEPKc; std::string::append(char const*)
jmp loc_25057
loc_24F23:
lea rsi, aSyntax0+0Fh; "\n"
mov rdi, rbx
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6appendEPKc; std::string::append(char const*)
cmp dword ptr [r12+4], 0
jle short loc_24F66
xor ebp, ebp
xor r13d, r13d
loc_24F3F:
mov rdi, [r12+20h]
add rdi, rbp; this
mov esi, r15d; char
mov rdx, rbx; int
mov rcx, r14; int
call _ZNK6google8protobuf15FieldDescriptor11DebugStringEiPNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKNS0_18DebugStringOptionsE; google::protobuf::FieldDescriptor::DebugString(int,std::string *,google::protobuf::DebugStringOptions const&)
inc r13
movsxd rax, dword ptr [r12+4]
add rbp, 48h ; 'H'
cmp r13, rax
jl short loc_24F3F
loc_24F66:
mov rax, [rsp+var_s0]
lea rdx, [rsp+var_s268]; int
mov [rdx], rax
mov eax, dword ptr [rsp+var_s8]
mov [rdx+8], eax
xor eax, eax
lea rcx, [rsp+var_s238]; int
mov [rcx], rax
mov esi, 0FFFFFFFFh
mov [rcx+8], esi
lea r8, [rsp+var_s208]; int
mov [r8], rax
mov [r8+8], esi
lea r9, [rsp+var_s1D8]; int
mov [r9], rax
mov [r9+8], esi
mov [rsp+var_sE8], rax
mov [rsp+var_sF0], esi
mov qword ptr [rsp+var_sB8], rax
mov [rsp+var_sC0], esi
mov qword ptr [rsp+var_s1A8], rax
mov dword ptr [rsp+var_s1A8+8], esi
mov [rsp+var_s178], rax
mov [rsp+var_s180], esi
mov [rsp+var_s148], rax
mov [rsp+var_s150], esi
mov qword ptr [rsp+var_s118], rax
mov [rsp+var_s120], esi
lea rsi, a0_1; "$0}\n"
mov rdi, rbx; int
lea rax, [rsp+var_s118]
push rax; int
lea rax, [rsp+8+var_s148]
push rax; void *
lea rax, [rsp+10h+var_s178]
push rax
lea rax, [rsp+18h+var_s1A8]
push rax; __int128
lea rax, [rsp+20h+var_sB8]
push rax; int
lea rax, [rsp+28h+var_sE8]
push rax; void *
call _ZN6google8protobuf7strings19SubstituteAndAppendEPNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPKcRKNS1_8internal13SubstituteArgESE_SE_SE_SE_SE_SE_SE_SE_SE_; google::protobuf::strings::SubstituteAndAppend(std::string *,char const*,google::protobuf::strings::internal::SubstituteArg const&,google::protobuf::strings::internal::SubstituteArg const&,google::protobuf::strings::internal::SubstituteArg const&,google::protobuf::strings::internal::SubstituteArg const&,google::protobuf::strings::internal::SubstituteArg const&,google::protobuf::strings::internal::SubstituteArg const&,google::protobuf::strings::internal::SubstituteArg const&,google::protobuf::strings::internal::SubstituteArg const&,google::protobuf::strings::internal::SubstituteArg const&,google::protobuf::strings::internal::SubstituteArg const&)
add rsp, 30h
lea r13, [rsp+var_s10]
loc_25057:
lea rdi, [rsp+var_s20]
mov rsi, rbx
call _ZN6google8protobuf12_GLOBAL__N_128SourceLocationCommentPrinter14AddPostCommentEPNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE; google::protobuf::`anonymous namespace'::SourceLocationCommentPrinter::AddPostComment(std::string *)
lea rbx, [rsp+var_s78]
mov rdi, [rbx+20h]; void *
lea rax, [rsp+var_sA8]
cmp rdi, rax
jz short loc_2507F
call __ZdlPv; operator delete(void *)
loc_2507F:
mov rdi, rbx
call _ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EED2Ev; std::vector<std::string>::~vector()
mov rdi, [rsp+var_s58]; void *
lea rax, [rsp+var_s68]
cmp rdi, rax
jz short loc_2509B
call __ZdlPv; operator delete(void *)
loc_2509B:
mov rdi, [rsp+var_s38]; void *
lea rax, [rsp+var_s48]
cmp rdi, rax
jz short loc_250AF
call __ZdlPv; operator delete(void *)
loc_250AF:
mov rdi, [rsp+var_s0]; void *
cmp rdi, r13
jz short loc_250BD
call __ZdlPv; operator delete(void *)
loc_250BD:
add rsp, 298h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
jmp short loc_25101
mov rbx, rax
mov rdi, [rsp-2C8h+arg_90]; void *
lea rax, [rsp-2C8h+arg_A0]
cmp rdi, rax
jz short loc_250F5
call __ZdlPv; operator delete(void *)
jmp short loc_250F5
jmp short loc_25101
mov rbx, rax
loc_250F5:
mov rdi, r13; this
call _ZN6google8protobuf14SourceLocationD2Ev; google::protobuf::SourceLocation::~SourceLocation()
jmp short loc_2510E
jmp short $+2
loc_25101:
mov rbx, rax
lea rdi, [rsp-2C8h+arg_18]; this
call _ZN6google8protobuf12_GLOBAL__N_128SourceLocationCommentPrinterD2Ev; google::protobuf::`anonymous namespace'::SourceLocationCommentPrinter::~SourceLocationCommentPrinter()
loc_2510E:
mov rdi, [rsp+0]; void *
lea rax, [rsp-2C8h+arg_8]
cmp rdi, rax
jz short loc_25121
call __ZdlPv; operator delete(void *)
loc_25121:
mov rdi, rbx
call __Unwind_Resume
| void google::protobuf::OneofDescriptor::DebugString(
google::protobuf::OneofDescriptor *this,
int a2,
_QWORD *a3,
long long a4)
{
char SourceLocation; // al
long long *v7; // rax
long long v8; // rbp
long long v9; // r13
__int128 v10; // [rsp-20h] [rbp-20h]
__int128 v11; // [rsp-20h] [rbp-20h]
void *vars0; // [rsp+0h] [rbp+0h] BYREF
long long vars8; // [rsp+8h] [rbp+8h]
int vars10; // [rsp+10h] [rbp+10h] BYREF
int vars18; // [rsp+18h] [rbp+18h]
int vars20; // [rsp+20h] [rbp+20h] BYREF
int vars28; // [rsp+28h] [rbp+28h] BYREF
int vars30; // [rsp+30h] [rbp+30h]
void *vars38; // [rsp+38h] [rbp+38h]
long long vars40; // [rsp+40h] [rbp+40h]
int vars48; // [rsp+48h] [rbp+48h] BYREF
int vars50; // [rsp+50h] [rbp+50h]
void *vars58; // [rsp+58h] [rbp+58h]
long long vars60; // [rsp+60h] [rbp+60h]
int vars68; // [rsp+68h] [rbp+68h] BYREF
int vars70; // [rsp+70h] [rbp+70h]
__int128 vars78; // [rsp+78h] [rbp+78h] BYREF
long long vars88; // [rsp+88h] [rbp+88h]
__int16 vars90; // [rsp+90h] [rbp+90h]
char vars92; // [rsp+92h] [rbp+92h]
_BYTE *vars98; // [rsp+98h] [rbp+98h] BYREF
_BYTE varsA8[16]; // [rsp+A8h] [rbp+A8h] BYREF
int varsB8[2]; // [rsp+B8h] [rbp+B8h] BYREF
int varsC0; // [rsp+C0h] [rbp+C0h]
long long varsE8; // [rsp+E8h] [rbp+E8h] BYREF
int varsF0; // [rsp+F0h] [rbp+F0h]
int vars118[2]; // [rsp+118h] [rbp+118h] BYREF
int vars120; // [rsp+120h] [rbp+120h]
long long vars148; // [rsp+148h] [rbp+148h] BYREF
int vars150; // [rsp+150h] [rbp+150h]
long long vars178; // [rsp+178h] [rbp+178h] BYREF
int vars180; // [rsp+180h] [rbp+180h]
long long vars1A8; // [rsp+1A8h] [rbp+1A8h] BYREF
int vars1A8_8; // [rsp+1B0h] [rbp+1B0h]
long long vars1D8; // [rsp+1D8h] [rbp+1D8h] BYREF
int vars1E0; // [rsp+1E0h] [rbp+1E0h]
long long vars208; // [rsp+208h] [rbp+208h] BYREF
int vars210; // [rsp+210h] [rbp+210h]
long long vars238; // [rsp+238h] [rbp+238h] BYREF
int vars240; // [rsp+240h] [rbp+240h]
void *vars268; // [rsp+268h] [rbp+268h] BYREF
int vars270; // [rsp+270h] [rbp+270h]
vars0 = &vars10;
std::string::_M_construct(&vars0, 2 * a2, 32LL);
vars38 = &vars48;
vars40 = 0LL;
LOBYTE(vars48) = 0;
vars58 = &vars68;
vars60 = 0LL;
LOBYTE(vars68) = 0;
vars78 = 0LL;
vars88 = 0LL;
vars90 = *(_WORD *)a4;
vars92 = *(_BYTE *)(a4 + 2);
vars98 = varsA8;
std::string::_M_construct<char *>(&vars98, vars0, (long long)vars0 + vars8);
if ( *(_BYTE *)a4 == 1 )
SourceLocation = google::protobuf::OneofDescriptor::GetSourceLocation(
this,
(google::protobuf::SourceLocation *)&vars28);
else
SourceLocation = 0;
LOBYTE(vars20) = SourceLocation;
google::protobuf::`anonymous namespace'::SourceLocationCommentPrinter::AddPreComment((long long)&vars20, a3);
vars268 = vars0;
vars270 = vars8;
v7 = (long long *)*((_QWORD *)this + 1);
vars238 = *v7;
vars240 = *((_DWORD *)v7 + 2);
vars208 = 0LL;
vars210 = -1;
vars1D8 = 0LL;
vars1E0 = -1;
varsE8 = 0LL;
varsF0 = -1;
*(_QWORD *)varsB8 = 0LL;
varsC0 = -1;
vars1A8 = 0LL;
vars1A8_8 = -1;
vars178 = 0LL;
vars180 = -1;
vars148 = 0LL;
vars150 = -1;
*(_QWORD *)vars118 = 0LL;
vars120 = -1;
*((_QWORD *)&v10 + 1) = &vars178;
*(_QWORD *)&v10 = &vars1A8;
google::protobuf::strings::SubstituteAndAppend(
(int)a3,
(int)"$0oneof $1 {",
(int)&vars268,
(int)&vars238,
(int)&vars208,
(int)&vars1D8,
&varsE8,
(int)varsB8,
v10,
&vars148,
(int)vars118,
(int)vars0,
vars8,
vars10,
vars18,
vars20,
vars28,
vars30,
(int)vars38,
vars40,
vars48,
vars50,
(int)vars58,
vars60,
vars68,
vars70,
vars78);
google::protobuf::`anonymous namespace'::FormatLineOptions(
a2 + 1,
*((_QWORD *)this + 3),
*(_QWORD *)(*(_QWORD *)(*((_QWORD *)this + 2) + 16LL) + 24LL),
(int)a3);
if ( *(_BYTE *)(a4 + 2) == 1 )
{
std::string::append((long long)a3, (long long)" ... }\n");
}
else
{
std::string::append((long long)a3, (long long)"\n");
if ( *((int *)this + 1) > 0 )
{
v8 = 0LL;
v9 = 0LL;
do
{
google::protobuf::FieldDescriptor::DebugString(
(google::protobuf::FieldDescriptor *)(v8 + *((_QWORD *)this + 4)),
(unsigned int)(a2 + 1),
a3,
(__int16 *)a4);
++v9;
v8 += 72LL;
}
while ( v9 < *((int *)this + 1) );
}
vars268 = vars0;
vars270 = vars8;
vars238 = 0LL;
vars240 = -1;
vars208 = 0LL;
vars210 = -1;
vars1D8 = 0LL;
vars1E0 = -1;
varsE8 = 0LL;
varsF0 = -1;
*(_QWORD *)varsB8 = 0LL;
varsC0 = -1;
vars1A8 = 0LL;
vars1A8_8 = -1;
vars178 = 0LL;
vars180 = -1;
vars148 = 0LL;
vars150 = -1;
*(_QWORD *)vars118 = 0LL;
vars120 = -1;
*((_QWORD *)&v11 + 1) = &vars178;
*(_QWORD *)&v11 = &vars1A8;
google::protobuf::strings::SubstituteAndAppend(
(int)a3,
(int)"$0}\n",
(int)&vars268,
(int)&vars238,
(int)&vars208,
(int)&vars1D8,
&varsE8,
(int)varsB8,
v11,
&vars148,
(int)vars118,
(int)vars0,
vars8,
vars10,
vars18,
vars20,
vars28,
vars30,
(int)vars38,
vars40,
vars48,
vars50,
(int)vars58,
vars60,
vars68,
vars70,
vars78);
}
google::protobuf::`anonymous namespace'::SourceLocationCommentPrinter::AddPostComment((long long)&vars20, a3);
if ( vars98 != varsA8 )
operator delete(vars98);
std::vector<std::string>::~vector((long long)&vars78);
if ( vars58 != &vars68 )
operator delete(vars58);
if ( vars38 != &vars48 )
operator delete(vars38);
if ( vars0 != &vars10 )
operator delete(vars0);
}
| DebugString:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x298
MOV R14,RCX
MOV RBX,RDX
MOV R15D,ESI
MOV R12,RDI
LEA EAX,[R15 + R15*0x1]
MOVSXD RSI,EAX
LEA RAX,[RSP + 0x10]
MOV qword ptr [RAX + -0x10],RAX
MOV RBP,RSP
MOV RDI,RBP
MOV EDX,0x20
CALL 0x0010f3c0
LEA R13,[RSP + 0x28]
LEA RCX,[RSP + 0x48]
MOV qword ptr [RCX + -0x10],RCX
XOR EAX,EAX
MOV qword ptr [RCX + -0x8],RAX
MOV byte ptr [RCX],AL
LEA RCX,[RSP + 0x68]
MOV qword ptr [RCX + -0x10],RCX
MOV qword ptr [RCX + -0x8],RAX
MOV byte ptr [RCX],AL
XORPS XMM0,XMM0
MOVUPS xmmword ptr [RCX + 0x10],XMM0
MOV qword ptr [RCX + 0x20],RAX
MOVZX EAX,word ptr [R14]
MOV word ptr [RCX + 0x28],AX
MOV AL,byte ptr [R14 + 0x2]
MOV byte ptr [RCX + 0x2a],AL
LEA RDI,[RSP + 0x98]
LEA RAX,[RSP + 0xa8]
MOV qword ptr [RAX + -0x10],RAX
MOV RSI,qword ptr [RBP]
MOV RDX,qword ptr [RBP + 0x8]
ADD RDX,RSI
LAB_00124de1:
CALL 0x00113ffc
CMP byte ptr [R14],0x1
JNZ 0x00124df9
LAB_00124dec:
MOV RDI,R12
MOV RSI,R13
CALL 0x00126350
JMP 0x00124dfb
LAB_00124df9:
XOR EAX,EAX
LAB_00124dfb:
LEA RDI,[RSP + 0x20]
MOV byte ptr [RDI],AL
LAB_00124e02:
MOV RSI,RBX
CALL 0x0012201e
MOV RAX,qword ptr [RSP]
LEA RDX,[RSP + 0x268]
MOV qword ptr [RDX],RAX
MOV EAX,dword ptr [RSP + 0x8]
MOV dword ptr [RDX + 0x8],EAX
MOV RAX,qword ptr [R12 + 0x8]
MOV RSI,qword ptr [RAX]
LEA RCX,[RSP + 0x238]
MOV qword ptr [RCX],RSI
MOV EAX,dword ptr [RAX + 0x8]
MOV dword ptr [RCX + 0x8],EAX
XOR EAX,EAX
LEA R8,[RSP + 0x208]
MOV qword ptr [R8],RAX
MOV ESI,0xffffffff
MOV dword ptr [R8 + 0x8],ESI
LEA R9,[RSP + 0x1d8]
MOV qword ptr [R9],RAX
MOV dword ptr [R9 + 0x8],ESI
LEA RDI,[RSP + 0xe8]
MOV qword ptr [RDI],RAX
MOV dword ptr [RDI + 0x8],ESI
LEA RDI,[RSP + 0xb8]
MOV qword ptr [RDI],RAX
MOV dword ptr [RDI + 0x8],ESI
LEA RBP,[RSP + 0x1a8]
MOV qword ptr [RBP],RAX
MOV dword ptr [RBP + 0x8],ESI
LEA R13,[RSP + 0x178]
MOV qword ptr [R13],RAX
MOV dword ptr [R13 + 0x8],ESI
LEA R10,[RSP + 0x148]
MOV qword ptr [R10],RAX
MOV dword ptr [R10 + 0x8],ESI
LEA R11,[RSP + 0x118]
MOV qword ptr [R11],RAX
MOV dword ptr [R11 + 0x8],ESI
LAB_00124eb7:
LEA RSI,[0x1b622d]
MOV RDI,RBX
PUSH R11
PUSH R10
PUSH R13
PUSH RBP
LEA RAX,[RSP + 0xd8]
PUSH RAX
LEA RAX,[RSP + 0x110]
PUSH RAX
CALL 0x0017b9bd
ADD RSP,0x30
INC R15D
MOV RAX,qword ptr [R12 + 0x10]
MOV RSI,qword ptr [R12 + 0x18]
MOV RAX,qword ptr [RAX + 0x10]
MOV RDX,qword ptr [RAX + 0x18]
LAB_00124ef8:
MOV EDI,R15D
MOV RCX,RBX
CALL 0x001221d9
LEA R13,[RSP + 0x10]
CMP byte ptr [R14 + 0x2],0x1
JNZ 0x00124f23
LEA RSI,[0x1b623a]
MOV RDI,RBX
CALL 0x00113a08
JMP 0x00125057
LAB_00124f23:
LEA RSI,[0x1b6119]
MOV RDI,RBX
CALL 0x00113a08
CMP dword ptr [R12 + 0x4],0x0
JLE 0x00124f66
XOR EBP,EBP
XOR R13D,R13D
LAB_00124f3f:
MOV RDI,qword ptr [R12 + 0x20]
ADD RDI,RBP
LAB_00124f47:
MOV ESI,R15D
MOV RDX,RBX
MOV RCX,R14
CALL 0x00124354
INC R13
MOVSXD RAX,dword ptr [R12 + 0x4]
ADD RBP,0x48
CMP R13,RAX
JL 0x00124f3f
LAB_00124f66:
MOV RAX,qword ptr [RSP]
LEA RDX,[RSP + 0x268]
MOV qword ptr [RDX],RAX
MOV EAX,dword ptr [RSP + 0x8]
MOV dword ptr [RDX + 0x8],EAX
XOR EAX,EAX
LEA RCX,[RSP + 0x238]
MOV qword ptr [RCX],RAX
MOV ESI,0xffffffff
MOV dword ptr [RCX + 0x8],ESI
LEA R8,[RSP + 0x208]
MOV qword ptr [R8],RAX
MOV dword ptr [R8 + 0x8],ESI
LEA R9,[RSP + 0x1d8]
MOV qword ptr [R9],RAX
MOV dword ptr [R9 + 0x8],ESI
MOV qword ptr [RSP + 0xe8],RAX
MOV dword ptr [RSP + 0xf0],ESI
MOV qword ptr [RSP + 0xb8],RAX
MOV dword ptr [RSP + 0xc0],ESI
MOV qword ptr [RSP + 0x1a8],RAX
MOV dword ptr [RSP + 0x1b0],ESI
MOV qword ptr [RSP + 0x178],RAX
MOV dword ptr [RSP + 0x180],ESI
MOV qword ptr [RSP + 0x148],RAX
MOV dword ptr [RSP + 0x150],ESI
MOV qword ptr [RSP + 0x118],RAX
MOV dword ptr [RSP + 0x120],ESI
LAB_00125009:
LEA RSI,[0x1b61e2]
MOV RDI,RBX
LEA RAX,[RSP + 0x118]
PUSH RAX
LEA RAX,[RSP + 0x150]
PUSH RAX
LEA RAX,[RSP + 0x188]
PUSH RAX
LEA RAX,[RSP + 0x1c0]
PUSH RAX
LEA RAX,[RSP + 0xd8]
PUSH RAX
LEA RAX,[RSP + 0x110]
PUSH RAX
CALL 0x0017b9bd
ADD RSP,0x30
LEA R13,[RSP + 0x10]
LAB_00125057:
LEA RDI,[RSP + 0x20]
MOV RSI,RBX
CALL 0x0012211c
LAB_00125064:
LEA RBX,[RSP + 0x78]
MOV RDI,qword ptr [RBX + 0x20]
LEA RAX,[RSP + 0xa8]
CMP RDI,RAX
JZ 0x0012507f
CALL 0x0010f330
LAB_0012507f:
MOV RDI,RBX
CALL 0x00111e36
MOV RDI,qword ptr [RSP + 0x58]
LEA RAX,[RSP + 0x68]
CMP RDI,RAX
JZ 0x0012509b
CALL 0x0010f330
LAB_0012509b:
MOV RDI,qword ptr [RSP + 0x38]
LEA RAX,[RSP + 0x48]
CMP RDI,RAX
JZ 0x001250af
CALL 0x0010f330
LAB_001250af:
MOV RDI,qword ptr [RSP]
CMP RDI,R13
JZ 0x001250bd
CALL 0x0010f330
LAB_001250bd:
ADD RSP,0x298
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
|
/* google::protobuf::OneofDescriptor::DebugString(int, std::__cxx11::string*,
google::protobuf::DebugStringOptions const&) const */
void __thiscall
google::protobuf::OneofDescriptor::DebugString
(OneofDescriptor *this,int param_1,string *param_2,DebugStringOptions *param_3)
{
long lVar1;
long lVar2;
int1 *local_2c8;
int4 local_2c0;
int4 uStack_2bc;
int1 local_2b8 [16];
SourceLocationCommentPrinter local_2a8 [8];
SourceLocation local_2a0 [16];
int1 *local_290;
int8 local_288;
int1 local_280 [16];
int1 *local_270;
int8 local_268;
int1 local_260 [16];
int8 local_250;
int8 uStack_248;
int8 local_240;
int2 local_238;
DebugStringOptions local_236;
int1 *local_230 [2];
int1 local_220 [16];
int8 local_210;
int4 local_208;
int8 local_1e0;
int4 local_1d8;
int8 local_1b0;
int4 local_1a8;
int8 local_180;
int4 local_178;
int8 local_150;
int4 local_148;
int8 local_120;
int4 local_118;
int8 local_f0;
int4 local_e8;
int8 local_c0;
int4 local_b8;
int8 local_90;
int4 local_88;
int1 *local_60;
int4 local_58;
local_2c8 = local_2b8;
std::__cxx11::string::_M_construct((ulong)&local_2c8,(char)param_1 * '\x02');
local_290 = local_280;
local_288 = 0;
local_280[0] = 0;
local_270 = local_260;
local_268 = 0;
local_260[0] = 0;
local_250 = 0;
uStack_248 = 0;
local_240 = 0;
local_238 = *(int2 *)param_3;
local_236 = param_3[2];
local_230[0] = local_220;
/* try { // try from 00124de1 to 00124de5 has its CatchHandler @ 001250f2 */
std::__cxx11::string::_M_construct<char*>
(local_230,local_2c8,local_2c8 + CONCAT44(uStack_2bc,local_2c0));
if (*param_3 == (DebugStringOptions)0x1) {
/* try { // try from 00124dec to 00124df6 has its CatchHandler @ 001250d1 */
local_2a8[0] = (SourceLocationCommentPrinter)GetSourceLocation(this,local_2a0);
}
else {
local_2a8[0] = (SourceLocationCommentPrinter)0x0;
}
/* try { // try from 00124e02 to 00124e09 has its CatchHandler @ 001250ff */
(anonymous_namespace)::SourceLocationCommentPrinter::AddPreComment(local_2a8,param_2);
local_60 = local_2c8;
local_58 = local_2c0;
local_90 = **(int8 **)(this + 8);
local_88 = *(int4 *)(*(int8 **)(this + 8) + 1);
local_c0 = 0;
local_b8 = 0xffffffff;
local_f0 = 0;
local_e8 = 0xffffffff;
local_1e0 = 0;
local_1d8 = 0xffffffff;
local_210 = 0;
local_208 = 0xffffffff;
local_120 = 0;
local_118 = 0xffffffff;
local_150 = 0;
local_148 = 0xffffffff;
local_180 = 0;
local_178 = 0xffffffff;
local_1b0 = 0;
local_1a8 = 0xffffffff;
/* try { // try from 00124eb7 to 00124ee2 has its CatchHandler @ 001250f0 */
strings::SubstituteAndAppend
(param_2,"$0oneof $1 {",(SubstituteArg *)&local_60,(SubstituteArg *)&local_90,
(SubstituteArg *)&local_c0,(SubstituteArg *)&local_f0,(SubstituteArg *)&local_1e0,
(SubstituteArg *)&local_210,(SubstituteArg *)&local_120,(SubstituteArg *)&local_150,
(SubstituteArg *)&local_180,(SubstituteArg *)&local_1b0);
/* try { // try from 00124ef8 to 00124f31 has its CatchHandler @ 001250ff */
(anonymous_namespace)::FormatLineOptions
(param_1 + 1,*(Message **)(this + 0x18),
*(DescriptorPool **)(*(long *)(*(long *)(this + 0x10) + 0x10) + 0x18),param_2);
if (param_3[2] == (DebugStringOptions)0x1) {
std::__cxx11::string::append(param_2," ... }\n");
}
else {
std::__cxx11::string::append(param_2,"\n");
if (0 < *(int *)(this + 4)) {
lVar1 = 0;
lVar2 = 0;
do {
/* try { // try from 00124f47 to 00124f54 has its CatchHandler @ 00125101 */
FieldDescriptor::DebugString
((FieldDescriptor *)(*(long *)(this + 0x20) + lVar1),param_1 + 1,param_2,param_3);
lVar2 = lVar2 + 1;
lVar1 = lVar1 + 0x48;
} while (lVar2 < *(int *)(this + 4));
}
local_60 = local_2c8;
local_58 = local_2c0;
local_90 = 0;
local_88 = 0xffffffff;
local_c0 = 0;
local_b8 = 0xffffffff;
local_f0 = 0;
local_e8 = 0xffffffff;
local_1e0 = 0;
local_1d8 = 0xffffffff;
local_210 = 0;
local_208 = 0xffffffff;
local_120 = 0;
local_118 = 0xffffffff;
local_150 = 0;
local_148 = 0xffffffff;
local_180 = 0;
local_178 = 0xffffffff;
local_1b0 = 0;
local_1a8 = 0xffffffff;
/* try { // try from 00125009 to 00125051 has its CatchHandler @ 001250cf */
strings::SubstituteAndAppend
(param_2,"$0}\n",(SubstituteArg *)&local_60,(SubstituteArg *)&local_90,
(SubstituteArg *)&local_c0,(SubstituteArg *)&local_f0,(SubstituteArg *)&local_1e0,
(SubstituteArg *)&local_210,(SubstituteArg *)&local_120,(SubstituteArg *)&local_150,
(SubstituteArg *)&local_180,(SubstituteArg *)&local_1b0);
}
/* try { // try from 00125057 to 00125063 has its CatchHandler @ 001250ff */
(anonymous_namespace)::SourceLocationCommentPrinter::AddPostComment(local_2a8,param_2);
if (local_230[0] != local_220) {
operator_delete(local_230[0]);
}
std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>::~vector
((vector<std::__cxx11::string,std::allocator<std::__cxx11::string>> *)&local_250);
if (local_270 != local_260) {
operator_delete(local_270);
}
if (local_290 != local_280) {
operator_delete(local_290);
}
if (local_2c8 != local_2b8) {
operator_delete(local_2c8);
}
return;
}
| |
45,268 | minja::Parser::parseExpansion() | monkey531[P]llama/common/minja.hpp | std::shared_ptr<Expression> parseExpansion() {
static std::regex expansion_tok(R"(\*\*?)");
auto op_str = consumeToken(expansion_tok);
auto expr = parseValueExpression();
if (op_str.empty()) return expr;
if (!expr) throw std::runtime_error("Expected expr of 'expansion' expression");
return std::make_shared<UnaryOpExpr>(get_location(), std::move(expr), op_str == "*" ? UnaryOpExpr::Op::Expansion : UnaryOpExpr::Op::ExpansionDict);
} | O3 | cpp | minja::Parser::parseExpansion():
pushq %r14
pushq %rbx
subq $0x78, %rsp
movq %rsi, %r14
movq %rdi, %rbx
leaq 0x7b7ea(%rip), %rax # 0xe9100
movb (%rax), %al
testb %al, %al
je 0x6da49
leaq 0x7b7b9(%rip), %rdx # 0xe90e0
leaq 0x40(%rsp), %rdi
movq %r14, %rsi
movl $0x1, %ecx
callq 0x5f158
leaq 0x10(%rsp), %rdi
movq %r14, %rsi
callq 0x6db3e
cmpq $0x0, 0x48(%rsp)
movq 0x10(%rsp), %rax
je 0x6d983
testq %rax, %rax
je 0x6daa0
movq (%r14), %rax
movq %rax, 0x60(%rsp)
movq 0x8(%r14), %rax
movq %rax, 0x68(%rsp)
testq %rax, %rax
je 0x6d998
movq 0x7a617(%rip), %rcx # 0xe7f90
cmpb $0x0, (%rcx)
je 0x6d994
incl 0x8(%rax)
jmp 0x6d998
movq %rax, (%rbx)
movq 0x18(%rsp), %rax
movq %rax, 0x8(%rbx)
jmp 0x6da23
lock
incl 0x8(%rax)
movq 0x20(%r14), %rax
subq 0x10(%r14), %rax
leaq 0x60(%rsp), %r14
movq %rax, 0x10(%r14)
leaq 0x4bd48(%rip), %rsi # 0xb96f8
leaq 0x40(%rsp), %rdi
callq 0x191d0
cmpl $0x1, %eax
movl $0x4, %eax
sbbl $0x0, %eax
leaq 0x3c(%rsp), %r9
movl %eax, (%r9)
leaq 0x28(%rsp), %rdi
movq $0x0, -0x8(%rdi)
leaq 0x20(%rsp), %rsi
leaq 0xf(%rsp), %rdx
leaq 0x10(%rsp), %r8
movq %r14, %rcx
callq 0x76e16
movaps 0x20(%rsp), %xmm0
xorl %eax, %eax
movq %rax, 0x28(%rsp)
movups %xmm0, (%rbx)
movq %rax, 0x20(%rsp)
movq 0x68(%rsp), %rdi
testq %rdi, %rdi
je 0x6da14
callq 0x33e7e
movq 0x18(%rsp), %rdi
testq %rdi, %rdi
je 0x6da23
callq 0x33e7e
leaq 0x50(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x6da3e
movq 0x50(%rsp), %rsi
incq %rsi
callq 0x197b0
movq %rbx, %rax
addq $0x78, %rsp
popq %rbx
popq %r14
retq
leaq 0x7b6b0(%rip), %rdi # 0xe9100
callq 0x19e70
testl %eax, %eax
je 0x6d920
leaq 0x7b67c(%rip), %rdi # 0xe90e0
leaq 0x47d6d(%rip), %rsi # 0xb57d8
movl $0x10, %edx
callq 0x5ecc2
leaq -0xed52(%rip), %rdi # 0x5ed2a
leaq 0x7b65d(%rip), %rsi # 0xe90e0
leaq 0x7ad7e(%rip), %rdx # 0xe8808
callq 0x19680
leaq 0x7b66a(%rip), %rdi # 0xe9100
callq 0x194c0
jmp 0x6d920
movl $0x10, %edi
callq 0x193b0
movq %rax, %r14
leaq 0x47d2a(%rip), %rsi # 0xb57de
movq %rax, %rdi
callq 0x192c0
movq 0x7a52d(%rip), %rsi # 0xe7ff0
movq 0x7a49e(%rip), %rdx # 0xe7f68
movq %r14, %rdi
callq 0x19da0
movq %rax, %rbx
leaq 0x7b624(%rip), %rdi # 0xe9100
callq 0x194b0
jmp 0x6db36
movq %rax, %rbx
jmp 0x6db07
movq %rax, %rbx
movq %r14, %rdi
callq 0x19570
jmp 0x6db07
movq %rax, %rbx
movq 0x68(%rsp), %rdi
testq %rdi, %rdi
je 0x6db07
callq 0x33e7e
movq 0x18(%rsp), %rdi
testq %rdi, %rdi
je 0x6db1b
callq 0x33e7e
jmp 0x6db1b
movq %rax, %rbx
leaq 0x50(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x6db36
movq 0x50(%rsp), %rsi
incq %rsi
callq 0x197b0
movq %rbx, %rdi
callq 0x19e10
| _ZN5minja6Parser14parseExpansionEv:
push r14
push rbx
sub rsp, 78h
mov r14, rsi
mov rbx, rdi
lea rax, _ZGVZN5minja6Parser14parseExpansionEvE13expansion_tokB5cxx11; `guard variable for'minja::Parser::parseExpansion(void)::expansion_tok
mov al, [rax]
test al, al
jz loc_6DA49
loc_6D920:
lea rdx, _ZZN5minja6Parser14parseExpansionEvE13expansion_tokB5cxx11; minja::Parser::parseExpansion(void)::expansion_tok
lea rdi, [rsp+88h+var_48]
mov rsi, r14
mov ecx, 1
call _ZN5minja6Parser12consumeTokenERKNSt7__cxx1111basic_regexIcNS1_12regex_traitsIcEEEENS_13SpaceHandlingE; minja::Parser::consumeToken(std::basic_regex<char,std::regex_traits<char>> const&,minja::SpaceHandling)
lea rdi, [rsp+88h+var_78]; this
mov rsi, r14
call _ZN5minja6Parser20parseValueExpressionEv; minja::Parser::parseValueExpression(void)
cmp [rsp+88h+var_40], 0
mov rax, [rsp+88h+var_78]
jz short loc_6D983
test rax, rax
jz loc_6DAA0
mov rax, [r14]
mov [rsp+88h+var_28], rax
mov rax, [r14+8]
mov [rsp+88h+var_20], rax
test rax, rax
jz short loc_6D998
mov rcx, cs:__libc_single_threaded_ptr
cmp byte ptr [rcx], 0
jz short loc_6D994
inc dword ptr [rax+8]
jmp short loc_6D998
loc_6D983:
mov [rbx], rax
mov rax, [rsp+88h+var_70]
mov [rbx+8], rax
jmp loc_6DA23
loc_6D994:
lock inc dword ptr [rax+8]
loc_6D998:
mov rax, [r14+20h]
sub rax, [r14+10h]
lea r14, [rsp+88h+var_28]
mov [r14+10h], rax
lea rsi, asc_B96F7+1; "*"
lea rdi, [rsp+88h+var_48]
call __ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE7compareEPKc; std::string::compare(char const*)
cmp eax, 1
mov eax, 4
sbb eax, 0
lea r9, [rsp+88h+var_4C]
mov [r9], eax
lea rdi, [rsp+88h+var_68+8]
mov qword ptr [rdi-8], 0
lea rsi, [rsp+88h+var_68]
lea rdx, [rsp+88h+var_79]
lea r8, [rsp+88h+var_78]
mov rcx, r14
call _ZNSt14__shared_countILN9__gnu_cxx12_Lock_policyE2EEC2IN5minja11UnaryOpExprESaIS5_EJNS4_8LocationESt10shared_ptrINS4_10ExpressionEENS5_2OpEEEERPT_St20_Sp_alloc_shared_tagIT0_EDpOT1_; std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count<minja::UnaryOpExpr,std::allocator<minja::UnaryOpExpr>,minja::Location,std::shared_ptr<minja::Expression>,minja::UnaryOpExpr::Op>(minja::UnaryOpExpr *&,std::_Sp_alloc_shared_tag<std::allocator<minja::UnaryOpExpr>>,minja::Location,std::shared_ptr<minja::Expression>,minja::UnaryOpExpr::Op &&)
movaps xmm0, [rsp+88h+var_68]
xor eax, eax
mov qword ptr [rsp+88h+var_68+8], rax
movups xmmword ptr [rbx], xmm0
mov qword ptr [rsp+88h+var_68], rax
mov rdi, [rsp+88h+var_20]
test rdi, rdi
jz short loc_6DA14
call _ZNSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE2EE10_M_releaseEv; std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(void)
loc_6DA14:
mov rdi, [rsp+88h+var_70]
test rdi, rdi
jz short loc_6DA23
call _ZNSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE2EE10_M_releaseEv; std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(void)
loc_6DA23:
lea rax, [rsp+88h+var_38]
mov rdi, [rax-10h]; void *
cmp rdi, rax
jz short loc_6DA3E
mov rsi, [rsp+88h+var_38]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_6DA3E:
mov rax, rbx
add rsp, 78h
pop rbx
pop r14
retn
loc_6DA49:
lea rdi, _ZGVZN5minja6Parser14parseExpansionEvE13expansion_tokB5cxx11; __guard *
call ___cxa_guard_acquire
test eax, eax
jz loc_6D920
lea rdi, _ZZN5minja6Parser14parseExpansionEvE13expansion_tokB5cxx11; minja::Parser::parseExpansion(void)::expansion_tok
lea rsi, asc_B57D8; "\\*\\*?"
mov edx, 10h
call _ZNSt7__cxx1111basic_regexIcNS_12regex_traitsIcEEEC2EPKcNSt15regex_constants18syntax_option_typeE; std::basic_regex<char,std::regex_traits<char>>::basic_regex(char const*,std::regex_constants::syntax_option_type)
lea rdi, _ZNSt7__cxx1111basic_regexIcNS_12regex_traitsIcEEED2Ev; lpfunc
lea rsi, _ZZN5minja6Parser14parseExpansionEvE13expansion_tokB5cxx11; obj
lea rdx, __dso_handle; lpdso_handle
call ___cxa_atexit
lea rdi, _ZGVZN5minja6Parser14parseExpansionEvE13expansion_tokB5cxx11; __guard *
call ___cxa_guard_release
jmp loc_6D920
loc_6DAA0:
mov edi, 10h; thrown_size
call ___cxa_allocate_exception
mov r14, rax
lea rsi, aExpectedExprOf_0; "Expected expr of 'expansion' expression"
mov rdi, rax; this
call __ZNSt13runtime_errorC1EPKc; std::runtime_error::runtime_error(char const*)
mov rsi, cs:lptinfo; lptinfo
mov rdx, cs:_ZTISt19_Sp_make_shared_tag; void (*)(void *)
mov rdi, r14; void *
call ___cxa_throw
mov rbx, rax
lea rdi, _ZGVZN5minja6Parser14parseExpansionEvE13expansion_tokB5cxx11; __guard *
call ___cxa_guard_abort
jmp short loc_6DB36
mov rbx, rax
jmp short loc_6DB07
mov rbx, rax
mov rdi, r14; void *
call ___cxa_free_exception
jmp short loc_6DB07
mov rbx, rax
mov rdi, [rsp+88h+var_20]
test rdi, rdi
jz short loc_6DB07
call _ZNSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE2EE10_M_releaseEv; std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(void)
loc_6DB07:
mov rdi, [rsp+88h+var_70]
test rdi, rdi
jz short loc_6DB1B
call _ZNSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE2EE10_M_releaseEv; std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(void)
jmp short loc_6DB1B
mov rbx, rax
loc_6DB1B:
lea rax, [rsp+88h+var_38]
mov rdi, [rax-10h]; void *
cmp rdi, rax
jz short loc_6DB36
mov rsi, [rsp+88h+var_38]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_6DB36:
mov rdi, rbx
call __Unwind_Resume
| minja::Parser * minja::Parser::parseExpansion(minja::Parser *this, long long *a2)
{
volatile signed __int32 *v2; // rax
__int128 v3; // xmm0
std::runtime_error *exception; // r14
char v6; // [rsp+Fh] [rbp-79h] BYREF
long long v7; // [rsp+10h] [rbp-78h] BYREF
volatile signed __int32 *v8; // [rsp+18h] [rbp-70h]
__int128 v9; // [rsp+20h] [rbp-68h] BYREF
int v10; // [rsp+3Ch] [rbp-4Ch]
void *v11[2]; // [rsp+40h] [rbp-48h] BYREF
long long v12; // [rsp+50h] [rbp-38h] BYREF
long long v13; // [rsp+60h] [rbp-28h] BYREF
volatile signed __int32 *v14; // [rsp+68h] [rbp-20h]
long long v15; // [rsp+70h] [rbp-18h]
if ( !(_BYTE)`guard variable for'minja::Parser::parseExpansion(void)::expansion_tok[abi:cxx11]
&& __cxa_guard_acquire(&`guard variable for'minja::Parser::parseExpansion(void)::expansion_tok[abi:cxx11]) )
{
std::basic_regex<char,std::regex_traits<char>>::basic_regex(
(long long)&minja::Parser::parseExpansion(void)::expansion_tok[abi:cxx11],
"\\*\\*?",
0x10u);
__cxa_atexit(
(void (*)(void *))std::basic_regex<char,std::regex_traits<char>>::~basic_regex,
&minja::Parser::parseExpansion(void)::expansion_tok[abi:cxx11],
&_dso_handle);
__cxa_guard_release(&`guard variable for'minja::Parser::parseExpansion(void)::expansion_tok[abi:cxx11]);
}
minja::Parser::consumeToken(
(long long)v11,
(long long)a2,
(long long)&minja::Parser::parseExpansion(void)::expansion_tok[abi:cxx11],
1u);
minja::Parser::parseValueExpression((minja::Parser *)&v7);
if ( v11[1] )
{
if ( !v7 )
{
exception = (std::runtime_error *)__cxa_allocate_exception(0x10uLL);
std::runtime_error::runtime_error(exception, "Expected expr of 'expansion' expression");
__cxa_throw(
exception,
(struct type_info *)&`typeinfo for'std::runtime_error,
(void (*)(void *))&std::runtime_error::~runtime_error);
}
v13 = *a2;
v2 = (volatile signed __int32 *)a2[1];
v14 = v2;
if ( v2 )
{
if ( _libc_single_threaded )
++*((_DWORD *)v2 + 2);
else
_InterlockedIncrement(v2 + 2);
}
v15 = a2[4] - a2[2];
v10 = 4 - ((unsigned int)std::string::compare(v11, "*") == 0);
*(_QWORD *)&v9 = 0LL;
std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count<minja::UnaryOpExpr,std::allocator<minja::UnaryOpExpr>,minja::Location,std::shared_ptr<minja::Expression>,minja::UnaryOpExpr::Op>(
(char *)&v9 + 8,
&v9,
&v6,
&v13,
&v7);
v3 = v9;
*((_QWORD *)&v9 + 1) = 0LL;
*(_OWORD *)this = v3;
*(_QWORD *)&v9 = 0LL;
if ( v14 )
std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(v14);
if ( v8 )
std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(v8);
}
else
{
*(_QWORD *)this = v7;
*((_QWORD *)this + 1) = v8;
}
if ( v11[0] != &v12 )
operator delete(v11[0], v12 + 1);
return this;
}
| parseExpansion:
PUSH R14
PUSH RBX
SUB RSP,0x78
MOV R14,RSI
MOV RBX,RDI
LEA RAX,[0x1e9100]
MOV AL,byte ptr [RAX]
TEST AL,AL
JZ 0x0016da49
LAB_0016d920:
LEA RDX,[0x1e90e0]
LEA RDI,[RSP + 0x40]
MOV RSI,R14
MOV ECX,0x1
CALL 0x0015f158
LAB_0016d939:
LEA RDI,[RSP + 0x10]
MOV RSI,R14
CALL 0x0016db3e
CMP qword ptr [RSP + 0x48],0x0
MOV RAX,qword ptr [RSP + 0x10]
JZ 0x0016d983
TEST RAX,RAX
JZ 0x0016daa0
MOV RAX,qword ptr [R14]
MOV qword ptr [RSP + 0x60],RAX
MOV RAX,qword ptr [R14 + 0x8]
MOV qword ptr [RSP + 0x68],RAX
TEST RAX,RAX
JZ 0x0016d998
MOV RCX,qword ptr [0x001e7f90]
CMP byte ptr [RCX],0x0
JZ 0x0016d994
INC dword ptr [RAX + 0x8]
JMP 0x0016d998
LAB_0016d983:
MOV qword ptr [RBX],RAX
MOV RAX,qword ptr [RSP + 0x18]
MOV qword ptr [RBX + 0x8],RAX
JMP 0x0016da23
LAB_0016d994:
INC.LOCK dword ptr [RAX + 0x8]
LAB_0016d998:
MOV RAX,qword ptr [R14 + 0x20]
SUB RAX,qword ptr [R14 + 0x10]
LEA R14,[RSP + 0x60]
MOV qword ptr [R14 + 0x10],RAX
LEA RSI,[0x1b96f8]
LEA RDI,[RSP + 0x40]
CALL 0x001191d0
CMP EAX,0x1
MOV EAX,0x4
SBB EAX,0x0
LEA R9,[RSP + 0x3c]
MOV dword ptr [R9],EAX
LEA RDI,[RSP + 0x28]
MOV qword ptr [RDI + -0x8],0x0
LAB_0016d9da:
LEA RSI,[RSP + 0x20]
LEA RDX,[RSP + 0xf]
LEA R8,[RSP + 0x10]
MOV RCX,R14
CALL 0x00176e16
MOVAPS XMM0,xmmword ptr [RSP + 0x20]
XOR EAX,EAX
MOV qword ptr [RSP + 0x28],RAX
MOVUPS xmmword ptr [RBX],XMM0
MOV qword ptr [RSP + 0x20],RAX
MOV RDI,qword ptr [RSP + 0x68]
TEST RDI,RDI
JZ 0x0016da14
CALL 0x00133e7e
LAB_0016da14:
MOV RDI,qword ptr [RSP + 0x18]
TEST RDI,RDI
JZ 0x0016da23
CALL 0x00133e7e
LAB_0016da23:
LEA RAX,[RSP + 0x50]
MOV RDI,qword ptr [RAX + -0x10]
CMP RDI,RAX
JZ 0x0016da3e
MOV RSI,qword ptr [RSP + 0x50]
INC RSI
CALL 0x001197b0
LAB_0016da3e:
MOV RAX,RBX
ADD RSP,0x78
POP RBX
POP R14
RET
LAB_0016da49:
LEA RDI,[0x1e9100]
CALL 0x00119e70
TEST EAX,EAX
JZ 0x0016d920
LAB_0016da5d:
LEA RDI,[0x1e90e0]
LEA RSI,[0x1b57d8]
MOV EDX,0x10
CALL 0x0015ecc2
LAB_0016da75:
LEA RDI,[0x15ed2a]
LEA RSI,[0x1e90e0]
LEA RDX,[0x1e8808]
CALL 0x00119680
LEA RDI,[0x1e9100]
CALL 0x001194c0
JMP 0x0016d920
LAB_0016daa0:
MOV EDI,0x10
CALL 0x001193b0
MOV R14,RAX
LAB_0016daad:
LEA RSI,[0x1b57de]
MOV RDI,RAX
CALL 0x001192c0
LAB_0016dabc:
MOV RSI,qword ptr [0x001e7ff0]
MOV RDX,qword ptr [0x001e7f68]
MOV RDI,R14
CALL 0x00119da0
|
/* minja::Parser::parseExpansion() */
void minja::Parser::parseExpansion(void)
{
long lVar1;
int iVar2;
runtime_error *this;
int8 *in_RSI;
long *in_RDI;
int1 local_79;
long local_78;
_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *local_70;
long local_68;
long alStack_60 [2];
int local_4c;
long *local_48;
long local_40;
long local_38 [2];
int8 local_28;
_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *local_20;
long local_18;
if (parseExpansion()::expansion_tok_abi_cxx11_ == '\0') {
iVar2 = __cxa_guard_acquire(&parseExpansion()::expansion_tok_abi_cxx11_);
if (iVar2 != 0) {
/* try { // try from 0016da5d to 0016da74 has its CatchHandler @ 0016dad2 */
std::__cxx11::basic_regex<char,std::__cxx11::regex_traits<char>>::basic_regex
((basic_regex<char,std::__cxx11::regex_traits<char>> *)
parseExpansion()::expansion_tok_abi_cxx11_,"\\*\\*?",0x10);
__cxa_atexit(std::__cxx11::basic_regex<char,std::__cxx11::regex_traits<char>>::~basic_regex,
parseExpansion()::expansion_tok_abi_cxx11_,&__dso_handle);
__cxa_guard_release(&parseExpansion()::expansion_tok_abi_cxx11_);
}
}
consumeToken(&local_48);
/* try { // try from 0016d939 to 0016d945 has its CatchHandler @ 0016db18 */
parseValueExpression();
if (local_40 == 0) {
*in_RDI = local_78;
in_RDI[1] = (long)local_70;
}
else {
if (local_78 == 0) {
this = (runtime_error *)__cxa_allocate_exception(0x10);
/* try { // try from 0016daad to 0016dabb has its CatchHandler @ 0016dae8 */
std::runtime_error::runtime_error(this,"Expected expr of \'expansion\' expression");
/* try { // try from 0016dabc to 0016dad1 has its CatchHandler @ 0016dae3 */
/* WARNING: Subroutine does not return */
__cxa_throw(this,PTR_typeinfo_001e7ff0,PTR__runtime_error_001e7f68);
}
local_28 = *in_RSI;
local_20 = (_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *)in_RSI[1];
if (local_20 != (_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *)0x0) {
if (*PTR___libc_single_threaded_001e7f90 == '\0') {
LOCK();
*(int *)(local_20 + 8) = *(int *)(local_20 + 8) + 1;
UNLOCK();
}
else {
*(int *)(local_20 + 8) = *(int *)(local_20 + 8) + 1;
}
}
local_18 = in_RSI[4] - in_RSI[2];
iVar2 = std::__cxx11::string::compare((char *)&local_48);
local_4c = 4 - (uint)(iVar2 == 0);
local_68 = 0;
/* try { // try from 0016d9da to 0016d9f0 has its CatchHandler @ 0016daf5 */
std::__shared_count<(__gnu_cxx::_Lock_policy)2>::
__shared_count<minja::UnaryOpExpr,std::allocator<minja::UnaryOpExpr>,minja::Location,std::shared_ptr<minja::Expression>,minja::UnaryOpExpr::Op>
((__shared_count<(__gnu_cxx::_Lock_policy)2> *)alStack_60,&local_68,&local_79,
&local_28,&local_78);
lVar1 = alStack_60[0];
alStack_60[0] = 0;
*in_RDI = local_68;
in_RDI[1] = lVar1;
local_68 = 0;
if (local_20 != (_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *)0x0) {
std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(local_20);
}
if (local_70 != (_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *)0x0) {
std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(local_70);
}
}
if (local_48 != local_38) {
operator_delete(local_48,local_38[0] + 1);
}
return;
}
| |
45,269 | js_error_set_stackTraceLimit | bluesky950520[P]quickjs/quickjs.c | static JSValue js_error_set_stackTraceLimit(JSContext *ctx, JSValue this_val, JSValue value)
{
if (JS_IsUndefined(this_val) || JS_IsNull(this_val))
return JS_ThrowTypeErrorNotAnObject(ctx);
int limit;
if (JS_ToInt32(ctx, &limit, value) < 0)
return JS_EXCEPTION;
ctx->error_stack_trace_limit = limit;
return JS_UNDEFINED;
} | O2 | c | js_error_set_stackTraceLimit:
pushq %rbx
subq $0x10, %rsp
movq %rdi, %rbx
andl $-0x2, %edx
cmpl $0x2, %edx
jne 0x5ff51
movq %rbx, %rdi
callq 0x1d5e1
jmp 0x5ff76
leaq 0xc(%rsp), %rsi
movq %rbx, %rdi
movq %rcx, %rdx
movq %r8, %rcx
callq 0x215d7
testl %eax, %eax
js 0x5ff76
movl 0xc(%rsp), %eax
movl %eax, 0x138(%rbx)
pushq $0x3
jmp 0x5ff78
pushq $0x6
popq %rdx
xorl %eax, %eax
addq $0x10, %rsp
popq %rbx
retq
| js_error_set_stackTraceLimit:
push rbx
sub rsp, 10h
mov rbx, rdi
and edx, 0FFFFFFFEh
cmp edx, 2
jnz short loc_5FF51
mov rdi, rbx
call JS_ThrowTypeErrorNotAnObject
jmp short loc_5FF76
loc_5FF51:
lea rsi, [rsp+18h+var_C]
mov rdi, rbx
mov rdx, rcx
mov rcx, r8
call JS_ToInt32
test eax, eax
js short loc_5FF76
mov eax, [rsp+18h+var_C]
mov [rbx+138h], eax
push 3
jmp short loc_5FF78
loc_5FF76:
push 6
loc_5FF78:
pop rdx
xor eax, eax
add rsp, 10h
pop rbx
retn
| long long js_error_set_stackTraceLimit(
long long a1,
long long a2,
int a3,
_DWORD *a4,
long long a5,
long long a6,
__m128 a7,
__m128 a8,
__m128 a9,
__m128 a10,
__m128 a11,
__m128 a12,
__m128 a13,
__m128 a14)
{
long long v14; // rdx
char v16; // [rsp+0h] [rbp-18h]
_DWORD v17[3]; // [rsp+Ch] [rbp-Ch] BYREF
v14 = a3 & 0xFFFFFFFE;
if ( (_DWORD)v14 == 2 )
{
JS_ThrowTypeErrorNotAnObject(a1, a7, a8, a9, a10, a11, a12, a13, a14, a2, v14, (long long)a4, a5, a6, v16);
}
else if ( (int)JS_ToInt32(a1, (long long)v17, a4, a5) >= 0 )
{
*(_DWORD *)(a1 + 312) = v17[0];
}
return 0LL;
}
| js_error_set_stackTraceLimit:
PUSH RBX
SUB RSP,0x10
MOV RBX,RDI
AND EDX,0xfffffffe
CMP EDX,0x2
JNZ 0x0015ff51
MOV RDI,RBX
CALL 0x0011d5e1
JMP 0x0015ff76
LAB_0015ff51:
LEA RSI,[RSP + 0xc]
MOV RDI,RBX
MOV RDX,RCX
MOV RCX,R8
CALL 0x001215d7
TEST EAX,EAX
JS 0x0015ff76
MOV EAX,dword ptr [RSP + 0xc]
MOV dword ptr [RBX + 0x138],EAX
PUSH 0x3
JMP 0x0015ff78
LAB_0015ff76:
PUSH 0x6
LAB_0015ff78:
POP RDX
XOR EAX,EAX
ADD RSP,0x10
POP RBX
RET
|
int1 [16]
js_error_set_stackTraceLimit
(long param_1,int8 param_2,uint param_3,int8 param_4,int8 param_5)
{
int1 auVar1 [16];
int iVar2;
ulong uStack_20;
int4 local_c;
if ((param_3 & 0xfffffffe) == 2) {
JS_ThrowTypeErrorNotAnObject(param_1);
}
else {
iVar2 = JS_ToInt32(param_1,&local_c,param_4,param_5);
if (-1 < iVar2) {
*(int4 *)(param_1 + 0x138) = local_c;
uStack_20 = 3;
goto LAB_0015ff78;
}
}
uStack_20 = 6;
LAB_0015ff78:
auVar1._8_8_ = 0;
auVar1._0_8_ = uStack_20;
return auVar1 << 0x40;
}
| |
45,270 | js_set_isDisjointFrom | bluesky950520[P]quickjs/quickjs.c | static JSValue js_set_isDisjointFrom(JSContext *ctx, JSValue this_val,
int argc, JSValue *argv)
{
JSValue item, iter, keys, has, next, rv, rval;
BOOL done, found;
JSMapState *s;
int64_t size;
int ok;
has = JS_UNDEFINED;
iter = JS_UNDEFINED;
keys = JS_UNDEFINED;
next = JS_UNDEFINED;
rval = JS_EXCEPTION;
s = JS_GetOpaque2(ctx, this_val, JS_CLASS_SET);
if (!s)
goto exception;
// order matters!
if (js_setlike_get_size(ctx, argv[0], &size) < 0)
goto exception;
if (js_setlike_get_has(ctx, argv[0], &has) < 0)
goto exception;
if (js_setlike_get_keys(ctx, argv[0], &keys) < 0)
goto exception;
if (s->record_count > size) {
iter = JS_Call(ctx, keys, argv[0], 0, NULL);
if (JS_IsException(iter))
goto exception;
next = JS_GetProperty(ctx, iter, JS_ATOM_next);
if (JS_IsException(next))
goto exception;
found = FALSE;
do {
item = JS_IteratorNext(ctx, iter, next, 0, NULL, &done);
if (JS_IsException(item))
goto exception;
if (done) // item is JS_UNDEFINED
break;
item = map_normalize_key(ctx, item);
found = (NULL != map_find_record(ctx, s, item));
JS_FreeValue(ctx, item);
} while (!found);
} else {
iter = js_create_map_iterator(ctx, this_val, 0, NULL, MAGIC_SET);
if (JS_IsException(iter))
goto exception;
found = FALSE;
do {
item = js_map_iterator_next(ctx, iter, 0, NULL, &done, MAGIC_SET);
if (JS_IsException(item))
goto exception;
if (done) // item is JS_UNDEFINED
break;
rv = JS_Call(ctx, has, argv[0], 1, &item);
JS_FreeValue(ctx, item);
ok = JS_ToBoolFree(ctx, rv); // returns -1 if rv is JS_EXCEPTION
if (ok < 0)
goto exception;
found = (ok > 0);
} while (!found);
}
rval = !found ? JS_TRUE : JS_FALSE;
exception:
JS_FreeValue(ctx, has);
JS_FreeValue(ctx, keys);
JS_FreeValue(ctx, iter);
JS_FreeValue(ctx, next);
return rval;
} | O0 | c | js_set_isDisjointFrom:
subq $0x1a8, %rsp # imm = 0x1A8
movq %rsi, 0x188(%rsp)
movq %rdx, 0x190(%rsp)
movq %rdi, 0x180(%rsp)
movl %ecx, 0x17c(%rsp)
movq %r8, 0x170(%rsp)
movl $0x0, 0xe0(%rsp)
movq $0x3, 0xe8(%rsp)
movq 0xe0(%rsp), %rax
movq %rax, 0x130(%rsp)
movq 0xe8(%rsp), %rax
movq %rax, 0x138(%rsp)
movl $0x0, 0xd0(%rsp)
movq $0x3, 0xd8(%rsp)
movq 0xd0(%rsp), %rax
movq %rax, 0x150(%rsp)
movq 0xd8(%rsp), %rax
movq %rax, 0x158(%rsp)
movl $0x0, 0xc0(%rsp)
movq $0x3, 0xc8(%rsp)
movq 0xc0(%rsp), %rax
movq %rax, 0x140(%rsp)
movq 0xc8(%rsp), %rax
movq %rax, 0x148(%rsp)
movl $0x0, 0xb0(%rsp)
movq $0x3, 0xb8(%rsp)
movq 0xb0(%rsp), %rax
movq %rax, 0x120(%rsp)
movq 0xb8(%rsp), %rax
movq %rax, 0x128(%rsp)
movl $0x0, 0xa0(%rsp)
movq $0x6, 0xa8(%rsp)
movq 0xa0(%rsp), %rax
movq %rax, 0x198(%rsp)
movq 0xa8(%rsp), %rax
movq %rax, 0x1a0(%rsp)
movq 0x180(%rsp), %rdi
movq 0x188(%rsp), %rsi
movq 0x190(%rsp), %rdx
movl $0x24, %ecx
callq 0x3e6a0
movq %rax, 0x100(%rsp)
cmpq $0x0, 0x100(%rsp)
jne 0x934fb
jmp 0x93a30
movq 0x180(%rsp), %rdi
movq 0x170(%rsp), %rax
movq (%rax), %rsi
movq 0x8(%rax), %rdx
leaq 0xf8(%rsp), %rcx
callq 0x96770
cmpl $0x0, %eax
jge 0x93529
jmp 0x93a30
movq 0x180(%rsp), %rdi
movq 0x170(%rsp), %rax
movq (%rax), %rsi
movq 0x8(%rax), %rdx
leaq 0x130(%rsp), %rcx
callq 0x968e0
cmpl $0x0, %eax
jge 0x93557
jmp 0x93a30
movq 0x180(%rsp), %rdi
movq 0x170(%rsp), %rax
movq (%rax), %rsi
movq 0x8(%rax), %rdx
leaq 0x140(%rsp), %rcx
callq 0x96a10
cmpl $0x0, %eax
jge 0x93585
jmp 0x93a30
movq 0x100(%rsp), %rax
movl 0x18(%rax), %eax
cmpq 0xf8(%rsp), %rax
jle 0x937ef
movq 0x180(%rsp), %rdi
movq 0x170(%rsp), %rax
movq 0x140(%rsp), %rsi
movq 0x148(%rsp), %rdx
movq (%rax), %rcx
movq 0x8(%rax), %r8
xorl %r9d, %r9d
xorl %eax, %eax
movq $0x0, (%rsp)
callq 0x40340
movq %rax, 0x90(%rsp)
movq %rdx, 0x98(%rsp)
movq 0x90(%rsp), %rax
movq %rax, 0x150(%rsp)
movq 0x98(%rsp), %rax
movq %rax, 0x158(%rsp)
movq 0x150(%rsp), %rdi
movq 0x158(%rsp), %rsi
callq 0x29fb0
cmpl $0x0, %eax
je 0x93626
jmp 0x93a30
movq 0x180(%rsp), %rdi
movq 0x150(%rsp), %rsi
movq 0x158(%rsp), %rdx
movl $0x6b, %ecx
callq 0x30070
movq %rax, 0x80(%rsp)
movq %rdx, 0x88(%rsp)
movq 0x80(%rsp), %rax
movq %rax, 0x120(%rsp)
movq 0x88(%rsp), %rax
movq %rax, 0x128(%rsp)
movq 0x120(%rsp), %rdi
movq 0x128(%rsp), %rsi
callq 0x29fb0
cmpl $0x0, %eax
je 0x93697
jmp 0x93a30
movl $0x0, 0x108(%rsp)
movq 0x180(%rsp), %rdi
movq 0x150(%rsp), %rsi
movq 0x158(%rsp), %rdx
movq 0x120(%rsp), %rcx
movq 0x128(%rsp), %r8
xorl %r9d, %r9d
xorl %eax, %eax
leaq 0x10c(%rsp), %rax
movq $0x0, (%rsp)
movq %rax, 0x8(%rsp)
callq 0x751a0
movq %rax, 0x70(%rsp)
movq %rdx, 0x78(%rsp)
movq 0x70(%rsp), %rax
movq %rax, 0x160(%rsp)
movq 0x78(%rsp), %rax
movq %rax, 0x168(%rsp)
movq 0x160(%rsp), %rdi
movq 0x168(%rsp), %rsi
callq 0x29fb0
cmpl $0x0, %eax
je 0x9372c
jmp 0x93a30
cmpl $0x0, 0x10c(%rsp)
je 0x9373b
jmp 0x937ea
movq 0x180(%rsp), %rdi
movq 0x160(%rsp), %rsi
movq 0x168(%rsp), %rdx
callq 0x83ea0
movq %rax, 0x60(%rsp)
movq %rdx, 0x68(%rsp)
movq 0x60(%rsp), %rax
movq %rax, 0x160(%rsp)
movq 0x68(%rsp), %rax
movq %rax, 0x168(%rsp)
movq 0x180(%rsp), %rdi
movq 0x100(%rsp), %rsi
movq 0x160(%rsp), %rdx
movq 0x168(%rsp), %rcx
callq 0x83f70
movq %rax, %rcx
xorl %eax, %eax
cmpq %rcx, %rax
setne %al
andb $0x1, %al
movzbl %al, %eax
movl %eax, 0x108(%rsp)
movq 0x180(%rsp), %rdi
movq 0x160(%rsp), %rsi
movq 0x168(%rsp), %rdx
callq 0x29f80
cmpl $0x0, 0x108(%rsp)
setne %al
xorb $-0x1, %al
testb $0x1, %al
jne 0x936a2
jmp 0x939cc
movq 0x180(%rsp), %rdi
movq 0x188(%rsp), %rsi
movq 0x190(%rsp), %rdx
xorl %ecx, %ecx
xorl %eax, %eax
movl %eax, %r8d
movl $0x1, %r9d
callq 0x930b0
movq %rax, 0x50(%rsp)
movq %rdx, 0x58(%rsp)
movq 0x50(%rsp), %rax
movq %rax, 0x150(%rsp)
movq 0x58(%rsp), %rax
movq %rax, 0x158(%rsp)
movq 0x150(%rsp), %rdi
movq 0x158(%rsp), %rsi
callq 0x29fb0
cmpl $0x0, %eax
je 0x9385c
jmp 0x93a30
movl $0x0, 0x108(%rsp)
movq 0x180(%rsp), %rdi
movq 0x150(%rsp), %rsi
movq 0x158(%rsp), %rdx
xorl %ecx, %ecx
xorl %eax, %eax
movl %eax, %r8d
leaq 0x10c(%rsp), %r9
movl $0x1, (%rsp)
callq 0x96b40
movq %rax, 0x40(%rsp)
movq %rdx, 0x48(%rsp)
movq 0x40(%rsp), %rax
movq %rax, 0x160(%rsp)
movq 0x48(%rsp), %rax
movq %rax, 0x168(%rsp)
movq 0x160(%rsp), %rdi
movq 0x168(%rsp), %rsi
callq 0x29fb0
cmpl $0x0, %eax
je 0x938dd
jmp 0x93a30
cmpl $0x0, 0x10c(%rsp)
je 0x938ec
jmp 0x939ca
movq 0x180(%rsp), %rdi
movq 0x170(%rsp), %rax
movq 0x130(%rsp), %rsi
movq 0x138(%rsp), %rdx
movq (%rax), %rcx
movq 0x8(%rax), %r8
movl $0x1, %r9d
leaq 0x160(%rsp), %rax
movq %rax, (%rsp)
callq 0x40340
movq %rax, 0x30(%rsp)
movq %rdx, 0x38(%rsp)
movq 0x30(%rsp), %rax
movq %rax, 0x110(%rsp)
movq 0x38(%rsp), %rax
movq %rax, 0x118(%rsp)
movq 0x180(%rsp), %rdi
movq 0x160(%rsp), %rsi
movq 0x168(%rsp), %rdx
callq 0x29f80
movq 0x180(%rsp), %rdi
movq 0x110(%rsp), %rsi
movq 0x118(%rsp), %rdx
callq 0x34620
movl %eax, 0xf4(%rsp)
cmpl $0x0, 0xf4(%rsp)
jge 0x9399e
jmp 0x93a30
cmpl $0x0, 0xf4(%rsp)
setg %al
andb $0x1, %al
movzbl %al, %eax
movl %eax, 0x108(%rsp)
cmpl $0x0, 0x108(%rsp)
setne %al
xorb $-0x1, %al
testb $0x1, %al
jne 0x93867
jmp 0x939cc
cmpl $0x0, 0x108(%rsp)
jne 0x93a03
movl $0x1, 0x20(%rsp)
movq $0x1, 0x28(%rsp)
movq 0x20(%rsp), %rax
movq %rax, 0x198(%rsp)
movq 0x28(%rsp), %rax
movq %rax, 0x1a0(%rsp)
jmp 0x93a2e
movl $0x0, 0x10(%rsp)
movq $0x1, 0x18(%rsp)
movq 0x10(%rsp), %rax
movq %rax, 0x198(%rsp)
movq 0x18(%rsp), %rax
movq %rax, 0x1a0(%rsp)
jmp 0x93a30
movq 0x180(%rsp), %rdi
movq 0x130(%rsp), %rsi
movq 0x138(%rsp), %rdx
callq 0x29f80
movq 0x180(%rsp), %rdi
movq 0x140(%rsp), %rsi
movq 0x148(%rsp), %rdx
callq 0x29f80
movq 0x180(%rsp), %rdi
movq 0x150(%rsp), %rsi
movq 0x158(%rsp), %rdx
callq 0x29f80
movq 0x180(%rsp), %rdi
movq 0x120(%rsp), %rsi
movq 0x128(%rsp), %rdx
callq 0x29f80
movq 0x198(%rsp), %rax
movq 0x1a0(%rsp), %rdx
addq $0x1a8, %rsp # imm = 0x1A8
retq
nopl (%rax)
| js_set_isDisjointFrom:
sub rsp, 1A8h
mov [rsp+1A8h+var_20], rsi
mov [rsp+1A8h+var_18], rdx
mov [rsp+1A8h+var_28], rdi
mov [rsp+1A8h+var_2C], ecx
mov [rsp+1A8h+var_38], r8
mov dword ptr [rsp+1A8h+var_C8], 0
mov [rsp+1A8h+var_C0], 3
mov rax, [rsp+1A8h+var_C8]
mov [rsp+1A8h+var_78], rax
mov rax, [rsp+1A8h+var_C0]
mov [rsp+1A8h+var_70], rax
mov dword ptr [rsp+1A8h+var_D8], 0
mov [rsp+1A8h+var_D0], 3
mov rax, [rsp+1A8h+var_D8]
mov [rsp+1A8h+var_58], rax
mov rax, [rsp+1A8h+var_D0]
mov [rsp+1A8h+var_50], rax
mov dword ptr [rsp+1A8h+var_E8], 0
mov [rsp+1A8h+var_E0], 3
mov rax, [rsp+1A8h+var_E8]
mov [rsp+1A8h+var_68], rax
mov rax, [rsp+1A8h+var_E0]
mov [rsp+1A8h+var_60], rax
mov dword ptr [rsp+1A8h+var_F8], 0
mov [rsp+1A8h+var_F0], 3
mov rax, [rsp+1A8h+var_F8]
mov [rsp+1A8h+var_88], rax
mov rax, [rsp+1A8h+var_F0]
mov [rsp+1A8h+var_80], rax
mov dword ptr [rsp+1A8h+var_108], 0
mov [rsp+1A8h+var_100], 6
mov rax, [rsp+1A8h+var_108]
mov [rsp+1A8h+var_10], rax
mov rax, [rsp+1A8h+var_100]
mov [rsp+1A8h+var_8], rax
mov rdi, [rsp+1A8h+var_28]
mov rsi, [rsp+1A8h+var_20]
mov rdx, [rsp+1A8h+var_18]
mov ecx, 24h ; '$'
call JS_GetOpaque2
mov [rsp+1A8h+var_A8], rax
cmp [rsp+1A8h+var_A8], 0
jnz short loc_934FB
jmp loc_93A30
loc_934FB:
mov rdi, [rsp+1A8h+var_28]
mov rax, [rsp+1A8h+var_38]
mov rsi, [rax]
mov rdx, [rax+8]
lea rcx, [rsp+1A8h+var_B0]
call js_setlike_get_size
cmp eax, 0
jge short loc_93529
jmp loc_93A30
loc_93529:
mov rdi, [rsp+1A8h+var_28]
mov rax, [rsp+1A8h+var_38]
mov rsi, [rax]
mov rdx, [rax+8]
lea rcx, [rsp+1A8h+var_78]
call js_setlike_get_has
cmp eax, 0
jge short loc_93557
jmp loc_93A30
loc_93557:
mov rdi, [rsp+1A8h+var_28]
mov rax, [rsp+1A8h+var_38]
mov rsi, [rax]
mov rdx, [rax+8]
lea rcx, [rsp+1A8h+var_68]
call js_setlike_get_keys
cmp eax, 0
jge short loc_93585
jmp loc_93A30
loc_93585:
mov rax, [rsp+1A8h+var_A8]
mov eax, [rax+18h]
cmp rax, [rsp+1A8h+var_B0]
jle loc_937EF
mov rdi, [rsp+1A8h+var_28]
mov rax, [rsp+1A8h+var_38]
mov rsi, [rsp+1A8h+var_68]
mov rdx, [rsp+1A8h+var_60]
mov rcx, [rax]
mov r8, [rax+8]
xor r9d, r9d
xor eax, eax
mov [rsp+1A8h+var_1A8], 0
call JS_Call
mov [rsp+1A8h+var_118], rax
mov [rsp+1A8h+var_110], rdx
mov rax, [rsp+1A8h+var_118]
mov [rsp+1A8h+var_58], rax
mov rax, [rsp+1A8h+var_110]
mov [rsp+1A8h+var_50], rax
mov rdi, [rsp+1A8h+var_58]
mov rsi, [rsp+1A8h+var_50]
call JS_IsException_1
cmp eax, 0
jz short loc_93626
jmp loc_93A30
loc_93626:
mov rdi, [rsp+1A8h+var_28]
mov rsi, [rsp+1A8h+var_58]
mov rdx, [rsp+1A8h+var_50]
mov ecx, 6Bh ; 'k'
call JS_GetProperty
mov [rsp+1A8h+var_128], rax
mov [rsp+1A8h+var_120], rdx
mov rax, [rsp+1A8h+var_128]
mov [rsp+1A8h+var_88], rax
mov rax, [rsp+1A8h+var_120]
mov [rsp+1A8h+var_80], rax
mov rdi, [rsp+1A8h+var_88]
mov rsi, [rsp+1A8h+var_80]
call JS_IsException_1
cmp eax, 0
jz short loc_93697
jmp loc_93A30
loc_93697:
mov [rsp+1A8h+var_A0], 0
loc_936A2:
mov rdi, [rsp+1A8h+var_28]
mov rsi, [rsp+1A8h+var_58]
mov rdx, [rsp+1A8h+var_50]
mov rcx, [rsp+1A8h+var_88]
mov r8, [rsp+1A8h+var_80]
xor r9d, r9d
xor eax, eax
lea rax, [rsp+1A8h+var_9C]
mov [rsp+1A8h+var_1A8], 0
mov [rsp+1A8h+var_1A0], rax
call JS_IteratorNext
mov [rsp+1A8h+var_138], rax
mov [rsp+1A8h+var_130], rdx
mov rax, [rsp+1A8h+var_138]
mov [rsp+1A8h+var_48], rax
mov rax, [rsp+1A8h+var_130]
mov [rsp+1A8h+var_40], rax
mov rdi, [rsp+1A8h+var_48]
mov rsi, [rsp+1A8h+var_40]
call JS_IsException_1
cmp eax, 0
jz short loc_9372C
jmp loc_93A30
loc_9372C:
cmp [rsp+1A8h+var_9C], 0
jz short loc_9373B
jmp loc_937EA
loc_9373B:
mov rdi, [rsp+1A8h+var_28]
mov rsi, [rsp+1A8h+var_48]
mov rdx, [rsp+1A8h+var_40]
call map_normalize_key
mov [rsp+1A8h+var_148], rax
mov [rsp+1A8h+var_140], rdx
mov rax, [rsp+1A8h+var_148]
mov [rsp+1A8h+var_48], rax
mov rax, [rsp+1A8h+var_140]
mov [rsp+1A8h+var_40], rax
mov rdi, [rsp+1A8h+var_28]
mov rsi, [rsp+1A8h+var_A8]
mov rdx, [rsp+1A8h+var_48]
mov rcx, [rsp+1A8h+var_40]
call map_find_record
mov rcx, rax
xor eax, eax
cmp rax, rcx
setnz al
and al, 1
movzx eax, al
mov [rsp+1A8h+var_A0], eax
mov rdi, [rsp+1A8h+var_28]
mov rsi, [rsp+1A8h+var_48]
mov rdx, [rsp+1A8h+var_40]
call JS_FreeValue
cmp [rsp+1A8h+var_A0], 0
setnz al
xor al, 0FFh
test al, 1
jnz loc_936A2
loc_937EA:
jmp loc_939CC
loc_937EF:
mov rdi, [rsp+1A8h+var_28]
mov rsi, [rsp+1A8h+var_20]
mov rdx, [rsp+1A8h+var_18]
xor ecx, ecx
xor eax, eax
mov r8d, eax
mov r9d, 1
call js_create_map_iterator
mov [rsp+1A8h+var_158], rax
mov [rsp+1A8h+var_150], rdx
mov rax, [rsp+1A8h+var_158]
mov [rsp+1A8h+var_58], rax
mov rax, [rsp+1A8h+var_150]
mov [rsp+1A8h+var_50], rax
mov rdi, [rsp+1A8h+var_58]
mov rsi, [rsp+1A8h+var_50]
call JS_IsException_1
cmp eax, 0
jz short loc_9385C
jmp loc_93A30
loc_9385C:
mov [rsp+1A8h+var_A0], 0
loc_93867:
mov rdi, [rsp+1A8h+var_28]
mov rsi, [rsp+1A8h+var_58]
mov rdx, [rsp+1A8h+var_50]
xor ecx, ecx
xor eax, eax
mov r8d, eax
lea r9, [rsp+1A8h+var_9C]
mov dword ptr [rsp+1A8h+var_1A8], 1
call js_map_iterator_next
mov [rsp+1A8h+var_168], rax
mov [rsp+1A8h+var_160], rdx
mov rax, [rsp+1A8h+var_168]
mov [rsp+1A8h+var_48], rax
mov rax, [rsp+1A8h+var_160]
mov [rsp+1A8h+var_40], rax
mov rdi, [rsp+1A8h+var_48]
mov rsi, [rsp+1A8h+var_40]
call JS_IsException_1
cmp eax, 0
jz short loc_938DD
jmp loc_93A30
loc_938DD:
cmp [rsp+1A8h+var_9C], 0
jz short loc_938EC
jmp loc_939CA
loc_938EC:
mov rdi, [rsp+1A8h+var_28]
mov rax, [rsp+1A8h+var_38]
mov rsi, [rsp+1A8h+var_78]
mov rdx, [rsp+1A8h+var_70]
mov rcx, [rax]
mov r8, [rax+8]
mov r9d, 1
lea rax, [rsp+1A8h+var_48]
mov [rsp+1A8h+var_1A8], rax
call JS_Call
mov [rsp+1A8h+var_178], rax
mov [rsp+1A8h+var_170], rdx
mov rax, [rsp+1A8h+var_178]
mov [rsp+1A8h+var_98], rax
mov rax, [rsp+1A8h+var_170]
mov [rsp+1A8h+var_90], rax
mov rdi, [rsp+1A8h+var_28]
mov rsi, [rsp+1A8h+var_48]
mov rdx, [rsp+1A8h+var_40]
call JS_FreeValue
mov rdi, [rsp+1A8h+var_28]
mov rsi, [rsp+1A8h+var_98]
mov rdx, [rsp+1A8h+var_90]
call JS_ToBoolFree
mov [rsp+1A8h+var_B4], eax
cmp [rsp+1A8h+var_B4], 0
jge short loc_9399E
jmp loc_93A30
loc_9399E:
cmp [rsp+1A8h+var_B4], 0
setnle al
and al, 1
movzx eax, al
mov [rsp+1A8h+var_A0], eax
cmp [rsp+1A8h+var_A0], 0
setnz al
xor al, 0FFh
test al, 1
jnz loc_93867
loc_939CA:
jmp short $+2
loc_939CC:
cmp [rsp+1A8h+var_A0], 0
jnz short loc_93A03
mov dword ptr [rsp+1A8h+var_188], 1
mov [rsp+1A8h+var_180], 1
mov rax, [rsp+1A8h+var_188]
mov [rsp+1A8h+var_10], rax
mov rax, [rsp+1A8h+var_180]
mov [rsp+1A8h+var_8], rax
jmp short loc_93A2E
loc_93A03:
mov dword ptr [rsp+1A8h+var_198], 0
mov [rsp+1A8h+var_190], 1
mov rax, [rsp+1A8h+var_198]
mov [rsp+1A8h+var_10], rax
mov rax, [rsp+1A8h+var_190]
mov [rsp+1A8h+var_8], rax
loc_93A2E:
jmp short $+2
loc_93A30:
mov rdi, [rsp+1A8h+var_28]
mov rsi, [rsp+1A8h+var_78]
mov rdx, [rsp+1A8h+var_70]
call JS_FreeValue
mov rdi, [rsp+1A8h+var_28]
mov rsi, [rsp+1A8h+var_68]
mov rdx, [rsp+1A8h+var_60]
call JS_FreeValue
mov rdi, [rsp+1A8h+var_28]
mov rsi, [rsp+1A8h+var_58]
mov rdx, [rsp+1A8h+var_50]
call JS_FreeValue
mov rdi, [rsp+1A8h+var_28]
mov rsi, [rsp+1A8h+var_88]
mov rdx, [rsp+1A8h+var_80]
call JS_FreeValue
mov rax, [rsp+1A8h+var_10]
mov rdx, [rsp+1A8h+var_8]
add rsp, 1A8h
retn
| long long js_set_isDisjointFrom(long long a1, _DWORD *a2, long long a3, int a4, _QWORD *a5)
{
long long v5; // rdx
long long v6; // rdx
long long v7; // rdx
long long v8; // rdx
long long v9; // rdx
long long v10; // rdx
long long v11; // rdx
long long v13; // [rsp+10h] [rbp-198h]
long long v14; // [rsp+20h] [rbp-188h]
long long v15; // [rsp+A0h] [rbp-108h]
long long v16; // [rsp+B0h] [rbp-F8h]
long long v17; // [rsp+C0h] [rbp-E8h]
long long v18; // [rsp+D0h] [rbp-D8h]
long long v19; // [rsp+E0h] [rbp-C8h]
int v20; // [rsp+F4h] [rbp-B4h]
long long v21; // [rsp+F8h] [rbp-B0h] BYREF
long long Opaque2; // [rsp+100h] [rbp-A8h]
BOOL v23; // [rsp+108h] [rbp-A0h]
int v24; // [rsp+10Ch] [rbp-9Ch] BYREF
long long v25; // [rsp+110h] [rbp-98h]
long long v26; // [rsp+118h] [rbp-90h]
long long Property; // [rsp+120h] [rbp-88h]
long long v28; // [rsp+128h] [rbp-80h]
long long v29; // [rsp+130h] [rbp-78h] BYREF
long long v30; // [rsp+138h] [rbp-70h]
long long v31; // [rsp+140h] [rbp-68h] BYREF
long long v32; // [rsp+148h] [rbp-60h]
long long map_iterator; // [rsp+150h] [rbp-58h]
long long v34; // [rsp+158h] [rbp-50h]
_DWORD *v35; // [rsp+160h] [rbp-48h] BYREF
long long v36; // [rsp+168h] [rbp-40h]
_QWORD *v37; // [rsp+170h] [rbp-38h]
int v38; // [rsp+17Ch] [rbp-2Ch]
long long v39; // [rsp+180h] [rbp-28h]
_DWORD *v40; // [rsp+188h] [rbp-20h]
long long v41; // [rsp+190h] [rbp-18h]
long long v42; // [rsp+198h] [rbp-10h]
long long v43; // [rsp+1A0h] [rbp-8h]
v40 = a2;
v41 = a3;
v39 = a1;
v38 = a4;
v37 = a5;
LODWORD(v19) = 0;
v29 = v19;
v30 = 3LL;
LODWORD(v18) = 0;
map_iterator = v18;
v34 = 3LL;
LODWORD(v17) = 0;
v31 = v17;
v32 = 3LL;
LODWORD(v16) = 0;
Property = v16;
v28 = 3LL;
LODWORD(v15) = 0;
v42 = v15;
v43 = 6LL;
Opaque2 = JS_GetOpaque2(a1, (long long)a2, a3, 0x24u);
if ( Opaque2
&& (int)js_setlike_get_size(v39, *v37, v37[1], &v21) >= 0
&& (int)js_setlike_get_has(v39, *v37, v37[1], &v29) >= 0
&& (int)js_setlike_get_keys(v39, *v37, v37[1], &v31) >= 0 )
{
if ( *(unsigned int *)(Opaque2 + 24) <= v21 )
{
map_iterator = js_create_map_iterator(v39, v40, v41, 0LL, 0LL, 1);
v34 = v9;
if ( !JS_IsException_1(map_iterator, v9) )
{
v23 = 0;
while ( 1 )
{
v35 = (_DWORD *)js_map_iterator_next(v39, map_iterator, v34, 0, 0, (unsigned int)&v24, 1);
v36 = v10;
if ( JS_IsException_1((long long)v35, v10) )
break;
if ( !v24 )
{
v25 = JS_Call(v39, v29, v30, *v37, v37[1], 1, (long long)&v35);
v26 = v11;
JS_FreeValue(v39, (long long)v35, v36);
v20 = JS_ToBoolFree(v39, v25, v26);
if ( v20 < 0 )
break;
v23 = v20 > 0;
if ( v20 <= 0 )
continue;
}
LABEL_19:
if ( v23 )
{
LODWORD(v13) = 0;
v42 = v13;
}
else
{
LODWORD(v14) = 1;
v42 = v14;
}
v43 = 1LL;
break;
}
}
}
else
{
map_iterator = JS_Call(v39, v31, v32, *v37, v37[1], 0, 0LL);
v34 = v5;
if ( !JS_IsException_1(map_iterator, v5) )
{
Property = JS_GetProperty(v39, map_iterator, v34, 107);
v28 = v6;
if ( !JS_IsException_1(Property, v6) )
{
v23 = 0;
while ( 1 )
{
v35 = (_DWORD *)JS_IteratorNext(v39, map_iterator, v34, Property, v28, 0, 0LL, &v24);
v36 = v7;
if ( JS_IsException_1((long long)v35, v7) )
break;
if ( !v24 )
{
v35 = (_DWORD *)map_normalize_key(v39, (long long)v35, v36);
v36 = v8;
v23 = map_find_record(v39, Opaque2, v35, v8) != 0;
JS_FreeValue(v39, (long long)v35, v36);
if ( !v23 )
continue;
}
goto LABEL_19;
}
}
}
}
}
JS_FreeValue(v39, v29, v30);
JS_FreeValue(v39, v31, v32);
JS_FreeValue(v39, map_iterator, v34);
JS_FreeValue(v39, Property, v28);
return v42;
}
| js_set_isDisjointFrom:
SUB RSP,0x1a8
MOV qword ptr [RSP + 0x188],RSI
MOV qword ptr [RSP + 0x190],RDX
MOV qword ptr [RSP + 0x180],RDI
MOV dword ptr [RSP + 0x17c],ECX
MOV qword ptr [RSP + 0x170],R8
MOV dword ptr [RSP + 0xe0],0x0
MOV qword ptr [RSP + 0xe8],0x3
MOV RAX,qword ptr [RSP + 0xe0]
MOV qword ptr [RSP + 0x130],RAX
MOV RAX,qword ptr [RSP + 0xe8]
MOV qword ptr [RSP + 0x138],RAX
MOV dword ptr [RSP + 0xd0],0x0
MOV qword ptr [RSP + 0xd8],0x3
MOV RAX,qword ptr [RSP + 0xd0]
MOV qword ptr [RSP + 0x150],RAX
MOV RAX,qword ptr [RSP + 0xd8]
MOV qword ptr [RSP + 0x158],RAX
MOV dword ptr [RSP + 0xc0],0x0
MOV qword ptr [RSP + 0xc8],0x3
MOV RAX,qword ptr [RSP + 0xc0]
MOV qword ptr [RSP + 0x140],RAX
MOV RAX,qword ptr [RSP + 0xc8]
MOV qword ptr [RSP + 0x148],RAX
MOV dword ptr [RSP + 0xb0],0x0
MOV qword ptr [RSP + 0xb8],0x3
MOV RAX,qword ptr [RSP + 0xb0]
MOV qword ptr [RSP + 0x120],RAX
MOV RAX,qword ptr [RSP + 0xb8]
MOV qword ptr [RSP + 0x128],RAX
MOV dword ptr [RSP + 0xa0],0x0
MOV qword ptr [RSP + 0xa8],0x6
MOV RAX,qword ptr [RSP + 0xa0]
MOV qword ptr [RSP + 0x198],RAX
MOV RAX,qword ptr [RSP + 0xa8]
MOV qword ptr [RSP + 0x1a0],RAX
MOV RDI,qword ptr [RSP + 0x180]
MOV RSI,qword ptr [RSP + 0x188]
MOV RDX,qword ptr [RSP + 0x190]
MOV ECX,0x24
CALL 0x0013e6a0
MOV qword ptr [RSP + 0x100],RAX
CMP qword ptr [RSP + 0x100],0x0
JNZ 0x001934fb
JMP 0x00193a30
LAB_001934fb:
MOV RDI,qword ptr [RSP + 0x180]
MOV RAX,qword ptr [RSP + 0x170]
MOV RSI,qword ptr [RAX]
MOV RDX,qword ptr [RAX + 0x8]
LEA RCX,[RSP + 0xf8]
CALL 0x00196770
CMP EAX,0x0
JGE 0x00193529
JMP 0x00193a30
LAB_00193529:
MOV RDI,qword ptr [RSP + 0x180]
MOV RAX,qword ptr [RSP + 0x170]
MOV RSI,qword ptr [RAX]
MOV RDX,qword ptr [RAX + 0x8]
LEA RCX,[RSP + 0x130]
CALL 0x001968e0
CMP EAX,0x0
JGE 0x00193557
JMP 0x00193a30
LAB_00193557:
MOV RDI,qword ptr [RSP + 0x180]
MOV RAX,qword ptr [RSP + 0x170]
MOV RSI,qword ptr [RAX]
MOV RDX,qword ptr [RAX + 0x8]
LEA RCX,[RSP + 0x140]
CALL 0x00196a10
CMP EAX,0x0
JGE 0x00193585
JMP 0x00193a30
LAB_00193585:
MOV RAX,qword ptr [RSP + 0x100]
MOV EAX,dword ptr [RAX + 0x18]
CMP RAX,qword ptr [RSP + 0xf8]
JLE 0x001937ef
MOV RDI,qword ptr [RSP + 0x180]
MOV RAX,qword ptr [RSP + 0x170]
MOV RSI,qword ptr [RSP + 0x140]
MOV RDX,qword ptr [RSP + 0x148]
MOV RCX,qword ptr [RAX]
MOV R8,qword ptr [RAX + 0x8]
XOR R9D,R9D
XOR EAX,EAX
MOV qword ptr [RSP],0x0
CALL 0x00140340
MOV qword ptr [RSP + 0x90],RAX
MOV qword ptr [RSP + 0x98],RDX
MOV RAX,qword ptr [RSP + 0x90]
MOV qword ptr [RSP + 0x150],RAX
MOV RAX,qword ptr [RSP + 0x98]
MOV qword ptr [RSP + 0x158],RAX
MOV RDI,qword ptr [RSP + 0x150]
MOV RSI,qword ptr [RSP + 0x158]
CALL 0x00129fb0
CMP EAX,0x0
JZ 0x00193626
JMP 0x00193a30
LAB_00193626:
MOV RDI,qword ptr [RSP + 0x180]
MOV RSI,qword ptr [RSP + 0x150]
MOV RDX,qword ptr [RSP + 0x158]
MOV ECX,0x6b
CALL 0x00130070
MOV qword ptr [RSP + 0x80],RAX
MOV qword ptr [RSP + 0x88],RDX
MOV RAX,qword ptr [RSP + 0x80]
MOV qword ptr [RSP + 0x120],RAX
MOV RAX,qword ptr [RSP + 0x88]
MOV qword ptr [RSP + 0x128],RAX
MOV RDI,qword ptr [RSP + 0x120]
MOV RSI,qword ptr [RSP + 0x128]
CALL 0x00129fb0
CMP EAX,0x0
JZ 0x00193697
JMP 0x00193a30
LAB_00193697:
MOV dword ptr [RSP + 0x108],0x0
LAB_001936a2:
MOV RDI,qword ptr [RSP + 0x180]
MOV RSI,qword ptr [RSP + 0x150]
MOV RDX,qword ptr [RSP + 0x158]
MOV RCX,qword ptr [RSP + 0x120]
MOV R8,qword ptr [RSP + 0x128]
XOR R9D,R9D
XOR EAX,EAX
LEA RAX,[RSP + 0x10c]
MOV qword ptr [RSP],0x0
MOV qword ptr [RSP + 0x8],RAX
CALL 0x001751a0
MOV qword ptr [RSP + 0x70],RAX
MOV qword ptr [RSP + 0x78],RDX
MOV RAX,qword ptr [RSP + 0x70]
MOV qword ptr [RSP + 0x160],RAX
MOV RAX,qword ptr [RSP + 0x78]
MOV qword ptr [RSP + 0x168],RAX
MOV RDI,qword ptr [RSP + 0x160]
MOV RSI,qword ptr [RSP + 0x168]
CALL 0x00129fb0
CMP EAX,0x0
JZ 0x0019372c
JMP 0x00193a30
LAB_0019372c:
CMP dword ptr [RSP + 0x10c],0x0
JZ 0x0019373b
JMP 0x001937ea
LAB_0019373b:
MOV RDI,qword ptr [RSP + 0x180]
MOV RSI,qword ptr [RSP + 0x160]
MOV RDX,qword ptr [RSP + 0x168]
CALL 0x00183ea0
MOV qword ptr [RSP + 0x60],RAX
MOV qword ptr [RSP + 0x68],RDX
MOV RAX,qword ptr [RSP + 0x60]
MOV qword ptr [RSP + 0x160],RAX
MOV RAX,qword ptr [RSP + 0x68]
MOV qword ptr [RSP + 0x168],RAX
MOV RDI,qword ptr [RSP + 0x180]
MOV RSI,qword ptr [RSP + 0x100]
MOV RDX,qword ptr [RSP + 0x160]
MOV RCX,qword ptr [RSP + 0x168]
CALL 0x00183f70
MOV RCX,RAX
XOR EAX,EAX
CMP RAX,RCX
SETNZ AL
AND AL,0x1
MOVZX EAX,AL
MOV dword ptr [RSP + 0x108],EAX
MOV RDI,qword ptr [RSP + 0x180]
MOV RSI,qword ptr [RSP + 0x160]
MOV RDX,qword ptr [RSP + 0x168]
CALL 0x00129f80
CMP dword ptr [RSP + 0x108],0x0
SETNZ AL
XOR AL,0xff
TEST AL,0x1
JNZ 0x001936a2
LAB_001937ea:
JMP 0x001939cc
LAB_001937ef:
MOV RDI,qword ptr [RSP + 0x180]
MOV RSI,qword ptr [RSP + 0x188]
MOV RDX,qword ptr [RSP + 0x190]
XOR ECX,ECX
XOR EAX,EAX
MOV R8D,EAX
MOV R9D,0x1
CALL 0x001930b0
MOV qword ptr [RSP + 0x50],RAX
MOV qword ptr [RSP + 0x58],RDX
MOV RAX,qword ptr [RSP + 0x50]
MOV qword ptr [RSP + 0x150],RAX
MOV RAX,qword ptr [RSP + 0x58]
MOV qword ptr [RSP + 0x158],RAX
MOV RDI,qword ptr [RSP + 0x150]
MOV RSI,qword ptr [RSP + 0x158]
CALL 0x00129fb0
CMP EAX,0x0
JZ 0x0019385c
JMP 0x00193a30
LAB_0019385c:
MOV dword ptr [RSP + 0x108],0x0
LAB_00193867:
MOV RDI,qword ptr [RSP + 0x180]
MOV RSI,qword ptr [RSP + 0x150]
MOV RDX,qword ptr [RSP + 0x158]
XOR ECX,ECX
XOR EAX,EAX
MOV R8D,EAX
LEA R9,[RSP + 0x10c]
MOV dword ptr [RSP],0x1
CALL 0x00196b40
MOV qword ptr [RSP + 0x40],RAX
MOV qword ptr [RSP + 0x48],RDX
MOV RAX,qword ptr [RSP + 0x40]
MOV qword ptr [RSP + 0x160],RAX
MOV RAX,qword ptr [RSP + 0x48]
MOV qword ptr [RSP + 0x168],RAX
MOV RDI,qword ptr [RSP + 0x160]
MOV RSI,qword ptr [RSP + 0x168]
CALL 0x00129fb0
CMP EAX,0x0
JZ 0x001938dd
JMP 0x00193a30
LAB_001938dd:
CMP dword ptr [RSP + 0x10c],0x0
JZ 0x001938ec
JMP 0x001939ca
LAB_001938ec:
MOV RDI,qword ptr [RSP + 0x180]
MOV RAX,qword ptr [RSP + 0x170]
MOV RSI,qword ptr [RSP + 0x130]
MOV RDX,qword ptr [RSP + 0x138]
MOV RCX,qword ptr [RAX]
MOV R8,qword ptr [RAX + 0x8]
MOV R9D,0x1
LEA RAX,[RSP + 0x160]
MOV qword ptr [RSP],RAX
CALL 0x00140340
MOV qword ptr [RSP + 0x30],RAX
MOV qword ptr [RSP + 0x38],RDX
MOV RAX,qword ptr [RSP + 0x30]
MOV qword ptr [RSP + 0x110],RAX
MOV RAX,qword ptr [RSP + 0x38]
MOV qword ptr [RSP + 0x118],RAX
MOV RDI,qword ptr [RSP + 0x180]
MOV RSI,qword ptr [RSP + 0x160]
MOV RDX,qword ptr [RSP + 0x168]
CALL 0x00129f80
MOV RDI,qword ptr [RSP + 0x180]
MOV RSI,qword ptr [RSP + 0x110]
MOV RDX,qword ptr [RSP + 0x118]
CALL 0x00134620
MOV dword ptr [RSP + 0xf4],EAX
CMP dword ptr [RSP + 0xf4],0x0
JGE 0x0019399e
JMP 0x00193a30
LAB_0019399e:
CMP dword ptr [RSP + 0xf4],0x0
SETG AL
AND AL,0x1
MOVZX EAX,AL
MOV dword ptr [RSP + 0x108],EAX
CMP dword ptr [RSP + 0x108],0x0
SETNZ AL
XOR AL,0xff
TEST AL,0x1
JNZ 0x00193867
LAB_001939ca:
JMP 0x001939cc
LAB_001939cc:
CMP dword ptr [RSP + 0x108],0x0
JNZ 0x00193a03
MOV dword ptr [RSP + 0x20],0x1
MOV qword ptr [RSP + 0x28],0x1
MOV RAX,qword ptr [RSP + 0x20]
MOV qword ptr [RSP + 0x198],RAX
MOV RAX,qword ptr [RSP + 0x28]
MOV qword ptr [RSP + 0x1a0],RAX
JMP 0x00193a2e
LAB_00193a03:
MOV dword ptr [RSP + 0x10],0x0
MOV qword ptr [RSP + 0x18],0x1
MOV RAX,qword ptr [RSP + 0x10]
MOV qword ptr [RSP + 0x198],RAX
MOV RAX,qword ptr [RSP + 0x18]
MOV qword ptr [RSP + 0x1a0],RAX
LAB_00193a2e:
JMP 0x00193a30
LAB_00193a30:
MOV RDI,qword ptr [RSP + 0x180]
MOV RSI,qword ptr [RSP + 0x130]
MOV RDX,qword ptr [RSP + 0x138]
CALL 0x00129f80
MOV RDI,qword ptr [RSP + 0x180]
MOV RSI,qword ptr [RSP + 0x140]
MOV RDX,qword ptr [RSP + 0x148]
CALL 0x00129f80
MOV RDI,qword ptr [RSP + 0x180]
MOV RSI,qword ptr [RSP + 0x150]
MOV RDX,qword ptr [RSP + 0x158]
CALL 0x00129f80
MOV RDI,qword ptr [RSP + 0x180]
MOV RSI,qword ptr [RSP + 0x120]
MOV RDX,qword ptr [RSP + 0x128]
CALL 0x00129f80
MOV RAX,qword ptr [RSP + 0x198]
MOV RDX,qword ptr [RSP + 0x1a0]
ADD RSP,0x1a8
RET
|
int1 [16]
js_set_isDisjointFrom
(int8 param_1,int8 param_2,int8 param_3,int4 param_4,
int8 *param_5)
{
int iVar1;
long lVar2;
int1 auVar3 [16];
uint uStack_194;
int4 uStack_184;
uint uStack_104;
uint uStack_f4;
uint uStack_e4;
uint uStack_d4;
uint uStack_c4;
long local_b0;
long local_a8;
uint local_a0;
int local_9c;
int1 local_98 [16];
int1 local_88 [16];
long local_78;
int8 local_70;
long local_68;
int8 local_60;
int1 local_58 [16];
int1 local_48 [16];
int8 *local_38;
int4 local_2c;
int8 local_28;
int8 local_20;
int8 local_18;
long local_10;
int8 local_8;
local_78 = (ulong)uStack_c4 << 0x20;
local_70 = 3;
local_58._0_8_ = (ulong)uStack_d4 << 0x20;
local_58._8_8_ = 3;
local_68 = (ulong)uStack_e4 << 0x20;
local_60 = 3;
local_88._0_8_ = (ulong)uStack_f4 << 0x20;
local_88._8_8_ = 3;
local_10 = (ulong)uStack_104 << 0x20;
local_8 = 6;
local_38 = param_5;
local_2c = param_4;
local_28 = param_1;
local_20 = param_2;
local_18 = param_3;
local_a8 = JS_GetOpaque2(param_1,param_2,param_3,0x24);
if (local_a8 != 0) {
iVar1 = js_setlike_get_size(local_28,*local_38,local_38[1],&local_b0);
if (-1 < iVar1) {
iVar1 = js_setlike_get_has(local_28,*local_38,local_38[1],&local_78);
if (-1 < iVar1) {
iVar1 = js_setlike_get_keys(local_28,*local_38,local_38[1],&local_68);
if (-1 < iVar1) {
if (local_b0 < (long)(ulong)*(uint *)(local_a8 + 0x18)) {
local_58 = JS_Call(local_28,local_68,local_60,*local_38,local_38[1],0,0);
iVar1 = JS_IsException(local_58._0_8_,local_58._8_8_);
if (iVar1 != 0) goto LAB_00193a30;
local_88 = JS_GetProperty(local_28,local_58._0_8_,local_58._8_8_,0x6b);
iVar1 = JS_IsException(local_88._0_8_,local_88._8_8_);
if (iVar1 != 0) goto LAB_00193a30;
local_a0 = 0;
do {
auVar3 = JS_IteratorNext(local_28,local_58._0_8_,local_58._8_8_,local_88._0_8_,
local_88._8_8_,0,0,&local_9c);
local_48 = auVar3;
iVar1 = JS_IsException(auVar3._0_8_,auVar3._8_8_);
if (iVar1 != 0) goto LAB_00193a30;
if (local_9c != 0) break;
auVar3 = map_normalize_key(local_28,local_48._0_8_,local_48._8_8_);
local_48 = auVar3;
lVar2 = map_find_record(local_28,local_a8,auVar3._0_8_,auVar3._8_8_);
local_a0 = (uint)(lVar2 != 0);
JS_FreeValue(local_28,local_48._0_8_,local_48._8_8_);
} while (local_a0 == 0);
}
else {
local_58 = js_create_map_iterator(local_28,local_20,local_18,0,0,1);
iVar1 = JS_IsException(local_58._0_8_,local_58._8_8_);
if (iVar1 != 0) goto LAB_00193a30;
local_a0 = 0;
do {
auVar3 = js_map_iterator_next(local_28,local_58._0_8_,local_58._8_8_,0,0,&local_9c,1);
local_48 = auVar3;
iVar1 = JS_IsException(auVar3._0_8_,auVar3._8_8_);
if (iVar1 != 0) goto LAB_00193a30;
if (local_9c != 0) break;
auVar3 = JS_Call(local_28,local_78,local_70,*local_38,local_38[1],1,local_48);
local_98 = auVar3;
JS_FreeValue(local_28,local_48._0_8_,local_48._8_8_);
iVar1 = JS_ToBoolFree(local_28,local_98._0_8_,local_98._8_8_);
if (iVar1 < 0) goto LAB_00193a30;
local_a0 = (uint)(0 < iVar1);
} while (local_a0 == 0);
}
if (local_a0 == 0) {
local_10 = CONCAT44(uStack_184,1);
}
else {
local_10 = (ulong)uStack_194 << 0x20;
}
local_8 = 1;
}
}
}
}
LAB_00193a30:
JS_FreeValue(local_28,local_78,local_70);
JS_FreeValue(local_28,local_68,local_60);
JS_FreeValue(local_28,local_58._0_8_,local_58._8_8_);
JS_FreeValue(local_28,local_88._0_8_,local_88._8_8_);
auVar3._8_8_ = local_8;
auVar3._0_8_ = local_10;
return auVar3;
}
| |
45,271 | js_set_isDisjointFrom | bluesky950520[P]quickjs/quickjs.c | static JSValue js_set_isDisjointFrom(JSContext *ctx, JSValue this_val,
int argc, JSValue *argv)
{
JSValue item, iter, keys, has, next, rv, rval;
BOOL done, found;
JSMapState *s;
int64_t size;
int ok;
has = JS_UNDEFINED;
iter = JS_UNDEFINED;
keys = JS_UNDEFINED;
next = JS_UNDEFINED;
rval = JS_EXCEPTION;
s = JS_GetOpaque2(ctx, this_val, JS_CLASS_SET);
if (!s)
goto exception;
// order matters!
if (js_setlike_get_size(ctx, argv[0], &size) < 0)
goto exception;
if (js_setlike_get_has(ctx, argv[0], &has) < 0)
goto exception;
if (js_setlike_get_keys(ctx, argv[0], &keys) < 0)
goto exception;
if (s->record_count > size) {
iter = JS_Call(ctx, keys, argv[0], 0, NULL);
if (JS_IsException(iter))
goto exception;
next = JS_GetProperty(ctx, iter, JS_ATOM_next);
if (JS_IsException(next))
goto exception;
found = FALSE;
do {
item = JS_IteratorNext(ctx, iter, next, 0, NULL, &done);
if (JS_IsException(item))
goto exception;
if (done) // item is JS_UNDEFINED
break;
item = map_normalize_key(ctx, item);
found = (NULL != map_find_record(ctx, s, item));
JS_FreeValue(ctx, item);
} while (!found);
} else {
iter = js_create_map_iterator(ctx, this_val, 0, NULL, MAGIC_SET);
if (JS_IsException(iter))
goto exception;
found = FALSE;
do {
item = js_map_iterator_next(ctx, iter, 0, NULL, &done, MAGIC_SET);
if (JS_IsException(item))
goto exception;
if (done) // item is JS_UNDEFINED
break;
rv = JS_Call(ctx, has, argv[0], 1, &item);
JS_FreeValue(ctx, item);
ok = JS_ToBoolFree(ctx, rv); // returns -1 if rv is JS_EXCEPTION
if (ok < 0)
goto exception;
found = (ok > 0);
} while (!found);
}
rval = !found ? JS_TRUE : JS_FALSE;
exception:
JS_FreeValue(ctx, has);
JS_FreeValue(ctx, keys);
JS_FreeValue(ctx, iter);
JS_FreeValue(ctx, next);
return rval;
} | O1 | c | js_set_isDisjointFrom:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x98, %rsp
movq %r8, %r13
movq %rdx, %rbp
movq %rsi, %r14
movq %rdi, %rbx
xorl %r12d, %r12d
movl %r12d, 0x58(%rsp)
movl $0x3, %ecx
movq %rcx, 0x60(%rsp)
movl %r12d, 0x68(%rsp)
movl $0x3, %eax
movq %rax, 0x40(%rsp)
movq %rcx, 0x70(%rsp)
movl $0x24, %ecx
callq 0x2b611
testq %rax, %rax
je 0x542d6
movq %rax, %r15
movq (%r13), %rsi
movq 0x8(%r13), %rdx
leaq 0x90(%rsp), %rcx
movq %rbx, %rdi
callq 0x55e45
testl %eax, %eax
js 0x542d3
movq (%r13), %rsi
movq 0x8(%r13), %rdx
leaq 0x58(%rsp), %rcx
movq %rbx, %rdi
callq 0x55f19
testl %eax, %eax
js 0x542d3
movq (%r13), %rsi
movq 0x8(%r13), %rdx
leaq 0x68(%rsp), %rcx
movq %rbx, %rdi
callq 0x55fb3
testl %eax, %eax
js 0x542d3
movl 0x18(%r15), %eax
cmpq %rax, 0x90(%rsp)
jge 0x54345
movq 0x68(%rsp), %rsi
movq 0x70(%rsp), %rdx
movq (%r13), %rcx
movq 0x8(%r13), %r8
movl $0x0, 0x78(%rsp)
movq $0x3, 0x80(%rsp)
movups 0x78(%rsp), %xmm0
movups %xmm0, (%rsp)
movl $0x2, 0x18(%rsp)
movq $0x0, 0x10(%rsp)
xorl %r12d, %r12d
movq %rbx, %rdi
xorl %r9d, %r9d
callq 0x2c526
movq %rax, %rbp
cmpl $0x6, %edx
movl $0x6, %r14d
jne 0x5446c
xorl %r13d, %r13d
movq %rdx, %r15
jmp 0x542e7
xorl %r12d, %r12d
xorl %ebp, %ebp
movl $0x3, %r15d
xorl %r13d, %r13d
movl $0x6, %r14d
movq 0x58(%rsp), %rsi
movq 0x60(%rsp), %rdx
movq 0x18(%rbx), %rdi
callq 0x21922
movq 0x68(%rsp), %rsi
movq 0x70(%rsp), %rdx
movq 0x18(%rbx), %rdi
callq 0x21922
movq 0x18(%rbx), %rdi
movq %rbp, %rsi
movq %r15, %rdx
callq 0x21922
movq 0x18(%rbx), %rdi
movq %r12, %rsi
movq 0x40(%rsp), %rdx
callq 0x21922
movq %r13, %rax
movq %r14, %rdx
addq $0x98, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rbx, %rdi
movq %r14, %rsi
movq %rbp, %rdx
movl $0x1, %r9d
callq 0x54005
movq %rax, %rbp
movq %rdx, %r15
xorl %r12d, %r12d
cmpl $0x6, %r15d
je 0x542de
movq %rbp, 0x30(%rsp)
movq 0x58(%rsp), %rax
movq %rax, 0x28(%rsp)
movq 0x60(%rsp), %rax
movq %rax, 0x88(%rsp)
xorl %ebp, %ebp
movl $0x1, (%rsp)
movq %rbx, %rdi
movq 0x30(%rsp), %rsi
movq %r15, %rdx
leaq 0x3c(%rsp), %r9
callq 0x5604d
movq %rax, 0x48(%rsp)
movq %rdx, 0x50(%rsp)
cmpl $0x6, %edx
je 0x54569
cmpl $0x0, 0x3c(%rsp)
jne 0x5445d
movq %r15, %r12
movq (%r13), %rcx
movq 0x8(%r13), %r8
movl $0x0, 0x78(%rsp)
movq $0x3, 0x80(%rsp)
movups 0x78(%rsp), %xmm0
movups %xmm0, (%rsp)
leaq 0x48(%rsp), %rax
movq %rax, 0x10(%rsp)
movl $0x2, 0x18(%rsp)
movq %rbx, %rdi
movq 0x28(%rsp), %rsi
movq 0x88(%rsp), %rdx
movl $0x1, %r9d
callq 0x2c526
movq %rax, %r14
movq %rdx, %r15
movq 0x48(%rsp), %rsi
movq 0x50(%rsp), %rdx
movq 0x18(%rbx), %rdi
callq 0x21922
movq %rbx, %rdi
movq %r14, %rsi
movq %r15, %rdx
callq 0x26d69
testl %eax, %eax
js 0x5457c
setne %al
movzbl %al, %ebp
movq %r12, %r15
movl $0x0, %r12d
je 0x5438a
movl $0x3, %eax
movq %rax, 0x40(%rsp)
jmp 0x54558
movl $0x0, 0x8(%rsp)
movq $0x0, (%rsp)
movq %rbx, %rdi
movq %rbp, %rsi
movl $0x6b, %ecx
movq %rbp, %r8
movq %rdx, 0x28(%rsp)
movq %rdx, %r9
callq 0x26fff
movq %rax, %r12
xorl %r13d, %r13d
movq %rdx, 0x40(%rsp)
cmpl $0x6, %edx
je 0x545aa
movq %rbp, 0x30(%rsp)
xorl %ebp, %ebp
leaq 0x3c(%rsp), %rax
movq %rax, 0x8(%rsp)
movq $0x0, (%rsp)
movq %rbx, %rdi
movq 0x30(%rsp), %rsi
movq 0x28(%rsp), %rdx
movq %r12, %rcx
movq 0x40(%rsp), %r8
xorl %r9d, %r9d
callq 0x45b58
movq %rdx, %rcx
movq %rax, 0x48(%rsp)
movq %rdx, 0x50(%rsp)
movl %ecx, %edx
cmpq $0x6, %rdx
je 0x5459f
cmpl $0x0, 0x3c(%rsp)
jne 0x54553
xorq $0x7, %rdx
movq %rax, %rsi
btrq $0x3f, %rsi
orq %rdx, %rsi
jne 0x54516
xorl %eax, %eax
xorl %ecx, %ecx
movq %rax, 0x48(%rsp)
movq %rcx, 0x50(%rsp)
movq %rbx, %rdi
movq %r15, %rsi
movq %rax, %rdx
callq 0x4b4e9
movq %rax, %r14
movq 0x48(%rsp), %rsi
movq 0x50(%rsp), %rdx
movq 0x18(%rbx), %rdi
callq 0x21922
xorl %ebp, %ebp
testq %r14, %r14
setne %bpl
je 0x544b2
movq 0x28(%rsp), %r15
xorl %r13d, %r13d
testl %ebp, %ebp
sete %r13b
movl $0x1, %r14d
jmp 0x54572
xorl %r13d, %r13d
movl $0x6, %r14d
movq 0x30(%rsp), %rbp
jmp 0x542e7
movl $0x3, %eax
movq %rax, 0x40(%rsp)
xorl %r13d, %r13d
movl $0x6, %r14d
movq 0x30(%rsp), %rbp
movq %r12, %r15
xorl %r12d, %r12d
jmp 0x542e7
movl $0x6, %r14d
movq 0x30(%rsp), %rbp
movq 0x28(%rsp), %r15
jmp 0x542e7
| js_set_isDisjointFrom:
push rbp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 98h
mov r13, r8
mov rbp, rdx
mov r14, rsi
mov rbx, rdi
xor r12d, r12d
mov dword ptr [rsp+0C8h+var_70], r12d
mov ecx, 3
mov [rsp+0C8h+var_68], rcx
mov dword ptr [rsp+0C8h+var_60], r12d
mov eax, 3
mov [rsp+0C8h+var_88], rax
mov [rsp+0C8h+var_58], rcx
mov ecx, 24h ; '$'
call JS_GetOpaque2
test rax, rax
jz loc_542D6
mov r15, rax
mov rsi, [r13+0]
mov rdx, [r13+8]
lea rcx, [rsp+0C8h+var_38]
mov rdi, rbx
call js_setlike_get_size
test eax, eax
js loc_542D3
mov rsi, [r13+0]
mov rdx, [r13+8]
lea rcx, [rsp+0C8h+var_70]
mov rdi, rbx
call js_setlike_get_has
test eax, eax
js loc_542D3
mov rsi, [r13+0]
mov rdx, [r13+8]
lea rcx, [rsp+0C8h+var_60]
mov rdi, rbx
call js_setlike_get_keys
test eax, eax
js short loc_542D3
mov eax, [r15+18h]
cmp [rsp+0C8h+var_38], rax
jge loc_54345
mov rsi, [rsp+0C8h+var_60]
mov rdx, [rsp+0C8h+var_58]
mov rcx, [r13+0]
mov r8, [r13+8]
mov dword ptr [rsp+0C8h+var_50], 0
mov qword ptr [rsp+0C8h+var_50+8], 3
movups xmm0, [rsp+0C8h+var_50]
movups [rsp+0C8h+var_C8], xmm0
mov [rsp+0C8h+var_B0], 2
mov [rsp+0C8h+var_B8], 0
xor r12d, r12d
mov rdi, rbx
xor r9d, r9d
call JS_CallInternal
mov rbp, rax
cmp edx, 6
mov r14d, 6
jnz loc_5446C
xor r13d, r13d
mov r15, rdx
jmp short loc_542E7
loc_542D3:
xor r12d, r12d
loc_542D6:
xor ebp, ebp
mov r15d, 3
loc_542DE:
xor r13d, r13d
mov r14d, 6
loc_542E7:
mov rsi, [rsp+0C8h+var_70]
mov rdx, [rsp+0C8h+var_68]
mov rdi, [rbx+18h]
call JS_FreeValueRT
mov rsi, [rsp+0C8h+var_60]
mov rdx, [rsp+0C8h+var_58]
mov rdi, [rbx+18h]
call JS_FreeValueRT
mov rdi, [rbx+18h]
mov rsi, rbp
mov rdx, r15
call JS_FreeValueRT
mov rdi, [rbx+18h]
mov rsi, r12
mov rdx, [rsp+0C8h+var_88]
call JS_FreeValueRT
mov rax, r13
mov rdx, r14
add rsp, 98h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
loc_54345:
mov rdi, rbx
mov rsi, r14
mov rdx, rbp
mov r9d, 1
call js_create_map_iterator
mov rbp, rax
mov r15, rdx
xor r12d, r12d
cmp r15d, 6
jz loc_542DE
mov [rsp+0C8h+var_98], rbp
mov rax, [rsp+0C8h+var_70]
mov [rsp+0C8h+var_A0], rax
mov rax, [rsp+0C8h+var_68]
mov [rsp+0C8h+var_40], rax
xor ebp, ebp
loc_5438A:
mov dword ptr [rsp+0C8h+var_C8], 1
mov rdi, rbx
mov rsi, [rsp+0C8h+var_98]
mov rdx, r15
lea r9, [rsp+0C8h+var_8C]
call js_map_iterator_next
mov [rsp+0C8h+var_80], rax
mov [rsp+0C8h+var_78], rdx
cmp edx, 6
jz loc_54569
cmp [rsp+0C8h+var_8C], 0
jnz loc_5445D
mov r12, r15
mov rcx, [r13+0]
mov r8, [r13+8]
mov dword ptr [rsp+0C8h+var_50], 0
mov qword ptr [rsp+0C8h+var_50+8], 3
movups xmm0, [rsp+0C8h+var_50]
movups [rsp+0C8h+var_C8], xmm0
lea rax, [rsp+0C8h+var_80]
mov [rsp+0C8h+var_B8], rax
mov [rsp+0C8h+var_B0], 2
mov rdi, rbx
mov rsi, [rsp+0C8h+var_A0]
mov rdx, [rsp+0C8h+var_40]
mov r9d, 1
call JS_CallInternal
mov r14, rax
mov r15, rdx
mov rsi, [rsp+0C8h+var_80]
mov rdx, [rsp+0C8h+var_78]
mov rdi, [rbx+18h]
call JS_FreeValueRT
mov rdi, rbx
mov rsi, r14
mov rdx, r15
call JS_ToBoolFree
test eax, eax
js loc_5457C
setnz al
movzx ebp, al
mov r15, r12
mov r12d, 0
jz loc_5438A
loc_5445D:
mov eax, 3
mov [rsp+0C8h+var_88], rax
jmp loc_54558
loc_5446C:
mov dword ptr [rsp+0C8h+var_C8+8], 0
mov qword ptr [rsp+0C8h+var_C8], 0
mov rdi, rbx
mov rsi, rbp
mov ecx, 6Bh ; 'k'
mov r8, rbp
mov [rsp+0C8h+var_A0], rdx
mov r9, rdx
call JS_GetPropertyInternal2
mov r12, rax
xor r13d, r13d
mov [rsp+0C8h+var_88], rdx
cmp edx, 6
jz loc_545AA
mov [rsp+0C8h+var_98], rbp
xor ebp, ebp
loc_544B2:
lea rax, [rsp+0C8h+var_8C]
mov qword ptr [rsp+0C8h+var_C8+8], rax
mov qword ptr [rsp+0C8h+var_C8], 0
mov rdi, rbx
mov rsi, [rsp+0C8h+var_98]
mov rdx, [rsp+0C8h+var_A0]
mov rcx, r12
mov r8, [rsp+0C8h+var_88]
xor r9d, r9d
call JS_IteratorNext
mov rcx, rdx
mov [rsp+0C8h+var_80], rax
mov [rsp+0C8h+var_78], rdx
mov edx, ecx
cmp rdx, 6
jz loc_5459F
cmp [rsp+0C8h+var_8C], 0
jnz short loc_54553
xor rdx, 7
mov rsi, rax
btr rsi, 3Fh ; '?'
or rsi, rdx
jnz short loc_54516
xor eax, eax
xor ecx, ecx
loc_54516:
mov [rsp+0C8h+var_80], rax
mov [rsp+0C8h+var_78], rcx
mov rdi, rbx
mov rsi, r15
mov rdx, rax
call map_find_record
mov r14, rax
mov rsi, [rsp+0C8h+var_80]
mov rdx, [rsp+0C8h+var_78]
mov rdi, [rbx+18h]
call JS_FreeValueRT
xor ebp, ebp
test r14, r14
setnz bpl
jz loc_544B2
loc_54553:
mov r15, [rsp+0C8h+var_A0]
loc_54558:
xor r13d, r13d
test ebp, ebp
setz r13b
mov r14d, 1
jmp short loc_54572
loc_54569:
xor r13d, r13d
mov r14d, 6
loc_54572:
mov rbp, [rsp+0C8h+var_98]
jmp loc_542E7
loc_5457C:
mov eax, 3
mov [rsp+0C8h+var_88], rax
xor r13d, r13d
mov r14d, 6
mov rbp, [rsp+0C8h+var_98]
mov r15, r12
xor r12d, r12d
jmp loc_542E7
loc_5459F:
mov r14d, 6
mov rbp, [rsp+0C8h+var_98]
loc_545AA:
mov r15, [rsp+0C8h+var_A0]
jmp loc_542E7
| _BOOL8 js_set_isDisjointFrom(
long long a1,
_DWORD *a2,
long long a3,
double a4,
__m128 a5,
__m128 a6,
__m128 a7,
double a8,
double a9,
__m128 a10,
__m128 a11,
long long a12,
long long *a13)
{
_DWORD *PropertyInternal2; // r12
long long Opaque2; // rax
long long v17; // r15
long long v18; // rcx
long long v19; // r8
__m128 v20; // xmm4
__m128 v21; // xmm5
long long v22; // rcx
long long v23; // r8
double v24; // xmm0_8
unsigned long long v25; // rax
long long v26; // rdx
_DWORD *v27; // rbp
_BOOL8 v28; // r13
long long v29; // r15
unsigned long long map_iterator; // rax
int v32; // ecx
int v33; // r8d
long long v34; // rdx
BOOL v35; // ebp
__m128 v36; // xmm4
__m128 v37; // xmm5
long long v38; // rdx
long long v39; // r12
long long v40; // rcx
long long v41; // r8
unsigned long long v42; // r14
long long v43; // rdx
long long v44; // r15
int v45; // eax
long long v46; // rdx
unsigned long long v47; // rax
long long v48; // rdx
long long v49; // rcx
long long record; // r14
_DWORD *v51; // [rsp+28h] [rbp-A0h]
long long v52; // [rsp+28h] [rbp-A0h]
_DWORD *v53; // [rsp+30h] [rbp-98h]
int v54; // [rsp+3Ch] [rbp-8Ch] BYREF
long long v55; // [rsp+40h] [rbp-88h]
_DWORD *v56; // [rsp+48h] [rbp-80h] BYREF
long long v57; // [rsp+50h] [rbp-78h]
_DWORD *v58; // [rsp+58h] [rbp-70h] BYREF
long long v59; // [rsp+60h] [rbp-68h]
_DWORD *v60; // [rsp+68h] [rbp-60h] BYREF
long long v61; // [rsp+70h] [rbp-58h]
__m128 v62; // [rsp+78h] [rbp-50h]
long long v63; // [rsp+88h] [rbp-40h]
long long v64[7]; // [rsp+90h] [rbp-38h] BYREF
PropertyInternal2 = 0LL;
LODWORD(v58) = 0;
v59 = 3LL;
LODWORD(v60) = 0;
v55 = 3LL;
v61 = 3LL;
Opaque2 = JS_GetOpaque2(a1, (long long)a2, a3, 0x24u);
if ( !Opaque2 )
goto LABEL_9;
v17 = Opaque2;
if ( (int)js_setlike_get_size(a1, *a13, a13[1], v64) < 0
|| (int)js_setlike_get_has(a1, *a13, a13[1], &v58) < 0
|| (int)js_setlike_get_keys(a1, *a13, a13[1], &v60) < 0 )
{
PropertyInternal2 = 0LL;
LABEL_9:
v27 = 0LL;
v29 = 3LL;
LABEL_10:
v28 = 0LL;
goto LABEL_11;
}
if ( v64[0] >= *(unsigned int *)(v17 + 24) )
{
map_iterator = js_create_map_iterator(a1, a2, a3, v18, v19, 1);
v27 = (_DWORD *)map_iterator;
v29 = v34;
PropertyInternal2 = 0LL;
if ( (_DWORD)v34 != 6 )
{
v53 = (_DWORD *)map_iterator;
v51 = v58;
v63 = v59;
v35 = 0;
while ( 1 )
{
v56 = (_DWORD *)js_map_iterator_next(a1, (_DWORD)v53, v29, v32, v33, (unsigned int)&v54, 1);
v57 = v38;
if ( (_DWORD)v38 == 6 )
break;
if ( v54 )
goto LABEL_18;
v39 = v29;
v40 = *a13;
v41 = a13[1];
v62.m128_i32[0] = 0;
v62.m128_u64[1] = 3LL;
v42 = JS_CallInternal(
a1,
(long long)v51,
v63,
v40,
v41,
1LL,
v62,
a5,
a6,
a7,
v36,
v37,
a10,
a11,
0,
3,
(long long)&v56,
2u);
v44 = v43;
JS_FreeValueRT(*(_QWORD *)(a1 + 24), v56, v57);
v45 = JS_ToBoolFree(a1, v42, v44);
if ( v45 < 0 )
{
v55 = 3LL;
v28 = 0LL;
v27 = v53;
v29 = v39;
PropertyInternal2 = 0LL;
goto LABEL_11;
}
v35 = v45 != 0;
v29 = v39;
PropertyInternal2 = 0LL;
if ( v45 )
{
LABEL_18:
v55 = 3LL;
LABEL_27:
v28 = !v35;
goto LABEL_29;
}
}
v28 = 0LL;
LABEL_29:
v27 = v53;
goto LABEL_11;
}
goto LABEL_10;
}
v22 = *a13;
v23 = a13[1];
v62.m128_i32[0] = 0;
v62.m128_u64[1] = 3LL;
v24 = *(double *)v62.m128_u64;
PropertyInternal2 = 0LL;
v25 = JS_CallInternal(a1, (long long)v60, v61, v22, v23, 0LL, v62, a5, a6, a7, v20, v21, a10, a11, 0, 3, 0LL, 2u);
v27 = (_DWORD *)v25;
if ( (_DWORD)v26 == 6 )
{
v28 = 0LL;
v29 = v26;
}
else
{
v52 = v26;
PropertyInternal2 = (_DWORD *)JS_GetPropertyInternal2(a1, v25, v26, 0x6Bu, v25, v26, 0LL, 0);
v28 = 0LL;
v55 = v46;
if ( (_DWORD)v46 != 6 )
{
v53 = v27;
v35 = 0;
while ( 1 )
{
v47 = JS_IteratorNext(a1, (int)v53, v52, (int)PropertyInternal2, v55, 0, 0LL, &v54);
v49 = v48;
v56 = (_DWORD *)v47;
v57 = v48;
if ( (unsigned int)v48 == 6LL )
break;
if ( !v54 )
{
if ( !((unsigned int)v48 ^ 7LL | v47 & 0x7FFFFFFFFFFFFFFFLL) )
{
v47 = 0LL;
v49 = 0LL;
}
v56 = (_DWORD *)v47;
v57 = v49;
record = map_find_record(a1, v17, (_DWORD *)v47, v49, v24, (__m128d)a5);
JS_FreeValueRT(*(_QWORD *)(a1 + 24), v56, v57);
v35 = record != 0;
if ( !record )
continue;
}
v29 = v52;
goto LABEL_27;
}
v27 = v53;
}
v29 = v52;
}
LABEL_11:
JS_FreeValueRT(*(_QWORD *)(a1 + 24), v58, v59);
JS_FreeValueRT(*(_QWORD *)(a1 + 24), v60, v61);
JS_FreeValueRT(*(_QWORD *)(a1 + 24), v27, v29);
JS_FreeValueRT(*(_QWORD *)(a1 + 24), PropertyInternal2, v55);
return v28;
}
| js_set_isDisjointFrom:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x98
MOV R13,R8
MOV RBP,RDX
MOV R14,RSI
MOV RBX,RDI
XOR R12D,R12D
MOV dword ptr [RSP + 0x58],R12D
MOV ECX,0x3
MOV qword ptr [RSP + 0x60],RCX
MOV dword ptr [RSP + 0x68],R12D
MOV EAX,0x3
MOV qword ptr [RSP + 0x40],RAX
MOV qword ptr [RSP + 0x70],RCX
MOV ECX,0x24
CALL 0x0012b611
TEST RAX,RAX
JZ 0x001542d6
MOV R15,RAX
MOV RSI,qword ptr [R13]
MOV RDX,qword ptr [R13 + 0x8]
LEA RCX,[RSP + 0x90]
MOV RDI,RBX
CALL 0x00155e45
TEST EAX,EAX
JS 0x001542d3
MOV RSI,qword ptr [R13]
MOV RDX,qword ptr [R13 + 0x8]
LEA RCX,[RSP + 0x58]
MOV RDI,RBX
CALL 0x00155f19
TEST EAX,EAX
JS 0x001542d3
MOV RSI,qword ptr [R13]
MOV RDX,qword ptr [R13 + 0x8]
LEA RCX,[RSP + 0x68]
MOV RDI,RBX
CALL 0x00155fb3
TEST EAX,EAX
JS 0x001542d3
MOV EAX,dword ptr [R15 + 0x18]
CMP qword ptr [RSP + 0x90],RAX
JGE 0x00154345
MOV RSI,qword ptr [RSP + 0x68]
MOV RDX,qword ptr [RSP + 0x70]
MOV RCX,qword ptr [R13]
MOV R8,qword ptr [R13 + 0x8]
MOV dword ptr [RSP + 0x78],0x0
MOV qword ptr [RSP + 0x80],0x3
MOVUPS XMM0,xmmword ptr [RSP + 0x78]
MOVUPS xmmword ptr [RSP],XMM0
MOV dword ptr [RSP + 0x18],0x2
MOV qword ptr [RSP + 0x10],0x0
XOR R12D,R12D
MOV RDI,RBX
XOR R9D,R9D
CALL 0x0012c526
MOV RBP,RAX
CMP EDX,0x6
MOV R14D,0x6
JNZ 0x0015446c
XOR R13D,R13D
MOV R15,RDX
JMP 0x001542e7
LAB_001542d3:
XOR R12D,R12D
LAB_001542d6:
XOR EBP,EBP
MOV R15D,0x3
LAB_001542de:
XOR R13D,R13D
MOV R14D,0x6
LAB_001542e7:
MOV RSI,qword ptr [RSP + 0x58]
MOV RDX,qword ptr [RSP + 0x60]
MOV RDI,qword ptr [RBX + 0x18]
CALL 0x00121922
MOV RSI,qword ptr [RSP + 0x68]
MOV RDX,qword ptr [RSP + 0x70]
MOV RDI,qword ptr [RBX + 0x18]
CALL 0x00121922
MOV RDI,qword ptr [RBX + 0x18]
MOV RSI,RBP
MOV RDX,R15
CALL 0x00121922
MOV RDI,qword ptr [RBX + 0x18]
MOV RSI,R12
MOV RDX,qword ptr [RSP + 0x40]
CALL 0x00121922
MOV RAX,R13
MOV RDX,R14
ADD RSP,0x98
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
LAB_00154345:
MOV RDI,RBX
MOV RSI,R14
MOV RDX,RBP
MOV R9D,0x1
CALL 0x00154005
MOV RBP,RAX
MOV R15,RDX
XOR R12D,R12D
CMP R15D,0x6
JZ 0x001542de
MOV qword ptr [RSP + 0x30],RBP
MOV RAX,qword ptr [RSP + 0x58]
MOV qword ptr [RSP + 0x28],RAX
MOV RAX,qword ptr [RSP + 0x60]
MOV qword ptr [RSP + 0x88],RAX
XOR EBP,EBP
LAB_0015438a:
MOV dword ptr [RSP],0x1
MOV RDI,RBX
MOV RSI,qword ptr [RSP + 0x30]
MOV RDX,R15
LEA R9,[RSP + 0x3c]
CALL 0x0015604d
MOV qword ptr [RSP + 0x48],RAX
MOV qword ptr [RSP + 0x50],RDX
CMP EDX,0x6
JZ 0x00154569
CMP dword ptr [RSP + 0x3c],0x0
JNZ 0x0015445d
MOV R12,R15
MOV RCX,qword ptr [R13]
MOV R8,qword ptr [R13 + 0x8]
MOV dword ptr [RSP + 0x78],0x0
MOV qword ptr [RSP + 0x80],0x3
MOVUPS XMM0,xmmword ptr [RSP + 0x78]
MOVUPS xmmword ptr [RSP],XMM0
LEA RAX,[RSP + 0x48]
MOV qword ptr [RSP + 0x10],RAX
MOV dword ptr [RSP + 0x18],0x2
MOV RDI,RBX
MOV RSI,qword ptr [RSP + 0x28]
MOV RDX,qword ptr [RSP + 0x88]
MOV R9D,0x1
CALL 0x0012c526
MOV R14,RAX
MOV R15,RDX
MOV RSI,qword ptr [RSP + 0x48]
MOV RDX,qword ptr [RSP + 0x50]
MOV RDI,qword ptr [RBX + 0x18]
CALL 0x00121922
MOV RDI,RBX
MOV RSI,R14
MOV RDX,R15
CALL 0x00126d69
TEST EAX,EAX
JS 0x0015457c
SETNZ AL
MOVZX EBP,AL
MOV R15,R12
MOV R12D,0x0
JZ 0x0015438a
LAB_0015445d:
MOV EAX,0x3
MOV qword ptr [RSP + 0x40],RAX
JMP 0x00154558
LAB_0015446c:
MOV dword ptr [RSP + 0x8],0x0
MOV qword ptr [RSP],0x0
MOV RDI,RBX
MOV RSI,RBP
MOV ECX,0x6b
MOV R8,RBP
MOV qword ptr [RSP + 0x28],RDX
MOV R9,RDX
CALL 0x00126fff
MOV R12,RAX
XOR R13D,R13D
MOV qword ptr [RSP + 0x40],RDX
CMP EDX,0x6
JZ 0x001545aa
MOV qword ptr [RSP + 0x30],RBP
XOR EBP,EBP
LAB_001544b2:
LEA RAX,[RSP + 0x3c]
MOV qword ptr [RSP + 0x8],RAX
MOV qword ptr [RSP],0x0
MOV RDI,RBX
MOV RSI,qword ptr [RSP + 0x30]
MOV RDX,qword ptr [RSP + 0x28]
MOV RCX,R12
MOV R8,qword ptr [RSP + 0x40]
XOR R9D,R9D
CALL 0x00145b58
MOV RCX,RDX
MOV qword ptr [RSP + 0x48],RAX
MOV qword ptr [RSP + 0x50],RDX
MOV EDX,ECX
CMP RDX,0x6
JZ 0x0015459f
CMP dword ptr [RSP + 0x3c],0x0
JNZ 0x00154553
XOR RDX,0x7
MOV RSI,RAX
BTR RSI,0x3f
OR RSI,RDX
JNZ 0x00154516
XOR EAX,EAX
XOR ECX,ECX
LAB_00154516:
MOV qword ptr [RSP + 0x48],RAX
MOV qword ptr [RSP + 0x50],RCX
MOV RDI,RBX
MOV RSI,R15
MOV RDX,RAX
CALL 0x0014b4e9
MOV R14,RAX
MOV RSI,qword ptr [RSP + 0x48]
MOV RDX,qword ptr [RSP + 0x50]
MOV RDI,qword ptr [RBX + 0x18]
CALL 0x00121922
XOR EBP,EBP
TEST R14,R14
SETNZ BPL
JZ 0x001544b2
LAB_00154553:
MOV R15,qword ptr [RSP + 0x28]
LAB_00154558:
XOR R13D,R13D
TEST EBP,EBP
SETZ R13B
MOV R14D,0x1
JMP 0x00154572
LAB_00154569:
XOR R13D,R13D
MOV R14D,0x6
LAB_00154572:
MOV RBP,qword ptr [RSP + 0x30]
JMP 0x001542e7
LAB_0015457c:
MOV EAX,0x3
MOV qword ptr [RSP + 0x40],RAX
XOR R13D,R13D
MOV R14D,0x6
MOV RBP,qword ptr [RSP + 0x30]
MOV R15,R12
XOR R12D,R12D
JMP 0x001542e7
LAB_0015459f:
MOV R14D,0x6
MOV RBP,qword ptr [RSP + 0x30]
LAB_001545aa:
MOV R15,qword ptr [RSP + 0x28]
JMP 0x001542e7
|
bool js_set_isDisjointFrom
(long param_1,int8 param_2,int8 param_3,int8 param_4,
int8 *param_5)
{
bool bVar1;
int1 auVar2 [16];
int1 auVar3 [16];
int1 auVar4 [16];
int iVar5;
long lVar6;
int8 uVar7;
long lVar8;
int8 uVar9;
ulong uVar10;
int8 uVar11;
bool bVar12;
int1 auVar13 [16];
int1 auVar14 [16];
int1 auVar15 [16];
int local_8c;
ulong local_88;
int1 local_80 [16];
int4 local_70;
int4 uStack_6c;
int8 local_68;
int4 local_60;
int4 uStack_5c;
int8 local_58;
int4 local_50;
uint uStack_4c;
int8 uStack_48;
int8 local_40;
long local_38;
local_70 = 0;
local_68 = 3;
local_60 = 0;
local_88 = 3;
local_58 = 3;
lVar6 = JS_GetOpaque2();
if ((((lVar6 == 0) ||
(iVar5 = js_setlike_get_size(param_1,*param_5,param_5[1],&local_38), iVar5 < 0)) ||
(iVar5 = js_setlike_get_has(param_1,*param_5,param_5[1],&local_70), iVar5 < 0)) ||
(iVar5 = js_setlike_get_keys(param_1,*param_5,param_5[1],&local_60), iVar5 < 0)) {
auVar13 = ZEXT816(3) << 0x40;
LAB_001542de:
auVar15._8_8_ = local_80._8_8_;
auVar15._0_8_ = local_80._0_8_;
auVar3._8_8_ = 0;
auVar3._0_8_ = local_88;
auVar14 = auVar3 << 0x40;
bVar12 = false;
}
else {
if (local_38 < (long)(ulong)*(uint *)(lVar6 + 0x18)) {
local_50 = 0;
uStack_48 = 3;
uVar10 = 0;
auVar13 = JS_CallInternal(param_1,CONCAT44(uStack_5c,local_60),local_58,*param_5,param_5[1],0,
(ulong)uStack_4c << 0x20,3,0,2);
auVar2._8_8_ = 0;
auVar2._0_8_ = local_88;
auVar14 = auVar2 << 0x40;
auVar15._8_8_ = local_80._8_8_;
auVar15._0_8_ = local_80._0_8_;
uVar9 = auVar13._8_8_;
uVar7 = auVar13._0_8_;
if (auVar13._8_4_ == 6) {
bVar12 = false;
goto LAB_001542e7;
}
auVar14 = JS_GetPropertyInternal2
(param_1,uVar7,uVar9,0x6b,uVar7,uVar9,0,uVar10 & 0xffffffff00000000);
auVar15._8_8_ = local_80._8_8_;
auVar15._0_8_ = local_80._0_8_;
local_88 = auVar14._8_8_;
uVar11 = auVar14._0_8_;
bVar12 = false;
if (auVar14._8_4_ == 6) goto LAB_001542e7;
bVar1 = false;
local_80 = auVar15;
do {
auVar15 = JS_IteratorNext(param_1,uVar7,uVar9,uVar11,local_88,0,0,&local_8c);
auVar14._8_8_ = local_88;
auVar14._0_8_ = uVar11;
uVar10 = auVar15._8_8_ & 0xffffffff;
if (uVar10 == 6) goto LAB_001542e7;
if (local_8c != 0) break;
if ((auVar15 & (int1 [16])0x7fffffffffffffff) == (int1 [16])0x0 && uVar10 == 7
) {
auVar15 = ZEXT816(0);
}
local_80 = auVar15;
lVar8 = map_find_record(param_1,lVar6,auVar15._0_8_);
JS_FreeValueRT(*(int8 *)(param_1 + 0x18),local_80._0_8_,local_80._8_8_);
bVar1 = lVar8 != 0;
auVar15 = local_80;
} while (lVar8 == 0);
}
else {
auVar13 = js_create_map_iterator(param_1,param_2,param_3);
if (auVar13._8_4_ == 6) goto LAB_001542de;
uVar7 = CONCAT44(uStack_6c,local_70);
local_40 = local_68;
bVar1 = false;
do {
auVar15 = js_map_iterator_next(param_1,auVar13._0_8_,auVar13._8_8_);
auVar4._8_8_ = 0;
auVar4._0_8_ = local_88;
auVar14 = auVar4 << 0x40;
if (auVar15._8_4_ == 6) {
bVar12 = false;
goto LAB_001542e7;
}
local_80 = auVar15;
if (local_8c != 0) break;
local_50 = 0;
uStack_48 = 3;
auVar15 = JS_CallInternal(param_1,uVar7,local_40,*param_5,param_5[1],1,
(ulong)uStack_4c << 0x20,3,local_80,2);
JS_FreeValueRT(*(int8 *)(param_1 + 0x18),local_80._0_8_,local_80._8_8_);
iVar5 = JS_ToBoolFree(param_1,auVar15._0_8_,auVar15._8_8_);
if (iVar5 < 0) {
bVar12 = false;
auVar14 = ZEXT816(3) << 0x40;
auVar15 = local_80;
goto LAB_001542e7;
}
bVar1 = iVar5 != 0;
} while (iVar5 == 0);
uVar11 = 0;
local_88 = 3;
auVar15 = local_80;
}
auVar14._8_8_ = local_88;
auVar14._0_8_ = uVar11;
bVar12 = !bVar1;
}
LAB_001542e7:
local_88 = auVar14._8_8_;
local_80 = auVar15;
JS_FreeValueRT(*(int8 *)(param_1 + 0x18),CONCAT44(uStack_6c,local_70),local_68);
JS_FreeValueRT(*(int8 *)(param_1 + 0x18),CONCAT44(uStack_5c,local_60),local_58);
JS_FreeValueRT(*(int8 *)(param_1 + 0x18),auVar13._0_8_,auVar13._8_8_);
JS_FreeValueRT(*(int8 *)(param_1 + 0x18),auVar14._0_8_,local_88);
return bVar12;
}
| |
45,272 | JS_GetPropertyInternalWithIC | bluesky950520[P]quickjs/quickjs.c | static JSValue JS_GetPropertyInternalWithIC(JSContext *ctx, JSValue obj,
JSAtom prop, JSValue this_obj,
JSInlineCacheUpdate *icu,
BOOL throw_ref_error)
{
uint32_t tag, offset;
JSObject *p;
tag = JS_VALUE_GET_TAG(obj);
if (unlikely(tag != JS_TAG_OBJECT))
goto slow_path;
p = JS_VALUE_GET_OBJ(obj);
offset = get_ic_prop_offset(icu, p->shape);
if (likely(offset != INLINE_CACHE_MISS))
return js_dup(p->prop[offset].u.value);
slow_path:
return JS_GetPropertyInternal2(ctx, obj, prop, this_obj, icu, throw_ref_error);
} | O1 | c | JS_GetPropertyInternalWithIC:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %r9, 0x8(%rsp)
movq %r8, %r14
movl %ecx, %ebp
movq %rdx, %r12
movq %rsi, %r13
movq %rdi, %r15
movq 0x60(%rsp), %rbx
movq %rsi, 0x10(%rsp)
cmpl $-0x1, %r12d
jne 0x3fc54
leaq 0x10(%rsp), %rdi
leaq 0x18(%rsp), %rdx
movq %rbx, %rsi
callq 0x1332d
testb $0x1, %al
je 0x3fc75
movq %r15, %rdi
movq %r13, %rsi
movq %r12, %rdx
movl %ebp, %ecx
movq %r14, %r8
movq 0x8(%rsp), %r9
pushq $0x0
pushq %rbx
callq 0x22fa3
addq $0x38, %rsp
jmp 0x3fc83
movq 0x18(%rsp), %rax
movq 0x20(%rsp), %rdx
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
| JS_GetPropertyInternalWithIC:
push rbp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 28h
mov [rsp+58h+var_50], r9
mov r14, r8
mov ebp, ecx
mov r12, rdx
mov r13, rsi
mov r15, rdi
mov rbx, [rsp+58h+arg_0]
mov [rsp+58h+var_48], rsi
cmp r12d, 0FFFFFFFFh
jnz short loc_3FC54
lea rdi, [rsp+58h+var_48]
lea rdx, [rsp+58h+var_40]
mov rsi, rbx
call JS_GetPropertyInternalWithIC_cold_1
test al, 1
jz short loc_3FC75
loc_3FC54:
mov rdi, r15
mov rsi, r13
mov rdx, r12
mov ecx, ebp
mov r8, r14
mov r9, [rsp+58h+var_50]
push 0
push rbx
call JS_GetPropertyInternal2
add rsp, 38h
jmp short loc_3FC83
loc_3FC75:
mov rax, [rsp+58h+var_40]
mov rdx, [rsp+58h+var_38]
add rsp, 28h
loc_3FC83:
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
| unsigned long long JS_GetPropertyInternalWithIC(
long long a1,
long long a2,
long long a3,
unsigned int a4,
long long a5,
long long a6,
unsigned int *a7)
{
long long v12; // [rsp+10h] [rbp-48h] BYREF
long long v13; // [rsp+18h] [rbp-40h] BYREF
v12 = a2;
if ( (_DWORD)a3 == -1 && (JS_GetPropertyInternalWithIC_cold_1(&v12, a7, &v13) & 1) == 0 )
return v13;
else
return JS_GetPropertyInternal2(a1, a2, a3, a4, a5, a6, (long long)a7, 0);
}
| JS_GetPropertyInternalWithIC:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x28
MOV qword ptr [RSP + 0x8],R9
MOV R14,R8
MOV EBP,ECX
MOV R12,RDX
MOV R13,RSI
MOV R15,RDI
MOV RBX,qword ptr [RSP + 0x60]
MOV qword ptr [RSP + 0x10],RSI
CMP R12D,-0x1
JNZ 0x0013fc54
LEA RDI,[RSP + 0x10]
LEA RDX,[RSP + 0x18]
MOV RSI,RBX
CALL 0x0011332d
TEST AL,0x1
JZ 0x0013fc75
LAB_0013fc54:
MOV RDI,R15
MOV RSI,R13
MOV RDX,R12
MOV ECX,EBP
MOV R8,R14
MOV R9,qword ptr [RSP + 0x8]
PUSH 0x0
PUSH RBX
CALL 0x00122fa3
ADD RSP,0x38
JMP 0x0013fc83
LAB_0013fc75:
MOV RAX,qword ptr [RSP + 0x18]
MOV RDX,qword ptr [RSP + 0x20]
ADD RSP,0x28
LAB_0013fc83:
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
|
int8
JS_GetPropertyInternalWithIC
(int8 param_1,int8 param_2,int8 param_3,int4 param_4,
int8 param_5,int8 param_6,int8 param_7)
{
ulong uVar1;
int8 local_48;
int8 local_40 [2];
local_48 = param_2;
if (((int)param_3 != -1) ||
(uVar1 = JS_GetPropertyInternalWithIC_cold_1(&local_48,param_7,local_40), (uVar1 & 1) != 0)) {
local_40[0] = JS_GetPropertyInternal2(param_1,param_2,param_3,param_4,param_5,param_6,param_7,0)
;
}
return local_40[0];
}
| |
45,273 | JS_GetPropertyInternalWithIC | bluesky950520[P]quickjs/quickjs.c | static JSValue JS_GetPropertyInternalWithIC(JSContext *ctx, JSValue obj,
JSAtom prop, JSValue this_obj,
JSInlineCacheUpdate *icu,
BOOL throw_ref_error)
{
uint32_t tag, offset;
JSObject *p;
tag = JS_VALUE_GET_TAG(obj);
if (unlikely(tag != JS_TAG_OBJECT))
goto slow_path;
p = JS_VALUE_GET_OBJ(obj);
offset = get_ic_prop_offset(icu, p->shape);
if (likely(offset != INLINE_CACHE_MISS))
return js_dup(p->prop[offset].u.value);
slow_path:
return JS_GetPropertyInternal2(ctx, obj, prop, this_obj, icu, throw_ref_error);
} | O2 | c | JS_GetPropertyInternalWithIC:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %r9, (%rsp)
movq %r8, %r14
movl %ecx, %ebp
movq %rdx, %r12
movq %rsi, %r13
movq %rdi, %rbx
movq 0x40(%rsp), %r15
cmpl $-0x1, %r12d
jne 0x37ed5
movq 0x18(%r13), %rsi
movq %r15, %rdi
callq 0x39b04
cmpl $-0x1, %eax
je 0x37ed5
movq 0x20(%r13), %rcx
movl %eax, %edx
shlq $0x4, %rdx
movq (%rcx,%rdx), %rax
movq 0x8(%rcx,%rdx), %rdx
cmpl $-0x9, %edx
jb 0x37ec6
incl (%rax)
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rbx, %rdi
movq %r13, %rsi
movq %r12, %rdx
movl %ebp, %ecx
movq %r14, %r8
movq (%rsp), %r9
pushq $0x0
pushq %r15
callq 0x1cffe
addq $0x18, %rsp
jmp 0x37eca
| JS_GetPropertyInternalWithIC:
push rbp
push r15
push r14
push r13
push r12
push rbx
push rax
mov [rsp+38h+var_38], r9
mov r14, r8
mov ebp, ecx
mov r12, rdx
mov r13, rsi
mov rbx, rdi
mov r15, [rsp+38h+arg_0]
cmp r12d, 0FFFFFFFFh
jnz short loc_37ED5
mov rsi, [r13+18h]
mov rdi, r15
call get_ic_prop_offset
cmp eax, 0FFFFFFFFh
jz short loc_37ED5
mov rcx, [r13+20h]
mov edx, eax
shl rdx, 4
mov rax, [rcx+rdx]
mov rdx, [rcx+rdx+8]
cmp edx, 0FFFFFFF7h
jb short loc_37EC6
inc dword ptr [rax]
loc_37EC6:
add rsp, 8
loc_37ECA:
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
loc_37ED5:
mov rdi, rbx
mov rsi, r13
mov rdx, r12
mov ecx, ebp
mov r8, r14
mov r9, [rsp+38h+var_38]
push 0
push r15
call JS_GetPropertyInternal2
add rsp, 18h
jmp short loc_37ECA
| _DWORD * JS_GetPropertyInternalWithIC(
long long a1,
long long a2,
long long a3,
int a4,
long long a5,
long long a6,
long long a7)
{
unsigned int ic_prop_offset; // eax
long long v11; // rcx
long long v12; // rdx
_DWORD *result; // rax
if ( (_DWORD)a3 != -1 )
return (_DWORD *)JS_GetPropertyInternal2(a1, a2, a3, a4, a5, a6, a7, 0);
ic_prop_offset = get_ic_prop_offset(a7, *(_QWORD *)(a2 + 24));
if ( ic_prop_offset == -1 )
return (_DWORD *)JS_GetPropertyInternal2(a1, a2, a3, a4, a5, a6, a7, 0);
v11 = *(_QWORD *)(a2 + 32);
v12 = 16LL * ic_prop_offset;
result = *(_DWORD **)(v11 + v12);
if ( (unsigned int)*(_QWORD *)(v11 + v12 + 8) >= 0xFFFFFFF7 )
++*result;
return result;
}
| JS_GetPropertyInternalWithIC:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
PUSH RAX
MOV qword ptr [RSP],R9
MOV R14,R8
MOV EBP,ECX
MOV R12,RDX
MOV R13,RSI
MOV RBX,RDI
MOV R15,qword ptr [RSP + 0x40]
CMP R12D,-0x1
JNZ 0x00137ed5
MOV RSI,qword ptr [R13 + 0x18]
MOV RDI,R15
CALL 0x00139b04
CMP EAX,-0x1
JZ 0x00137ed5
MOV RCX,qword ptr [R13 + 0x20]
MOV EDX,EAX
SHL RDX,0x4
MOV RAX,qword ptr [RCX + RDX*0x1]
MOV RDX,qword ptr [RCX + RDX*0x1 + 0x8]
CMP EDX,-0x9
JC 0x00137ec6
INC dword ptr [RAX]
LAB_00137ec6:
ADD RSP,0x8
LAB_00137eca:
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
LAB_00137ed5:
MOV RDI,RBX
MOV RSI,R13
MOV RDX,R12
MOV ECX,EBP
MOV R8,R14
MOV R9,qword ptr [RSP]
PUSH 0x0
PUSH R15
CALL 0x0011cffe
ADD RSP,0x18
JMP 0x00137eca
|
void JS_GetPropertyInternalWithIC
(int8 param_1,long param_2,int8 param_3,int4 param_4,
int8 param_5,int8 param_6,int8 param_7)
{
int *piVar1;
uint uVar2;
if (((int)param_3 == -1) &&
(uVar2 = get_ic_prop_offset(param_7,*(int8 *)(param_2 + 0x18)), uVar2 != 0xffffffff)) {
piVar1 = *(int **)(*(long *)(param_2 + 0x20) + (ulong)uVar2 * 0x10);
if (0xfffffff6 < (uint)*(int8 *)(*(long *)(param_2 + 0x20) + 8 + (ulong)uVar2 * 0x10)) {
*piVar1 = *piVar1 + 1;
}
}
else {
JS_GetPropertyInternal2(param_1,param_2,param_3,param_4,param_5,param_6,param_7,0);
}
return;
}
| |
45,274 | trnman_init_tmp_trn_for_logging_trid | eloqsql/storage/maria/trnman.c | void trnman_init_tmp_trn_for_logging_trid(TRN *trn)
{
*trn= dummy_transaction_object;
/* Avoid logging short_id */
trn->short_id= 1;
/* Trid gets logged in translog_write_record */
trn->first_undo_lsn= 0;
/* Get next free trid */
trn->trid= trnman_get_min_safe_trid();
} | O0 | c | trnman_init_tmp_trn_for_logging_trid:
pushq %rbp
movq %rsp, %rbp
subq $0x10, %rsp
movq %rdi, -0x8(%rbp)
movq -0x8(%rbp), %rdi
leaq 0x3feb39(%rip), %rsi # 0x479880
movl $0xb0, %edx
callq 0x2a090
movq -0x8(%rbp), %rax
movw $0x1, 0xac(%rax)
movq -0x8(%rbp), %rax
movq $0x0, 0xa0(%rax)
callq 0x7b710
movq %rax, %rcx
movq -0x8(%rbp), %rax
movq %rcx, 0x78(%rax)
addq $0x10, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
| trnman_init_tmp_trn_for_logging_trid:
push rbp
mov rbp, rsp
sub rsp, 10h
mov [rbp+var_8], rdi
mov rdi, [rbp+var_8]
lea rsi, dummy_transaction_object
mov edx, 0B0h
call _memcpy
mov rax, [rbp+var_8]
mov word ptr [rax+0ACh], 1
mov rax, [rbp+var_8]
mov qword ptr [rax+0A0h], 0
call trnman_get_min_safe_trid
mov rcx, rax
mov rax, [rbp+var_8]
mov [rax+78h], rcx
add rsp, 10h
pop rbp
retn
| long long trnman_init_tmp_trn_for_logging_trid(long long a1)
{
long long min_safe_trid; // rcx
long long result; // rax
memcpy(a1, dummy_transaction_object, 176LL);
*(_WORD *)(a1 + 172) = 1;
*(_QWORD *)(a1 + 160) = 0LL;
min_safe_trid = trnman_get_min_safe_trid();
result = a1;
*(_QWORD *)(a1 + 120) = min_safe_trid;
return result;
}
| trnman_init_tmp_trn_for_logging_trid:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x10
MOV qword ptr [RBP + -0x8],RDI
MOV RDI,qword ptr [RBP + -0x8]
LEA RSI,[0x579880]
MOV EDX,0xb0
CALL 0x0012a090
MOV RAX,qword ptr [RBP + -0x8]
MOV word ptr [RAX + 0xac],0x1
MOV RAX,qword ptr [RBP + -0x8]
MOV qword ptr [RAX + 0xa0],0x0
CALL 0x0017b710
MOV RCX,RAX
MOV RAX,qword ptr [RBP + -0x8]
MOV qword ptr [RAX + 0x78],RCX
ADD RSP,0x10
POP RBP
RET
|
void trnman_init_tmp_trn_for_logging_trid(void *param_1)
{
int8 uVar1;
memcpy(param_1,dummy_transaction_object,0xb0);
*(int2 *)((long)param_1 + 0xac) = 1;
*(int8 *)((long)param_1 + 0xa0) = 0;
uVar1 = trnman_get_min_safe_trid();
*(int8 *)((long)param_1 + 0x78) = uVar1;
return;
}
| |
45,275 | bool nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>::contains<char const (&) [7], 0>(char const (&) [7]) const | monkey531[P]llama/common/json.hpp | constexpr bool is_object() const noexcept
{
return m_data.m_type == value_t::object;
} | O3 | cpp | bool nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>::contains<char const (&) [7], 0>(char const (&) [7]) const:
cmpb $0x1, (%rdi)
jne 0xa4acf
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %r14
movq 0x8(%rdi), %r12
movq (%r12), %rbx
cmpq 0x8(%r12), %rbx
je 0xa4ad2
movq %rsi, %r15
movq %rbx, %rdi
movq %r15, %rsi
callq 0x181a0
testl %eax, %eax
je 0xa4ac2
addq $0x30, %rbx
cmpq 0x8(%r12), %rbx
jne 0xa4aa8
movq %rbx, %rax
movq 0x8(%r14), %rcx
movq 0x8(%rcx), %rbx
jmp 0xa4ad5
xorl %eax, %eax
retq
movq %rbx, %rax
cmpq %rbx, %rax
setne %al
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
| _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE8containsIRA7_KcTnNSt9enable_ifIXsr6detail32is_usable_as_basic_json_key_typeISD_T_EE5valueEiE4typeELi0EEEbOSJ_:
cmp byte ptr [rdi], 1
jnz short loc_A4ACF
push r15
push r14
push r12
push rbx
push rax
mov r14, rdi
mov r12, [rdi+8]
mov rbx, [r12]
cmp rbx, [r12+8]
jz short loc_A4AD2
mov r15, rsi
loc_A4AA8:
mov rdi, rbx
mov rsi, r15
call __ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE7compareEPKc; std::string::compare(char const*)
test eax, eax
jz short loc_A4AC2
add rbx, 30h ; '0'
cmp rbx, [r12+8]
jnz short loc_A4AA8
loc_A4AC2:
mov rax, rbx
mov rcx, [r14+8]
mov rbx, [rcx+8]
jmp short loc_A4AD5
loc_A4ACF:
xor eax, eax
retn
loc_A4AD2:
mov rax, rbx
loc_A4AD5:
cmp rax, rbx
setnz al
add rsp, 8
pop rbx
pop r12
pop r14
pop r15
retn
| bool ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE8containsIRA7_KcTnNSt9enable_ifIXsr6detail32is_usable_as_basic_json_key_typeISD_T_EE5valueEiE4typeELi0EEEbOSJ_(
long long a1,
long long a2)
{
long long *v2; // r12
long long v3; // rbx
long long v4; // rax
if ( *(_BYTE *)a1 != 1 )
return 0;
v2 = *(long long **)(a1 + 8);
v3 = *v2;
if ( *v2 == v2[1] )
{
v4 = *v2;
}
else
{
do
{
if ( !(unsigned int)std::string::compare(v3, a2) )
break;
v3 += 48LL;
}
while ( v3 != v2[1] );
v4 = v3;
v3 = *(_QWORD *)(*(_QWORD *)(a1 + 8) + 8LL);
}
return v4 != v3;
}
| _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE8containsIRA7_KcTnNSt9enable_ifIXsr6detail32is_usable_as_basic_json_key_typeISD_T_EE5valueEiE4typeELi0EEEbOSJ_:
CMP byte ptr [RDI],0x1
JNZ 0x001a4acf
PUSH R15
PUSH R14
PUSH R12
PUSH RBX
PUSH RAX
MOV R14,RDI
MOV R12,qword ptr [RDI + 0x8]
MOV RBX,qword ptr [R12]
CMP RBX,qword ptr [R12 + 0x8]
JZ 0x001a4ad2
MOV R15,RSI
LAB_001a4aa8:
MOV RDI,RBX
MOV RSI,R15
CALL 0x001181a0
TEST EAX,EAX
JZ 0x001a4ac2
ADD RBX,0x30
CMP RBX,qword ptr [R12 + 0x8]
JNZ 0x001a4aa8
LAB_001a4ac2:
MOV RAX,RBX
MOV RCX,qword ptr [R14 + 0x8]
MOV RBX,qword ptr [RCX + 0x8]
JMP 0x001a4ad5
LAB_001a4acf:
XOR EAX,EAX
RET
LAB_001a4ad2:
MOV RAX,RBX
LAB_001a4ad5:
CMP RAX,RBX
SETNZ AL
ADD RSP,0x8
POP RBX
POP R12
POP R14
POP R15
RET
|
int8
_ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE8containsIRA7_KcTnNSt9enable_ifIXsr6detail32is_usable_as_basic_json_key_typeISD_T_EE5valueEiE4typeELi0EEEbOSJ_
(char *param_1)
{
long *plVar1;
int iVar2;
char *pcVar3;
char *pcVar4;
if (*param_1 != '\x01') {
return 0;
}
plVar1 = *(long **)(param_1 + 8);
pcVar3 = (char *)*plVar1;
pcVar4 = pcVar3;
if (pcVar3 != (char *)plVar1[1]) {
do {
iVar2 = std::__cxx11::string::compare(pcVar3);
if (iVar2 == 0) break;
pcVar3 = pcVar3 + 0x30;
} while (pcVar3 != (char *)plVar1[1]);
pcVar4 = *(char **)(*(long *)(param_1 + 8) + 8);
}
return CONCAT71((int7)((ulong)pcVar3 >> 8),pcVar3 != pcVar4);
}
| |
45,276 | QUICK_INDEX_INTERSECT_SELECT::add_keys_and_lengths(String*, String*) | eloqsql/sql/opt_range.cc | void QUICK_INDEX_INTERSECT_SELECT::add_keys_and_lengths(String *key_names,
String *used_lengths)
{
QUICK_RANGE_SELECT *quick;
bool first= TRUE;
List_iterator_fast<QUICK_RANGE_SELECT> it(quick_selects);
if (pk_quick_select)
pk_quick_select->add_key_and_length(key_names, used_lengths, &first);
while ((quick= it++))
{
quick->add_key_and_length(key_names, used_lengths, &first);
}
} | O0 | cpp | QUICK_INDEX_INTERSECT_SELECT::add_keys_and_lengths(String*, String*):
pushq %rbp
movq %rsp, %rbp
subq $0x50, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movq -0x8(%rbp), %rsi
movq %rsi, -0x50(%rbp)
movb $0x1, -0x21(%rbp)
addq $0x48, %rsi
leaq -0x48(%rbp), %rdi
callq 0xd9b270
movq -0x50(%rbp), %rax
cmpq $0x0, 0x60(%rax)
je 0xd91511
movq -0x50(%rbp), %rax
movq 0x60(%rax), %rdi
movq -0x10(%rbp), %rsi
movq -0x18(%rbp), %rdx
leaq -0x21(%rbp), %rcx
callq 0xd91300
jmp 0xd91513
leaq -0x48(%rbp), %rdi
xorl %esi, %esi
callq 0xd9b2c0
movq %rax, -0x20(%rbp)
cmpq $0x0, %rax
je 0xd9153f
movq -0x20(%rbp), %rdi
movq -0x10(%rbp), %rsi
movq -0x18(%rbp), %rdx
leaq -0x21(%rbp), %rcx
callq 0xd91300
jmp 0xd91513
addq $0x50, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
| _ZN28QUICK_INDEX_INTERSECT_SELECT20add_keys_and_lengthsEP6StringS1_:
push rbp
mov rbp, rsp
sub rsp, 50h
mov [rbp+var_8], rdi
mov [rbp+var_10], rsi
mov [rbp+var_18], rdx
mov rsi, [rbp+var_8]
mov [rbp+var_50], rsi
mov [rbp+var_21], 1
add rsi, 48h ; 'H'
lea rdi, [rbp+var_48]
call _ZN18List_iterator_fastI18QUICK_RANGE_SELECTEC2ER4ListIS0_E; List_iterator_fast<QUICK_RANGE_SELECT>::List_iterator_fast(List<QUICK_RANGE_SELECT> &)
mov rax, [rbp+var_50]
cmp qword ptr [rax+60h], 0
jz short loc_D91511
mov rax, [rbp+var_50]
mov rdi, [rax+60h]; this
mov rsi, [rbp+var_10]; String *
mov rdx, [rbp+var_18]; String *
lea rcx, [rbp+var_21]; bool *
call _ZN14QUICK_SELECT_I18add_key_and_lengthEP6StringS1_Pb; QUICK_SELECT_I::add_key_and_length(String *,String *,bool *)
loc_D91511:
jmp short $+2
loc_D91513:
lea rdi, [rbp+var_48]
xor esi, esi
call _ZN18List_iterator_fastI18QUICK_RANGE_SELECTEppEi; List_iterator_fast<QUICK_RANGE_SELECT>::operator++(int)
mov [rbp+var_20], rax
cmp rax, 0
jz short loc_D9153F
mov rdi, [rbp+var_20]; this
mov rsi, [rbp+var_10]; String *
mov rdx, [rbp+var_18]; String *
lea rcx, [rbp+var_21]; bool *
call _ZN14QUICK_SELECT_I18add_key_and_lengthEP6StringS1_Pb; QUICK_SELECT_I::add_key_and_length(String *,String *,bool *)
jmp short loc_D91513
loc_D9153F:
add rsp, 50h
pop rbp
retn
| QUICK_SELECT_I * QUICK_INDEX_INTERSECT_SELECT::add_keys_and_lengths(
QUICK_SELECT_I **this,
String *a2,
String *a3)
{
QUICK_SELECT_I *result; // rax
bool v4[39]; // [rsp+8h] [rbp-48h] BYREF
bool v5; // [rsp+2Fh] [rbp-21h] BYREF
QUICK_SELECT_I *v6; // [rsp+30h] [rbp-20h]
String *v7; // [rsp+38h] [rbp-18h]
String *v8; // [rsp+40h] [rbp-10h]
QUICK_SELECT_I **v9; // [rsp+48h] [rbp-8h]
v9 = this;
v8 = a2;
v7 = a3;
v5 = 1;
List_iterator_fast<QUICK_RANGE_SELECT>::List_iterator_fast(v4, this + 9);
if ( this[12] )
QUICK_SELECT_I::add_key_and_length(this[12], v8, v7, &v5);
while ( 1 )
{
result = (QUICK_SELECT_I *)List_iterator_fast<QUICK_RANGE_SELECT>::operator++(v4, 0LL);
v6 = result;
if ( !result )
break;
QUICK_SELECT_I::add_key_and_length(v6, v8, v7, &v5);
}
return result;
}
| lex_string_eq:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x20
MOV qword ptr [RBP + -0x10],RDI
MOV qword ptr [RBP + -0x18],RSI
MOV qword ptr [RBP + -0x20],RDX
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX + 0x8]
CMP RAX,qword ptr [RBP + -0x20]
JZ 0x00d914e8
MOV byte ptr [RBP + -0x1],0x0
JMP 0x00d91503
LAB_00d914e8:
MOV RAX,qword ptr [RBP + -0x10]
MOV RDI,qword ptr [RAX]
MOV RSI,qword ptr [RBP + -0x18]
CALL 0x00859f40
CMP EAX,0x0
SETZ AL
AND AL,0x1
MOV byte ptr [RBP + -0x1],AL
LAB_00d91503:
MOV AL,byte ptr [RBP + -0x1]
AND AL,0x1
ADD RSP,0x20
POP RBP
RET
|
/* lex_string_eq(st_mysql_const_lex_string const*, char const*, unsigned long) */
int8 lex_string_eq(st_mysql_const_lex_string *param_1,char *param_2,ulong param_3)
{
int iVar1;
int4 extraout_var;
ulong uVar2;
bool local_9;
uVar2 = *(ulong *)(param_1 + 8);
if (uVar2 == param_3) {
iVar1 = strcasecmp(*(char **)param_1,param_2);
local_9 = iVar1 == 0;
uVar2 = CONCAT71((int7)(CONCAT44(extraout_var,iVar1) >> 8),local_9);
}
else {
local_9 = false;
}
return CONCAT71((int7)(uVar2 >> 8),local_9);
}
| |
45,277 | QUICK_INDEX_INTERSECT_SELECT::add_keys_and_lengths(String*, String*) | eloqsql/sql/opt_range.cc | void QUICK_INDEX_INTERSECT_SELECT::add_keys_and_lengths(String *key_names,
String *used_lengths)
{
QUICK_RANGE_SELECT *quick;
bool first= TRUE;
List_iterator_fast<QUICK_RANGE_SELECT> it(quick_selects);
if (pk_quick_select)
pk_quick_select->add_key_and_length(key_names, used_lengths, &first);
while ((quick= it++))
{
quick->add_key_and_length(key_names, used_lengths, &first);
}
} | O3 | cpp | QUICK_INDEX_INTERSECT_SELECT::add_keys_and_lengths(String*, String*):
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x10, %rsp
movq %rdx, %rbx
movq %rsi, %r14
movq %rdi, %r15
movb $0x1, -0x21(%rbp)
movq 0x60(%rdi), %rdi
testq %rdi, %rdi
je 0x9edfc4
leaq -0x21(%rbp), %rcx
movq %r14, %rsi
movq %rbx, %rdx
callq 0x9ede52
movq 0x48(%r15), %r12
movq 0x8(%r12), %rdi
testq %rdi, %rdi
je 0x9edff2
leaq -0x21(%rbp), %r15
movq %r14, %rsi
movq %rbx, %rdx
movq %r15, %rcx
callq 0x9ede52
movq (%r12), %r12
movq 0x8(%r12), %rdi
testq %rdi, %rdi
jne 0x9edfd6
addq $0x10, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
nop
| _ZN28QUICK_INDEX_INTERSECT_SELECT20add_keys_and_lengthsEP6StringS1_:
push rbp
mov rbp, rsp
push r15
push r14
push r12
push rbx
sub rsp, 10h
mov rbx, rdx
mov r14, rsi
mov r15, rdi
mov [rbp+var_21], 1
mov rdi, [rdi+60h]; this
test rdi, rdi
jz short loc_9EDFC4
lea rcx, [rbp+var_21]; bool *
mov rsi, r14; String *
mov rdx, rbx; String *
call _ZN14QUICK_SELECT_I18add_key_and_lengthEP6StringS1_Pb; QUICK_SELECT_I::add_key_and_length(String *,String *,bool *)
loc_9EDFC4:
mov r12, [r15+48h]
mov rdi, [r12+8]; this
test rdi, rdi
jz short loc_9EDFF2
lea r15, [rbp+var_21]
loc_9EDFD6:
mov rsi, r14; String *
mov rdx, rbx; String *
mov rcx, r15; bool *
call _ZN14QUICK_SELECT_I18add_key_and_lengthEP6StringS1_Pb; QUICK_SELECT_I::add_key_and_length(String *,String *,bool *)
mov r12, [r12]
mov rdi, [r12+8]
test rdi, rdi
jnz short loc_9EDFD6
loc_9EDFF2:
add rsp, 10h
pop rbx
pop r12
pop r14
pop r15
pop rbp
retn
| unsigned long long QUICK_INDEX_INTERSECT_SELECT::add_keys_and_lengths(
QUICK_INDEX_INTERSECT_SELECT *this,
String *a2,
String *a3)
{
QUICK_SELECT_I *v5; // rdi
unsigned long long result; // rax
_QWORD *v7; // r12
QUICK_SELECT_I *i; // rdi
bool v9[33]; // [rsp+Fh] [rbp-21h] BYREF
v9[0] = 1;
v5 = (QUICK_SELECT_I *)*((_QWORD *)this + 12);
if ( v5 )
result = QUICK_SELECT_I::add_key_and_length(v5, a2, a3, v9);
v7 = (_QWORD *)*((_QWORD *)this + 9);
for ( i = (QUICK_SELECT_I *)v7[1]; i; i = (QUICK_SELECT_I *)v7[1] )
{
result = QUICK_SELECT_I::add_key_and_length(i, a2, a3, v9);
v7 = (_QWORD *)*v7;
}
return result;
}
| |||
45,278 | ma_write_keypage | eloqsql/storage/maria/ma_page.c | my_bool _ma_write_keypage(MARIA_PAGE *page, enum pagecache_page_lock lock,
int level)
{
MARIA_SHARE *share= page->info->s;
uint block_size= share->block_size;
uchar *buff= page->buff;
my_bool res;
MARIA_PINNED_PAGE page_link;
DBUG_ENTER("_ma_write_keypage");
/*
The following ensures that for transactional tables we have logged
all changes that changes the page size (as the logging code sets
page->org_size)
*/
DBUG_ASSERT(!share->now_transactional || page->size == page->org_size);
#ifdef EXTRA_DEBUG /* Safety check */
{
uint page_length, nod_flag;
page_length= _ma_get_page_used(share, buff);
nod_flag= _ma_test_if_nod(share, buff);
DBUG_ASSERT(page->size == page_length);
DBUG_ASSERT(page->size <= share->max_index_block_size);
DBUG_ASSERT(page->flag == _ma_get_keypage_flag(share, buff));
if (page->pos < share->base.keystart ||
page->pos+block_size > share->state.state.key_file_length ||
(page->pos & (maria_block_size-1)))
{
DBUG_PRINT("error",("Trying to write inside key status region: "
"key_start: %lu length: %lu page_pos: %lu",
(long) share->base.keystart,
(long) share->state.state.key_file_length,
(long) page->pos));
my_errno=EINVAL;
DBUG_ASSERT(0);
DBUG_RETURN(1);
}
DBUG_PRINT("page",("write page at: %lu",(ulong) (page->pos / block_size)));
DBUG_DUMP("buff", buff, page_length);
DBUG_ASSERT(page_length >= share->keypage_header + nod_flag +
page->keyinfo->minlength || maria_in_recovery);
}
#endif
/* Verify that keynr is correct */
DBUG_ASSERT(_ma_get_keynr(share, buff) == page->keyinfo->key_nr);
#if defined(EXTRA_DEBUG) && defined(HAVE_valgrind) && defined(WHEN_DEBUGGING)
MEM_CHECK_DEFINED(buff, block_size);
#endif
page_cleanup(share, page);
{
PAGECACHE_BLOCK_LINK **link;
enum pagecache_page_pin pin;
if (lock == PAGECACHE_LOCK_LEFT_WRITELOCKED)
{
pin= PAGECACHE_PIN_LEFT_PINNED;
link= &page_link.link;
}
else if (lock == PAGECACHE_LOCK_WRITE_UNLOCK)
{
pin= PAGECACHE_UNPIN;
/*
We unlock this page so link should be 0 to prevent it usage
even accidentally
*/
link= NULL;
}
else
{
pin= PAGECACHE_PIN;
link= &page_link.link;
}
res= pagecache_write(share->pagecache,
&share->kfile,
(pgcache_page_no_t) (page->pos / block_size),
level, buff, share->page_type,
lock, pin, PAGECACHE_WRITE_DELAY, link,
LSN_IMPOSSIBLE);
}
if (lock == PAGECACHE_LOCK_WRITE)
{
/* It was not locked before, we have to unlock it when we unpin pages */
page_link.unlock= PAGECACHE_LOCK_WRITE_UNLOCK;
page_link.changed= 1;
push_dynamic(&page->info->pinned_pages, (void*) &page_link);
}
DBUG_RETURN(res);
} | O3 | c | ma_write_keypage:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x20, %rsp
movl %edx, %ecx
movl %esi, %r14d
movq %rdi, %rbx
movq (%rdi), %rax
movq 0x10(%rdi), %r8
movq (%rax), %r9
movl 0x7bc(%r9), %r12d
leaq -0x38(%rbp), %r11
xorl %r10d, %r10d
cmpl $0x2, %esi
je 0x5fd82
cmpl $0x6, %r14d
jne 0x5fd87
movl $0x3, %r15d
xorl %r11d, %r11d
jmp 0x5fd8d
xorl %r15d, %r15d
jmp 0x5fd8d
movl $0x2, %r15d
movq 0x600(%r9), %rdi
leaq 0x750(%r9), %rsi
movq 0x18(%rbx), %rax
xorl %edx, %edx
divq %r12
movl 0x7d4(%r9), %r9d
movl 0x80(%rdi), %r12d
subq $0x8, %rsp
movq %rax, %rdx
pushq %r12
pushq %r10
pushq $0x0
pushq %r11
pushq %r10
pushq %r15
pushq %r14
callq 0x4d6ba
addq $0x40, %rsp
movl %eax, %r15d
cmpl $0x4, %r14d
jne 0x5fdf5
leaq -0x38(%rbp), %rsi
movl $0x6, 0x8(%rsi)
movb $0x1, 0x10(%rsi)
movl $0x2e8, %edi # imm = 0x2E8
addq (%rbx), %rdi
callq 0xac68a
movl %r15d, %eax
addq $0x20, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
| _ma_write_keypage:
push rbp
mov rbp, rsp
push r15
push r14
push r12
push rbx
sub rsp, 20h
mov ecx, edx
mov r14d, esi
mov rbx, rdi
mov rax, [rdi]
mov r8, [rdi+10h]
mov r9, [rax]
mov r12d, [r9+7BCh]
lea r11, [rbp+var_38]
xor r10d, r10d
cmp esi, 2
jz short loc_5FD82
cmp r14d, 6
jnz short loc_5FD87
mov r15d, 3
xor r11d, r11d
jmp short loc_5FD8D
loc_5FD82:
xor r15d, r15d
jmp short loc_5FD8D
loc_5FD87:
mov r15d, 2
loc_5FD8D:
mov rdi, [r9+600h]
lea rsi, [r9+750h]
mov rax, [rbx+18h]
xor edx, edx
div r12
mov r9d, [r9+7D4h]
mov r12d, [rdi+80h]
sub rsp, 8
mov rdx, rax
push r12
push r10
push 0
push r11
push r10
push r15
push r14
call pagecache_write_part
add rsp, 40h
mov r15d, eax
cmp r14d, 4
jnz short loc_5FDF5
lea rsi, [rbp+var_38]
mov dword ptr [rsi+8], 6
mov byte ptr [rsi+10h], 1
mov edi, 2E8h
add rdi, [rbx]
call insert_dynamic
loc_5FDF5:
mov eax, r15d
add rsp, 20h
pop rbx
pop r12
pop r14
pop r15
pop rbp
retn
| long long ma_write_keypage(long long **a1, unsigned int a2, int a3)
{
long long v3; // r9
_QWORD *v4; // r11
unsigned int v5; // r15d
unsigned int v6; // r15d
_BYTE v8[8]; // [rsp+8h] [rbp-38h] BYREF
int v9; // [rsp+10h] [rbp-30h]
char v10; // [rsp+18h] [rbp-28h]
v4 = v8;
if ( a2 == 2 )
{
v5 = 0;
}
else if ( a2 == 6 )
{
v5 = 3;
v4 = 0LL;
}
else
{
v5 = 2;
}
v3 = **a1;
v6 = pagecache_write_part(
*(__m128i **)(v3 + 1536),
(char *)(v3 + 1872),
(unsigned long long)a1[3] / *(unsigned int *)(v3 + 1980),
a3,
(char *)a1[2],
*(_DWORD *)(v3 + 2004),
a2,
v5,
0,
v4,
0LL,
0,
*(_DWORD *)(*(_QWORD *)(v3 + 1536) + 128LL));
if ( a2 == 4 )
{
v9 = 6;
v10 = 1;
insert_dynamic(*a1 + 93, v8);
}
return v6;
}
| _ma_write_keypage:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH R12
PUSH RBX
SUB RSP,0x20
MOV ECX,EDX
MOV R14D,ESI
MOV RBX,RDI
MOV RAX,qword ptr [RDI]
MOV R8,qword ptr [RDI + 0x10]
MOV R9,qword ptr [RAX]
MOV R12D,dword ptr [R9 + 0x7bc]
LEA R11,[RBP + -0x38]
XOR R10D,R10D
CMP ESI,0x2
JZ 0x0015fd82
CMP R14D,0x6
JNZ 0x0015fd87
MOV R15D,0x3
XOR R11D,R11D
JMP 0x0015fd8d
LAB_0015fd82:
XOR R15D,R15D
JMP 0x0015fd8d
LAB_0015fd87:
MOV R15D,0x2
LAB_0015fd8d:
MOV RDI,qword ptr [R9 + 0x600]
LEA RSI,[R9 + 0x750]
MOV RAX,qword ptr [RBX + 0x18]
XOR EDX,EDX
DIV R12
MOV R9D,dword ptr [R9 + 0x7d4]
MOV R12D,dword ptr [RDI + 0x80]
SUB RSP,0x8
MOV RDX,RAX
PUSH R12
PUSH R10
PUSH 0x0
PUSH R11
PUSH R10
PUSH R15
PUSH R14
CALL 0x0014d6ba
ADD RSP,0x40
MOV R15D,EAX
CMP R14D,0x4
JNZ 0x0015fdf5
LEA RSI,[RBP + -0x38]
MOV dword ptr [RSI + 0x8],0x6
MOV byte ptr [RSI + 0x10],0x1
MOV EDI,0x2e8
ADD RDI,qword ptr [RBX]
CALL 0x001ac68a
LAB_0015fdf5:
MOV EAX,R15D
ADD RSP,0x20
POP RBX
POP R12
POP R14
POP R15
POP RBP
RET
|
int4 _ma_write_keypage(long *param_1,int param_2,int4 param_3)
{
long lVar1;
int4 uVar2;
int1 *puVar3;
int8 uVar4;
int1 local_40 [8];
int4 local_38;
int1 local_30;
lVar1 = *(long *)*param_1;
puVar3 = local_40;
if (param_2 == 2) {
uVar4 = 0;
}
else if (param_2 == 6) {
uVar4 = 3;
puVar3 = (int1 *)0x0;
}
else {
uVar4 = 2;
}
uVar2 = pagecache_write_part
(*(long *)(lVar1 + 0x600),lVar1 + 0x750,
(ulong)param_1[3] / (ulong)*(uint *)(lVar1 + 0x7bc),param_3,param_1[2],
*(int4 *)(lVar1 + 0x7d4),param_2,uVar4,0,puVar3,0,0,
*(int4 *)(*(long *)(lVar1 + 0x600) + 0x80));
if (param_2 == 4) {
local_38 = 6;
local_30 = 1;
insert_dynamic(*param_1 + 0x2e8);
}
return uVar2;
}
| |
45,279 | 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>>::hex_bytes(unsigned char) | monkey531[P]llama/common/json.hpp | static std::string hex_bytes(std::uint8_t byte)
{
std::string result = "FF";
constexpr const char* nibble_to_hex = "0123456789ABCDEF";
result[0] = nibble_to_hex[byte / 16];
result[1] = nibble_to_hex[byte % 16];
return result;
} | O2 | cpp | 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>>::hex_bytes(unsigned char):
pushq %r14
pushq %rbx
pushq %rax
movl %esi, %ebx
movq %rdi, %r14
leaq 0x4dcf8(%rip), %rsi # 0x96472
leaq 0x7(%rsp), %rdx
callq 0x2499e
movl %ebx, %eax
shrl $0x4, %eax
leaq 0x505f8(%rip), %rcx # 0x98d88
movb (%rax,%rcx), %al
movq (%r14), %rdx
movb %al, (%rdx)
andl $0xf, %ebx
movb (%rbx,%rcx), %al
movq (%r14), %rcx
movb %al, 0x1(%rcx)
movq %r14, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
| _ZN8nlohmann16json_abi_v3_11_36detail10serializerINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEE9hex_bytesEh:
push r14
push rbx
push rax
mov ebx, esi
mov r14, rdi
lea rsi, aInvalidStringS_0+41h; "FF"
lea rdx, [rsp+18h+var_11]
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_; std::string::basic_string<std::allocator<char>>(char const*,std::allocator<char> const&)
mov eax, ebx
shr eax, 4
lea rcx, a0123456789abcd; "0123456789ABCDEF"
mov al, [rax+rcx]
mov rdx, [r14]
mov [rdx], al
and ebx, 0Fh
mov al, [rbx+rcx]
mov rcx, [r14]
mov [rcx+1], al
mov rax, r14
add rsp, 8
pop rbx
pop r14
retn
| _QWORD * 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::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>::hex_bytes(
_QWORD *a1,
unsigned int a2)
{
std::string::basic_string<std::allocator<char>>(a1, (long long)"FF");
*(_BYTE *)*a1 = a0123456789abcd[a2 >> 4];
*(_BYTE *)(*a1 + 1LL) = a0123456789abcd[a2 & 0xF];
return a1;
}
| hex_bytes:
PUSH R14
PUSH RBX
PUSH RAX
MOV EBX,ESI
MOV R14,RDI
LEA RSI,[0x196472]
LEA RDX,[RSP + 0x7]
CALL 0x0012499e
MOV EAX,EBX
SHR EAX,0x4
LEA RCX,[0x198d88]
MOV AL,byte ptr [RAX + RCX*0x1]
MOV RDX,qword ptr [R14]
MOV byte ptr [RDX],AL
AND EBX,0xf
MOV AL,byte ptr [RBX + RCX*0x1]
MOV RCX,qword ptr [R14]
MOV byte ptr [RCX + 0x1],AL
MOV RAX,R14
ADD RSP,0x8
POP RBX
POP R14
RET
|
/* 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::string, bool, long, unsigned long, double, std::allocator,
nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned
char> >, void> >::hex_bytes(unsigned char) */
serializer<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>>
* __thiscall
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::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>
::hex_bytes(serializer<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,uchar param_1)
{
int7 in_register_00000031;
allocator local_11;
std::__cxx11::string::string<std::allocator<char>>((string *)this,"FF",&local_11);
**(char **)this = "0123456789ABCDEF"[(CONCAT71(in_register_00000031,param_1) & 0xffffffff) >> 4];
*(char *)(*(long *)this + 1) =
"0123456789ABCDEF"[(uint)CONCAT71(in_register_00000031,param_1) & 0xf];
return this;
}
| |
45,280 | serial_cpp::Serial::SerialImpl::SerialImpl(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, unsigned long, serial_cpp::bytesize_t, serial_cpp::parity_t, serial_cpp::stopbits_t, serial_cpp::flowcontrol_t) | ami-iit[P]serial_cpp/src/impl/unix.cc | Serial::SerialImpl::SerialImpl (const string &port, unsigned long baudrate,
bytesize_t bytesize,
parity_t parity, stopbits_t stopbits,
flowcontrol_t flowcontrol)
: port_ (port), fd_ (-1), is_open_ (false), xonxoff_ (false), rtscts_ (false),
baudrate_ (baudrate), parity_ (parity),
bytesize_ (bytesize), stopbits_ (stopbits), flowcontrol_ (flowcontrol)
{
pthread_mutex_init(&this->read_mutex, NULL);
pthread_mutex_init(&this->write_mutex, NULL);
if (port_.empty () == false)
open ();
} | O1 | cpp | serial_cpp::Serial::SerialImpl::SerialImpl(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, unsigned long, serial_cpp::bytesize_t, serial_cpp::parity_t, serial_cpp::stopbits_t, serial_cpp::flowcontrol_t):
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movl %r9d, %ebp
movl %r8d, %r15d
movl %ecx, %r12d
movq %rdx, %r13
movq %rdi, %r14
leaq 0xa789(%rip), %rax # 0xfcb0
movq %rax, (%rdi)
leaq 0x8(%rdi), %rbx
leaq 0x18(%rdi), %rax
movq %rax, (%rsp)
movq %rax, 0x8(%rdi)
movq (%rsi), %rax
movq 0x8(%rsi), %rdx
addq %rax, %rdx
movq %rbx, %rdi
movq %rax, %rsi
callq 0x41da
movl $0xffffffff, 0x28(%r14) # imm = 0xFFFFFFFF
movw $0x0, 0x2c(%r14)
movb $0x0, 0x2e(%r14)
xorps %xmm0, %xmm0
movups %xmm0, 0x30(%r14)
movl $0x0, 0x40(%r14)
movq %r13, 0x48(%r14)
movl %r15d, 0x54(%r14)
movl %r12d, 0x58(%r14)
movl %ebp, 0x5c(%r14)
movl 0x40(%rsp), %eax
movl %eax, 0x60(%r14)
leaq 0x68(%r14), %rdi
xorl %esi, %esi
callq 0x3420
leaq 0x90(%r14), %rdi
xorl %esi, %esi
callq 0x3420
cmpq $0x0, 0x10(%r14)
je 0x55b3
movq %r14, %rdi
callq 0x55e6
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %r14
movq (%rbx), %rdi
cmpq (%rsp), %rdi
je 0x55dd
movq (%rsp), %rax
movq (%rax), %rsi
incq %rsi
callq 0x32c0
movq %r14, %rdi
callq 0x34f0
nop
| _ZN10serial_cpp6Serial10SerialImplC2ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEmNS_10bytesize_tENS_8parity_tENS_10stopbits_tENS_13flowcontrol_tE:
push rbp
push r15
push r14
push r13
push r12
push rbx
push rax
mov ebp, r9d
mov r15d, r8d
mov r12d, ecx
mov r13, rdx
mov r14, rdi
lea rax, off_FCB0
mov [rdi], rax
lea rbx, [rdi+8]
lea rax, [rdi+18h]
mov [rsp+38h+var_38], rax
mov [rdi+8], rax
mov rax, [rsi]
mov rdx, [rsi+8]
add rdx, rax
mov rdi, rbx
mov rsi, rax
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPcEEvT_S7_St20forward_iterator_tag; std::string::_M_construct<char *>(char *,char *,std::forward_iterator_tag)
mov dword ptr [r14+28h], 0FFFFFFFFh
mov word ptr [r14+2Ch], 0
mov byte ptr [r14+2Eh], 0
xorps xmm0, xmm0
movups xmmword ptr [r14+30h], xmm0
mov dword ptr [r14+40h], 0
mov [r14+48h], r13
mov [r14+54h], r15d
mov [r14+58h], r12d
mov [r14+5Ch], ebp
mov eax, [rsp+38h+arg_0]
mov [r14+60h], eax
lea rdi, [r14+68h]
xor esi, esi
call _pthread_mutex_init
lea rdi, [r14+90h]
xor esi, esi
call _pthread_mutex_init
cmp qword ptr [r14+10h], 0
jz short loc_55B3
mov rdi, r14; this
call _ZN10serial_cpp6Serial10SerialImpl4openEv; serial_cpp::Serial::SerialImpl::open(void)
loc_55B3:
add rsp, 8
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
mov r14, rax
mov rdi, [rbx]; void *
cmp rdi, [rsp+0]
jz short loc_55DD
mov rax, [rsp+0]
mov rsi, [rax]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_55DD:
mov rdi, r14
call __Unwind_Resume
| long long serial_cpp::Serial::SerialImpl::SerialImpl(
serial_cpp::Serial::SerialImpl *this,
long long a2,
long long a3,
int a4,
int a5,
int a6,
int a7)
{
long long result; // rax
*(_QWORD *)this = off_FCB0;
*((_QWORD *)this + 1) = (char *)this + 24;
std::string::_M_construct<char *>((_QWORD *)this + 1, *(_BYTE **)a2, *(_QWORD *)a2 + *(_QWORD *)(a2 + 8));
*((_DWORD *)this + 10) = -1;
*((_WORD *)this + 22) = 0;
*((_BYTE *)this + 46) = 0;
*((_OWORD *)this + 3) = 0LL;
*((_DWORD *)this + 16) = 0;
*((_QWORD *)this + 9) = a3;
*((_DWORD *)this + 21) = a5;
*((_DWORD *)this + 22) = a4;
*((_DWORD *)this + 23) = a6;
*((_DWORD *)this + 24) = a7;
pthread_mutex_init((char *)this + 104, 0LL);
result = pthread_mutex_init((char *)this + 144, 0LL);
if ( *((_QWORD *)this + 2) )
return serial_cpp::Serial::SerialImpl::open(this);
return result;
}
| SerialImpl:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
PUSH RAX
MOV EBP,R9D
MOV R15D,R8D
MOV R12D,ECX
MOV R13,RDX
MOV R14,RDI
LEA RAX,[0x10fcb0]
MOV qword ptr [RDI],RAX
LEA RBX,[RDI + 0x8]
LEA RAX,[RDI + 0x18]
MOV qword ptr [RSP],RAX
MOV qword ptr [RDI + 0x8],RAX
MOV RAX,qword ptr [RSI]
MOV RDX,qword ptr [RSI + 0x8]
ADD RDX,RAX
MOV RDI,RBX
MOV RSI,RAX
CALL 0x001041da
MOV dword ptr [R14 + 0x28],0xffffffff
MOV word ptr [R14 + 0x2c],0x0
MOV byte ptr [R14 + 0x2e],0x0
XORPS XMM0,XMM0
MOVUPS xmmword ptr [R14 + 0x30],XMM0
MOV dword ptr [R14 + 0x40],0x0
MOV qword ptr [R14 + 0x48],R13
MOV dword ptr [R14 + 0x54],R15D
MOV dword ptr [R14 + 0x58],R12D
MOV dword ptr [R14 + 0x5c],EBP
MOV EAX,dword ptr [RSP + 0x40]
MOV dword ptr [R14 + 0x60],EAX
LEA RDI,[R14 + 0x68]
XOR ESI,ESI
CALL 0x00103420
LEA RDI,[R14 + 0x90]
XOR ESI,ESI
CALL 0x00103420
CMP qword ptr [R14 + 0x10],0x0
JZ 0x001055b3
LAB_001055ab:
MOV RDI,R14
CALL 0x001055e6
LAB_001055b3:
ADD RSP,0x8
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
|
/* serial_cpp::Serial::SerialImpl::SerialImpl(std::__cxx11::string const&, unsigned long,
serial_cpp::bytesize_t, serial_cpp::parity_t, serial_cpp::stopbits_t, serial_cpp::flowcontrol_t)
*/
void __thiscall
serial_cpp::Serial::SerialImpl::SerialImpl
(SerialImpl *this,long *param_1,int8 param_2,int4 param_4,int4 param_5,
int4 param_6,int4 param_7)
{
*(int ***)this = &PTR__SerialImpl_0010fcb0;
*(SerialImpl **)(this + 8) = this + 0x18;
std::__cxx11::string::_M_construct<char*>(this + 8,*param_1,param_1[1] + *param_1);
*(int4 *)(this + 0x28) = 0xffffffff;
*(int2 *)(this + 0x2c) = 0;
this[0x2e] = (SerialImpl)0x0;
*(int8 *)(this + 0x30) = 0;
*(int8 *)(this + 0x38) = 0;
*(int4 *)(this + 0x40) = 0;
*(int8 *)(this + 0x48) = param_2;
*(int4 *)(this + 0x54) = param_5;
*(int4 *)(this + 0x58) = param_4;
*(int4 *)(this + 0x5c) = param_6;
*(int4 *)(this + 0x60) = param_7;
pthread_mutex_init((pthread_mutex_t *)(this + 0x68),(pthread_mutexattr_t *)0x0);
pthread_mutex_init((pthread_mutex_t *)(this + 0x90),(pthread_mutexattr_t *)0x0);
if (*(long *)(this + 0x10) != 0) {
/* try { // try from 001055ab to 001055b2 has its CatchHandler @ 001055c2 */
open(this);
}
return;
}
| |
45,281 | serial_cpp::Serial::SerialImpl::SerialImpl(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, unsigned long, serial_cpp::bytesize_t, serial_cpp::parity_t, serial_cpp::stopbits_t, serial_cpp::flowcontrol_t) | ami-iit[P]serial_cpp/src/impl/unix.cc | Serial::SerialImpl::SerialImpl (const string &port, unsigned long baudrate,
bytesize_t bytesize,
parity_t parity, stopbits_t stopbits,
flowcontrol_t flowcontrol)
: port_ (port), fd_ (-1), is_open_ (false), xonxoff_ (false), rtscts_ (false),
baudrate_ (baudrate), parity_ (parity),
bytesize_ (bytesize), stopbits_ (stopbits), flowcontrol_ (flowcontrol)
{
pthread_mutex_init(&this->read_mutex, NULL);
pthread_mutex_init(&this->write_mutex, NULL);
if (port_.empty () == false)
open ();
} | O3 | cpp | serial_cpp::Serial::SerialImpl::SerialImpl(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, unsigned long, serial_cpp::bytesize_t, serial_cpp::parity_t, serial_cpp::stopbits_t, serial_cpp::flowcontrol_t):
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movl %r9d, %ebp
movl %r8d, %r15d
movl %ecx, %r12d
movq %rdx, %r13
movq %rdi, %r14
leaq 0xa77d(%rip), %rax # 0xfcb0
movq %rax, (%rdi)
leaq 0x8(%rdi), %rbx
leaq 0x18(%rdi), %rax
movq %rax, (%rsp)
movq %rax, 0x8(%rdi)
movq (%rsi), %rax
movq 0x8(%rsi), %rdx
addq %rax, %rdx
movq %rbx, %rdi
movq %rax, %rsi
callq 0x41da
movl $0xffffffff, 0x28(%r14) # imm = 0xFFFFFFFF
movw $0x0, 0x2c(%r14)
movb $0x0, 0x2e(%r14)
xorps %xmm0, %xmm0
movups %xmm0, 0x30(%r14)
movl $0x0, 0x40(%r14)
movq %r13, 0x48(%r14)
movl %r15d, 0x54(%r14)
movl %r12d, 0x58(%r14)
movl %ebp, 0x5c(%r14)
movl 0x40(%rsp), %eax
movl %eax, 0x60(%r14)
leaq 0x68(%r14), %rdi
xorl %esi, %esi
callq 0x3420
leaq 0x90(%r14), %rdi
xorl %esi, %esi
callq 0x3420
cmpq $0x0, 0x10(%r14)
je 0x55bf
movq %r14, %rdi
callq 0x55f2
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %r14
movq (%rbx), %rdi
cmpq (%rsp), %rdi
je 0x55e9
movq (%rsp), %rax
movq (%rax), %rsi
incq %rsi
callq 0x32c0
movq %r14, %rdi
callq 0x34f0
nop
| _ZN10serial_cpp6Serial10SerialImplC2ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEmNS_10bytesize_tENS_8parity_tENS_10stopbits_tENS_13flowcontrol_tE:
push rbp
push r15
push r14
push r13
push r12
push rbx
push rax
mov ebp, r9d
mov r15d, r8d
mov r12d, ecx
mov r13, rdx
mov r14, rdi
lea rax, off_FCB0
mov [rdi], rax
lea rbx, [rdi+8]
lea rax, [rdi+18h]
mov [rsp+38h+var_38], rax
mov [rdi+8], rax
mov rax, [rsi]
mov rdx, [rsi+8]
add rdx, rax
mov rdi, rbx
mov rsi, rax
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPcEEvT_S7_St20forward_iterator_tag; std::string::_M_construct<char *>(char *,char *,std::forward_iterator_tag)
mov dword ptr [r14+28h], 0FFFFFFFFh
mov word ptr [r14+2Ch], 0
mov byte ptr [r14+2Eh], 0
xorps xmm0, xmm0
movups xmmword ptr [r14+30h], xmm0
mov dword ptr [r14+40h], 0
mov [r14+48h], r13
mov [r14+54h], r15d
mov [r14+58h], r12d
mov [r14+5Ch], ebp
mov eax, [rsp+38h+arg_0]
mov [r14+60h], eax
lea rdi, [r14+68h]
xor esi, esi
call _pthread_mutex_init
lea rdi, [r14+90h]
xor esi, esi
call _pthread_mutex_init
cmp qword ptr [r14+10h], 0
jz short loc_55BF
mov rdi, r14; this
call _ZN10serial_cpp6Serial10SerialImpl4openEv; serial_cpp::Serial::SerialImpl::open(void)
loc_55BF:
add rsp, 8
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
mov r14, rax
mov rdi, [rbx]; void *
cmp rdi, [rsp+0]
jz short loc_55E9
mov rax, [rsp+0]
mov rsi, [rax]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_55E9:
mov rdi, r14
call __Unwind_Resume
| long long serial_cpp::Serial::SerialImpl::SerialImpl(
serial_cpp::Serial::SerialImpl *this,
long long a2,
long long a3,
int a4,
int a5,
int a6,
int a7)
{
long long result; // rax
*(_QWORD *)this = off_FCB0;
*((_QWORD *)this + 1) = (char *)this + 24;
std::string::_M_construct<char *>((long long)this + 8, *(_BYTE **)a2, *(_QWORD *)a2 + *(_QWORD *)(a2 + 8));
*((_DWORD *)this + 10) = -1;
*((_WORD *)this + 22) = 0;
*((_BYTE *)this + 46) = 0;
*((_OWORD *)this + 3) = 0LL;
*((_DWORD *)this + 16) = 0;
*((_QWORD *)this + 9) = a3;
*((_DWORD *)this + 21) = a5;
*((_DWORD *)this + 22) = a4;
*((_DWORD *)this + 23) = a6;
*((_DWORD *)this + 24) = a7;
pthread_mutex_init((char *)this + 104, 0LL);
result = pthread_mutex_init((char *)this + 144, 0LL);
if ( *((_QWORD *)this + 2) )
return serial_cpp::Serial::SerialImpl::open(this);
return result;
}
| SerialImpl:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
PUSH RAX
MOV EBP,R9D
MOV R15D,R8D
MOV R12D,ECX
MOV R13,RDX
MOV R14,RDI
LEA RAX,[0x10fcb0]
MOV qword ptr [RDI],RAX
LEA RBX,[RDI + 0x8]
LEA RAX,[RDI + 0x18]
MOV qword ptr [RSP],RAX
MOV qword ptr [RDI + 0x8],RAX
MOV RAX,qword ptr [RSI]
MOV RDX,qword ptr [RSI + 0x8]
ADD RDX,RAX
MOV RDI,RBX
MOV RSI,RAX
CALL 0x001041da
MOV dword ptr [R14 + 0x28],0xffffffff
MOV word ptr [R14 + 0x2c],0x0
MOV byte ptr [R14 + 0x2e],0x0
XORPS XMM0,XMM0
MOVUPS xmmword ptr [R14 + 0x30],XMM0
MOV dword ptr [R14 + 0x40],0x0
MOV qword ptr [R14 + 0x48],R13
MOV dword ptr [R14 + 0x54],R15D
MOV dword ptr [R14 + 0x58],R12D
MOV dword ptr [R14 + 0x5c],EBP
MOV EAX,dword ptr [RSP + 0x40]
MOV dword ptr [R14 + 0x60],EAX
LEA RDI,[R14 + 0x68]
XOR ESI,ESI
CALL 0x00103420
LEA RDI,[R14 + 0x90]
XOR ESI,ESI
CALL 0x00103420
CMP qword ptr [R14 + 0x10],0x0
JZ 0x001055bf
LAB_001055b7:
MOV RDI,R14
CALL 0x001055f2
LAB_001055bf:
ADD RSP,0x8
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
|
/* serial_cpp::Serial::SerialImpl::SerialImpl(std::__cxx11::string const&, unsigned long,
serial_cpp::bytesize_t, serial_cpp::parity_t, serial_cpp::stopbits_t, serial_cpp::flowcontrol_t)
*/
void __thiscall
serial_cpp::Serial::SerialImpl::SerialImpl
(SerialImpl *this,long *param_1,int8 param_2,int4 param_4,int4 param_5,
int4 param_6,int4 param_7)
{
*(int ***)this = &PTR__SerialImpl_0010fcb0;
*(SerialImpl **)(this + 8) = this + 0x18;
std::__cxx11::string::_M_construct<char*>(this + 8,*param_1,param_1[1] + *param_1);
*(int4 *)(this + 0x28) = 0xffffffff;
*(int2 *)(this + 0x2c) = 0;
this[0x2e] = (SerialImpl)0x0;
*(int8 *)(this + 0x30) = 0;
*(int8 *)(this + 0x38) = 0;
*(int4 *)(this + 0x40) = 0;
*(int8 *)(this + 0x48) = param_2;
*(int4 *)(this + 0x54) = param_5;
*(int4 *)(this + 0x58) = param_4;
*(int4 *)(this + 0x5c) = param_6;
*(int4 *)(this + 0x60) = param_7;
pthread_mutex_init((pthread_mutex_t *)(this + 0x68),(pthread_mutexattr_t *)0x0);
pthread_mutex_init((pthread_mutex_t *)(this + 0x90),(pthread_mutexattr_t *)0x0);
if (*(long *)(this + 0x10) != 0) {
/* try { // try from 001055b7 to 001055be has its CatchHandler @ 001055ce */
open(this);
}
return;
}
| |
45,282 | mariadb_set_conf_option | eloqsql/libmariadb/libmariadb/mariadb_lib.c | my_bool _mariadb_set_conf_option(MYSQL *mysql, const char *config_option, const char *config_value)
{
if (config_option)
{
int i;
char *c;
/* CONC-395: replace underscore "_" by dash "-" */
while ((c= strchr(config_option, '_')))
*c= '-';
for (i=0; mariadb_defaults[i].conf_key; i++)
{
if (!strcmp(mariadb_defaults[i].conf_key, config_option))
{
my_bool val_bool;
int val_int;
size_t val_sizet;
int rc;
void *option_val= NULL;
switch (mariadb_defaults[i].type) {
case MARIADB_OPTION_FUNC:
return mariadb_defaults[i].u.option_func(mysql, config_option, config_value, -1);
break;
case MARIADB_OPTION_BOOL:
val_bool= 0;
if (config_value)
val_bool= atoi(config_value);
option_val= &val_bool;
break;
case MARIADB_OPTION_INT:
val_int= 0;
if (config_value)
val_int= atoi(config_value);
option_val= &val_int;
break;
case MARIADB_OPTION_SIZET:
val_sizet= 0;
if (config_value)
val_sizet= strtol(config_value, NULL, 10);
option_val= &val_sizet;
break;
case MARIADB_OPTION_STR:
option_val= (void*)config_value;
break;
case MARIADB_OPTION_NONE:
break;
}
rc= mysql_optionsv(mysql, mariadb_defaults[i].u.option, option_val);
return(test(rc));
}
}
}
/* unknown key */
return 1;
} | O3 | c | mariadb_set_conf_option:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movb $0x1, %r12b
testq %rsi, %rsi
je 0x4539c
movq %rdx, %r14
movq %rsi, %r15
movq %rdi, %rbx
movq %r15, %rdi
movl $0x5f, %esi
callq 0x37510
testq %rax, %rax
je 0x452a5
movb $0x2d, (%rax)
jmp 0x4528e
leaq 0x306924(%rip), %r13 # 0x34bbd0
movq 0x10(%r13), %rdi
testq %rdi, %rdi
je 0x4539c
movq %r15, %rsi
callq 0x378b0
testl %eax, %eax
je 0x452e9
leaq 0x306904(%rip), %r13 # 0x34bbd0
movq 0x28(%r13), %rdi
testq %rdi, %rdi
je 0x4539c
movq %r15, %rsi
callq 0x378b0
addq $0x18, %r13
testl %eax, %eax
jne 0x452cc
movl 0x8(%r13), %eax
decl %eax
cmpl $0x4, %eax
ja 0x45382
leaq 0x663c5(%rip), %rcx # 0xab6c4
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
leaq -0x29(%rbp), %r15
movb $0x0, (%r15)
testq %r14, %r14
je 0x45385
movq %r14, %rdi
callq 0x37330
movb %al, -0x29(%rbp)
jmp 0x45385
movq %rbx, %rdi
movq %r15, %rsi
movq %r14, %rdx
movq $-0x1, %rcx
callq *(%r13)
movl %eax, %r12d
jmp 0x4539c
leaq -0x38(%rbp), %r15
movq $0x0, (%r15)
testq %r14, %r14
je 0x45385
movq %r14, %rdi
xorl %esi, %esi
movl $0xa, %edx
callq 0x37910
movq %rax, -0x38(%rbp)
jmp 0x45385
movq %r14, %r15
jmp 0x45385
leaq -0x30(%rbp), %r15
movl $0x0, (%r15)
testq %r14, %r14
je 0x45385
movq %r14, %rdi
callq 0x37330
movl %eax, -0x30(%rbp)
jmp 0x45385
xorl %r15d, %r15d
movl (%r13), %esi
movq %rbx, %rdi
movq %r15, %rdx
xorl %eax, %eax
callq 0x453ae
testl %eax, %eax
setne %r12b
movl %r12d, %eax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
| _mariadb_set_conf_option:
push rbp
mov rbp, rsp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 18h
mov r12b, 1
test rsi, rsi
jz loc_4539C
mov r14, rdx
mov r15, rsi
mov rbx, rdi
loc_4528E:
mov rdi, r15
mov esi, 5Fh ; '_'
call _strchr
test rax, rax
jz short loc_452A5
mov byte ptr [rax], 2Dh ; '-'
jmp short loc_4528E
loc_452A5:
lea r13, mariadb_defaults
mov rdi, [r13+10h]
test rdi, rdi
jz loc_4539C
mov rsi, r15
call _strcmp
test eax, eax
jz short loc_452E9
lea r13, mariadb_defaults
loc_452CC:
mov rdi, [r13+28h]
test rdi, rdi
jz loc_4539C
mov rsi, r15
call _strcmp
add r13, 18h
test eax, eax
jnz short loc_452CC
loc_452E9:
mov eax, [r13+8]
dec eax; switch 5 cases
cmp eax, 4
ja def_45306; jumptable 0000000000045306 default case
lea rcx, jpt_45306
movsxd rax, ds:(jpt_45306 - 0AB6C4h)[rcx+rax*4]
add rax, rcx
jmp rax; switch jump
loc_45308:
lea r15, [rbp+var_29]; jumptable 0000000000045306 case 1
mov byte ptr [r15], 0
test r14, r14
jz short loc_45385
mov rdi, r14
call _atoi
mov [rbp+var_29], al
jmp short loc_45385
loc_45322:
mov rdi, rbx; jumptable 0000000000045306 case 5
mov rsi, r15
mov rdx, r14
mov rcx, 0FFFFFFFFFFFFFFFFh
call qword ptr [r13+0]
mov r12d, eax
jmp short loc_4539C
loc_4533B:
lea r15, [rbp+var_38]; jumptable 0000000000045306 case 3
mov qword ptr [r15], 0
test r14, r14
jz short loc_45385
mov rdi, r14
xor esi, esi
mov edx, 0Ah
call _strtol
mov [rbp+var_38], rax
jmp short loc_45385
loc_45360:
mov r15, r14; jumptable 0000000000045306 case 4
jmp short loc_45385
loc_45365:
lea r15, [rbp+var_30]; jumptable 0000000000045306 case 2
mov dword ptr [r15], 0
test r14, r14
jz short loc_45385
mov rdi, r14
call _atoi
mov [rbp+var_30], eax
jmp short loc_45385
def_45306:
xor r15d, r15d; jumptable 0000000000045306 default case
loc_45385:
mov esi, [r13+0]
mov rdi, rbx
mov rdx, r15
xor eax, eax
call mysql_optionsv
test eax, eax
setnz r12b
loc_4539C:
mov eax, r12d
add rsp, 18h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
| long long mariadb_set_conf_option(long long a1, long long a2, long long a3, long long a4)
{
unsigned int v4; // r12d
_BYTE *v7; // rax
_DWORD *v8; // r13
long long v9; // rdi
int v10; // ecx
int v11; // r8d
int v12; // r9d
long long v13; // rdi
long long *v14; // r15
long long v16; // [rsp+8h] [rbp-38h] BYREF
int v17; // [rsp+10h] [rbp-30h] BYREF
char v18; // [rsp+17h] [rbp-29h] BYREF
LOBYTE(v4) = 1;
if ( a2 )
{
while ( 1 )
{
v7 = (_BYTE *)strchr(a2, 95LL, a3, a4);
if ( !v7 )
break;
*v7 = 45;
}
v8 = &mariadb_defaults;
v9 = *((_QWORD *)&mariadb_defaults + 2);
if ( v9 )
{
if ( !(unsigned int)strcmp(v9, a2) )
{
LABEL_9:
switch ( v8[2] )
{
case 1:
v14 = (long long *)&v18;
v18 = 0;
if ( a3 )
v18 = atoi(a3);
goto LABEL_19;
case 2:
v14 = (long long *)&v17;
v17 = 0;
if ( a3 )
v17 = atoi(a3);
goto LABEL_19;
case 3:
v14 = &v16;
v16 = 0LL;
if ( a3 )
v16 = strtol(a3, 0LL, 10LL);
goto LABEL_19;
case 4:
LODWORD(v14) = a3;
goto LABEL_19;
case 5:
return (*(unsigned int ( **)(long long, long long, long long, long long))v8)(a1, a2, a3, -1LL);
default:
LODWORD(v14) = 0;
LABEL_19:
LOBYTE(v4) = (unsigned int)mysql_optionsv(a1, *v8, (_DWORD)v14, v10, v11, v12) != 0;
break;
}
}
else
{
v8 = &mariadb_defaults;
while ( 1 )
{
v13 = *((_QWORD *)v8 + 5);
if ( !v13 )
break;
v8 += 6;
if ( !(unsigned int)strcmp(v13, a2) )
goto LABEL_9;
}
}
}
}
return v4;
}
| _mariadb_set_conf_option:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x18
MOV R12B,0x1
TEST RSI,RSI
JZ 0x0014539c
MOV R14,RDX
MOV R15,RSI
MOV RBX,RDI
LAB_0014528e:
MOV RDI,R15
MOV ESI,0x5f
CALL 0x00137510
TEST RAX,RAX
JZ 0x001452a5
MOV byte ptr [RAX],0x2d
JMP 0x0014528e
LAB_001452a5:
LEA R13,[0x44bbd0]
MOV RDI,qword ptr [R13 + 0x10]
TEST RDI,RDI
JZ 0x0014539c
MOV RSI,R15
CALL 0x001378b0
TEST EAX,EAX
JZ 0x001452e9
LEA R13,[0x44bbd0]
LAB_001452cc:
MOV RDI,qword ptr [R13 + 0x28]
TEST RDI,RDI
JZ 0x0014539c
MOV RSI,R15
CALL 0x001378b0
ADD R13,0x18
TEST EAX,EAX
JNZ 0x001452cc
LAB_001452e9:
MOV EAX,dword ptr [R13 + 0x8]
DEC EAX
CMP EAX,0x4
JA 0x00145382
LEA RCX,[0x1ab6c4]
MOVSXD RAX,dword ptr [RCX + RAX*0x4]
ADD RAX,RCX
switchD:
JMP RAX
caseD_1:
LEA R15,[RBP + -0x29]
MOV byte ptr [R15],0x0
TEST R14,R14
JZ 0x00145385
MOV RDI,R14
CALL 0x00137330
MOV byte ptr [RBP + -0x29],AL
JMP 0x00145385
caseD_5:
MOV RDI,RBX
MOV RSI,R15
MOV RDX,R14
MOV RCX,-0x1
CALL qword ptr [R13]
MOV R12D,EAX
JMP 0x0014539c
caseD_3:
LEA R15,[RBP + -0x38]
MOV qword ptr [R15],0x0
TEST R14,R14
JZ 0x00145385
MOV RDI,R14
XOR ESI,ESI
MOV EDX,0xa
CALL 0x00137910
MOV qword ptr [RBP + -0x38],RAX
JMP 0x00145385
caseD_4:
MOV R15,R14
JMP 0x00145385
caseD_2:
LEA R15,[RBP + -0x30]
MOV dword ptr [R15],0x0
TEST R14,R14
JZ 0x00145385
MOV RDI,R14
CALL 0x00137330
MOV dword ptr [RBP + -0x30],EAX
JMP 0x00145385
default:
XOR R15D,R15D
LAB_00145385:
MOV ESI,dword ptr [R13]
MOV RDI,RBX
MOV RDX,R15
XOR EAX,EAX
CALL 0x001453ae
TEST EAX,EAX
SETNZ R12B
LAB_0014539c:
MOV EAX,R12D
ADD RSP,0x18
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
|
ulong _mariadb_set_conf_option(int8 param_1,char *param_2,long *param_3)
{
int iVar1;
uint uVar2;
char *pcVar3;
int8 unaff_R12;
ulong uVar4;
int1 *puVar6;
long *plVar7;
long local_40;
int local_38;
int1 local_31;
int7 uVar5;
uVar5 = (int7)((ulong)unaff_R12 >> 8);
uVar4 = CONCAT71(uVar5,1);
if (param_2 != (char *)0x0) {
while (pcVar3 = strchr(param_2,0x5f), pcVar3 != (char *)0x0) {
*pcVar3 = '-';
}
puVar6 = mariadb_defaults;
if (mariadb_defaults._16_8_ != 0) {
iVar1 = strcmp((char *)mariadb_defaults._16_8_,param_2);
if (iVar1 != 0) {
puVar6 = mariadb_defaults;
do {
if (*(char **)((long)puVar6 + 0x28) == (char *)0x0) goto LAB_0014539c;
iVar1 = strcmp(*(char **)((long)puVar6 + 0x28),param_2);
puVar6 = (int1 *)((long)puVar6 + 0x18);
} while (iVar1 != 0);
}
switch(*(int4 *)((long)puVar6 + 8)) {
case 1:
plVar7 = (long *)&local_31;
local_31 = 0;
if (param_3 != (long *)0x0) {
iVar1 = atoi((char *)param_3);
local_31 = (int1)iVar1;
}
break;
case 2:
plVar7 = (long *)&local_38;
local_38 = 0;
if (param_3 != (long *)0x0) {
local_38 = atoi((char *)param_3);
}
break;
case 3:
plVar7 = &local_40;
local_40 = 0;
if (param_3 != (long *)0x0) {
local_40 = strtol((char *)param_3,(char **)0x0,10);
}
break;
case 4:
plVar7 = param_3;
break;
case 5:
uVar2 = (**(code **)puVar6)(param_1,param_2,param_3,0xffffffffffffffff);
uVar4 = (ulong)uVar2;
goto LAB_0014539c;
default:
plVar7 = (long *)0x0;
}
iVar1 = mysql_optionsv(param_1,*(int4 *)puVar6,plVar7);
uVar4 = CONCAT71(uVar5,iVar1 != 0);
}
}
LAB_0014539c:
return uVar4 & 0xffffffff;
}
| |
45,283 | ok | eloqsql/libmariadb/unittest/mytap/tap.c | void
ok(int const pass, char const *fmt, ...)
{
va_list ap;
va_start(ap, fmt);
if (!pass && *g_test.todo == '\0')
++g_test.failed;
vemit_tap(pass, fmt, ap);
va_end(ap);
if (*g_test.todo != '\0')
emit_dir("todo", g_test.todo);
emit_endl();
} | O3 | c | ok:
pushq %rbp
movq %rsp, %rbp
subq $0xd0, %rsp
leaq -0xd0(%rbp), %r10
movq %rdx, 0x10(%r10)
movq %rcx, 0x18(%r10)
movq %r8, 0x20(%r10)
movq %r9, 0x28(%r10)
testb %al, %al
je 0x18a55
movaps %xmm0, -0xa0(%rbp)
movaps %xmm1, -0x90(%rbp)
movaps %xmm2, -0x80(%rbp)
movaps %xmm3, -0x70(%rbp)
movaps %xmm4, -0x60(%rbp)
movaps %xmm5, -0x50(%rbp)
movaps %xmm6, -0x40(%rbp)
movaps %xmm7, -0x30(%rbp)
movq %r10, -0x10(%rbp)
leaq 0x10(%rbp), %rax
movq %rax, -0x18(%rbp)
movabsq $0x3000000010, %rax # imm = 0x3000000010
movq %rax, -0x20(%rbp)
testl %edi, %edi
jne 0x18a82
cmpb $0x0, 0x36796(%rip) # 0x4f210
jne 0x18a82
incl 0x3678a(%rip) # 0x4f20c
leaq -0x20(%rbp), %rdx
callq 0x18ae5
cmpb $0x0, 0x3677e(%rip) # 0x4f210
je 0x18abf
movq 0x34515(%rip), %rax # 0x4cfb0
movq (%rax), %rdi
leaq 0x20da1(%rip), %rdx # 0x39846
leaq 0x20d32(%rip), %rcx # 0x397de
leaq 0x3675d(%rip), %r8 # 0x4f210
movl $0x1, %esi
xorl %eax, %eax
callq 0x13740
movq 0x344ea(%rip), %rax # 0x4cfb0
movq (%rax), %rdi
leaq 0x1fbec(%rip), %rdx # 0x386bc
movl $0x1, %esi
xorl %eax, %eax
callq 0x13740
addq $0xd0, %rsp
popq %rbp
retq
| ok:
push rbp
mov rbp, rsp
sub rsp, 0D0h
lea r10, [rbp+var_D0]
mov [r10+10h], rdx
mov [r10+18h], rcx
mov [r10+20h], r8
mov [r10+28h], r9
test al, al
jz short loc_18A55
movaps [rbp+var_A0], xmm0
movaps [rbp+var_90], xmm1
movaps [rbp+var_80], xmm2
movaps [rbp+var_70], xmm3
movaps [rbp+var_60], xmm4
movaps [rbp+var_50], xmm5
movaps [rbp+var_40], xmm6
movaps [rbp+var_30], xmm7
loc_18A55:
mov [rbp+var_10], r10
lea rax, [rbp+arg_0]
mov [rbp+var_18], rax
mov rax, 3000000010h
mov [rbp+var_20], rax
test edi, edi
jnz short loc_18A82
cmp cs:byte_4F210, 0
jnz short loc_18A82
inc cs:dword_4F20C
loc_18A82:
lea rdx, [rbp+var_20]
call vemit_tap
cmp cs:byte_4F210, 0
jz short loc_18ABF
mov rax, cs:stdout_ptr
mov rdi, [rax]
lea rdx, aSS_1; " # %s %s"
lea rcx, aTodo; "todo"
lea r8, byte_4F210
mov esi, 1
xor eax, eax
call ___fprintf_chk
loc_18ABF:
mov rax, cs:stdout_ptr
mov rdi, [rax]
lea rdx, aExecuteTestWit+28h; "\n"
mov esi, 1
xor eax, eax
call ___fprintf_chk
add rsp, 0D0h
pop rbp
retn
| long long ok(
long long a1,
long long a2,
long long a3,
long long a4,
long long a5,
long long a6,
__m128 a7,
__m128 a8,
__m128 a9,
__m128 a10,
__m128 a11,
__m128 a12,
__m128 a13,
__m128 a14,
char a15)
{
char v16; // [rsp+0h] [rbp-D0h] BYREF
long long v17; // [rsp+10h] [rbp-C0h]
long long v18; // [rsp+18h] [rbp-B8h]
long long v19; // [rsp+20h] [rbp-B0h]
long long v20; // [rsp+28h] [rbp-A8h]
__m128 v21; // [rsp+30h] [rbp-A0h]
__m128 v22; // [rsp+40h] [rbp-90h]
__m128 v23; // [rsp+50h] [rbp-80h]
__m128 v24; // [rsp+60h] [rbp-70h]
__m128 v25; // [rsp+70h] [rbp-60h]
__m128 v26; // [rsp+80h] [rbp-50h]
__m128 v27; // [rsp+90h] [rbp-40h]
__m128 v28; // [rsp+A0h] [rbp-30h]
_QWORD v29[4]; // [rsp+B0h] [rbp-20h] BYREF
v21 = a7;
v22 = a8;
v23 = a9;
v24 = a10;
v25 = a11;
v26 = a12;
v27 = a13;
v28 = a14;
v17 = a3;
v18 = a4;
v19 = a5;
v20 = a6;
v29[2] = &v16;
v29[1] = &a15;
v29[0] = 0x3000000010LL;
if ( !(_DWORD)a1 && !byte_4F210 )
++dword_4F20C;
vemit_tap(a1, a2, v29);
if ( byte_4F210 )
__fprintf_chk(stdout, 1LL, " # %s %s", "todo", &byte_4F210);
return __fprintf_chk(stdout, 1LL, "\n");
}
| ok:
PUSH RBP
MOV RBP,RSP
SUB RSP,0xd0
LEA R10,[RBP + -0xd0]
MOV qword ptr [R10 + 0x10],RDX
MOV qword ptr [R10 + 0x18],RCX
MOV qword ptr [R10 + 0x20],R8
MOV qword ptr [R10 + 0x28],R9
TEST AL,AL
JZ 0x00118a55
MOVAPS xmmword ptr [RBP + -0xa0],XMM0
MOVAPS xmmword ptr [RBP + -0x90],XMM1
MOVAPS xmmword ptr [RBP + -0x80],XMM2
MOVAPS xmmword ptr [RBP + -0x70],XMM3
MOVAPS xmmword ptr [RBP + -0x60],XMM4
MOVAPS xmmword ptr [RBP + -0x50],XMM5
MOVAPS xmmword ptr [RBP + -0x40],XMM6
MOVAPS xmmword ptr [RBP + -0x30],XMM7
LAB_00118a55:
MOV qword ptr [RBP + -0x10],R10
LEA RAX,[RBP + 0x10]
MOV qword ptr [RBP + -0x18],RAX
MOV RAX,0x3000000010
MOV qword ptr [RBP + -0x20],RAX
TEST EDI,EDI
JNZ 0x00118a82
CMP byte ptr [0x0014f210],0x0
JNZ 0x00118a82
INC dword ptr [0x0014f20c]
LAB_00118a82:
LEA RDX,[RBP + -0x20]
CALL 0x00118ae5
CMP byte ptr [0x0014f210],0x0
JZ 0x00118abf
MOV RAX,qword ptr [0x0014cfb0]
MOV RDI,qword ptr [RAX]
LEA RDX,[0x139846]
LEA RCX,[0x1397de]
LEA R8,[0x14f210]
MOV ESI,0x1
XOR EAX,EAX
CALL 0x00113740
LAB_00118abf:
MOV RAX,qword ptr [0x0014cfb0]
MOV RDI,qword ptr [RAX]
LEA RDX,[0x1386bc]
MOV ESI,0x1
XOR EAX,EAX
CALL 0x00113740
ADD RSP,0xd0
POP RBP
RET
|
void ok(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;
int1 local_d8 [16];
int8 local_c8;
int8 local_c0;
int8 local_b8;
int8 local_b0;
int8 local_a8;
int8 local_98;
int8 local_88;
int8 local_78;
int8 local_68;
int8 local_58;
int8 local_48;
int8 local_38;
int8 local_28;
int1 *local_20;
int1 *local_18;
local_18 = local_d8;
if (in_AL != '\0') {
local_a8 = param_1;
local_98 = param_2;
local_88 = param_3;
local_78 = param_4;
local_68 = param_5;
local_58 = param_6;
local_48 = param_7;
local_38 = param_8;
}
local_20 = &stack0x00000008;
local_28 = 0x3000000010;
if (((int)param_9 == 0) && (DAT_0014f210 == '\0')) {
DAT_0014f20c = DAT_0014f20c + 1;
}
local_c8 = param_11;
local_c0 = param_12;
local_b8 = param_13;
local_b0 = param_14;
vemit_tap(param_9,param_10,&local_28);
if (DAT_0014f210 != '\0') {
__fprintf_chk(*(int8 *)PTR_stdout_0014cfb0,1," # %s %s",&DAT_001397de,&DAT_0014f210);
}
__fprintf_chk(*(int8 *)PTR_stdout_0014cfb0,1,"\n");
return;
}
| |
45,284 | object_pool_create | tsotchke[P]eshkol/src/core/memory/object_pool.c | ObjectPool* object_pool_create(Arena* arena, size_t object_size, size_t objects_per_chunk) {
assert(arena != NULL);
assert(object_size >= sizeof(FreeListEntry));
assert(objects_per_chunk > 0);
// Allocate object pool
ObjectPool* pool = arena_alloc(arena, sizeof(ObjectPool));
if (!pool) return NULL;
// Initialize pool
pool->arena = arena;
pool->chunks = NULL;
pool->free_list = NULL;
pool->object_size = object_size;
pool->objects_per_chunk = objects_per_chunk;
pool->allocated_count = 0;
pool->free_count = 0;
pool->total_capacity = 0;
return pool;
} | O3 | c | object_pool_create:
pushq %r15
pushq %r14
pushq %rbx
testq %rdi, %rdi
je 0x24cd
movq %rsi, %r14
cmpq $0x7, %rsi
jbe 0x24ec
movq %rdx, %rbx
testq %rdx, %rdx
je 0x250b
movq %rdi, %r15
movl $0x40, %esi
callq 0x21a3
testq %rax, %rax
je 0x24c7
movq %r15, (%rax)
xorps %xmm0, %xmm0
movups %xmm0, 0x8(%rax)
movq %r14, 0x18(%rax)
movq %rbx, 0x20(%rax)
movups %xmm0, 0x28(%rax)
movq $0x0, 0x38(%rax)
popq %rbx
popq %r14
popq %r15
retq
leaq 0xb60(%rip), %rdi # 0x3034
leaq 0x14b5(%rip), %rsi # 0x3990
leaq 0x1506(%rip), %rcx # 0x39e8
movl $0x2f, %edx
callq 0x1070
leaq 0x152d(%rip), %rdi # 0x3a20
leaq 0x1496(%rip), %rsi # 0x3990
leaq 0x14e7(%rip), %rcx # 0x39e8
movl $0x30, %edx
callq 0x1070
leaq 0x1533(%rip), %rdi # 0x3a45
leaq 0x1477(%rip), %rsi # 0x3990
leaq 0x14c8(%rip), %rcx # 0x39e8
movl $0x31, %edx
callq 0x1070
| object_pool_create:
push r15
push r14
push rbx
test rdi, rdi
jz short loc_24CD
mov r14, rsi
cmp rsi, 7
jbe short loc_24EC
mov rbx, rdx
test rdx, rdx
jz short loc_250B
mov r15, rdi
mov esi, 40h ; '@'
call arena_alloc
test rax, rax
jz short loc_24C7
mov [rax], r15
xorps xmm0, xmm0
movups xmmword ptr [rax+8], xmm0
mov [rax+18h], r14
mov [rax+20h], rbx
movups xmmword ptr [rax+28h], xmm0
mov qword ptr [rax+38h], 0
loc_24C7:
pop rbx
pop r14
pop r15
retn
loc_24CD:
lea rdi, aArenaNull; "arena != NULL"
lea rsi, aWorkspaceLlm4b_1; "/workspace/llm4binary/github/2025_star3"...
lea rcx, aObjectpoolObje; "ObjectPool *object_pool_create(Arena *,"...
mov edx, 2Fh ; '/'
call ___assert_fail
loc_24EC:
lea rdi, aObjectSizeSize; "object_size >= sizeof(FreeListEntry)"
lea rsi, aWorkspaceLlm4b_1; "/workspace/llm4binary/github/2025_star3"...
lea rcx, aObjectpoolObje; "ObjectPool *object_pool_create(Arena *,"...
mov edx, 30h ; '0'
call ___assert_fail
loc_250B:
lea rdi, aObjectsPerChun; "objects_per_chunk > 0"
lea rsi, aWorkspaceLlm4b_1; "/workspace/llm4binary/github/2025_star3"...
lea rcx, aObjectpoolObje; "ObjectPool *object_pool_create(Arena *,"...
mov edx, 31h ; '1'
call ___assert_fail
| long long object_pool_create(long long a1, unsigned long long a2, long long a3)
{
long long result; // rax
if ( !a1 )
__assert_fail(
"arena != NULL",
"/workspace/llm4binary/github/2025_star3/tsotchke[P]eshkol/src/core/memory/object_pool.c",
47LL,
"ObjectPool *object_pool_create(Arena *, size_t, size_t)");
if ( a2 <= 7 )
__assert_fail(
"object_size >= sizeof(FreeListEntry)",
"/workspace/llm4binary/github/2025_star3/tsotchke[P]eshkol/src/core/memory/object_pool.c",
48LL,
"ObjectPool *object_pool_create(Arena *, size_t, size_t)");
if ( !a3 )
__assert_fail(
"objects_per_chunk > 0",
"/workspace/llm4binary/github/2025_star3/tsotchke[P]eshkol/src/core/memory/object_pool.c",
49LL,
"ObjectPool *object_pool_create(Arena *, size_t, size_t)");
result = arena_alloc(a1, 64LL);
if ( result )
{
*(_QWORD *)result = a1;
*(_OWORD *)(result + 8) = 0LL;
*(_QWORD *)(result + 24) = a2;
*(_QWORD *)(result + 32) = a3;
*(_OWORD *)(result + 40) = 0LL;
*(_QWORD *)(result + 56) = 0LL;
}
return result;
}
| object_pool_create:
PUSH R15
PUSH R14
PUSH RBX
TEST RDI,RDI
JZ 0x001024cd
MOV R14,RSI
CMP RSI,0x7
JBE 0x001024ec
MOV RBX,RDX
TEST RDX,RDX
JZ 0x0010250b
MOV R15,RDI
MOV ESI,0x40
CALL 0x001021a3
TEST RAX,RAX
JZ 0x001024c7
MOV qword ptr [RAX],R15
XORPS XMM0,XMM0
MOVUPS xmmword ptr [RAX + 0x8],XMM0
MOV qword ptr [RAX + 0x18],R14
MOV qword ptr [RAX + 0x20],RBX
MOVUPS xmmword ptr [RAX + 0x28],XMM0
MOV qword ptr [RAX + 0x38],0x0
LAB_001024c7:
POP RBX
POP R14
POP R15
RET
LAB_001024cd:
LEA RDI,[0x103034]
LEA RSI,[0x103990]
LEA RCX,[0x1039e8]
MOV EDX,0x2f
CALL 0x00101070
LAB_001024ec:
LEA RDI,[0x103a20]
LEA RSI,[0x103990]
LEA RCX,[0x1039e8]
MOV EDX,0x30
CALL 0x00101070
LAB_0010250b:
LEA RDI,[0x103a45]
LEA RSI,[0x103990]
LEA RCX,[0x1039e8]
MOV EDX,0x31
CALL 0x00101070
|
void object_pool_create(long param_1,ulong param_2,long param_3)
{
long *plVar1;
if (param_1 == 0) {
/* WARNING: Subroutine does not return */
__assert_fail("arena != NULL",
"/workspace/llm4binary/github/2025_star3/tsotchke[P]eshkol/src/core/memory/object_pool.c"
,0x2f,"ObjectPool *object_pool_create(Arena *, size_t, size_t)");
}
if (7 < param_2) {
if (param_3 != 0) {
plVar1 = (long *)arena_alloc(param_1,0x40);
if (plVar1 != (long *)0x0) {
*plVar1 = param_1;
plVar1[1] = 0;
plVar1[2] = 0;
plVar1[3] = param_2;
plVar1[4] = param_3;
plVar1[5] = 0;
plVar1[6] = 0;
plVar1[7] = 0;
}
return;
}
/* WARNING: Subroutine does not return */
__assert_fail("objects_per_chunk > 0",
"/workspace/llm4binary/github/2025_star3/tsotchke[P]eshkol/src/core/memory/object_pool.c"
,0x31,"ObjectPool *object_pool_create(Arena *, size_t, size_t)");
}
/* WARNING: Subroutine does not return */
__assert_fail("object_size >= sizeof(FreeListEntry)",
"/workspace/llm4binary/github/2025_star3/tsotchke[P]eshkol/src/core/memory/object_pool.c"
,0x30,"ObjectPool *object_pool_create(Arena *, size_t, size_t)");
}
| |
45,285 | JS_CopySubArray | bluesky950520[P]quickjs/quickjs.c | static int JS_CopySubArray(JSContext *ctx,
JSValue obj, int64_t to_pos,
int64_t from_pos, int64_t count, int dir)
{
JSObject *p;
int64_t i, from, to, len;
JSValue val;
int fromPresent;
p = NULL;
if (JS_VALUE_GET_TAG(obj) == JS_TAG_OBJECT) {
p = JS_VALUE_GET_OBJ(obj);
if (p->class_id != JS_CLASS_ARRAY || !p->fast_array) {
p = NULL;
}
}
for (i = 0; i < count; ) {
if (dir < 0) {
from = from_pos + count - i - 1;
to = to_pos + count - i - 1;
} else {
from = from_pos + i;
to = to_pos + i;
}
if (p && p->fast_array &&
from >= 0 && from < (len = p->u.array.count) &&
to >= 0 && to < len) {
int64_t l, j;
/* Fast path for fast arrays. Since we don't look at the
prototype chain, we can optimize only the cases where
all the elements are present in the array. */
l = count - i;
if (dir < 0) {
l = min_int64(l, from + 1);
l = min_int64(l, to + 1);
for(j = 0; j < l; j++) {
set_value(ctx, &p->u.array.u.values[to - j],
js_dup(p->u.array.u.values[from - j]));
}
} else {
l = min_int64(l, len - from);
l = min_int64(l, len - to);
for(j = 0; j < l; j++) {
set_value(ctx, &p->u.array.u.values[to + j],
js_dup(p->u.array.u.values[from + j]));
}
}
i += l;
} else {
fromPresent = JS_TryGetPropertyInt64(ctx, obj, from, &val);
if (fromPresent < 0)
goto exception;
if (fromPresent) {
if (JS_SetPropertyInt64(ctx, obj, to, val) < 0)
goto exception;
} else {
if (JS_DeletePropertyInt64(ctx, obj, to, JS_PROP_THROW) < 0)
goto exception;
}
i++;
}
}
return 0;
exception:
return -1;
} | O0 | c | JS_CopySubArray:
subq $0xc8, %rsp
movl 0xd0(%rsp), %eax
movq %rsi, 0xb0(%rsp)
movq %rdx, 0xb8(%rsp)
movq %rdi, 0xa8(%rsp)
movq %rcx, 0xa0(%rsp)
movq %r8, 0x98(%rsp)
movq %r9, 0x90(%rsp)
movq $0x0, 0x88(%rsp)
movq 0xb8(%rsp), %rax
cmpl $-0x1, %eax
jne 0x8da6a
movq 0xb0(%rsp), %rax
movq %rax, 0x88(%rsp)
movq 0x88(%rsp), %rax
movzwl 0x6(%rax), %eax
cmpl $0x2, %eax
jne 0x8da5c
movq 0x88(%rsp), %rax
movb 0x5(%rax), %al
shrb $0x3, %al
andb $0x1, %al
cmpb $0x0, %al
jne 0x8da68
movq $0x0, 0x88(%rsp)
jmp 0x8da6a
movq $0x0, 0x80(%rsp)
movq 0x80(%rsp), %rax
cmpq 0x90(%rsp), %rax
jge 0x8de24
cmpl $0x0, 0xd0(%rsp)
jge 0x8dada
movq 0x98(%rsp), %rax
addq 0x90(%rsp), %rax
subq 0x80(%rsp), %rax
subq $0x1, %rax
movq %rax, 0x78(%rsp)
movq 0xa0(%rsp), %rax
addq 0x90(%rsp), %rax
subq 0x80(%rsp), %rax
subq $0x1, %rax
movq %rax, 0x70(%rsp)
jmp 0x8db04
movq 0x98(%rsp), %rax
addq 0x80(%rsp), %rax
movq %rax, 0x78(%rsp)
movq 0xa0(%rsp), %rax
addq 0x80(%rsp), %rax
movq %rax, 0x70(%rsp)
cmpq $0x0, 0x88(%rsp)
je 0x8dd67
movq 0x88(%rsp), %rax
movb 0x5(%rax), %al
shrb $0x3, %al
andb $0x1, %al
movzbl %al, %eax
cmpl $0x0, %eax
je 0x8dd67
cmpq $0x0, 0x78(%rsp)
jl 0x8dd67
movq 0x78(%rsp), %rax
movq 0x88(%rsp), %rcx
movl 0x40(%rcx), %ecx
movq %rcx, 0x68(%rsp)
cmpq %rcx, %rax
jge 0x8dd67
cmpq $0x0, 0x70(%rsp)
jl 0x8dd67
movq 0x70(%rsp), %rax
cmpq 0x68(%rsp), %rax
jge 0x8dd67
movq 0x90(%rsp), %rax
subq 0x80(%rsp), %rax
movq %rax, 0x48(%rsp)
cmpl $0x0, 0xd0(%rsp)
jge 0x8dc74
movq 0x48(%rsp), %rdi
movq 0x78(%rsp), %rsi
addq $0x1, %rsi
callq 0x8de50
movq %rax, 0x48(%rsp)
movq 0x48(%rsp), %rdi
movq 0x70(%rsp), %rsi
addq $0x1, %rsi
callq 0x8de50
movq %rax, 0x48(%rsp)
movq $0x0, 0x40(%rsp)
movq 0x40(%rsp), %rax
cmpq 0x48(%rsp), %rax
jge 0x8dc6f
movq 0xa8(%rsp), %rax
movq %rax, 0x10(%rsp)
movq 0x88(%rsp), %rax
movq 0x38(%rax), %rax
movq 0x70(%rsp), %rcx
subq 0x40(%rsp), %rcx
shlq $0x4, %rcx
addq %rcx, %rax
movq %rax, 0x18(%rsp)
movq 0x88(%rsp), %rax
movq 0x38(%rax), %rax
movq 0x78(%rsp), %rcx
subq 0x40(%rsp), %rcx
shlq $0x4, %rcx
addq %rcx, %rax
movq (%rax), %rdi
movq 0x8(%rax), %rsi
callq 0x279c0
movq 0x10(%rsp), %rdi
movq 0x18(%rsp), %rsi
movq %rax, 0x30(%rsp)
movq %rdx, 0x38(%rsp)
movq 0x30(%rsp), %rdx
movq 0x38(%rsp), %rcx
callq 0x2dd30
movq 0x40(%rsp), %rax
addq $0x1, %rax
movq %rax, 0x40(%rsp)
jmp 0x8dbd1
jmp 0x8dd4d
movq 0x48(%rsp), %rdi
movq 0x68(%rsp), %rsi
subq 0x78(%rsp), %rsi
callq 0x8de50
movq %rax, 0x48(%rsp)
movq 0x48(%rsp), %rdi
movq 0x68(%rsp), %rsi
subq 0x70(%rsp), %rsi
callq 0x8de50
movq %rax, 0x48(%rsp)
movq $0x0, 0x40(%rsp)
movq 0x40(%rsp), %rax
cmpq 0x48(%rsp), %rax
jge 0x8dd4b
movq 0xa8(%rsp), %rax
movq %rax, (%rsp)
movq 0x88(%rsp), %rax
movq 0x38(%rax), %rax
movq 0x70(%rsp), %rcx
addq 0x40(%rsp), %rcx
shlq $0x4, %rcx
addq %rcx, %rax
movq %rax, 0x8(%rsp)
movq 0x88(%rsp), %rax
movq 0x38(%rax), %rax
movq 0x78(%rsp), %rcx
addq 0x40(%rsp), %rcx
shlq $0x4, %rcx
addq %rcx, %rax
movq (%rax), %rdi
movq 0x8(%rax), %rsi
callq 0x279c0
movq (%rsp), %rdi
movq 0x8(%rsp), %rsi
movq %rax, 0x20(%rsp)
movq %rdx, 0x28(%rsp)
movq 0x20(%rsp), %rdx
movq 0x28(%rsp), %rcx
callq 0x2dd30
movq 0x40(%rsp), %rax
addq $0x1, %rax
movq %rax, 0x40(%rsp)
jmp 0x8dcaf
jmp 0x8dd4d
movq 0x48(%rsp), %rax
addq 0x80(%rsp), %rax
movq %rax, 0x80(%rsp)
jmp 0x8de1f
movq 0xa8(%rsp), %rdi
movq 0x78(%rsp), %rcx
movq 0xb0(%rsp), %rsi
movq 0xb8(%rsp), %rdx
leaq 0x58(%rsp), %r8
callq 0x8de90
movl %eax, 0x54(%rsp)
cmpl $0x0, 0x54(%rsp)
jge 0x8dd9e
jmp 0x8de31
cmpl $0x0, 0x54(%rsp)
je 0x8ddda
movq 0xa8(%rsp), %rdi
movq 0x70(%rsp), %rcx
movq 0xb0(%rsp), %rsi
movq 0xb8(%rsp), %rdx
movq 0x58(%rsp), %r8
movq 0x60(%rsp), %r9
callq 0x39ea0
cmpl $0x0, %eax
jge 0x8ddd8
jmp 0x8de31
jmp 0x8de0b
movq 0xa8(%rsp), %rdi
movq 0x70(%rsp), %rcx
movq 0xb0(%rsp), %rsi
movq 0xb8(%rsp), %rdx
movl $0x4000, %r8d # imm = 0x4000
callq 0x3e280
cmpl $0x0, %eax
jge 0x8de09
jmp 0x8de31
jmp 0x8de0b
movq 0x80(%rsp), %rax
addq $0x1, %rax
movq %rax, 0x80(%rsp)
jmp 0x8da76
movl $0x0, 0xc4(%rsp)
jmp 0x8de3c
movl $0xffffffff, 0xc4(%rsp) # imm = 0xFFFFFFFF
movl 0xc4(%rsp), %eax
addq $0xc8, %rsp
retq
nopl (%rax,%rax)
| JS_CopySubArray:
sub rsp, 0C8h
mov eax, [rsp+0C8h+arg_0]
mov [rsp+0C8h+var_18], rsi
mov [rsp+0C8h+var_10], rdx
mov [rsp+0C8h+var_20], rdi
mov [rsp+0C8h+var_28], rcx
mov [rsp+0C8h+var_30], r8
mov [rsp+0C8h+var_38], r9
mov [rsp+0C8h+var_40], 0
mov rax, [rsp+0C8h+var_10]
cmp eax, 0FFFFFFFFh
jnz short loc_8DA6A
mov rax, [rsp+0C8h+var_18]
mov [rsp+0C8h+var_40], rax
mov rax, [rsp+0C8h+var_40]
movzx eax, word ptr [rax+6]
cmp eax, 2
jnz short loc_8DA5C
mov rax, [rsp+0C8h+var_40]
mov al, [rax+5]
shr al, 3
and al, 1
cmp al, 0
jnz short loc_8DA68
loc_8DA5C:
mov [rsp+0C8h+var_40], 0
loc_8DA68:
jmp short $+2
loc_8DA6A:
mov [rsp+0C8h+var_48], 0
loc_8DA76:
mov rax, [rsp+0C8h+var_48]
cmp rax, [rsp+0C8h+var_38]
jge loc_8DE24
cmp [rsp+0C8h+arg_0], 0
jge short loc_8DADA
mov rax, [rsp+0C8h+var_30]
add rax, [rsp+0C8h+var_38]
sub rax, [rsp+0C8h+var_48]
sub rax, 1
mov [rsp+0C8h+var_50], rax
mov rax, [rsp+0C8h+var_28]
add rax, [rsp+0C8h+var_38]
sub rax, [rsp+0C8h+var_48]
sub rax, 1
mov [rsp+0C8h+var_58], rax
jmp short loc_8DB04
loc_8DADA:
mov rax, [rsp+0C8h+var_30]
add rax, [rsp+0C8h+var_48]
mov [rsp+0C8h+var_50], rax
mov rax, [rsp+0C8h+var_28]
add rax, [rsp+0C8h+var_48]
mov [rsp+0C8h+var_58], rax
loc_8DB04:
cmp [rsp+0C8h+var_40], 0
jz loc_8DD67
mov rax, [rsp+0C8h+var_40]
mov al, [rax+5]
shr al, 3
and al, 1
movzx eax, al
cmp eax, 0
jz loc_8DD67
cmp [rsp+0C8h+var_50], 0
jl loc_8DD67
mov rax, [rsp+0C8h+var_50]
mov rcx, [rsp+0C8h+var_40]
mov ecx, [rcx+40h]
mov [rsp+0C8h+var_60], rcx
cmp rax, rcx
jge loc_8DD67
cmp [rsp+0C8h+var_58], 0
jl loc_8DD67
mov rax, [rsp+0C8h+var_58]
cmp rax, [rsp+0C8h+var_60]
jge loc_8DD67
mov rax, [rsp+0C8h+var_38]
sub rax, [rsp+0C8h+var_48]
mov [rsp+0C8h+var_80], rax
cmp [rsp+0C8h+arg_0], 0
jge loc_8DC74
mov rdi, [rsp+0C8h+var_80]
mov rsi, [rsp+0C8h+var_50]
add rsi, 1
call min_int64
mov [rsp+0C8h+var_80], rax
mov rdi, [rsp+0C8h+var_80]
mov rsi, [rsp+0C8h+var_58]
add rsi, 1
call min_int64
mov [rsp+0C8h+var_80], rax
mov [rsp+0C8h+var_88], 0
loc_8DBD1:
mov rax, [rsp+0C8h+var_88]
cmp rax, [rsp+0C8h+var_80]
jge loc_8DC6F
mov rax, [rsp+0C8h+var_20]
mov [rsp+0C8h+var_B8], rax
mov rax, [rsp+0C8h+var_40]
mov rax, [rax+38h]
mov rcx, [rsp+0C8h+var_58]
sub rcx, [rsp+0C8h+var_88]
shl rcx, 4
add rax, rcx
mov [rsp+0C8h+var_B0], rax
mov rax, [rsp+0C8h+var_40]
mov rax, [rax+38h]
mov rcx, [rsp+0C8h+var_50]
sub rcx, [rsp+0C8h+var_88]
shl rcx, 4
add rax, rcx
mov rdi, [rax]
mov rsi, [rax+8]
call js_dup
mov rdi, [rsp+0C8h+var_B8]
mov rsi, [rsp+0C8h+var_B0]
mov [rsp+0C8h+var_98], rax
mov [rsp+0C8h+var_90], rdx
mov rdx, [rsp+0C8h+var_98]
mov rcx, [rsp+0C8h+var_90]
call set_value
mov rax, [rsp+0C8h+var_88]
add rax, 1
mov [rsp+0C8h+var_88], rax
jmp loc_8DBD1
loc_8DC6F:
jmp loc_8DD4D
loc_8DC74:
mov rdi, [rsp+0C8h+var_80]
mov rsi, [rsp+0C8h+var_60]
sub rsi, [rsp+0C8h+var_50]
call min_int64
mov [rsp+0C8h+var_80], rax
mov rdi, [rsp+0C8h+var_80]
mov rsi, [rsp+0C8h+var_60]
sub rsi, [rsp+0C8h+var_58]
call min_int64
mov [rsp+0C8h+var_80], rax
mov [rsp+0C8h+var_88], 0
loc_8DCAF:
mov rax, [rsp+0C8h+var_88]
cmp rax, [rsp+0C8h+var_80]
jge loc_8DD4B
mov rax, [rsp+0C8h+var_20]
mov [rsp+0C8h+var_C8], rax
mov rax, [rsp+0C8h+var_40]
mov rax, [rax+38h]
mov rcx, [rsp+0C8h+var_58]
add rcx, [rsp+0C8h+var_88]
shl rcx, 4
add rax, rcx
mov [rsp+0C8h+var_C0], rax
mov rax, [rsp+0C8h+var_40]
mov rax, [rax+38h]
mov rcx, [rsp+0C8h+var_50]
add rcx, [rsp+0C8h+var_88]
shl rcx, 4
add rax, rcx
mov rdi, [rax]
mov rsi, [rax+8]
call js_dup
mov rdi, [rsp+0C8h+var_C8]
mov rsi, [rsp+0C8h+var_C0]
mov [rsp+0C8h+var_A8], rax
mov [rsp+0C8h+var_A0], rdx
mov rdx, [rsp+0C8h+var_A8]
mov rcx, [rsp+0C8h+var_A0]
call set_value
mov rax, [rsp+0C8h+var_88]
add rax, 1
mov [rsp+0C8h+var_88], rax
jmp loc_8DCAF
loc_8DD4B:
jmp short $+2
loc_8DD4D:
mov rax, [rsp+0C8h+var_80]
add rax, [rsp+0C8h+var_48]
mov [rsp+0C8h+var_48], rax
jmp loc_8DE1F
loc_8DD67:
mov rdi, [rsp+0C8h+var_20]
mov rcx, [rsp+0C8h+var_50]
mov rsi, [rsp+0C8h+var_18]
mov rdx, [rsp+0C8h+var_10]
lea r8, [rsp+0C8h+var_70]
call JS_TryGetPropertyInt64
mov [rsp+0C8h+var_74], eax
cmp [rsp+0C8h+var_74], 0
jge short loc_8DD9E
jmp loc_8DE31
loc_8DD9E:
cmp [rsp+0C8h+var_74], 0
jz short loc_8DDDA
mov rdi, [rsp+0C8h+var_20]
mov rcx, [rsp+0C8h+var_58]
mov rsi, [rsp+0C8h+var_18]
mov rdx, [rsp+0C8h+var_10]
mov r8, [rsp+0C8h+var_70]
mov r9, [rsp+0C8h+var_68]
call JS_SetPropertyInt64
cmp eax, 0
jge short loc_8DDD8
jmp short loc_8DE31
loc_8DDD8:
jmp short loc_8DE0B
loc_8DDDA:
mov rdi, [rsp+0C8h+var_20]
mov rcx, [rsp+0C8h+var_58]
mov rsi, [rsp+0C8h+var_18]
mov rdx, [rsp+0C8h+var_10]
mov r8d, 4000h
call JS_DeletePropertyInt64
cmp eax, 0
jge short loc_8DE09
jmp short loc_8DE31
loc_8DE09:
jmp short $+2
loc_8DE0B:
mov rax, [rsp+0C8h+var_48]
add rax, 1
mov [rsp+0C8h+var_48], rax
loc_8DE1F:
jmp loc_8DA76
loc_8DE24:
mov [rsp+0C8h+var_4], 0
jmp short loc_8DE3C
loc_8DE31:
mov [rsp+0C8h+var_4], 0FFFFFFFFh
loc_8DE3C:
mov eax, [rsp+0C8h+var_4]
add rsp, 0C8h
retn
| long long JS_CopySubArray(
long long a1,
long long a2,
long long a3,
long long a4,
long long a5,
long long a6,
__m128 a7,
__m128 a8,
__m128 a9,
__m128 a10,
double a11,
double a12,
__m128 a13,
__m128 a14,
int a15)
{
long long v15; // rax
long long v16; // rax
long long v17; // rdx
long long v18; // rax
long long v19; // rax
long long v20; // rdx
double v21; // xmm4_8
double v22; // xmm5_8
long long v24; // [rsp+0h] [rbp-C8h]
long long *v25; // [rsp+8h] [rbp-C0h]
long long v26; // [rsp+10h] [rbp-B8h]
long long *v27; // [rsp+18h] [rbp-B0h]
_DWORD *v28; // [rsp+20h] [rbp-A8h]
_DWORD *v29; // [rsp+30h] [rbp-98h]
long long k; // [rsp+40h] [rbp-88h]
long long j; // [rsp+40h] [rbp-88h]
long long v32; // [rsp+48h] [rbp-80h]
long long v33; // [rsp+48h] [rbp-80h]
int PropertyInt64; // [rsp+54h] [rbp-74h]
long long v35[2]; // [rsp+58h] [rbp-70h] BYREF
signed long long v36; // [rsp+68h] [rbp-60h]
signed long long v37; // [rsp+70h] [rbp-58h]
long long v38; // [rsp+78h] [rbp-50h]
long long i; // [rsp+80h] [rbp-48h]
long long v40; // [rsp+88h] [rbp-40h]
long long v41; // [rsp+90h] [rbp-38h]
long long v42; // [rsp+98h] [rbp-30h]
long long v43; // [rsp+A0h] [rbp-28h]
long long v44; // [rsp+A8h] [rbp-20h]
long long v45; // [rsp+B0h] [rbp-18h]
long long v46; // [rsp+B8h] [rbp-10h]
v45 = a2;
v46 = a3;
v44 = a1;
v43 = a4;
v42 = a5;
v41 = a6;
v40 = 0LL;
if ( (_DWORD)a3 == -1 )
{
v40 = v45;
if ( *(_WORD *)(v45 + 6) != 2 || (*(_BYTE *)(v40 + 5) & 8) == 0 )
v40 = 0LL;
}
for ( i = 0LL; ; ++i )
{
while ( 1 )
{
if ( i >= v41 )
return 0;
if ( a15 >= 0 )
{
v38 = i + v42;
v37 = i + v43;
}
else
{
v38 = v41 + v42 - i - 1;
v37 = v41 + v43 - i - 1;
}
if ( !v40 )
break;
if ( (*(_BYTE *)(v40 + 5) & 8) == 0 )
break;
if ( v38 < 0 )
break;
v36 = *(unsigned int *)(v40 + 64);
if ( v38 >= v36 || v37 < 0 || v37 >= v36 )
break;
v32 = v41 - i;
if ( a15 >= 0 )
{
v18 = min_int64(v32, v36 - v38);
v33 = min_int64(v18, v36 - v37);
for ( j = 0LL; j < v33; ++j )
{
v24 = v44;
v25 = (long long *)(16 * (j + v37) + *(_QWORD *)(v40 + 56));
v19 = 16 * (j + v38) + *(_QWORD *)(v40 + 56);
v28 = js_dup(*(_DWORD **)v19, *(_QWORD *)(v19 + 8));
set_value(v24, v25, (long long)v28, v20);
}
}
else
{
v15 = min_int64(v32, v38 + 1);
v33 = min_int64(v15, v37 + 1);
for ( k = 0LL; k < v33; ++k )
{
v26 = v44;
v27 = (long long *)(16 * (v37 - k) + *(_QWORD *)(v40 + 56));
v16 = 16 * (v38 - k) + *(_QWORD *)(v40 + 56);
v29 = js_dup(*(_DWORD **)v16, *(_QWORD *)(v16 + 8));
set_value(v26, v27, (long long)v29, v17);
}
}
i += v33;
}
PropertyInt64 = JS_TryGetPropertyInt64(v44, v45, v46, v38, v35);
if ( PropertyInt64 < 0 )
break;
if ( PropertyInt64 )
{
if ( (int)JS_SetPropertyInt64(v44, v45, v46, v37, v35[0], v35[1]) < 0 )
break;
}
else if ( (int)JS_DeletePropertyInt64(v44, v45, v46, v37, 0x4000, a7, a8, a9, a10, v21, v22, a13, a14) < 0 )
{
break;
}
}
return (unsigned int)-1;
}
| JS_CopySubArray:
SUB RSP,0xc8
MOV EAX,dword ptr [RSP + 0xd0]
MOV qword ptr [RSP + 0xb0],RSI
MOV qword ptr [RSP + 0xb8],RDX
MOV qword ptr [RSP + 0xa8],RDI
MOV qword ptr [RSP + 0xa0],RCX
MOV qword ptr [RSP + 0x98],R8
MOV qword ptr [RSP + 0x90],R9
MOV qword ptr [RSP + 0x88],0x0
MOV RAX,qword ptr [RSP + 0xb8]
CMP EAX,-0x1
JNZ 0x0018da6a
MOV RAX,qword ptr [RSP + 0xb0]
MOV qword ptr [RSP + 0x88],RAX
MOV RAX,qword ptr [RSP + 0x88]
MOVZX EAX,word ptr [RAX + 0x6]
CMP EAX,0x2
JNZ 0x0018da5c
MOV RAX,qword ptr [RSP + 0x88]
MOV AL,byte ptr [RAX + 0x5]
SHR AL,0x3
AND AL,0x1
CMP AL,0x0
JNZ 0x0018da68
LAB_0018da5c:
MOV qword ptr [RSP + 0x88],0x0
LAB_0018da68:
JMP 0x0018da6a
LAB_0018da6a:
MOV qword ptr [RSP + 0x80],0x0
LAB_0018da76:
MOV RAX,qword ptr [RSP + 0x80]
CMP RAX,qword ptr [RSP + 0x90]
JGE 0x0018de24
CMP dword ptr [RSP + 0xd0],0x0
JGE 0x0018dada
MOV RAX,qword ptr [RSP + 0x98]
ADD RAX,qword ptr [RSP + 0x90]
SUB RAX,qword ptr [RSP + 0x80]
SUB RAX,0x1
MOV qword ptr [RSP + 0x78],RAX
MOV RAX,qword ptr [RSP + 0xa0]
ADD RAX,qword ptr [RSP + 0x90]
SUB RAX,qword ptr [RSP + 0x80]
SUB RAX,0x1
MOV qword ptr [RSP + 0x70],RAX
JMP 0x0018db04
LAB_0018dada:
MOV RAX,qword ptr [RSP + 0x98]
ADD RAX,qword ptr [RSP + 0x80]
MOV qword ptr [RSP + 0x78],RAX
MOV RAX,qword ptr [RSP + 0xa0]
ADD RAX,qword ptr [RSP + 0x80]
MOV qword ptr [RSP + 0x70],RAX
LAB_0018db04:
CMP qword ptr [RSP + 0x88],0x0
JZ 0x0018dd67
MOV RAX,qword ptr [RSP + 0x88]
MOV AL,byte ptr [RAX + 0x5]
SHR AL,0x3
AND AL,0x1
MOVZX EAX,AL
CMP EAX,0x0
JZ 0x0018dd67
CMP qword ptr [RSP + 0x78],0x0
JL 0x0018dd67
MOV RAX,qword ptr [RSP + 0x78]
MOV RCX,qword ptr [RSP + 0x88]
MOV ECX,dword ptr [RCX + 0x40]
MOV qword ptr [RSP + 0x68],RCX
CMP RAX,RCX
JGE 0x0018dd67
CMP qword ptr [RSP + 0x70],0x0
JL 0x0018dd67
MOV RAX,qword ptr [RSP + 0x70]
CMP RAX,qword ptr [RSP + 0x68]
JGE 0x0018dd67
MOV RAX,qword ptr [RSP + 0x90]
SUB RAX,qword ptr [RSP + 0x80]
MOV qword ptr [RSP + 0x48],RAX
CMP dword ptr [RSP + 0xd0],0x0
JGE 0x0018dc74
MOV RDI,qword ptr [RSP + 0x48]
MOV RSI,qword ptr [RSP + 0x78]
ADD RSI,0x1
CALL 0x0018de50
MOV qword ptr [RSP + 0x48],RAX
MOV RDI,qword ptr [RSP + 0x48]
MOV RSI,qword ptr [RSP + 0x70]
ADD RSI,0x1
CALL 0x0018de50
MOV qword ptr [RSP + 0x48],RAX
MOV qword ptr [RSP + 0x40],0x0
LAB_0018dbd1:
MOV RAX,qword ptr [RSP + 0x40]
CMP RAX,qword ptr [RSP + 0x48]
JGE 0x0018dc6f
MOV RAX,qword ptr [RSP + 0xa8]
MOV qword ptr [RSP + 0x10],RAX
MOV RAX,qword ptr [RSP + 0x88]
MOV RAX,qword ptr [RAX + 0x38]
MOV RCX,qword ptr [RSP + 0x70]
SUB RCX,qword ptr [RSP + 0x40]
SHL RCX,0x4
ADD RAX,RCX
MOV qword ptr [RSP + 0x18],RAX
MOV RAX,qword ptr [RSP + 0x88]
MOV RAX,qword ptr [RAX + 0x38]
MOV RCX,qword ptr [RSP + 0x78]
SUB RCX,qword ptr [RSP + 0x40]
SHL RCX,0x4
ADD RAX,RCX
MOV RDI,qword ptr [RAX]
MOV RSI,qword ptr [RAX + 0x8]
CALL 0x001279c0
MOV RDI,qword ptr [RSP + 0x10]
MOV RSI,qword ptr [RSP + 0x18]
MOV qword ptr [RSP + 0x30],RAX
MOV qword ptr [RSP + 0x38],RDX
MOV RDX,qword ptr [RSP + 0x30]
MOV RCX,qword ptr [RSP + 0x38]
CALL 0x0012dd30
MOV RAX,qword ptr [RSP + 0x40]
ADD RAX,0x1
MOV qword ptr [RSP + 0x40],RAX
JMP 0x0018dbd1
LAB_0018dc6f:
JMP 0x0018dd4d
LAB_0018dc74:
MOV RDI,qword ptr [RSP + 0x48]
MOV RSI,qword ptr [RSP + 0x68]
SUB RSI,qword ptr [RSP + 0x78]
CALL 0x0018de50
MOV qword ptr [RSP + 0x48],RAX
MOV RDI,qword ptr [RSP + 0x48]
MOV RSI,qword ptr [RSP + 0x68]
SUB RSI,qword ptr [RSP + 0x70]
CALL 0x0018de50
MOV qword ptr [RSP + 0x48],RAX
MOV qword ptr [RSP + 0x40],0x0
LAB_0018dcaf:
MOV RAX,qword ptr [RSP + 0x40]
CMP RAX,qword ptr [RSP + 0x48]
JGE 0x0018dd4b
MOV RAX,qword ptr [RSP + 0xa8]
MOV qword ptr [RSP],RAX
MOV RAX,qword ptr [RSP + 0x88]
MOV RAX,qword ptr [RAX + 0x38]
MOV RCX,qword ptr [RSP + 0x70]
ADD RCX,qword ptr [RSP + 0x40]
SHL RCX,0x4
ADD RAX,RCX
MOV qword ptr [RSP + 0x8],RAX
MOV RAX,qword ptr [RSP + 0x88]
MOV RAX,qword ptr [RAX + 0x38]
MOV RCX,qword ptr [RSP + 0x78]
ADD RCX,qword ptr [RSP + 0x40]
SHL RCX,0x4
ADD RAX,RCX
MOV RDI,qword ptr [RAX]
MOV RSI,qword ptr [RAX + 0x8]
CALL 0x001279c0
MOV RDI,qword ptr [RSP]
MOV RSI,qword ptr [RSP + 0x8]
MOV qword ptr [RSP + 0x20],RAX
MOV qword ptr [RSP + 0x28],RDX
MOV RDX,qword ptr [RSP + 0x20]
MOV RCX,qword ptr [RSP + 0x28]
CALL 0x0012dd30
MOV RAX,qword ptr [RSP + 0x40]
ADD RAX,0x1
MOV qword ptr [RSP + 0x40],RAX
JMP 0x0018dcaf
LAB_0018dd4b:
JMP 0x0018dd4d
LAB_0018dd4d:
MOV RAX,qword ptr [RSP + 0x48]
ADD RAX,qword ptr [RSP + 0x80]
MOV qword ptr [RSP + 0x80],RAX
JMP 0x0018de1f
LAB_0018dd67:
MOV RDI,qword ptr [RSP + 0xa8]
MOV RCX,qword ptr [RSP + 0x78]
MOV RSI,qword ptr [RSP + 0xb0]
MOV RDX,qword ptr [RSP + 0xb8]
LEA R8,[RSP + 0x58]
CALL 0x0018de90
MOV dword ptr [RSP + 0x54],EAX
CMP dword ptr [RSP + 0x54],0x0
JGE 0x0018dd9e
JMP 0x0018de31
LAB_0018dd9e:
CMP dword ptr [RSP + 0x54],0x0
JZ 0x0018ddda
MOV RDI,qword ptr [RSP + 0xa8]
MOV RCX,qword ptr [RSP + 0x70]
MOV RSI,qword ptr [RSP + 0xb0]
MOV RDX,qword ptr [RSP + 0xb8]
MOV R8,qword ptr [RSP + 0x58]
MOV R9,qword ptr [RSP + 0x60]
CALL 0x00139ea0
CMP EAX,0x0
JGE 0x0018ddd8
JMP 0x0018de31
LAB_0018ddd8:
JMP 0x0018de0b
LAB_0018ddda:
MOV RDI,qword ptr [RSP + 0xa8]
MOV RCX,qword ptr [RSP + 0x70]
MOV RSI,qword ptr [RSP + 0xb0]
MOV RDX,qword ptr [RSP + 0xb8]
MOV R8D,0x4000
CALL 0x0013e280
CMP EAX,0x0
JGE 0x0018de09
JMP 0x0018de31
LAB_0018de09:
JMP 0x0018de0b
LAB_0018de0b:
MOV RAX,qword ptr [RSP + 0x80]
ADD RAX,0x1
MOV qword ptr [RSP + 0x80],RAX
LAB_0018de1f:
JMP 0x0018da76
LAB_0018de24:
MOV dword ptr [RSP + 0xc4],0x0
JMP 0x0018de3c
LAB_0018de31:
MOV dword ptr [RSP + 0xc4],0xffffffff
LAB_0018de3c:
MOV EAX,dword ptr [RSP + 0xc4]
ADD RSP,0xc8
RET
|
int4
JS_CopySubArray(int8 param_1,long param_2,int8 param_3,long param_4,long param_5,
long param_6,int param_7)
{
long lVar1;
int iVar2;
int8 uVar3;
int8 *puVar4;
long lVar5;
int1 auVar6 [16];
long local_88;
long local_80;
int8 local_70;
int8 local_68;
ulong local_60;
long local_58;
long local_50;
long local_48;
long local_40;
long local_38;
long local_30;
long local_28;
int8 local_20;
long local_18;
int8 local_10;
local_40 = 0;
if (((int)param_3 == -1) &&
((*(short *)(param_2 + 6) != 2 || (local_40 = param_2, (*(byte *)(param_2 + 5) >> 3 & 1) == 0))
)) {
local_40 = 0;
}
local_48 = 0;
local_38 = param_6;
local_30 = param_5;
local_28 = param_4;
local_20 = param_1;
local_18 = param_2;
local_10 = param_3;
while( true ) {
while( true ) {
if (local_38 <= local_48) {
return 0;
}
if (param_7 < 0) {
local_50 = ((local_30 + local_38) - local_48) + -1;
local_58 = ((local_28 + local_38) - local_48) + -1;
}
else {
local_50 = local_30 + local_48;
local_58 = local_28 + local_48;
}
if ((((local_40 == 0) || ((*(byte *)(local_40 + 5) >> 3 & 1) == 0)) || (local_50 < 0)) ||
(((local_60 = (ulong)*(uint *)(local_40 + 0x40), (long)local_60 <= local_50 ||
(local_58 < 0)) || ((long)local_60 <= local_58)))) break;
if (param_7 < 0) {
uVar3 = min_int64(local_38 - local_48,local_50 + 1);
local_80 = min_int64(uVar3,local_58 + 1);
for (local_88 = 0; uVar3 = local_20, local_88 < local_80; local_88 = local_88 + 1) {
lVar1 = *(long *)(local_40 + 0x38);
lVar5 = local_58 - local_88;
puVar4 = (int8 *)(*(long *)(local_40 + 0x38) + (local_50 - local_88) * 0x10);
auVar6 = js_dup(*puVar4,puVar4[1]);
set_value(uVar3,lVar1 + lVar5 * 0x10,auVar6._0_8_,auVar6._8_8_);
}
}
else {
uVar3 = min_int64(local_38 - local_48,local_60 - local_50);
local_80 = min_int64(uVar3,local_60 - local_58);
for (local_88 = 0; uVar3 = local_20, local_88 < local_80; local_88 = local_88 + 1) {
lVar1 = *(long *)(local_40 + 0x38);
lVar5 = local_58 + local_88;
puVar4 = (int8 *)(*(long *)(local_40 + 0x38) + (local_50 + local_88) * 0x10);
auVar6 = js_dup(*puVar4,puVar4[1]);
set_value(uVar3,lVar1 + lVar5 * 0x10,auVar6._0_8_,auVar6._8_8_);
}
}
local_48 = local_80 + local_48;
}
iVar2 = JS_TryGetPropertyInt64(local_20,local_18,local_10,local_50,&local_70);
if (iVar2 < 0) break;
if (iVar2 == 0) {
iVar2 = JS_DeletePropertyInt64(local_20,local_18,local_10,local_58,0x4000);
}
else {
iVar2 = JS_SetPropertyInt64(local_20,local_18,local_10,local_58,local_70,local_68);
}
if (iVar2 < 0) {
return 0xffffffff;
}
local_48 = local_48 + 1;
}
return 0xffffffff;
}
| |
45,286 | JS_CopySubArray | bluesky950520[P]quickjs/quickjs.c | static int JS_CopySubArray(JSContext *ctx,
JSValue obj, int64_t to_pos,
int64_t from_pos, int64_t count, int dir)
{
JSObject *p;
int64_t i, from, to, len;
JSValue val;
int fromPresent;
p = NULL;
if (JS_VALUE_GET_TAG(obj) == JS_TAG_OBJECT) {
p = JS_VALUE_GET_OBJ(obj);
if (p->class_id != JS_CLASS_ARRAY || !p->fast_array) {
p = NULL;
}
}
for (i = 0; i < count; ) {
if (dir < 0) {
from = from_pos + count - i - 1;
to = to_pos + count - i - 1;
} else {
from = from_pos + i;
to = to_pos + i;
}
if (p && p->fast_array &&
from >= 0 && from < (len = p->u.array.count) &&
to >= 0 && to < len) {
int64_t l, j;
/* Fast path for fast arrays. Since we don't look at the
prototype chain, we can optimize only the cases where
all the elements are present in the array. */
l = count - i;
if (dir < 0) {
l = min_int64(l, from + 1);
l = min_int64(l, to + 1);
for(j = 0; j < l; j++) {
set_value(ctx, &p->u.array.u.values[to - j],
js_dup(p->u.array.u.values[from - j]));
}
} else {
l = min_int64(l, len - from);
l = min_int64(l, len - to);
for(j = 0; j < l; j++) {
set_value(ctx, &p->u.array.u.values[to + j],
js_dup(p->u.array.u.values[from + j]));
}
}
i += l;
} else {
fromPresent = JS_TryGetPropertyInt64(ctx, obj, from, &val);
if (fromPresent < 0)
goto exception;
if (fromPresent) {
if (JS_SetPropertyInt64(ctx, obj, to, val) < 0)
goto exception;
} else {
if (JS_DeletePropertyInt64(ctx, obj, to, JS_PROP_THROW) < 0)
goto exception;
}
i++;
}
}
return 0;
exception:
return -1;
} | O2 | c | JS_CopySubArray:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x58, %rsp
movq %r9, %r12
movq %r8, 0x28(%rsp)
movq %rcx, 0x20(%rsp)
movq %rdi, %rbp
movq %rdx, 0x10(%rsp)
cmpl $-0x1, %edx
jne 0x46052
cmpw $0x2, 0x6(%rsi)
jne 0x46052
testb $0x8, 0x5(%rsi)
movq %rsi, %r13
jne 0x46055
xorl %r13d, %r13d
movq %rsi, 0x8(%rsp)
movq 0x28(%rsp), %rax
addq %r12, %rax
movq %rax, 0x38(%rsp)
movq 0x20(%rsp), %rax
addq %r12, %rax
movq %rax, 0x30(%rsp)
xorl %r14d, %r14d
movq %r12, 0x18(%rsp)
movq %r12, %rax
subq %r14, %rax
jle 0x46227
cmpl $0x0, 0x90(%rsp)
movq %r14, 0x40(%rsp)
js 0x460aa
movq 0x28(%rsp), %rcx
leaq (%r14,%rcx), %r15
movq 0x20(%rsp), %rcx
addq %rcx, %r14
jmp 0x460bb
notq %r14
movq 0x38(%rsp), %rcx
leaq (%rcx,%r14), %r15
addq 0x30(%rsp), %r14
testq %r13, %r13
je 0x46149
testb $0x8, 0x5(%r13)
je 0x46149
testq %r15, %r15
js 0x46149
movl 0x40(%r13), %ecx
movq %rcx, %rbx
subq %r15, %rbx
jbe 0x46149
subq %r14, %rcx
jbe 0x46149
cmpl $0x0, 0x90(%rsp)
js 0x461bd
cmpq %rbx, %rax
cmovlq %rax, %rbx
cmpq %rcx, %rbx
cmovgeq %rcx, %rbx
testq %rbx, %rbx
movl $0x0, %r12d
cmovgq %rbx, %r12
shlq $0x4, %r15
orq $0x8, %r15
shlq $0x4, %r14
subq $0x1, %r12
jb 0x4621b
movq 0x38(%r13), %rsi
movq -0x8(%rsi,%r15), %rdx
movq (%rsi,%r15), %rcx
cmpl $-0x9, %ecx
jb 0x46134
incl (%rdx)
addq %r14, %rsi
movq %rbp, %rdi
callq 0x1da9c
addq $0x10, %r15
addq $0x10, %r14
jmp 0x46116
movq %rbp, %rdi
movq 0x8(%rsp), %rsi
movq 0x10(%rsp), %rdx
movq %r15, %rcx
leaq 0x48(%rsp), %r8
callq 0x46238
testl %eax, %eax
js 0x46222
je 0x4618e
movq 0x48(%rsp), %r8
movq 0x50(%rsp), %r9
movq %rbp, %rdi
movq 0x8(%rsp), %rsi
movq 0x10(%rsp), %rdx
movq %r14, %rcx
callq 0x22c56
jmp 0x461a9
movq %rbp, %rdi
movq 0x8(%rsp), %rsi
movq 0x10(%rsp), %rdx
movq %r14, %rcx
movl $0x4000, %r8d # imm = 0x4000
callq 0x24c59
pushq $0x1
popq %rbx
testl %eax, %eax
js 0x46222
movq 0x40(%rsp), %r14
addq %rbx, %r14
jmp 0x4607c
leaq 0x1(%r15), %rbx
cmpq %rbx, %rax
cmovlq %rax, %rbx
leaq 0x1(%r14), %rax
cmpq %rax, %rbx
cmovgeq %rax, %rbx
testq %rbx, %rbx
movl $0x0, %r12d
cmovgq %rbx, %r12
shlq $0x4, %r14
shlq $0x4, %r15
orq $0x8, %r15
subq $0x1, %r12
jb 0x4621b
movq 0x38(%r13), %rsi
movq -0x8(%rsi,%r15), %rdx
movq (%rsi,%r15), %rcx
cmpl $-0x9, %ecx
jb 0x46206
incl (%rdx)
addq %r14, %rsi
movq %rbp, %rdi
callq 0x1da9c
addq $-0x10, %r14
addq $-0x10, %r15
jmp 0x461ec
movq 0x18(%rsp), %r12
jmp 0x461b0
pushq $-0x1
popq %rax
jmp 0x46229
xorl %eax, %eax
addq $0x58, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
| JS_CopySubArray:
push rbp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 58h
mov r12, r9
mov [rsp+88h+var_60], r8
mov [rsp+88h+var_68], rcx
mov rbp, rdi
mov [rsp+88h+var_78], rdx
cmp edx, 0FFFFFFFFh
jnz short loc_46052
cmp word ptr [rsi+6], 2
jnz short loc_46052
test byte ptr [rsi+5], 8
mov r13, rsi
jnz short loc_46055
loc_46052:
xor r13d, r13d
loc_46055:
mov [rsp+88h+var_80], rsi
mov rax, [rsp+88h+var_60]
add rax, r12
mov [rsp+88h+var_50], rax
mov rax, [rsp+88h+var_68]
add rax, r12
mov [rsp+88h+var_58], rax
xor r14d, r14d
mov [rsp+88h+var_70], r12
loc_4607C:
mov rax, r12
sub rax, r14
jle loc_46227
cmp [rsp+88h+arg_0], 0
mov [rsp+88h+var_48], r14
js short loc_460AA
mov rcx, [rsp+88h+var_60]
lea r15, [r14+rcx]
mov rcx, [rsp+88h+var_68]
add r14, rcx
jmp short loc_460BB
loc_460AA:
not r14
mov rcx, [rsp+88h+var_50]
lea r15, [rcx+r14]
add r14, [rsp+88h+var_58]
loc_460BB:
test r13, r13
jz loc_46149
test byte ptr [r13+5], 8
jz short loc_46149
test r15, r15
js short loc_46149
mov ecx, [r13+40h]
mov rbx, rcx
sub rbx, r15
jbe short loc_46149
sub rcx, r14
jbe short loc_46149
cmp [rsp+88h+arg_0], 0
js loc_461BD
cmp rax, rbx
cmovl rbx, rax
cmp rbx, rcx
cmovge rbx, rcx
test rbx, rbx
mov r12d, 0
cmovg r12, rbx
shl r15, 4
or r15, 8
shl r14, 4
loc_46116:
sub r12, 1
jb loc_4621B
mov rsi, [r13+38h]
mov rdx, [rsi+r15-8]
mov rcx, [rsi+r15]
cmp ecx, 0FFFFFFF7h
jb short loc_46134
inc dword ptr [rdx]
loc_46134:
add rsi, r14
mov rdi, rbp
call set_value
add r15, 10h
add r14, 10h
jmp short loc_46116
loc_46149:
mov rdi, rbp
mov rsi, [rsp+88h+var_80]
mov rdx, [rsp+88h+var_78]
mov rcx, r15
lea r8, [rsp+88h+var_40]
call JS_TryGetPropertyInt64
test eax, eax
js loc_46222
jz short loc_4618E
mov r8, [rsp+88h+var_40]
mov r9, [rsp+88h+var_38]
mov rdi, rbp
mov rsi, [rsp+88h+var_80]
mov rdx, [rsp+88h+var_78]
mov rcx, r14
call JS_SetPropertyInt64
jmp short loc_461A9
loc_4618E:
mov rdi, rbp
mov rsi, [rsp+88h+var_80]
mov rdx, [rsp+88h+var_78]
mov rcx, r14
mov r8d, 4000h
call JS_DeletePropertyInt64
loc_461A9:
push 1
pop rbx
test eax, eax
js short loc_46222
loc_461B0:
mov r14, [rsp+88h+var_48]
add r14, rbx
jmp loc_4607C
loc_461BD:
lea rbx, [r15+1]
cmp rax, rbx
cmovl rbx, rax
lea rax, [r14+1]
cmp rbx, rax
cmovge rbx, rax
test rbx, rbx
mov r12d, 0
cmovg r12, rbx
shl r14, 4
shl r15, 4
or r15, 8
loc_461EC:
sub r12, 1
jb short loc_4621B
mov rsi, [r13+38h]
mov rdx, [rsi+r15-8]
mov rcx, [rsi+r15]
cmp ecx, 0FFFFFFF7h
jb short loc_46206
inc dword ptr [rdx]
loc_46206:
add rsi, r14
mov rdi, rbp
call set_value
add r14, 0FFFFFFFFFFFFFFF0h
add r15, 0FFFFFFFFFFFFFFF0h
jmp short loc_461EC
loc_4621B:
mov r12, [rsp+88h+var_70]
jmp short loc_461B0
loc_46222:
push 0FFFFFFFFFFFFFFFFh
pop rax
jmp short loc_46229
loc_46227:
xor eax, eax
loc_46229:
add rsp, 58h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
| long long JS_CopySubArray(
long long a1,
long long a2,
long long a3,
long long a4,
long long a5,
long long a6,
__m128 a7,
__m128 a8,
__m128 a9,
__m128 a10,
double a11,
double a12,
__m128 a13,
__m128 a14,
int a15)
{
long long v15; // r12
long long v16; // r13
long long i; // r14
long long v18; // rax
long long v19; // r15
unsigned long long v20; // r14
long long v21; // r14
unsigned long long v22; // rcx
long long v23; // rbx
bool v24; // cc
long long v25; // rcx
long long v26; // r12
long long v27; // r15
long long k; // r14
bool v29; // cf
long long v30; // rsi
_DWORD *v31; // rdx
long long v32; // rcx
int PropertyInt64; // eax
double v34; // xmm4_8
double v35; // xmm5_8
int v36; // eax
long long v37; // r12
long long v38; // r14
long long j; // r15
long long v40; // rsi
_DWORD *v41; // rdx
long long v42; // rcx
long long v49; // [rsp+30h] [rbp-58h]
long long v50; // [rsp+38h] [rbp-50h]
long long v51; // [rsp+40h] [rbp-48h]
long long v52[8]; // [rsp+48h] [rbp-40h] BYREF
v15 = a6;
if ( (_DWORD)a3 != -1 || *(_WORD *)(a2 + 6) != 2 || (v16 = a2, (*(_BYTE *)(a2 + 5) & 8) == 0) )
v16 = 0LL;
v50 = a6 + a5;
v49 = a6 + a4;
for ( i = 0LL; ; i = v23 + v51 )
{
v18 = v15 - i;
if ( v15 <= i )
break;
v51 = i;
if ( a15 < 0 )
{
v21 = ~i;
v19 = v50 + v21;
v20 = v49 + v21;
}
else
{
v19 = i + a5;
v20 = a4 + i;
}
if ( v16
&& (*(_BYTE *)(v16 + 5) & 8) != 0
&& v19 >= 0
&& (v22 = *(unsigned int *)(v16 + 64), v23 = v22 - v19, v22 > v19)
&& (v24 = v22 <= v20, v25 = v22 - v20, !v24) )
{
if ( a15 < 0 )
{
v23 = v19 + 1;
if ( v18 < v19 + 1 )
v23 = v18;
if ( v23 >= (long long)(v20 + 1) )
v23 = v20 + 1;
v37 = 0LL;
if ( v23 > 0 )
v37 = v23;
v38 = 16 * v20;
for ( j = (16 * v19) | 8; ; j -= 16LL )
{
v29 = v37-- == 0;
if ( v29 )
break;
v40 = *(_QWORD *)(v16 + 56);
v41 = *(_DWORD **)(v40 + j - 8);
v42 = *(_QWORD *)(v40 + j);
if ( (unsigned int)v42 >= 0xFFFFFFF7 )
++*v41;
set_value(a1, (long long *)(v38 + v40), (long long)v41, v42);
v38 -= 16LL;
}
}
else
{
if ( v18 < v23 )
v23 = v18;
if ( v23 >= v25 )
v23 = v25;
v26 = 0LL;
if ( v23 > 0 )
v26 = v23;
v27 = (16 * v19) | 8;
for ( k = 16 * v20; ; k += 16LL )
{
v29 = v26-- == 0;
if ( v29 )
break;
v30 = *(_QWORD *)(v16 + 56);
v31 = *(_DWORD **)(v30 + v27 - 8);
v32 = *(_QWORD *)(v30 + v27);
if ( (unsigned int)v32 >= 0xFFFFFFF7 )
++*v31;
set_value(a1, (long long *)(k + v30), (long long)v31, v32);
v27 += 16LL;
}
}
v15 = a6;
}
else
{
PropertyInt64 = JS_TryGetPropertyInt64(a1, a2, a3, v19, v52);
if ( PropertyInt64 < 0 )
return -1LL;
v36 = PropertyInt64
? JS_SetPropertyInt64(a1, a2, a3, v20, v52[0], v52[1])
: JS_DeletePropertyInt64(a1, a2, a3, v20, 0x4000, a7, a8, a9, a10, v34, v35, a13, a14);
v23 = 1LL;
if ( v36 < 0 )
return -1LL;
}
}
return 0LL;
}
| JS_CopySubArray:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x58
MOV R12,R9
MOV qword ptr [RSP + 0x28],R8
MOV qword ptr [RSP + 0x20],RCX
MOV RBP,RDI
MOV qword ptr [RSP + 0x10],RDX
CMP EDX,-0x1
JNZ 0x00146052
CMP word ptr [RSI + 0x6],0x2
JNZ 0x00146052
TEST byte ptr [RSI + 0x5],0x8
MOV R13,RSI
JNZ 0x00146055
LAB_00146052:
XOR R13D,R13D
LAB_00146055:
MOV qword ptr [RSP + 0x8],RSI
MOV RAX,qword ptr [RSP + 0x28]
ADD RAX,R12
MOV qword ptr [RSP + 0x38],RAX
MOV RAX,qword ptr [RSP + 0x20]
ADD RAX,R12
MOV qword ptr [RSP + 0x30],RAX
XOR R14D,R14D
MOV qword ptr [RSP + 0x18],R12
LAB_0014607c:
MOV RAX,R12
SUB RAX,R14
JLE 0x00146227
CMP dword ptr [RSP + 0x90],0x0
MOV qword ptr [RSP + 0x40],R14
JS 0x001460aa
MOV RCX,qword ptr [RSP + 0x28]
LEA R15,[R14 + RCX*0x1]
MOV RCX,qword ptr [RSP + 0x20]
ADD R14,RCX
JMP 0x001460bb
LAB_001460aa:
NOT R14
MOV RCX,qword ptr [RSP + 0x38]
LEA R15,[RCX + R14*0x1]
ADD R14,qword ptr [RSP + 0x30]
LAB_001460bb:
TEST R13,R13
JZ 0x00146149
TEST byte ptr [R13 + 0x5],0x8
JZ 0x00146149
TEST R15,R15
JS 0x00146149
MOV ECX,dword ptr [R13 + 0x40]
MOV RBX,RCX
SUB RBX,R15
JBE 0x00146149
SUB RCX,R14
JBE 0x00146149
CMP dword ptr [RSP + 0x90],0x0
JS 0x001461bd
CMP RAX,RBX
CMOVL RBX,RAX
CMP RBX,RCX
CMOVGE RBX,RCX
TEST RBX,RBX
MOV R12D,0x0
CMOVG R12,RBX
SHL R15,0x4
OR R15,0x8
SHL R14,0x4
LAB_00146116:
SUB R12,0x1
JC 0x0014621b
MOV RSI,qword ptr [R13 + 0x38]
MOV RDX,qword ptr [RSI + R15*0x1 + -0x8]
MOV RCX,qword ptr [RSI + R15*0x1]
CMP ECX,-0x9
JC 0x00146134
INC dword ptr [RDX]
LAB_00146134:
ADD RSI,R14
MOV RDI,RBP
CALL 0x0011da9c
ADD R15,0x10
ADD R14,0x10
JMP 0x00146116
LAB_00146149:
MOV RDI,RBP
MOV RSI,qword ptr [RSP + 0x8]
MOV RDX,qword ptr [RSP + 0x10]
MOV RCX,R15
LEA R8,[RSP + 0x48]
CALL 0x00146238
TEST EAX,EAX
JS 0x00146222
JZ 0x0014618e
MOV R8,qword ptr [RSP + 0x48]
MOV R9,qword ptr [RSP + 0x50]
MOV RDI,RBP
MOV RSI,qword ptr [RSP + 0x8]
MOV RDX,qword ptr [RSP + 0x10]
MOV RCX,R14
CALL 0x00122c56
JMP 0x001461a9
LAB_0014618e:
MOV RDI,RBP
MOV RSI,qword ptr [RSP + 0x8]
MOV RDX,qword ptr [RSP + 0x10]
MOV RCX,R14
MOV R8D,0x4000
CALL 0x00124c59
LAB_001461a9:
PUSH 0x1
POP RBX
TEST EAX,EAX
JS 0x00146222
LAB_001461b0:
MOV R14,qword ptr [RSP + 0x40]
ADD R14,RBX
JMP 0x0014607c
LAB_001461bd:
LEA RBX,[R15 + 0x1]
CMP RAX,RBX
CMOVL RBX,RAX
LEA RAX,[R14 + 0x1]
CMP RBX,RAX
CMOVGE RBX,RAX
TEST RBX,RBX
MOV R12D,0x0
CMOVG R12,RBX
SHL R14,0x4
SHL R15,0x4
OR R15,0x8
LAB_001461ec:
SUB R12,0x1
JC 0x0014621b
MOV RSI,qword ptr [R13 + 0x38]
MOV RDX,qword ptr [RSI + R15*0x1 + -0x8]
MOV RCX,qword ptr [RSI + R15*0x1]
CMP ECX,-0x9
JC 0x00146206
INC dword ptr [RDX]
LAB_00146206:
ADD RSI,R14
MOV RDI,RBP
CALL 0x0011da9c
ADD R14,-0x10
ADD R15,-0x10
JMP 0x001461ec
LAB_0014621b:
MOV R12,qword ptr [RSP + 0x18]
JMP 0x001461b0
LAB_00146222:
PUSH -0x1
POP RAX
JMP 0x00146229
LAB_00146227:
XOR EAX,EAX
LAB_00146229:
ADD RSP,0x58
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
|
int8
JS_CopySubArray(int8 param_1,long param_2,int8 param_3,long param_4,long param_5,
long param_6,int param_7)
{
long lVar1;
int *piVar2;
int iVar3;
long lVar4;
ulong uVar5;
long lVar6;
long lVar7;
long lVar8;
ulong uVar9;
ulong uVar10;
ulong uVar11;
bool bVar12;
int8 local_40;
int8 local_38;
if ((((int)param_3 != -1) || (*(short *)(param_2 + 6) != 2)) ||
(lVar8 = param_2, (*(byte *)(param_2 + 5) & 8) == 0)) {
lVar8 = 0;
}
uVar10 = 0;
do {
lVar4 = param_6 - uVar10;
if (lVar4 == 0 || param_6 < (long)uVar10) {
return 0;
}
if (param_7 < 0) {
uVar11 = param_5 + param_6 + ~uVar10;
uVar9 = ~uVar10 + param_4 + param_6;
}
else {
uVar11 = uVar10 + param_5;
uVar9 = uVar10 + param_4;
}
if (((lVar8 == 0) || ((*(byte *)(lVar8 + 5) & 8) == 0)) || ((long)uVar11 < 0)) {
LAB_00146149:
iVar3 = JS_TryGetPropertyInt64(param_1,param_2,param_3,uVar11,&local_40);
if (iVar3 < 0) {
return 0xffffffffffffffff;
}
if (iVar3 == 0) {
iVar3 = JS_DeletePropertyInt64(param_1,param_2,param_3,uVar9,0x4000);
}
else {
iVar3 = JS_SetPropertyInt64(param_1,param_2,param_3,uVar9,local_40,local_38);
}
lVar7 = 1;
if (iVar3 < 0) {
return 0xffffffffffffffff;
}
}
else {
uVar5 = (ulong)*(uint *)(lVar8 + 0x40);
lVar7 = uVar5 - uVar11;
if ((uVar5 < uVar11 || lVar7 == 0) || (lVar6 = uVar5 - uVar9, uVar5 < uVar9 || lVar6 == 0))
goto LAB_00146149;
if (param_7 < 0) {
lVar7 = uVar11 + 1;
if (lVar4 < (long)(uVar11 + 1)) {
lVar7 = lVar4;
}
if ((long)(uVar9 + 1) <= lVar7) {
lVar7 = uVar9 + 1;
}
lVar4 = 0;
if (0 < lVar7) {
lVar4 = lVar7;
}
lVar6 = uVar9 << 4;
uVar11 = uVar11 << 4 | 8;
while (bVar12 = lVar4 != 0, lVar4 = lVar4 + -1, bVar12) {
lVar1 = *(long *)(lVar8 + 0x38);
piVar2 = *(int **)(lVar1 + -8 + uVar11);
if (0xfffffff6 < (uint)*(int8 *)(lVar1 + uVar11)) {
*piVar2 = *piVar2 + 1;
}
set_value(param_1,lVar1 + lVar6);
lVar6 = lVar6 + -0x10;
uVar11 = uVar11 - 0x10;
}
}
else {
if (lVar4 < lVar7) {
lVar7 = lVar4;
}
if (lVar6 <= lVar7) {
lVar7 = lVar6;
}
lVar4 = 0;
if (0 < lVar7) {
lVar4 = lVar7;
}
uVar11 = uVar11 << 4 | 8;
lVar6 = uVar9 << 4;
while (bVar12 = lVar4 != 0, lVar4 = lVar4 + -1, bVar12) {
lVar1 = *(long *)(lVar8 + 0x38);
piVar2 = *(int **)(lVar1 + -8 + uVar11);
if (0xfffffff6 < (uint)*(int8 *)(lVar1 + uVar11)) {
*piVar2 = *piVar2 + 1;
}
set_value(param_1,lVar1 + lVar6);
uVar11 = uVar11 + 0x10;
lVar6 = lVar6 + 0x10;
}
}
}
uVar10 = uVar10 + lVar7;
} while( true );
}
| |
45,287 | map_decref_record | bluesky950520[P]quickjs/quickjs.c | static void map_decref_record(JSRuntime *rt, JSMapRecord *mr)
{
if (--mr->ref_count == 0) {
/* the record can be safely removed */
assert(mr->empty);
list_del(&mr->link);
js_free_rt(rt, mr);
}
} | O1 | c | map_decref_record:
decl (%rsi)
je 0x3b47c
retq
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %rbx
movq %rdi, %r14
movq 0x10(%rsi), %rax
movq 0x18(%rsi), %rcx
movq %rcx, 0x8(%rax)
movq %rax, (%rcx)
xorps %xmm0, %xmm0
movups %xmm0, 0x10(%rsi)
decq 0x28(%rdi)
movq %rsi, %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
| map_decref_record:
dec dword ptr [rsi]
jz short loc_3B47C
retn
loc_3B47C:
push r14
push rbx
push rax
mov rbx, rsi
mov r14, rdi
mov rax, [rsi+10h]
mov rcx, [rsi+18h]
mov [rax+8], rcx
mov [rcx], rax
xorps xmm0, xmm0
movups xmmword ptr [rsi+10h], xmm0
dec qword ptr [rdi+28h]
mov rdi, rsi
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 map_decref_record(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 ( (*(_DWORD *)a2)-- == 1 )
{
v3 = *(_QWORD *)(a2 + 16);
v4 = *(_QWORD **)(a2 + 24);
*(_QWORD *)(v3 + 8) = v4;
*v4 = v3;
*(_OWORD *)(a2 + 16) = 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;
}
| map_decref_record:
DEC dword ptr [RSI]
JZ 0x0013b47c
RET
LAB_0013b47c:
PUSH R14
PUSH RBX
PUSH RAX
MOV RBX,RSI
MOV R14,RDI
MOV RAX,qword ptr [RSI + 0x10]
MOV RCX,qword ptr [RSI + 0x18]
MOV qword ptr [RAX + 0x8],RCX
MOV qword ptr [RCX],RAX
XORPS XMM0,XMM0
MOVUPS xmmword ptr [RSI + 0x10],XMM0
DEC qword ptr [RDI + 0x28]
MOV RDI,RSI
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 map_decref_record(long param_1,int *param_2)
{
long *plVar1;
long lVar2;
*param_2 = *param_2 + -1;
if (*param_2 != 0) {
return;
}
lVar2 = *(long *)(param_2 + 4);
plVar1 = *(long **)(param_2 + 6);
*(long **)(lVar2 + 8) = plVar1;
*plVar1 = lVar2;
param_2[4] = 0;
param_2[5] = 0;
param_2[6] = 0;
param_2[7] = 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 0x0013b4c8. 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;
}
| |
45,288 | map_decref_record | bluesky950520[P]quickjs/quickjs.c | static void map_decref_record(JSRuntime *rt, JSMapRecord *mr)
{
if (--mr->ref_count == 0) {
/* the record can be safely removed */
assert(mr->empty);
list_del(&mr->link);
js_free_rt(rt, mr);
}
} | O2 | c | map_decref_record:
decl (%rsi)
je 0x3423c
retq
movq 0x10(%rsi), %rax
movq 0x18(%rsi), %rcx
movq %rcx, 0x8(%rax)
movq %rax, (%rcx)
xorps %xmm0, %xmm0
movups %xmm0, 0x10(%rsi)
jmp 0x170cb
| map_decref_record:
dec dword ptr [rsi]
jz short loc_3423C
retn
loc_3423C:
mov rax, [rsi+10h]
mov rcx, [rsi+18h]
mov [rax+8], rcx
mov [rcx], rax
xorps xmm0, xmm0
movups xmmword ptr [rsi+10h], xmm0
jmp js_free_rt
| long long map_decref_record(long long a1, long long a2)
{
long long v3; // rax
_QWORD *v4; // rcx
long long result; // rax
if ( (*(_DWORD *)a2)-- == 1 )
{
v3 = *(_QWORD *)(a2 + 16);
v4 = *(_QWORD **)(a2 + 24);
*(_QWORD *)(v3 + 8) = v4;
*v4 = v3;
*(_OWORD *)(a2 + 16) = 0LL;
return js_free_rt(a1, a2);
}
return result;
}
| map_decref_record:
DEC dword ptr [RSI]
JZ 0x0013423c
RET
LAB_0013423c:
MOV RAX,qword ptr [RSI + 0x10]
MOV RCX,qword ptr [RSI + 0x18]
MOV qword ptr [RAX + 0x8],RCX
MOV qword ptr [RCX],RAX
XORPS XMM0,XMM0
MOVUPS xmmword ptr [RSI + 0x10],XMM0
JMP 0x001170cb
|
void map_decref_record(int8 param_1,int *param_2)
{
long lVar1;
long *plVar2;
*param_2 = *param_2 + -1;
if (*param_2 != 0) {
return;
}
lVar1 = *(long *)(param_2 + 4);
plVar2 = *(long **)(param_2 + 6);
*(long **)(lVar1 + 8) = plVar2;
*plVar2 = lVar1;
param_2[4] = 0;
param_2[5] = 0;
param_2[6] = 0;
param_2[7] = 0;
js_free_rt();
return;
}
| |
45,289 | ma_write_init_default | eloqsql/storage/maria/ma_write.c | MARIA_RECORD_POS _ma_write_init_default(MARIA_HA *info,
const uchar *record
__attribute__((unused)))
{
return ((info->s->state.dellink != HA_OFFSET_ERROR &&
!info->append_insert_at_end) ?
info->s->state.dellink :
info->state->data_file_length);
} | O0 | c | ma_write_init_default:
pushq %rbp
movq %rsp, %rbp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq -0x8(%rbp), %rax
movq (%rax), %rax
cmpq $-0x1, 0xc8(%rax)
je 0x816fe
movq -0x8(%rbp), %rax
cmpb $0x0, 0x681(%rax)
jne 0x816fe
movq -0x8(%rbp), %rax
movq (%rax), %rax
movq 0xc8(%rax), %rax
movq %rax, -0x18(%rbp)
jmp 0x8170e
movq -0x8(%rbp), %rax
movq 0x20(%rax), %rax
movq 0x28(%rax), %rax
movq %rax, -0x18(%rbp)
movq -0x18(%rbp), %rax
popq %rbp
retq
nopw %cs:(%rax,%rax)
| _ma_write_init_default:
push rbp
mov rbp, rsp
mov [rbp+var_8], rdi
mov [rbp+var_10], rsi
mov rax, [rbp+var_8]
mov rax, [rax]
cmp qword ptr [rax+0C8h], 0FFFFFFFFFFFFFFFFh
jz short loc_816FE
mov rax, [rbp+var_8]
cmp byte ptr [rax+681h], 0
jnz short loc_816FE
mov rax, [rbp+var_8]
mov rax, [rax]
mov rax, [rax+0C8h]
mov [rbp+var_18], rax
jmp short loc_8170E
loc_816FE:
mov rax, [rbp+var_8]
mov rax, [rax+20h]
mov rax, [rax+28h]
mov [rbp+var_18], rax
loc_8170E:
mov rax, [rbp+var_18]
pop rbp
retn
| long long ma_write_init_default(long long a1)
{
if ( *(_QWORD *)(*(_QWORD *)a1 + 200LL) == -1LL || *(_BYTE *)(a1 + 1665) )
return *(_QWORD *)(*(_QWORD *)(a1 + 32) + 40LL);
else
return *(_QWORD *)(*(_QWORD *)a1 + 200LL);
}
| _ma_write_init_default:
PUSH RBP
MOV RBP,RSP
MOV qword ptr [RBP + -0x8],RDI
MOV qword ptr [RBP + -0x10],RSI
MOV RAX,qword ptr [RBP + -0x8]
MOV RAX,qword ptr [RAX]
CMP qword ptr [RAX + 0xc8],-0x1
JZ 0x001816fe
MOV RAX,qword ptr [RBP + -0x8]
CMP byte ptr [RAX + 0x681],0x0
JNZ 0x001816fe
MOV RAX,qword ptr [RBP + -0x8]
MOV RAX,qword ptr [RAX]
MOV RAX,qword ptr [RAX + 0xc8]
MOV qword ptr [RBP + -0x18],RAX
JMP 0x0018170e
LAB_001816fe:
MOV RAX,qword ptr [RBP + -0x8]
MOV RAX,qword ptr [RAX + 0x20]
MOV RAX,qword ptr [RAX + 0x28]
MOV qword ptr [RBP + -0x18],RAX
LAB_0018170e:
MOV RAX,qword ptr [RBP + -0x18]
POP RBP
RET
|
int8 _ma_write_init_default(long *param_1)
{
int8 local_20;
if ((*(long *)(*param_1 + 200) == -1) || (*(char *)((long)param_1 + 0x681) != '\0')) {
local_20 = *(int8 *)(param_1[4] + 0x28);
}
else {
local_20 = *(int8 *)(*param_1 + 200);
}
return local_20;
}
| |
45,290 | std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> nlohmann::json_abi_v3_11_3::detail::concat<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, char const (&) [29], char const*>(char const (&) [29], char const*&&) | monkey531[P]llama/common/json.hpp | inline OutStringType concat(Args && ... args)
{
OutStringType str;
str.reserve(concat_length(args...));
concat_into(str, std::forward<Args>(args)...);
return str;
} | O1 | cpp | std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> nlohmann::json_abi_v3_11_3::detail::concat<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, char const (&) [29], char const*>(char const (&) [29], char const*&&):
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
movq %rdx, %r14
movq %rsi, %r15
movq %rdi, %rbx
leaq 0x10(%rdi), %r13
movq %r13, (%rdi)
movq $0x0, 0x8(%rdi)
movb $0x0, 0x10(%rdi)
movq %rsi, %rdi
callq 0x1a3d0
movq %rax, %r12
movq (%r14), %rdi
callq 0x1a3d0
addq %rax, %r12
movq %rbx, %rdi
movq %r12, %rsi
callq 0x1ad50
movq %rbx, %rdi
movq %r15, %rsi
callq 0x1b0c0
movq (%r14), %rsi
movq %rbx, %rdi
callq 0x1b0c0
movq %rbx, %rax
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
movq %rax, %r14
movq (%rbx), %rdi
cmpq %r13, %rdi
je 0x86999
movq (%r13), %rsi
incq %rsi
callq 0x1a8b0
movq %r14, %rdi
callq 0x1af70
nop
| _ZN8nlohmann16json_abi_v3_11_36detail6concatINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEJRA29_KcPS9_EEET_DpOT0_:
push r15
push r14
push r13
push r12
push rbx
mov r14, rdx
mov r15, rsi
mov rbx, rdi
lea r13, [rdi+10h]
mov [rdi], r13
mov qword ptr [rdi+8], 0
mov byte ptr [rdi+10h], 0
mov rdi, rsi
call _strlen
mov r12, rax
mov rdi, [r14]
call _strlen
add r12, rax
mov rdi, rbx
mov rsi, r12
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE7reserveEm; std::string::reserve(ulong)
mov rdi, rbx
mov rsi, r15
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6appendEPKc; std::string::append(char const*)
mov rsi, [r14]
mov rdi, rbx
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6appendEPKc; std::string::append(char const*)
mov rax, rbx
pop rbx
pop r12
pop r13
pop r14
pop r15
retn
mov r14, rax
mov rdi, [rbx]; void *
cmp rdi, r13
jz short loc_86999
mov rsi, [r13+0]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_86999:
mov rdi, r14
call __Unwind_Resume
| long long nlohmann::json_abi_v3_11_3::detail::concat<std::string,char const(&)[29],char const*>(
long long a1,
long long a2,
_QWORD *a3)
{
long long v4; // r12
long long v5; // rax
*(_QWORD *)a1 = a1 + 16;
*(_QWORD *)(a1 + 8) = 0LL;
*(_BYTE *)(a1 + 16) = 0;
v4 = strlen(a2);
v5 = strlen(*a3);
std::string::reserve(a1, v5 + v4);
std::string::append(a1, a2);
std::string::append(a1, *a3);
return a1;
}
| |||
45,291 | std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> nlohmann::json_abi_v3_11_3::detail::concat<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, char const (&) [29], char const*>(char const (&) [29], char const*&&) | monkey531[P]llama/common/json.hpp | inline OutStringType concat(Args && ... args)
{
OutStringType str;
str.reserve(concat_length(args...));
concat_into(str, std::forward<Args>(args)...);
return str;
} | O2 | cpp | std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> nlohmann::json_abi_v3_11_3::detail::concat<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, char const (&) [29], char const*>(char const (&) [29], char const*&&):
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rcx, %r14
movq %rdx, %r15
movq %rsi, %r12
movq %rdi, %rbx
leaq 0x10(%rdi), %rax
movq %rax, (%rdi)
andq $0x0, 0x8(%rdi)
movb $0x0, 0x10(%rdi)
movq %rsi, %rdi
movq %rdx, %rsi
movq %rcx, %rdx
callq 0x7d940
movq %rbx, %rdi
movq %rax, %rsi
callq 0x23d70
movq %rbx, %rdi
movq %r12, %rsi
movq %r15, %rdx
movq %r14, %rcx
callq 0x7d967
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
movq %rax, %r14
movq %rbx, %rdi
callq 0x241b8
movq %r14, %rdi
callq 0x23f80
| _ZN8nlohmann16json_abi_v3_11_36detail6concatINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEJRA13_KcS8_RA17_S9_EEET_DpOT0_:
push r15
push r14
push r12
push rbx
push rax
mov r14, rcx
mov r15, rdx
mov r12, rsi
mov rbx, rdi
lea rax, [rdi+10h]
mov [rdi], rax
and qword ptr [rdi+8], 0
mov byte ptr [rdi+10h], 0
mov rdi, rsi
mov rsi, rdx
mov rdx, rcx
call _ZN8nlohmann16json_abi_v3_11_36detail13concat_lengthIJNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEA17_cEEEmPKcDpRKT_; nlohmann::json_abi_v3_11_3::detail::concat_length<std::string,char [17]>(char const*,std::string,char [17] const&)
mov rdi, rbx
mov rsi, rax
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE7reserveEm; std::string::reserve(ulong)
mov rdi, rbx
mov rsi, r12
mov rdx, r15
mov rcx, r14
call _ZN8nlohmann16json_abi_v3_11_36detail11concat_intoINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERA13_KcJS8_RA17_S9_ETnNSt9enable_ifIXsr24detect_string_can_appendIT_T0_EE5valueEiE4typeELi0EEEvRSF_OSG_DpOT1_
mov rax, rbx
add rsp, 8
pop rbx
pop r12
pop r14
pop r15
retn
mov r14, rax
mov rdi, rbx; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
mov rdi, r14
call __Unwind_Resume
| long long nlohmann::json_abi_v3_11_3::detail::concat<std::string,char const(&)[13],std::string,char const(&)[17]>(
long long a1,
long long a2,
long long a3,
long long a4)
{
long long v6; // rax
*(_QWORD *)a1 = a1 + 16;
*(_QWORD *)(a1 + 8) = 0LL;
*(_BYTE *)(a1 + 16) = 0;
v6 = nlohmann::json_abi_v3_11_3::detail::concat_length<std::string,char [17]>(a2, a3, a4);
std::string::reserve(a1, v6);
ZN8nlohmann16json_abi_v3_11_36detail11concat_intoINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERA13_KcJS8_RA17_S9_ETnNSt9enable_ifIXsr24detect_string_can_appendIT_T0_EE5valueEiE4typeELi0EEEvRSF_OSG_DpOT1_(
a1,
a2,
a3,
a4);
return a1;
}
| concat<std::__cxx11::string,char_const(&)[13],std::__cxx11::string,char_const(&)[17]>:
PUSH R15
PUSH R14
PUSH R12
PUSH RBX
PUSH RAX
MOV R14,RCX
MOV R15,RDX
MOV R12,RSI
MOV RBX,RDI
LEA RAX,[RDI + 0x10]
MOV qword ptr [RDI],RAX
AND qword ptr [RDI + 0x8],0x0
MOV byte ptr [RDI + 0x10],0x0
LAB_0017d875:
MOV RDI,RSI
MOV RSI,RDX
MOV RDX,RCX
CALL 0x0017d940
MOV RDI,RBX
MOV RSI,RAX
CALL 0x00123d70
MOV RDI,RBX
MOV RSI,R12
MOV RDX,R15
MOV RCX,R14
CALL 0x0017d967
LAB_0017d89f:
MOV RAX,RBX
ADD RSP,0x8
POP RBX
POP R12
POP R14
POP R15
RET
|
/* std::__cxx11::string nlohmann::json_abi_v3_11_3::detail::concat<std::__cxx11::string, char const
(&) [13], std::__cxx11::string, char const (&) [17]>(char const (&) [13], std::__cxx11::string&&,
char const (&) [17]) */
detail * __thiscall
nlohmann::json_abi_v3_11_3::detail::
concat<std::__cxx11::string,char_const(&)[13],std::__cxx11::string,char_const(&)[17]>
(detail *this,char *param_1,string *param_2,char *param_3)
{
*(detail **)this = this + 0x10;
*(int8 *)(this + 8) = 0;
this[0x10] = (detail)0x0;
/* try { // try from 0017d875 to 0017d89e has its CatchHandler @ 0017d8ae */
concat_length<std::__cxx11::string,char[17]>(param_1,param_2,param_3);
std::__cxx11::string::reserve((ulong)this);
_ZN8nlohmann16json_abi_v3_11_36detail11concat_intoINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERA13_KcJS8_RA17_S9_ETnNSt9enable_ifIXsr24detect_string_can_appendIT_T0_EE5valueEiE4typeELi0EEEvRSF_OSG_DpOT1_
(this,param_1,param_2,param_3);
return this;
}
| |
45,292 | std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> nlohmann::json_abi_v3_11_3::detail::concat<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, char const (&) [29], char const*>(char const (&) [29], char const*&&) | monkey531[P]llama/common/json.hpp | inline OutStringType concat(Args && ... args)
{
OutStringType str;
str.reserve(concat_length(args...));
concat_into(str, std::forward<Args>(args)...);
return str;
} | O3 | cpp | std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> nlohmann::json_abi_v3_11_3::detail::concat<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, char const (&) [29], char const*>(char const (&) [29], char const*&&):
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %r8, %r14
movq %rcx, %r15
movq %rdx, %r12
movq %rsi, %r13
movq %rdi, %rbx
leaq 0x10(%rdi), %rax
movq %rax, (%rsp)
movq %rax, (%rdi)
movq $0x0, 0x8(%rdi)
movb $0x0, 0x10(%rdi)
movq %rsi, %rdi
callq 0x1a3d0
movq %rax, %rbp
addq 0x8(%r12), %rbp
movq %r15, %rdi
callq 0x1a3d0
addq %rax, %rbp
addq 0x8(%r14), %rbp
movq %rbx, %rdi
movq %rbp, %rsi
callq 0x1ad60
movq %rbx, %rdi
movq %r13, %rsi
callq 0x1b0d0
movq (%r12), %rsi
movq 0x8(%r12), %rdx
movq %rbx, %rdi
callq 0x1a250
movq %rbx, %rdi
movq %r15, %rsi
callq 0x1b0d0
movq (%r14), %rsi
movq 0x8(%r14), %rdx
movq %rbx, %rdi
callq 0x1a250
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %r14
movq (%rbx), %rdi
cmpq (%rsp), %rdi
je 0xb7122
movq (%rsp), %rax
movq (%rax), %rsi
incq %rsi
callq 0x1a8c0
movq %r14, %rdi
callq 0x1af80
| _ZN8nlohmann16json_abi_v3_11_36detail6concatINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEJRA29_KcS8_RA5_S9_S8_EEET_DpOT0_:
push rbp
push r15
push r14
push r13
push r12
push rbx
push rax
mov r14, r8
mov r15, rcx
mov r12, rdx
mov r13, rsi
mov rbx, rdi
lea rax, [rdi+10h]
mov [rsp+38h+var_38], rax
mov [rdi], rax
mov qword ptr [rdi+8], 0
mov byte ptr [rdi+10h], 0
mov rdi, rsi
call _strlen
mov rbp, rax
add rbp, [r12+8]
mov rdi, r15
call _strlen
add rbp, rax
add rbp, [r14+8]
mov rdi, rbx
mov rsi, rbp
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE7reserveEm; std::string::reserve(ulong)
mov rdi, rbx
mov rsi, r13
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6appendEPKc; std::string::append(char const*)
mov rsi, [r12]
mov rdx, [r12+8]
mov rdi, rbx
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9_M_appendEPKcm; std::string::_M_append(char const*,ulong)
mov rdi, rbx
mov rsi, r15
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6appendEPKc; std::string::append(char const*)
mov rsi, [r14]
mov rdx, [r14+8]
mov rdi, rbx
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9_M_appendEPKcm; std::string::_M_append(char const*,ulong)
mov rax, rbx
add rsp, 8
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
mov r14, rax
mov rdi, [rbx]; void *
cmp rdi, [rsp+0]
jz short loc_B7122
mov rax, [rsp+0]
mov rsi, [rax]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_B7122:
mov rdi, r14
call __Unwind_Resume
| long long nlohmann::json_abi_v3_11_3::detail::concat<std::string,char const(&)[29],std::string,char const(&)[5],std::string>(
long long a1,
long long a2,
_QWORD *a3,
long long a4,
_QWORD *a5)
{
long long v8; // rbp
long long v9; // rax
*(_QWORD *)a1 = a1 + 16;
*(_QWORD *)(a1 + 8) = 0LL;
*(_BYTE *)(a1 + 16) = 0;
v8 = a3[1] + strlen(a2);
v9 = strlen(a4);
std::string::reserve(a1, a5[1] + v9 + v8);
std::string::append(a1, a2);
std::string::_M_append(a1, *a3, a3[1]);
std::string::append(a1, a4);
std::string::_M_append(a1, *a5, a5[1]);
return a1;
}
| concat<std::__cxx11::string,char_const(&)[29],std::__cxx11::string,char_const(&)[5],std::__cxx11::string>:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
PUSH RAX
MOV R14,R8
MOV R15,RCX
MOV R12,RDX
MOV R13,RSI
MOV RBX,RDI
LEA RAX,[RDI + 0x10]
MOV qword ptr [RSP],RAX
MOV qword ptr [RDI],RAX
MOV qword ptr [RDI + 0x8],0x0
MOV byte ptr [RDI + 0x10],0x0
MOV RDI,RSI
CALL 0x0011a3d0
MOV RBP,RAX
ADD RBP,qword ptr [R12 + 0x8]
MOV RDI,R15
CALL 0x0011a3d0
ADD RBP,RAX
ADD RBP,qword ptr [R14 + 0x8]
LAB_001b70b4:
MOV RDI,RBX
MOV RSI,RBP
CALL 0x0011ad60
MOV RDI,RBX
MOV RSI,R13
CALL 0x0011b0d0
MOV RSI,qword ptr [R12]
MOV RDX,qword ptr [R12 + 0x8]
MOV RDI,RBX
CALL 0x0011a250
MOV RDI,RBX
MOV RSI,R15
CALL 0x0011b0d0
MOV RSI,qword ptr [R14]
MOV RDX,qword ptr [R14 + 0x8]
MOV RDI,RBX
CALL 0x0011a250
LAB_001b70f5:
MOV RAX,RBX
ADD RSP,0x8
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
|
/* std::__cxx11::string nlohmann::json_abi_v3_11_3::detail::concat<std::__cxx11::string, char const
(&) [29], std::__cxx11::string, char const (&) [5], std::__cxx11::string >(char const (&) [29],
std::__cxx11::string&&, char const (&) [5], std::__cxx11::string&&) */
detail * __thiscall
nlohmann::json_abi_v3_11_3::detail::
concat<std::__cxx11::string,char_const(&)[29],std::__cxx11::string,char_const(&)[5],std::__cxx11::string>
(detail *this,char *param_1,string *param_2,char *param_3,string *param_4)
{
*(detail **)this = this + 0x10;
*(int8 *)(this + 8) = 0;
this[0x10] = (detail)0x0;
strlen(param_1);
strlen(param_3);
/* try { // try from 001b70b4 to 001b70f4 has its CatchHandler @ 001b7107 */
std::__cxx11::string::reserve((ulong)this);
std::__cxx11::string::append((char *)this);
std::__cxx11::string::_M_append((char *)this,*(ulong *)param_2);
std::__cxx11::string::append((char *)this);
std::__cxx11::string::_M_append((char *)this,*(ulong *)param_4);
return this;
}
| |
45,293 | flux::lexer::Tokenizer::advance() | kvthweatt[P]FluxLang/src/lexer/tokenizer.cpp | bool Tokenizer::isAtEnd() const {
return position_ >= text_.size();
} | O2 | cpp | flux::lexer::Tokenizer::advance():
movq 0x20(%rdi), %rcx
cmpq 0x10(%rdi), %rcx
jae 0xa3db
movq 0x18(%rdi), %rax
movb (%rax,%rcx), %al
incq %rcx
movq %rcx, 0x20(%rdi)
cmpb $0xa, %al
jne 0xa3e4
incq 0x28(%rdi)
movq $0x1, 0x30(%rdi)
movb $0xa, %al
retq
incq %rcx
movq %rcx, 0x20(%rdi)
xorl %eax, %eax
incq 0x30(%rdi)
retq
nop
| _ZN4flux5lexer9Tokenizer7advanceEv:
mov rcx, [rdi+20h]
cmp rcx, [rdi+10h]
jnb short loc_A3DB
mov rax, [rdi+18h]
mov al, [rax+rcx]
inc rcx
mov [rdi+20h], rcx
cmp al, 0Ah
jnz short loc_A3E4
inc qword ptr [rdi+28h]
mov qword ptr [rdi+30h], 1
mov al, 0Ah
retn
loc_A3DB:
inc rcx
mov [rdi+20h], rcx
xor eax, eax
loc_A3E4:
inc qword ptr [rdi+30h]
retn
| char flux::lexer::Tokenizer::advance(flux::lexer::Tokenizer *this)
{
unsigned long long v1; // rcx
char result; // al
v1 = *((_QWORD *)this + 4);
if ( v1 >= *((_QWORD *)this + 2) )
{
*((_QWORD *)this + 4) = v1 + 1;
result = 0;
}
else
{
result = *(_BYTE *)(*((_QWORD *)this + 3) + v1);
*((_QWORD *)this + 4) = v1 + 1;
if ( result == 10 )
{
++*((_QWORD *)this + 5);
*((_QWORD *)this + 6) = 1LL;
return 10;
}
}
++*((_QWORD *)this + 6);
return result;
}
| advance:
MOV RCX,qword ptr [RDI + 0x20]
CMP RCX,qword ptr [RDI + 0x10]
JNC 0x0010a3db
MOV RAX,qword ptr [RDI + 0x18]
MOV AL,byte ptr [RAX + RCX*0x1]
INC RCX
MOV qword ptr [RDI + 0x20],RCX
CMP AL,0xa
JNZ 0x0010a3e4
INC qword ptr [RDI + 0x28]
MOV qword ptr [RDI + 0x30],0x1
MOV AL,0xa
RET
LAB_0010a3db:
INC RCX
MOV qword ptr [RDI + 0x20],RCX
XOR EAX,EAX
LAB_0010a3e4:
INC qword ptr [RDI + 0x30]
RET
|
/* flux::lexer::Tokenizer::advance() */
int8 __thiscall flux::lexer::Tokenizer::advance(Tokenizer *this)
{
char cVar1;
ulong uVar2;
int8 uVar3;
int7 uVar4;
uVar2 = *(ulong *)(this + 0x20);
if (uVar2 < *(ulong *)(this + 0x10)) {
cVar1 = *(char *)(*(long *)(this + 0x18) + uVar2);
uVar4 = (int7)((ulong)*(long *)(this + 0x18) >> 8);
uVar3 = CONCAT71(uVar4,cVar1);
*(ulong *)(this + 0x20) = uVar2 + 1;
if (cVar1 == '\n') {
*(long *)(this + 0x28) = *(long *)(this + 0x28) + 1;
*(int8 *)(this + 0x30) = 1;
return CONCAT71(uVar4,10);
}
}
else {
*(ulong *)(this + 0x20) = uVar2 + 1;
uVar3 = 0;
}
*(long *)(this + 0x30) = *(long *)(this + 0x30) + 1;
return uVar3;
}
| |
45,294 | flux::lexer::Tokenizer::advance() | kvthweatt[P]FluxLang/src/lexer/tokenizer.cpp | bool Tokenizer::isAtEnd() const {
return position_ >= text_.size();
} | O3 | cpp | flux::lexer::Tokenizer::advance():
movq 0x20(%rdi), %rcx
cmpq 0x10(%rdi), %rcx
jae 0xb7cb
movq 0x18(%rdi), %rax
movb (%rax,%rcx), %al
incq %rcx
movq %rcx, 0x20(%rdi)
cmpb $0xa, %al
jne 0xb7d4
incq 0x28(%rdi)
movq $0x1, 0x30(%rdi)
movb $0xa, %al
retq
incq %rcx
movq %rcx, 0x20(%rdi)
xorl %eax, %eax
incq 0x30(%rdi)
retq
nop
| _ZN4flux5lexer9Tokenizer7advanceEv:
mov rcx, [rdi+20h]
cmp rcx, [rdi+10h]
jnb short loc_B7CB
mov rax, [rdi+18h]
mov al, [rax+rcx]
inc rcx
mov [rdi+20h], rcx
cmp al, 0Ah
jnz short loc_B7D4
inc qword ptr [rdi+28h]
mov qword ptr [rdi+30h], 1
mov al, 0Ah
retn
loc_B7CB:
inc rcx
mov [rdi+20h], rcx
xor eax, eax
loc_B7D4:
inc qword ptr [rdi+30h]
retn
| char flux::lexer::Tokenizer::advance(flux::lexer::Tokenizer *this)
{
unsigned long long v1; // rcx
char result; // al
v1 = *((_QWORD *)this + 4);
if ( v1 >= *((_QWORD *)this + 2) )
{
*((_QWORD *)this + 4) = v1 + 1;
result = 0;
}
else
{
result = *(_BYTE *)(*((_QWORD *)this + 3) + v1);
*((_QWORD *)this + 4) = v1 + 1;
if ( result == 10 )
{
++*((_QWORD *)this + 5);
*((_QWORD *)this + 6) = 1LL;
return 10;
}
}
++*((_QWORD *)this + 6);
return result;
}
| advance:
MOV RCX,qword ptr [RDI + 0x20]
CMP RCX,qword ptr [RDI + 0x10]
JNC 0x0010b7cb
MOV RAX,qword ptr [RDI + 0x18]
MOV AL,byte ptr [RAX + RCX*0x1]
INC RCX
MOV qword ptr [RDI + 0x20],RCX
CMP AL,0xa
JNZ 0x0010b7d4
INC qword ptr [RDI + 0x28]
MOV qword ptr [RDI + 0x30],0x1
MOV AL,0xa
RET
LAB_0010b7cb:
INC RCX
MOV qword ptr [RDI + 0x20],RCX
XOR EAX,EAX
LAB_0010b7d4:
INC qword ptr [RDI + 0x30]
RET
|
/* flux::lexer::Tokenizer::advance() */
int8 __thiscall flux::lexer::Tokenizer::advance(Tokenizer *this)
{
char cVar1;
ulong uVar2;
int8 uVar3;
int7 uVar4;
uVar2 = *(ulong *)(this + 0x20);
if (uVar2 < *(ulong *)(this + 0x10)) {
cVar1 = *(char *)(*(long *)(this + 0x18) + uVar2);
uVar4 = (int7)((ulong)*(long *)(this + 0x18) >> 8);
uVar3 = CONCAT71(uVar4,cVar1);
*(ulong *)(this + 0x20) = uVar2 + 1;
if (cVar1 == '\n') {
*(long *)(this + 0x28) = *(long *)(this + 0x28) + 1;
*(int8 *)(this + 0x30) = 1;
return CONCAT71(uVar4,10);
}
}
else {
*(ulong *)(this + 0x20) = uVar2 + 1;
uVar3 = 0;
}
*(long *)(this + 0x30) = *(long *)(this + 0x30) + 1;
return uVar3;
}
| |
45,295 | LefDefParser::lefiViaLayer::clone() | Efficient-TDP/thirdparty/Limbo/limbo/thirdparty/lefdef/5.8/lef/lef/lefiVia.cpp | lefiViaLayer *
lefiViaLayer::clone()
{
lefiViaLayer *vl = (lefiViaLayer*) lefMalloc(sizeof(lefiViaLayer));
int i, j;
if (numRects_ > 0) {
vl->xl_ = (double*) lefMalloc(sizeof(double) * numRects_);
vl->yl_ = (double*) lefMalloc(sizeof(double) * numRects_);
vl->xh_ = (double*) lefMalloc(sizeof(double) * numRects_);
vl->yh_ = (double*) lefMalloc(sizeof(double) * numRects_);
vl->rectColorMask_ = (int*) lefMalloc(sizeof(int) * numRects_);
vl->numRects_ = numRects_;
vl->rectsAllocated_ = rectsAllocated_;
for (i = 0; i < numRects_; i++) {
vl->xl_[i] = xl_[i];
vl->yl_[i] = yl_[i];
vl->xh_[i] = xh_[i];
vl->yh_[i] = yh_[i];
vl->rectColorMask_[i] = rectColorMask_[i];
}
} else {
vl->xl_ = 0;
vl->yl_ = 0;
vl->xh_ = 0;
vl->yh_ = 0;
vl->rectColorMask_ = 0;
vl->numRects_ = numRects_;
vl->rectsAllocated_ = rectsAllocated_;
}
vl->numPolys_ = numPolys_;
vl->polysAllocated_ = polysAllocated_;
vl->polygons_ = (lefiGeomPolygon**)
lefMalloc(sizeof(lefiGeomPolygon*) * polysAllocated_);
if (numPolys_ > 0) {
vl->polyColorMask_ = (int*) lefMalloc(sizeof(int) * numPolys_);
} else {
vl->polyColorMask_ = 0;
}
for (i = 0; i < numPolys_; i++) {
vl->polygons_[i] = (lefiGeomPolygon*) lefMalloc(sizeof(lefiGeomPolygon));
vl->polygons_[i]->numPoints = polygons_[i]->numPoints;
vl->polygons_[i]->x = (double*) lefMalloc(sizeof(double) *
polygons_[i]->numPoints);
vl->polygons_[i]->y = (double*) lefMalloc(sizeof(double) *
polygons_[i]->numPoints);
vl->polygons_[i]->colorMask = polygons_[i]->colorMask;
vl->polyColorMask_[i] = polyColorMask_[i];
for (j = 0; j < polygons_[i]->numPoints; j++) {
vl->polygons_[i]->x[j] = polygons_[i]->x[j];
vl->polygons_[i]->y[j] = polygons_[i]->y[j];
}
/*
vl->polygons_[i] = polygons_[i];
*/
}
vl->name_ = (char*) lefMalloc(strlen(name_) + 1);
strcpy(vl->name_, name_);
return vl;
} | O0 | cpp | LefDefParser::lefiViaLayer::clone():
subq $0x28, %rsp
movq %rdi, 0x20(%rsp)
movq 0x20(%rsp), %rax
movq %rax, 0x8(%rsp)
movl $0x50, %edi
callq 0x359d0
movq %rax, %rcx
movq 0x8(%rsp), %rax
movq %rcx, 0x18(%rsp)
cmpl $0x0, 0x18(%rax)
jle 0x15807
movq 0x8(%rsp), %rax
movslq 0x18(%rax), %rdi
shlq $0x3, %rdi
callq 0x359d0
movq %rax, %rdx
movq 0x8(%rsp), %rax
movq 0x18(%rsp), %rcx
movq %rdx, 0x20(%rcx)
movslq 0x18(%rax), %rdi
shlq $0x3, %rdi
callq 0x359d0
movq %rax, %rdx
movq 0x8(%rsp), %rax
movq 0x18(%rsp), %rcx
movq %rdx, 0x28(%rcx)
movslq 0x18(%rax), %rdi
shlq $0x3, %rdi
callq 0x359d0
movq %rax, %rdx
movq 0x8(%rsp), %rax
movq 0x18(%rsp), %rcx
movq %rdx, 0x30(%rcx)
movslq 0x18(%rax), %rdi
shlq $0x3, %rdi
callq 0x359d0
movq %rax, %rdx
movq 0x8(%rsp), %rax
movq 0x18(%rsp), %rcx
movq %rdx, 0x38(%rcx)
movslq 0x18(%rax), %rdi
shlq $0x2, %rdi
callq 0x359d0
movq %rax, %rdx
movq 0x8(%rsp), %rax
movq 0x18(%rsp), %rcx
movq %rdx, 0x8(%rcx)
movl 0x18(%rax), %edx
movq 0x18(%rsp), %rcx
movl %edx, 0x18(%rcx)
movl 0x1c(%rax), %ecx
movq 0x18(%rsp), %rax
movl %ecx, 0x1c(%rax)
movl $0x0, 0x14(%rsp)
movq 0x8(%rsp), %rcx
movl 0x14(%rsp), %eax
cmpl 0x18(%rcx), %eax
jge 0x15805
movq 0x8(%rsp), %rax
movq 0x20(%rax), %rcx
movslq 0x14(%rsp), %rdx
movsd (%rcx,%rdx,8), %xmm0
movq 0x18(%rsp), %rcx
movq 0x20(%rcx), %rcx
movslq 0x14(%rsp), %rdx
movsd %xmm0, (%rcx,%rdx,8)
movq 0x28(%rax), %rcx
movslq 0x14(%rsp), %rdx
movsd (%rcx,%rdx,8), %xmm0
movq 0x18(%rsp), %rcx
movq 0x28(%rcx), %rcx
movslq 0x14(%rsp), %rdx
movsd %xmm0, (%rcx,%rdx,8)
movq 0x30(%rax), %rcx
movslq 0x14(%rsp), %rdx
movsd (%rcx,%rdx,8), %xmm0
movq 0x18(%rsp), %rcx
movq 0x30(%rcx), %rcx
movslq 0x14(%rsp), %rdx
movsd %xmm0, (%rcx,%rdx,8)
movq 0x38(%rax), %rcx
movslq 0x14(%rsp), %rdx
movsd (%rcx,%rdx,8), %xmm0
movq 0x18(%rsp), %rcx
movq 0x38(%rcx), %rcx
movslq 0x14(%rsp), %rdx
movsd %xmm0, (%rcx,%rdx,8)
movq 0x8(%rax), %rax
movslq 0x14(%rsp), %rcx
movl (%rax,%rcx,4), %edx
movq 0x18(%rsp), %rax
movq 0x8(%rax), %rax
movslq 0x14(%rsp), %rcx
movl %edx, (%rax,%rcx,4)
movl 0x14(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x14(%rsp)
jmp 0x1573d
jmp 0x15863
movq 0x8(%rsp), %rax
movq 0x18(%rsp), %rcx
movq $0x0, 0x20(%rcx)
movq 0x18(%rsp), %rcx
movq $0x0, 0x28(%rcx)
movq 0x18(%rsp), %rcx
movq $0x0, 0x30(%rcx)
movq 0x18(%rsp), %rcx
movq $0x0, 0x38(%rcx)
movq 0x18(%rsp), %rcx
movq $0x0, 0x8(%rcx)
movl 0x18(%rax), %edx
movq 0x18(%rsp), %rcx
movl %edx, 0x18(%rcx)
movl 0x1c(%rax), %ecx
movq 0x18(%rsp), %rax
movl %ecx, 0x1c(%rax)
movq 0x8(%rsp), %rax
movl 0x40(%rax), %edx
movq 0x18(%rsp), %rcx
movl %edx, 0x40(%rcx)
movl 0x44(%rax), %edx
movq 0x18(%rsp), %rcx
movl %edx, 0x44(%rcx)
movslq 0x44(%rax), %rdi
shlq $0x3, %rdi
callq 0x359d0
movq %rax, %rdx
movq 0x8(%rsp), %rax
movq 0x18(%rsp), %rcx
movq %rdx, 0x48(%rcx)
cmpl $0x0, 0x40(%rax)
jle 0x158c2
movq 0x8(%rsp), %rax
movslq 0x40(%rax), %rdi
shlq $0x2, %rdi
callq 0x359d0
movq %rax, %rcx
movq 0x18(%rsp), %rax
movq %rcx, 0x10(%rax)
jmp 0x158cf
movq 0x18(%rsp), %rax
movq $0x0, 0x10(%rax)
movl $0x0, 0x14(%rsp)
movq 0x8(%rsp), %rcx
movl 0x14(%rsp), %eax
cmpl 0x40(%rcx), %eax
jge 0x15aa3
movl $0x20, %edi
callq 0x359d0
movq %rax, %rsi
movq 0x8(%rsp), %rax
movq 0x18(%rsp), %rcx
movq 0x48(%rcx), %rcx
movslq 0x14(%rsp), %rdx
movq %rsi, (%rcx,%rdx,8)
movq 0x48(%rax), %rcx
movslq 0x14(%rsp), %rdx
movq (%rcx,%rdx,8), %rcx
movl (%rcx), %edx
movq 0x18(%rsp), %rcx
movq 0x48(%rcx), %rcx
movslq 0x14(%rsp), %rsi
movq (%rcx,%rsi,8), %rcx
movl %edx, (%rcx)
movq 0x48(%rax), %rax
movslq 0x14(%rsp), %rcx
movq (%rax,%rcx,8), %rax
movslq (%rax), %rdi
shlq $0x3, %rdi
callq 0x359d0
movq %rax, %rdx
movq 0x8(%rsp), %rax
movq 0x18(%rsp), %rcx
movq 0x48(%rcx), %rcx
movslq 0x14(%rsp), %rsi
movq (%rcx,%rsi,8), %rcx
movq %rdx, 0x8(%rcx)
movq 0x48(%rax), %rax
movslq 0x14(%rsp), %rcx
movq (%rax,%rcx,8), %rax
movslq (%rax), %rdi
shlq $0x3, %rdi
callq 0x359d0
movq %rax, %rdx
movq 0x8(%rsp), %rax
movq 0x18(%rsp), %rcx
movq 0x48(%rcx), %rcx
movslq 0x14(%rsp), %rsi
movq (%rcx,%rsi,8), %rcx
movq %rdx, 0x10(%rcx)
movq 0x48(%rax), %rcx
movslq 0x14(%rsp), %rdx
movq (%rcx,%rdx,8), %rcx
movl 0x18(%rcx), %edx
movq 0x18(%rsp), %rcx
movq 0x48(%rcx), %rcx
movslq 0x14(%rsp), %rsi
movq (%rcx,%rsi,8), %rcx
movl %edx, 0x18(%rcx)
movq 0x10(%rax), %rax
movslq 0x14(%rsp), %rcx
movl (%rax,%rcx,4), %edx
movq 0x18(%rsp), %rax
movq 0x10(%rax), %rax
movslq 0x14(%rsp), %rcx
movl %edx, (%rax,%rcx,4)
movl $0x0, 0x10(%rsp)
movq 0x8(%rsp), %rcx
movl 0x10(%rsp), %eax
movq 0x48(%rcx), %rcx
movslq 0x14(%rsp), %rdx
movq (%rcx,%rdx,8), %rcx
cmpl (%rcx), %eax
jge 0x15a91
movq 0x8(%rsp), %rax
movq 0x48(%rax), %rcx
movslq 0x14(%rsp), %rdx
movq (%rcx,%rdx,8), %rcx
movq 0x8(%rcx), %rcx
movslq 0x10(%rsp), %rdx
movsd (%rcx,%rdx,8), %xmm0
movq 0x18(%rsp), %rcx
movq 0x48(%rcx), %rcx
movslq 0x14(%rsp), %rdx
movq (%rcx,%rdx,8), %rcx
movq 0x8(%rcx), %rcx
movslq 0x10(%rsp), %rdx
movsd %xmm0, (%rcx,%rdx,8)
movq 0x48(%rax), %rax
movslq 0x14(%rsp), %rcx
movq (%rax,%rcx,8), %rax
movq 0x10(%rax), %rax
movslq 0x10(%rsp), %rcx
movsd (%rax,%rcx,8), %xmm0
movq 0x18(%rsp), %rax
movq 0x48(%rax), %rax
movslq 0x14(%rsp), %rcx
movq (%rax,%rcx,8), %rax
movq 0x10(%rax), %rax
movslq 0x10(%rsp), %rcx
movsd %xmm0, (%rax,%rcx,8)
movl 0x10(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x10(%rsp)
jmp 0x159e8
jmp 0x15a93
movl 0x14(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x14(%rsp)
jmp 0x158d7
movq 0x8(%rsp), %rax
movq (%rax), %rdi
callq 0x20d0
movq %rax, %rdi
addq $0x1, %rdi
callq 0x359d0
movq %rax, %rdx
movq 0x8(%rsp), %rax
movq 0x18(%rsp), %rcx
movq %rdx, (%rcx)
movq 0x18(%rsp), %rcx
movq (%rcx), %rdi
movq (%rax), %rsi
callq 0x2250
movq 0x18(%rsp), %rax
addq $0x28, %rsp
retq
nopw %cs:(%rax,%rax)
| _ZN12LefDefParser12lefiViaLayer5cloneEv:
sub rsp, 28h
mov [rsp+28h+var_8], rdi
mov rax, [rsp+28h+var_8]
mov [rsp+28h+var_20], rax
mov edi, offset off_50; this
call _ZN12LefDefParser9lefMallocEm; LefDefParser::lefMalloc(ulong)
mov rcx, rax
mov rax, [rsp+28h+var_20]
mov [rsp+28h+var_10], rcx
cmp dword ptr [rax+18h], 0
jle loc_15807
mov rax, [rsp+28h+var_20]
movsxd rdi, dword ptr [rax+18h]
shl rdi, 3; this
call _ZN12LefDefParser9lefMallocEm; LefDefParser::lefMalloc(ulong)
mov rdx, rax
mov rax, [rsp+28h+var_20]
mov rcx, [rsp+28h+var_10]
mov [rcx+20h], rdx
movsxd rdi, dword ptr [rax+18h]
shl rdi, 3; this
call _ZN12LefDefParser9lefMallocEm; LefDefParser::lefMalloc(ulong)
mov rdx, rax
mov rax, [rsp+28h+var_20]
mov rcx, [rsp+28h+var_10]
mov [rcx+28h], rdx
movsxd rdi, dword ptr [rax+18h]
shl rdi, 3; this
call _ZN12LefDefParser9lefMallocEm; LefDefParser::lefMalloc(ulong)
mov rdx, rax
mov rax, [rsp+28h+var_20]
mov rcx, [rsp+28h+var_10]
mov [rcx+30h], rdx
movsxd rdi, dword ptr [rax+18h]
shl rdi, 3; this
call _ZN12LefDefParser9lefMallocEm; LefDefParser::lefMalloc(ulong)
mov rdx, rax
mov rax, [rsp+28h+var_20]
mov rcx, [rsp+28h+var_10]
mov [rcx+38h], rdx
movsxd rdi, dword ptr [rax+18h]
shl rdi, 2; this
call _ZN12LefDefParser9lefMallocEm; LefDefParser::lefMalloc(ulong)
mov rdx, rax
mov rax, [rsp+28h+var_20]
mov rcx, [rsp+28h+var_10]
mov [rcx+8], rdx
mov edx, [rax+18h]
mov rcx, [rsp+28h+var_10]
mov [rcx+18h], edx
mov ecx, [rax+1Ch]
mov rax, [rsp+28h+var_10]
mov [rax+1Ch], ecx
mov [rsp+28h+var_14], 0
loc_1573D:
mov rcx, [rsp+28h+var_20]
mov eax, [rsp+28h+var_14]
cmp eax, [rcx+18h]
jge loc_15805
mov rax, [rsp+28h+var_20]
mov rcx, [rax+20h]
movsxd rdx, [rsp+28h+var_14]
movsd xmm0, qword ptr [rcx+rdx*8]
mov rcx, [rsp+28h+var_10]
mov rcx, [rcx+20h]
movsxd rdx, [rsp+28h+var_14]
movsd qword ptr [rcx+rdx*8], xmm0
mov rcx, [rax+28h]
movsxd rdx, [rsp+28h+var_14]
movsd xmm0, qword ptr [rcx+rdx*8]
mov rcx, [rsp+28h+var_10]
mov rcx, [rcx+28h]
movsxd rdx, [rsp+28h+var_14]
movsd qword ptr [rcx+rdx*8], xmm0
mov rcx, [rax+30h]
movsxd rdx, [rsp+28h+var_14]
movsd xmm0, qword ptr [rcx+rdx*8]
mov rcx, [rsp+28h+var_10]
mov rcx, [rcx+30h]
movsxd rdx, [rsp+28h+var_14]
movsd qword ptr [rcx+rdx*8], xmm0
mov rcx, [rax+38h]
movsxd rdx, [rsp+28h+var_14]
movsd xmm0, qword ptr [rcx+rdx*8]
mov rcx, [rsp+28h+var_10]
mov rcx, [rcx+38h]
movsxd rdx, [rsp+28h+var_14]
movsd qword ptr [rcx+rdx*8], xmm0
mov rax, [rax+8]
movsxd rcx, [rsp+28h+var_14]
mov edx, [rax+rcx*4]
mov rax, [rsp+28h+var_10]
mov rax, [rax+8]
movsxd rcx, [rsp+28h+var_14]
mov [rax+rcx*4], edx
mov eax, [rsp+28h+var_14]
add eax, 1
mov [rsp+28h+var_14], eax
jmp loc_1573D
loc_15805:
jmp short loc_15863
loc_15807:
mov rax, [rsp+28h+var_20]
mov rcx, [rsp+28h+var_10]
mov qword ptr [rcx+20h], 0
mov rcx, [rsp+28h+var_10]
mov qword ptr [rcx+28h], 0
mov rcx, [rsp+28h+var_10]
mov qword ptr [rcx+30h], 0
mov rcx, [rsp+28h+var_10]
mov qword ptr [rcx+38h], 0
mov rcx, [rsp+28h+var_10]
mov qword ptr [rcx+8], 0
mov edx, [rax+18h]
mov rcx, [rsp+28h+var_10]
mov [rcx+18h], edx
mov ecx, [rax+1Ch]
mov rax, [rsp+28h+var_10]
mov [rax+1Ch], ecx
loc_15863:
mov rax, [rsp+28h+var_20]
mov edx, [rax+40h]
mov rcx, [rsp+28h+var_10]
mov [rcx+40h], edx
mov edx, [rax+44h]
mov rcx, [rsp+28h+var_10]
mov [rcx+44h], edx
movsxd rdi, dword ptr [rax+44h]
shl rdi, 3; this
call _ZN12LefDefParser9lefMallocEm; LefDefParser::lefMalloc(ulong)
mov rdx, rax
mov rax, [rsp+28h+var_20]
mov rcx, [rsp+28h+var_10]
mov [rcx+48h], rdx
cmp dword ptr [rax+40h], 0
jle short loc_158C2
mov rax, [rsp+28h+var_20]
movsxd rdi, dword ptr [rax+40h]
shl rdi, 2; this
call _ZN12LefDefParser9lefMallocEm; LefDefParser::lefMalloc(ulong)
mov rcx, rax
mov rax, [rsp+28h+var_10]
mov [rax+10h], rcx
jmp short loc_158CF
loc_158C2:
mov rax, [rsp+28h+var_10]
mov qword ptr [rax+10h], 0
loc_158CF:
mov [rsp+28h+var_14], 0
loc_158D7:
mov rcx, [rsp+28h+var_20]
mov eax, [rsp+28h+var_14]
cmp eax, [rcx+40h]
jge loc_15AA3
mov edi, offset qword_20; this
call _ZN12LefDefParser9lefMallocEm; LefDefParser::lefMalloc(ulong)
mov rsi, rax
mov rax, [rsp+28h+var_20]
mov rcx, [rsp+28h+var_10]
mov rcx, [rcx+48h]
movsxd rdx, [rsp+28h+var_14]
mov [rcx+rdx*8], rsi
mov rcx, [rax+48h]
movsxd rdx, [rsp+28h+var_14]
mov rcx, [rcx+rdx*8]
mov edx, [rcx]
mov rcx, [rsp+28h+var_10]
mov rcx, [rcx+48h]
movsxd rsi, [rsp+28h+var_14]; unsigned __int64
mov rcx, [rcx+rsi*8]
mov [rcx], edx
mov rax, [rax+48h]
movsxd rcx, [rsp+28h+var_14]
mov rax, [rax+rcx*8]
movsxd rdi, dword ptr [rax]
shl rdi, 3; this
call _ZN12LefDefParser9lefMallocEm; LefDefParser::lefMalloc(ulong)
mov rdx, rax
mov rax, [rsp+28h+var_20]
mov rcx, [rsp+28h+var_10]
mov rcx, [rcx+48h]
movsxd rsi, [rsp+28h+var_14]; unsigned __int64
mov rcx, [rcx+rsi*8]
mov [rcx+8], rdx
mov rax, [rax+48h]
movsxd rcx, [rsp+28h+var_14]
mov rax, [rax+rcx*8]
movsxd rdi, dword ptr [rax]
shl rdi, 3; this
call _ZN12LefDefParser9lefMallocEm; LefDefParser::lefMalloc(ulong)
mov rdx, rax
mov rax, [rsp+28h+var_20]
mov rcx, [rsp+28h+var_10]
mov rcx, [rcx+48h]
movsxd rsi, [rsp+28h+var_14]
mov rcx, [rcx+rsi*8]
mov [rcx+10h], rdx
mov rcx, [rax+48h]
movsxd rdx, [rsp+28h+var_14]
mov rcx, [rcx+rdx*8]
mov edx, [rcx+18h]
mov rcx, [rsp+28h+var_10]
mov rcx, [rcx+48h]
movsxd rsi, [rsp+28h+var_14]; unsigned __int64
mov rcx, [rcx+rsi*8]
mov [rcx+18h], edx
mov rax, [rax+10h]
movsxd rcx, [rsp+28h+var_14]
mov edx, [rax+rcx*4]
mov rax, [rsp+28h+var_10]
mov rax, [rax+10h]
movsxd rcx, [rsp+28h+var_14]
mov [rax+rcx*4], edx
mov [rsp+28h+var_18], 0
loc_159E8:
mov rcx, [rsp+28h+var_20]
mov eax, [rsp+28h+var_18]
mov rcx, [rcx+48h]
movsxd rdx, [rsp+28h+var_14]
mov rcx, [rcx+rdx*8]
cmp eax, [rcx]
jge loc_15A91
mov rax, [rsp+28h+var_20]
mov rcx, [rax+48h]
movsxd rdx, [rsp+28h+var_14]
mov rcx, [rcx+rdx*8]
mov rcx, [rcx+8]
movsxd rdx, [rsp+28h+var_18]
movsd xmm0, qword ptr [rcx+rdx*8]
mov rcx, [rsp+28h+var_10]
mov rcx, [rcx+48h]
movsxd rdx, [rsp+28h+var_14]
mov rcx, [rcx+rdx*8]
mov rcx, [rcx+8]
movsxd rdx, [rsp+28h+var_18]
movsd qword ptr [rcx+rdx*8], xmm0
mov rax, [rax+48h]
movsxd rcx, [rsp+28h+var_14]
mov rax, [rax+rcx*8]
mov rax, [rax+10h]
movsxd rcx, [rsp+28h+var_18]
movsd xmm0, qword ptr [rax+rcx*8]
mov rax, [rsp+28h+var_10]
mov rax, [rax+48h]
movsxd rcx, [rsp+28h+var_14]
mov rax, [rax+rcx*8]
mov rax, [rax+10h]
movsxd rcx, [rsp+28h+var_18]
movsd qword ptr [rax+rcx*8], xmm0
mov eax, [rsp+28h+var_18]
add eax, 1
mov [rsp+28h+var_18], eax
jmp loc_159E8
loc_15A91:
jmp short $+2
loc_15A93:
mov eax, [rsp+28h+var_14]
add eax, 1
mov [rsp+28h+var_14], eax
jmp loc_158D7
loc_15AA3:
mov rax, [rsp+28h+var_20]
mov rdi, [rax]
call _strlen
mov rdi, rax
add rdi, 1; this
call _ZN12LefDefParser9lefMallocEm; LefDefParser::lefMalloc(ulong)
mov rdx, rax
mov rax, [rsp+28h+var_20]
mov rcx, [rsp+28h+var_10]
mov [rcx], rdx
mov rcx, [rsp+28h+var_10]
mov rdi, [rcx]
mov rsi, [rax]
call _strcpy
mov rax, [rsp+28h+var_10]
add rsp, 28h
retn
| long long LefDefParser::lefiViaLayer::clone(LefDefParser::lefiViaLayer *this, unsigned long long a2)
{
long long v2; // rax
int k; // [rsp+10h] [rbp-18h]
int i; // [rsp+14h] [rbp-14h]
int j; // [rsp+14h] [rbp-14h]
long long v7; // [rsp+18h] [rbp-10h]
v7 = LefDefParser::lefMalloc((LefDefParser *)off_50, a2);
if ( *((int *)this + 6) <= 0 )
{
*(_QWORD *)(v7 + 32) = 0LL;
*(_QWORD *)(v7 + 40) = 0LL;
*(_QWORD *)(v7 + 48) = 0LL;
*(_QWORD *)(v7 + 56) = 0LL;
*(_QWORD *)(v7 + 8) = 0LL;
*(_DWORD *)(v7 + 24) = *((_DWORD *)this + 6);
*(_DWORD *)(v7 + 28) = *((_DWORD *)this + 7);
}
else
{
*(_QWORD *)(v7 + 32) = LefDefParser::lefMalloc((LefDefParser *)(8LL * *((int *)this + 6)), a2);
*(_QWORD *)(v7 + 40) = LefDefParser::lefMalloc((LefDefParser *)(8LL * *((int *)this + 6)), a2);
*(_QWORD *)(v7 + 48) = LefDefParser::lefMalloc((LefDefParser *)(8LL * *((int *)this + 6)), a2);
*(_QWORD *)(v7 + 56) = LefDefParser::lefMalloc((LefDefParser *)(8LL * *((int *)this + 6)), a2);
*(_QWORD *)(v7 + 8) = LefDefParser::lefMalloc((LefDefParser *)(4LL * *((int *)this + 6)), a2);
*(_DWORD *)(v7 + 24) = *((_DWORD *)this + 6);
*(_DWORD *)(v7 + 28) = *((_DWORD *)this + 7);
for ( i = 0; i < *((_DWORD *)this + 6); ++i )
{
*(_QWORD *)(*(_QWORD *)(v7 + 32) + 8LL * i) = *(_QWORD *)(*((_QWORD *)this + 4) + 8LL * i);
*(_QWORD *)(*(_QWORD *)(v7 + 40) + 8LL * i) = *(_QWORD *)(*((_QWORD *)this + 5) + 8LL * i);
*(_QWORD *)(*(_QWORD *)(v7 + 48) + 8LL * i) = *(_QWORD *)(*((_QWORD *)this + 6) + 8LL * i);
*(_QWORD *)(*(_QWORD *)(v7 + 56) + 8LL * i) = *(_QWORD *)(*((_QWORD *)this + 7) + 8LL * i);
*(_DWORD *)(*(_QWORD *)(v7 + 8) + 4LL * i) = *(_DWORD *)(*((_QWORD *)this + 1) + 4LL * i);
}
}
*(_DWORD *)(v7 + 64) = *((_DWORD *)this + 16);
*(_DWORD *)(v7 + 68) = *((_DWORD *)this + 17);
*(_QWORD *)(v7 + 72) = LefDefParser::lefMalloc((LefDefParser *)(8LL * *((int *)this + 17)), a2);
if ( *((int *)this + 16) <= 0 )
*(_QWORD *)(v7 + 16) = 0LL;
else
*(_QWORD *)(v7 + 16) = LefDefParser::lefMalloc((LefDefParser *)(4LL * *((int *)this + 16)), a2);
for ( j = 0; j < *((_DWORD *)this + 16); ++j )
{
*(_QWORD *)(*(_QWORD *)(v7 + 72) + 8LL * j) = LefDefParser::lefMalloc((LefDefParser *)&qword_20, a2);
**(_DWORD **)(*(_QWORD *)(v7 + 72) + 8LL * j) = **(_DWORD **)(*((_QWORD *)this + 9) + 8LL * j);
*(_QWORD *)(*(_QWORD *)(*(_QWORD *)(v7 + 72) + 8LL * j) + 8LL) = LefDefParser::lefMalloc(
(LefDefParser *)(8LL
* **(int **)(*((_QWORD *)this + 9)
+ 8LL * j)),
j);
*(_QWORD *)(*(_QWORD *)(*(_QWORD *)(v7 + 72) + 8LL * j) + 16LL) = LefDefParser::lefMalloc(
(LefDefParser *)(8LL
* **(int **)(*((_QWORD *)this + 9)
+ 8LL * j)),
j);
a2 = j;
*(_DWORD *)(*(_QWORD *)(*(_QWORD *)(v7 + 72) + 8LL * j) + 24LL) = *(_DWORD *)(*(_QWORD *)(*((_QWORD *)this + 9)
+ 8LL * j)
+ 24LL);
*(_DWORD *)(*(_QWORD *)(v7 + 16) + 4LL * j) = *(_DWORD *)(*((_QWORD *)this + 2) + 4LL * j);
for ( k = 0; k < **(_DWORD **)(*((_QWORD *)this + 9) + 8LL * j); ++k )
{
*(_QWORD *)(*(_QWORD *)(*(_QWORD *)(*(_QWORD *)(v7 + 72) + 8LL * j) + 8LL) + 8LL * k) = *(_QWORD *)(*(_QWORD *)(*(_QWORD *)(*((_QWORD *)this + 9) + 8LL * j) + 8LL) + 8LL * k);
*(_QWORD *)(*(_QWORD *)(*(_QWORD *)(*(_QWORD *)(v7 + 72) + 8LL * j) + 16LL) + 8LL * k) = *(_QWORD *)(*(_QWORD *)(*(_QWORD *)(*((_QWORD *)this + 9) + 8LL * j) + 16LL) + 8LL * k);
}
}
v2 = strlen(*(_QWORD *)this);
*(_QWORD *)v7 = LefDefParser::lefMalloc((LefDefParser *)(v2 + 1), a2);
strcpy(*(_QWORD *)v7, *(_QWORD *)this);
return v7;
}
| clone:
SUB RSP,0x28
MOV qword ptr [RSP + 0x20],RDI
MOV RAX,qword ptr [RSP + 0x20]
MOV qword ptr [RSP + 0x8],RAX
MOV EDI,0x50
CALL 0x001359d0
MOV RCX,RAX
MOV RAX,qword ptr [RSP + 0x8]
MOV qword ptr [RSP + 0x18],RCX
CMP dword ptr [RAX + 0x18],0x0
JLE 0x00115807
MOV RAX,qword ptr [RSP + 0x8]
MOVSXD RDI,dword ptr [RAX + 0x18]
SHL RDI,0x3
CALL 0x001359d0
MOV RDX,RAX
MOV RAX,qword ptr [RSP + 0x8]
MOV RCX,qword ptr [RSP + 0x18]
MOV qword ptr [RCX + 0x20],RDX
MOVSXD RDI,dword ptr [RAX + 0x18]
SHL RDI,0x3
CALL 0x001359d0
MOV RDX,RAX
MOV RAX,qword ptr [RSP + 0x8]
MOV RCX,qword ptr [RSP + 0x18]
MOV qword ptr [RCX + 0x28],RDX
MOVSXD RDI,dword ptr [RAX + 0x18]
SHL RDI,0x3
CALL 0x001359d0
MOV RDX,RAX
MOV RAX,qword ptr [RSP + 0x8]
MOV RCX,qword ptr [RSP + 0x18]
MOV qword ptr [RCX + 0x30],RDX
MOVSXD RDI,dword ptr [RAX + 0x18]
SHL RDI,0x3
CALL 0x001359d0
MOV RDX,RAX
MOV RAX,qword ptr [RSP + 0x8]
MOV RCX,qword ptr [RSP + 0x18]
MOV qword ptr [RCX + 0x38],RDX
MOVSXD RDI,dword ptr [RAX + 0x18]
SHL RDI,0x2
CALL 0x001359d0
MOV RDX,RAX
MOV RAX,qword ptr [RSP + 0x8]
MOV RCX,qword ptr [RSP + 0x18]
MOV qword ptr [RCX + 0x8],RDX
MOV EDX,dword ptr [RAX + 0x18]
MOV RCX,qword ptr [RSP + 0x18]
MOV dword ptr [RCX + 0x18],EDX
MOV ECX,dword ptr [RAX + 0x1c]
MOV RAX,qword ptr [RSP + 0x18]
MOV dword ptr [RAX + 0x1c],ECX
MOV dword ptr [RSP + 0x14],0x0
LAB_0011573d:
MOV RCX,qword ptr [RSP + 0x8]
MOV EAX,dword ptr [RSP + 0x14]
CMP EAX,dword ptr [RCX + 0x18]
JGE 0x00115805
MOV RAX,qword ptr [RSP + 0x8]
MOV RCX,qword ptr [RAX + 0x20]
MOVSXD RDX,dword ptr [RSP + 0x14]
MOVSD XMM0,qword ptr [RCX + RDX*0x8]
MOV RCX,qword ptr [RSP + 0x18]
MOV RCX,qword ptr [RCX + 0x20]
MOVSXD RDX,dword ptr [RSP + 0x14]
MOVSD qword ptr [RCX + RDX*0x8],XMM0
MOV RCX,qword ptr [RAX + 0x28]
MOVSXD RDX,dword ptr [RSP + 0x14]
MOVSD XMM0,qword ptr [RCX + RDX*0x8]
MOV RCX,qword ptr [RSP + 0x18]
MOV RCX,qword ptr [RCX + 0x28]
MOVSXD RDX,dword ptr [RSP + 0x14]
MOVSD qword ptr [RCX + RDX*0x8],XMM0
MOV RCX,qword ptr [RAX + 0x30]
MOVSXD RDX,dword ptr [RSP + 0x14]
MOVSD XMM0,qword ptr [RCX + RDX*0x8]
MOV RCX,qword ptr [RSP + 0x18]
MOV RCX,qword ptr [RCX + 0x30]
MOVSXD RDX,dword ptr [RSP + 0x14]
MOVSD qword ptr [RCX + RDX*0x8],XMM0
MOV RCX,qword ptr [RAX + 0x38]
MOVSXD RDX,dword ptr [RSP + 0x14]
MOVSD XMM0,qword ptr [RCX + RDX*0x8]
MOV RCX,qword ptr [RSP + 0x18]
MOV RCX,qword ptr [RCX + 0x38]
MOVSXD RDX,dword ptr [RSP + 0x14]
MOVSD qword ptr [RCX + RDX*0x8],XMM0
MOV RAX,qword ptr [RAX + 0x8]
MOVSXD RCX,dword ptr [RSP + 0x14]
MOV EDX,dword ptr [RAX + RCX*0x4]
MOV RAX,qword ptr [RSP + 0x18]
MOV RAX,qword ptr [RAX + 0x8]
MOVSXD RCX,dword ptr [RSP + 0x14]
MOV dword ptr [RAX + RCX*0x4],EDX
MOV EAX,dword ptr [RSP + 0x14]
ADD EAX,0x1
MOV dword ptr [RSP + 0x14],EAX
JMP 0x0011573d
LAB_00115805:
JMP 0x00115863
LAB_00115807:
MOV RAX,qword ptr [RSP + 0x8]
MOV RCX,qword ptr [RSP + 0x18]
MOV qword ptr [RCX + 0x20],0x0
MOV RCX,qword ptr [RSP + 0x18]
MOV qword ptr [RCX + 0x28],0x0
MOV RCX,qword ptr [RSP + 0x18]
MOV qword ptr [RCX + 0x30],0x0
MOV RCX,qword ptr [RSP + 0x18]
MOV qword ptr [RCX + 0x38],0x0
MOV RCX,qword ptr [RSP + 0x18]
MOV qword ptr [RCX + 0x8],0x0
MOV EDX,dword ptr [RAX + 0x18]
MOV RCX,qword ptr [RSP + 0x18]
MOV dword ptr [RCX + 0x18],EDX
MOV ECX,dword ptr [RAX + 0x1c]
MOV RAX,qword ptr [RSP + 0x18]
MOV dword ptr [RAX + 0x1c],ECX
LAB_00115863:
MOV RAX,qword ptr [RSP + 0x8]
MOV EDX,dword ptr [RAX + 0x40]
MOV RCX,qword ptr [RSP + 0x18]
MOV dword ptr [RCX + 0x40],EDX
MOV EDX,dword ptr [RAX + 0x44]
MOV RCX,qword ptr [RSP + 0x18]
MOV dword ptr [RCX + 0x44],EDX
MOVSXD RDI,dword ptr [RAX + 0x44]
SHL RDI,0x3
CALL 0x001359d0
MOV RDX,RAX
MOV RAX,qword ptr [RSP + 0x8]
MOV RCX,qword ptr [RSP + 0x18]
MOV qword ptr [RCX + 0x48],RDX
CMP dword ptr [RAX + 0x40],0x0
JLE 0x001158c2
MOV RAX,qword ptr [RSP + 0x8]
MOVSXD RDI,dword ptr [RAX + 0x40]
SHL RDI,0x2
CALL 0x001359d0
MOV RCX,RAX
MOV RAX,qword ptr [RSP + 0x18]
MOV qword ptr [RAX + 0x10],RCX
JMP 0x001158cf
LAB_001158c2:
MOV RAX,qword ptr [RSP + 0x18]
MOV qword ptr [RAX + 0x10],0x0
LAB_001158cf:
MOV dword ptr [RSP + 0x14],0x0
LAB_001158d7:
MOV RCX,qword ptr [RSP + 0x8]
MOV EAX,dword ptr [RSP + 0x14]
CMP EAX,dword ptr [RCX + 0x40]
JGE 0x00115aa3
MOV EDI,0x20
CALL 0x001359d0
MOV RSI,RAX
MOV RAX,qword ptr [RSP + 0x8]
MOV RCX,qword ptr [RSP + 0x18]
MOV RCX,qword ptr [RCX + 0x48]
MOVSXD RDX,dword ptr [RSP + 0x14]
MOV qword ptr [RCX + RDX*0x8],RSI
MOV RCX,qword ptr [RAX + 0x48]
MOVSXD RDX,dword ptr [RSP + 0x14]
MOV RCX,qword ptr [RCX + RDX*0x8]
MOV EDX,dword ptr [RCX]
MOV RCX,qword ptr [RSP + 0x18]
MOV RCX,qword ptr [RCX + 0x48]
MOVSXD RSI,dword ptr [RSP + 0x14]
MOV RCX,qword ptr [RCX + RSI*0x8]
MOV dword ptr [RCX],EDX
MOV RAX,qword ptr [RAX + 0x48]
MOVSXD RCX,dword ptr [RSP + 0x14]
MOV RAX,qword ptr [RAX + RCX*0x8]
MOVSXD RDI,dword ptr [RAX]
SHL RDI,0x3
CALL 0x001359d0
MOV RDX,RAX
MOV RAX,qword ptr [RSP + 0x8]
MOV RCX,qword ptr [RSP + 0x18]
MOV RCX,qword ptr [RCX + 0x48]
MOVSXD RSI,dword ptr [RSP + 0x14]
MOV RCX,qword ptr [RCX + RSI*0x8]
MOV qword ptr [RCX + 0x8],RDX
MOV RAX,qword ptr [RAX + 0x48]
MOVSXD RCX,dword ptr [RSP + 0x14]
MOV RAX,qword ptr [RAX + RCX*0x8]
MOVSXD RDI,dword ptr [RAX]
SHL RDI,0x3
CALL 0x001359d0
MOV RDX,RAX
MOV RAX,qword ptr [RSP + 0x8]
MOV RCX,qword ptr [RSP + 0x18]
MOV RCX,qword ptr [RCX + 0x48]
MOVSXD RSI,dword ptr [RSP + 0x14]
MOV RCX,qword ptr [RCX + RSI*0x8]
MOV qword ptr [RCX + 0x10],RDX
MOV RCX,qword ptr [RAX + 0x48]
MOVSXD RDX,dword ptr [RSP + 0x14]
MOV RCX,qword ptr [RCX + RDX*0x8]
MOV EDX,dword ptr [RCX + 0x18]
MOV RCX,qword ptr [RSP + 0x18]
MOV RCX,qword ptr [RCX + 0x48]
MOVSXD RSI,dword ptr [RSP + 0x14]
MOV RCX,qword ptr [RCX + RSI*0x8]
MOV dword ptr [RCX + 0x18],EDX
MOV RAX,qword ptr [RAX + 0x10]
MOVSXD RCX,dword ptr [RSP + 0x14]
MOV EDX,dword ptr [RAX + RCX*0x4]
MOV RAX,qword ptr [RSP + 0x18]
MOV RAX,qword ptr [RAX + 0x10]
MOVSXD RCX,dword ptr [RSP + 0x14]
MOV dword ptr [RAX + RCX*0x4],EDX
MOV dword ptr [RSP + 0x10],0x0
LAB_001159e8:
MOV RCX,qword ptr [RSP + 0x8]
MOV EAX,dword ptr [RSP + 0x10]
MOV RCX,qword ptr [RCX + 0x48]
MOVSXD RDX,dword ptr [RSP + 0x14]
MOV RCX,qword ptr [RCX + RDX*0x8]
CMP EAX,dword ptr [RCX]
JGE 0x00115a91
MOV RAX,qword ptr [RSP + 0x8]
MOV RCX,qword ptr [RAX + 0x48]
MOVSXD RDX,dword ptr [RSP + 0x14]
MOV RCX,qword ptr [RCX + RDX*0x8]
MOV RCX,qword ptr [RCX + 0x8]
MOVSXD RDX,dword ptr [RSP + 0x10]
MOVSD XMM0,qword ptr [RCX + RDX*0x8]
MOV RCX,qword ptr [RSP + 0x18]
MOV RCX,qword ptr [RCX + 0x48]
MOVSXD RDX,dword ptr [RSP + 0x14]
MOV RCX,qword ptr [RCX + RDX*0x8]
MOV RCX,qword ptr [RCX + 0x8]
MOVSXD RDX,dword ptr [RSP + 0x10]
MOVSD qword ptr [RCX + RDX*0x8],XMM0
MOV RAX,qword ptr [RAX + 0x48]
MOVSXD RCX,dword ptr [RSP + 0x14]
MOV RAX,qword ptr [RAX + RCX*0x8]
MOV RAX,qword ptr [RAX + 0x10]
MOVSXD RCX,dword ptr [RSP + 0x10]
MOVSD XMM0,qword ptr [RAX + RCX*0x8]
MOV RAX,qword ptr [RSP + 0x18]
MOV RAX,qword ptr [RAX + 0x48]
MOVSXD RCX,dword ptr [RSP + 0x14]
MOV RAX,qword ptr [RAX + RCX*0x8]
MOV RAX,qword ptr [RAX + 0x10]
MOVSXD RCX,dword ptr [RSP + 0x10]
MOVSD qword ptr [RAX + RCX*0x8],XMM0
MOV EAX,dword ptr [RSP + 0x10]
ADD EAX,0x1
MOV dword ptr [RSP + 0x10],EAX
JMP 0x001159e8
LAB_00115a91:
JMP 0x00115a93
LAB_00115a93:
MOV EAX,dword ptr [RSP + 0x14]
ADD EAX,0x1
MOV dword ptr [RSP + 0x14],EAX
JMP 0x001158d7
LAB_00115aa3:
MOV RAX,qword ptr [RSP + 0x8]
MOV RDI,qword ptr [RAX]
CALL 0x001020d0
MOV RDI,RAX
ADD RDI,0x1
CALL 0x001359d0
MOV RDX,RAX
MOV RAX,qword ptr [RSP + 0x8]
MOV RCX,qword ptr [RSP + 0x18]
MOV qword ptr [RCX],RDX
MOV RCX,qword ptr [RSP + 0x18]
MOV RDI,qword ptr [RCX]
MOV RSI,qword ptr [RAX]
CALL 0x00102250
MOV RAX,qword ptr [RSP + 0x18]
ADD RSP,0x28
RET
|
/* LefDefParser::lefiViaLayer::clone() */
int8 * __thiscall LefDefParser::lefiViaLayer::clone(lefiViaLayer *this)
{
int8 *puVar1;
int8 uVar2;
size_t sVar3;
int local_18;
int local_14;
puVar1 = (int8 *)lefMalloc(0x50);
if (*(int *)(this + 0x18) < 1) {
puVar1[4] = 0;
puVar1[5] = 0;
puVar1[6] = 0;
puVar1[7] = 0;
puVar1[1] = 0;
*(int4 *)(puVar1 + 3) = *(int4 *)(this + 0x18);
*(int4 *)((long)puVar1 + 0x1c) = *(int4 *)(this + 0x1c);
}
else {
uVar2 = lefMalloc((long)*(int *)(this + 0x18) << 3);
puVar1[4] = uVar2;
uVar2 = lefMalloc((long)*(int *)(this + 0x18) << 3);
puVar1[5] = uVar2;
uVar2 = lefMalloc((long)*(int *)(this + 0x18) << 3);
puVar1[6] = uVar2;
uVar2 = lefMalloc((long)*(int *)(this + 0x18) << 3);
puVar1[7] = uVar2;
uVar2 = lefMalloc((long)*(int *)(this + 0x18) << 2);
puVar1[1] = uVar2;
*(int4 *)(puVar1 + 3) = *(int4 *)(this + 0x18);
*(int4 *)((long)puVar1 + 0x1c) = *(int4 *)(this + 0x1c);
for (local_14 = 0; local_14 < *(int *)(this + 0x18); local_14 = local_14 + 1) {
*(int8 *)(puVar1[4] + (long)local_14 * 8) =
*(int8 *)(*(long *)(this + 0x20) + (long)local_14 * 8);
*(int8 *)(puVar1[5] + (long)local_14 * 8) =
*(int8 *)(*(long *)(this + 0x28) + (long)local_14 * 8);
*(int8 *)(puVar1[6] + (long)local_14 * 8) =
*(int8 *)(*(long *)(this + 0x30) + (long)local_14 * 8);
*(int8 *)(puVar1[7] + (long)local_14 * 8) =
*(int8 *)(*(long *)(this + 0x38) + (long)local_14 * 8);
*(int4 *)(puVar1[1] + (long)local_14 * 4) =
*(int4 *)(*(long *)(this + 8) + (long)local_14 * 4);
}
}
*(int4 *)(puVar1 + 8) = *(int4 *)(this + 0x40);
*(int4 *)((long)puVar1 + 0x44) = *(int4 *)(this + 0x44);
uVar2 = lefMalloc((long)*(int *)(this + 0x44) << 3);
puVar1[9] = uVar2;
if (*(int *)(this + 0x40) < 1) {
puVar1[2] = 0;
}
else {
uVar2 = lefMalloc((long)*(int *)(this + 0x40) << 2);
puVar1[2] = uVar2;
}
for (local_14 = 0; local_14 < *(int *)(this + 0x40); local_14 = local_14 + 1) {
uVar2 = lefMalloc(0x20);
*(int8 *)(puVar1[9] + (long)local_14 * 8) = uVar2;
**(int4 **)(puVar1[9] + (long)local_14 * 8) =
**(int4 **)(*(long *)(this + 0x48) + (long)local_14 * 8);
uVar2 = lefMalloc((long)**(int **)(*(long *)(this + 0x48) + (long)local_14 * 8) << 3);
*(int8 *)(*(long *)(puVar1[9] + (long)local_14 * 8) + 8) = uVar2;
uVar2 = lefMalloc((long)**(int **)(*(long *)(this + 0x48) + (long)local_14 * 8) << 3);
*(int8 *)(*(long *)(puVar1[9] + (long)local_14 * 8) + 0x10) = uVar2;
*(int4 *)(*(long *)(puVar1[9] + (long)local_14 * 8) + 0x18) =
*(int4 *)(*(long *)(*(long *)(this + 0x48) + (long)local_14 * 8) + 0x18);
*(int4 *)(puVar1[2] + (long)local_14 * 4) =
*(int4 *)(*(long *)(this + 0x10) + (long)local_14 * 4);
for (local_18 = 0; local_18 < **(int **)(*(long *)(this + 0x48) + (long)local_14 * 8);
local_18 = local_18 + 1) {
*(int8 *)(*(long *)(*(long *)(puVar1[9] + (long)local_14 * 8) + 8) + (long)local_18 * 8)
= *(int8 *)
(*(long *)(*(long *)(*(long *)(this + 0x48) + (long)local_14 * 8) + 8) +
(long)local_18 * 8);
*(int8 *)
(*(long *)(*(long *)(puVar1[9] + (long)local_14 * 8) + 0x10) + (long)local_18 * 8) =
*(int8 *)
(*(long *)(*(long *)(*(long *)(this + 0x48) + (long)local_14 * 8) + 0x10) +
(long)local_18 * 8);
}
}
sVar3 = strlen(*(char **)this);
uVar2 = lefMalloc(sVar3 + 1);
*puVar1 = uVar2;
strcpy((char *)*puVar1,*(char **)this);
return puVar1;
}
| |
45,296 | my_charset_file_tailoring_realloc | eloqsql/strings/ctype.c | static int
my_charset_file_tailoring_realloc(MY_CHARSET_FILE *i, size_t newlen)
{
if (i->tailoring_alloced_length > newlen ||
(i->tailoring= i->loader->realloc(i->tailoring,
(i->tailoring_alloced_length=
(newlen + 32*1024)))))
{
return MY_XML_OK;
}
return MY_XML_ERROR;
} | O0 | c | my_charset_file_tailoring_realloc:
pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movq -0x10(%rbp), %rax
movq 0x698(%rax), %rax
cmpq -0x18(%rbp), %rax
ja 0x745e7
movq -0x10(%rbp), %rax
movq 0x7a8(%rax), %rax
movq 0x90(%rax), %rax
movq -0x10(%rbp), %rcx
movq 0x688(%rcx), %rdi
movq -0x18(%rbp), %rsi
addq $0x8000, %rsi # imm = 0x8000
movq -0x10(%rbp), %rcx
movq %rsi, 0x698(%rcx)
callq *%rax
movq -0x10(%rbp), %rcx
movq %rax, 0x688(%rcx)
cmpq $0x0, %rax
je 0x745f0
movl $0x0, -0x4(%rbp)
jmp 0x745f7
movl $0x1, -0x4(%rbp)
movl -0x4(%rbp), %eax
addq $0x20, %rsp
popq %rbp
retq
| my_charset_file_tailoring_realloc:
push rbp
mov rbp, rsp
sub rsp, 20h
mov [rbp+var_10], rdi
mov [rbp+var_18], rsi
mov rax, [rbp+var_10]
mov rax, [rax+698h]
cmp rax, [rbp+var_18]
ja short loc_745E7
mov rax, [rbp+var_10]
mov rax, [rax+7A8h]
mov rax, [rax+90h]
mov rcx, [rbp+var_10]
mov rdi, [rcx+688h]
mov rsi, [rbp+var_18]
add rsi, 8000h
mov rcx, [rbp+var_10]
mov [rcx+698h], rsi
call rax
mov rcx, [rbp+var_10]
mov [rcx+688h], rax
cmp rax, 0
jz short loc_745F0
loc_745E7:
mov [rbp+var_4], 0
jmp short loc_745F7
loc_745F0:
mov [rbp+var_4], 1
loc_745F7:
mov eax, [rbp+var_4]
add rsp, 20h
pop rbp
retn
| long long my_charset_file_tailoring_realloc(_QWORD *a1, unsigned long long a2)
{
long long ( *v2)(long long); // rax
long long v3; // rdi
long long v4; // rax
unsigned int v7; // [rsp+1Ch] [rbp-4h]
v7 = 0;
if ( a1[211] <= a2 )
{
v2 = *(long long ( **)(long long))(a1[245] + 144LL);
v3 = a1[209];
a1[211] = a2 + 0x8000;
v4 = v2(v3);
a1[209] = v4;
if ( !v4 )
return 1;
}
return v7;
}
| my_charset_file_tailoring_realloc:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x20
MOV qword ptr [RBP + -0x10],RDI
MOV qword ptr [RBP + -0x18],RSI
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX + 0x698]
CMP RAX,qword ptr [RBP + -0x18]
JA 0x001745e7
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX + 0x7a8]
MOV RAX,qword ptr [RAX + 0x90]
MOV RCX,qword ptr [RBP + -0x10]
MOV RDI,qword ptr [RCX + 0x688]
MOV RSI,qword ptr [RBP + -0x18]
ADD RSI,0x8000
MOV RCX,qword ptr [RBP + -0x10]
MOV qword ptr [RCX + 0x698],RSI
CALL RAX
MOV RCX,qword ptr [RBP + -0x10]
MOV qword ptr [RCX + 0x688],RAX
CMP RAX,0x0
JZ 0x001745f0
LAB_001745e7:
MOV dword ptr [RBP + -0x4],0x0
JMP 0x001745f7
LAB_001745f0:
MOV dword ptr [RBP + -0x4],0x1
LAB_001745f7:
MOV EAX,dword ptr [RBP + -0x4]
ADD RSP,0x20
POP RBP
RET
|
int4 my_charset_file_tailoring_realloc(long param_1,ulong param_2)
{
code *pcVar1;
long lVar2;
if (*(ulong *)(param_1 + 0x698) <= param_2) {
pcVar1 = *(code **)(*(long *)(param_1 + 0x7a8) + 0x90);
*(ulong *)(param_1 + 0x698) = param_2 + 0x8000;
lVar2 = (*pcVar1)(*(int8 *)(param_1 + 0x688));
*(long *)(param_1 + 0x688) = lVar2;
if (lVar2 == 0) {
return 1;
}
}
return 0;
}
| |
45,297 | my_close | eloqsql/mysys/my_open.c | int my_close(File fd, myf MyFlags)
{
int err;
char *name= NULL;
DBUG_ENTER("my_close");
DBUG_PRINT("my",("fd: %d MyFlags: %lu",fd, MyFlags));
if (!(MyFlags & (MY_WME | MY_FAE)))
MyFlags|= my_global_flags;
if ((uint) fd < my_file_limit && my_file_info[fd].type != UNOPEN)
{
name= my_file_info[fd].name;
my_file_info[fd].name= NULL;
my_file_info[fd].type= UNOPEN;
}
#ifndef _WIN32
err= close(fd);
#else
err= my_win_close(fd);
#endif
if (err)
{
DBUG_PRINT("error",("Got error %d on close",err));
my_errno=errno;
if (MyFlags & (MY_FAE | MY_WME))
my_error(EE_BADCLOSE, MYF(ME_BELL | (MyFlags & (ME_NOTE | ME_ERROR_LOG))),
name,errno);
}
if (name)
{
my_free(name);
}
my_atomic_add32_explicit(&my_file_opened, -1, MY_MEMORY_ORDER_RELAXED);
DBUG_RETURN(err);
} | O3 | c | my_close:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %r12
xorl %ebx, %ebx
movl $0x0, %r14d
testb $0x18, %r12b
jne 0x2ba22
leaq 0x33a749(%rip), %rax # 0x366168
movq (%rax), %r14
leaq 0x2c3927(%rip), %rax # 0x2ef350
cmpl %edi, (%rax)
jbe 0x2ba61
leaq 0x2c3924(%rip), %rax # 0x2ef358
movq (%rax), %rdx
movslq %edi, %rcx
shlq $0x4, %rcx
cmpl $0x0, 0x8(%rdx,%rcx)
je 0x2ba5f
addq %rcx, %rdx
movq (%rdx), %rbx
movq $0x0, (%rdx)
movq (%rax), %rax
movl $0x0, 0x8(%rax,%rcx)
jmp 0x2ba61
xorl %ebx, %ebx
callq 0x247a0
movl %eax, %r15d
testl %eax, %eax
je 0x2baaa
orq %r12, %r14
callq 0x24060
movq %rax, %r12
movl (%rax), %r13d
callq 0x26caa
movl %r13d, (%rax)
testb $0x18, %r14b
je 0x2baaa
andl $0x440, %r14d # imm = 0x440
orq $0x4, %r14
movl (%r12), %ecx
movl $0x4, %edi
movq %r14, %rsi
movq %rbx, %rdx
xorl %eax, %eax
callq 0x2aaeb
testq %rbx, %rbx
je 0x2bab7
movq %rbx, %rdi
callq 0x2b722
leaq 0x33a6b6(%rip), %rax # 0x366174
lock
decl (%rax)
movl %r15d, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
nop
| my_close:
push rbp
mov rbp, rsp
push r15
push r14
push r13
push r12
push rbx
push rax
mov r12, rsi
xor ebx, ebx
mov r14d, 0
test r12b, 18h
jnz short loc_2BA22
lea rax, my_global_flags
mov r14, [rax]
loc_2BA22:
lea rax, my_file_limit
cmp [rax], edi
jbe short loc_2BA61
lea rax, my_file_info
mov rdx, [rax]
movsxd rcx, edi
shl rcx, 4
cmp dword ptr [rdx+rcx+8], 0
jz short loc_2BA5F
add rdx, rcx
mov rbx, [rdx]
mov qword ptr [rdx], 0
mov rax, [rax]
mov dword ptr [rax+rcx+8], 0
jmp short loc_2BA61
loc_2BA5F:
xor ebx, ebx
loc_2BA61:
call _close
mov r15d, eax
test eax, eax
jz short loc_2BAAA
or r14, r12
call ___errno_location
mov r12, rax
mov r13d, [rax]
call _my_thread_var
mov [rax], r13d
test r14b, 18h
jz short loc_2BAAA
and r14d, 440h
or r14, 4
mov ecx, [r12]
mov edi, 4
mov rsi, r14
mov rdx, rbx
xor eax, eax
call my_error
loc_2BAAA:
test rbx, rbx
jz short loc_2BAB7
mov rdi, rbx
call my_free
loc_2BAB7:
lea rax, my_file_opened
lock dec dword ptr [rax]
mov eax, r15d
add rsp, 8
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
| long long my_close(long long a1, __int16 a2)
{
long long v2; // rbx
__int16 v3; // r14
long long v4; // rcx
unsigned int v5; // r15d
__int16 v6; // r14
unsigned int *v7; // r12
unsigned int v8; // r13d
v2 = 0LL;
v3 = 0;
if ( (a2 & 0x18) == 0 )
v3 = my_global_flags;
if ( my_file_limit > (unsigned int)a1 )
{
v4 = 16LL * (int)a1;
if ( *(_DWORD *)((char *)my_file_info + v4 + 8) )
{
v2 = *(_QWORD *)((char *)my_file_info + v4);
*(_QWORD *)((char *)my_file_info + v4) = 0LL;
*(_DWORD *)((char *)my_file_info + v4 + 8) = 0;
}
else
{
v2 = 0LL;
}
}
v5 = close(a1);
if ( v5 )
{
v6 = a2 | v3;
v7 = (unsigned int *)__errno_location(a1);
v8 = *v7;
*(_DWORD *)my_thread_var() = v8;
if ( (v6 & 0x18) != 0 )
my_error(4u, v6 & 0x440 | 4, v2, *v7);
}
if ( v2 )
my_free(v2);
_InterlockedDecrement(my_file_opened);
return v5;
}
| my_close:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
PUSH RAX
MOV R12,RSI
XOR EBX,EBX
MOV R14D,0x0
TEST R12B,0x18
JNZ 0x0012ba22
LEA RAX,[0x466168]
MOV R14,qword ptr [RAX]
LAB_0012ba22:
LEA RAX,[0x3ef350]
CMP dword ptr [RAX],EDI
JBE 0x0012ba61
LEA RAX,[0x3ef358]
MOV RDX,qword ptr [RAX]
MOVSXD RCX,EDI
SHL RCX,0x4
CMP dword ptr [RDX + RCX*0x1 + 0x8],0x0
JZ 0x0012ba5f
ADD RDX,RCX
MOV RBX,qword ptr [RDX]
MOV qword ptr [RDX],0x0
MOV RAX,qword ptr [RAX]
MOV dword ptr [RAX + RCX*0x1 + 0x8],0x0
JMP 0x0012ba61
LAB_0012ba5f:
XOR EBX,EBX
LAB_0012ba61:
CALL 0x001247a0
MOV R15D,EAX
TEST EAX,EAX
JZ 0x0012baaa
OR R14,R12
CALL 0x00124060
MOV R12,RAX
MOV R13D,dword ptr [RAX]
CALL 0x00126caa
MOV dword ptr [RAX],R13D
TEST R14B,0x18
JZ 0x0012baaa
AND R14D,0x440
OR R14,0x4
MOV ECX,dword ptr [R12]
MOV EDI,0x4
MOV RSI,R14
MOV RDX,RBX
XOR EAX,EAX
CALL 0x0012aaeb
LAB_0012baaa:
TEST RBX,RBX
JZ 0x0012bab7
MOV RDI,RBX
CALL 0x0012b722
LAB_0012bab7:
LEA RAX,[0x466174]
DEC.LOCK dword ptr [RAX]
MOV EAX,R15D
ADD RSP,0x8
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
|
int my_close(uint param_1,ulong param_2)
{
int iVar1;
int iVar2;
int *piVar3;
int *piVar4;
long lVar5;
long lVar6;
ulong uVar7;
lVar6 = 0;
uVar7 = 0;
if ((param_2 & 0x18) == 0) {
uVar7 = my_global_flags;
}
if (param_1 < my_file_limit) {
lVar5 = (long)(int)param_1 * 0x10;
if (*(int *)(my_file_info + lVar5 + 8) == 0) {
lVar6 = 0;
}
else {
lVar6 = *(long *)(my_file_info + lVar5);
*(long *)(my_file_info + lVar5) = 0;
*(int4 *)(my_file_info + lVar5 + 8) = 0;
}
}
iVar2 = close(param_1);
if (iVar2 != 0) {
piVar3 = __errno_location();
iVar1 = *piVar3;
piVar4 = (int *)_my_thread_var();
*piVar4 = iVar1;
if (((uVar7 | param_2) & 0x18) != 0) {
my_error(4,(uint)(uVar7 | param_2) & 0x440 | 4,lVar6,*piVar3);
}
}
if (lVar6 != 0) {
my_free(lVar6);
}
LOCK();
my_file_opened = my_file_opened + -1;
UNLOCK();
return iVar2;
}
| |
45,298 | intx_add | corpus-core[P]colibri-stateless/build_O3/_deps/intx-src/include/intx/intx.hpp | inline IntT load(const uint8_t* src) noexcept
{
// Align bytes.
// TODO: Using memcpy() directly triggers this optimization bug in GCC:
// https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107837
alignas(IntT) std::byte aligned_storage[sizeof(IntT)];
std::memcpy(&aligned_storage, src, sizeof(IntT));
// TODO(C++23): Use std::start_lifetime_as<uint256>().
return to_big_endian(*reinterpret_cast<const IntT*>(&aligned_storage));
} | O3 | cpp | intx_add:
movq (%rdi), %rax
movq 0x8(%rdi), %rcx
bswapq %rcx
bswapq %rax
movq %rax, %xmm0
movq 0x18(%rdi), %rax
bswapq %rax
movq %rcx, %xmm1
movq 0x10(%rdi), %rcx
bswapq %rcx
punpcklqdq %xmm0, %xmm1 # xmm1 = xmm1[0],xmm0[0]
movq %rcx, %xmm0
movq %rax, %xmm2
punpcklqdq %xmm0, %xmm2 # xmm2 = xmm2[0],xmm0[0]
por %xmm1, %xmm2
pxor %xmm0, %xmm0
pcmpeqd %xmm2, %xmm0
movmskps %xmm0, %ecx
xorl %eax, %eax
xorl $0xf, %ecx
sete %al
retq
| intx_is_zero:
mov rax, [rdi]
mov rcx, [rdi+8]
bswap rcx
bswap rax
movq xmm0, rax
mov rax, [rdi+18h]
bswap rax
movq xmm1, rcx
mov rcx, [rdi+10h]
bswap rcx
punpcklqdq xmm1, xmm0
movq xmm0, rcx
movq xmm2, rax
punpcklqdq xmm2, xmm0
por xmm2, xmm1
pxor xmm0, xmm0
pcmpeqd xmm0, xmm2
movmskps ecx, xmm0
xor eax, eax
xor ecx, 0Fh
setz al
retn
| _BOOL8 intx_is_zero(unsigned long long *a1)
{
return _mm_movemask_ps((__m128)_mm_cmpeq_epi32(
(__m128i)0LL,
_mm_or_si128(
_mm_unpacklo_epi64(
(__m128i)_byteswap_uint64(a1[3]),
(__m128i)_byteswap_uint64(a1[2])),
_mm_unpacklo_epi64(
(__m128i)_byteswap_uint64(a1[1]),
(__m128i)_byteswap_uint64(*a1))))) == 0xF;
}
| intx_is_zero:
MOV RAX,qword ptr [RDI]
MOV RCX,qword ptr [RDI + 0x8]
BSWAP RCX
BSWAP RAX
MOVQ XMM0,RAX
MOV RAX,qword ptr [RDI + 0x18]
BSWAP RAX
MOVQ XMM1,RCX
MOV RCX,qword ptr [RDI + 0x10]
BSWAP RCX
PUNPCKLQDQ XMM1,XMM0
MOVQ XMM0,RCX
MOVQ XMM2,RAX
PUNPCKLQDQ XMM2,XMM0
POR XMM2,XMM1
PXOR XMM0,XMM0
PCMPEQD XMM0,XMM2
MOVMSKPS ECX,XMM0
XOR EAX,EAX
XOR ECX,0xf
SETZ AL
RET
|
bool intx_is_zero(ulong *param_1)
{
ulong uVar1;
ulong uVar2;
ulong uVar3;
ulong uVar4;
ulong uVar5;
int iVar6;
int1 auVar7 [16];
int1 auVar8 [16];
int1 auVar9 [16];
uVar1 = *param_1;
uVar2 = param_1[1];
uVar3 = param_1[3];
uVar4 = param_1[2];
uVar5 = uVar4 >> 0x38 | (uVar4 & 0xff000000000000) >> 0x28 | (uVar4 & 0xff0000000000) >> 0x18 |
(uVar4 & 0xff00000000) >> 8;
auVar8._8_8_ = uVar1 >> 0x38 | (uVar1 & 0xff000000000000) >> 0x28 |
(uVar1 & 0xff0000000000) >> 0x18 | (uVar1 & 0xff00000000) >> 8 |
(uVar1 & 0xff000000) << 8 | (uVar1 & 0xff0000) << 0x18 | (uVar1 & 0xff00) << 0x28 |
uVar1 << 0x38;
auVar8._0_8_ = uVar2 >> 0x38 | (uVar2 & 0xff000000000000) >> 0x28 |
(uVar2 & 0xff0000000000) >> 0x18 | (uVar2 & 0xff00000000) >> 8 |
(uVar2 & 0xff000000) << 8 | (uVar2 & 0xff0000) << 0x18 | (uVar2 & 0xff00) << 0x28 |
uVar2 << 0x38;
auVar9._8_8_ = uVar5 | (uVar4 & 0xff000000) << 8 | (uVar4 & 0xff0000) << 0x18 |
(uVar4 & 0xff00) << 0x28 | uVar4 << 0x38;
auVar9._0_8_ = uVar3 >> 0x38 | (uVar3 & 0xff000000000000) >> 0x28 |
(uVar3 & 0xff0000000000) >> 0x18 | (uVar3 & 0xff00000000) >> 8 |
(uVar3 & 0xff000000) << 8 | (uVar3 & 0xff0000) << 0x18 | (uVar3 & 0xff00) << 0x28 |
uVar3 << 0x38;
auVar9 = auVar9 | auVar8;
auVar7._0_4_ = -(uint)(auVar9._0_4_ == 0);
auVar7._4_4_ = -(uint)(auVar9._4_4_ == 0);
auVar7._8_4_ = -(uint)(auVar9._8_4_ == 0);
auVar7._12_4_ = -(uint)(auVar9._12_4_ == 0);
iVar6 = movmskps((int)uVar5,auVar7);
return iVar6 == 0xf;
}
| |
45,299 | my_strtoll10 | eloqsql/strings/my_strtoll10.c | longlong my_strtoll10(const char *nptr, char **endptr, int *error)
{
const char *s, *end, *start, *n_end, *true_end;
char *dummy;
uchar c;
unsigned long i, j, k;
ulonglong li;
int negative;
ulong cutoff, cutoff2, cutoff3;
s= nptr;
/* If fixed length string */
if (endptr)
{
end= *endptr;
/* Skip leading spaces */
for ( ; s < end && my_isspace(&my_charset_latin1, *s) ; )
s++;
if (s == end)
goto no_conv;
}
else
{
endptr= &dummy; /* Easier end test */
/* Skip leading spaces */
for ( ; ; s++)
{
if (!*s)
goto no_conv;
if (!my_isspace(&my_charset_latin1, *s))
break;
}
/* This number must be big to guard against a lot of pre-zeros */
end= s+65535; /* Can't be longer than this */
}
/* Check for a sign. */
negative= 0;
if (*s == '-')
{
*error= -1; /* Mark as negative number */
negative= 1;
if (++s == end)
goto no_conv;
cutoff= MAX_NEGATIVE_NUMBER / LFACTOR2;
cutoff2= (MAX_NEGATIVE_NUMBER % LFACTOR2) / 100;
cutoff3= MAX_NEGATIVE_NUMBER % 100;
}
else
{
*error= 0;
if (*s == '+')
{
if (++s == end)
goto no_conv;
}
cutoff= ULONGLONG_MAX / LFACTOR2;
cutoff2= ULONGLONG_MAX % LFACTOR2 / 100;
cutoff3= ULONGLONG_MAX % 100;
}
/* Handle case where we have a lot of pre-zero */
if (*s == '0')
{
i= 0;
do
{
if (++s == end)
goto end_i; /* Return 0 */
}
while (*s == '0');
n_end= s+ INIT_CNT;
}
else
{
/* Read first digit to check that it's a valid number */
if ((c= (*s-'0')) > 9)
goto no_conv;
i= c;
n_end= ++s+ INIT_CNT-1;
}
/* Handle first 9 digits and store them in i */
if (n_end > end)
n_end= end;
for (; s != n_end ; s++)
{
if ((c= (*s-'0')) > 9)
goto end_i;
i= i*10+c;
}
if (s == end)
goto end_i;
/* Handle next 9 digits and store them in j */
j= 0;
start= s; /* Used to know how much to shift i */
n_end= true_end= s + INIT_CNT;
if (n_end > end)
n_end= end;
do
{
if ((c= (*s-'0')) > 9)
goto end_i_and_j;
j= j*10+c;
} while (++s != n_end);
if (s == end)
{
if (s != true_end)
goto end_i_and_j;
goto end3;
}
if ((c= (*s-'0')) > 9)
goto end3;
/* Handle the next 1 or 2 digits and store them in k */
k=c;
if (++s == end || (c= (*s-'0')) > 9)
goto end4;
k= k*10+c;
*endptr= (char*) ++s;
/* number string should have ended here */
if (s != end && (c= (*s-'0')) <= 9)
goto overflow;
/* Check that we didn't get an overflow with the last digit */
if (i > cutoff || (i == cutoff && (j > cutoff2 || (j == cutoff2 &&
k > cutoff3))))
goto overflow;
li=i*LFACTOR2+ (ulonglong) j*100 + k;
return (longlong) li;
overflow: /* *endptr is set here */
*error= MY_ERRNO_ERANGE;
return negative ? LONGLONG_MIN : (longlong) ULONGLONG_MAX;
end_i:
*endptr= (char*) s;
return (negative ? ((longlong) -(long) i) : (longlong) i);
end_i_and_j:
li= (ulonglong) i * lfactor[(uint) (s-start)] + j;
*endptr= (char*) s;
return (negative ? -((longlong) li) : (longlong) li);
end3:
li=(ulonglong) i*LFACTOR+ (ulonglong) j;
*endptr= (char*) s;
return (negative ? -((longlong) li) : (longlong) li);
end4:
li=(ulonglong) i*LFACTOR1+ (ulonglong) j * 10 + k;
*endptr= (char*) s;
if (negative)
{
if (li > MAX_NEGATIVE_NUMBER)
goto overflow;
return -((longlong) li);
}
return (longlong) li;
no_conv:
/* There was no number to convert. */
*error= MY_ERRNO_EDOM;
*endptr= (char *) nptr;
return 0;
} | O3 | c | my_strtoll10:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
testq %rsi, %rsi
je 0x64c5e
movq (%rsi), %r8
movq %rdi, %rax
cmpq %rdi, %r8
jbe 0x64c4e
leaq 0x2bebf0(%rip), %rax # 0x323820
movq 0x40(%rax), %rcx
movq %rdi, %rax
movzbl (%rax), %r9d
testb $0x8, 0x1(%rcx,%r9)
je 0x64c4e
incq %rax
cmpq %r8, %rax
jne 0x64c37
movq %r8, %rax
cmpq %r8, %rax
je 0x64d3c
movb (%rax), %cl
movq %r8, %rbx
jmp 0x64caa
movb (%rdi), %cl
leaq -0x30(%rbp), %rsi
testb %cl, %cl
je 0x64d3c
leaq 0x2bebad(%rip), %rax # 0x323820
movq 0x40(%rax), %r8
leaq 0xffff(%rdi), %rbx
movq %rdi, %rax
movzbl %cl, %r9d
testb $0x8, 0x1(%r8,%r9)
je 0x64c9f
movb 0x1(%rax), %cl
incq %rax
incq %rbx
testb %cl, %cl
jne 0x64c81
jmp 0x64d3c
leaq 0xffff(%rax), %r8
leaq -0x30(%rbp), %rsi
cmpb $0x2d, %cl
jne 0x64cd1
movl $0xffffffff, (%rdx) # imm = 0xFFFFFFFF
incq %rax
cmpq %r8, %rax
je 0x64d3c
movl $0x8, %r9d
movl $0x15f797ae, %r10d # imm = 0x15F797AE
movl $0x57f5ff8, %r11d # imm = 0x57F5FF8
jmp 0x64cfa
movl $0x0, (%rdx)
movb (%rax), %r14b
cmpb $0x2b, %r14b
jne 0x64cff
incq %rax
cmpq %r8, %rax
je 0x64d3c
movl $0xf, %r9d
movl $0x2bef2f5c, %r10d # imm = 0x2BEF2F5C
movl $0xafebff0, %r11d # imm = 0xAFEBFF0
movb (%rax), %r14b
jmp 0x64d11
movl $0xf, %r9d
movl $0x2bef2f5c, %r10d # imm = 0x2BEF2F5C
movl $0xafebff0, %r11d # imm = 0xAFEBFF0
cmpb $0x30, %r14b
jne 0x64d32
xorl %edi, %edi
incq %rax
cmpq %r8, %rax
je 0x64e41
cmpb $0x30, (%rax)
je 0x64d19
leaq 0x9(%rax), %rbx
xorl %edi, %edi
jmp 0x64d5a
addb $-0x30, %r14b
cmpb $0x9, %r14b
jbe 0x64d4c
movl $0x21, (%rdx)
movq %rdi, (%rsi)
xorl %eax, %eax
jmp 0x64e51
movzbl %r14b, %edi
movq %rax, %rbx
incq %rax
addq $0x9, %rbx
cmpq %r8, %rbx
cmovaq %r8, %rbx
cmpq %rbx, %rax
je 0x64d88
movb (%rax), %r14b
addb $-0x30, %r14b
cmpb $0x9, %r14b
ja 0x64e3e
leaq (%rdi,%rdi,4), %rdi
movzbl %r14b, %r14d
leaq (%r14,%rdi,2), %rdi
incq %rax
jmp 0x64d61
cmpq %r8, %rax
je 0x64e3e
leaq 0x9(%rax), %r12
cmpq %r8, %r12
cmovaq %r8, %r12
leaq 0x1(%rax), %r14
movl $0x9, %r13d
xorl %ebx, %ebx
movb -0x1(%r14), %r15b
addb $-0x30, %r15b
cmpb $0x9, %r15b
ja 0x64e5c
leaq (%rbx,%rbx,4), %rbx
movzbl %r15b, %r15d
leaq (%r15,%rbx,2), %rbx
leaq 0x1(%r14), %r15
decq %r13
cmpq %r12, %r14
movq %r15, %r14
jne 0x64da8
leaq -0x1(%r15), %r14
cmpq %r8, %r12
je 0x64e81
movb (%r14), %al
addb $-0x30, %al
cmpb $0x9, %al
ja 0x64e86
movzbl %al, %r14d
cmpq %r8, %r15
je 0x64e05
movb (%r15), %al
addb $-0x30, %al
cmpb $0x9, %al
jbe 0x64ea2
movabsq $0x2540be400, %rax # imm = 0x2540BE400
imulq %rax, %rdi
leaq (%rbx,%rbx,4), %rax
leaq (%rdi,%rax,2), %rax
addq %r14, %rax
movq %r15, (%rsi)
cmpb $0x2d, %cl
jne 0x64e51
movabsq $-0x8000000000000000, %rsi # imm = 0x8000000000000000
cmpq %rsi, %rax
ja 0x64edd
negq %rax
jmp 0x64e51
movq %rax, %rbx
movq %rdi, %rax
negq %rax
cmpb $0x2d, %cl
movq %rbx, (%rsi)
cmovneq %rdi, %rax
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
decq %r14
movl %r14d, %edx
subl %eax, %edx
leaq 0x280b15(%rip), %rax # 0x2e5980
imulq (%rax,%rdx,8), %rdi
addq %rbx, %rdi
movq %rdi, %rax
negq %rax
cmpb $0x2d, %cl
movq %r14, (%rsi)
jmp 0x64e4d
testq %r13, %r13
jne 0x64e5f
imulq $0x3b9aca00, %rdi, %rax # imm = 0x3B9ACA00
addq %rax, %rbx
movq %rbx, %rax
negq %rax
cmpb $0x2d, %cl
movq %r14, (%rsi)
cmovneq %rbx, %rax
jmp 0x64e51
leaq 0x1(%r15), %r12
movq %r12, (%rsi)
cmpq %r8, %r12
je 0x64ebc
movb 0x1(%r15), %sil
addb $-0x30, %sil
cmpb $0xa, %sil
jb 0x64edd
cmpq %r11, %rdi
ja 0x64edd
leaq (%r14,%r14,4), %rsi
movzbl %al, %eax
leaq (%rax,%rsi,2), %rsi
cmpq %r11, %rdi
jne 0x64ef8
cmpq %r10, %rbx
ja 0x64edd
jne 0x64ef8
cmpl %r9d, %esi
jbe 0x64ef8
xorl %eax, %eax
cmpb $0x2d, %cl
setne %al
movl $0x22, (%rdx)
negq %rax
btsq $0x3f, %rax
jmp 0x64e51
movabsq $0x174876e800, %rax # imm = 0x174876E800
imulq %rax, %rdi
imulq $0x64, %rbx, %rax
addq %rdi, %rax
addq %rsi, %rax
jmp 0x64e51
nopl (%rax)
| my_strtoll10:
push rbp
mov rbp, rsp
push r15
push r14
push r13
push r12
push rbx
test rsi, rsi
jz short loc_64C5E
mov r8, [rsi]
mov rax, rdi
cmp r8, rdi
jbe short loc_64C4E
lea rax, my_charset_latin1
mov rcx, [rax+40h]
mov rax, rdi
loc_64C37:
movzx r9d, byte ptr [rax]
test byte ptr [rcx+r9+1], 8
jz short loc_64C4E
inc rax
cmp rax, r8
jnz short loc_64C37
mov rax, r8
loc_64C4E:
cmp rax, r8
jz loc_64D3C
mov cl, [rax]
mov rbx, r8
jmp short loc_64CAA
loc_64C5E:
mov cl, [rdi]
lea rsi, [rbp+var_30]
test cl, cl
jz loc_64D3C
lea rax, my_charset_latin1
mov r8, [rax+40h]
lea rbx, [rdi+0FFFFh]
mov rax, rdi
loc_64C81:
movzx r9d, cl
test byte ptr [r8+r9+1], 8
jz short loc_64C9F
mov cl, [rax+1]
inc rax
inc rbx
test cl, cl
jnz short loc_64C81
jmp loc_64D3C
loc_64C9F:
lea r8, [rax+0FFFFh]
lea rsi, [rbp+var_30]
loc_64CAA:
cmp cl, 2Dh ; '-'
jnz short loc_64CD1
mov dword ptr [rdx], 0FFFFFFFFh
inc rax
cmp rax, r8
jz short loc_64D3C
mov r9d, 8
mov r10d, 15F797AEh
mov r11d, 57F5FF8h
jmp short loc_64CFA
loc_64CD1:
mov dword ptr [rdx], 0
mov r14b, [rax]
cmp r14b, 2Bh ; '+'
jnz short loc_64CFF
inc rax
cmp rax, r8
jz short loc_64D3C
mov r9d, 0Fh
mov r10d, 2BEF2F5Ch
mov r11d, 0AFEBFF0h
loc_64CFA:
mov r14b, [rax]
jmp short loc_64D11
loc_64CFF:
mov r9d, 0Fh
mov r10d, 2BEF2F5Ch
mov r11d, 0AFEBFF0h
loc_64D11:
cmp r14b, 30h ; '0'
jnz short loc_64D32
xor edi, edi
loc_64D19:
inc rax
cmp rax, r8
jz loc_64E41
cmp byte ptr [rax], 30h ; '0'
jz short loc_64D19
lea rbx, [rax+9]
xor edi, edi
jmp short loc_64D5A
loc_64D32:
add r14b, 0D0h
cmp r14b, 9
jbe short loc_64D4C
loc_64D3C:
mov dword ptr [rdx], 21h ; '!'
mov [rsi], rdi
xor eax, eax
jmp loc_64E51
loc_64D4C:
movzx edi, r14b
mov rbx, rax
inc rax
add rbx, 9
loc_64D5A:
cmp rbx, r8
cmova rbx, r8
loc_64D61:
cmp rax, rbx
jz short loc_64D88
mov r14b, [rax]
add r14b, 0D0h
cmp r14b, 9
ja loc_64E3E
lea rdi, [rdi+rdi*4]
movzx r14d, r14b
lea rdi, [r14+rdi*2]
inc rax
jmp short loc_64D61
loc_64D88:
cmp rax, r8
jz loc_64E3E
lea r12, [rax+9]
cmp r12, r8
cmova r12, r8
lea r14, [rax+1]
mov r13d, 9
xor ebx, ebx
loc_64DA8:
mov r15b, [r14-1]
add r15b, 0D0h
cmp r15b, 9
ja loc_64E5C
lea rbx, [rbx+rbx*4]
movzx r15d, r15b
lea rbx, [r15+rbx*2]
lea r15, [r14+1]
dec r13
cmp r14, r12
mov r14, r15
jnz short loc_64DA8
lea r14, [r15-1]
cmp r12, r8
jz loc_64E81
mov al, [r14]
add al, 0D0h
cmp al, 9
ja loc_64E86
movzx r14d, al
cmp r15, r8
jz short loc_64E05
mov al, [r15]
add al, 0D0h
cmp al, 9
jbe loc_64EA2
loc_64E05:
mov rax, 2540BE400h
imul rdi, rax
lea rax, [rbx+rbx*4]
lea rax, [rdi+rax*2]
add rax, r14
mov [rsi], r15
cmp cl, 2Dh ; '-'
jnz short loc_64E51
mov rsi, 8000000000000000h
cmp rax, rsi
ja loc_64EDD
neg rax
jmp short loc_64E51
loc_64E3E:
mov rbx, rax
loc_64E41:
mov rax, rdi
neg rax
cmp cl, 2Dh ; '-'
mov [rsi], rbx
loc_64E4D:
cmovnz rax, rdi
loc_64E51:
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
loc_64E5C:
dec r14
loc_64E5F:
mov edx, r14d
sub edx, eax
lea rax, lfactor_0
imul rdi, [rax+rdx*8]
add rdi, rbx
mov rax, rdi
neg rax
cmp cl, 2Dh ; '-'
mov [rsi], r14
jmp short loc_64E4D
loc_64E81:
test r13, r13
jnz short loc_64E5F
loc_64E86:
imul rax, rdi, 3B9ACA00h
add rbx, rax
mov rax, rbx
neg rax
cmp cl, 2Dh ; '-'
mov [rsi], r14
cmovnz rax, rbx
jmp short loc_64E51
loc_64EA2:
lea r12, [r15+1]
mov [rsi], r12
cmp r12, r8
jz short loc_64EBC
mov sil, [r15+1]
add sil, 0D0h
cmp sil, 0Ah
jb short loc_64EDD
loc_64EBC:
cmp rdi, r11
ja short loc_64EDD
lea rsi, [r14+r14*4]
movzx eax, al
lea rsi, [rax+rsi*2]
cmp rdi, r11
jnz short loc_64EF8
cmp rbx, r10
ja short loc_64EDD
jnz short loc_64EF8
cmp esi, r9d
jbe short loc_64EF8
loc_64EDD:
xor eax, eax
cmp cl, 2Dh ; '-'
setnz al
mov dword ptr [rdx], 22h ; '"'
neg rax
bts rax, 3Fh ; '?'
jmp loc_64E51
loc_64EF8:
mov rax, 174876E800h
imul rdi, rax
imul rax, rbx, 64h ; 'd'
add rax, rdi
add rax, rsi
jmp loc_64E51
| unsigned long long my_strtoll10(unsigned __int8 *a1, unsigned long long *a2, _DWORD *a3)
{
unsigned long long v3; // r8
unsigned __int8 *v4; // rax
unsigned __int8 v5; // cl
_BYTE *v6; // rbx
unsigned int v7; // r9d
unsigned long long v8; // r10
unsigned long long v9; // r11
unsigned __int8 v10; // r14
unsigned long long v11; // rdi
unsigned __int8 *v12; // rbx
unsigned __int8 v13; // r14
unsigned long long result; // rax
unsigned __int8 *v15; // rbx
unsigned __int8 v16; // r14
unsigned __int8 *v17; // r12
unsigned __int8 *v18; // r14
long long v19; // r13
unsigned long long v20; // rbx
unsigned __int8 v21; // r15
_BYTE *v22; // r15
unsigned __int8 *v23; // r14
unsigned __int8 v24; // al
long long v25; // r14
unsigned __int8 v26; // al
bool v27; // zf
unsigned long long v28; // rbx
long long v29; // rsi
_BYTE v30[48]; // [rsp+0h] [rbp-30h] BYREF
if ( a2 )
{
v3 = *a2;
v4 = a1;
if ( *a2 > (unsigned long long)a1 )
{
v4 = a1;
while ( (*(_BYTE *)(*(_QWORD *)&my_charset_latin1[16] + *v4 + 1LL) & 8) != 0 )
{
if ( ++v4 == (unsigned __int8 *)v3 )
{
v4 = (unsigned __int8 *)*a2;
break;
}
}
}
if ( v4 == (unsigned __int8 *)v3 )
goto LABEL_29;
v5 = *v4;
v6 = (_BYTE *)*a2;
}
else
{
v5 = *a1;
a2 = (unsigned long long *)v30;
if ( !*a1 )
goto LABEL_29;
v6 = a1 + 0xFFFF;
v4 = a1;
while ( (*(_BYTE *)(*(_QWORD *)&my_charset_latin1[16] + v5 + 1LL) & 8) != 0 )
{
v5 = *++v4;
++v6;
if ( !v5 )
goto LABEL_29;
}
v3 = (unsigned long long)(v4 + 0xFFFF);
a2 = (unsigned long long *)v30;
}
if ( v5 == 45 )
{
*a3 = -1;
if ( ++v4 == (unsigned __int8 *)v3 )
goto LABEL_29;
v7 = 8;
v8 = 368547758LL;
v9 = 92233720LL;
goto LABEL_21;
}
*a3 = 0;
v10 = *v4;
if ( *v4 == 43 )
{
if ( ++v4 == (unsigned __int8 *)v3 )
goto LABEL_29;
v7 = 15;
v8 = 737095516LL;
v9 = 184467440LL;
LABEL_21:
v10 = *v4;
goto LABEL_23;
}
v7 = 15;
v8 = 737095516LL;
v9 = 184467440LL;
LABEL_23:
if ( v10 != 48 )
{
v13 = v10 - 48;
if ( v13 <= 9u )
{
v11 = v13;
v15 = v4++;
v12 = v15 + 9;
goto LABEL_31;
}
LABEL_29:
*a3 = 33;
*a2 = (unsigned long long)a1;
return 0LL;
}
v11 = 0LL;
do
{
if ( ++v4 == (unsigned __int8 *)v3 )
goto LABEL_50;
}
while ( *v4 == 48 );
v12 = v4 + 9;
v11 = 0LL;
LABEL_31:
if ( (unsigned long long)v12 > v3 )
v12 = (unsigned __int8 *)v3;
while ( v4 != v12 )
{
v16 = *v4 - 48;
if ( v16 > 9u )
goto LABEL_49;
v11 = v16 + 10 * v11;
++v4;
}
if ( v4 == (unsigned __int8 *)v3 )
{
LABEL_49:
v6 = v4;
LABEL_50:
result = -(long long)v11;
v27 = v5 == 45;
*a2 = (unsigned long long)v6;
LABEL_51:
if ( !v27 )
return v11;
return result;
}
v17 = v4 + 9;
if ( (unsigned long long)(v4 + 9) > v3 )
v17 = (unsigned __int8 *)v3;
v18 = v4 + 1;
v19 = 9LL;
v20 = 0LL;
do
{
v21 = *(v18 - 1) - 48;
if ( v21 > 9u )
{
v23 = v18 - 1;
goto LABEL_55;
}
v20 = v21 + 10 * v20;
v22 = v18 + 1;
--v19;
v27 = v18++ == v17;
}
while ( !v27 );
v23 = v22 - 1;
if ( v17 == (unsigned __int8 *)v3 )
{
if ( !v19 )
{
LABEL_57:
v28 = 1000000000 * v11 + v20;
result = -(long long)v28;
*a2 = (unsigned long long)v23;
if ( v5 != 45 )
return v28;
return result;
}
LABEL_55:
v11 = v20 + lfactor_0[(int)v23 - (int)v4] * v11;
result = -(long long)v11;
v27 = v5 == 45;
*a2 = (unsigned long long)v23;
goto LABEL_51;
}
v24 = *v23 - 48;
if ( v24 > 9u )
goto LABEL_57;
v25 = v24;
if ( v22 == (_BYTE *)v3 || (v26 = *v22 - 48, v26 > 9u) )
{
result = v25 + 10000000000LL * v11 + 10 * v20;
*a2 = (unsigned long long)v22;
if ( v5 != 45 )
return result;
if ( result <= 0x8000000000000000LL )
return -(long long)result;
LABEL_67:
*a3 = 34;
return -(long long)(v5 != 45) | 0x8000000000000000LL;
}
else
{
*a2 = (unsigned long long)(v22 + 1);
if ( v22 + 1 != (_BYTE *)v3 && (unsigned __int8)(v22[1] - 48) < 0xAu )
goto LABEL_67;
if ( v11 > v9 )
goto LABEL_67;
v29 = v26 + 10 * v25;
if ( v11 == v9 && (v20 > v8 || v20 == v8 && (unsigned int)v29 > v7) )
goto LABEL_67;
return v29 + 100000000000LL * v11 + 100 * v20;
}
}
| my_strtoll10:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
TEST RSI,RSI
JZ 0x00164c5e
MOV R8,qword ptr [RSI]
MOV RAX,RDI
CMP R8,RDI
JBE 0x00164c4e
LEA RAX,[0x423820]
MOV RCX,qword ptr [RAX + 0x40]
MOV RAX,RDI
LAB_00164c37:
MOVZX R9D,byte ptr [RAX]
TEST byte ptr [RCX + R9*0x1 + 0x1],0x8
JZ 0x00164c4e
INC RAX
CMP RAX,R8
JNZ 0x00164c37
MOV RAX,R8
LAB_00164c4e:
CMP RAX,R8
JZ 0x00164d3c
MOV CL,byte ptr [RAX]
MOV RBX,R8
JMP 0x00164caa
LAB_00164c5e:
MOV CL,byte ptr [RDI]
LEA RSI,[RBP + -0x30]
TEST CL,CL
JZ 0x00164d3c
LEA RAX,[0x423820]
MOV R8,qword ptr [RAX + 0x40]
LEA RBX,[RDI + 0xffff]
MOV RAX,RDI
LAB_00164c81:
MOVZX R9D,CL
TEST byte ptr [R8 + R9*0x1 + 0x1],0x8
JZ 0x00164c9f
MOV CL,byte ptr [RAX + 0x1]
INC RAX
INC RBX
TEST CL,CL
JNZ 0x00164c81
JMP 0x00164d3c
LAB_00164c9f:
LEA R8,[RAX + 0xffff]
LEA RSI,[RBP + -0x30]
LAB_00164caa:
CMP CL,0x2d
JNZ 0x00164cd1
MOV dword ptr [RDX],0xffffffff
INC RAX
CMP RAX,R8
JZ 0x00164d3c
MOV R9D,0x8
MOV R10D,0x15f797ae
MOV R11D,0x57f5ff8
JMP 0x00164cfa
LAB_00164cd1:
MOV dword ptr [RDX],0x0
MOV R14B,byte ptr [RAX]
CMP R14B,0x2b
JNZ 0x00164cff
INC RAX
CMP RAX,R8
JZ 0x00164d3c
MOV R9D,0xf
MOV R10D,0x2bef2f5c
MOV R11D,0xafebff0
LAB_00164cfa:
MOV R14B,byte ptr [RAX]
JMP 0x00164d11
LAB_00164cff:
MOV R9D,0xf
MOV R10D,0x2bef2f5c
MOV R11D,0xafebff0
LAB_00164d11:
CMP R14B,0x30
JNZ 0x00164d32
XOR EDI,EDI
LAB_00164d19:
INC RAX
CMP RAX,R8
JZ 0x00164e41
CMP byte ptr [RAX],0x30
JZ 0x00164d19
LEA RBX,[RAX + 0x9]
XOR EDI,EDI
JMP 0x00164d5a
LAB_00164d32:
ADD R14B,0xd0
CMP R14B,0x9
JBE 0x00164d4c
LAB_00164d3c:
MOV dword ptr [RDX],0x21
MOV qword ptr [RSI],RDI
XOR EAX,EAX
JMP 0x00164e51
LAB_00164d4c:
MOVZX EDI,R14B
MOV RBX,RAX
INC RAX
ADD RBX,0x9
LAB_00164d5a:
CMP RBX,R8
CMOVA RBX,R8
LAB_00164d61:
CMP RAX,RBX
JZ 0x00164d88
MOV R14B,byte ptr [RAX]
ADD R14B,0xd0
CMP R14B,0x9
JA 0x00164e3e
LEA RDI,[RDI + RDI*0x4]
MOVZX R14D,R14B
LEA RDI,[R14 + RDI*0x2]
INC RAX
JMP 0x00164d61
LAB_00164d88:
CMP RAX,R8
JZ 0x00164e3e
LEA R12,[RAX + 0x9]
CMP R12,R8
CMOVA R12,R8
LEA R14,[RAX + 0x1]
MOV R13D,0x9
XOR EBX,EBX
LAB_00164da8:
MOV R15B,byte ptr [R14 + -0x1]
ADD R15B,0xd0
CMP R15B,0x9
JA 0x00164e5c
LEA RBX,[RBX + RBX*0x4]
MOVZX R15D,R15B
LEA RBX,[R15 + RBX*0x2]
LEA R15,[R14 + 0x1]
DEC R13
CMP R14,R12
MOV R14,R15
JNZ 0x00164da8
LEA R14,[R15 + -0x1]
CMP R12,R8
JZ 0x00164e81
MOV AL,byte ptr [R14]
ADD AL,0xd0
CMP AL,0x9
JA 0x00164e86
MOVZX R14D,AL
CMP R15,R8
JZ 0x00164e05
MOV AL,byte ptr [R15]
ADD AL,0xd0
CMP AL,0x9
JBE 0x00164ea2
LAB_00164e05:
MOV RAX,0x2540be400
IMUL RDI,RAX
LEA RAX,[RBX + RBX*0x4]
LEA RAX,[RDI + RAX*0x2]
ADD RAX,R14
MOV qword ptr [RSI],R15
CMP CL,0x2d
JNZ 0x00164e51
MOV RSI,-0x8000000000000000
CMP RAX,RSI
JA 0x00164edd
NEG RAX
JMP 0x00164e51
LAB_00164e3e:
MOV RBX,RAX
LAB_00164e41:
MOV RAX,RDI
NEG RAX
CMP CL,0x2d
MOV qword ptr [RSI],RBX
LAB_00164e4d:
CMOVNZ RAX,RDI
LAB_00164e51:
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
LAB_00164e5c:
DEC R14
LAB_00164e5f:
MOV EDX,R14D
SUB EDX,EAX
LEA RAX,[0x3e5980]
IMUL RDI,qword ptr [RAX + RDX*0x8]
ADD RDI,RBX
MOV RAX,RDI
NEG RAX
CMP CL,0x2d
MOV qword ptr [RSI],R14
JMP 0x00164e4d
LAB_00164e81:
TEST R13,R13
JNZ 0x00164e5f
LAB_00164e86:
IMUL RAX,RDI,0x3b9aca00
ADD RBX,RAX
MOV RAX,RBX
NEG RAX
CMP CL,0x2d
MOV qword ptr [RSI],R14
CMOVNZ RAX,RBX
JMP 0x00164e51
LAB_00164ea2:
LEA R12,[R15 + 0x1]
MOV qword ptr [RSI],R12
CMP R12,R8
JZ 0x00164ebc
MOV SIL,byte ptr [R15 + 0x1]
ADD SIL,0xd0
CMP SIL,0xa
JC 0x00164edd
LAB_00164ebc:
CMP RDI,R11
JA 0x00164edd
LEA RSI,[R14 + R14*0x4]
MOVZX EAX,AL
LEA RSI,[RAX + RSI*0x2]
CMP RDI,R11
JNZ 0x00164ef8
CMP RBX,R10
JA 0x00164edd
JNZ 0x00164ef8
CMP ESI,R9D
JBE 0x00164ef8
LAB_00164edd:
XOR EAX,EAX
CMP CL,0x2d
SETNZ AL
MOV dword ptr [RDX],0x22
NEG RAX
BTS RAX,0x3f
JMP 0x00164e51
LAB_00164ef8:
MOV RAX,0x174876e800
IMUL RDI,RAX
IMUL RAX,RBX,0x64
ADD RAX,RDI
ADD RAX,RSI
JMP 0x00164e51
|
ulong my_strtoll10(byte *param_1,ulong *param_2,int4 *param_3)
{
byte bVar1;
byte bVar2;
byte *pbVar3;
byte *pbVar4;
byte *pbVar5;
byte bVar6;
byte *pbVar7;
ulong uVar8;
ulong uVar9;
uint uVar10;
ulong uVar11;
ulong uVar12;
long lVar13;
byte *pbVar14;
ulong local_38;
pbVar4 = param_1;
if (param_2 == (ulong *)0x0) {
bVar6 = *param_1;
param_2 = &local_38;
if (bVar6 != 0) {
pbVar7 = param_1 + 0xffff;
do {
if ((PTR_ctype_latin1_00423860[(ulong)bVar6 + 1] & 8) == 0) {
pbVar3 = pbVar4 + 0xffff;
param_2 = &local_38;
goto LAB_00164caa;
}
bVar6 = pbVar4[1];
pbVar4 = pbVar4 + 1;
pbVar7 = pbVar7 + 1;
} while (bVar6 != 0);
}
goto LAB_00164d3c;
}
pbVar7 = (byte *)*param_2;
pbVar3 = param_1;
if (param_1 < pbVar7) {
do {
pbVar4 = pbVar3;
if ((PTR_ctype_latin1_00423860[(ulong)*pbVar3 + 1] & 8) == 0) break;
pbVar3 = pbVar3 + 1;
pbVar4 = pbVar7;
} while (pbVar3 != pbVar7);
}
if (pbVar4 == pbVar7) goto LAB_00164d3c;
bVar6 = *pbVar4;
pbVar3 = pbVar7;
LAB_00164caa:
if (bVar6 == 0x2d) {
*param_3 = 0xffffffff;
if (pbVar4 + 1 == pbVar3) goto LAB_00164d3c;
uVar10 = 8;
uVar11 = 0x15f797ae;
uVar12 = 0x57f5ff8;
LAB_00164cfa:
pbVar4 = pbVar4 + 1;
bVar2 = *pbVar4;
}
else {
*param_3 = 0;
bVar2 = *pbVar4;
if (bVar2 == 0x2b) {
if (pbVar4 + 1 == pbVar3) goto LAB_00164d3c;
uVar10 = 0xf;
uVar11 = 0x2bef2f5c;
uVar12 = 0xafebff0;
goto LAB_00164cfa;
}
uVar10 = 0xf;
uVar11 = 0x2bef2f5c;
uVar12 = 0xafebff0;
}
if (bVar2 == 0x30) {
uVar9 = 0;
do {
pbVar14 = pbVar4;
pbVar5 = pbVar14 + 1;
if (pbVar5 == pbVar3) goto LAB_00164e41;
pbVar4 = pbVar5;
} while (*pbVar5 == 0x30);
pbVar14 = pbVar14 + 10;
uVar9 = 0;
}
else {
if (9 < (byte)(bVar2 - 0x30)) {
LAB_00164d3c:
*param_3 = 0x21;
*param_2 = (ulong)param_1;
return 0;
}
uVar9 = (ulong)(byte)(bVar2 - 0x30);
pbVar5 = pbVar4 + 1;
pbVar14 = pbVar4 + 9;
}
if (pbVar3 < pbVar14) {
pbVar14 = pbVar3;
}
for (; pbVar7 = pbVar5, pbVar5 != pbVar14; pbVar5 = pbVar5 + 1) {
if (9 < (byte)(*pbVar5 - 0x30)) goto LAB_00164e41;
uVar9 = (ulong)(byte)(*pbVar5 - 0x30) + uVar9 * 10;
}
if (pbVar5 != pbVar3) {
pbVar4 = pbVar5 + 9;
if (pbVar3 < pbVar5 + 9) {
pbVar4 = pbVar3;
}
lVar13 = 9;
uVar8 = 0;
pbVar7 = pbVar5 + 1;
do {
pbVar14 = pbVar7;
if (9 < (byte)(pbVar14[-1] - 0x30)) {
pbVar14 = pbVar14 + -1;
goto LAB_00164e5f;
}
uVar8 = (ulong)(byte)(pbVar14[-1] - 0x30) + uVar8 * 10;
pbVar7 = pbVar14 + 1;
lVar13 = lVar13 + -1;
} while (pbVar14 != pbVar4);
if (pbVar4 == pbVar3) {
if (lVar13 != 0) {
LAB_00164e5f:
uVar9 = uVar9 * (&lfactor)[(uint)((int)pbVar14 - (int)pbVar5)] + uVar8;
*param_2 = (ulong)pbVar14;
goto LAB_00164e4d;
}
}
else {
bVar2 = *pbVar14 - 0x30;
if (bVar2 < 10) {
if ((pbVar7 == pbVar3) || (bVar1 = *pbVar7, 9 < (byte)(bVar1 - 0x30))) {
uVar11 = uVar9 * 10000000000 + uVar8 * 10 + (ulong)bVar2;
*param_2 = (ulong)pbVar7;
if (bVar6 != 0x2d) {
return uVar11;
}
if (uVar11 < 0x8000000000000001) {
return -uVar11;
}
}
else {
*param_2 = (ulong)(pbVar14 + 2);
if ((((pbVar14 + 2 == pbVar3) || (9 < (byte)(pbVar14[2] - 0x30))) && (uVar9 <= uVar12)) &&
((lVar13 = (ulong)(byte)(bVar1 - 0x30) + (ulong)bVar2 * 10, uVar9 != uVar12 ||
((uVar8 <= uVar11 && ((uVar8 != uVar11 || ((uint)lVar13 <= uVar10)))))))) {
return uVar8 * 100 + uVar9 * 100000000000 + lVar13;
}
}
*param_3 = 0x22;
return -(ulong)(bVar6 != 0x2d) | 0x8000000000000000;
}
}
uVar8 = uVar8 + uVar9 * 1000000000;
*param_2 = (ulong)pbVar14;
if (bVar6 == 0x2d) {
return -uVar8;
}
return uVar8;
}
LAB_00164e41:
*param_2 = (ulong)pbVar7;
LAB_00164e4d:
if (bVar6 == 0x2d) {
return -uVar9;
}
return uVar9;
}
|
Subsets and Splits
C++ Functions With Standard Library Dependencies
Identifies C++ functions that depend on standard library components, revealing patterns in how developers utilize STL libraries and potentially highlighting common coding practices or dependencies in the dataset.
C++ Standard Library Function Analysis
Filters C++ code examples that use standard library containers and types, providing useful insights into common programming patterns and data structures in the dataset.
Random Training Function Samples
Performs basic filtering and random sampling of assembly code data without revealing meaningful patterns or relationships.
Random Training Function Samples
Retrieves a random sample of 1000 records from the training dataset, providing basic data exploration but offering limited analytical value beyond seeing raw entries.