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
34,700
nlohmann::json_abi_v3_11_3::ordered_map<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>, std::less<void>, std::allocator<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const, 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>>>>::erase(__gnu_cxx::__normal_iterator<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const, nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>>*, std::vector<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const, nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>>, std::allocator<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const, 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>>>>>, __gnu_cxx::__normal_iterator<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const, nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>>*, std::vector<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const, nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>>, std::allocator<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const, nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>>>>>)
monkey531[P]llama/common/json.hpp
iterator erase(iterator first, iterator last) { if (first == last) { return first; } const auto elements_affected = std::distance(first, last); const auto offset = std::distance(Container::begin(), first); // This is the start situation. We need to delete elements_affected // elements (3 in this example: e, f, g), and need to return an // iterator past the last deleted element (h in this example). // Note that offset is the distance from the start of the vector // to first. We will need this later. // [ a, b, c, d, e, f, g, h, i, j ] // ^ ^ // first last // Since we cannot move const Keys, we re-construct them in place. // We start at first and re-construct (viz. copy) the elements from // the back of the vector. Example for first iteration: // ,--------. // v | destroy e and re-construct with h // [ a, b, c, d, e, f, g, h, i, j ] // ^ ^ // it it + elements_affected for (auto it = first; std::next(it, elements_affected) != Container::end(); ++it) { it->~value_type(); // destroy but keep allocation new (&*it) value_type{std::move(*std::next(it, elements_affected))}; // "move" next element to it } // [ a, b, c, d, h, i, j, h, i, j ] // ^ ^ // first last // remove the unneeded elements at the end of the vector Container::resize(this->size() - static_cast<size_type>(elements_affected)); // [ a, b, c, d, h, i, j ] // ^ ^ // first last // first is now pointing past the last deleted element, but we cannot // use this iterator, because it may have been invalidated by the // resize call. Instead, we can return begin() + offset. return Container::begin() + offset; }
O0
cpp
nlohmann::json_abi_v3_11_3::ordered_map<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>, std::less<void>, std::allocator<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const, 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>>>>::erase(__gnu_cxx::__normal_iterator<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const, nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>>*, std::vector<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const, nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>>, std::allocator<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const, 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>>>>>, __gnu_cxx::__normal_iterator<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const, nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>>*, std::vector<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const, nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>>, std::allocator<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const, nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>>>>>): subq $0x98, %rsp movq %rsi, 0x88(%rsp) movq %rdx, 0x80(%rsp) movq %rdi, 0x78(%rsp) movq 0x78(%rsp), %rax movq %rax, 0x8(%rsp) leaq 0x88(%rsp), %rdi leaq 0x80(%rsp), %rsi callq 0xf5f40 testb $0x1, %al jne 0xf6591 jmp 0xf65a6 movq 0x88(%rsp), %rax movq %rax, 0x90(%rsp) jmp 0xf66f8 movq 0x88(%rsp), %rax movq %rax, 0x68(%rsp) movq 0x80(%rsp), %rax movq %rax, 0x60(%rsp) movq 0x68(%rsp), %rdi movq 0x60(%rsp), %rsi callq 0xf6740 movq 0x8(%rsp), %rdi movq %rax, 0x70(%rsp) callq 0xdf5f0 movq %rax, 0x50(%rsp) movq 0x88(%rsp), %rax movq %rax, 0x48(%rsp) movq 0x50(%rsp), %rdi movq 0x48(%rsp), %rsi callq 0xf6740 movq %rax, 0x58(%rsp) movq 0x88(%rsp), %rax movq %rax, 0x40(%rsp) movq 0x40(%rsp), %rax movq %rax, 0x30(%rsp) movq 0x70(%rsp), %rsi movq 0x30(%rsp), %rdi callq 0xf6710 movq 0x8(%rsp), %rdi movq %rax, 0x38(%rsp) callq 0xdf620 movq %rax, 0x28(%rsp) leaq 0x38(%rsp), %rdi leaq 0x28(%rsp), %rsi callq 0xdf650 testb $0x1, %al jne 0xf6653 jmp 0xf66b6 leaq 0x40(%rsp), %rdi callq 0xf6140 movq %rax, %rdi callq 0xe0960 leaq 0x40(%rsp), %rdi callq 0xdf690 movq %rax, (%rsp) movq 0x40(%rsp), %rax movq %rax, 0x18(%rsp) movq 0x70(%rsp), %rsi movq 0x18(%rsp), %rdi callq 0xf6710 movq %rax, 0x20(%rsp) leaq 0x20(%rsp), %rdi callq 0xdf690 movq (%rsp), %rdi movq %rax, %rsi callq 0xf6780 leaq 0x40(%rsp), %rdi callq 0xdf6d0 jmp 0xf6611 movq 0x8(%rsp), %rdi callq 0xdf5d0 movq 0x8(%rsp), %rdi movq %rax, %rsi subq 0x70(%rsp), %rsi callq 0xf67c0 movq 0x8(%rsp), %rdi callq 0xdf5f0 movq %rax, 0x10(%rsp) movq 0x58(%rsp), %rsi leaq 0x10(%rsp), %rdi callq 0xf6860 movq %rax, 0x90(%rsp) movq 0x90(%rsp), %rax addq $0x98, %rsp retq nopl (%rax,%rax)
_ZN8nlohmann16json_abi_v3_11_311ordered_mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEENS0_10basic_jsonIS1_St6vectorS7_blmdSaNS0_14adl_serializerES9_IhSaIhEEvEESt4lessIvESaISt4pairIKS7_SD_EEE5eraseEN9__gnu_cxx17__normal_iteratorIPSI_S9_ISI_SJ_EEESP_: sub rsp, 98h mov [rsp+98h+var_10], rsi mov [rsp+98h+var_18], rdx mov [rsp+98h+var_20], rdi mov rax, [rsp+98h+var_20] mov [rsp+98h+var_90], rax lea rdi, [rsp+98h+var_10] lea rsi, [rsp+98h+var_18] call _ZN9__gnu_cxxeqIPSt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN8nlohmann16json_abi_v3_11_310basic_jsonINSA_11ordered_mapESt6vectorS7_blmdSaNSA_14adl_serializerESD_IhSaIhEEvEEESD_ISI_SaISI_EEEEbRKNS_17__normal_iteratorIT_T0_EESR_; __gnu_cxx::operator==<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>> *,std::vector<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>>>(__gnu_cxx::__normal_iterator<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>> *,std::vector<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>>> const&,__gnu_cxx::__normal_iterator<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>> *,std::vector<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>>> const&) test al, 1 jnz short loc_F6591 jmp short loc_F65A6 loc_F6591: mov rax, [rsp+98h+var_10] mov [rsp+98h+var_8], rax jmp loc_F66F8 loc_F65A6: mov rax, [rsp+98h+var_10] mov [rsp+98h+var_30], rax mov rax, [rsp+98h+var_18] mov [rsp+98h+var_38], rax mov rdi, [rsp+98h+var_30] mov rsi, [rsp+98h+var_38] call _ZSt8distanceIN9__gnu_cxx17__normal_iteratorIPSt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN8nlohmann16json_abi_v3_11_310basic_jsonINSB_11ordered_mapESt6vectorS8_blmdSaNSB_14adl_serializerESE_IhSaIhEEvEEESE_ISJ_SaISJ_EEEEENSt15iterator_traitsIT_E15difference_typeESP_SP_; std::distance<__gnu_cxx::__normal_iterator<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>> *,std::vector<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>>>>(__gnu_cxx::__normal_iterator<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>> *,std::vector<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>>>,__gnu_cxx::__normal_iterator<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>> *,std::vector<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>>>) mov rdi, [rsp+98h+var_90] mov [rsp+98h+var_28], rax call _ZNSt6vectorISt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN8nlohmann16json_abi_v3_11_310basic_jsonINS9_11ordered_mapES_S6_blmdSaNS9_14adl_serializerES_IhSaIhEEvEEESaISG_EE5beginEv; std::vector<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>>::begin(void) mov [rsp+98h+var_48], rax mov rax, [rsp+98h+var_10] mov [rsp+98h+var_50], rax mov rdi, [rsp+98h+var_48] mov rsi, [rsp+98h+var_50] call _ZSt8distanceIN9__gnu_cxx17__normal_iteratorIPSt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN8nlohmann16json_abi_v3_11_310basic_jsonINSB_11ordered_mapESt6vectorS8_blmdSaNSB_14adl_serializerESE_IhSaIhEEvEEESE_ISJ_SaISJ_EEEEENSt15iterator_traitsIT_E15difference_typeESP_SP_; std::distance<__gnu_cxx::__normal_iterator<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>> *,std::vector<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>>>>(__gnu_cxx::__normal_iterator<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>> *,std::vector<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>>>,__gnu_cxx::__normal_iterator<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>> *,std::vector<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>>>) mov [rsp+98h+var_40], rax mov rax, [rsp+98h+var_10] mov [rsp+98h+var_58], rax loc_F6611: mov rax, [rsp+98h+var_58] mov [rsp+98h+var_68], rax mov rsi, [rsp+98h+var_28] mov rdi, [rsp+98h+var_68] call _ZSt4nextIN9__gnu_cxx17__normal_iteratorIPSt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN8nlohmann16json_abi_v3_11_310basic_jsonINSB_11ordered_mapESt6vectorS8_blmdSaNSB_14adl_serializerESE_IhSaIhEEvEEESE_ISJ_SaISJ_EEEEET_SO_NSt15iterator_traitsISO_E15difference_typeE; std::next<__gnu_cxx::__normal_iterator<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>> *,std::vector<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>>>>(__gnu_cxx::__normal_iterator<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>> *,std::vector<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>>>,std::iterator_traits<__gnu_cxx::__normal_iterator<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>> *,std::vector<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>>>>::difference_type) mov rdi, [rsp+98h+var_90] mov [rsp+98h+var_60], rax call _ZNSt6vectorISt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN8nlohmann16json_abi_v3_11_310basic_jsonINS9_11ordered_mapES_S6_blmdSaNS9_14adl_serializerES_IhSaIhEEvEEESaISG_EE3endEv; std::vector<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>>::end(void) mov [rsp+98h+var_70], rax lea rdi, [rsp+98h+var_60] lea rsi, [rsp+98h+var_70] call _ZN9__gnu_cxxneIPSt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN8nlohmann16json_abi_v3_11_310basic_jsonINSA_11ordered_mapESt6vectorS7_blmdSaNSA_14adl_serializerESD_IhSaIhEEvEEESD_ISI_SaISI_EEEEbRKNS_17__normal_iteratorIT_T0_EESR_; __gnu_cxx::operator!=<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>> *,std::vector<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>>>(__gnu_cxx::__normal_iterator<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>> *,std::vector<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>>> const&,__gnu_cxx::__normal_iterator<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>> *,std::vector<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>>> const&) test al, 1 jnz short loc_F6653 jmp short loc_F66B6 loc_F6653: lea rdi, [rsp+98h+var_58] call _ZNK9__gnu_cxx17__normal_iteratorIPSt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN8nlohmann16json_abi_v3_11_310basic_jsonINSA_11ordered_mapESt6vectorS7_blmdSaNSA_14adl_serializerESD_IhSaIhEEvEEESD_ISI_SaISI_EEEptEv; __gnu_cxx::__normal_iterator<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>> *,std::vector<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>>>::operator->(void) mov rdi, rax call _ZNSt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN8nlohmann16json_abi_v3_11_310basic_jsonINS8_11ordered_mapESt6vectorS5_blmdSaNS8_14adl_serializerESB_IhSaIhEEvEEED2Ev; std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>::~pair() lea rdi, [rsp+98h+var_58] call _ZNK9__gnu_cxx17__normal_iteratorIPSt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN8nlohmann16json_abi_v3_11_310basic_jsonINSA_11ordered_mapESt6vectorS7_blmdSaNSA_14adl_serializerESD_IhSaIhEEvEEESD_ISI_SaISI_EEEdeEv; __gnu_cxx::__normal_iterator<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>> *,std::vector<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>>>::operator*(void) mov [rsp+98h+var_98], rax mov rax, [rsp+98h+var_58] mov [rsp+98h+var_80], rax mov rsi, [rsp+98h+var_28] mov rdi, [rsp+98h+var_80] call _ZSt4nextIN9__gnu_cxx17__normal_iteratorIPSt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN8nlohmann16json_abi_v3_11_310basic_jsonINSB_11ordered_mapESt6vectorS8_blmdSaNSB_14adl_serializerESE_IhSaIhEEvEEESE_ISJ_SaISJ_EEEEET_SO_NSt15iterator_traitsISO_E15difference_typeE; std::next<__gnu_cxx::__normal_iterator<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>> *,std::vector<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>>>>(__gnu_cxx::__normal_iterator<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>> *,std::vector<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>>>,std::iterator_traits<__gnu_cxx::__normal_iterator<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>> *,std::vector<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>>>>::difference_type) mov [rsp+98h+var_78], rax lea rdi, [rsp+98h+var_78] call _ZNK9__gnu_cxx17__normal_iteratorIPSt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN8nlohmann16json_abi_v3_11_310basic_jsonINSA_11ordered_mapESt6vectorS7_blmdSaNSA_14adl_serializerESD_IhSaIhEEvEEESD_ISI_SaISI_EEEdeEv; __gnu_cxx::__normal_iterator<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>> *,std::vector<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>>>::operator*(void) mov rdi, [rsp+98h+var_98] mov rsi, rax call _ZNSt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN8nlohmann16json_abi_v3_11_310basic_jsonINS8_11ordered_mapESt6vectorS5_blmdSaNS8_14adl_serializerESB_IhSaIhEEvEEEC2EOSG_; std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>::pair(std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>&&) lea rdi, [rsp+98h+var_58] call _ZN9__gnu_cxx17__normal_iteratorIPSt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN8nlohmann16json_abi_v3_11_310basic_jsonINSA_11ordered_mapESt6vectorS7_blmdSaNSA_14adl_serializerESD_IhSaIhEEvEEESD_ISI_SaISI_EEEppEv; __gnu_cxx::__normal_iterator<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>> *,std::vector<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>>>::operator++(void) jmp loc_F6611 loc_F66B6: mov rdi, [rsp+98h+var_90] call _ZNKSt6vectorISt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN8nlohmann16json_abi_v3_11_310basic_jsonINS9_11ordered_mapES_S6_blmdSaNS9_14adl_serializerES_IhSaIhEEvEEESaISG_EE4sizeEv; std::vector<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>>::size(void) mov rdi, [rsp+98h+var_90] mov rsi, rax sub rsi, [rsp+98h+var_28] call _ZNSt6vectorISt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN8nlohmann16json_abi_v3_11_310basic_jsonINS9_11ordered_mapES_S6_blmdSaNS9_14adl_serializerES_IhSaIhEEvEEESaISG_EE6resizeEm; std::vector<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>>::resize(ulong) mov rdi, [rsp+98h+var_90] call _ZNSt6vectorISt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN8nlohmann16json_abi_v3_11_310basic_jsonINS9_11ordered_mapES_S6_blmdSaNS9_14adl_serializerES_IhSaIhEEvEEESaISG_EE5beginEv; std::vector<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>>::begin(void) mov [rsp+98h+var_88], rax mov rsi, [rsp+98h+var_40] lea rdi, [rsp+98h+var_88] call _ZNK9__gnu_cxx17__normal_iteratorIPSt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN8nlohmann16json_abi_v3_11_310basic_jsonINSA_11ordered_mapESt6vectorS7_blmdSaNSA_14adl_serializerESD_IhSaIhEEvEEESD_ISI_SaISI_EEEplEl; __gnu_cxx::__normal_iterator<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>> *,std::vector<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>>>::operator+(long) mov [rsp+98h+var_8], rax loc_F66F8: mov rax, [rsp+98h+var_8] add rsp, 98h retn
long long nlohmann::json_abi_v3_11_3::ordered_map<std::string,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>,std::less<void>,std::allocator<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>>>::erase( _QWORD *a1, long long a2, long long a3) { void *v3; // rax long long v4; // rax long long v5; // rax long long v7; // [rsp+0h] [rbp-98h] _QWORD v8[2]; // [rsp+10h] [rbp-88h] BYREF long long v9; // [rsp+20h] [rbp-78h] BYREF _QWORD v10[2]; // [rsp+28h] [rbp-70h] BYREF long long v11; // [rsp+38h] [rbp-60h] BYREF _QWORD v12[2]; // [rsp+40h] [rbp-58h] BYREF long long v13; // [rsp+50h] [rbp-48h] long long v14; // [rsp+58h] [rbp-40h] long long v15; // [rsp+60h] [rbp-38h] long long v16; // [rsp+68h] [rbp-30h] long long v17; // [rsp+70h] [rbp-28h] _QWORD *v18; // [rsp+78h] [rbp-20h] long long v19; // [rsp+80h] [rbp-18h] BYREF long long v20; // [rsp+88h] [rbp-10h] BYREF v20 = a2; v19 = a3; v18 = a1; if ( __gnu_cxx::operator==<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>> *,std::vector<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>>>( (long long)&v20, (long long)&v19) ) { return v20; } v16 = v20; v15 = v19; v17 = std::distance<__gnu_cxx::__normal_iterator<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>> *,std::vector<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>>>>( v20, v19); v13 = std::vector<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>>::begin((long long)a1); v12[1] = v20; v14 = std::distance<__gnu_cxx::__normal_iterator<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>> *,std::vector<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>>>>( v13, v20); v12[0] = v20; while ( 1 ) { v10[1] = v12[0]; v11 = std::next<__gnu_cxx::__normal_iterator<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>> *,std::vector<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>>>>( v12[0], v17); v10[0] = std::vector<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>>::end((long long)a1); if ( !__gnu_cxx::operator!=<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>> *,std::vector<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>>>( (long long)&v11, (long long)v10) ) break; v3 = (void *)__gnu_cxx::__normal_iterator<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>> *,std::vector<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>>>::operator->((long long)v12); std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>::~pair(v3); v7 = __gnu_cxx::__normal_iterator<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>> *,std::vector<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>>>::operator*((long long)v12); v8[1] = v12[0]; v9 = std::next<__gnu_cxx::__normal_iterator<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>> *,std::vector<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>>>>( v12[0], v17); v4 = __gnu_cxx::__normal_iterator<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>> *,std::vector<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>>>::operator*((long long)&v9); std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>::pair( v7, v4); __gnu_cxx::__normal_iterator<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>> *,std::vector<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>>>::operator++(v12); } v5 = std::vector<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>>::size(a1); std::vector<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>>::resize( a1, v5 - v17); v8[0] = std::vector<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>>::begin((long long)a1); return __gnu_cxx::__normal_iterator<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>> *,std::vector<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>>>::operator+( v8, v14); }
erase: SUB RSP,0x98 MOV qword ptr [RSP + 0x88],RSI MOV qword ptr [RSP + 0x80],RDX MOV qword ptr [RSP + 0x78],RDI MOV RAX,qword ptr [RSP + 0x78] MOV qword ptr [RSP + 0x8],RAX LEA RDI,[RSP + 0x88] LEA RSI,[RSP + 0x80] CALL 0x001f5f40 TEST AL,0x1 JNZ 0x001f6591 JMP 0x001f65a6 LAB_001f6591: MOV RAX,qword ptr [RSP + 0x88] MOV qword ptr [RSP + 0x90],RAX JMP 0x001f66f8 LAB_001f65a6: MOV RAX,qword ptr [RSP + 0x88] MOV qword ptr [RSP + 0x68],RAX MOV RAX,qword ptr [RSP + 0x80] MOV qword ptr [RSP + 0x60],RAX MOV RDI,qword ptr [RSP + 0x68] MOV RSI,qword ptr [RSP + 0x60] CALL 0x001f6740 MOV RDI,qword ptr [RSP + 0x8] MOV qword ptr [RSP + 0x70],RAX CALL 0x001df5f0 MOV qword ptr [RSP + 0x50],RAX MOV RAX,qword ptr [RSP + 0x88] MOV qword ptr [RSP + 0x48],RAX MOV RDI,qword ptr [RSP + 0x50] MOV RSI,qword ptr [RSP + 0x48] CALL 0x001f6740 MOV qword ptr [RSP + 0x58],RAX MOV RAX,qword ptr [RSP + 0x88] MOV qword ptr [RSP + 0x40],RAX LAB_001f6611: MOV RAX,qword ptr [RSP + 0x40] MOV qword ptr [RSP + 0x30],RAX MOV RSI,qword ptr [RSP + 0x70] MOV RDI,qword ptr [RSP + 0x30] CALL 0x001f6710 MOV RDI,qword ptr [RSP + 0x8] MOV qword ptr [RSP + 0x38],RAX CALL 0x001df620 MOV qword ptr [RSP + 0x28],RAX LEA RDI,[RSP + 0x38] LEA RSI,[RSP + 0x28] CALL 0x001df650 TEST AL,0x1 JNZ 0x001f6653 JMP 0x001f66b6 LAB_001f6653: LEA RDI,[RSP + 0x40] CALL 0x001f6140 MOV RDI,RAX CALL 0x001e0960 LEA RDI,[RSP + 0x40] CALL 0x001df690 MOV qword ptr [RSP],RAX MOV RAX,qword ptr [RSP + 0x40] MOV qword ptr [RSP + 0x18],RAX MOV RSI,qword ptr [RSP + 0x70] MOV RDI,qword ptr [RSP + 0x18] CALL 0x001f6710 MOV qword ptr [RSP + 0x20],RAX LEA RDI,[RSP + 0x20] CALL 0x001df690 MOV RDI,qword ptr [RSP] MOV RSI,RAX CALL 0x001f6780 LEA RDI,[RSP + 0x40] CALL 0x001df6d0 JMP 0x001f6611 LAB_001f66b6: MOV RDI,qword ptr [RSP + 0x8] CALL 0x001df5d0 MOV RDI,qword ptr [RSP + 0x8] MOV RSI,RAX SUB RSI,qword ptr [RSP + 0x70] CALL 0x001f67c0 MOV RDI,qword ptr [RSP + 0x8] CALL 0x001df5f0 MOV qword ptr [RSP + 0x10],RAX MOV RSI,qword ptr [RSP + 0x58] LEA RDI,[RSP + 0x10] CALL 0x001f6860 MOV qword ptr [RSP + 0x90],RAX LAB_001f66f8: MOV RAX,qword ptr [RSP + 0x90] ADD RSP,0x98 RET
/* nlohmann::json_abi_v3_11_3::ordered_map<std::__cxx11::string, 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::less<void>, std::allocator<std::pair<std::__cxx11::string const, 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> > > >::erase(__gnu_cxx::__normal_iterator<std::pair<std::__cxx11::string const, 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::vector<std::pair<std::__cxx11::string const, 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<std::__cxx11::string const, 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> > > > >, __gnu_cxx::__normal_iterator<std::pair<std::__cxx11::string const, 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::vector<std::pair<std::__cxx11::string const, 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<std::__cxx11::string const, 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> > > > >) */ int8 __thiscall nlohmann::json_abi_v3_11_3:: ordered_map<std::__cxx11::string,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::less<void>,std::allocator<std::pair<std::__cxx11::string_const,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>>>> ::erase(ordered_map<std::__cxx11::string,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::less<void>,std::allocator<std::pair<std::__cxx11::string_const,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,int8 param_2,int8 param_3) { bool bVar1; pair<std::__cxx11::string_const,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>> *ppVar2; pair *ppVar3; long lVar4; int8 local_88; int8 local_80; int8 local_78; int8 local_70; int8 local_68; int8 local_60; int8 local_58; int8 local_50; int8 local_48; long local_40; int8 local_38; int8 local_30; long local_28; ordered_map<std::__cxx11::string,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::less<void>,std::allocator<std::pair<std::__cxx11::string_const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>> *local_20; int8 local_18; int8 local_10; int8 local_8; local_20 = this; local_18 = param_3; local_10 = param_2; bVar1 = __gnu_cxx::operator==((__normal_iterator *)&local_10,(__normal_iterator *)&local_18); if (bVar1) { local_8 = local_10; } else { local_30 = local_10; local_38 = local_18; local_28 = std:: distance<__gnu_cxx::__normal_iterator<std::pair<std::__cxx11::string_const,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::vector<std::pair<std::__cxx11::string_const,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<std::__cxx11::string_const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>>>> (local_10,local_18); local_48 = std:: vector<std::pair<std::__cxx11::string_const,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<std::__cxx11::string_const,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>>>> ::begin((vector<std::pair<std::__cxx11::string_const,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<std::__cxx11::string_const,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); local_50 = local_10; local_40 = std:: distance<__gnu_cxx::__normal_iterator<std::pair<std::__cxx11::string_const,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::vector<std::pair<std::__cxx11::string_const,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<std::__cxx11::string_const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>>>> (local_48,local_10); local_58 = local_10; while( true ) { local_68 = local_58; local_60 = std:: next<__gnu_cxx::__normal_iterator<std::pair<std::__cxx11::string_const,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::vector<std::pair<std::__cxx11::string_const,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<std::__cxx11::string_const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>>>> (local_58,local_28); local_70 = std:: vector<std::pair<std::__cxx11::string_const,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<std::__cxx11::string_const,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>>>> ::end((vector<std::pair<std::__cxx11::string_const,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<std::__cxx11::string_const,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); bVar1 = __gnu_cxx::operator!=((__normal_iterator *)&local_60,(__normal_iterator *)&local_70); if (!bVar1) break; ppVar2 = (pair<std::__cxx11::string_const,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>> *)__gnu_cxx:: __normal_iterator<std::pair<std::__cxx11::string_const,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::vector<std::pair<std::__cxx11::string_const,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<std::__cxx11::string_const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>>> ::operator->((__normal_iterator<std::pair<std::__cxx11::string_const,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::vector<std::pair<std::__cxx11::string_const,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<std::__cxx11::string_const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>>> *)&local_58); std:: pair<std::__cxx11::string_const,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>> ::~pair(ppVar2); ppVar2 = (pair<std::__cxx11::string_const,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>> *)__gnu_cxx:: __normal_iterator<std::pair<std::__cxx11::string_const,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::vector<std::pair<std::__cxx11::string_const,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<std::__cxx11::string_const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>>> ::operator*((__normal_iterator<std::pair<std::__cxx11::string_const,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::vector<std::pair<std::__cxx11::string_const,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<std::__cxx11::string_const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>>> *)&local_58); local_80 = local_58; local_78 = std:: next<__gnu_cxx::__normal_iterator<std::pair<std::__cxx11::string_const,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::vector<std::pair<std::__cxx11::string_const,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<std::__cxx11::string_const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>>>> (local_58,local_28); ppVar3 = (pair *)__gnu_cxx:: __normal_iterator<std::pair<std::__cxx11::string_const,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::vector<std::pair<std::__cxx11::string_const,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<std::__cxx11::string_const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>>> ::operator*((__normal_iterator<std::pair<std::__cxx11::string_const,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::vector<std::pair<std::__cxx11::string_const,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<std::__cxx11::string_const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>>> *)&local_78); std:: pair<std::__cxx11::string_const,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>> ::pair(ppVar2,ppVar3); __gnu_cxx:: __normal_iterator<std::pair<std::__cxx11::string_const,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::vector<std::pair<std::__cxx11::string_const,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<std::__cxx11::string_const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>>> ::operator++((__normal_iterator<std::pair<std::__cxx11::string_const,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::vector<std::pair<std::__cxx11::string_const,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<std::__cxx11::string_const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>>> *)&local_58); } lVar4 = std:: vector<std::pair<std::__cxx11::string_const,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<std::__cxx11::string_const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>> ::size((vector<std::pair<std::__cxx11::string_const,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<std::__cxx11::string_const,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); std:: vector<std::pair<std::__cxx11::string_const,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<std::__cxx11::string_const,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>>>> ::resize((vector<std::pair<std::__cxx11::string_const,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<std::__cxx11::string_const,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,lVar4 - local_28); local_88 = std:: vector<std::pair<std::__cxx11::string_const,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<std::__cxx11::string_const,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>>>> ::begin((vector<std::pair<std::__cxx11::string_const,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<std::__cxx11::string_const,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); local_8 = __gnu_cxx:: __normal_iterator<std::pair<std::__cxx11::string_const,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::vector<std::pair<std::__cxx11::string_const,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<std::__cxx11::string_const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>>> ::operator+((__normal_iterator<std::pair<std::__cxx11::string_const,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::vector<std::pair<std::__cxx11::string_const,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<std::__cxx11::string_const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>>> *)&local_88,local_40); } return local_8; }
34,701
nlohmann::json_abi_v3_11_3::ordered_map<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>, std::less<void>, std::allocator<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const, 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>>>>::erase(__gnu_cxx::__normal_iterator<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const, nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>>*, std::vector<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const, nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>>, std::allocator<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const, 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>>>>>, __gnu_cxx::__normal_iterator<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const, nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>>*, std::vector<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const, nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>>, std::allocator<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const, nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>>>>>)
monkey531[P]llama/common/json.hpp
iterator erase(iterator first, iterator last) { if (first == last) { return first; } const auto elements_affected = std::distance(first, last); const auto offset = std::distance(Container::begin(), first); // This is the start situation. We need to delete elements_affected // elements (3 in this example: e, f, g), and need to return an // iterator past the last deleted element (h in this example). // Note that offset is the distance from the start of the vector // to first. We will need this later. // [ a, b, c, d, e, f, g, h, i, j ] // ^ ^ // first last // Since we cannot move const Keys, we re-construct them in place. // We start at first and re-construct (viz. copy) the elements from // the back of the vector. Example for first iteration: // ,--------. // v | destroy e and re-construct with h // [ a, b, c, d, e, f, g, h, i, j ] // ^ ^ // it it + elements_affected for (auto it = first; std::next(it, elements_affected) != Container::end(); ++it) { it->~value_type(); // destroy but keep allocation new (&*it) value_type{std::move(*std::next(it, elements_affected))}; // "move" next element to it } // [ a, b, c, d, h, i, j, h, i, j ] // ^ ^ // first last // remove the unneeded elements at the end of the vector Container::resize(this->size() - static_cast<size_type>(elements_affected)); // [ a, b, c, d, h, i, j ] // ^ ^ // first last // first is now pointing past the last deleted element, but we cannot // use this iterator, because it may have been invalidated by the // resize call. Instead, we can return begin() + offset. return Container::begin() + offset; }
O2
cpp
nlohmann::json_abi_v3_11_3::ordered_map<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>, std::less<void>, std::allocator<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const, 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>>>>::erase(__gnu_cxx::__normal_iterator<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const, nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>>*, std::vector<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const, nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>>, std::allocator<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const, 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>>>>>, __gnu_cxx::__normal_iterator<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const, nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>>*, std::vector<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const, nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>>, std::allocator<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const, nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>>>>>): pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx pushq %rax movq %rsi, %rbx cmpq %rdx, %rsi je 0x60ac1 movq %rdi, %r14 subq %rbx, %rdx pushq $0x60 popq %rcx movq %rdx, %rax cqto idivq %rcx movq %rax, %r15 movq (%rdi), %rax movq %rax, (%rsp) imulq $0x60, %r15, %r13 addq %rbx, %r13 movq %r13, %r12 negq %r12 movq %rbx, %rbp cmpq 0x8(%r14), %r13 je 0x60a9b movq %rbp, %rdi callq 0x5aa1c movq %rbp, %rdi movq %r13, %rsi callq 0x60ad4 addq $0x60, %rbp addq $0x60, %r13 addq $-0x60, %r12 jmp 0x60a74 subq (%rsp), %rbx addq (%r14), %r12 negq %r12 movq %r12, %rax cqto pushq $0x60 popq %rcx idivq %rcx subq %r15, %rax movq %r14, %rdi movq %rax, %rsi callq 0x60afe addq (%r14), %rbx movq %rbx, %rax addq $0x8, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq nop
_ZN8nlohmann16json_abi_v3_11_311ordered_mapINS0_10basic_jsonIS1_St6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEEN5minja5ValueESt4lessISD_ESaISt4pairIKSD_SF_EEE5eraseEN9__gnu_cxx17__normal_iteratorIPSK_S3_ISK_SL_EEESR_: push rbp push r15 push r14 push r13 push r12 push rbx push rax mov rbx, rsi cmp rsi, rdx jz short loc_60AC1 mov r14, rdi sub rdx, rbx push 60h ; '`' pop rcx mov rax, rdx cqo idiv rcx mov r15, rax mov rax, [rdi] mov [rsp+38h+var_38], rax imul r13, r15, 60h ; '`' add r13, rbx mov r12, r13 neg r12 mov rbp, rbx loc_60A74: cmp r13, [r14+8] jz short loc_60A9B mov rdi, rbp call _ZNSt4pairIKN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES4_IhSaIhEEvEEN5minja5ValueEED2Ev; 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>::~pair() mov rdi, rbp mov rsi, r13 call _ZNSt4pairIKN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES4_IhSaIhEEvEEN5minja5ValueEEC2EOSI_; 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>::pair(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>&&) add rbp, 60h ; '`' add r13, 60h ; '`' add r12, 0FFFFFFFFFFFFFFA0h jmp short loc_60A74 loc_60A9B: sub rbx, [rsp+38h+var_38] add r12, [r14] neg r12 mov rax, r12 cqo push 60h ; '`' pop rcx idiv rcx sub rax, r15 mov rdi, r14 mov rsi, rax call _ZNSt6vectorISt4pairIKN8nlohmann16json_abi_v3_11_310basic_jsonINS2_11ordered_mapES_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS2_14adl_serializerES_IhSaIhEEvEEN5minja5ValueEESaISI_EE6resizeEm; std::vector<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const,minja::Value>>::resize(ulong) add rbx, [r14] loc_60AC1: mov rax, rbx add rsp, 8 pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn
long long nlohmann::json_abi_v3_11_3::ordered_map<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>,minja::Value,std::less<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>,std::allocator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> const,minja::Value>>>::erase( long long *a1, long long a2, long long a3) { long long v3; // rbx long long v4; // r15 long long v5; // r13 long long v6; // r12 long long v7; // rbp long long v9; // [rsp+0h] [rbp-38h] v3 = a2; if ( a2 != a3 ) { v4 = (a3 - a2) / 96; v9 = *a1; v5 = a2 + 96 * v4; v6 = -v5; v7 = a2; while ( v5 != a1[1] ) { 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>::~pair(v7); 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>::pair( v7, v5); v7 += 96LL; v5 += 96LL; v6 -= 96LL; } std::vector<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> const,minja::Value>>::resize( a1, -(*a1 + v6) / 96 - v4, -(*a1 + v6) % 96); return *a1 + a2 - v9; } return v3; }
erase: PUSH RBP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX PUSH RAX MOV RBX,RSI CMP RSI,RDX JZ 0x00160ac1 MOV R14,RDI SUB RDX,RBX PUSH 0x60 POP RCX MOV RAX,RDX CQO IDIV RCX MOV R15,RAX MOV RAX,qword ptr [RDI] MOV qword ptr [RSP],RAX IMUL R13,R15,0x60 ADD R13,RBX MOV R12,R13 NEG R12 MOV RBP,RBX LAB_00160a74: CMP R13,qword ptr [R14 + 0x8] JZ 0x00160a9b MOV RDI,RBP CALL 0x0015aa1c MOV RDI,RBP MOV RSI,R13 CALL 0x00160ad4 ADD RBP,0x60 ADD R13,0x60 ADD R12,-0x60 JMP 0x00160a74 LAB_00160a9b: SUB RBX,qword ptr [RSP] ADD R12,qword ptr [R14] NEG R12 MOV RAX,R12 CQO PUSH 0x60 POP RCX IDIV RCX SUB RAX,R15 MOV RDI,R14 MOV RSI,RAX CALL 0x00160afe ADD RBX,qword ptr [R14] LAB_00160ac1: MOV RAX,RBX ADD RSP,0x8 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET
/* nlohmann::json_abi_v3_11_3::ordered_map<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::string, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char> >, void>, minja::Value, std::less<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::string, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char> >, void> >, std::allocator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::string, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char> >, void> const, minja::Value> > >::erase(__gnu_cxx::__normal_iterator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::string, 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>*, std::vector<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>, 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> > > >, __gnu_cxx::__normal_iterator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::string, 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>*, std::vector<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>, 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> > > >) */ 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> * __thiscall nlohmann::json_abi_v3_11_3:: ordered_map<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,minja::Value,std::less<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>,std::allocator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>const,minja::Value>>> ::erase(ordered_map<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,minja::Value,std::less<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>,std::allocator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>const,minja::Value>>> *this,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> *param_2, 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> *param_3) { long lVar1; long lVar2; 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_00; long lVar3; pair *ppVar4; if (param_2 != param_3) { lVar2 = ((long)param_3 - (long)param_2) / 0x60; lVar1 = *(long *)this; ppVar4 = (pair *)(param_2 + lVar2 * 0x60); lVar3 = -(long)ppVar4; this_00 = param_2; for (; ppVar4 != *(pair **)(this + 8); ppVar4 = ppVar4 + 0x60) { 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> ::~pair(this_00); 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> ::pair(this_00,ppVar4); this_00 = this_00 + 0x60; lVar3 = lVar3 + -0x60; } std:: vector<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>,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>>> ::resize((vector<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>,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,-(lVar3 + *(long *)this) / 0x60 - lVar2); param_2 = param_2 + (*(long *)this - lVar1); } return param_2; }
34,702
cs_leave
eloqsql/strings/ctype.c
static int cs_leave(MY_XML_PARSER *st,const char *attr, size_t len) { struct my_cs_file_info *i= (struct my_cs_file_info *)st->user_data; const struct my_cs_file_section_st *s= cs_file_sec(attr,len); int state= s ? s->state : 0; int rc; switch(state){ case _CS_COLLATION: if (i->tailoring_length) i->cs.tailoring= i->tailoring; rc= i->loader->add_collation ? i->loader->add_collation(&i->cs) : MY_XML_OK; break; /* Rules: Logical Reset Positions */ case _CS_RESET_FIRST_NON_IGNORABLE: rc= tailoring_append(st, "[first non-ignorable]", 0, NULL); break; case _CS_RESET_LAST_NON_IGNORABLE: rc= tailoring_append(st, "[last non-ignorable]", 0, NULL); break; case _CS_RESET_FIRST_PRIMARY_IGNORABLE: rc= tailoring_append(st, "[first primary ignorable]", 0, NULL); break; case _CS_RESET_LAST_PRIMARY_IGNORABLE: rc= tailoring_append(st, "[last primary ignorable]", 0, NULL); break; case _CS_RESET_FIRST_SECONDARY_IGNORABLE: rc= tailoring_append(st, "[first secondary ignorable]", 0, NULL); break; case _CS_RESET_LAST_SECONDARY_IGNORABLE: rc= tailoring_append(st, "[last secondary ignorable]", 0, NULL); break; case _CS_RESET_FIRST_TERTIARY_IGNORABLE: rc= tailoring_append(st, "[first tertiary ignorable]", 0, NULL); break; case _CS_RESET_LAST_TERTIARY_IGNORABLE: rc= tailoring_append(st, "[last tertiary ignorable]", 0, NULL); break; case _CS_RESET_FIRST_TRAILING: rc= tailoring_append(st, "[first trailing]", 0, NULL); break; case _CS_RESET_LAST_TRAILING: rc= tailoring_append(st, "[last trailing]", 0, NULL); break; case _CS_RESET_FIRST_VARIABLE: rc= tailoring_append(st, "[first variable]", 0, NULL); break; case _CS_RESET_LAST_VARIABLE: rc= tailoring_append(st, "[last variable]", 0, NULL); break; default: rc=MY_XML_OK; } return rc; }
O3
c
cs_leave: pushq %rbp movq %rsp, %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx pushq %rax movq %rdx, %r14 movq %rsi, %r15 movq 0x140(%rdi), %rbx leaq 0x299988(%rip), %r13 # 0x2ef560 leaq 0x7bd4(%rip), %r12 # 0x5d7b3 movq %r15, %rdi movq %r12, %rsi movq %r14, %rdx callq 0x24130 testl %eax, %eax jne 0x55bf8 cmpb $0x0, (%r12,%r14) je 0x55c16 movq 0x18(%r13), %r12 addq $0x10, %r13 testq %r12, %r12 jne 0x55bdf xorl %eax, %eax addq $0x8, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq movl (%r13), %ecx leal -0x191(%rcx), %eax cmpl $0xb, %eax ja 0x55c41 leaq 0x284230(%rip), %rcx # 0x2d9e5c movslq (%rcx,%rax,4), %rax addq %rcx, %rax jmpq *%rax leaq 0x9f7b(%rip), %rsi # 0x5fbb7 jmp 0x55cec cmpl $0x9, %ecx jne 0x55c05 cmpq $0x0, 0x690(%rbx) je 0x55c5e movq 0x688(%rbx), %rax movq %rax, 0x718(%rbx) movq 0x7a8(%rbx), %rax movq 0xa8(%rax), %rax testq %rax, %rax je 0x55c05 addq $0x6e0, %rbx # imm = 0x6E0 movq %rbx, %rdi addq $0x8, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp jmpq *%rax leaq 0x9f10(%rip), %rsi # 0x5fba2 jmp 0x55cec leaq 0x9f86(%rip), %rsi # 0x5fc21 jmp 0x55cec leaq 0x9fe4(%rip), %rsi # 0x5fc88 jmp 0x55cec leaq 0x9f3d(%rip), %rsi # 0x5fbea jmp 0x55cec leaq 0x9f50(%rip), %rsi # 0x5fc06 jmp 0x55cec leaq 0x9fa8(%rip), %rsi # 0x5fc67 jmp 0x55cec leaq 0x9f09(%rip), %rsi # 0x5fbd1 jmp 0x55cec leaq 0x9f6b(%rip), %rsi # 0x5fc3c jmp 0x55cec leaq 0x9f7c(%rip), %rsi # 0x5fc56 jmp 0x55cec leaq 0x9ea9(%rip), %rsi # 0x5fb8c jmp 0x55cec leaq 0x9f8b(%rip), %rsi # 0x5fc77 movq %rbx, %rdi xorl %edx, %edx xorl %ecx, %ecx addq $0x8, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp jmp 0x5653c
cs_leave: push rbp mov rbp, rsp push r15 push r14 push r13 push r12 push rbx push rax mov r14, rdx mov r15, rsi mov rbx, [rdi+140h] lea r13, sec lea r12, aIndexXml+6; "xml" loc_55BDF: mov rdi, r15 mov rsi, r12 mov rdx, r14 call _strncmp test eax, eax jnz short loc_55BF8 cmp byte ptr [r12+r14], 0 jz short loc_55C16 loc_55BF8: mov r12, [r13+18h] add r13, 10h test r12, r12 jnz short loc_55BDF loc_55C05: xor eax, eax add rsp, 8 pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn loc_55C16: mov ecx, [r13+0] lea eax, [rcx-191h]; switch 12 cases cmp eax, 0Bh ja short def_55C33; jumptable 0000000000055C33 default case lea rcx, jpt_55C33 movsxd rax, ds:(jpt_55C33 - 2D9E5Ch)[rcx+rax*4] add rax, rcx jmp rax; switch jump loc_55C35: lea rsi, aFirstPrimaryIg; jumptable 0000000000055C33 case 401 jmp loc_55CEC def_55C33: cmp ecx, 9; jumptable 0000000000055C33 default case jnz short loc_55C05 cmp qword ptr [rbx+690h], 0 jz short loc_55C5E mov rax, [rbx+688h] mov [rbx+718h], rax loc_55C5E: mov rax, [rbx+7A8h] mov rax, [rax+0A8h] test rax, rax jz short loc_55C05 add rbx, 6E0h mov rdi, rbx add rsp, 8 pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp jmp rax loc_55C8B: lea rsi, aLastNonIgnorab; jumptable 0000000000055C33 case 412 jmp short loc_55CEC loc_55C94: lea rsi, aFirstTertiaryI; jumptable 0000000000055C33 case 405 jmp short loc_55CEC loc_55C9D: lea rsi, aLastVariable; jumptable 0000000000055C33 case 410 jmp short loc_55CEC loc_55CA6: lea rsi, aFirstSecondary; jumptable 0000000000055C33 case 403 jmp short loc_55CEC loc_55CAF: lea rsi, aLastSecondaryI; jumptable 0000000000055C33 case 404 jmp short loc_55CEC loc_55CB8: lea rsi, aLastTrailing; jumptable 0000000000055C33 case 408 jmp short loc_55CEC loc_55CC1: lea rsi, aLastPrimaryIgn; jumptable 0000000000055C33 case 402 jmp short loc_55CEC loc_55CCA: lea rsi, aLastTertiaryIg; jumptable 0000000000055C33 case 406 jmp short loc_55CEC loc_55CD3: lea rsi, aFirstTrailing; jumptable 0000000000055C33 case 407 jmp short loc_55CEC loc_55CDC: lea rsi, aFirstNonIgnora; jumptable 0000000000055C33 case 411 jmp short loc_55CEC loc_55CE5: lea rsi, aFirstVariable; jumptable 0000000000055C33 case 409 loc_55CEC: mov rdi, rbx xor edx, edx xor ecx, ecx add rsp, 8 pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp jmp tailoring_append
long long cs_leave(long long a1, long long a2, long long a3) { _QWORD *v4; // rbx char *v5; // r13 char *v6; // r12 long long result; // rax long long ( *v8)(_QWORD *); // rax v4 = *(_QWORD **)(a1 + 320); v5 = (char *)&sec; v6 = "xml"; while ( (unsigned int)strncmp(a2, v6, a3) || v6[a3] ) { v6 = (char *)*((_QWORD *)v5 + 3); v5 += 16; if ( !v6 ) return 0LL; } switch ( *(_DWORD *)v5 ) { case 0x191: result = tailoring_append(v4, "[first primary ignorable]", 0LL, 0LL); break; case 0x192: result = tailoring_append(v4, "[last primary ignorable]", 0LL, 0LL); break; case 0x193: result = tailoring_append(v4, "[first secondary ignorable]", 0LL, 0LL); break; case 0x194: result = tailoring_append(v4, "[last secondary ignorable]", 0LL, 0LL); break; case 0x195: result = tailoring_append(v4, "[first tertiary ignorable]", 0LL, 0LL); break; case 0x196: result = tailoring_append(v4, "[last tertiary ignorable]", 0LL, 0LL); break; case 0x197: result = tailoring_append(v4, "[first trailing]", 0LL, 0LL); break; case 0x198: result = tailoring_append(v4, "[last trailing]", 0LL, 0LL); break; case 0x199: result = tailoring_append(v4, "[first variable]", 0LL, 0LL); break; case 0x19A: result = tailoring_append(v4, "[last variable]", 0LL, 0LL); break; case 0x19B: result = tailoring_append(v4, "[first non-ignorable]", 0LL, 0LL); break; case 0x19C: result = tailoring_append(v4, "[last non-ignorable]", 0LL, 0LL); break; default: if ( *(_DWORD *)v5 != 9 ) return 0LL; if ( v4[210] ) v4[227] = v4[209]; v8 = *(long long ( **)(_QWORD *))(v4[245] + 168LL); if ( !v8 ) return 0LL; result = v8(v4 + 220); break; } return result; }
cs_leave: PUSH RBP MOV RBP,RSP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX PUSH RAX MOV R14,RDX MOV R15,RSI MOV RBX,qword ptr [RDI + 0x140] LEA R13,[0x3ef560] LEA R12,[0x15d7b3] LAB_00155bdf: MOV RDI,R15 MOV RSI,R12 MOV RDX,R14 CALL 0x00124130 TEST EAX,EAX JNZ 0x00155bf8 CMP byte ptr [R12 + R14*0x1],0x0 JZ 0x00155c16 LAB_00155bf8: MOV R12,qword ptr [R13 + 0x18] ADD R13,0x10 TEST R12,R12 JNZ 0x00155bdf LAB_00155c05: XOR EAX,EAX ADD RSP,0x8 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET LAB_00155c16: MOV ECX,dword ptr [R13] LEA EAX,[RCX + -0x191] CMP EAX,0xb JA 0x00155c41 LEA RCX,[0x3d9e5c] MOVSXD RAX,dword ptr [RCX + RAX*0x4] ADD RAX,RCX switchD: JMP RAX caseD_191: LEA RSI,[0x15fbb7] JMP 0x00155cec LAB_00155c41: CMP ECX,0x9 JNZ 0x00155c05 CMP qword ptr [RBX + 0x690],0x0 JZ 0x00155c5e MOV RAX,qword ptr [RBX + 0x688] MOV qword ptr [RBX + 0x718],RAX LAB_00155c5e: MOV RAX,qword ptr [RBX + 0x7a8] MOV RAX,qword ptr [RAX + 0xa8] TEST RAX,RAX JZ 0x00155c05 ADD RBX,0x6e0 MOV RDI,RBX ADD RSP,0x8 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP JMP RAX caseD_19c: LEA RSI,[0x15fba2] JMP 0x00155cec caseD_195: LEA RSI,[0x15fc21] JMP 0x00155cec caseD_19a: LEA RSI,[0x15fc88] JMP 0x00155cec caseD_193: LEA RSI,[0x15fbea] JMP 0x00155cec caseD_194: LEA RSI,[0x15fc06] JMP 0x00155cec caseD_198: LEA RSI,[0x15fc67] JMP 0x00155cec caseD_192: LEA RSI,[0x15fbd1] JMP 0x00155cec caseD_196: LEA RSI,[0x15fc3c] JMP 0x00155cec caseD_197: LEA RSI,[0x15fc56] JMP 0x00155cec caseD_19b: LEA RSI,[0x15fb8c] JMP 0x00155cec caseD_199: LEA RSI,[0x15fc77] LAB_00155cec: MOV RDI,RBX XOR EDX,EDX XOR ECX,ECX ADD RSP,0x8 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP JMP 0x0015653c
int8 cs_leave(long param_1,char *param_2,size_t param_3) { long lVar1; code *UNRECOVERED_JUMPTABLE; int iVar2; int8 uVar3; char *pcVar4; int *piVar5; lVar1 = *(long *)(param_1 + 0x140); piVar5 = &sec; pcVar4 = "xml"; while ((iVar2 = strncmp(param_2,pcVar4,param_3), iVar2 != 0 || (pcVar4[param_3] != '\0'))) { pcVar4 = *(char **)(piVar5 + 6); piVar5 = piVar5 + 4; if (pcVar4 == (char *)0x0) { return 0; } } switch(*piVar5) { case 0x191: pcVar4 = "[first primary ignorable]"; break; case 0x192: pcVar4 = "[last primary ignorable]"; break; case 0x193: pcVar4 = "[first secondary ignorable]"; break; case 0x194: pcVar4 = "[last secondary ignorable]"; break; case 0x195: pcVar4 = "[first tertiary ignorable]"; break; case 0x196: pcVar4 = "[last tertiary ignorable]"; break; case 0x197: pcVar4 = "[first trailing]"; break; case 0x198: pcVar4 = "[last trailing]"; break; case 0x199: pcVar4 = "[first variable]"; break; case 0x19a: pcVar4 = "[last variable]"; break; case 0x19b: pcVar4 = "[first non-ignorable]"; break; case 0x19c: pcVar4 = "[last non-ignorable]"; break; default: if (*piVar5 != 9) { return 0; } if (*(long *)(lVar1 + 0x690) != 0) { *(int8 *)(lVar1 + 0x718) = *(int8 *)(lVar1 + 0x688); } UNRECOVERED_JUMPTABLE = *(code **)(*(long *)(lVar1 + 0x7a8) + 0xa8); if (UNRECOVERED_JUMPTABLE == (code *)0x0) { return 0; } /* WARNING: Could not recover jumptable at 0x00155c89. Too many branches */ /* WARNING: Treating indirect jump as call */ uVar3 = (*UNRECOVERED_JUMPTABLE)(lVar1 + 0x6e0); return uVar3; } uVar3 = tailoring_append(lVar1,pcVar4,0,0); return uVar3; }
34,703
multadd
eloqsql/strings/dtoa.c
static Bigint *multadd(Bigint *b, int m, int a, Stack_alloc *alloc) { int i, wds; ULong *x; ULLong carry, y; Bigint *b1; wds= b->wds; x= b->p.x; i= 0; carry= a; do { y= *x * (ULLong)m + carry; carry= y >> 32; *x++= (ULong)(y & FFFFFFFF); } while (++i < wds); if (carry) { if (wds >= b->maxwds) { b1= Balloc(b->k+1, alloc); Bcopy(b1, b); Bfree(b, alloc); b= b1; } b->p.x[wds++]= (ULong) carry; b->wds= wds; } return b; }
O3
c
multadd: pushq %rbp movq %rsp, %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx pushq %rax movq %rcx, %r14 movq %rdi, %rbx movslq 0x14(%rdi), %r12 movq (%rdi), %rax movslq %edx, %r13 movslq %esi, %rcx cmpl $0x2, %r12d movl $0x1, %edx cmovgel %r12d, %edx xorl %esi, %esi movl (%rax,%rsi,4), %edi imulq %rcx, %rdi addq %r13, %rdi movq %rdi, %r13 shrq $0x20, %r13 movl %edi, (%rax,%rsi,4) incq %rsi cmpl %esi, %edx jne 0x5c262 shrq $0x20, %rdi je 0x5c2cf cmpl 0xc(%rbx), %r12d jl 0x5c2c0 movl 0x8(%rbx), %edi incl %edi movq %r14, %rsi callq 0x5bc08 movq %rax, %r15 leaq 0x10(%rax), %rdi leaq 0x10(%rbx), %rsi movslq 0x14(%rbx), %rax leaq 0x8(,%rax,4), %rdx callq 0x24220 movq %rbx, %rdi movq %r14, %rsi callq 0x5c001 movq %r15, %rbx movq (%rbx), %rax leal 0x1(%r12), %ecx movl %r13d, (%rax,%r12,4) movl %ecx, 0x14(%rbx) movq %rbx, %rax addq $0x8, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq
multadd: push rbp mov rbp, rsp push r15 push r14 push r13 push r12 push rbx push rax mov r14, rcx mov rbx, rdi movsxd r12, dword ptr [rdi+14h] mov rax, [rdi] movsxd r13, edx movsxd rcx, esi cmp r12d, 2 mov edx, 1 cmovge edx, r12d xor esi, esi loc_5C262: mov edi, [rax+rsi*4] imul rdi, rcx add rdi, r13 mov r13, rdi shr r13, 20h mov [rax+rsi*4], edi inc rsi cmp edx, esi jnz short loc_5C262 shr rdi, 20h jz short loc_5C2CF cmp r12d, [rbx+0Ch] jl short loc_5C2C0 mov edi, [rbx+8] inc edi mov rsi, r14 call Balloc mov r15, rax lea rdi, [rax+10h] lea rsi, [rbx+10h] movsxd rax, dword ptr [rbx+14h] lea rdx, ds:8[rax*4] call _memcpy mov rdi, rbx mov rsi, r14 call Bfree mov rbx, r15 loc_5C2C0: mov rax, [rbx] lea ecx, [r12+1] mov [rax+r12*4], r13d mov [rbx+14h], ecx loc_5C2CF: mov rax, rbx add rsp, 8 pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn
unsigned long long multadd(unsigned long long a1, int a2, int a3, unsigned long long *a4) { unsigned long long v5; // rbx long long v6; // r12 long long v7; // rax unsigned long long v8; // r13 long long v9; // rcx int v10; // edx long long v11; // rsi unsigned long long v12; // rdi long long v13; // r15 v5 = a1; v6 = *(int *)(a1 + 20); v7 = *(_QWORD *)a1; v8 = a3; v9 = a2; v10 = 1; if ( (int)v6 >= 2 ) v10 = *(_DWORD *)(a1 + 20); v11 = 0LL; do { v12 = v8 + v9 * *(unsigned int *)(v7 + 4 * v11); v8 = HIDWORD(v12); *(_DWORD *)(v7 + 4 * v11++) = v12; } while ( v10 != (_DWORD)v11 ); if ( HIDWORD(v12) ) { if ( (int)v6 >= *(_DWORD *)(v5 + 12) ) { v13 = Balloc(*(_DWORD *)(v5 + 8) + 1, (long long)a4); memcpy(v13 + 16, v5 + 16, 4LL * *(int *)(v5 + 20) + 8); Bfree(v5, a4); v5 = v13; } *(_DWORD *)(*(_QWORD *)v5 + 4 * v6) = HIDWORD(v12); *(_DWORD *)(v5 + 20) = v6 + 1; } return v5; }
multadd: PUSH RBP MOV RBP,RSP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX PUSH RAX MOV R14,RCX MOV RBX,RDI MOVSXD R12,dword ptr [RDI + 0x14] MOV RAX,qword ptr [RDI] MOVSXD R13,EDX MOVSXD RCX,ESI CMP R12D,0x2 MOV EDX,0x1 CMOVGE EDX,R12D XOR ESI,ESI LAB_0015c262: MOV EDI,dword ptr [RAX + RSI*0x4] IMUL RDI,RCX ADD RDI,R13 MOV R13,RDI SHR R13,0x20 MOV dword ptr [RAX + RSI*0x4],EDI INC RSI CMP EDX,ESI JNZ 0x0015c262 SHR RDI,0x20 JZ 0x0015c2cf CMP R12D,dword ptr [RBX + 0xc] JL 0x0015c2c0 MOV EDI,dword ptr [RBX + 0x8] INC EDI MOV RSI,R14 CALL 0x0015bc08 MOV R15,RAX LEA RDI,[RAX + 0x10] LEA RSI,[RBX + 0x10] MOVSXD RAX,dword ptr [RBX + 0x14] LEA RDX,[0x8 + RAX*0x4] CALL 0x00124220 MOV RDI,RBX MOV RSI,R14 CALL 0x0015c001 MOV RBX,R15 LAB_0015c2c0: MOV RAX,qword ptr [RBX] LEA ECX,[R12 + 0x1] MOV dword ptr [RAX + R12*0x4],R13D MOV dword ptr [RBX + 0x14],ECX LAB_0015c2cf: MOV RAX,RBX ADD RSP,0x8 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET
long * multadd(long *param_1,int param_2,int param_3,int8 param_4) { int iVar1; long lVar2; long *plVar3; int iVar4; long lVar5; ulong uVar6; ulong uVar7; iVar1 = *(int *)((long)param_1 + 0x14); lVar2 = *param_1; uVar7 = (ulong)param_3; iVar4 = 1; if (1 < iVar1) { iVar4 = iVar1; } lVar5 = 0; do { uVar6 = (ulong)*(uint *)(lVar2 + lVar5 * 4) * (long)param_2 + uVar7; uVar7 = uVar6 >> 0x20; *(int *)(lVar2 + lVar5 * 4) = (int)uVar6; lVar5 = lVar5 + 1; } while (iVar4 != (int)lVar5); plVar3 = param_1; if (uVar6 >> 0x20 != 0) { if (*(int *)((long)param_1 + 0xc) <= iVar1) { plVar3 = (long *)Balloc((int)param_1[1] + 1,param_4); memcpy(plVar3 + 2,param_1 + 2,(long)*(int *)((long)param_1 + 0x14) * 4 + 8); Bfree(param_1,param_4); } *(int *)(*plVar3 + (long)iVar1 * 4) = (int)(uVar6 >> 0x20); *(int *)((long)plVar3 + 0x14) = iVar1 + 1; } return plVar3; }
34,704
reaction::ResourceBase<reaction::SimpleExpr, double>::getValue() const
reaction/include/reaction/resource.h
T getValue() const { if (!m_ptr) { throw std::runtime_error("Attempt to get a null pointer"); } return *m_ptr; }
O0
c
reaction::ResourceBase<reaction::SimpleExpr, double>::getValue() const: pushq %rbp movq %rsp, %rbp subq $0x30, %rsp movq %rdi, -0x8(%rbp) movq -0x8(%rbp), %rdi movq %rdi, -0x20(%rbp) callq 0x1a4b0 testb $0x1, %al jne 0x1c5fd movl $0x10, %edi callq 0x30c0 movq %rax, %rdi movq %rdi, %rax movq %rax, -0x28(%rbp) leaq 0x8c63(%rip), %rsi # 0x2522b callq 0x3080 jmp 0x1c5cf movq -0x28(%rbp), %rdi leaq 0x1d78e(%rip), %rsi # 0x39d68 movq 0x1d9cf(%rip), %rdx # 0x39fb0 callq 0x3270 movq -0x28(%rbp), %rdi movq %rax, %rcx movl %edx, %eax movq %rcx, -0x10(%rbp) movl %eax, -0x14(%rbp) callq 0x3130 jmp 0x1c610 movq -0x20(%rbp), %rdi callq 0x1a4e0 movsd (%rax), %xmm0 addq $0x30, %rsp popq %rbp retq movq -0x10(%rbp), %rdi callq 0x32a0 nopl (%rax)
_ZNK8reaction12ResourceBaseINS_10SimpleExprEdE8getValueEv: push rbp mov rbp, rsp sub rsp, 30h mov [rbp+var_8], rdi mov rdi, [rbp+var_8] mov [rbp+var_20], rdi call _ZNKSt10unique_ptrIdSt14default_deleteIdEEcvbEv; std::unique_ptr<double>::operator bool(void) test al, 1 jnz short loc_1C5FD mov edi, 10h; thrown_size call ___cxa_allocate_exception mov rdi, rax; this mov rax, rdi mov [rbp+var_28], rax lea rsi, aAttemptToGetAN; "Attempt to get a null pointer" call __ZNSt13runtime_errorC1EPKc; std::runtime_error::runtime_error(char const*) jmp short $+2 loc_1C5CF: mov rdi, [rbp+var_28]; void * lea rsi, _ZTISt13runtime_error; lptinfo mov rdx, cs:_ZNSt13runtime_errorD1Ev_ptr; void (*)(void *) call ___cxa_throw mov rdi, [rbp+var_28]; void * mov rcx, rax mov eax, edx mov [rbp+var_10], rcx mov [rbp+var_14], eax call ___cxa_free_exception jmp short loc_1C610 loc_1C5FD: mov rdi, [rbp+var_20] call _ZNKSt10unique_ptrIdSt14default_deleteIdEEdeEv; std::unique_ptr<double>::operator*(void) movsd xmm0, qword ptr [rax] add rsp, 30h pop rbp retn loc_1C610: mov rdi, [rbp+var_10] call __Unwind_Resume
double reaction::ResourceBase<reaction::SimpleExpr,double>::getValue(long long a1) { std::runtime_error *exception; // [rsp+8h] [rbp-28h] if ( !std::unique_ptr<double>::operator bool(a1) ) { exception = (std::runtime_error *)__cxa_allocate_exception(0x10uLL); std::runtime_error::runtime_error(exception, "Attempt to get a null pointer"); __cxa_throw( exception, (struct type_info *)&`typeinfo for'std::runtime_error, (void (*)(void *))&std::runtime_error::~runtime_error); } return *(double *)std::unique_ptr<double>::operator*(a1); }
getValue: PUSH RBP MOV RBP,RSP SUB RSP,0x30 MOV qword ptr [RBP + -0x8],RDI MOV RDI,qword ptr [RBP + -0x8] MOV qword ptr [RBP + -0x20],RDI CALL 0x0011a4b0 TEST AL,0x1 JNZ 0x0011c5fd MOV EDI,0x10 CALL 0x001030c0 MOV RDI,RAX MOV RAX,RDI MOV qword ptr [RBP + -0x28],RAX LAB_0011c5c1: LEA RSI,[0x12522b] CALL 0x00103080 LAB_0011c5cd: JMP 0x0011c5cf LAB_0011c5cf: MOV RDI,qword ptr [RBP + -0x28] LEA RSI,[0x139d68] MOV RDX,qword ptr [0x00139fb0] CALL 0x00103270 LAB_0011c5fd: MOV RDI,qword ptr [RBP + -0x20] CALL 0x0011a4e0 MOVSD XMM0,qword ptr [RAX] ADD RSP,0x30 POP RBP RET
/* reaction::ResourceBase<reaction::SimpleExpr, double>::getValue() const */ int8 __thiscall reaction::ResourceBase<reaction::SimpleExpr,double>::getValue (ResourceBase<reaction::SimpleExpr,double> *this) { bool bVar1; runtime_error *this_00; int8 *puVar2; bVar1 = std::unique_ptr::operator_cast_to_bool((unique_ptr *)this); if (!bVar1) { this_00 = (runtime_error *)__cxa_allocate_exception(0x10); /* try { // try from 0011c5c1 to 0011c5cc has its CatchHandler @ 0011c5e6 */ std::runtime_error::runtime_error(this_00,"Attempt to get a null pointer"); /* WARNING: Subroutine does not return */ __cxa_throw(this_00,&std::runtime_error::typeinfo,PTR__runtime_error_00139fb0); } puVar2 = (int8 *) std::unique_ptr<double,std::default_delete<double>>::operator* ((unique_ptr<double,std::default_delete<double>> *)this); return *puVar2; }
34,705
aria_rename_s3
eloqsql/storage/maria/s3_func.c
int aria_rename_s3(ms3_st *s3_client, const char *aws_bucket, const char *from_database, const char *from_table, const char *to_database, const char *to_table, my_bool rename_frm) { ms3_status_st status; char to_aws_path[FN_REFLEN+100], from_aws_path[FN_REFLEN+100]; char *to_aws_path_end, *from_aws_path_end; int error; DBUG_ENTER("aria_rename_s3"); from_aws_path_end= strxmov(from_aws_path, from_database, "/", from_table, NullS); to_aws_path_end= strxmov(to_aws_path, to_database, "/", to_table, NullS); strmov(from_aws_path_end, "/aria"); if (ms3_status(s3_client, aws_bucket, from_aws_path, &status)) { my_printf_error(HA_ERR_NO_SUCH_TABLE, "Table %s.%s doesn't exist in s3", MYF(0), from_database, from_table); my_errno= HA_ERR_NO_SUCH_TABLE; DBUG_RETURN(HA_ERR_NO_SUCH_TABLE); } strmov(from_aws_path_end,"/index"); strmov(to_aws_path_end,"/index"); error= s3_rename_directory(s3_client, aws_bucket, from_aws_path, to_aws_path, MYF(MY_WME)); strmov(from_aws_path_end,"/data"); strmov(to_aws_path_end,"/data"); error|= s3_rename_directory(s3_client, aws_bucket, from_aws_path, to_aws_path, MYF(MY_WME)); if (rename_frm) { strmov(from_aws_path_end, "/frm"); strmov(to_aws_path_end, "/frm"); s3_rename_object(s3_client, aws_bucket, from_aws_path, to_aws_path, MYF(MY_WME)); } strmov(from_aws_path_end,"/aria"); strmov(to_aws_path_end,"/aria"); if (s3_rename_object(s3_client, aws_bucket, from_aws_path, to_aws_path, MYF(MY_WME))) error= 1; DBUG_RETURN(error); }
O0
c
aria_rename_s3: pushq %rbp movq %rsp, %rbp subq $0x540, %rsp # imm = 0x540 movb 0x10(%rbp), %al movq %fs:0x28, %rax movq %rax, -0x8(%rbp) movq %rdi, -0x4f0(%rbp) movq %rsi, -0x4f8(%rbp) movq %rdx, -0x500(%rbp) movq %rcx, -0x508(%rbp) movq %r8, -0x510(%rbp) movq %r9, -0x518(%rbp) leaq -0x4e0(%rbp), %rdi movq -0x500(%rbp), %rsi movq -0x508(%rbp), %rcx leaq 0xf7473(%rip), %rdx # 0x122224 xorl %eax, %eax movl %eax, %r8d movb $0x0, %al callq 0x11b450 movq %rax, -0x538(%rbp) leaq -0x270(%rbp), %rdi movq -0x510(%rbp), %rsi movq -0x518(%rbp), %rcx leaq 0xf7444(%rip), %rdx # 0x122224 xorl %eax, %eax movl %eax, %r8d movb $0x0, %al callq 0x11b450 movq %rax, -0x530(%rbp) movq -0x538(%rbp), %rdi leaq 0xf277e(%rip), %rsi # 0x11d57f callq 0x27880 movq -0x4f0(%rbp), %rdi movq -0x4f8(%rbp), %rsi leaq -0x4e0(%rbp), %rdx leaq -0x528(%rbp), %rcx callq 0x2d320 cmpb $0x0, %al je 0x2ae6a movq -0x500(%rbp), %rcx movq -0x508(%rbp), %r8 movl $0x9b, %edi leaq 0xf294c(%rip), %rsi # 0x11d791 xorl %eax, %eax movl %eax, %edx movb $0x0, %al callq 0xb6900 callq 0xc0d80 movl $0x9b, (%rax) movl $0x9b, -0x4e4(%rbp) jmp 0x2afd2 movq -0x538(%rbp), %rdi leaq 0xf2833(%rip), %rsi # 0x11d6ab callq 0x27880 movq -0x530(%rbp), %rdi leaq 0xf2820(%rip), %rsi # 0x11d6ab callq 0x27880 movq -0x4f0(%rbp), %rdi movq -0x4f8(%rbp), %rsi leaq -0x4e0(%rbp), %rdx leaq -0x270(%rbp), %rcx movl $0x10, %r8d callq 0x2b010 movl %eax, -0x53c(%rbp) movq -0x538(%rbp), %rdi leaq 0xf280a(%rip), %rsi # 0x11d6d5 callq 0x27880 movq -0x530(%rbp), %rdi leaq 0xf27f7(%rip), %rsi # 0x11d6d5 callq 0x27880 movq -0x4f0(%rbp), %rdi movq -0x4f8(%rbp), %rsi leaq -0x4e0(%rbp), %rdx leaq -0x270(%rbp), %rcx movl $0x10, %r8d callq 0x2b010 orl -0x53c(%rbp), %eax movl %eax, -0x53c(%rbp) cmpb $0x0, 0x10(%rbp) je 0x2af69 movq -0x538(%rbp), %rdi leaq 0xf268a(%rip), %rsi # 0x11d5b4 callq 0x27880 movq -0x530(%rbp), %rdi leaq 0xf2677(%rip), %rsi # 0x11d5b4 callq 0x27880 movq -0x4f0(%rbp), %rdi movq -0x4f8(%rbp), %rsi leaq -0x4e0(%rbp), %rdx leaq -0x270(%rbp), %rcx movl $0x10, %r8d callq 0x2b230 movq -0x538(%rbp), %rdi leaq 0xf2608(%rip), %rsi # 0x11d57f callq 0x27880 movq -0x530(%rbp), %rdi leaq 0xf25f5(%rip), %rsi # 0x11d57f callq 0x27880 movq -0x4f0(%rbp), %rdi movq -0x4f8(%rbp), %rsi leaq -0x4e0(%rbp), %rdx leaq -0x270(%rbp), %rcx movl $0x10, %r8d callq 0x2b230 cmpb $0x0, %al je 0x2afc4 movl $0x1, -0x53c(%rbp) jmp 0x2afc6 movl -0x53c(%rbp), %eax movl %eax, -0x4e4(%rbp) movl -0x4e4(%rbp), %eax movl %eax, -0x540(%rbp) movq %fs:0x28, %rax movq -0x8(%rbp), %rcx cmpq %rcx, %rax jne 0x2afff movl -0x540(%rbp), %eax addq $0x540, %rsp # imm = 0x540 popq %rbp retq callq 0x272b0 nopw %cs:(%rax,%rax)
aria_rename_s3: push rbp mov rbp, rsp sub rsp, 540h mov al, [rbp+arg_0] mov rax, fs:28h mov [rbp+var_8], rax mov [rbp+var_4F0], rdi mov [rbp+var_4F8], rsi mov [rbp+var_500], rdx mov [rbp+var_508], rcx mov [rbp+var_510], r8 mov [rbp+var_518], r9 lea rdi, [rbp+var_4E0] mov rsi, [rbp+var_500] mov rcx, [rbp+var_508] lea rdx, word_122224 xor eax, eax mov r8d, eax mov al, 0 call strxmov mov [rbp+var_538], rax lea rdi, [rbp+var_270] mov rsi, [rbp+var_510] mov rcx, [rbp+var_518] lea rdx, word_122224 xor eax, eax mov r8d, eax mov al, 0 call strxmov mov [rbp+var_530], rax mov rdi, [rbp+var_538] lea rsi, aAria; "/aria" call _stpcpy mov rdi, [rbp+var_4F0] mov rsi, [rbp+var_4F8] lea rdx, [rbp+var_4E0] lea rcx, [rbp+var_528] call ms3_status cmp al, 0 jz short loc_2AE6A mov rcx, [rbp+var_500] mov r8, [rbp+var_508] mov edi, 9Bh lea rsi, aTableSSDoesnTE; "Table %s.%s doesn't exist in s3" xor eax, eax mov edx, eax mov al, 0 call my_printf_error call _my_thread_var mov dword ptr [rax], 9Bh mov [rbp+var_4E4], 9Bh jmp loc_2AFD2 loc_2AE6A: mov rdi, [rbp+var_538] lea rsi, aIndex; "/index" call _stpcpy mov rdi, [rbp+var_530] lea rsi, aIndex; "/index" call _stpcpy mov rdi, [rbp+var_4F0] mov rsi, [rbp+var_4F8] lea rdx, [rbp+var_4E0] lea rcx, [rbp+var_270] mov r8d, 10h call s3_rename_directory mov [rbp+var_53C], eax mov rdi, [rbp+var_538] lea rsi, aData; "/data" call _stpcpy mov rdi, [rbp+var_530] lea rsi, aData; "/data" call _stpcpy mov rdi, [rbp+var_4F0] mov rsi, [rbp+var_4F8] lea rdx, [rbp+var_4E0] lea rcx, [rbp+var_270] mov r8d, 10h call s3_rename_directory or eax, [rbp+var_53C] mov [rbp+var_53C], eax cmp [rbp+arg_0], 0 jz short loc_2AF69 mov rdi, [rbp+var_538] lea rsi, aFrm_0; "/frm" call _stpcpy mov rdi, [rbp+var_530] lea rsi, aFrm_0; "/frm" call _stpcpy mov rdi, [rbp+var_4F0] mov rsi, [rbp+var_4F8] lea rdx, [rbp+var_4E0] lea rcx, [rbp+var_270] mov r8d, 10h call s3_rename_object loc_2AF69: mov rdi, [rbp+var_538] lea rsi, aAria; "/aria" call _stpcpy mov rdi, [rbp+var_530] lea rsi, aAria; "/aria" call _stpcpy mov rdi, [rbp+var_4F0] mov rsi, [rbp+var_4F8] lea rdx, [rbp+var_4E0] lea rcx, [rbp+var_270] mov r8d, 10h call s3_rename_object cmp al, 0 jz short loc_2AFC4 mov [rbp+var_53C], 1 loc_2AFC4: jmp short $+2 loc_2AFC6: mov eax, [rbp+var_53C] mov [rbp+var_4E4], eax loc_2AFD2: mov eax, [rbp+var_4E4] mov [rbp+var_540], eax mov rax, fs:28h mov rcx, [rbp+var_8] cmp rax, rcx jnz short loc_2AFFF mov eax, [rbp+var_540] add rsp, 540h pop rbp retn loc_2AFFF: call ___stack_chk_fail
long long aria_rename_s3(long long a1, long long a2, long long a3, long long a4, long long a5, long long a6, char a7) { int v7; // r9d int v8; // r9d int v10; // [rsp+4h] [rbp-53Ch] unsigned int v11; // [rsp+4h] [rbp-53Ch] long long v12; // [rsp+8h] [rbp-538h] long long v13; // [rsp+10h] [rbp-530h] _BYTE v14[16]; // [rsp+18h] [rbp-528h] BYREF long long v15; // [rsp+28h] [rbp-518h] long long v16; // [rsp+30h] [rbp-510h] long long v17; // [rsp+38h] [rbp-508h] long long v18; // [rsp+40h] [rbp-500h] long long v19; // [rsp+48h] [rbp-4F8h] long long v20; // [rsp+50h] [rbp-4F0h] _BYTE v22[624]; // [rsp+60h] [rbp-4E0h] BYREF _BYTE v23[616]; // [rsp+2D0h] [rbp-270h] BYREF unsigned long long v24; // [rsp+538h] [rbp-8h] v24 = __readfsqword(0x28u); v20 = a1; v19 = a2; v18 = a3; v17 = a4; v16 = a5; v15 = a6; v12 = strxmov((unsigned int)v22, a3, (unsigned int)&word_122224, a4, 0, a6); v13 = strxmov((unsigned int)v23, v16, (unsigned int)&word_122224, v15, 0, v7); stpcpy(v12, "/aria"); if ( (unsigned __int8)ms3_status(a1, a2, v22, v14) ) { my_printf_error(155, (unsigned int)"Table %s.%s doesn't exist in s3", 0, v18, v17, v8); *(_DWORD *)my_thread_var() = 155; return 155; } else { stpcpy(v12, "/index"); stpcpy(v13, "/index"); v10 = s3_rename_directory(v20, v19, v22, v23, 16LL); stpcpy(v12, "/data"); stpcpy(v13, "/data"); v11 = v10 | s3_rename_directory(v20, v19, v22, v23, 16LL); if ( a7 ) { stpcpy(v12, "/frm"); stpcpy(v13, "/frm"); s3_rename_object(v20, v19, v22, v23, 16LL); } stpcpy(v12, "/aria"); stpcpy(v13, "/aria"); if ( (unsigned __int8)s3_rename_object(v20, v19, v22, v23, 16LL) ) return 1; return v11; } }
aria_rename_s3: PUSH RBP MOV RBP,RSP SUB RSP,0x540 MOV AL,byte ptr [RBP + 0x10] MOV RAX,qword ptr FS:[0x28] MOV qword ptr [RBP + -0x8],RAX MOV qword ptr [RBP + -0x4f0],RDI MOV qword ptr [RBP + -0x4f8],RSI MOV qword ptr [RBP + -0x500],RDX MOV qword ptr [RBP + -0x508],RCX MOV qword ptr [RBP + -0x510],R8 MOV qword ptr [RBP + -0x518],R9 LEA RDI,[RBP + -0x4e0] MOV RSI,qword ptr [RBP + -0x500] MOV RCX,qword ptr [RBP + -0x508] LEA RDX,[0x222224] XOR EAX,EAX MOV R8D,EAX MOV AL,0x0 CALL 0x0021b450 MOV qword ptr [RBP + -0x538],RAX LEA RDI,[RBP + -0x270] MOV RSI,qword ptr [RBP + -0x510] MOV RCX,qword ptr [RBP + -0x518] LEA RDX,[0x222224] XOR EAX,EAX MOV R8D,EAX MOV AL,0x0 CALL 0x0021b450 MOV qword ptr [RBP + -0x530],RAX MOV RDI,qword ptr [RBP + -0x538] LEA RSI,[0x21d57f] CALL 0x00127880 MOV RDI,qword ptr [RBP + -0x4f0] MOV RSI,qword ptr [RBP + -0x4f8] LEA RDX,[RBP + -0x4e0] LEA RCX,[RBP + -0x528] CALL 0x0012d320 CMP AL,0x0 JZ 0x0012ae6a MOV RCX,qword ptr [RBP + -0x500] MOV R8,qword ptr [RBP + -0x508] MOV EDI,0x9b LEA RSI,[0x21d791] XOR EAX,EAX MOV EDX,EAX MOV AL,0x0 CALL 0x001b6900 CALL 0x001c0d80 MOV dword ptr [RAX],0x9b MOV dword ptr [RBP + -0x4e4],0x9b JMP 0x0012afd2 LAB_0012ae6a: MOV RDI,qword ptr [RBP + -0x538] LEA RSI,[0x21d6ab] CALL 0x00127880 MOV RDI,qword ptr [RBP + -0x530] LEA RSI,[0x21d6ab] CALL 0x00127880 MOV RDI,qword ptr [RBP + -0x4f0] MOV RSI,qword ptr [RBP + -0x4f8] LEA RDX,[RBP + -0x4e0] LEA RCX,[RBP + -0x270] MOV R8D,0x10 CALL 0x0012b010 MOV dword ptr [RBP + -0x53c],EAX MOV RDI,qword ptr [RBP + -0x538] LEA RSI,[0x21d6d5] CALL 0x00127880 MOV RDI,qword ptr [RBP + -0x530] LEA RSI,[0x21d6d5] CALL 0x00127880 MOV RDI,qword ptr [RBP + -0x4f0] MOV RSI,qword ptr [RBP + -0x4f8] LEA RDX,[RBP + -0x4e0] LEA RCX,[RBP + -0x270] MOV R8D,0x10 CALL 0x0012b010 OR EAX,dword ptr [RBP + -0x53c] MOV dword ptr [RBP + -0x53c],EAX CMP byte ptr [RBP + 0x10],0x0 JZ 0x0012af69 MOV RDI,qword ptr [RBP + -0x538] LEA RSI,[0x21d5b4] CALL 0x00127880 MOV RDI,qword ptr [RBP + -0x530] LEA RSI,[0x21d5b4] CALL 0x00127880 MOV RDI,qword ptr [RBP + -0x4f0] MOV RSI,qword ptr [RBP + -0x4f8] LEA RDX,[RBP + -0x4e0] LEA RCX,[RBP + -0x270] MOV R8D,0x10 CALL 0x0012b230 LAB_0012af69: MOV RDI,qword ptr [RBP + -0x538] LEA RSI,[0x21d57f] CALL 0x00127880 MOV RDI,qword ptr [RBP + -0x530] LEA RSI,[0x21d57f] CALL 0x00127880 MOV RDI,qword ptr [RBP + -0x4f0] MOV RSI,qword ptr [RBP + -0x4f8] LEA RDX,[RBP + -0x4e0] LEA RCX,[RBP + -0x270] MOV R8D,0x10 CALL 0x0012b230 CMP AL,0x0 JZ 0x0012afc4 MOV dword ptr [RBP + -0x53c],0x1 LAB_0012afc4: JMP 0x0012afc6 LAB_0012afc6: MOV EAX,dword ptr [RBP + -0x53c] MOV dword ptr [RBP + -0x4e4],EAX LAB_0012afd2: MOV EAX,dword ptr [RBP + -0x4e4] MOV dword ptr [RBP + -0x540],EAX MOV RAX,qword ptr FS:[0x28] MOV RCX,qword ptr [RBP + -0x8] CMP RAX,RCX JNZ 0x0012afff MOV EAX,dword ptr [RBP + -0x540] ADD RSP,0x540 POP RBP RET LAB_0012afff: CALL 0x001272b0
uint aria_rename_s3(int8 param_1,int8 param_2,int8 param_3,int8 param_4, int8 param_5,int8 param_6,char param_7) { char cVar1; uint uVar2; char *__dest; char *__dest_00; int4 *puVar3; long in_FS_OFFSET; uint local_544; int1 local_530 [16]; int8 local_520; int8 local_518; int8 local_510; int8 local_508; int8 local_500; int8 local_4f8; uint local_4ec; int1 local_4e8 [624]; int1 local_278 [616]; long local_10; local_10 = *(long *)(in_FS_OFFSET + 0x28); local_520 = param_6; local_518 = param_5; local_510 = param_4; local_508 = param_3; local_500 = param_2; local_4f8 = param_1; __dest = (char *)strxmov(local_4e8,param_3,&DAT_00222224,param_4,0); __dest_00 = (char *)strxmov(local_278,local_518,&DAT_00222224,local_520,0); stpcpy(__dest,"/aria"); cVar1 = ms3_status(local_4f8,local_500,local_4e8,local_530); if (cVar1 == '\0') { stpcpy(__dest,"/index"); stpcpy(__dest_00,"/index"); uVar2 = s3_rename_directory(local_4f8,local_500,local_4e8,local_278,0x10); stpcpy(__dest,"/data"); stpcpy(__dest_00,"/data"); local_544 = s3_rename_directory(local_4f8,local_500,local_4e8,local_278,0x10); local_544 = local_544 | uVar2; if (param_7 != '\0') { stpcpy(__dest,"/frm"); stpcpy(__dest_00,"/frm"); s3_rename_object(local_4f8,local_500,local_4e8,local_278,0x10); } stpcpy(__dest,"/aria"); stpcpy(__dest_00,"/aria"); cVar1 = s3_rename_object(local_4f8,local_500,local_4e8,local_278,0x10); if (cVar1 != '\0') { local_544 = 1; } local_4ec = local_544; } else { my_printf_error(0x9b,"Table %s.%s doesn\'t exist in s3",0,local_508,local_510); puVar3 = (int4 *)_my_thread_var(); *puVar3 = 0x9b; local_4ec = 0x9b; } if (*(long *)(in_FS_OFFSET + 0x28) == local_10) { return local_4ec; } /* WARNING: Subroutine does not return */ __stack_chk_fail(); }
34,706
aria_rename_s3
eloqsql/storage/maria/s3_func.c
int aria_rename_s3(ms3_st *s3_client, const char *aws_bucket, const char *from_database, const char *from_table, const char *to_database, const char *to_table, my_bool rename_frm) { ms3_status_st status; char to_aws_path[FN_REFLEN+100], from_aws_path[FN_REFLEN+100]; char *to_aws_path_end, *from_aws_path_end; int error; DBUG_ENTER("aria_rename_s3"); from_aws_path_end= strxmov(from_aws_path, from_database, "/", from_table, NullS); to_aws_path_end= strxmov(to_aws_path, to_database, "/", to_table, NullS); strmov(from_aws_path_end, "/aria"); if (ms3_status(s3_client, aws_bucket, from_aws_path, &status)) { my_printf_error(HA_ERR_NO_SUCH_TABLE, "Table %s.%s doesn't exist in s3", MYF(0), from_database, from_table); my_errno= HA_ERR_NO_SUCH_TABLE; DBUG_RETURN(HA_ERR_NO_SUCH_TABLE); } strmov(from_aws_path_end,"/index"); strmov(to_aws_path_end,"/index"); error= s3_rename_directory(s3_client, aws_bucket, from_aws_path, to_aws_path, MYF(MY_WME)); strmov(from_aws_path_end,"/data"); strmov(to_aws_path_end,"/data"); error|= s3_rename_directory(s3_client, aws_bucket, from_aws_path, to_aws_path, MYF(MY_WME)); if (rename_frm) { strmov(from_aws_path_end, "/frm"); strmov(to_aws_path_end, "/frm"); s3_rename_object(s3_client, aws_bucket, from_aws_path, to_aws_path, MYF(MY_WME)); } strmov(from_aws_path_end,"/aria"); strmov(to_aws_path_end,"/aria"); if (s3_rename_object(s3_client, aws_bucket, from_aws_path, to_aws_path, MYF(MY_WME))) error= 1; DBUG_RETURN(error); }
O3
c
aria_rename_s3: pushq %rbp movq %rsp, %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x518, %rsp # imm = 0x518 movq %r9, %r12 movq %r8, %r14 movq %rsi, %r13 movq %rdi, %rbx movq %fs:0x28, %rax movq %rax, -0x30(%rbp) leaq 0x92466(%rip), %rax # 0xc21ce leaq -0x510(%rbp), %rdi movq %rdx, -0x528(%rbp) movq %rdx, %rsi movq %rax, %rdx movq %rcx, -0x518(%rbp) xorl %r8d, %r8d xorl %eax, %eax callq 0xbc22c movq %rax, %r15 leaq -0x2a0(%rbp), %rdi movq %r14, %rsi leaq 0x9242d(%rip), %rdx # 0xc21ce movq %r12, %rcx xorl %r8d, %r8d xorl %eax, %eax callq 0xbc22c movq %rax, %r12 movl $0x6972612f, (%r15) # imm = 0x6972612F movw $0x61, 0x4(%r15) leaq -0x538(%rbp), %rcx movq %rbx, -0x520(%rbp) movq %rbx, %rdi movq %r13, %r14 movq %r13, %rsi leaq -0x510(%rbp), %rdx callq 0x31661 testb %al, %al je 0x2fe1f leaq 0x8d9a4(%rip), %rsi # 0xbd791 movl $0x9b, %r14d movl $0x9b, %edi xorl %edx, %edx movq -0x528(%rbp), %rcx movq -0x518(%rbp), %r8 xorl %eax, %eax callq 0x7f9a1 callq 0x85b0e movl $0x9b, (%rax) jmp 0x2ff31 movl $0x786564, %eax # imm = 0x786564 movl %eax, 0x3(%r15) movl $0x646e692f, %ecx # imm = 0x646E692F movl %ecx, (%r15) movl %eax, 0x3(%r12) movl %ecx, (%r12) leaq -0x510(%rbp), %rdx leaq -0x2a0(%rbp), %rcx movl $0x10, %r8d movq -0x520(%rbp), %rbx movq %rbx, %rdi movq %r14, %rsi callq 0x2ff5a movl %eax, -0x518(%rbp) movl $0x7461642f, %eax # imm = 0x7461642F movl %eax, (%r15) movw $0x61, %cx movw %cx, 0x4(%r15) movw %cx, 0x4(%r12) movl %eax, (%r12) movl $0x10, %r8d movq %rbx, %rdi movq %r14, %rsi leaq -0x510(%rbp), %rdx leaq -0x2a0(%rbp), %rcx callq 0x2ff5a movl %eax, %ebx orl -0x518(%rbp), %ebx cmpb $0x0, 0x10(%rbp) je 0x2fee7 movl $0x6d72662f, %eax # imm = 0x6D72662F movl %eax, (%r15) xorl %ecx, %ecx movb %cl, 0x4(%r15) movb %cl, 0x4(%r12) movl %eax, (%r12) leaq -0x510(%rbp), %rdx leaq -0x2a0(%rbp), %rcx movl $0x10, %r8d movq -0x520(%rbp), %rdi movq %r14, %rsi callq 0x300c3 movw $0x61, %cx movw %cx, 0x4(%r15) movl $0x6972612f, %eax # imm = 0x6972612F movl %eax, (%r15) movw %cx, 0x4(%r12) movl %eax, (%r12) leaq -0x510(%rbp), %rdx leaq -0x2a0(%rbp), %rcx movl $0x10, %r8d movq -0x520(%rbp), %rdi movq %r14, %rsi callq 0x300c3 testb %al, %al movl $0x1, %r14d cmovel %ebx, %r14d movq %fs:0x28, %rax cmpq -0x30(%rbp), %rax jne 0x2ff55 movl %r14d, %eax addq $0x518, %rsp # imm = 0x518 popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq callq 0x272c0
aria_rename_s3: push rbp mov rbp, rsp push r15 push r14 push r13 push r12 push rbx sub rsp, 518h mov r12, r9 mov r14, r8 mov r13, rsi mov rbx, rdi mov rax, fs:28h mov [rbp+var_30], rax lea rax, unk_C21CE lea rdi, [rbp+var_510] mov [rbp+var_528], rdx mov rsi, rdx mov rdx, rax mov [rbp+var_518], rcx xor r8d, r8d xor eax, eax call strxmov mov r15, rax lea rdi, [rbp+var_2A0] mov rsi, r14 lea rdx, unk_C21CE mov rcx, r12 xor r8d, r8d xor eax, eax call strxmov mov r12, rax mov dword ptr [r15], 6972612Fh mov word ptr [r15+4], 61h ; 'a' lea rcx, [rbp+var_538] mov [rbp+var_520], rbx mov rdi, rbx mov r14, r13 mov rsi, r13 lea rdx, [rbp+var_510] call ms3_status test al, al jz short loc_2FE1F lea rsi, aTableSSDoesnTE; "Table %s.%s doesn't exist in s3" mov r14d, 9Bh mov edi, 9Bh xor edx, edx mov rcx, [rbp+var_528] mov r8, [rbp+var_518] xor eax, eax call my_printf_error call _my_thread_var mov dword ptr [rax], 9Bh jmp loc_2FF31 loc_2FE1F: mov eax, offset unk_786564 mov [r15+3], eax mov ecx, 646E692Fh mov [r15], ecx mov [r12+3], eax mov [r12], ecx lea rdx, [rbp+var_510] lea rcx, [rbp+var_2A0] mov r8d, 10h mov rbx, [rbp+var_520] mov rdi, rbx mov rsi, r14 call s3_rename_directory mov dword ptr [rbp+var_518], eax mov eax, 7461642Fh mov [r15], eax mov cx, 61h ; 'a' mov [r15+4], cx mov [r12+4], cx mov [r12], eax mov r8d, 10h mov rdi, rbx mov rsi, r14 lea rdx, [rbp+var_510] lea rcx, [rbp+var_2A0] call s3_rename_directory mov ebx, eax or ebx, dword ptr [rbp+var_518] cmp [rbp+arg_0], 0 jz short loc_2FEE7 mov eax, 6D72662Fh mov [r15], eax xor ecx, ecx mov [r15+4], cl mov [r12+4], cl mov [r12], eax lea rdx, [rbp+var_510] lea rcx, [rbp+var_2A0] mov r8d, 10h mov rdi, [rbp+var_520] mov rsi, r14 call s3_rename_object loc_2FEE7: mov cx, 61h ; 'a' mov [r15+4], cx mov eax, 6972612Fh mov [r15], eax mov [r12+4], cx mov [r12], eax lea rdx, [rbp+var_510] lea rcx, [rbp+var_2A0] mov r8d, 10h mov rdi, [rbp+var_520] mov rsi, r14 call s3_rename_object test al, al mov r14d, 1 cmovz r14d, ebx loc_2FF31: mov rax, fs:28h cmp rax, [rbp+var_30] jnz short loc_2FF55 mov eax, r14d add rsp, 518h pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn loc_2FF55: call ___stack_chk_fail
long long aria_rename_s3(long long a1, long long a2, long long a3, long long a4, int a5, int a6, char a7) { long long v9; // r15 int v10; // r9d long long v11; // r12 int v12; // r9d unsigned int v13; // r14d long long v14; // rbx int v15; // eax unsigned int v16; // ebx _BYTE v18[16]; // [rsp+8h] [rbp-538h] BYREF long long v19; // [rsp+18h] [rbp-528h] long long v20; // [rsp+20h] [rbp-520h] long long v21; // [rsp+28h] [rbp-518h] _BYTE v22[624]; // [rsp+30h] [rbp-510h] BYREF _BYTE v23[624]; // [rsp+2A0h] [rbp-2A0h] BYREF unsigned long long v24; // [rsp+510h] [rbp-30h] v24 = __readfsqword(0x28u); v19 = a3; v21 = a4; v9 = strxmov((unsigned int)v22, a3, (unsigned int)&unk_C21CE, a4, 0, a6); v11 = strxmov((unsigned int)v23, a5, (unsigned int)&unk_C21CE, a6, 0, v10); strcpy((char *)v9, "/aria"); v20 = a1; if ( (unsigned __int8)ms3_status(a1, a2, v22, v18) ) { v13 = 155; my_printf_error(155, (unsigned int)"Table %s.%s doesn't exist in s3", 0, v19, v21, v12); *(_DWORD *)my_thread_var(155LL) = 155; } else { *(_DWORD *)(v9 + 3) = (unsigned int)&unk_786564; *(_DWORD *)v9 = 1684957487; *(_DWORD *)(v11 + 3) = (unsigned int)&unk_786564; *(_DWORD *)v11 = 1684957487; v14 = v20; LODWORD(v21) = s3_rename_directory(v20, a2, v22, v23, 16LL); strcpy((char *)v9, "/data"); strcpy((char *)v11, "/data"); v15 = s3_rename_directory(v14, a2, v22, v23, 16LL); v16 = v21 | v15; if ( a7 ) { strcpy((char *)v9, "/frm"); strcpy((char *)v11, "/frm"); s3_rename_object(v20, a2, v22, v23, 16LL); } strcpy((char *)v9, "/aria"); strcpy((char *)v11, "/aria"); v13 = 1; if ( !(unsigned __int8)s3_rename_object(v20, a2, v22, v23, 16LL) ) return v16; } return v13; }
aria_rename_s3: PUSH RBP MOV RBP,RSP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0x518 MOV R12,R9 MOV R14,R8 MOV R13,RSI MOV RBX,RDI MOV RAX,qword ptr FS:[0x28] MOV qword ptr [RBP + -0x30],RAX LEA RAX,[0x1c21ce] LEA RDI,[RBP + -0x510] MOV qword ptr [RBP + -0x528],RDX MOV RSI,RDX MOV RDX,RAX MOV qword ptr [RBP + -0x518],RCX XOR R8D,R8D XOR EAX,EAX CALL 0x001bc22c MOV R15,RAX LEA RDI,[RBP + -0x2a0] MOV RSI,R14 LEA RDX,[0x1c21ce] MOV RCX,R12 XOR R8D,R8D XOR EAX,EAX CALL 0x001bc22c MOV R12,RAX MOV dword ptr [R15],0x6972612f MOV word ptr [R15 + 0x4],0x61 LEA RCX,[RBP + -0x538] MOV qword ptr [RBP + -0x520],RBX MOV RDI,RBX MOV R14,R13 MOV RSI,R13 LEA RDX,[RBP + -0x510] CALL 0x00131661 TEST AL,AL JZ 0x0012fe1f LEA RSI,[0x1bd791] MOV R14D,0x9b MOV EDI,0x9b XOR EDX,EDX MOV RCX,qword ptr [RBP + -0x528] MOV R8,qword ptr [RBP + -0x518] XOR EAX,EAX CALL 0x0017f9a1 CALL 0x00185b0e MOV dword ptr [RAX],0x9b JMP 0x0012ff31 LAB_0012fe1f: MOV EAX,0x786564 MOV dword ptr [R15 + 0x3],EAX MOV ECX,0x646e692f MOV dword ptr [R15],ECX MOV dword ptr [R12 + 0x3],EAX MOV dword ptr [R12],ECX LEA RDX,[RBP + -0x510] LEA RCX,[RBP + -0x2a0] MOV R8D,0x10 MOV RBX,qword ptr [RBP + -0x520] MOV RDI,RBX MOV RSI,R14 CALL 0x0012ff5a MOV dword ptr [RBP + -0x518],EAX MOV EAX,0x7461642f MOV dword ptr [R15],EAX MOV CX,0x61 MOV word ptr [R15 + 0x4],CX MOV word ptr [R12 + 0x4],CX MOV dword ptr [R12],EAX MOV R8D,0x10 MOV RDI,RBX MOV RSI,R14 LEA RDX,[RBP + -0x510] LEA RCX,[RBP + -0x2a0] CALL 0x0012ff5a MOV EBX,EAX OR EBX,dword ptr [RBP + -0x518] CMP byte ptr [RBP + 0x10],0x0 JZ 0x0012fee7 MOV EAX,0x6d72662f MOV dword ptr [R15],EAX XOR ECX,ECX MOV byte ptr [R15 + 0x4],CL MOV byte ptr [R12 + 0x4],CL MOV dword ptr [R12],EAX LEA RDX,[RBP + -0x510] LEA RCX,[RBP + -0x2a0] MOV R8D,0x10 MOV RDI,qword ptr [RBP + -0x520] MOV RSI,R14 CALL 0x001300c3 LAB_0012fee7: MOV CX,0x61 MOV word ptr [R15 + 0x4],CX MOV EAX,0x6972612f MOV dword ptr [R15],EAX MOV word ptr [R12 + 0x4],CX MOV dword ptr [R12],EAX LEA RDX,[RBP + -0x510] LEA RCX,[RBP + -0x2a0] MOV R8D,0x10 MOV RDI,qword ptr [RBP + -0x520] MOV RSI,R14 CALL 0x001300c3 TEST AL,AL MOV R14D,0x1 CMOVZ R14D,EBX LAB_0012ff31: MOV RAX,qword ptr FS:[0x28] CMP RAX,qword ptr [RBP + -0x30] JNZ 0x0012ff55 MOV EAX,R14D ADD RSP,0x518 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET LAB_0012ff55: CALL 0x001272c0
uint aria_rename_s3(int8 param_1,int8 param_2,int8 param_3,int8 param_4, int8 param_5,int8 param_6,char param_7) { int8 uVar1; char cVar2; int4 uVar3; uint uVar4; int4 *puVar5; int4 *puVar6; uint uVar7; long in_FS_OFFSET; int1 local_540 [16]; int8 local_530; int8 local_528; int8 local_520; int1 local_518 [624]; int1 local_2a8 [624]; long local_38; local_38 = *(long *)(in_FS_OFFSET + 0x28); local_530 = param_3; local_520 = param_4; puVar5 = (int4 *)strxmov(local_518,param_3,&DAT_001c21ce,param_4,0); puVar6 = (int4 *)strxmov(local_2a8,param_5,&DAT_001c21ce,param_6,0); *puVar5 = 0x6972612f; *(int2 *)(puVar5 + 1) = 0x61; local_528 = param_1; cVar2 = ms3_status(param_1,param_2,local_518,local_540); uVar1 = local_528; if (cVar2 == '\0') { *(int4 *)((long)puVar5 + 3) = 0x786564; *puVar5 = 0x646e692f; *(int4 *)((long)puVar6 + 3) = 0x786564; *puVar6 = 0x646e692f; uVar3 = s3_rename_directory(local_528,param_2,local_518,local_2a8,0x10); local_520 = CONCAT44(local_520._4_4_,uVar3); *puVar5 = 0x7461642f; *(int2 *)(puVar5 + 1) = 0x61; *(int2 *)(puVar6 + 1) = 0x61; *puVar6 = 0x7461642f; uVar4 = s3_rename_directory(uVar1,param_2,local_518,local_2a8,0x10); uVar4 = uVar4 | (uint)local_520; if (param_7 != '\0') { *puVar5 = 0x6d72662f; *(int1 *)(puVar5 + 1) = 0; *(int1 *)(puVar6 + 1) = 0; *puVar6 = 0x6d72662f; s3_rename_object(local_528,param_2,local_518,local_2a8,0x10); } *(int2 *)(puVar5 + 1) = 0x61; *puVar5 = 0x6972612f; *(int2 *)(puVar6 + 1) = 0x61; *puVar6 = 0x6972612f; cVar2 = s3_rename_object(local_528,param_2,local_518,local_2a8,0x10); uVar7 = 1; if (cVar2 == '\0') { uVar7 = uVar4; } } else { my_printf_error(0x9b,"Table %s.%s doesn\'t exist in s3",0,local_530,local_520); puVar5 = (int4 *)_my_thread_var(); *puVar5 = 0x9b; uVar7 = 0x9b; } if (*(long *)(in_FS_OFFSET + 0x28) == local_38) { return uVar7; } /* WARNING: Subroutine does not return */ __stack_chk_fail(); }
34,707
ma_control_file_write_and_force
eloqsql/storage/maria/ma_control_file.c
int ma_control_file_write_and_force(LSN last_checkpoint_lsn_arg, uint32 last_logno_arg, TrID max_trid_arg, uint8 recovery_failures_arg) { uchar buffer[CF_MAX_SIZE]; uint32 sum; my_bool no_need_sync; DBUG_ENTER("ma_control_file_write_and_force"); /* We don't need to sync if this is just an increase of recovery_failures: it's even good if that counter is not increased on disk in case of power or hardware failure (less false positives when removing logs). */ no_need_sync= ((last_checkpoint_lsn == last_checkpoint_lsn_arg) && (last_logno == last_logno_arg) && (max_trid_in_control_file == max_trid_arg) && (recovery_failures_arg > 0)); if (control_file_fd < 0) DBUG_RETURN(1); #ifndef DBUG_OFF if (maria_multi_threaded) translog_lock_handler_assert_owner(); #endif lsn_store(buffer + CF_LSN_OFFSET, last_checkpoint_lsn_arg); int4store(buffer + CF_FILENO_OFFSET, last_logno_arg); transid_store(buffer + CF_MAX_TRID_OFFSET, max_trid_arg); (buffer + CF_RECOV_FAIL_OFFSET)[0]= recovery_failures_arg; if (cf_changeable_size > CF_CHANGEABLE_TOTAL_SIZE) { /* More room than needed for us. Must be a newer version. Clear part which we cannot maintain, so that any future version notices we didn't maintain its extra data. */ uint zeroed= cf_changeable_size - CF_CHANGEABLE_TOTAL_SIZE; char msg[150]; bzero(buffer + CF_CHANGEABLE_TOTAL_SIZE, zeroed); my_snprintf(msg, sizeof(msg), "Control file must be from a newer version; zero-ing out %u" " unknown bytes in control file at offset %u", zeroed, cf_changeable_size + cf_create_time_size); ma_message_no_user(ME_WARNING, msg); } else { /* not enough room for what we need to store: enlarge */ cf_changeable_size= CF_CHANGEABLE_TOTAL_SIZE; } /* Note that the create-time portion is not touched */ /* Checksum is stored first */ compile_time_assert(CF_CHECKSUM_OFFSET == 0); sum= my_checksum(0, buffer + CF_CHECKSUM_SIZE, cf_changeable_size - CF_CHECKSUM_SIZE); int4store(buffer, sum); if (my_pwrite(control_file_fd, buffer, cf_changeable_size, cf_create_time_size, MYF(MY_FNABP | MY_WME)) || (!no_need_sync && mysql_file_sync(control_file_fd, MYF(MY_WME)))) DBUG_RETURN(1); last_checkpoint_lsn= last_checkpoint_lsn_arg; last_logno= last_logno_arg; max_trid_in_control_file= max_trid_arg; recovery_failures= recovery_failures_arg; cf_changeable_size= CF_CHANGEABLE_TOTAL_SIZE; /* no more warning */ DBUG_RETURN(0); }
O0
c
ma_control_file_write_and_force: pushq %rbp movq %rsp, %rbp subq $0x310, %rsp # imm = 0x310 movb %cl, %al movq %fs:0x28, %rcx movq %rcx, -0x8(%rbp) movq %rdi, -0x2c0(%rbp) movl %esi, -0x2c4(%rbp) movq %rdx, -0x2d0(%rbp) movb %al, -0x2d1(%rbp) movq 0x46911d(%rip), %rcx # 0x4ad4e8 xorl %eax, %eax cmpq -0x2c0(%rbp), %rcx movb %al, -0x309(%rbp) jne 0x4441d movl 0x46910e(%rip), %ecx # 0x4ad4f0 xorl %eax, %eax cmpl -0x2c4(%rbp), %ecx movb %al, -0x309(%rbp) jne 0x4441d movq 0x4690ff(%rip), %rcx # 0x4ad4f8 xorl %eax, %eax cmpq -0x2d0(%rbp), %rcx movb %al, -0x309(%rbp) jne 0x4441d movzbl -0x2d1(%rbp), %eax cmpl $0x0, %eax setg %al movb %al, -0x309(%rbp) movb -0x309(%rbp), %al andb $0x1, %al movzbl %al, %eax movb %al, -0x2d9(%rbp) cmpl $0x0, 0x2ae6ab(%rip) # 0x2f2ae0 jge 0x44448 jmp 0x44439 movl $0x1, -0x2b4(%rbp) jmp 0x446a8 jmp 0x4444a jmp 0x4444c movq -0x2c0(%rbp), %rax sarq $0x20, %rax movb %al, -0x20c(%rbp) movq -0x2c0(%rbp), %rax sarq $0x20, %rax shrl $0x8, %eax movb %al, -0x20b(%rbp) movq -0x2c0(%rbp), %rax sarq $0x20, %rax shrl $0x10, %eax movb %al, -0x20a(%rbp) jmp 0x44487 leaq -0x210(%rbp), %rax addq $0x4, %rax addq $0x3, %rax movq %rax, -0x2e8(%rbp) movabsq $0xffffffff, %rax # imm = 0xFFFFFFFF andq -0x2c0(%rbp), %rax movl %eax, %ecx movq -0x2e8(%rbp), %rax movl %ecx, (%rax) jmp 0x444bb jmp 0x444bd leaq -0x210(%rbp), %rax addq $0xb, %rax movq %rax, -0x2f0(%rbp) movl -0x2c4(%rbp), %ecx movq -0x2f0(%rbp), %rax movl %ecx, (%rax) jmp 0x444e0 leaq -0x210(%rbp), %rax addq $0xf, %rax movq %rax, -0x2f8(%rbp) movq -0x2d0(%rbp), %rax movl %eax, %ecx movq -0x2f8(%rbp), %rax movl %ecx, (%rax) movq -0x2d0(%rbp), %rax shrq $0x20, %rax movw %ax, %cx movq -0x2f8(%rbp), %rax movw %cx, 0x4(%rax) movb -0x2d1(%rbp), %al movb %al, -0x1fb(%rbp) cmpl $0x16, 0x468fd8(%rip) # 0x4ad508 jbe 0x445aa movl 0x468fd0(%rip), %eax # 0x4ad508 subl $0x16, %eax movl %eax, -0x2fc(%rbp) leaq -0x210(%rbp), %rdi addq $0x16, %rdi movl -0x2fc(%rbp), %eax movl %eax, %edx xorl %esi, %esi callq 0x2a2f0 leaq -0x2b0(%rbp), %rdi movl -0x2fc(%rbp), %ecx movl 0x468f99(%rip), %r8d # 0x4ad508 addl 0x468f8e(%rip), %r8d # 0x4ad504 movl $0x96, %esi leaq 0x139c2c(%rip), %rdx # 0x17e1ae movb $0x0, %al callq 0x179b10 leaq -0x2b0(%rbp), %rcx movl $0xa8, %edi leaq 0x139c78(%rip), %rsi # 0x17e214 movl $0x800, %edx # imm = 0x800 movb $0x0, %al callq 0x117990 jmp 0x445b4 movl $0x16, 0x468f54(%rip) # 0x4ad508 jmp 0x445b6 jmp 0x445b8 leaq -0x210(%rbp), %rsi addq $0x4, %rsi movl 0x468f3f(%rip), %eax # 0x4ad508 subl $0x4, %eax movl %eax, %eax movl %eax, %edx xorl %edi, %edi callq 0x12ef40 movl %eax, -0x2d8(%rbp) leaq -0x210(%rbp), %rax movq %rax, -0x308(%rbp) movl -0x2d8(%rbp), %ecx movq -0x308(%rbp), %rax movl %ecx, (%rax) movl 0x2ae4e0(%rip), %edi # 0x2f2ae0 leaq -0x210(%rbp), %rsi movl 0x468efb(%rip), %eax # 0x4ad508 movl %eax, %edx movl 0x468eef(%rip), %eax # 0x4ad504 movl %eax, %ecx movl $0x12, %r8d callq 0x1206c0 cmpq $0x0, %rax jne 0x44652 cmpb $0x0, -0x2d9(%rbp) jne 0x44660 movl 0x2ae4a9(%rip), %edx # 0x2f2ae0 leaq 0x139917(%rip), %rdi # 0x17df55 movl $0x22c, %esi # imm = 0x22C movl $0x10, %ecx callq 0x446e0 cmpl $0x0, %eax je 0x44660 jmp 0x44654 movl $0x1, -0x2b4(%rbp) jmp 0x446a8 movq -0x2c0(%rbp), %rax movq %rax, 0x468e7a(%rip) # 0x4ad4e8 movl -0x2c4(%rbp), %eax movl %eax, 0x468e76(%rip) # 0x4ad4f0 movq -0x2d0(%rbp), %rax movq %rax, 0x468e70(%rip) # 0x4ad4f8 movb -0x2d1(%rbp), %al movb %al, 0x468e6c(%rip) # 0x4ad500 movl $0x16, 0x468e6a(%rip) # 0x4ad508 movl $0x0, -0x2b4(%rbp) movl -0x2b4(%rbp), %eax movl %eax, -0x310(%rbp) movq %fs:0x28, %rax movq -0x8(%rbp), %rcx cmpq %rcx, %rax jne 0x446d5 movl -0x310(%rbp), %eax addq $0x310, %rsp # imm = 0x310 popq %rbp retq callq 0x2a290 nopw (%rax,%rax)
ma_control_file_write_and_force: push rbp mov rbp, rsp sub rsp, 310h mov al, cl mov rcx, fs:28h mov [rbp+var_8], rcx mov [rbp+var_2C0], rdi mov [rbp+var_2C4], esi mov [rbp+var_2D0], rdx mov [rbp+var_2D1], al mov rcx, cs:last_checkpoint_lsn xor eax, eax cmp rcx, [rbp+var_2C0] mov [rbp+var_309], al jnz short loc_4441D mov ecx, cs:last_logno xor eax, eax cmp ecx, [rbp+var_2C4] mov [rbp+var_309], al jnz short loc_4441D mov rcx, cs:max_trid_in_control_file xor eax, eax cmp rcx, [rbp+var_2D0] mov [rbp+var_309], al jnz short loc_4441D movzx eax, [rbp+var_2D1] cmp eax, 0 setnle al mov [rbp+var_309], al loc_4441D: mov al, [rbp+var_309] and al, 1 movzx eax, al mov [rbp+var_2D9], al cmp cs:control_file_fd, 0 jge short loc_44448 jmp short $+2 loc_44439: mov [rbp+var_2B4], 1 jmp loc_446A8 loc_44448: jmp short $+2 loc_4444A: jmp short $+2 loc_4444C: mov rax, [rbp+var_2C0] sar rax, 20h mov [rbp+var_20C], al mov rax, [rbp+var_2C0] sar rax, 20h shr eax, 8 mov [rbp+var_20B], al mov rax, [rbp+var_2C0] sar rax, 20h shr eax, 10h mov [rbp+var_20A], al jmp short $+2 loc_44487: lea rax, [rbp+var_210] add rax, 4 add rax, 3 mov [rbp+var_2E8], rax mov rax, 0FFFFFFFFh and rax, [rbp+var_2C0] mov ecx, eax mov rax, [rbp+var_2E8] mov [rax], ecx jmp short $+2 loc_444BB: jmp short $+2 loc_444BD: lea rax, [rbp+var_210] add rax, 0Bh mov [rbp+var_2F0], rax mov ecx, [rbp+var_2C4] mov rax, [rbp+var_2F0] mov [rax], ecx jmp short $+2 loc_444E0: lea rax, [rbp+var_210] add rax, 0Fh mov [rbp+var_2F8], rax mov rax, [rbp+var_2D0] mov ecx, eax mov rax, [rbp+var_2F8] mov [rax], ecx mov rax, [rbp+var_2D0] shr rax, 20h mov cx, ax mov rax, [rbp+var_2F8] mov [rax+4], cx mov al, [rbp+var_2D1] mov [rbp+var_1FB], al cmp cs:cf_changeable_size, 16h jbe short loc_445AA mov eax, cs:cf_changeable_size sub eax, 16h mov [rbp+var_2FC], eax lea rdi, [rbp+var_210] add rdi, 16h mov eax, [rbp+var_2FC] mov edx, eax xor esi, esi call _memset lea rdi, [rbp+var_2B0] mov ecx, [rbp+var_2FC] mov r8d, cs:cf_changeable_size add r8d, cs:cf_create_time_size mov esi, 96h lea rdx, aControlFileMus; "Control file must be from a newer versi"... mov al, 0 call my_snprintf lea rcx, [rbp+var_2B0] mov edi, 0A8h lea rsi, aAriaEngineS; "Aria engine: %s" mov edx, 800h mov al, 0 call my_printf_error jmp short loc_445B4 loc_445AA: mov cs:cf_changeable_size, 16h loc_445B4: jmp short $+2 loc_445B6: jmp short $+2 loc_445B8: lea rsi, [rbp+var_210] add rsi, 4 mov eax, cs:cf_changeable_size sub eax, 4 mov eax, eax mov edx, eax xor edi, edi call my_checksum mov [rbp+var_2D8], eax lea rax, [rbp+var_210] mov [rbp+var_308], rax mov ecx, [rbp+var_2D8] mov rax, [rbp+var_308] mov [rax], ecx mov edi, cs:control_file_fd lea rsi, [rbp+var_210] mov eax, cs:cf_changeable_size mov edx, eax mov eax, cs:cf_create_time_size mov ecx, eax mov r8d, 12h call my_pwrite cmp rax, 0 jnz short loc_44652 cmp [rbp+var_2D9], 0 jnz short loc_44660 mov edx, cs:control_file_fd lea rdi, aWorkspaceLlm4b_6; "/workspace/llm4binary/github2025/eloqsq"... mov esi, 22Ch mov ecx, 10h call inline_mysql_file_sync_1 cmp eax, 0 jz short loc_44660 loc_44652: jmp short $+2 loc_44654: mov [rbp+var_2B4], 1 jmp short loc_446A8 loc_44660: mov rax, [rbp+var_2C0] mov cs:last_checkpoint_lsn, rax mov eax, [rbp+var_2C4] mov cs:last_logno, eax mov rax, [rbp+var_2D0] mov cs:max_trid_in_control_file, rax mov al, [rbp+var_2D1] mov cs:recovery_failures, al mov cs:cf_changeable_size, 16h mov [rbp+var_2B4], 0 loc_446A8: mov eax, [rbp+var_2B4] mov [rbp+var_310], eax mov rax, fs:28h mov rcx, [rbp+var_8] cmp rax, rcx jnz short loc_446D5 mov eax, [rbp+var_310] add rsp, 310h pop rbp retn loc_446D5: call ___stack_chk_fail
long long ma_control_file_write_and_force(long long a1, int a2, long long a3, char a4) { int v4; // r9d int v5; // r8d int v6; // r9d bool v8; // [rsp+7h] [rbp-309h] int v9; // [rsp+14h] [rbp-2FCh] _BYTE v13[160]; // [rsp+60h] [rbp-2B0h] BYREF int v14; // [rsp+100h] [rbp-210h] BYREF __int16 v15; // [rsp+104h] [rbp-20Ch] BYREF char v16; // [rsp+106h] [rbp-20Ah] int v17; // [rsp+107h] [rbp-209h] int v18; // [rsp+10Bh] [rbp-205h] int v19; // [rsp+10Fh] [rbp-201h] __int16 v20; // [rsp+113h] [rbp-1FDh] char v21; // [rsp+115h] [rbp-1FBh] _BYTE v22[506]; // [rsp+116h] [rbp-1FAh] BYREF *(_QWORD *)&v22[498] = __readfsqword(0x28u); v8 = 0; if ( last_checkpoint_lsn == a1 ) { v8 = 0; if ( last_logno == a2 ) { v8 = 0; if ( max_trid_in_control_file == a3 ) v8 = a4 != 0; } } if ( control_file_fd >= 0 ) { v15 = WORD2(a1); v16 = BYTE6(a1); v17 = a1; v18 = a2; v19 = a3; v20 = WORD2(a3); v21 = a4; if ( (unsigned int)cf_changeable_size <= 0x16 ) { cf_changeable_size = 22; } else { v9 = cf_changeable_size - 22; memset(v22, 0LL, (unsigned int)(cf_changeable_size - 22)); my_snprintf( (unsigned int)v13, 150, (unsigned int)"Control file must be from a newer version; zero-ing out %u unknown bytes in control file at offset %u", v9, cf_create_time_size + cf_changeable_size, v4); my_printf_error(168, (unsigned int)"Aria engine: %s", 2048, (unsigned int)v13, v5, v6); } v14 = my_checksum(0LL, &v15, (unsigned int)(cf_changeable_size - 4)); if ( my_pwrite( (unsigned int)control_file_fd, &v14, (unsigned int)cf_changeable_size, (unsigned int)cf_create_time_size, 18LL) || !v8 && (unsigned int)inline_mysql_file_sync_1( "/workspace/llm4binary/github2025/eloqsql/storage/maria/ma_control_file.c", 556LL, (unsigned int)control_file_fd, 16LL) ) { return 1; } else { last_checkpoint_lsn = a1; last_logno = a2; max_trid_in_control_file = a3; recovery_failures = a4; cf_changeable_size = 22; return 0; } } else { return 1; } }
ma_control_file_write_and_force: PUSH RBP MOV RBP,RSP SUB RSP,0x310 MOV AL,CL MOV RCX,qword ptr FS:[0x28] MOV qword ptr [RBP + -0x8],RCX MOV qword ptr [RBP + -0x2c0],RDI MOV dword ptr [RBP + -0x2c4],ESI MOV qword ptr [RBP + -0x2d0],RDX MOV byte ptr [RBP + -0x2d1],AL MOV RCX,qword ptr [0x005ad4e8] XOR EAX,EAX CMP RCX,qword ptr [RBP + -0x2c0] MOV byte ptr [RBP + -0x309],AL JNZ 0x0014441d MOV ECX,dword ptr [0x005ad4f0] XOR EAX,EAX CMP ECX,dword ptr [RBP + -0x2c4] MOV byte ptr [RBP + -0x309],AL JNZ 0x0014441d MOV RCX,qword ptr [0x005ad4f8] XOR EAX,EAX CMP RCX,qword ptr [RBP + -0x2d0] MOV byte ptr [RBP + -0x309],AL JNZ 0x0014441d MOVZX EAX,byte ptr [RBP + -0x2d1] CMP EAX,0x0 SETG AL MOV byte ptr [RBP + -0x309],AL LAB_0014441d: MOV AL,byte ptr [RBP + -0x309] AND AL,0x1 MOVZX EAX,AL MOV byte ptr [RBP + -0x2d9],AL CMP dword ptr [0x003f2ae0],0x0 JGE 0x00144448 JMP 0x00144439 LAB_00144439: MOV dword ptr [RBP + -0x2b4],0x1 JMP 0x001446a8 LAB_00144448: JMP 0x0014444a LAB_0014444a: JMP 0x0014444c LAB_0014444c: MOV RAX,qword ptr [RBP + -0x2c0] SAR RAX,0x20 MOV byte ptr [RBP + -0x20c],AL MOV RAX,qword ptr [RBP + -0x2c0] SAR RAX,0x20 SHR EAX,0x8 MOV byte ptr [RBP + -0x20b],AL MOV RAX,qword ptr [RBP + -0x2c0] SAR RAX,0x20 SHR EAX,0x10 MOV byte ptr [RBP + -0x20a],AL JMP 0x00144487 LAB_00144487: LEA RAX,[RBP + -0x210] ADD RAX,0x4 ADD RAX,0x3 MOV qword ptr [RBP + -0x2e8],RAX MOV RAX,0xffffffff AND RAX,qword ptr [RBP + -0x2c0] MOV ECX,EAX MOV RAX,qword ptr [RBP + -0x2e8] MOV dword ptr [RAX],ECX JMP 0x001444bb LAB_001444bb: JMP 0x001444bd LAB_001444bd: LEA RAX,[RBP + -0x210] ADD RAX,0xb MOV qword ptr [RBP + -0x2f0],RAX MOV ECX,dword ptr [RBP + -0x2c4] MOV RAX,qword ptr [RBP + -0x2f0] MOV dword ptr [RAX],ECX JMP 0x001444e0 LAB_001444e0: LEA RAX,[RBP + -0x210] ADD RAX,0xf MOV qword ptr [RBP + -0x2f8],RAX MOV RAX,qword ptr [RBP + -0x2d0] MOV ECX,EAX MOV RAX,qword ptr [RBP + -0x2f8] MOV dword ptr [RAX],ECX MOV RAX,qword ptr [RBP + -0x2d0] SHR RAX,0x20 MOV CX,AX MOV RAX,qword ptr [RBP + -0x2f8] MOV word ptr [RAX + 0x4],CX MOV AL,byte ptr [RBP + -0x2d1] MOV byte ptr [RBP + -0x1fb],AL CMP dword ptr [0x005ad508],0x16 JBE 0x001445aa MOV EAX,dword ptr [0x005ad508] SUB EAX,0x16 MOV dword ptr [RBP + -0x2fc],EAX LEA RDI,[RBP + -0x210] ADD RDI,0x16 MOV EAX,dword ptr [RBP + -0x2fc] MOV EDX,EAX XOR ESI,ESI CALL 0x0012a2f0 LEA RDI,[RBP + -0x2b0] MOV ECX,dword ptr [RBP + -0x2fc] MOV R8D,dword ptr [0x005ad508] ADD R8D,dword ptr [0x005ad504] MOV ESI,0x96 LEA RDX,[0x27e1ae] MOV AL,0x0 CALL 0x00279b10 LEA RCX,[RBP + -0x2b0] MOV EDI,0xa8 LEA RSI,[0x27e214] MOV EDX,0x800 MOV AL,0x0 CALL 0x00217990 JMP 0x001445b4 LAB_001445aa: MOV dword ptr [0x005ad508],0x16 LAB_001445b4: JMP 0x001445b6 LAB_001445b6: JMP 0x001445b8 LAB_001445b8: LEA RSI,[RBP + -0x210] ADD RSI,0x4 MOV EAX,dword ptr [0x005ad508] SUB EAX,0x4 MOV EAX,EAX MOV EDX,EAX XOR EDI,EDI CALL 0x0022ef40 MOV dword ptr [RBP + -0x2d8],EAX LEA RAX,[RBP + -0x210] MOV qword ptr [RBP + -0x308],RAX MOV ECX,dword ptr [RBP + -0x2d8] MOV RAX,qword ptr [RBP + -0x308] MOV dword ptr [RAX],ECX MOV EDI,dword ptr [0x003f2ae0] LEA RSI,[RBP + -0x210] MOV EAX,dword ptr [0x005ad508] MOV EDX,EAX MOV EAX,dword ptr [0x005ad504] MOV ECX,EAX MOV R8D,0x12 CALL 0x002206c0 CMP RAX,0x0 JNZ 0x00144652 CMP byte ptr [RBP + -0x2d9],0x0 JNZ 0x00144660 MOV EDX,dword ptr [0x003f2ae0] LEA RDI,[0x27df55] MOV ESI,0x22c MOV ECX,0x10 CALL 0x001446e0 CMP EAX,0x0 JZ 0x00144660 LAB_00144652: JMP 0x00144654 LAB_00144654: MOV dword ptr [RBP + -0x2b4],0x1 JMP 0x001446a8 LAB_00144660: MOV RAX,qword ptr [RBP + -0x2c0] MOV qword ptr [0x005ad4e8],RAX MOV EAX,dword ptr [RBP + -0x2c4] MOV dword ptr [0x005ad4f0],EAX MOV RAX,qword ptr [RBP + -0x2d0] MOV qword ptr [0x005ad4f8],RAX MOV AL,byte ptr [RBP + -0x2d1] MOV byte ptr [0x005ad500],AL MOV dword ptr [0x005ad508],0x16 MOV dword ptr [RBP + -0x2b4],0x0 LAB_001446a8: MOV EAX,dword ptr [RBP + -0x2b4] MOV dword ptr [RBP + -0x310],EAX MOV RAX,qword ptr FS:[0x28] MOV RCX,qword ptr [RBP + -0x8] CMP RAX,RCX JNZ 0x001446d5 MOV EAX,dword ptr [RBP + -0x310] ADD RSP,0x310 POP RBP RET LAB_001446d5: CALL 0x0012a290
int4 ma_control_file_write_and_force(long param_1,int param_2,long param_3,char param_4) { bool bVar1; uint uVar2; int iVar3; long lVar4; long in_FS_OFFSET; int4 local_2bc; int1 local_2b8 [160]; int4 local_218; int1 local_214; int1 local_213; int1 local_212; int4 local_211; int local_20d; int4 local_209; int2 local_205; char local_203; int1 auStack_202 [498]; long local_10; local_10 = *(long *)(in_FS_OFFSET + 0x28); bVar1 = false; if (((last_checkpoint_lsn == param_1) && (bVar1 = false, last_logno == param_2)) && (bVar1 = false, max_trid_in_control_file == param_3)) { bVar1 = param_4 != '\0'; } if (control_file_fd < 0) { local_2bc = 1; goto LAB_001446a8; } local_214 = (int1)((ulong)param_1 >> 0x20); local_213 = (int1)((ulong)param_1 >> 0x28); local_212 = (int1)((ulong)param_1 >> 0x30); local_211 = (int4)param_1; local_209 = (int4)param_3; local_205 = (int2)((ulong)param_3 >> 0x20); local_203 = param_4; local_20d = param_2; if (cf_changeable_size < 0x17) { cf_changeable_size = 0x16; } else { uVar2 = cf_changeable_size - 0x16; memset(auStack_202,0,(ulong)uVar2); my_snprintf(local_2b8,0x96, "Control file must be from a newer version; zero-ing out %u unknown bytes in control file at offset %u" ,uVar2,cf_changeable_size + cf_create_time_size); my_printf_error(0xa8,"Aria engine: %s",0x800,local_2b8); } local_218 = my_checksum(0,&local_214,cf_changeable_size - 4); lVar4 = my_pwrite(control_file_fd,&local_218,cf_changeable_size,cf_create_time_size,0x12); if (lVar4 == 0) { if (!bVar1) { iVar3 = inline_mysql_file_sync ("/workspace/llm4binary/github2025/eloqsql/storage/maria/ma_control_file.c", 0x22c,control_file_fd,0x10); if (iVar3 != 0) goto LAB_00144652; } cf_changeable_size = 0x16; local_2bc = 0; last_checkpoint_lsn = param_1; last_logno = param_2; max_trid_in_control_file = param_3; recovery_failures = param_4; } else { LAB_00144652: local_2bc = 1; } LAB_001446a8: if (*(long *)(in_FS_OFFSET + 0x28) == local_10) { return local_2bc; } /* WARNING: Subroutine does not return */ __stack_chk_fail(); }
34,708
QuaternionFromVector3ToVector3
csit-sgu[P]mit-game-2025_1/Libraries/raylib/src/raymath.h
RMAPI Quaternion QuaternionFromVector3ToVector3(Vector3 from, Vector3 to) { Quaternion result = { 0 }; float cos2Theta = (from.x*to.x + from.y*to.y + from.z*to.z); // Vector3DotProduct(from, to) Vector3 cross = { from.y*to.z - from.z*to.y, from.z*to.x - from.x*to.z, from.x*to.y - from.y*to.x }; // Vector3CrossProduct(from, to) result.x = cross.x; result.y = cross.y; result.z = cross.z; result.w = 1.0f + cos2Theta; // QuaternionNormalize(q); // NOTE: Normalize to essentially nlerp the original and identity to 0.5 Quaternion q = result; float length = sqrtf(q.x*q.x + q.y*q.y + q.z*q.z + q.w*q.w); if (length == 0.0f) length = 1.0f; float ilength = 1.0f/length; result.x = q.x*ilength; result.y = q.y*ilength; result.z = q.z*ilength; result.w = q.w*ilength; return result; }
O2
c
QuaternionFromVector3ToVector3: movaps %xmm0, %xmm4 shufps $0x55, %xmm0, %xmm4 # xmm4 = xmm4[1,1],xmm0[1,1] movaps %xmm0, %xmm5 mulss %xmm2, %xmm5 movaps %xmm2, %xmm6 shufps $0x0, %xmm2, %xmm6 # xmm6 = xmm6[0,0],xmm2[0,0] movss %xmm3, %xmm6 # xmm6 = xmm3[0],xmm6[1,2,3] mulps %xmm0, %xmm6 shufps $0x0, %xmm0, %xmm0 # xmm0 = xmm0[0,0,0,0] movss %xmm1, %xmm0 # xmm0 = xmm1[0],xmm0[1,2,3] mulps %xmm2, %xmm0 shufps $0x55, %xmm2, %xmm2 # xmm2 = xmm2[1,1,1,1] movaps %xmm4, %xmm7 mulss %xmm2, %xmm7 addss %xmm7, %xmm5 mulss %xmm1, %xmm2 mulss %xmm3, %xmm1 addss %xmm5, %xmm1 mulss %xmm3, %xmm4 subss %xmm2, %xmm4 subps %xmm6, %xmm0 movss 0x5fd4c(%rip), %xmm2 # 0xb969c addss %xmm2, %xmm1 movaps %xmm4, %xmm3 movaps %xmm0, %xmm5 movaps %xmm1, %xmm6 unpcklps %xmm0, %xmm4 # xmm4 = xmm4[0],xmm0[0],xmm4[1],xmm0[1] shufps $0xd4, %xmm0, %xmm1 # xmm1 = xmm1[0,1],xmm0[1,3] mulss %xmm0, %xmm0 mulss %xmm3, %xmm3 addss %xmm0, %xmm3 shufps $0x55, %xmm5, %xmm5 # xmm5 = xmm5[1,1,1,1] mulss %xmm5, %xmm5 addss %xmm3, %xmm5 mulss %xmm6, %xmm6 addss %xmm5, %xmm6 sqrtss %xmm6, %xmm3 xorps %xmm0, %xmm0 cmpeqss %xmm3, %xmm0 movaps %xmm0, %xmm5 andps %xmm2, %xmm0 divss %xmm3, %xmm2 andnps %xmm2, %xmm5 orps %xmm5, %xmm0 shufps $0x24, %xmm1, %xmm4 # xmm4 = xmm4[0,1],xmm1[2,0] shufps $0x0, %xmm0, %xmm0 # xmm0 = xmm0[0,0,0,0] mulps %xmm4, %xmm0 movaps %xmm0, %xmm1 unpckhpd %xmm0, %xmm1 # xmm1 = xmm1[1],xmm0[1] retq
QuaternionFromVector3ToVector3: movaps xmm4, xmm0 shufps xmm4, xmm0, 55h ; 'U' movaps xmm5, xmm0 mulss xmm5, xmm2 movaps xmm6, xmm2 shufps xmm6, xmm2, 0 movss xmm6, xmm3 mulps xmm6, xmm0 shufps xmm0, xmm0, 0 movss xmm0, xmm1 mulps xmm0, xmm2 shufps xmm2, xmm2, 55h ; 'U' movaps xmm7, xmm4 mulss xmm7, xmm2 addss xmm5, xmm7 mulss xmm2, xmm1 mulss xmm1, xmm3 addss xmm1, xmm5 mulss xmm4, xmm3 subss xmm4, xmm2 subps xmm0, xmm6 movss xmm2, cs:dword_B969C addss xmm1, xmm2 movaps xmm3, xmm4 movaps xmm5, xmm0 movaps xmm6, xmm1 unpcklps xmm4, xmm0 shufps xmm1, xmm0, 0D4h mulss xmm0, xmm0 mulss xmm3, xmm3 addss xmm3, xmm0 shufps xmm5, xmm5, 55h ; 'U' mulss xmm5, xmm5 addss xmm5, xmm3 mulss xmm6, xmm6 addss xmm6, xmm5 sqrtss xmm3, xmm6 xorps xmm0, xmm0 cmpeqss xmm0, xmm3 movaps xmm5, xmm0 andps xmm0, xmm2 divss xmm2, xmm3 andnps xmm5, xmm2 orps xmm0, xmm5 shufps xmm4, xmm1, 24h ; '$' shufps xmm0, xmm0, 0 mulps xmm0, xmm4 movaps xmm1, xmm0 unpckhpd xmm1, xmm0 retn
__m128 QuaternionFromVector3ToVector3(__m128 a1, __m128 a2, __m128 a3, float a4) { __m128 v4; // xmm4 float v5; // xmm5_4 __m128 v6; // xmm6 __m128 v7; // xmm6 __m128 v8; // xmm0 __m128 v9; // xmm0 float v10; // xmm2_4 float v11; // xmm5_4 __m128 v12; // xmm0 __m128 v13; // xmm2 float v14; // xmm3_4 __m128 v15; // xmm4 __m128 v16; // xmm1 float v17; // xmm5_4 __m128 v18; // xmm3 __m128 v19; // xmm5 __m128 v20; // xmm0 v4 = _mm_shuffle_ps(a1, a1, 85); v5 = a1.m128_f32[0] * a3.m128_f32[0]; v6 = _mm_shuffle_ps(a3, a3, 0); v6.m128_f32[0] = a4; v7 = _mm_mul_ps(v6, a1); v8 = _mm_shuffle_ps(a1, a1, 0); v8.m128_f32[0] = a2.m128_f32[0]; v9 = _mm_mul_ps(v8, a3); v10 = _mm_shuffle_ps(a3, a3, 85).m128_f32[0]; v11 = v5 + (float)(v4.m128_f32[0] * v10); v4.m128_f32[0] = (float)(v4.m128_f32[0] * a4) - (float)(v10 * a2.m128_f32[0]); v12 = _mm_sub_ps(v9, v7); v13 = (__m128)0x3F800000u; a2.m128_f32[0] = (float)((float)(a2.m128_f32[0] * a4) + v11) + 1.0; v14 = v4.m128_f32[0]; v7.m128_i32[0] = a2.m128_i32[0]; v15 = _mm_unpacklo_ps(v4, v12); v16 = _mm_shuffle_ps(a2, v12, 212); v17 = _mm_shuffle_ps(v12, v12, 85).m128_f32[0]; v18.m128_f32[0] = fsqrt( (float)(v7.m128_f32[0] * v7.m128_f32[0]) + (float)((float)(v17 * v17) + (float)((float)(v14 * v14) + (float)(v12.m128_f32[0] * v12.m128_f32[0])))); v19 = _mm_cmpeq_ss((__m128)0LL, v18); v13.m128_f32[0] = 1.0 / v18.m128_f32[0]; v20 = _mm_or_ps(_mm_and_ps(v19, (__m128)0x3F800000u), _mm_andnot_ps(v19, v13)); return _mm_mul_ps(_mm_shuffle_ps(v20, v20, 0), _mm_shuffle_ps(v15, v16, 36)); }
QuaternionFromVector3ToVector3: MOVAPS XMM4,XMM0 SHUFPS XMM4,XMM0,0x55 MOVAPS XMM5,XMM0 MULSS XMM5,XMM2 MOVAPS XMM6,XMM2 SHUFPS XMM6,XMM2,0x0 MOVSS XMM6,XMM3 MULPS XMM6,XMM0 SHUFPS XMM0,XMM0,0x0 MOVSS XMM0,XMM1 MULPS XMM0,XMM2 SHUFPS XMM2,XMM2,0x55 MOVAPS XMM7,XMM4 MULSS XMM7,XMM2 ADDSS XMM5,XMM7 MULSS XMM2,XMM1 MULSS XMM1,XMM3 ADDSS XMM1,XMM5 MULSS XMM4,XMM3 SUBSS XMM4,XMM2 SUBPS XMM0,XMM6 MOVSS XMM2,dword ptr [0x001b969c] ADDSS XMM1,XMM2 MOVAPS XMM3,XMM4 MOVAPS XMM5,XMM0 MOVAPS XMM6,XMM1 UNPCKLPS XMM4,XMM0 SHUFPS XMM1,XMM0,0xd4 MULSS XMM0,XMM0 MULSS XMM3,XMM3 ADDSS XMM3,XMM0 SHUFPS XMM5,XMM5,0x55 MULSS XMM5,XMM5 ADDSS XMM5,XMM3 MULSS XMM6,XMM6 ADDSS XMM6,XMM5 SQRTSS XMM3,XMM6 XORPS XMM0,XMM0 CMPEQSS XMM0,XMM3 MOVAPS XMM5,XMM0 ANDPS XMM0,XMM2 DIVSS XMM2,XMM3 ANDNPS XMM5,XMM2 ORPS XMM0,XMM5 SHUFPS XMM4,XMM1,0x24 SHUFPS XMM0,XMM0,0x0 MULPS XMM0,XMM4 MOVAPS XMM1,XMM0 UNPCKHPD XMM1,XMM0 RET
void QuaternionFromVector3ToVector3(void) { return; }
34,709
QuaternionFromVector3ToVector3
csit-sgu[P]mit-game-2025_1/Libraries/raylib/src/raymath.h
RMAPI Quaternion QuaternionFromVector3ToVector3(Vector3 from, Vector3 to) { Quaternion result = { 0 }; float cos2Theta = (from.x*to.x + from.y*to.y + from.z*to.z); // Vector3DotProduct(from, to) Vector3 cross = { from.y*to.z - from.z*to.y, from.z*to.x - from.x*to.z, from.x*to.y - from.y*to.x }; // Vector3CrossProduct(from, to) result.x = cross.x; result.y = cross.y; result.z = cross.z; result.w = 1.0f + cos2Theta; // QuaternionNormalize(q); // NOTE: Normalize to essentially nlerp the original and identity to 0.5 Quaternion q = result; float length = sqrtf(q.x*q.x + q.y*q.y + q.z*q.z + q.w*q.w); if (length == 0.0f) length = 1.0f; float ilength = 1.0f/length; result.x = q.x*ilength; result.y = q.y*ilength; result.z = q.z*ilength; result.w = q.w*ilength; return result; }
O3
c
QuaternionFromVector3ToVector3: movaps %xmm0, %xmm4 shufps $0x55, %xmm0, %xmm4 # xmm4 = xmm4[1,1],xmm0[1,1] movaps %xmm0, %xmm5 mulss %xmm2, %xmm5 movaps %xmm2, %xmm6 shufps $0x0, %xmm2, %xmm6 # xmm6 = xmm6[0,0],xmm2[0,0] movss %xmm3, %xmm6 # xmm6 = xmm3[0],xmm6[1,2,3] mulps %xmm0, %xmm6 shufps $0x0, %xmm0, %xmm0 # xmm0 = xmm0[0,0,0,0] movss %xmm1, %xmm0 # xmm0 = xmm1[0],xmm0[1,2,3] mulps %xmm2, %xmm0 shufps $0x55, %xmm2, %xmm2 # xmm2 = xmm2[1,1,1,1] movaps %xmm4, %xmm7 mulss %xmm2, %xmm7 addss %xmm7, %xmm5 mulss %xmm1, %xmm2 mulss %xmm3, %xmm1 addss %xmm5, %xmm1 mulss %xmm3, %xmm4 subss %xmm2, %xmm4 subps %xmm6, %xmm0 movss 0x6a1af(%rip), %xmm2 # 0xd3b1c addss %xmm2, %xmm1 movaps %xmm4, %xmm3 movaps %xmm0, %xmm5 movaps %xmm1, %xmm6 unpcklps %xmm0, %xmm4 # xmm4 = xmm4[0],xmm0[0],xmm4[1],xmm0[1] shufps $0xd4, %xmm0, %xmm1 # xmm1 = xmm1[0,1],xmm0[1,3] mulss %xmm0, %xmm0 mulss %xmm3, %xmm3 addss %xmm0, %xmm3 shufps $0x55, %xmm5, %xmm5 # xmm5 = xmm5[1,1,1,1] mulss %xmm5, %xmm5 addss %xmm3, %xmm5 mulss %xmm6, %xmm6 addss %xmm5, %xmm6 xorps %xmm3, %xmm3 sqrtss %xmm6, %xmm3 xorps %xmm0, %xmm0 cmpeqss %xmm3, %xmm0 movaps %xmm0, %xmm5 andps %xmm2, %xmm0 divss %xmm3, %xmm2 andnps %xmm2, %xmm5 orps %xmm5, %xmm0 shufps $0x24, %xmm1, %xmm4 # xmm4 = xmm4[0,1],xmm1[2,0] shufps $0x0, %xmm0, %xmm0 # xmm0 = xmm0[0,0,0,0] mulps %xmm4, %xmm0 movaps %xmm0, %xmm1 unpckhpd %xmm0, %xmm1 # xmm1 = xmm1[1],xmm0[1] retq
QuaternionFromVector3ToVector3: movaps xmm4, xmm0 shufps xmm4, xmm0, 55h ; 'U' movaps xmm5, xmm0 mulss xmm5, xmm2 movaps xmm6, xmm2 shufps xmm6, xmm2, 0 movss xmm6, xmm3 mulps xmm6, xmm0 shufps xmm0, xmm0, 0 movss xmm0, xmm1 mulps xmm0, xmm2 shufps xmm2, xmm2, 55h ; 'U' movaps xmm7, xmm4 mulss xmm7, xmm2 addss xmm5, xmm7 mulss xmm2, xmm1 mulss xmm1, xmm3 addss xmm1, xmm5 mulss xmm4, xmm3 subss xmm4, xmm2 subps xmm0, xmm6 movss xmm2, cs:dword_D3B1C addss xmm1, xmm2 movaps xmm3, xmm4 movaps xmm5, xmm0 movaps xmm6, xmm1 unpcklps xmm4, xmm0 shufps xmm1, xmm0, 0D4h mulss xmm0, xmm0 mulss xmm3, xmm3 addss xmm3, xmm0 shufps xmm5, xmm5, 55h ; 'U' mulss xmm5, xmm5 addss xmm5, xmm3 mulss xmm6, xmm6 addss xmm6, xmm5 xorps xmm3, xmm3 sqrtss xmm3, xmm6 xorps xmm0, xmm0 cmpeqss xmm0, xmm3 movaps xmm5, xmm0 andps xmm0, xmm2 divss xmm2, xmm3 andnps xmm5, xmm2 orps xmm0, xmm5 shufps xmm4, xmm1, 24h ; '$' shufps xmm0, xmm0, 0 mulps xmm0, xmm4 movaps xmm1, xmm0 unpckhpd xmm1, xmm0 retn
__m128 QuaternionFromVector3ToVector3(__m128 a1, __m128 a2, __m128 a3, float a4) { __m128 v4; // xmm4 float v5; // xmm5_4 __m128 v6; // xmm6 __m128 v7; // xmm6 __m128 v8; // xmm0 __m128 v9; // xmm0 float v10; // xmm2_4 float v11; // xmm5_4 __m128 v12; // xmm0 __m128 v13; // xmm2 float v14; // xmm3_4 __m128 v15; // xmm4 __m128 v16; // xmm1 float v17; // xmm5_4 __m128 v18; // xmm3 __m128 v19; // xmm5 __m128 v20; // xmm0 v4 = _mm_shuffle_ps(a1, a1, 85); v5 = a1.m128_f32[0] * a3.m128_f32[0]; v6 = _mm_shuffle_ps(a3, a3, 0); v6.m128_f32[0] = a4; v7 = _mm_mul_ps(v6, a1); v8 = _mm_shuffle_ps(a1, a1, 0); v8.m128_f32[0] = a2.m128_f32[0]; v9 = _mm_mul_ps(v8, a3); v10 = _mm_shuffle_ps(a3, a3, 85).m128_f32[0]; v11 = v5 + (float)(v4.m128_f32[0] * v10); v4.m128_f32[0] = (float)(v4.m128_f32[0] * a4) - (float)(v10 * a2.m128_f32[0]); v12 = _mm_sub_ps(v9, v7); v13 = (__m128)0x3F800000u; a2.m128_f32[0] = (float)((float)(a2.m128_f32[0] * a4) + v11) + 1.0; v14 = v4.m128_f32[0]; v7.m128_i32[0] = a2.m128_i32[0]; v15 = _mm_unpacklo_ps(v4, v12); v16 = _mm_shuffle_ps(a2, v12, 212); v17 = _mm_shuffle_ps(v12, v12, 85).m128_f32[0]; v18.m128_f32[0] = fsqrt( (float)(v7.m128_f32[0] * v7.m128_f32[0]) + (float)((float)(v17 * v17) + (float)((float)(v14 * v14) + (float)(v12.m128_f32[0] * v12.m128_f32[0])))); v19 = _mm_cmpeq_ss((__m128)0LL, v18); v13.m128_f32[0] = 1.0 / v18.m128_f32[0]; v20 = _mm_or_ps(_mm_and_ps(v19, (__m128)0x3F800000u), _mm_andnot_ps(v19, v13)); return _mm_mul_ps(_mm_shuffle_ps(v20, v20, 0), _mm_shuffle_ps(v15, v16, 36)); }
QuaternionFromVector3ToVector3: MOVAPS XMM4,XMM0 SHUFPS XMM4,XMM0,0x55 MOVAPS XMM5,XMM0 MULSS XMM5,XMM2 MOVAPS XMM6,XMM2 SHUFPS XMM6,XMM2,0x0 MOVSS XMM6,XMM3 MULPS XMM6,XMM0 SHUFPS XMM0,XMM0,0x0 MOVSS XMM0,XMM1 MULPS XMM0,XMM2 SHUFPS XMM2,XMM2,0x55 MOVAPS XMM7,XMM4 MULSS XMM7,XMM2 ADDSS XMM5,XMM7 MULSS XMM2,XMM1 MULSS XMM1,XMM3 ADDSS XMM1,XMM5 MULSS XMM4,XMM3 SUBSS XMM4,XMM2 SUBPS XMM0,XMM6 MOVSS XMM2,dword ptr [0x001d3b1c] ADDSS XMM1,XMM2 MOVAPS XMM3,XMM4 MOVAPS XMM5,XMM0 MOVAPS XMM6,XMM1 UNPCKLPS XMM4,XMM0 SHUFPS XMM1,XMM0,0xd4 MULSS XMM0,XMM0 MULSS XMM3,XMM3 ADDSS XMM3,XMM0 SHUFPS XMM5,XMM5,0x55 MULSS XMM5,XMM5 ADDSS XMM5,XMM3 MULSS XMM6,XMM6 ADDSS XMM6,XMM5 XORPS XMM3,XMM3 SQRTSS XMM3,XMM6 XORPS XMM0,XMM0 CMPEQSS XMM0,XMM3 MOVAPS XMM5,XMM0 ANDPS XMM0,XMM2 DIVSS XMM2,XMM3 ANDNPS XMM5,XMM2 ORPS XMM0,XMM5 SHUFPS XMM4,XMM1,0x24 SHUFPS XMM0,XMM0,0x0 MULPS XMM0,XMM4 MOVAPS XMM1,XMM0 UNPCKHPD XMM1,XMM0 RET
void QuaternionFromVector3ToVector3(void) { return; }
34,710
ma_bin_search
eloqsql/storage/maria/ma_search.c
int _ma_bin_search(const MARIA_KEY *key, const MARIA_PAGE *ma_page, uint32 comp_flag, uchar **ret_pos, uchar *buff __attribute__((unused)), my_bool *last_key) { int UNINIT_VAR(flag); uint page_flag; uint start, mid, end, save_end, totlength, nod_flag; uint not_used[2]; MARIA_KEYDEF *keyinfo= key->keyinfo; MARIA_SHARE *share= keyinfo->share; uchar *page; DBUG_ENTER("_ma_bin_search"); page_flag= ma_page->flag; if (page_flag & KEYPAGE_FLAG_HAS_TRANSID) { /* Keys have varying length, can't use binary search */ DBUG_RETURN(_ma_seq_search(key, ma_page, comp_flag, ret_pos, buff, last_key)); } nod_flag= ma_page->node; totlength= keyinfo->keylength + nod_flag; DBUG_ASSERT(ma_page->size >= share->keypage_header + nod_flag + totlength); start=0; mid=1; save_end= end= ((ma_page->size - nod_flag - share->keypage_header) / totlength-1); DBUG_PRINT("test",("page_length: %u end: %u", ma_page->size, end)); page= ma_page->buff + share->keypage_header + nod_flag; while (start != end) { mid= (start+end)/2; if ((flag=ha_key_cmp(keyinfo->seg, page + (uint) mid * totlength, key->data, key->data_length + key->ref_length, comp_flag, not_used)) >= 0) end=mid; else start=mid+1; } if (mid != start) flag=ha_key_cmp(keyinfo->seg, page + (uint) start * totlength, key->data, key->data_length + key->ref_length, comp_flag, not_used); if (flag < 0) start++; /* point at next, bigger key */ *ret_pos= (page + (uint) start * totlength); *last_key= end == save_end; DBUG_PRINT("exit",("flag: %d keypos: %d",flag,start)); DBUG_RETURN(flag); }
O3
c
ma_bin_search: pushq %rbp movq %rsp, %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x38, %rsp movq %r9, %rbx movq %rcx, %r14 movl %edx, %r10d movq %rdi, %r9 testb $0x2, 0x2c(%rsi) jne 0x56492 movq 0x8(%r9), %rdx movq (%rdx), %rcx movl 0x20(%rsi), %eax movl 0x28(%rsi), %edi movq %rdx, -0x40(%rbp) movzwl 0xaa(%rdx), %r13d addl %edi, %r13d movl 0x744(%rcx), %r12d subl %r12d, %eax subl %edi, %eax xorl %edx, %edx divl %r13d addq 0x10(%rsi), %r12 xorl %r15d, %r15d addq %rdi, %r12 decl %eax movl %eax, -0x2c(%rbp) je 0x5643e movq %r12, -0x38(%rbp) movq %r14, -0x48(%rbp) movq %rbx, -0x50(%rbp) xorl %ecx, %ecx movl -0x2c(%rbp), %eax movl %eax, %r14d movl %r13d, -0x30(%rbp) leal (%rcx,%r14), %ebx shrl %ebx movq -0x40(%rbp), %rax movq 0xc0(%rax), %rdi movl %ebx, %esi imull %r13d, %esi addq -0x38(%rbp), %rsi movq (%r9), %rdx movq %rcx, %r15 movl 0x14(%r9), %ecx movq %r9, %r12 addl 0x10(%r9), %ecx movl %r10d, %r13d movl %r10d, %r8d leaq -0x58(%rbp), %r9 callq 0x9e706 movq %r15, %rcx movl %ebx, %r15d testl %eax, %eax jns 0x5641b leal 0x1(%rbx), %ecx movl %r14d, %r15d movl %r15d, %r14d cmpl %r15d, %ecx movl %r13d, %r10d movl -0x30(%rbp), %r13d movq %r12, %r9 jne 0x563d0 cmpl %r15d, %ebx movq -0x50(%rbp), %rbx movq -0x48(%rbp), %r14 movq -0x38(%rbp), %r12 je 0x5646a movq -0x40(%rbp), %rax movq 0xc0(%rax), %rdi movl %r15d, %esi imull %r13d, %esi addq %r12, %rsi movq (%r9), %rdx movl 0x14(%r9), %ecx addl 0x10(%r9), %ecx leaq -0x58(%rbp), %r9 movl %r10d, %r8d callq 0x9e706 movl %eax, %ecx shrl $0x1f, %ecx addl %r15d, %ecx imull %r13d, %ecx addq %rcx, %r12 movq %r12, (%r14) cmpl -0x2c(%rbp), %r15d sete (%rbx) addq $0x38, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq movq %r9, %rdi movl %r10d, %edx movq %r14, %rcx movq %rbx, %r9 addq $0x38, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp jmp 0x564b1
_ma_bin_search: push rbp mov rbp, rsp push r15 push r14 push r13 push r12 push rbx sub rsp, 38h mov rbx, r9 mov r14, rcx mov r10d, edx mov r9, rdi test byte ptr [rsi+2Ch], 2 jnz loc_56492 mov rdx, [r9+8] mov rcx, [rdx] mov eax, [rsi+20h] mov edi, [rsi+28h] mov [rbp+var_40], rdx movzx r13d, word ptr [rdx+0AAh] add r13d, edi mov r12d, [rcx+744h] sub eax, r12d sub eax, edi xor edx, edx div r13d add r12, [rsi+10h] xor r15d, r15d add r12, rdi dec eax mov [rbp+var_2C], eax jz loc_5643E mov [rbp+var_38], r12 mov [rbp+var_48], r14 mov [rbp+var_50], rbx xor ecx, ecx mov eax, [rbp+var_2C] mov r14d, eax mov [rbp+var_30], r13d loc_563D0: lea ebx, [rcx+r14] shr ebx, 1 mov rax, [rbp+var_40] mov rdi, [rax+0C0h] mov esi, ebx imul esi, r13d add rsi, [rbp+var_38] mov rdx, [r9] mov r15, rcx mov ecx, [r9+14h] mov r12, r9 add ecx, [r9+10h] mov r13d, r10d mov r8d, r10d lea r9, [rbp+var_58] call ha_key_cmp mov rcx, r15 mov r15d, ebx test eax, eax jns short loc_5641B lea ecx, [rbx+1] mov r15d, r14d loc_5641B: mov r14d, r15d cmp ecx, r15d mov r10d, r13d mov r13d, [rbp+var_30] mov r9, r12 jnz short loc_563D0 cmp ebx, r15d mov rbx, [rbp+var_50] mov r14, [rbp+var_48] mov r12, [rbp+var_38] jz short loc_5646A loc_5643E: mov rax, [rbp+var_40] mov rdi, [rax+0C0h] mov esi, r15d imul esi, r13d add rsi, r12 mov rdx, [r9] mov ecx, [r9+14h] add ecx, [r9+10h] lea r9, [rbp+var_58] mov r8d, r10d call ha_key_cmp loc_5646A: mov ecx, eax shr ecx, 1Fh add ecx, r15d imul ecx, r13d add r12, rcx mov [r14], r12 cmp r15d, [rbp+var_2C] setz byte ptr [rbx] add rsp, 38h pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn loc_56492: mov rdi, r9 mov edx, r10d mov rcx, r14 mov r9, rbx add rsp, 38h pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp jmp $+5
long long ma_bin_search(_QWORD *a1, long long a2, unsigned int a3, _QWORD *a4, long long a5, bool *a6) { _QWORD *v7; // r14 unsigned int v8; // r10d _QWORD *v9; // r9 long long *v10; // rdx long long v11; // rcx int v12; // eax long long v13; // rdi unsigned int v14; // r13d long long v15; // r12 unsigned int v16; // eax unsigned int v17; // r15d long long v18; // r12 long long v19; // rcx unsigned int v20; // r14d unsigned int v21; // ebx long long v22; // rsi long long v23; // r15 _QWORD *v24; // r12 unsigned int v25; // r13d long long result; // rax bool v27; // zf char v28[8]; // [rsp+8h] [rbp-58h] BYREF bool *v29; // [rsp+10h] [rbp-50h] _QWORD *v30; // [rsp+18h] [rbp-48h] long long v31; // [rsp+20h] [rbp-40h] long long v32; // [rsp+28h] [rbp-38h] unsigned int v33; // [rsp+30h] [rbp-30h] unsigned int v34; // [rsp+34h] [rbp-2Ch] v7 = a4; v8 = a3; v9 = a1; if ( (*(_BYTE *)(a2 + 44) & 2) != 0 ) return ma_seq_search(a1, a2, a3, a4, a5, a6); v10 = (long long *)a1[1]; v11 = *v10; v12 = *(_DWORD *)(a2 + 32); v13 = *(unsigned int *)(a2 + 40); v31 = v9[1]; v14 = v13 + *((unsigned __int16 *)v10 + 85); v15 = *(unsigned int *)(v11 + 1860); v16 = (v12 - (int)v15 - (int)v13) / v14; v17 = 0; v18 = v13 + *(_QWORD *)(a2 + 16) + v15; v34 = v16 - 1; if ( v16 == 1 ) goto LABEL_8; v32 = v18; v30 = v7; v29 = a6; v19 = 0LL; v20 = v34; v33 = v14; do { v21 = ((unsigned int)v19 + v20) >> 1; v22 = v32 + v14 * v21; v23 = v19; v24 = v9; v25 = v8; result = ha_key_cmp( *(_QWORD *)(v31 + 192), v22, *v9, (unsigned int)(*((_DWORD *)v9 + 4) + *((_DWORD *)v9 + 5)), v8, v28); v19 = v23; v17 = v21; if ( (int)result < 0 ) { v19 = v21 + 1; v17 = v20; } v20 = v17; v8 = v25; v14 = v33; v9 = v24; } while ( (_DWORD)v19 != v17 ); v27 = v21 == v17; a6 = v29; v7 = v30; v18 = v32; if ( !v27 ) LABEL_8: result = ha_key_cmp( *(_QWORD *)(v31 + 192), v18 + v14 * v17, *v9, (unsigned int)(*((_DWORD *)v9 + 4) + *((_DWORD *)v9 + 5)), v8, v28); *v7 = v14 * (v17 + ((unsigned int)result >> 31)) + v18; *a6 = v17 == v34; return result; }
_ma_bin_search: PUSH RBP MOV RBP,RSP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0x38 MOV RBX,R9 MOV R14,RCX MOV R10D,EDX MOV R9,RDI TEST byte ptr [RSI + 0x2c],0x2 JNZ 0x00156492 MOV RDX,qword ptr [R9 + 0x8] MOV RCX,qword ptr [RDX] MOV EAX,dword ptr [RSI + 0x20] MOV EDI,dword ptr [RSI + 0x28] MOV qword ptr [RBP + -0x40],RDX MOVZX R13D,word ptr [RDX + 0xaa] ADD R13D,EDI MOV R12D,dword ptr [RCX + 0x744] SUB EAX,R12D SUB EAX,EDI XOR EDX,EDX DIV R13D ADD R12,qword ptr [RSI + 0x10] XOR R15D,R15D ADD R12,RDI DEC EAX MOV dword ptr [RBP + -0x2c],EAX JZ 0x0015643e MOV qword ptr [RBP + -0x38],R12 MOV qword ptr [RBP + -0x48],R14 MOV qword ptr [RBP + -0x50],RBX XOR ECX,ECX MOV EAX,dword ptr [RBP + -0x2c] MOV R14D,EAX MOV dword ptr [RBP + -0x30],R13D LAB_001563d0: LEA EBX,[RCX + R14*0x1] SHR EBX,0x1 MOV RAX,qword ptr [RBP + -0x40] MOV RDI,qword ptr [RAX + 0xc0] MOV ESI,EBX IMUL ESI,R13D ADD RSI,qword ptr [RBP + -0x38] MOV RDX,qword ptr [R9] MOV R15,RCX MOV ECX,dword ptr [R9 + 0x14] MOV R12,R9 ADD ECX,dword ptr [R9 + 0x10] MOV R13D,R10D MOV R8D,R10D LEA R9,[RBP + -0x58] CALL 0x0019e706 MOV RCX,R15 MOV R15D,EBX TEST EAX,EAX JNS 0x0015641b LEA ECX,[RBX + 0x1] MOV R15D,R14D LAB_0015641b: MOV R14D,R15D CMP ECX,R15D MOV R10D,R13D MOV R13D,dword ptr [RBP + -0x30] MOV R9,R12 JNZ 0x001563d0 CMP EBX,R15D MOV RBX,qword ptr [RBP + -0x50] MOV R14,qword ptr [RBP + -0x48] MOV R12,qword ptr [RBP + -0x38] JZ 0x0015646a LAB_0015643e: MOV RAX,qword ptr [RBP + -0x40] MOV RDI,qword ptr [RAX + 0xc0] MOV ESI,R15D IMUL ESI,R13D ADD RSI,R12 MOV RDX,qword ptr [R9] MOV ECX,dword ptr [R9 + 0x14] ADD ECX,dword ptr [R9 + 0x10] LEA R9,[RBP + -0x58] MOV R8D,R10D CALL 0x0019e706 LAB_0015646a: MOV ECX,EAX SHR ECX,0x1f ADD ECX,R15D IMUL ECX,R13D ADD R12,RCX MOV qword ptr [R14],R12 CMP R15D,dword ptr [RBP + -0x2c] SETZ byte ptr [RBX] ADD RSP,0x38 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET LAB_00156492: MOV RDI,R9 MOV EDX,R10D MOV RCX,R14 MOV R9,RBX ADD RSP,0x38 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP JMP 0x001564b1
void _ma_bin_search(int8 *param_1,long param_2,int4 param_3,long *param_4, int8 param_5,int8 param_6) { uint uVar1; int iVar2; uint uVar3; uint uVar4; long lVar5; uint uVar6; int1 local_60 [8]; int8 local_58; long *local_50; long *local_48; long local_40; uint local_38; uint local_34; if ((*(byte *)(param_2 + 0x2c) & 2) != 0) { _ma_seq_search(param_1,param_2,param_3,param_4,param_5,param_6); return; } local_48 = (long *)param_1[1]; uVar3 = *(uint *)(param_2 + 0x28); uVar6 = *(ushort *)((long)local_48 + 0xaa) + uVar3; lVar5 = (ulong)*(uint *)(*local_48 + 0x744) + *(long *)(param_2 + 0x10) + (ulong)uVar3; uVar1 = ((*(int *)(param_2 + 0x20) - *(uint *)(*local_48 + 0x744)) - uVar3) / uVar6 - 1; uVar3 = 0; local_34 = uVar1; if (uVar1 != 0) { uVar3 = 0; local_58 = param_6; local_50 = param_4; local_40 = lVar5; local_38 = uVar6; do { uVar4 = uVar3 + uVar1 >> 1; iVar2 = ha_key_cmp(local_48[0x18],(ulong)(uVar4 * local_38) + local_40,*param_1, *(int *)((long)param_1 + 0x14) + *(int *)(param_1 + 2),param_3,local_60); uVar6 = uVar4; if (iVar2 < 0) { uVar3 = uVar4 + 1; uVar6 = uVar1; } uVar1 = uVar6; } while (uVar3 != uVar1); param_6 = local_58; lVar5 = local_40; param_4 = local_50; uVar6 = local_38; uVar3 = uVar1; if (uVar4 == uVar1) goto LAB_0015646a; } iVar2 = ha_key_cmp(local_48[0x18],(ulong)(uVar3 * uVar6) + lVar5,*param_1, *(int *)((long)param_1 + 0x14) + *(int *)(param_1 + 2),param_3,local_60); local_58 = param_6; local_50 = param_4; LAB_0015646a: *local_50 = lVar5 + (ulong)((uVar3 - (iVar2 >> 0x1f)) * uVar6); *(bool *)local_58 = uVar3 == local_34; return; }
34,711
mz_crc32
7CodeWizard[P]stablediffusion/thirdparty/miniz.h
mz_ulong mz_crc32(mz_ulong crc, const mz_uint8 *ptr, size_t buf_len) { static const mz_uint32 s_crc_table[256] = { 0x00000000, 0x77073096, 0xEE0E612C, 0x990951BA, 0x076DC419, 0x706AF48F, 0xE963A535, 0x9E6495A3, 0x0EDB8832, 0x79DCB8A4, 0xE0D5E91E, 0x97D2D988, 0x09B64C2B, 0x7EB17CBD, 0xE7B82D07, 0x90BF1D91, 0x1DB71064, 0x6AB020F2, 0xF3B97148, 0x84BE41DE, 0x1ADAD47D, 0x6DDDE4EB, 0xF4D4B551, 0x83D385C7, 0x136C9856, 0x646BA8C0, 0xFD62F97A, 0x8A65C9EC, 0x14015C4F, 0x63066CD9, 0xFA0F3D63, 0x8D080DF5, 0x3B6E20C8, 0x4C69105E, 0xD56041E4, 0xA2677172, 0x3C03E4D1, 0x4B04D447, 0xD20D85FD, 0xA50AB56B, 0x35B5A8FA, 0x42B2986C, 0xDBBBC9D6, 0xACBCF940, 0x32D86CE3, 0x45DF5C75, 0xDCD60DCF, 0xABD13D59, 0x26D930AC, 0x51DE003A, 0xC8D75180, 0xBFD06116, 0x21B4F4B5, 0x56B3C423, 0xCFBA9599, 0xB8BDA50F, 0x2802B89E, 0x5F058808, 0xC60CD9B2, 0xB10BE924, 0x2F6F7C87, 0x58684C11, 0xC1611DAB, 0xB6662D3D, 0x76DC4190, 0x01DB7106, 0x98D220BC, 0xEFD5102A, 0x71B18589, 0x06B6B51F, 0x9FBFE4A5, 0xE8B8D433, 0x7807C9A2, 0x0F00F934, 0x9609A88E, 0xE10E9818, 0x7F6A0DBB, 0x086D3D2D, 0x91646C97, 0xE6635C01, 0x6B6B51F4, 0x1C6C6162, 0x856530D8, 0xF262004E, 0x6C0695ED, 0x1B01A57B, 0x8208F4C1, 0xF50FC457, 0x65B0D9C6, 0x12B7E950, 0x8BBEB8EA, 0xFCB9887C, 0x62DD1DDF, 0x15DA2D49, 0x8CD37CF3, 0xFBD44C65, 0x4DB26158, 0x3AB551CE, 0xA3BC0074, 0xD4BB30E2, 0x4ADFA541, 0x3DD895D7, 0xA4D1C46D, 0xD3D6F4FB, 0x4369E96A, 0x346ED9FC, 0xAD678846, 0xDA60B8D0, 0x44042D73, 0x33031DE5, 0xAA0A4C5F, 0xDD0D7CC9, 0x5005713C, 0x270241AA, 0xBE0B1010, 0xC90C2086, 0x5768B525, 0x206F85B3, 0xB966D409, 0xCE61E49F, 0x5EDEF90E, 0x29D9C998, 0xB0D09822, 0xC7D7A8B4, 0x59B33D17, 0x2EB40D81, 0xB7BD5C3B, 0xC0BA6CAD, 0xEDB88320, 0x9ABFB3B6, 0x03B6E20C, 0x74B1D29A, 0xEAD54739, 0x9DD277AF, 0x04DB2615, 0x73DC1683, 0xE3630B12, 0x94643B84, 0x0D6D6A3E, 0x7A6A5AA8, 0xE40ECF0B, 0x9309FF9D, 0x0A00AE27, 0x7D079EB1, 0xF00F9344, 0x8708A3D2, 0x1E01F268, 0x6906C2FE, 0xF762575D, 0x806567CB, 0x196C3671, 0x6E6B06E7, 0xFED41B76, 0x89D32BE0, 0x10DA7A5A, 0x67DD4ACC, 0xF9B9DF6F, 0x8EBEEFF9, 0x17B7BE43, 0x60B08ED5, 0xD6D6A3E8, 0xA1D1937E, 0x38D8C2C4, 0x4FDFF252, 0xD1BB67F1, 0xA6BC5767, 0x3FB506DD, 0x48B2364B, 0xD80D2BDA, 0xAF0A1B4C, 0x36034AF6, 0x41047A60, 0xDF60EFC3, 0xA867DF55, 0x316E8EEF, 0x4669BE79, 0xCB61B38C, 0xBC66831A, 0x256FD2A0, 0x5268E236, 0xCC0C7795, 0xBB0B4703, 0x220216B9, 0x5505262F, 0xC5BA3BBE, 0xB2BD0B28, 0x2BB45A92, 0x5CB36A04, 0xC2D7FFA7, 0xB5D0CF31, 0x2CD99E8B, 0x5BDEAE1D, 0x9B64C2B0, 0xEC63F226, 0x756AA39C, 0x026D930A, 0x9C0906A9, 0xEB0E363F, 0x72076785, 0x05005713, 0x95BF4A82, 0xE2B87A14, 0x7BB12BAE, 0x0CB61B38, 0x92D28E9B, 0xE5D5BE0D, 0x7CDCEFB7, 0x0BDBDF21, 0x86D3D2D4, 0xF1D4E242, 0x68DDB3F8, 0x1FDA836E, 0x81BE16CD, 0xF6B9265B, 0x6FB077E1, 0x18B74777, 0x88085AE6, 0xFF0F6A70, 0x66063BCA, 0x11010B5C, 0x8F659EFF, 0xF862AE69, 0x616BFFD3, 0x166CCF45, 0xA00AE278, 0xD70DD2EE, 0x4E048354, 0x3903B3C2, 0xA7672661, 0xD06016F7, 0x4969474D, 0x3E6E77DB, 0xAED16A4A, 0xD9D65ADC, 0x40DF0B66, 0x37D83BF0, 0xA9BCAE53, 0xDEBB9EC5, 0x47B2CF7F, 0x30B5FFE9, 0xBDBDF21C, 0xCABAC28A, 0x53B39330, 0x24B4A3A6, 0xBAD03605, 0xCDD70693, 0x54DE5729, 0x23D967BF, 0xB3667A2E, 0xC4614AB8, 0x5D681B02, 0x2A6F2B94, 0xB40BBE37, 0xC30C8EA1, 0x5A05DF1B, 0x2D02EF8D}; mz_uint32 crc32 = (mz_uint32)crc ^ 0xFFFFFFFF; const mz_uint8 *pByte_buf = (const mz_uint8 *)ptr; while (buf_len >= 4) { crc32 = (crc32 >> 8) ^ s_crc_table[(crc32 ^ pByte_buf[0]) & 0xFF]; crc32 = (crc32 >> 8) ^ s_crc_table[(crc32 ^ pByte_buf[1]) & 0xFF]; crc32 = (crc32 >> 8) ^ s_crc_table[(crc32 ^ pByte_buf[2]) & 0xFF]; crc32 = (crc32 >> 8) ^ s_crc_table[(crc32 ^ pByte_buf[3]) & 0xFF]; pByte_buf += 4; buf_len -= 4; } while (buf_len) { crc32 = (crc32 >> 8) ^ s_crc_table[(crc32 ^ pByte_buf[0]) & 0xFF]; ++pByte_buf; --buf_len; } return ~crc32; }
O0
c
mz_crc32: movq %rdi, -0x8(%rsp) movq %rsi, -0x10(%rsp) movq %rdx, -0x18(%rsp) movq -0x8(%rsp), %rax xorl $-0x1, %eax movl %eax, -0x1c(%rsp) movq -0x10(%rsp), %rax movq %rax, -0x28(%rsp) cmpq $0x4, -0x18(%rsp) jb 0xf4389 movl -0x1c(%rsp), %eax shrl $0x8, %eax movl -0x1c(%rsp), %ecx movq -0x28(%rsp), %rdx movzbl (%rdx), %edx xorl %edx, %ecx andl $0xff, %ecx movl %ecx, %ecx movl %ecx, %edx leaq 0x91a69(%rip), %rcx # 0x185d40 xorl (%rcx,%rdx,4), %eax movl %eax, -0x1c(%rsp) movl -0x1c(%rsp), %eax shrl $0x8, %eax movl -0x1c(%rsp), %ecx movq -0x28(%rsp), %rdx movzbl 0x1(%rdx), %edx xorl %edx, %ecx andl $0xff, %ecx movl %ecx, %ecx movl %ecx, %edx leaq 0x91a3b(%rip), %rcx # 0x185d40 xorl (%rcx,%rdx,4), %eax movl %eax, -0x1c(%rsp) movl -0x1c(%rsp), %eax shrl $0x8, %eax movl -0x1c(%rsp), %ecx movq -0x28(%rsp), %rdx movzbl 0x2(%rdx), %edx xorl %edx, %ecx andl $0xff, %ecx movl %ecx, %ecx movl %ecx, %edx leaq 0x91a0d(%rip), %rcx # 0x185d40 xorl (%rcx,%rdx,4), %eax movl %eax, -0x1c(%rsp) movl -0x1c(%rsp), %eax shrl $0x8, %eax movl -0x1c(%rsp), %ecx movq -0x28(%rsp), %rdx movzbl 0x3(%rdx), %edx xorl %edx, %ecx andl $0xff, %ecx movl %ecx, %ecx movl %ecx, %edx leaq 0x919df(%rip), %rcx # 0x185d40 xorl (%rcx,%rdx,4), %eax movl %eax, -0x1c(%rsp) movq -0x28(%rsp), %rax addq $0x4, %rax movq %rax, -0x28(%rsp) movq -0x18(%rsp), %rax subq $0x4, %rax movq %rax, -0x18(%rsp) jmp 0xf42a5 jmp 0xf438b cmpq $0x0, -0x18(%rsp) je 0xf43de movl -0x1c(%rsp), %eax shrl $0x8, %eax movl -0x1c(%rsp), %ecx movq -0x28(%rsp), %rdx movzbl (%rdx), %edx xorl %edx, %ecx andl $0xff, %ecx movl %ecx, %ecx movl %ecx, %edx leaq 0x91987(%rip), %rcx # 0x185d40 xorl (%rcx,%rdx,4), %eax movl %eax, -0x1c(%rsp) movq -0x28(%rsp), %rax addq $0x1, %rax movq %rax, -0x28(%rsp) movq -0x18(%rsp), %rax addq $-0x1, %rax movq %rax, -0x18(%rsp) jmp 0xf438b movl -0x1c(%rsp), %eax xorl $-0x1, %eax movl %eax, %eax retq nopl (%rax,%rax)
mz_crc32: mov [rsp+var_8], rdi mov [rsp+var_10], rsi mov [rsp+var_18], rdx mov rax, [rsp+var_8] xor eax, 0FFFFFFFFh mov [rsp+var_1C], eax mov rax, [rsp+var_10] mov [rsp+var_28], rax loc_F42A5: cmp [rsp+var_18], 4 jb loc_F4389 mov eax, [rsp+var_1C] shr eax, 8 mov ecx, [rsp+var_1C] mov rdx, [rsp+var_28] movzx edx, byte ptr [rdx] xor ecx, edx and ecx, 0FFh mov ecx, ecx mov edx, ecx lea rcx, mz_crc32_s_crc_table xor eax, [rcx+rdx*4] mov [rsp+var_1C], eax mov eax, [rsp+var_1C] shr eax, 8 mov ecx, [rsp+var_1C] mov rdx, [rsp+var_28] movzx edx, byte ptr [rdx+1] xor ecx, edx and ecx, 0FFh mov ecx, ecx mov edx, ecx lea rcx, mz_crc32_s_crc_table xor eax, [rcx+rdx*4] mov [rsp+var_1C], eax mov eax, [rsp+var_1C] shr eax, 8 mov ecx, [rsp+var_1C] mov rdx, [rsp+var_28] movzx edx, byte ptr [rdx+2] xor ecx, edx and ecx, 0FFh mov ecx, ecx mov edx, ecx lea rcx, mz_crc32_s_crc_table xor eax, [rcx+rdx*4] mov [rsp+var_1C], eax mov eax, [rsp+var_1C] shr eax, 8 mov ecx, [rsp+var_1C] mov rdx, [rsp+var_28] movzx edx, byte ptr [rdx+3] xor ecx, edx and ecx, 0FFh mov ecx, ecx mov edx, ecx lea rcx, mz_crc32_s_crc_table xor eax, [rcx+rdx*4] mov [rsp+var_1C], eax mov rax, [rsp+var_28] add rax, 4 mov [rsp+var_28], rax mov rax, [rsp+var_18] sub rax, 4 mov [rsp+var_18], rax jmp loc_F42A5 loc_F4389: jmp short $+2 loc_F438B: cmp [rsp+var_18], 0 jz short loc_F43DE mov eax, [rsp+var_1C] shr eax, 8 mov ecx, [rsp+var_1C] mov rdx, [rsp+var_28] movzx edx, byte ptr [rdx] xor ecx, edx and ecx, 0FFh mov ecx, ecx mov edx, ecx lea rcx, mz_crc32_s_crc_table xor eax, [rcx+rdx*4] mov [rsp+var_1C], eax mov rax, [rsp+var_28] add rax, 1 mov [rsp+var_28], rax mov rax, [rsp+var_18] add rax, 0FFFFFFFFFFFFFFFFh mov [rsp+var_18], rax jmp short loc_F438B loc_F43DE: mov eax, [rsp+var_1C] xor eax, 0FFFFFFFFh mov eax, eax retn
long long mz_crc32(int a1, _BYTE *a2, unsigned long long a3) { unsigned int v5; // [rsp+Ch] [rbp-1Ch] unsigned int v6; // [rsp+Ch] [rbp-1Ch] unsigned int v7; // [rsp+Ch] [rbp-1Ch] unsigned int v8; // [rsp+Ch] [rbp-1Ch] v5 = ~a1; while ( a3 >= 4 ) { v6 = mz_crc32_s_crc_table[(unsigned __int8)(*a2 ^ v5)] ^ (v5 >> 8); v7 = mz_crc32_s_crc_table[(unsigned __int8)(a2[1] ^ v6)] ^ (v6 >> 8); v8 = mz_crc32_s_crc_table[(unsigned __int8)(a2[2] ^ v7)] ^ (v7 >> 8); v5 = mz_crc32_s_crc_table[(unsigned __int8)(a2[3] ^ v8)] ^ (v8 >> 8); a2 += 4; a3 -= 4LL; } while ( a3 ) { v5 = mz_crc32_s_crc_table[(unsigned __int8)(*a2++ ^ v5)] ^ (v5 >> 8); --a3; } return ~v5; }
mz_crc32: MOV qword ptr [RSP + -0x8],RDI MOV qword ptr [RSP + -0x10],RSI MOV qword ptr [RSP + -0x18],RDX MOV RAX,qword ptr [RSP + -0x8] XOR EAX,0xffffffff MOV dword ptr [RSP + -0x1c],EAX MOV RAX,qword ptr [RSP + -0x10] MOV qword ptr [RSP + -0x28],RAX LAB_001f42a5: CMP qword ptr [RSP + -0x18],0x4 JC 0x001f4389 MOV EAX,dword ptr [RSP + -0x1c] SHR EAX,0x8 MOV ECX,dword ptr [RSP + -0x1c] MOV RDX,qword ptr [RSP + -0x28] MOVZX EDX,byte ptr [RDX] XOR ECX,EDX AND ECX,0xff MOV ECX,ECX MOV EDX,ECX LEA RCX,[0x285d40] XOR EAX,dword ptr [RCX + RDX*0x4] MOV dword ptr [RSP + -0x1c],EAX MOV EAX,dword ptr [RSP + -0x1c] SHR EAX,0x8 MOV ECX,dword ptr [RSP + -0x1c] MOV RDX,qword ptr [RSP + -0x28] MOVZX EDX,byte ptr [RDX + 0x1] XOR ECX,EDX AND ECX,0xff MOV ECX,ECX MOV EDX,ECX LEA RCX,[0x285d40] XOR EAX,dword ptr [RCX + RDX*0x4] MOV dword ptr [RSP + -0x1c],EAX MOV EAX,dword ptr [RSP + -0x1c] SHR EAX,0x8 MOV ECX,dword ptr [RSP + -0x1c] MOV RDX,qword ptr [RSP + -0x28] MOVZX EDX,byte ptr [RDX + 0x2] XOR ECX,EDX AND ECX,0xff MOV ECX,ECX MOV EDX,ECX LEA RCX,[0x285d40] XOR EAX,dword ptr [RCX + RDX*0x4] MOV dword ptr [RSP + -0x1c],EAX MOV EAX,dword ptr [RSP + -0x1c] SHR EAX,0x8 MOV ECX,dword ptr [RSP + -0x1c] MOV RDX,qword ptr [RSP + -0x28] MOVZX EDX,byte ptr [RDX + 0x3] XOR ECX,EDX AND ECX,0xff MOV ECX,ECX MOV EDX,ECX LEA RCX,[0x285d40] XOR EAX,dword ptr [RCX + RDX*0x4] MOV dword ptr [RSP + -0x1c],EAX MOV RAX,qword ptr [RSP + -0x28] ADD RAX,0x4 MOV qword ptr [RSP + -0x28],RAX MOV RAX,qword ptr [RSP + -0x18] SUB RAX,0x4 MOV qword ptr [RSP + -0x18],RAX JMP 0x001f42a5 LAB_001f4389: JMP 0x001f438b LAB_001f438b: CMP qword ptr [RSP + -0x18],0x0 JZ 0x001f43de MOV EAX,dword ptr [RSP + -0x1c] SHR EAX,0x8 MOV ECX,dword ptr [RSP + -0x1c] MOV RDX,qword ptr [RSP + -0x28] MOVZX EDX,byte ptr [RDX] XOR ECX,EDX AND ECX,0xff MOV ECX,ECX MOV EDX,ECX LEA RCX,[0x285d40] XOR EAX,dword ptr [RCX + RDX*0x4] MOV dword ptr [RSP + -0x1c],EAX MOV RAX,qword ptr [RSP + -0x28] ADD RAX,0x1 MOV qword ptr [RSP + -0x28],RAX MOV RAX,qword ptr [RSP + -0x18] ADD RAX,-0x1 MOV qword ptr [RSP + -0x18],RAX JMP 0x001f438b LAB_001f43de: MOV EAX,dword ptr [RSP + -0x1c] XOR EAX,0xffffffff MOV EAX,EAX RET
uint mz_crc32(uint param_1,byte *param_2,ulong param_3) { uint uVar1; byte *local_28; uint local_1c; ulong local_18; local_1c = param_1 ^ 0xffffffff; local_28 = param_2; for (local_18 = param_3; 3 < local_18; local_18 = local_18 - 4) { uVar1 = local_1c >> 8 ^ *(uint *)(mz_crc32_s_crc_table + (ulong)((local_1c ^ *local_28) & 0xff) * 4); uVar1 = uVar1 >> 8 ^ *(uint *)(mz_crc32_s_crc_table + (ulong)((uVar1 ^ local_28[1]) & 0xff) * 4) ; uVar1 = uVar1 >> 8 ^ *(uint *)(mz_crc32_s_crc_table + (ulong)((uVar1 ^ local_28[2]) & 0xff) * 4) ; local_1c = uVar1 >> 8 ^ *(uint *)(mz_crc32_s_crc_table + (ulong)((uVar1 ^ local_28[3]) & 0xff) * 4); local_28 = local_28 + 4; } for (; local_18 != 0; local_18 = local_18 - 1) { local_1c = local_1c >> 8 ^ *(uint *)(mz_crc32_s_crc_table + (ulong)((local_1c ^ *local_28) & 0xff) * 4); local_28 = local_28 + 1; } return local_1c ^ 0xffffffff; }
34,712
mz_crc32
7CodeWizard[P]stablediffusion/thirdparty/miniz.h
mz_ulong mz_crc32(mz_ulong crc, const mz_uint8 *ptr, size_t buf_len) { static const mz_uint32 s_crc_table[256] = { 0x00000000, 0x77073096, 0xEE0E612C, 0x990951BA, 0x076DC419, 0x706AF48F, 0xE963A535, 0x9E6495A3, 0x0EDB8832, 0x79DCB8A4, 0xE0D5E91E, 0x97D2D988, 0x09B64C2B, 0x7EB17CBD, 0xE7B82D07, 0x90BF1D91, 0x1DB71064, 0x6AB020F2, 0xF3B97148, 0x84BE41DE, 0x1ADAD47D, 0x6DDDE4EB, 0xF4D4B551, 0x83D385C7, 0x136C9856, 0x646BA8C0, 0xFD62F97A, 0x8A65C9EC, 0x14015C4F, 0x63066CD9, 0xFA0F3D63, 0x8D080DF5, 0x3B6E20C8, 0x4C69105E, 0xD56041E4, 0xA2677172, 0x3C03E4D1, 0x4B04D447, 0xD20D85FD, 0xA50AB56B, 0x35B5A8FA, 0x42B2986C, 0xDBBBC9D6, 0xACBCF940, 0x32D86CE3, 0x45DF5C75, 0xDCD60DCF, 0xABD13D59, 0x26D930AC, 0x51DE003A, 0xC8D75180, 0xBFD06116, 0x21B4F4B5, 0x56B3C423, 0xCFBA9599, 0xB8BDA50F, 0x2802B89E, 0x5F058808, 0xC60CD9B2, 0xB10BE924, 0x2F6F7C87, 0x58684C11, 0xC1611DAB, 0xB6662D3D, 0x76DC4190, 0x01DB7106, 0x98D220BC, 0xEFD5102A, 0x71B18589, 0x06B6B51F, 0x9FBFE4A5, 0xE8B8D433, 0x7807C9A2, 0x0F00F934, 0x9609A88E, 0xE10E9818, 0x7F6A0DBB, 0x086D3D2D, 0x91646C97, 0xE6635C01, 0x6B6B51F4, 0x1C6C6162, 0x856530D8, 0xF262004E, 0x6C0695ED, 0x1B01A57B, 0x8208F4C1, 0xF50FC457, 0x65B0D9C6, 0x12B7E950, 0x8BBEB8EA, 0xFCB9887C, 0x62DD1DDF, 0x15DA2D49, 0x8CD37CF3, 0xFBD44C65, 0x4DB26158, 0x3AB551CE, 0xA3BC0074, 0xD4BB30E2, 0x4ADFA541, 0x3DD895D7, 0xA4D1C46D, 0xD3D6F4FB, 0x4369E96A, 0x346ED9FC, 0xAD678846, 0xDA60B8D0, 0x44042D73, 0x33031DE5, 0xAA0A4C5F, 0xDD0D7CC9, 0x5005713C, 0x270241AA, 0xBE0B1010, 0xC90C2086, 0x5768B525, 0x206F85B3, 0xB966D409, 0xCE61E49F, 0x5EDEF90E, 0x29D9C998, 0xB0D09822, 0xC7D7A8B4, 0x59B33D17, 0x2EB40D81, 0xB7BD5C3B, 0xC0BA6CAD, 0xEDB88320, 0x9ABFB3B6, 0x03B6E20C, 0x74B1D29A, 0xEAD54739, 0x9DD277AF, 0x04DB2615, 0x73DC1683, 0xE3630B12, 0x94643B84, 0x0D6D6A3E, 0x7A6A5AA8, 0xE40ECF0B, 0x9309FF9D, 0x0A00AE27, 0x7D079EB1, 0xF00F9344, 0x8708A3D2, 0x1E01F268, 0x6906C2FE, 0xF762575D, 0x806567CB, 0x196C3671, 0x6E6B06E7, 0xFED41B76, 0x89D32BE0, 0x10DA7A5A, 0x67DD4ACC, 0xF9B9DF6F, 0x8EBEEFF9, 0x17B7BE43, 0x60B08ED5, 0xD6D6A3E8, 0xA1D1937E, 0x38D8C2C4, 0x4FDFF252, 0xD1BB67F1, 0xA6BC5767, 0x3FB506DD, 0x48B2364B, 0xD80D2BDA, 0xAF0A1B4C, 0x36034AF6, 0x41047A60, 0xDF60EFC3, 0xA867DF55, 0x316E8EEF, 0x4669BE79, 0xCB61B38C, 0xBC66831A, 0x256FD2A0, 0x5268E236, 0xCC0C7795, 0xBB0B4703, 0x220216B9, 0x5505262F, 0xC5BA3BBE, 0xB2BD0B28, 0x2BB45A92, 0x5CB36A04, 0xC2D7FFA7, 0xB5D0CF31, 0x2CD99E8B, 0x5BDEAE1D, 0x9B64C2B0, 0xEC63F226, 0x756AA39C, 0x026D930A, 0x9C0906A9, 0xEB0E363F, 0x72076785, 0x05005713, 0x95BF4A82, 0xE2B87A14, 0x7BB12BAE, 0x0CB61B38, 0x92D28E9B, 0xE5D5BE0D, 0x7CDCEFB7, 0x0BDBDF21, 0x86D3D2D4, 0xF1D4E242, 0x68DDB3F8, 0x1FDA836E, 0x81BE16CD, 0xF6B9265B, 0x6FB077E1, 0x18B74777, 0x88085AE6, 0xFF0F6A70, 0x66063BCA, 0x11010B5C, 0x8F659EFF, 0xF862AE69, 0x616BFFD3, 0x166CCF45, 0xA00AE278, 0xD70DD2EE, 0x4E048354, 0x3903B3C2, 0xA7672661, 0xD06016F7, 0x4969474D, 0x3E6E77DB, 0xAED16A4A, 0xD9D65ADC, 0x40DF0B66, 0x37D83BF0, 0xA9BCAE53, 0xDEBB9EC5, 0x47B2CF7F, 0x30B5FFE9, 0xBDBDF21C, 0xCABAC28A, 0x53B39330, 0x24B4A3A6, 0xBAD03605, 0xCDD70693, 0x54DE5729, 0x23D967BF, 0xB3667A2E, 0xC4614AB8, 0x5D681B02, 0x2A6F2B94, 0xB40BBE37, 0xC30C8EA1, 0x5A05DF1B, 0x2D02EF8D}; mz_uint32 crc32 = (mz_uint32)crc ^ 0xFFFFFFFF; const mz_uint8 *pByte_buf = (const mz_uint8 *)ptr; while (buf_len >= 4) { crc32 = (crc32 >> 8) ^ s_crc_table[(crc32 ^ pByte_buf[0]) & 0xFF]; crc32 = (crc32 >> 8) ^ s_crc_table[(crc32 ^ pByte_buf[1]) & 0xFF]; crc32 = (crc32 >> 8) ^ s_crc_table[(crc32 ^ pByte_buf[2]) & 0xFF]; crc32 = (crc32 >> 8) ^ s_crc_table[(crc32 ^ pByte_buf[3]) & 0xFF]; pByte_buf += 4; buf_len -= 4; } while (buf_len) { crc32 = (crc32 >> 8) ^ s_crc_table[(crc32 ^ pByte_buf[0]) & 0xFF]; ++pByte_buf; --buf_len; } return ~crc32; }
O3
c
mz_crc32: notl %edi cmpq $0x4, %rdx jb 0x7daf0 leaq 0x45099(%rip), %rax # 0xc2b40 movl %edi, %ecx xorb (%rsi), %dil shrl $0x8, %ecx movzbl %dil, %edi xorl (%rax,%rdi,4), %ecx movl %ecx, %edi xorb 0x1(%rsi), %cl shrl $0x8, %edi movzbl %cl, %ecx xorl (%rax,%rcx,4), %edi movl %edi, %ecx xorb 0x2(%rsi), %dil shrl $0x8, %ecx movzbl %dil, %edi xorl (%rax,%rdi,4), %ecx movl %ecx, %edi xorb 0x3(%rsi), %cl shrl $0x8, %edi movzbl %cl, %ecx xorl (%rax,%rcx,4), %edi addq $0x4, %rsi addq $-0x4, %rdx cmpq $0x3, %rdx ja 0x7daa7 testq %rdx, %rdx je 0x7db1b xorl %ecx, %ecx leaq 0x45042(%rip), %r8 # 0xc2b40 movl %edi, %eax xorb (%rsi,%rcx), %dil shrl $0x8, %eax movzbl %dil, %edi xorl (%r8,%rdi,4), %eax incq %rcx movl %eax, %edi cmpq %rcx, %rdx jne 0x7dafe jmp 0x7db1d movl %edi, %eax notl %eax retq
mz_crc32: not edi cmp rdx, 4 jb short loc_7DAF0 lea rax, mz_crc32_s_crc_table loc_7DAA7: mov ecx, edi xor dil, [rsi] shr ecx, 8 movzx edi, dil xor ecx, [rax+rdi*4] mov edi, ecx xor cl, [rsi+1] shr edi, 8 movzx ecx, cl xor edi, [rax+rcx*4] mov ecx, edi xor dil, [rsi+2] shr ecx, 8 movzx edi, dil xor ecx, [rax+rdi*4] mov edi, ecx xor cl, [rsi+3] shr edi, 8 movzx ecx, cl xor edi, [rax+rcx*4] add rsi, 4 add rdx, 0FFFFFFFFFFFFFFFCh cmp rdx, 3 ja short loc_7DAA7 loc_7DAF0: test rdx, rdx jz short loc_7DB1B xor ecx, ecx lea r8, mz_crc32_s_crc_table loc_7DAFE: mov eax, edi xor dil, [rsi+rcx] shr eax, 8 movzx edi, dil xor eax, [r8+rdi*4] inc rcx mov edi, eax cmp rdx, rcx jnz short loc_7DAFE jmp short loc_7DB1D loc_7DB1B: mov eax, edi loc_7DB1D: not eax retn
long long mz_crc32(int a1, _BYTE *a2, unsigned long long a3) { unsigned int v3; // edi unsigned int v4; // edi unsigned int v5; // ecx unsigned int v6; // edi long long i; // rcx int v8; // eax v3 = ~a1; if ( a3 >= 4 ) { do { v4 = mz_crc32_s_crc_table[(unsigned __int8)(*a2 ^ v3)] ^ (v3 >> 8); v5 = mz_crc32_s_crc_table[(unsigned __int8)(a2[1] ^ v4)] ^ (v4 >> 8); v6 = mz_crc32_s_crc_table[(unsigned __int8)(a2[2] ^ v5)] ^ (v5 >> 8); v3 = mz_crc32_s_crc_table[(unsigned __int8)(a2[3] ^ v6)] ^ (v6 >> 8); a2 += 4; a3 -= 4LL; } while ( a3 > 3 ); } if ( a3 ) { for ( i = 0LL; i != a3; ++i ) { v8 = mz_crc32_s_crc_table[(unsigned __int8)(a2[i] ^ v3)] ^ (v3 >> 8); v3 = v8; } } else { v8 = v3; } return (unsigned int)~v8; }
34,713
LefDefParser::lefwMacroObsVia(double, double, char const*, int, int, double, double, int)
Efficient-TDP/thirdparty/Limbo/limbo/thirdparty/lefdef/5.8/lef/lef/lefwWriter.cpp
int lefwMacroObsVia(double xl, double yl, const char *viaName, int numX, int numY, // optional double spaceX, double spaceY, // optional int mask) { // optional if (!lefwFile) return LEFW_UNINITIALIZED; if (!lefwDidInit) return LEFW_BAD_ORDER; if (!lefwIsMacroObs) return LEFW_BAD_ORDER; if (!viaName || viaName == 0 || *viaName == 0) return LEFW_BAD_DATA; if (mask && versionNum < 5.8) { return LEFW_WRONG_VERSION; } if (!lefwValidateMaskNumber(mask)) { return LEFW_BAD_DATA; } if (lefwWriteEncrypt) { if (numX || numY || spaceX || spaceY) { if (mask) { encPrint(lefwFile, (char*) " VIA ITERATE MASK %d %.11g %.11g %s ", mask, xl, yl, viaName); } else { encPrint(lefwFile, (char*) " VIA ITERATE %.11g %.11g %s ", xl, yl, viaName); } encPrint(lefwFile, (char*) "DO %d BY %d STEP %.11g %.11g ", numX, numY, spaceX, spaceY); } else { if (mask) { encPrint(lefwFile, (char*) " VIA MASK %d %.11g %.11g %s ", mask, xl, yl, viaName); } else { encPrint(lefwFile, (char*) " VIA %.11g %.11g %s ", xl, yl, viaName); } } encPrint(lefwFile, (char*) ";\n"); } else { if (numX || numY || spaceX || spaceY) { if (mask) { fprintf(lefwFile, " VIA ITERATE MASK %d %.11g %.11g %s ", mask, xl, yl, viaName); } else { fprintf(lefwFile, " VIA ITERATE %.11g %.11g %s ", xl, yl, viaName); } fprintf(lefwFile, "DO %d BY %d STEP %.11g %.11g ", numX, numY, spaceX, spaceY); } else { if (mask) { fprintf(lefwFile, " VIA MASK %d %.11g %.11g %s ", mask, xl, yl, viaName); } else { fprintf(lefwFile, " VIA %.11g %.11g %s ", xl, yl, viaName); } } fprintf(lefwFile, ";\n"); } lefwLines++; lefwIsMacroObsLayer = 0; return LEFW_OK; }
O0
cpp
LefDefParser::lefwMacroObsVia(double, double, char const*, int, int, double, double, int): subq $0x48, %rsp movsd %xmm0, 0x38(%rsp) movsd %xmm1, 0x30(%rsp) movq %rdi, 0x28(%rsp) movl %esi, 0x24(%rsp) movl %edx, 0x20(%rsp) movsd %xmm2, 0x18(%rsp) movsd %xmm3, 0x10(%rsp) movl %ecx, 0xc(%rsp) leaq 0xc57c(%rip), %rax # 0x32e00 cmpq $0x0, (%rax) jne 0x26897 movl $0x1, 0x44(%rsp) jmp 0x26be5 leaq 0xc7b6(%rip), %rax # 0x33054 cmpl $0x0, (%rax) jne 0x268b0 movl $0x2, 0x44(%rsp) jmp 0x26be5 leaq 0xc7e1(%rip), %rax # 0x33098 cmpl $0x0, (%rax) jne 0x268c9 movl $0x2, 0x44(%rsp) jmp 0x26be5 cmpq $0x0, 0x28(%rsp) je 0x268e6 cmpq $0x0, 0x28(%rsp) je 0x268e6 movq 0x28(%rsp), %rax movsbl (%rax), %eax cmpl $0x0, %eax jne 0x268f3 movl $0x3, 0x44(%rsp) jmp 0x26be5 cmpl $0x0, 0xc(%rsp) je 0x26919 movsd 0x2dde(%rip), %xmm0 # 0x296e0 ucomisd 0xc436(%rip), %xmm0 # 0x32d40 jbe 0x26919 movl $0x5, 0x44(%rsp) jmp 0x26be5 movl 0xc(%rsp), %edi callq 0xbf20 testb $0x1, %al jne 0x26933 movl $0x3, 0x44(%rsp) jmp 0x26be5 cmpl $0x0, 0xc7b2(%rip) # 0x330ec je 0x26a80 cmpl $0x0, 0x24(%rsp) jne 0x26975 cmpl $0x0, 0x20(%rsp) jne 0x26975 movsd 0x18(%rsp), %xmm0 xorps %xmm1, %xmm1 ucomisd %xmm1, %xmm0 jne 0x26975 jp 0x26975 movsd 0x10(%rsp), %xmm0 xorps %xmm1, %xmm1 ucomisd %xmm1, %xmm0 jne 0x26975 jp 0x26975 jmp 0x26a02 cmpl $0x0, 0xc(%rsp) je 0x269ab leaq 0xc47d(%rip), %rax # 0x32e00 movq (%rax), %rdi movl 0xc(%rsp), %edx movsd 0x38(%rsp), %xmm0 movsd 0x30(%rsp), %xmm1 movq 0x28(%rsp), %rcx leaq 0x542b(%rip), %rsi # 0x2bdcd movb $0x2, %al callq 0x289b0 jmp 0x269d4 leaq 0xc44e(%rip), %rax # 0x32e00 movq (%rax), %rdi movsd 0x38(%rsp), %xmm0 movsd 0x30(%rsp), %xmm1 movq 0x28(%rsp), %rdx leaq 0x5430(%rip), %rsi # 0x2bdfd movb $0x2, %al callq 0x289b0 leaq 0xc425(%rip), %rax # 0x32e00 movq (%rax), %rdi movl 0x24(%rsp), %edx movl 0x20(%rsp), %ecx movsd 0x18(%rsp), %xmm0 movsd 0x10(%rsp), %xmm1 leaq 0x51cf(%rip), %rsi # 0x2bbc8 movb $0x2, %al callq 0x289b0 jmp 0x26a63 cmpl $0x0, 0xc(%rsp) je 0x26a38 leaq 0xc3f0(%rip), %rax # 0x32e00 movq (%rax), %rdi movl 0xc(%rsp), %edx movsd 0x38(%rsp), %xmm0 movsd 0x30(%rsp), %xmm1 movq 0x28(%rsp), %rcx leaq 0x5416(%rip), %rsi # 0x2be45 movb $0x2, %al callq 0x289b0 jmp 0x26a61 leaq 0xc3c1(%rip), %rax # 0x32e00 movq (%rax), %rdi movsd 0x38(%rsp), %xmm0 movsd 0x30(%rsp), %xmm1 movq 0x28(%rsp), %rdx leaq 0x53cb(%rip), %rsi # 0x2be25 movb $0x2, %al callq 0x289b0 jmp 0x26a63 leaq 0xc396(%rip), %rax # 0x32e00 movq (%rax), %rdi leaq 0x34e0(%rip), %rsi # 0x29f54 movb $0x0, %al callq 0x289b0 jmp 0x26bbb cmpl $0x0, 0x24(%rsp) jne 0x26ab5 cmpl $0x0, 0x20(%rsp) jne 0x26ab5 movsd 0x18(%rsp), %xmm0 xorps %xmm1, %xmm1 ucomisd %xmm1, %xmm0 jne 0x26ab5 jp 0x26ab5 movsd 0x10(%rsp), %xmm0 xorps %xmm1, %xmm1 ucomisd %xmm1, %xmm0 jne 0x26ab5 jp 0x26ab5 jmp 0x26b42 cmpl $0x0, 0xc(%rsp) je 0x26aeb leaq 0xc33d(%rip), %rax # 0x32e00 movq (%rax), %rdi movl 0xc(%rsp), %edx movsd 0x38(%rsp), %xmm0 movsd 0x30(%rsp), %xmm1 movq 0x28(%rsp), %rcx leaq 0x52eb(%rip), %rsi # 0x2bdcd movb $0x2, %al callq 0x1100 jmp 0x26b14 leaq 0xc30e(%rip), %rax # 0x32e00 movq (%rax), %rdi movsd 0x38(%rsp), %xmm0 movsd 0x30(%rsp), %xmm1 movq 0x28(%rsp), %rdx leaq 0x52f0(%rip), %rsi # 0x2bdfd movb $0x2, %al callq 0x1100 leaq 0xc2e5(%rip), %rax # 0x32e00 movq (%rax), %rdi movl 0x24(%rsp), %edx movl 0x20(%rsp), %ecx movsd 0x18(%rsp), %xmm0 movsd 0x10(%rsp), %xmm1 leaq 0x508f(%rip), %rsi # 0x2bbc8 movb $0x2, %al callq 0x1100 jmp 0x26ba3 cmpl $0x0, 0xc(%rsp) je 0x26b78 leaq 0xc2b0(%rip), %rax # 0x32e00 movq (%rax), %rdi movl 0xc(%rsp), %edx movsd 0x38(%rsp), %xmm0 movsd 0x30(%rsp), %xmm1 movq 0x28(%rsp), %rcx leaq 0x52d6(%rip), %rsi # 0x2be45 movb $0x2, %al callq 0x1100 jmp 0x26ba1 leaq 0xc281(%rip), %rax # 0x32e00 movq (%rax), %rdi movsd 0x38(%rsp), %xmm0 movsd 0x30(%rsp), %xmm1 movq 0x28(%rsp), %rdx leaq 0x528b(%rip), %rsi # 0x2be25 movb $0x2, %al callq 0x1100 jmp 0x26ba3 leaq 0xc256(%rip), %rax # 0x32e00 movq (%rax), %rdi leaq 0x33a0(%rip), %rsi # 0x29f54 movb $0x0, %al callq 0x1100 leaq 0xc48a(%rip), %rax # 0x3304c movl (%rax), %ecx addl $0x1, %ecx leaq 0xc47e(%rip), %rax # 0x3304c movl %ecx, (%rax) leaq 0xc4c5(%rip), %rax # 0x3309c movl $0x0, (%rax) movl $0x0, 0x44(%rsp) movl 0x44(%rsp), %eax addq $0x48, %rsp retq nop
_ZN12LefDefParser15lefwMacroObsViaEddPKciiddi: sub rsp, 48h movsd [rsp+48h+var_10], xmm0 movsd [rsp+48h+var_18], xmm1 mov [rsp+48h+var_20], rdi mov [rsp+48h+var_24], esi mov [rsp+48h+var_28], edx movsd [rsp+48h+var_30], xmm2 movsd [rsp+48h+var_3C+4], xmm3 mov dword ptr [rsp+48h+var_3C], ecx lea rax, _ZN12LefDefParser8lefwFileE; LefDefParser::lefwFile cmp qword ptr [rax], 0 jnz short loc_26897 mov [rsp+48h+var_4], 1 jmp loc_26BE5 loc_26897: lea rax, _ZN12LefDefParser11lefwDidInitE; LefDefParser::lefwDidInit cmp dword ptr [rax], 0 jnz short loc_268B0 mov [rsp+48h+var_4], 2 jmp loc_26BE5 loc_268B0: lea rax, _ZN12LefDefParser14lefwIsMacroObsE; LefDefParser::lefwIsMacroObs cmp dword ptr [rax], 0 jnz short loc_268C9 mov [rsp+48h+var_4], 2 jmp loc_26BE5 loc_268C9: cmp [rsp+48h+var_20], 0 jz short loc_268E6 cmp [rsp+48h+var_20], 0 jz short loc_268E6 mov rax, [rsp+48h+var_20] movsx eax, byte ptr [rax] cmp eax, 0 jnz short loc_268F3 loc_268E6: mov [rsp+48h+var_4], 3 jmp loc_26BE5 loc_268F3: cmp dword ptr [rsp+48h+var_3C], 0 jz short loc_26919 movsd xmm0, cs:qword_296E0 ucomisd xmm0, cs:_ZN12LefDefParserL10versionNumE; LefDefParser::versionNum jbe short loc_26919 mov [rsp+48h+var_4], 5 jmp loc_26BE5 loc_26919: mov edi, dword ptr [rsp+48h+var_3C]; this call _ZN12LefDefParser22lefwValidateMaskNumberEi; LefDefParser::lefwValidateMaskNumber(int) test al, 1 jnz short loc_26933 mov [rsp+48h+var_4], 3 jmp loc_26BE5 loc_26933: cmp cs:_ZN12LefDefParserL16lefwWriteEncryptE, 0; LefDefParser::lefwWriteEncrypt jz loc_26A80 cmp [rsp+48h+var_24], 0 jnz short loc_26975 cmp [rsp+48h+var_28], 0 jnz short loc_26975 movsd xmm0, [rsp+48h+var_30] xorps xmm1, xmm1 ucomisd xmm0, xmm1 jnz short loc_26975 jp short loc_26975 movsd xmm0, [rsp+48h+var_3C+4] xorps xmm1, xmm1 ucomisd xmm0, xmm1 jnz short loc_26975 jp short loc_26975 jmp loc_26A02 loc_26975: cmp dword ptr [rsp+48h+var_3C], 0 jz short loc_269AB lea rax, _ZN12LefDefParser8lefwFileE; LefDefParser::lefwFile mov rdi, [rax] mov edx, dword ptr [rsp+48h+var_3C] movsd xmm0, [rsp+48h+var_10] movsd xmm1, [rsp+48h+var_18] mov rcx, [rsp+48h+var_20] lea rsi, aViaIterateMask+6; " VIA ITERATE MASK %d %.11g %.11g %"... mov al, 2 call _ZN12LefDefParser8encPrintEP8_IO_FILEPcz; LefDefParser::encPrint(_IO_FILE *,char *,...) jmp short loc_269D4 loc_269AB: lea rax, _ZN12LefDefParser8lefwFileE; LefDefParser::lefwFile mov rdi, [rax] movsd xmm0, [rsp+48h+var_10] movsd xmm1, [rsp+48h+var_18] mov rdx, [rsp+48h+var_20] lea rsi, aViaIterate11g1+6; " VIA ITERATE %.11g %.11g %s " mov al, 2 call _ZN12LefDefParser8encPrintEP8_IO_FILEPcz; LefDefParser::encPrint(_IO_FILE *,char *,...) loc_269D4: lea rax, _ZN12LefDefParser8lefwFileE; LefDefParser::lefwFile mov rdi, [rax] mov edx, [rsp+48h+var_24] mov ecx, [rsp+48h+var_28] movsd xmm0, [rsp+48h+var_30] movsd xmm1, [rsp+48h+var_3C+4] lea rsi, aDoDByDStep11g1+0Bh; "DO %d BY %d STEP %.11g %.11g " mov al, 2 call _ZN12LefDefParser8encPrintEP8_IO_FILEPcz; LefDefParser::encPrint(_IO_FILE *,char *,...) jmp short loc_26A63 loc_26A02: cmp dword ptr [rsp+48h+var_3C], 0 jz short loc_26A38 lea rax, _ZN12LefDefParser8lefwFileE; LefDefParser::lefwFile mov rdi, [rax] mov edx, dword ptr [rsp+48h+var_3C] movsd xmm0, [rsp+48h+var_10] movsd xmm1, [rsp+48h+var_18] mov rcx, [rsp+48h+var_20] lea rsi, aViaMaskD11g11g+6; " VIA MASK %d %.11g %.11g %s " mov al, 2 call _ZN12LefDefParser8encPrintEP8_IO_FILEPcz; LefDefParser::encPrint(_IO_FILE *,char *,...) jmp short loc_26A61 loc_26A38: lea rax, _ZN12LefDefParser8lefwFileE; LefDefParser::lefwFile mov rdi, [rax] movsd xmm0, [rsp+48h+var_10] movsd xmm1, [rsp+48h+var_18] mov rdx, [rsp+48h+var_20] lea rsi, aVia11g11gS+6; " VIA %.11g %.11g %s " mov al, 2 call _ZN12LefDefParser8encPrintEP8_IO_FILEPcz; LefDefParser::encPrint(_IO_FILE *,char *,...) loc_26A61: jmp short $+2 loc_26A63: lea rax, _ZN12LefDefParser8lefwFileE; LefDefParser::lefwFile mov rdi, [rax] lea rsi, aDividercharS+11h; ";\n" mov al, 0 call _ZN12LefDefParser8encPrintEP8_IO_FILEPcz; LefDefParser::encPrint(_IO_FILE *,char *,...) jmp loc_26BBB loc_26A80: cmp [rsp+48h+var_24], 0 jnz short loc_26AB5 cmp [rsp+48h+var_28], 0 jnz short loc_26AB5 movsd xmm0, [rsp+48h+var_30] xorps xmm1, xmm1 ucomisd xmm0, xmm1 jnz short loc_26AB5 jp short loc_26AB5 movsd xmm0, [rsp+48h+var_3C+4] xorps xmm1, xmm1 ucomisd xmm0, xmm1 jnz short loc_26AB5 jp short loc_26AB5 jmp loc_26B42 loc_26AB5: cmp dword ptr [rsp+48h+var_3C], 0 jz short loc_26AEB lea rax, _ZN12LefDefParser8lefwFileE; LefDefParser::lefwFile mov rdi, [rax] mov edx, dword ptr [rsp+48h+var_3C] movsd xmm0, [rsp+48h+var_10] movsd xmm1, [rsp+48h+var_18] mov rcx, [rsp+48h+var_20] lea rsi, aViaIterateMask+6; " VIA ITERATE MASK %d %.11g %.11g %"... mov al, 2 call _fprintf jmp short loc_26B14 loc_26AEB: lea rax, _ZN12LefDefParser8lefwFileE; LefDefParser::lefwFile mov rdi, [rax] movsd xmm0, [rsp+48h+var_10] movsd xmm1, [rsp+48h+var_18] mov rdx, [rsp+48h+var_20] lea rsi, aViaIterate11g1+6; " VIA ITERATE %.11g %.11g %s " mov al, 2 call _fprintf loc_26B14: lea rax, _ZN12LefDefParser8lefwFileE; LefDefParser::lefwFile mov rdi, [rax] mov edx, [rsp+48h+var_24] mov ecx, [rsp+48h+var_28] movsd xmm0, [rsp+48h+var_30] movsd xmm1, [rsp+48h+var_3C+4] lea rsi, aDoDByDStep11g1+0Bh; "DO %d BY %d STEP %.11g %.11g " mov al, 2 call _fprintf jmp short loc_26BA3 loc_26B42: cmp dword ptr [rsp+48h+var_3C], 0 jz short loc_26B78 lea rax, _ZN12LefDefParser8lefwFileE; LefDefParser::lefwFile mov rdi, [rax] mov edx, dword ptr [rsp+48h+var_3C] movsd xmm0, [rsp+48h+var_10] movsd xmm1, [rsp+48h+var_18] mov rcx, [rsp+48h+var_20] lea rsi, aViaMaskD11g11g+6; " VIA MASK %d %.11g %.11g %s " mov al, 2 call _fprintf jmp short loc_26BA1 loc_26B78: lea rax, _ZN12LefDefParser8lefwFileE; LefDefParser::lefwFile mov rdi, [rax] movsd xmm0, [rsp+48h+var_10] movsd xmm1, [rsp+48h+var_18] mov rdx, [rsp+48h+var_20] lea rsi, aVia11g11gS+6; " VIA %.11g %.11g %s " mov al, 2 call _fprintf loc_26BA1: jmp short $+2 loc_26BA3: lea rax, _ZN12LefDefParser8lefwFileE; LefDefParser::lefwFile mov rdi, [rax] lea rsi, aDividercharS+11h; ";\n" mov al, 0 call _fprintf loc_26BBB: lea rax, _ZN12LefDefParser9lefwLinesE; LefDefParser::lefwLines mov ecx, [rax] add ecx, 1 lea rax, _ZN12LefDefParser9lefwLinesE; LefDefParser::lefwLines mov [rax], ecx lea rax, _ZN12LefDefParser19lefwIsMacroObsLayerE; LefDefParser::lefwIsMacroObsLayer mov dword ptr [rax], 0 mov [rsp+48h+var_4], 0 loc_26BE5: mov eax, [rsp+48h+var_4] add rsp, 48h retn
long long LefDefParser::lefwMacroObsVia( LefDefParser *this, double a2, double a3, const char *a4, int a5, unsigned int a6, double a7, double a8) { int v8; // ecx int v9; // r8d int v10; // r9d int v11; // r8d int v12; // r9d int v13; // edx int v14; // ecx int v15; // r8d int v16; // r9d if ( *(_QWORD *)&LefDefParser::lefwFile ) { if ( LefDefParser::lefwDidInit ) { if ( LefDefParser::lefwIsMacroObs ) { if ( this && *(_BYTE *)this ) { if ( a6 && *(double *)&LefDefParser::versionNum < 5.8 ) { return 5; } else if ( LefDefParser::lefwValidateMaskNumber((LefDefParser *)a6) ) { if ( LefDefParser::lefwWriteEncrypt ) { if ( !(_DWORD)a4 && !a5 && a7 == 0.0 && a8 == 0.0 ) { if ( a6 ) LefDefParser::encPrint( LefDefParser::lefwFile, (unsigned int)" VIA MASK %d %.11g %.11g %s ", a6, (_DWORD)this, v9, v10); else LefDefParser::encPrint( LefDefParser::lefwFile, (unsigned int)" VIA %.11g %.11g %s ", (_DWORD)this, v8, v9, v10); } else { if ( a6 ) LefDefParser::encPrint( LefDefParser::lefwFile, (unsigned int)" VIA ITERATE MASK %d %.11g %.11g %s ", a6, (_DWORD)this, v9, v10); else LefDefParser::encPrint( LefDefParser::lefwFile, (unsigned int)" VIA ITERATE %.11g %.11g %s ", (_DWORD)this, v8, v9, v10); LefDefParser::encPrint( LefDefParser::lefwFile, (unsigned int)"DO %d BY %d STEP %.11g %.11g ", (_DWORD)a4, a5, v11, v12); } LefDefParser::encPrint(LefDefParser::lefwFile, (unsigned int)";\n", v13, v14, v15, v16); } else { if ( !(_DWORD)a4 && !a5 && a7 == 0.0 && a8 == 0.0 ) { if ( a6 ) fprintf( *(_QWORD *)&LefDefParser::lefwFile, " VIA MASK %d %.11g %.11g %s ", a6, a2, a3, (const char *)this); else fprintf(*(_QWORD *)&LefDefParser::lefwFile, " VIA %.11g %.11g %s ", a2, a3, (const char *)this); } else { if ( a6 ) fprintf( *(_QWORD *)&LefDefParser::lefwFile, " VIA ITERATE MASK %d %.11g %.11g %s ", a6, a2, a3, (const char *)this); else fprintf( *(_QWORD *)&LefDefParser::lefwFile, " VIA ITERATE %.11g %.11g %s ", a2, a3, (const char *)this); fprintf(*(_QWORD *)&LefDefParser::lefwFile, "DO %d BY %d STEP %.11g %.11g ", (_DWORD)a4, a5, a7, a8); } fprintf(*(_QWORD *)&LefDefParser::lefwFile, ";\n"); } ++LefDefParser::lefwLines; LefDefParser::lefwIsMacroObsLayer = 0; return 0; } else { return 3; } } else { return 3; } } else { return 2; } } else { return 2; } } else { return 1; } }
lefwMacroObsVia: SUB RSP,0x48 MOVSD qword ptr [RSP + 0x38],XMM0 MOVSD qword ptr [RSP + 0x30],XMM1 MOV qword ptr [RSP + 0x28],RDI MOV dword ptr [RSP + 0x24],ESI MOV dword ptr [RSP + 0x20],EDX MOVSD qword ptr [RSP + 0x18],XMM2 MOVSD qword ptr [RSP + 0x10],XMM3 MOV dword ptr [RSP + 0xc],ECX LEA RAX,[0x132e00] CMP qword ptr [RAX],0x0 JNZ 0x00126897 MOV dword ptr [RSP + 0x44],0x1 JMP 0x00126be5 LAB_00126897: LEA RAX,[0x133054] CMP dword ptr [RAX],0x0 JNZ 0x001268b0 MOV dword ptr [RSP + 0x44],0x2 JMP 0x00126be5 LAB_001268b0: LEA RAX,[0x133098] CMP dword ptr [RAX],0x0 JNZ 0x001268c9 MOV dword ptr [RSP + 0x44],0x2 JMP 0x00126be5 LAB_001268c9: CMP qword ptr [RSP + 0x28],0x0 JZ 0x001268e6 CMP qword ptr [RSP + 0x28],0x0 JZ 0x001268e6 MOV RAX,qword ptr [RSP + 0x28] MOVSX EAX,byte ptr [RAX] CMP EAX,0x0 JNZ 0x001268f3 LAB_001268e6: MOV dword ptr [RSP + 0x44],0x3 JMP 0x00126be5 LAB_001268f3: CMP dword ptr [RSP + 0xc],0x0 JZ 0x00126919 MOVSD XMM0,qword ptr [0x001296e0] UCOMISD XMM0,qword ptr [0x00132d40] JBE 0x00126919 MOV dword ptr [RSP + 0x44],0x5 JMP 0x00126be5 LAB_00126919: MOV EDI,dword ptr [RSP + 0xc] CALL 0x0010bf20 TEST AL,0x1 JNZ 0x00126933 MOV dword ptr [RSP + 0x44],0x3 JMP 0x00126be5 LAB_00126933: CMP dword ptr [0x001330ec],0x0 JZ 0x00126a80 CMP dword ptr [RSP + 0x24],0x0 JNZ 0x00126975 CMP dword ptr [RSP + 0x20],0x0 JNZ 0x00126975 MOVSD XMM0,qword ptr [RSP + 0x18] XORPS XMM1,XMM1 UCOMISD XMM0,XMM1 JNZ 0x00126975 JP 0x00126975 MOVSD XMM0,qword ptr [RSP + 0x10] XORPS XMM1,XMM1 UCOMISD XMM0,XMM1 JNZ 0x00126975 JP 0x00126975 JMP 0x00126a02 LAB_00126975: CMP dword ptr [RSP + 0xc],0x0 JZ 0x001269ab LEA RAX,[0x132e00] MOV RDI,qword ptr [RAX] MOV EDX,dword ptr [RSP + 0xc] MOVSD XMM0,qword ptr [RSP + 0x38] MOVSD XMM1,qword ptr [RSP + 0x30] MOV RCX,qword ptr [RSP + 0x28] LEA RSI,[0x12bdcd] MOV AL,0x2 CALL 0x001289b0 JMP 0x001269d4 LAB_001269ab: LEA RAX,[0x132e00] MOV RDI,qword ptr [RAX] MOVSD XMM0,qword ptr [RSP + 0x38] MOVSD XMM1,qword ptr [RSP + 0x30] MOV RDX,qword ptr [RSP + 0x28] LEA RSI,[0x12bdfd] MOV AL,0x2 CALL 0x001289b0 LAB_001269d4: LEA RAX,[0x132e00] MOV RDI,qword ptr [RAX] MOV EDX,dword ptr [RSP + 0x24] MOV ECX,dword ptr [RSP + 0x20] MOVSD XMM0,qword ptr [RSP + 0x18] MOVSD XMM1,qword ptr [RSP + 0x10] LEA RSI,[0x12bbc8] MOV AL,0x2 CALL 0x001289b0 JMP 0x00126a63 LAB_00126a02: CMP dword ptr [RSP + 0xc],0x0 JZ 0x00126a38 LEA RAX,[0x132e00] MOV RDI,qword ptr [RAX] MOV EDX,dword ptr [RSP + 0xc] MOVSD XMM0,qword ptr [RSP + 0x38] MOVSD XMM1,qword ptr [RSP + 0x30] MOV RCX,qword ptr [RSP + 0x28] LEA RSI,[0x12be45] MOV AL,0x2 CALL 0x001289b0 JMP 0x00126a61 LAB_00126a38: LEA RAX,[0x132e00] MOV RDI,qword ptr [RAX] MOVSD XMM0,qword ptr [RSP + 0x38] MOVSD XMM1,qword ptr [RSP + 0x30] MOV RDX,qword ptr [RSP + 0x28] LEA RSI,[0x12be25] MOV AL,0x2 CALL 0x001289b0 LAB_00126a61: JMP 0x00126a63 LAB_00126a63: LEA RAX,[0x132e00] MOV RDI,qword ptr [RAX] LEA RSI,[0x129f54] MOV AL,0x0 CALL 0x001289b0 JMP 0x00126bbb LAB_00126a80: CMP dword ptr [RSP + 0x24],0x0 JNZ 0x00126ab5 CMP dword ptr [RSP + 0x20],0x0 JNZ 0x00126ab5 MOVSD XMM0,qword ptr [RSP + 0x18] XORPS XMM1,XMM1 UCOMISD XMM0,XMM1 JNZ 0x00126ab5 JP 0x00126ab5 MOVSD XMM0,qword ptr [RSP + 0x10] XORPS XMM1,XMM1 UCOMISD XMM0,XMM1 JNZ 0x00126ab5 JP 0x00126ab5 JMP 0x00126b42 LAB_00126ab5: CMP dword ptr [RSP + 0xc],0x0 JZ 0x00126aeb LEA RAX,[0x132e00] MOV RDI,qword ptr [RAX] MOV EDX,dword ptr [RSP + 0xc] MOVSD XMM0,qword ptr [RSP + 0x38] MOVSD XMM1,qword ptr [RSP + 0x30] MOV RCX,qword ptr [RSP + 0x28] LEA RSI,[0x12bdcd] MOV AL,0x2 CALL 0x00101100 JMP 0x00126b14 LAB_00126aeb: LEA RAX,[0x132e00] MOV RDI,qword ptr [RAX] MOVSD XMM0,qword ptr [RSP + 0x38] MOVSD XMM1,qword ptr [RSP + 0x30] MOV RDX,qword ptr [RSP + 0x28] LEA RSI,[0x12bdfd] MOV AL,0x2 CALL 0x00101100 LAB_00126b14: LEA RAX,[0x132e00] MOV RDI,qword ptr [RAX] MOV EDX,dword ptr [RSP + 0x24] MOV ECX,dword ptr [RSP + 0x20] MOVSD XMM0,qword ptr [RSP + 0x18] MOVSD XMM1,qword ptr [RSP + 0x10] LEA RSI,[0x12bbc8] MOV AL,0x2 CALL 0x00101100 JMP 0x00126ba3 LAB_00126b42: CMP dword ptr [RSP + 0xc],0x0 JZ 0x00126b78 LEA RAX,[0x132e00] MOV RDI,qword ptr [RAX] MOV EDX,dword ptr [RSP + 0xc] MOVSD XMM0,qword ptr [RSP + 0x38] MOVSD XMM1,qword ptr [RSP + 0x30] MOV RCX,qword ptr [RSP + 0x28] LEA RSI,[0x12be45] MOV AL,0x2 CALL 0x00101100 JMP 0x00126ba1 LAB_00126b78: LEA RAX,[0x132e00] MOV RDI,qword ptr [RAX] MOVSD XMM0,qword ptr [RSP + 0x38] MOVSD XMM1,qword ptr [RSP + 0x30] MOV RDX,qword ptr [RSP + 0x28] LEA RSI,[0x12be25] MOV AL,0x2 CALL 0x00101100 LAB_00126ba1: JMP 0x00126ba3 LAB_00126ba3: LEA RAX,[0x132e00] MOV RDI,qword ptr [RAX] LEA RSI,[0x129f54] MOV AL,0x0 CALL 0x00101100 LAB_00126bbb: LEA RAX,[0x13304c] MOV ECX,dword ptr [RAX] ADD ECX,0x1 LEA RAX,[0x13304c] MOV dword ptr [RAX],ECX LEA RAX,[0x13309c] MOV dword ptr [RAX],0x0 MOV dword ptr [RSP + 0x44],0x0 LAB_00126be5: MOV EAX,dword ptr [RSP + 0x44] ADD RSP,0x48 RET
/* LefDefParser::lefwMacroObsVia(double, double, char const*, int, int, double, double, int) */ int4 LefDefParser::lefwMacroObsVia (double param_1,double param_2,char *param_3,int param_4,int param_5,double param_6, double param_7,int param_8) { ulong uVar1; int4 local_4; if (lefwFile == (_IO_FILE *)0x0) { local_4 = 1; } else if (lefwDidInit == 0) { local_4 = 2; } else if (lefwIsMacroObs == 0) { local_4 = 2; } else if (((param_3 == (char *)0x0) || (param_3 == (char *)0x0)) || (*param_3 == '\0')) { local_4 = 3; } else if ((param_8 == 0) || (DAT_001296e0 <= versionNum)) { uVar1 = lefwValidateMaskNumber(param_8); if ((uVar1 & 1) == 0) { local_4 = 3; } else { if (lefwWriteEncrypt == 0) { if (((param_4 != 0) || (param_5 != 0)) || ((param_6 != 0.0 || (((NAN(param_6) || (param_7 != 0.0)) || (NAN(param_7))))))) { if (param_8 == 0) { fprintf(lefwFile," VIA ITERATE %.11g %.11g %s ",param_1,param_2,param_3); } else { fprintf(lefwFile," VIA ITERATE MASK %d %.11g %.11g %s ",param_1,param_2, (ulong)(uint)param_8,param_3); } fprintf(lefwFile,"DO %d BY %d STEP %.11g %.11g ",param_6,param_7,(ulong)(uint)param_4, (ulong)(uint)param_5); } else if (param_8 == 0) { fprintf(lefwFile," VIA %.11g %.11g %s ",param_1,param_2,param_3); } else { fprintf(lefwFile," VIA MASK %d %.11g %.11g %s ",param_1,param_2,(ulong)(uint)param_8, param_3); } fprintf(lefwFile,";\n"); } else { if (((param_4 != 0) || (param_5 != 0)) || (((param_6 != 0.0 || ((NAN(param_6) || (param_7 != 0.0)))) || (NAN(param_7))))) { if (param_8 == 0) { encPrint(lefwFile," VIA ITERATE %.11g %.11g %s ",param_1,param_2,param_3); } else { encPrint(lefwFile," VIA ITERATE MASK %d %.11g %.11g %s ",param_1,param_2, (ulong)(uint)param_8,param_3); } encPrint(lefwFile,"DO %d BY %d STEP %.11g %.11g ",param_6,param_7,(ulong)(uint)param_4, (ulong)(uint)param_5); } else if (param_8 == 0) { encPrint(lefwFile," VIA %.11g %.11g %s ",param_1,param_2,param_3); } else { encPrint(lefwFile," VIA MASK %d %.11g %.11g %s ",param_1,param_2,(ulong)(uint)param_8 ,param_3); } encPrint(lefwFile,";\n"); } lefwLines = lefwLines + 1; lefwIsMacroObsLayer = 0; local_4 = 0; } } else { local_4 = 5; } return local_4; }
34,714
is_valid_weakref_target
bluesky950520[P]quickjs/quickjs.c
static BOOL is_valid_weakref_target(JSValue val) { switch (JS_VALUE_GET_TAG(val)) { case JS_TAG_OBJECT: break; case JS_TAG_SYMBOL: { // Per spec: prohibit symbols registered with Symbol.for() JSAtomStruct *p = JS_VALUE_GET_PTR(val); if (p->atom_type != JS_ATOM_TYPE_GLOBAL_SYMBOL) break; // fallthru } default: return FALSE; } return TRUE; }
O0
c
is_valid_weakref_target: movq %rdi, -0x18(%rsp) movq %rsi, -0x10(%rsp) movl -0x10(%rsp), %eax movl %eax, -0x24(%rsp) subl $-0x8, %eax je 0x7c986 jmp 0x7c979 movl -0x24(%rsp), %eax subl $-0x1, %eax jne 0x7c9a9 jmp 0x7c984 jmp 0x7c9b3 movq -0x18(%rsp), %rax movq %rax, -0x20(%rsp) movq -0x20(%rsp), %rax movq 0x4(%rax), %rax shrq $0x3e, %rax movzbl %al, %eax cmpl $0x2, %eax je 0x7c9a7 jmp 0x7c9b3 jmp 0x7c9a9 movl $0x0, -0x4(%rsp) jmp 0x7c9bb movl $0x1, -0x4(%rsp) movl -0x4(%rsp), %eax retq
is_valid_weakref_target: mov [rsp+var_18], rdi mov [rsp+var_10], rsi mov eax, dword ptr [rsp+var_10] mov [rsp+var_24], eax sub eax, 0FFFFFFF8h jz short loc_7C986 jmp short $+2 loc_7C979: mov eax, [rsp+var_24] sub eax, 0FFFFFFFFh jnz short loc_7C9A9 jmp short $+2 loc_7C984: jmp short loc_7C9B3 loc_7C986: mov rax, [rsp+var_18] mov [rsp+var_20], rax mov rax, [rsp+var_20] mov rax, [rax+4] shr rax, 3Eh movzx eax, al cmp eax, 2 jz short loc_7C9A7 jmp short loc_7C9B3 loc_7C9A7: jmp short $+2 loc_7C9A9: mov [rsp+var_4], 0 jmp short loc_7C9BB loc_7C9B3: mov [rsp+var_4], 1 loc_7C9BB: mov eax, [rsp+var_4] retn
long long is_valid_weakref_target(long long a1, int a2) { if ( a2 == -8 ) { if ( *(_QWORD *)(a1 + 4) >> 62 != 2 ) return 1; } else if ( a2 == -1 ) { return 1; } return 0; }
is_valid_weakref_target: MOV qword ptr [RSP + -0x18],RDI MOV qword ptr [RSP + -0x10],RSI MOV EAX,dword ptr [RSP + -0x10] MOV dword ptr [RSP + -0x24],EAX SUB EAX,-0x8 JZ 0x0017c986 JMP 0x0017c979 LAB_0017c979: MOV EAX,dword ptr [RSP + -0x24] SUB EAX,-0x1 JNZ 0x0017c9a9 JMP 0x0017c984 LAB_0017c984: JMP 0x0017c9b3 LAB_0017c986: MOV RAX,qword ptr [RSP + -0x18] MOV qword ptr [RSP + -0x20],RAX MOV RAX,qword ptr [RSP + -0x20] MOV RAX,qword ptr [RAX + 0x4] SHR RAX,0x3e MOVZX EAX,AL CMP EAX,0x2 JZ 0x0017c9a7 JMP 0x0017c9b3 LAB_0017c9a7: JMP 0x0017c9a9 LAB_0017c9a9: MOV dword ptr [RSP + -0x4],0x0 JMP 0x0017c9bb LAB_0017c9b3: MOV dword ptr [RSP + -0x4],0x1 LAB_0017c9bb: MOV EAX,dword ptr [RSP + -0x4] RET
int4 is_valid_weakref_target(long param_1,int param_2) { if (param_2 == -8) { if ((uint)((ulong)*(int8 *)(param_1 + 4) >> 0x3e) == 2) { return 0; } } else if (param_2 != -1) { return 0; } return 1; }
34,715
translog_write_parts_on_page
eloqsql/storage/maria/ma_loghandler.c
static my_bool translog_write_parts_on_page(TRANSLOG_ADDRESS *horizon, struct st_buffer_cursor *cursor, translog_size_t length, struct st_translog_parts *parts) { translog_size_t left= length; uint cur= (uint) parts->current; DBUG_ENTER("translog_write_parts_on_page"); DBUG_PRINT("enter", ("Chunk length: %lu parts: %u of %u. Page size: %u " "Buffer size: %lu (%lu)", (ulong) length, (uint) (cur + 1), (uint) parts->elements, (uint) cursor->current_page_fill, (ulong) cursor->buffer->size, (ulong) (cursor->ptr - cursor->buffer->buffer))); DBUG_ASSERT(length > 0); DBUG_ASSERT(length + cursor->current_page_fill <= TRANSLOG_PAGE_SIZE); DBUG_ASSERT(length + cursor->ptr <= cursor->buffer->buffer + TRANSLOG_WRITE_BUFFER); do { translog_size_t len; LEX_CUSTRING *part; const uchar *buff; DBUG_ASSERT(cur < parts->elements); part= parts->parts + cur; buff= part->str; DBUG_PRINT("info", ("Part: %u Length: %lu left: %lu buff: %p", (uint) (cur + 1), (ulong) part->length, (ulong) left, buff)); if (part->length > left) { /* we should write less then the current part */ len= left; part->length-= len; part->str+= len; DBUG_PRINT("info", ("Set new part: %u Length: %lu", (uint) (cur + 1), (ulong) part->length)); } else { len= (translog_size_t) part->length; cur++; DBUG_PRINT("info", ("moved to next part (len: %lu)", (ulong) len)); } DBUG_PRINT("info", ("copy: %p <- %p %u", cursor->ptr, buff, len)); if (likely(len)) { memcpy(cursor->ptr, buff, len); left-= len; cursor->ptr+= len; } } while (left); DBUG_PRINT("info", ("Horizon: " LSN_FMT " Length %u(0x%x)", LSN_IN_PARTS(*horizon), length, length)); parts->current= cur; (*horizon)+= length; /* offset increasing */ cursor->current_page_fill+= length; if (!cursor->chaser) cursor->buffer->size+= length; /* We do not not updating parts->total_record_length here because it is need only before writing record to have total length */ DBUG_PRINT("info", ("Write parts buffer #%u: %p " "chaser: %d Size: %lu (%lu) " "Horizon: " LSN_FMT " buff offset: 0x%x", (uint) cursor->buffer->buffer_no, cursor->buffer, cursor->chaser, (ulong) cursor->buffer->size, (ulong) (cursor->ptr - cursor->buffer->buffer), LSN_IN_PARTS(*horizon), (uint) (LSN_OFFSET(cursor->buffer->offset) + cursor->buffer->size))); translog_check_cursor(cursor); DBUG_RETURN(0); }
O3
c
translog_write_parts_on_page: pushq %rbp movq %rsp, %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x18, %rsp movl %edx, %ebx movq %rsi, %r14 movq %rdi, -0x40(%rbp) movq %rcx, -0x38(%rbp) movl 0x8(%rcx), %r15d movl %edx, -0x2c(%rbp) movq -0x38(%rbp), %rax movq 0x10(%rax), %rax movl %r15d, %ecx shlq $0x4, %rcx movq (%rax,%rcx), %rsi movq 0x8(%rax,%rcx), %r12 movl %ebx, %edx movq %r12, %rdi subq %rdx, %rdi jbe 0x2b5c8 addq %rcx, %rax movq %rdi, 0x8(%rax) addq %rsi, %rdx movq %rdx, (%rax) movl %ebx, %r12d jmp 0x2b5cb incl %r15d testl %r12d, %r12d je 0x2b5e6 movq 0x20(%r14), %rdi movl %r12d, %r13d movq %r13, %rdx callq 0x29080 subl %r12d, %ebx addq %r13, 0x20(%r14) testl %ebx, %ebx jne 0x2b594 movq -0x38(%rbp), %rax movl %r15d, 0x8(%rax) movl -0x2c(%rbp), %ecx movl %ecx, %eax movq -0x40(%rbp), %rdx addq %rax, (%rdx) addw %cx, 0x30(%r14) cmpb $0x0, 0x37(%r14) jne 0x2b614 movq 0x28(%r14), %rax addl %ecx, 0x100030(%rax) addq $0x18, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq
translog_write_parts_on_page: push rbp mov rbp, rsp push r15 push r14 push r13 push r12 push rbx sub rsp, 18h mov ebx, edx mov r14, rsi mov [rbp+var_40], rdi mov [rbp+var_38], rcx mov r15d, [rcx+8] mov [rbp+var_2C], edx loc_2B594: mov rax, [rbp+var_38] mov rax, [rax+10h] mov ecx, r15d shl rcx, 4 mov rsi, [rax+rcx] mov r12, [rax+rcx+8] mov edx, ebx mov rdi, r12 sub rdi, rdx jbe short loc_2B5C8 add rax, rcx mov [rax+8], rdi add rdx, rsi mov [rax], rdx mov r12d, ebx jmp short loc_2B5CB loc_2B5C8: inc r15d loc_2B5CB: test r12d, r12d jz short loc_2B5E6 mov rdi, [r14+20h] mov r13d, r12d mov rdx, r13 call _memcpy sub ebx, r12d add [r14+20h], r13 loc_2B5E6: test ebx, ebx jnz short loc_2B594 mov rax, [rbp+var_38] mov [rax+8], r15d mov ecx, [rbp+var_2C] mov eax, ecx mov rdx, [rbp+var_40] add [rdx], rax add [r14+30h], cx cmp byte ptr [r14+37h], 0 jnz short loc_2B614 mov rax, [r14+28h] add dword ptr ds:qword_100030[rax], ecx loc_2B614: add rsp, 18h pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn
long long translog_write_parts_on_page(_QWORD *a1, long long a2, unsigned int a3, long long a4) { unsigned int v4; // ebx unsigned int v6; // r15d long long v7; // rax long long v8; // rcx long long v9; // rsi unsigned long long v10; // r12 _QWORD *v11; // rax long long result; // rax v4 = a3; v6 = *(_DWORD *)(a4 + 8); do { v7 = *(_QWORD *)(a4 + 16); v8 = 16LL * v6; v9 = *(_QWORD *)(v7 + v8); v10 = *(_QWORD *)(v7 + v8 + 8); if ( v10 <= v4 ) { ++v6; } else { v11 = (_QWORD *)(v8 + v7); v11[1] = v10 - v4; *v11 = v9 + v4; LODWORD(v10) = v4; } if ( (_DWORD)v10 ) { memcpy(*(_QWORD *)(a2 + 32), v9, (unsigned int)v10); v4 -= v10; *(_QWORD *)(a2 + 32) += (unsigned int)v10; } } while ( v4 ); *(_DWORD *)(a4 + 8) = v6; result = a3; *a1 += a3; *(_WORD *)(a2 + 48) += a3; if ( !*(_BYTE *)(a2 + 55) ) { result = *(_QWORD *)(a2 + 40); *(_DWORD *)((char *)&qword_100030 + result) += a3; } return result; }
translog_write_parts_on_page: PUSH RBP MOV RBP,RSP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0x18 MOV EBX,EDX MOV R14,RSI MOV qword ptr [RBP + -0x40],RDI MOV qword ptr [RBP + -0x38],RCX MOV R15D,dword ptr [RCX + 0x8] MOV dword ptr [RBP + -0x2c],EDX LAB_0012b594: MOV RAX,qword ptr [RBP + -0x38] MOV RAX,qword ptr [RAX + 0x10] MOV ECX,R15D SHL RCX,0x4 MOV RSI,qword ptr [RAX + RCX*0x1] MOV R12,qword ptr [RAX + RCX*0x1 + 0x8] MOV EDX,EBX MOV RDI,R12 SUB RDI,RDX JBE 0x0012b5c8 ADD RAX,RCX MOV qword ptr [RAX + 0x8],RDI ADD RDX,RSI MOV qword ptr [RAX],RDX MOV R12D,EBX JMP 0x0012b5cb LAB_0012b5c8: INC R15D LAB_0012b5cb: TEST R12D,R12D JZ 0x0012b5e6 MOV RDI,qword ptr [R14 + 0x20] MOV R13D,R12D MOV RDX,R13 CALL 0x00129080 SUB EBX,R12D ADD qword ptr [R14 + 0x20],R13 LAB_0012b5e6: TEST EBX,EBX JNZ 0x0012b594 MOV RAX,qword ptr [RBP + -0x38] MOV dword ptr [RAX + 0x8],R15D MOV ECX,dword ptr [RBP + -0x2c] MOV EAX,ECX MOV RDX,qword ptr [RBP + -0x40] ADD qword ptr [RDX],RAX ADD word ptr [R14 + 0x30],CX CMP byte ptr [R14 + 0x37],0x0 JNZ 0x0012b614 MOV RAX,qword ptr [R14 + 0x28] ADD dword ptr [RAX + 0x100030],ECX LAB_0012b614: ADD RSP,0x18 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET
void translog_write_parts_on_page(long *param_1,long param_2,uint param_3,long param_4) { long lVar1; void *__src; long lVar2; ulong uVar3; ulong uVar4; uint uVar5; uVar3 = (ulong)param_3; uVar5 = *(uint *)(param_4 + 8); do { lVar1 = *(long *)(param_4 + 0x10); lVar2 = (ulong)uVar5 * 0x10; __src = *(void **)(lVar1 + lVar2); uVar4 = *(ulong *)(lVar1 + 8 + lVar2); if (uVar4 < uVar3 || uVar4 - uVar3 == 0) { uVar5 = uVar5 + 1; } else { ((long *)(lVar1 + lVar2))[1] = uVar4 - uVar3; *(long *)(lVar1 + lVar2) = uVar3 + (long)__src; uVar4 = uVar3; } if ((int)uVar4 != 0) { memcpy(*(void **)(param_2 + 0x20),__src,uVar4 & 0xffffffff); uVar3 = (ulong)(uint)((int)uVar3 - (int)uVar4); *(long *)(param_2 + 0x20) = *(long *)(param_2 + 0x20) + (uVar4 & 0xffffffff); } } while ((int)uVar3 != 0); *(uint *)(param_4 + 8) = uVar5; *param_1 = *param_1 + (ulong)param_3; *(short *)(param_2 + 0x30) = *(short *)(param_2 + 0x30) + (short)param_3; if (*(char *)(param_2 + 0x37) == '\0') { *(uint *)(Elf64_Ehdr_00100000.e_ident_pad + *(long *)(param_2 + 0x28) + 0x27) = *(int *)(Elf64_Ehdr_00100000.e_ident_pad + *(long *)(param_2 + 0x28) + 0x27) + param_3; } return; }
34,716
my_cset_init_8bit
eloqsql/strings/ctype-simple.c
static my_bool my_cset_init_8bit(struct charset_info_st *cs, MY_CHARSET_LOADER *loader) { cs->state|= my_8bit_charset_flags_from_data(cs); cs->caseup_multiply= 1; cs->casedn_multiply= 1; cs->pad_char= ' '; if (!cs->to_lower || !cs->to_upper || !cs->m_ctype || !cs->tab_to_uni) return TRUE; return create_fromuni(cs, loader); }
O3
c
my_cset_init_8bit: pushq %rbp movq %rsp, %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x1808, %rsp # imm = 0x1808 movq %rsi, -0x30(%rbp) movq %rdi, %rbx movq 0x68(%rdi), %r15 xorl %eax, %eax testq %r15, %r15 je 0x3d445 xorl %ecx, %ecx cmpw $0x80, (%r15,%rcx,2) jae 0x3d426 incq %rcx cmpq $0x100, %rcx # imm = 0x100 jne 0x3d40c movl $0x1000, %eax # imm = 0x1000 xorl %ecx, %ecx movzwl (%r15,%rcx,2), %edx cmpq %rdx, %rcx jne 0x3d440 incq %rcx cmpq $0x80, %rcx jne 0x3d428 jmp 0x3d445 orl $0x2000, %eax # imm = 0x2000 orl %eax, 0xc(%rbx) movw $0x101, 0x94(%rbx) # imm = 0x101 movb $0x20, 0xb0(%rbx) movb $0x1, %al cmpq $0x0, 0x48(%rbx) je 0x3d635 cmpq $0x0, 0x50(%rbx) je 0x3d635 testq %r15, %r15 je 0x3d635 cmpq $0x0, 0x40(%rbx) je 0x3d635 leaq -0x1830(%rbp), %rdi xorl %r12d, %r12d movl $0x1800, %edx # imm = 0x1800 xorl %esi, %esi callq 0x24190 movzwl (%r15,%r12,2), %eax testq %rax, %rax sete %cl testq %r12, %r12 setne %dl testb %cl, %dl jne 0x3d4f2 movl %eax, %ecx shrl $0x8, %ecx leaq (%rcx,%rcx,2), %rcx leaq -0x1830(,%rcx,8), %rcx addq %rbp, %rcx movl (%rcx), %edx testl %edx, %edx je 0x3d4e6 movl 0x8(%rcx), %esi movl %eax, %edi cmpw %si, %ax jb 0x3d4d5 movl %esi, %edi movw %di, 0x8(%rcx) movzwl 0xa(%rcx), %esi cmpw %si, %ax ja 0x3d4ea movl %esi, %eax jmp 0x3d4ea movw %ax, 0x8(%rcx) movw %ax, 0xa(%rcx) incl %edx movl %edx, (%rcx) incq %r12 cmpq $0x100, %r12 # imm = 0x100 jne 0x3d49a leaq 0x1b0(%rip), %rcx # 0x3d6b5 leaq -0x1830(%rbp), %rdi movl $0x100, %esi # imm = 0x100 movl $0x18, %edx callq 0x24670 xorl %r13d, %r13d leaq (,%r13,2), %rax addq %r13, %rax cmpl $0x0, -0x1830(%rbp,%rax,8) je 0x3d5cc leaq -0x1830(,%rax,8), %r14 addq %rbp, %r14 movzwl 0xa(%r14), %r12d movzwl 0x8(%r14), %eax subq %rax, %r12 incq %r12 movq %r12, %rdi movq -0x30(%rbp), %rax callq *0x80(%rax) movq %rax, 0x10(%r14) testq %rax, %rax je 0x3d620 movq %rax, %r15 movq %rax, %rdi xorl %esi, %esi movq %r12, %rdx callq 0x24190 movl $0x1, %eax movq 0x68(%rbx), %rcx movzwl (%rcx,%rax,2), %ecx movzwl 0x8(%r14), %edx cmpw %dx, %cx jb 0x3d5ab leal -0x1(%rcx), %esi cmpw 0xa(%r14), %si jae 0x3d5ab subq %rdx, %rcx cmpb $0x0, (%r15,%rcx) jg 0x3d5ab movb %al, (%r15,%rcx) incq %rax cmpq $0x100, %rax # imm = 0x100 jne 0x3d581 incq %r13 cmpq $0x100, %r13 # imm = 0x100 jne 0x3d51e movl $0x100, %r13d # imm = 0x100 movl %r13d, %r14d movq %r14, %rdi shlq $0x4, %rdi addq $0x10, %rdi movq -0x30(%rbp), %rax callq *0x80(%rax) movq %rax, 0x70(%rbx) testq %rax, %rax je 0x3d620 testl %r13d, %r13d je 0x3d624 movq %r14, %rax shlq $0x4, %rax leaq -0x1828(%rbp), %rcx xorl %edx, %edx movq 0x70(%rbx), %rsi movups (%rcx), %xmm0 movups %xmm0, (%rsi,%rdx) addq $0x10, %rdx addq $0x18, %rcx cmpq %rdx, %rax jne 0x3d602 movq 0x70(%rbx), %rax jmp 0x3d627 movb $0x1, %al jmp 0x3d635 xorl %r14d, %r14d shlq $0x4, %r14 xorps %xmm0, %xmm0 movups %xmm0, (%rax,%r14) xorl %eax, %eax addq $0x1808, %rsp # imm = 0x1808 popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq
my_cset_init_8bit: push rbp mov rbp, rsp push r15 push r14 push r13 push r12 push rbx sub rsp, 1808h mov [rbp+var_30], rsi mov rbx, rdi mov r15, [rdi+68h] xor eax, eax test r15, r15 jz short loc_3D445 xor ecx, ecx loc_3D40C: cmp word ptr [r15+rcx*2], 80h jnb short loc_3D426 inc rcx cmp rcx, 100h jnz short loc_3D40C mov eax, 1000h loc_3D426: xor ecx, ecx loc_3D428: movzx edx, word ptr [r15+rcx*2] cmp rcx, rdx jnz short loc_3D440 inc rcx cmp rcx, 80h jnz short loc_3D428 jmp short loc_3D445 loc_3D440: or eax, 2000h loc_3D445: or [rbx+0Ch], eax mov word ptr [rbx+94h], 101h mov byte ptr [rbx+0B0h], 20h ; ' ' mov al, 1 cmp qword ptr [rbx+48h], 0 jz loc_3D635 cmp qword ptr [rbx+50h], 0 jz loc_3D635 test r15, r15 jz loc_3D635 cmp qword ptr [rbx+40h], 0 jz loc_3D635 lea rdi, [rbp+var_1830] xor r12d, r12d mov edx, 1800h xor esi, esi call _memset loc_3D49A: movzx eax, word ptr [r15+r12*2] test rax, rax setz cl test r12, r12 setnz dl test dl, cl jnz short loc_3D4F2 mov ecx, eax shr ecx, 8 lea rcx, [rcx+rcx*2] lea rcx, ds:0FFFFFFFFFFFFE7D0h[rcx*8] add rcx, rbp mov edx, [rcx] test edx, edx jz short loc_3D4E6 mov esi, [rcx+8] mov edi, eax cmp ax, si jb short loc_3D4D5 mov edi, esi loc_3D4D5: mov [rcx+8], di movzx esi, word ptr [rcx+0Ah] cmp ax, si ja short loc_3D4EA mov eax, esi jmp short loc_3D4EA loc_3D4E6: mov [rcx+8], ax loc_3D4EA: mov [rcx+0Ah], ax inc edx mov [rcx], edx loc_3D4F2: inc r12 cmp r12, 100h jnz short loc_3D49A lea rcx, pcmp lea rdi, [rbp+var_1830] mov esi, 100h mov edx, 18h call _qsort xor r13d, r13d loc_3D51E: lea rax, ds:0[r13*2] add rax, r13 cmp [rbp+rax*8+var_1830], 0 jz loc_3D5CC lea r14, ds:0FFFFFFFFFFFFE7D0h[rax*8] add r14, rbp movzx r12d, word ptr [r14+0Ah] movzx eax, word ptr [r14+8] sub r12, rax inc r12 mov rdi, r12 mov rax, [rbp+var_30] call qword ptr [rax+80h] mov [r14+10h], rax test rax, rax jz loc_3D620 mov r15, rax mov rdi, rax xor esi, esi mov rdx, r12 call _memset mov eax, 1 loc_3D581: mov rcx, [rbx+68h] movzx ecx, word ptr [rcx+rax*2] movzx edx, word ptr [r14+8] cmp cx, dx jb short loc_3D5AB lea esi, [rcx-1] cmp si, [r14+0Ah] jnb short loc_3D5AB sub rcx, rdx cmp byte ptr [r15+rcx], 0 jg short loc_3D5AB mov [r15+rcx], al loc_3D5AB: inc rax cmp rax, 100h jnz short loc_3D581 inc r13 cmp r13, 100h jnz loc_3D51E mov r13d, 100h loc_3D5CC: mov r14d, r13d mov rdi, r14 shl rdi, 4 add rdi, 10h mov rax, [rbp+var_30] call qword ptr [rax+80h] mov [rbx+70h], rax test rax, rax jz short loc_3D620 test r13d, r13d jz short loc_3D624 mov rax, r14 shl rax, 4 lea rcx, [rbp+var_1828] xor edx, edx loc_3D602: mov rsi, [rbx+70h] movups xmm0, xmmword ptr [rcx] movups xmmword ptr [rsi+rdx], xmm0 add rdx, 10h add rcx, 18h cmp rax, rdx jnz short loc_3D602 mov rax, [rbx+70h] jmp short loc_3D627 loc_3D620: mov al, 1 jmp short loc_3D635 loc_3D624: xor r14d, r14d loc_3D627: shl r14, 4 xorps xmm0, xmm0 movups xmmword ptr [rax+r14], xmm0 xor eax, eax loc_3D635: add rsp, 1808h pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn
char my_cset_init_8bit(long long a1, long long a2) { long long v3; // r15 int v4; // eax long long v5; // rcx long long v6; // rcx char result; // al long long v8; // r12 long long v9; // rax long long *v10; // rcx int v11; // edx __int16 v12; // di long long v13; // r13 long long *v14; // r14 unsigned long long v15; // r12 long long v16; // rax long long v17; // r15 long long i; // rax long long v19; // rcx long long v20; // rdx long long v21; // rcx long long v22; // r14 long long v23; // rax char *v24; // rcx long long v25; // rdx _DWORD v26[2]; // [rsp+0h] [rbp-1830h] BYREF char v27; // [rsp+8h] [rbp-1828h] BYREF long long v28; // [rsp+1800h] [rbp-30h] long long savedregs; // [rsp+1830h] [rbp+0h] BYREF _UNKNOWN *retaddr; // [rsp+1838h] [rbp+8h] v28 = a2; v3 = *(_QWORD *)(a1 + 104); v4 = 0; if ( v3 ) { v5 = 0LL; while ( *(_WORD *)(v3 + 2 * v5) < 0x80u ) { if ( ++v5 == 256 ) { v4 = 4096; break; } } v6 = 0LL; while ( v6 == *(unsigned __int16 *)(v3 + 2 * v6) ) { if ( ++v6 == 128 ) goto LABEL_11; } v4 |= 0x2000u; } LABEL_11: *(_DWORD *)(a1 + 12) |= v4; *(_WORD *)(a1 + 148) = 257; *(_BYTE *)(a1 + 176) = 32; result = 1; if ( *(_QWORD *)(a1 + 72) && *(_QWORD *)(a1 + 80) && v3 && *(_QWORD *)(a1 + 64) ) { v8 = 0LL; memset(v26, 0LL, 6144LL); do { v9 = *(unsigned __int16 *)(v3 + 2 * v8); if ( v9 != 0 || v8 == 0 ) { v10 = &savedregs + 3 * ((unsigned int)v9 >> 8) - 774; v11 = *(_DWORD *)v10; if ( *(_DWORD *)v10 ) { v12 = *(_WORD *)(v3 + 2 * v8); if ( (unsigned __int16)v9 >= (unsigned __int16)*((_DWORD *)v10 + 2) ) v12 = *((_DWORD *)v10 + 2); *((_WORD *)v10 + 4) = v12; if ( (unsigned __int16)v9 <= *((_WORD *)v10 + 5) ) LOWORD(v9) = *((_WORD *)v10 + 5); } else { *((_WORD *)v10 + 4) = v9; } *((_WORD *)v10 + 5) = v9; *(_DWORD *)v10 = v11 + 1; } ++v8; } while ( v8 != 256 ); qsort(v26, 256LL, 24LL, pcmp); v13 = 0LL; while ( v26[6 * v13] ) { v14 = &savedregs + 3 * v13 - 774; v15 = *((unsigned __int16 *)&retaddr + 12 * v13 - 3095) - (unsigned long long)*((unsigned __int16 *)&retaddr + 12 * v13 - 3096) + 1; v16 = (*(long long ( **)(unsigned long long))(v28 + 128))(v15); v14[2] = v16; if ( !v16 ) return 1; v17 = v16; memset(v16, 0LL, v15); for ( i = 1LL; i != 256; ++i ) { v19 = *(unsigned __int16 *)(*(_QWORD *)(a1 + 104) + 2 * i); v20 = *((unsigned __int16 *)v14 + 4); if ( (unsigned __int16)v19 >= (unsigned __int16)v20 && (unsigned __int16)(v19 - 1) < *((_WORD *)v14 + 5) ) { v21 = v19 - v20; if ( *(char *)(v17 + v21) <= 0 ) *(_BYTE *)(v17 + v21) = i; } } if ( ++v13 == 256 ) { LODWORD(v13) = 256; break; } } v22 = (unsigned int)v13; v23 = (*(long long ( **)(long long))(v28 + 128))(16LL * (unsigned int)v13 + 16); *(_QWORD *)(a1 + 112) = v23; if ( !v23 ) return 1; if ( (_DWORD)v13 ) { v24 = &v27; v25 = 0LL; do { *(_OWORD *)(*(_QWORD *)(a1 + 112) + v25) = *(_OWORD *)v24; v25 += 16LL; v24 += 24; } while ( 16LL * (unsigned int)v13 != v25 ); v23 = *(_QWORD *)(a1 + 112); } else { v22 = 0LL; } *(_OWORD *)(v23 + 16 * v22) = 0LL; return 0; } return result; }
my_cset_init_8bit: PUSH RBP MOV RBP,RSP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0x1808 MOV qword ptr [RBP + -0x30],RSI MOV RBX,RDI MOV R15,qword ptr [RDI + 0x68] XOR EAX,EAX TEST R15,R15 JZ 0x0013d445 XOR ECX,ECX LAB_0013d40c: CMP word ptr [R15 + RCX*0x2],0x80 JNC 0x0013d426 INC RCX CMP RCX,0x100 JNZ 0x0013d40c MOV EAX,0x1000 LAB_0013d426: XOR ECX,ECX LAB_0013d428: MOVZX EDX,word ptr [R15 + RCX*0x2] CMP RCX,RDX JNZ 0x0013d440 INC RCX CMP RCX,0x80 JNZ 0x0013d428 JMP 0x0013d445 LAB_0013d440: OR EAX,0x2000 LAB_0013d445: OR dword ptr [RBX + 0xc],EAX MOV word ptr [RBX + 0x94],0x101 MOV byte ptr [RBX + 0xb0],0x20 MOV AL,0x1 CMP qword ptr [RBX + 0x48],0x0 JZ 0x0013d635 CMP qword ptr [RBX + 0x50],0x0 JZ 0x0013d635 TEST R15,R15 JZ 0x0013d635 CMP qword ptr [RBX + 0x40],0x0 JZ 0x0013d635 LEA RDI,[RBP + -0x1830] XOR R12D,R12D MOV EDX,0x1800 XOR ESI,ESI CALL 0x00124190 LAB_0013d49a: MOVZX EAX,word ptr [R15 + R12*0x2] TEST RAX,RAX SETZ CL TEST R12,R12 SETNZ DL TEST DL,CL JNZ 0x0013d4f2 MOV ECX,EAX SHR ECX,0x8 LEA RCX,[RCX + RCX*0x2] LEA RCX,[-0x1830 + RCX*0x8] ADD RCX,RBP MOV EDX,dword ptr [RCX] TEST EDX,EDX JZ 0x0013d4e6 MOV ESI,dword ptr [RCX + 0x8] MOV EDI,EAX CMP AX,SI JC 0x0013d4d5 MOV EDI,ESI LAB_0013d4d5: MOV word ptr [RCX + 0x8],DI MOVZX ESI,word ptr [RCX + 0xa] CMP AX,SI JA 0x0013d4ea MOV EAX,ESI JMP 0x0013d4ea LAB_0013d4e6: MOV word ptr [RCX + 0x8],AX LAB_0013d4ea: MOV word ptr [RCX + 0xa],AX INC EDX MOV dword ptr [RCX],EDX LAB_0013d4f2: INC R12 CMP R12,0x100 JNZ 0x0013d49a LEA RCX,[0x13d6b5] LEA RDI,[RBP + -0x1830] MOV ESI,0x100 MOV EDX,0x18 CALL 0x00124670 XOR R13D,R13D LAB_0013d51e: LEA RAX,[R13*0x2] ADD RAX,R13 CMP dword ptr [RBP + RAX*0x8 + -0x1830],0x0 JZ 0x0013d5cc LEA R14,[-0x1830 + RAX*0x8] ADD R14,RBP MOVZX R12D,word ptr [R14 + 0xa] MOVZX EAX,word ptr [R14 + 0x8] SUB R12,RAX INC R12 MOV RDI,R12 MOV RAX,qword ptr [RBP + -0x30] CALL qword ptr [RAX + 0x80] MOV qword ptr [R14 + 0x10],RAX TEST RAX,RAX JZ 0x0013d620 MOV R15,RAX MOV RDI,RAX XOR ESI,ESI MOV RDX,R12 CALL 0x00124190 MOV EAX,0x1 LAB_0013d581: MOV RCX,qword ptr [RBX + 0x68] MOVZX ECX,word ptr [RCX + RAX*0x2] MOVZX EDX,word ptr [R14 + 0x8] CMP CX,DX JC 0x0013d5ab LEA ESI,[RCX + -0x1] CMP SI,word ptr [R14 + 0xa] JNC 0x0013d5ab SUB RCX,RDX CMP byte ptr [R15 + RCX*0x1],0x0 JG 0x0013d5ab MOV byte ptr [R15 + RCX*0x1],AL LAB_0013d5ab: INC RAX CMP RAX,0x100 JNZ 0x0013d581 INC R13 CMP R13,0x100 JNZ 0x0013d51e MOV R13D,0x100 LAB_0013d5cc: MOV R14D,R13D MOV RDI,R14 SHL RDI,0x4 ADD RDI,0x10 MOV RAX,qword ptr [RBP + -0x30] CALL qword ptr [RAX + 0x80] MOV qword ptr [RBX + 0x70],RAX TEST RAX,RAX JZ 0x0013d620 TEST R13D,R13D JZ 0x0013d624 MOV RAX,R14 SHL RAX,0x4 LEA RCX,[RBP + -0x1828] XOR EDX,EDX LAB_0013d602: MOV RSI,qword ptr [RBX + 0x70] MOVUPS XMM0,xmmword ptr [RCX] MOVUPS xmmword ptr [RSI + RDX*0x1],XMM0 ADD RDX,0x10 ADD RCX,0x18 CMP RAX,RDX JNZ 0x0013d602 MOV RAX,qword ptr [RBX + 0x70] JMP 0x0013d627 LAB_0013d620: MOV AL,0x1 JMP 0x0013d635 LAB_0013d624: XOR R14D,R14D LAB_0013d627: SHL R14,0x4 XORPS XMM0,XMM0 MOVUPS xmmword ptr [RAX + R14*0x1],XMM0 XOR EAX,EAX LAB_0013d635: ADD RSP,0x1808 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET
int8 my_cset_init_8bit(long param_1,long param_2) { int8 *puVar1; int iVar2; ushort uVar3; uint uVar4; int8 uVar5; void *__s; long lVar6; long lVar7; ulong uVar8; ushort *puVar9; ushort uVar10; size_t __n; ulong uVar11; int local_1838 [2]; ushort local_1830 [4]; int8 auStack_1828 [766]; long local_38; lVar6 = *(long *)(param_1 + 0x68); uVar4 = 0; if (lVar6 != 0) { lVar7 = 0; do { if (0x7f < *(ushort *)(lVar6 + lVar7 * 2)) goto LAB_0013d426; lVar7 = lVar7 + 1; } while (lVar7 != 0x100); uVar4 = 0x1000; LAB_0013d426: uVar8 = 0; do { if (uVar8 != *(ushort *)(lVar6 + uVar8 * 2)) { uVar4 = uVar4 | 0x2000; break; } uVar8 = uVar8 + 1; } while (uVar8 != 0x80); } *(uint *)(param_1 + 0xc) = *(uint *)(param_1 + 0xc) | uVar4; *(int2 *)(param_1 + 0x94) = 0x101; *(int1 *)(param_1 + 0xb0) = 0x20; uVar5 = 1; if ((((*(long *)(param_1 + 0x48) != 0) && (*(long *)(param_1 + 0x50) != 0)) && (lVar6 != 0)) && (*(long *)(param_1 + 0x40) != 0)) { lVar7 = 0; local_38 = param_2; memset(local_1838,0,0x1800); do { uVar3 = *(ushort *)(lVar6 + lVar7 * 2); if (lVar7 == 0 || uVar3 != 0) { uVar8 = (ulong)(uVar3 >> 8); iVar2 = local_1838[uVar8 * 6]; if (iVar2 == 0) { local_1830[uVar8 * 0xc] = uVar3; } else { uVar10 = uVar3; if ((ushort)*(int4 *)(local_1830 + uVar8 * 0xc) <= uVar3) { uVar10 = (ushort)*(int4 *)(local_1830 + uVar8 * 0xc); } local_1830[uVar8 * 0xc] = uVar10; if (uVar3 <= local_1830[uVar8 * 0xc + 1]) { uVar3 = local_1830[uVar8 * 0xc + 1]; } } local_1830[uVar8 * 0xc + 1] = uVar3; local_1838[uVar8 * 6] = iVar2 + 1; } lVar7 = lVar7 + 1; } while (lVar7 != 0x100); qsort(local_1838,0x100,0x18,pcmp); uVar8 = 0; do { if (local_1838[uVar8 * 6] == 0) goto LAB_0013d5cc; __n = ((ulong)local_1830[uVar8 * 0xc + 1] - (ulong)local_1830[uVar8 * 0xc]) + 1; __s = (void *)(**(code **)(local_38 + 0x80))(__n); auStack_1828[uVar8 * 3] = __s; if (__s == (void *)0x0) goto LAB_0013d620; memset(__s,0,__n); lVar6 = 1; do { uVar3 = *(ushort *)(*(long *)(param_1 + 0x68) + lVar6 * 2); if (((local_1830[uVar8 * 0xc] <= uVar3) && ((ushort)(uVar3 - 1) < local_1830[uVar8 * 0xc + 1])) && (lVar7 = (ulong)uVar3 - (ulong)local_1830[uVar8 * 0xc], *(char *)((long)__s + lVar7) < '\x01')) { *(char *)((long)__s + lVar7) = (char)lVar6; } lVar6 = lVar6 + 1; } while (lVar6 != 0x100); uVar8 = uVar8 + 1; } while (uVar8 != 0x100); uVar8 = 0x100; LAB_0013d5cc: uVar11 = uVar8 & 0xffffffff; lVar6 = (**(code **)(local_38 + 0x80))(uVar11 * 0x10 + 0x10); *(long *)(param_1 + 0x70) = lVar6; if (lVar6 == 0) { LAB_0013d620: uVar5 = 1; } else { if ((int)uVar8 == 0) { uVar11 = 0; } else { puVar9 = local_1830; lVar6 = 0; do { uVar5 = *(int8 *)(puVar9 + 4); puVar1 = (int8 *)(*(long *)(param_1 + 0x70) + lVar6); *puVar1 = *(int8 *)puVar9; puVar1[1] = uVar5; lVar6 = lVar6 + 0x10; puVar9 = puVar9 + 0xc; } while (uVar11 << 4 != lVar6); lVar6 = *(long *)(param_1 + 0x70); } puVar1 = (int8 *)(lVar6 + uVar11 * 0x10); *puVar1 = 0; puVar1[1] = 0; uVar5 = 0; } } return uVar5; }
34,717
fill_update_undo_parts
eloqsql/storage/maria/ma_blockrec.c
static size_t fill_update_undo_parts(MARIA_HA *info, const uchar *oldrec, const uchar *newrec, LEX_CUSTRING *log_parts, uint *log_parts_count) { MARIA_SHARE *share= info->s; MARIA_COLUMNDEF *column, *end_column; MARIA_ROW *old_row= &info->cur_row, *new_row= &info->new_row; uchar *field_data, *start_field_data, *length_str; uchar *old_field_lengths= old_row->field_lengths; uchar *new_field_lengths= new_row->field_lengths; size_t row_length= 0; uint field_lengths; LEX_CUSTRING *start_log_parts; my_bool new_column_is_empty; DBUG_ENTER("fill_update_undo_parts"); start_log_parts= log_parts; /* First log part is for number of fields, field numbers and lengths The +4 is to reserve place for the number of changed fields. */ start_field_data= field_data= info->update_field_data + 4; log_parts++; if (memcmp(oldrec, newrec, share->base.null_bytes)) { /* Store changed null bits */ *field_data++= (uchar) 255; /* Special case */ log_parts->str= oldrec; log_parts->length= share->base.null_bytes; row_length= log_parts->length; log_parts++; } /* Handle constant length fields */ for (column= share->columndef, end_column= column+ share->base.fixed_not_null_fields; column < end_column; column++) { if (memcmp(oldrec + column->offset, newrec + column->offset, column->length)) { field_data= ma_store_length(field_data, (uint) (column - share->columndef)); log_parts->str= oldrec + column->offset; log_parts->length= column->length; row_length+= column->length; log_parts++; } } /* Handle the rest: NULL fields and CHAR/VARCHAR fields and BLOB's */ for (end_column= share->columndef + share->base.fields; column < end_column; column++) { const uchar *new_column_pos, *old_column_pos; size_t new_column_length, old_column_length; /* First check if old column is null or empty */ if (oldrec[column->null_pos] & column->null_bit) { /* It's safe to skip this one as either the new column is also null (no change) or the new_column is not null, in which case the null-bit maps differed and we have already stored the null bitmap. */ continue; } if (old_row->empty_bits[column->empty_pos] & column->empty_bit) { if (new_row->empty_bits[column->empty_pos] & column->empty_bit) continue; /* Both are empty; skip */ /* Store null length column */ field_data= ma_store_length(field_data, (uint) (column - share->columndef)); field_data= ma_store_length(field_data, 0); continue; } /* Remember if the 'new' value is empty (as in this case we must always log the original value */ new_column_is_empty= ((newrec[column->null_pos] & column->null_bit) || (new_row->empty_bits[column->empty_pos] & column->empty_bit)); old_column_pos= oldrec + column->offset; new_column_pos= newrec + column->offset; old_column_length= new_column_length= column->length; switch (column->type) { case FIELD_CHECK: case FIELD_NORMAL: /* Fixed length field */ case FIELD_ZERO: case FIELD_SKIP_PRESPACE: /* Not packed */ case FIELD_SKIP_ZERO: /* Fixed length field */ break; case FIELD_VARCHAR: new_column_length--; /* Skip length prefix */ old_column_pos+= column->fill_length; new_column_pos+= column->fill_length; /* Fall through */ case FIELD_SKIP_ENDSPACE: /* CHAR */ { if (new_column_length <= 255) { old_column_length= *old_field_lengths++; if (!new_column_is_empty) new_column_length= *new_field_lengths++; } else { old_column_length= uint2korr(old_field_lengths); old_field_lengths+= 2; if (!new_column_is_empty) { new_column_length= uint2korr(new_field_lengths); new_field_lengths+= 2; } } break; } case FIELD_BLOB: { uint size_length= column->length - portable_sizeof_char_ptr; old_column_length= _ma_calc_blob_length(size_length, old_column_pos); memcpy((void*) &old_column_pos, oldrec + column->offset + size_length, sizeof(old_column_pos)); if (!new_column_is_empty) { new_column_length= _ma_calc_blob_length(size_length, new_column_pos); memcpy((void*) &new_column_pos, newrec + column->offset + size_length, sizeof(old_column_pos)); } break; } default: DBUG_ASSERT(0); } if (new_column_is_empty || new_column_length != old_column_length || memcmp(old_column_pos, new_column_pos, new_column_length)) { field_data= ma_store_length(field_data, (ulong) (column - share->columndef)); field_data= ma_store_length(field_data, (ulong) old_column_length); log_parts->str= old_column_pos; log_parts->length= old_column_length; row_length+= old_column_length; log_parts++; } } *log_parts_count= (uint) (log_parts - start_log_parts); /* Store length of field length data before the field/field_lengths */ field_lengths= (uint) (field_data - start_field_data); length_str= start_field_data - ma_calc_length_for_store_length(field_lengths); start_log_parts->str= length_str; ma_store_length(length_str, field_lengths); start_log_parts->length= (size_t) (field_data - start_log_parts->str); row_length+= start_log_parts->length; DBUG_RETURN(row_length); }
O3
c
fill_update_undo_parts: pushq %rbp movq %rsp, %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x78, %rsp movq %r8, -0x98(%rbp) movq %rcx, %rbx movq %rdx, %rax movq %rsi, %r14 movq (%rdi), %r13 movq 0xd0(%rdi), %rcx movq %rcx, -0x48(%rbp) movq 0x190(%rdi), %rcx movq %rcx, -0x40(%rbp) movq %rdi, -0x78(%rbp) movq 0x3c8(%rdi), %r15 leaq 0x4(%r15), %rcx movq %rcx, -0x80(%rbp) movl 0x3fc(%r13), %edx movq %rsi, %rdi movq %rax, -0x60(%rbp) movq %rax, %rsi callq 0x29560 testl %eax, %eax movq %rbx, -0xa0(%rbp) je 0x53090 movb $-0x1, 0x4(%r15) addq $0x5, %r15 movq %r14, 0x10(%rbx) movl 0x3fc(%r13), %eax movq %rax, -0x50(%rbp) movq %rax, 0x18(%rbx) leaq 0x20(%rbx), %r12 jmp 0x530a0 leaq 0x10(%rbx), %r12 movq $0x0, -0x50(%rbp) movq -0x80(%rbp), %r15 movq %r14, %r8 movq %r15, -0x30(%rbp) movq 0x588(%r13), %rbx movl 0x3cc(%r13), %eax testq %rax, %rax movq %r13, -0x58(%rbp) je 0x53148 imulq $0x38, %rax, %r14 addq %rbx, %r14 movq %rbx, %r15 movl 0x4(%rbx), %esi leaq (%r8,%rsi), %rdi addq -0x60(%rbp), %rsi movzwl 0x8(%rbx), %edx movq %r8, %r13 callq 0x29560 testl %eax, %eax je 0x5312b movq %r15, %rax movq -0x58(%rbp), %rcx subq 0x588(%rcx), %rax shrq $0x3, %rax imull $0xb6db6db7, %eax, %esi # imm = 0xB6DB6DB7 movq -0x30(%rbp), %rdi callq 0x4e6b6 movq %rax, -0x30(%rbp) movl 0x4(%rbx), %eax addq %r13, %rax movq %rax, (%r12) movzwl 0x8(%rbx), %eax movq %rax, 0x8(%r12) movzwl 0x8(%rbx), %eax addq %rax, -0x50(%rbp) addq $0x10, %r12 movq %r13, %r8 addq $0x38, %rbx addq $0x38, %r15 cmpq %r14, %rbx jb 0x530cc movq -0x58(%rbp), %r13 movq 0x588(%r13), %rax jmp 0x5314b movq %rbx, %rax movl 0x3c8(%r13), %ecx imulq $0x38, %rcx, %r9 addq %rax, %r9 cmpq %r9, %rbx movq -0x78(%rbp), %r14 jae 0x53378 movq %rbx, %r15 movq %r8, -0x70(%rbp) movq %r9, -0x68(%rbp) movzwl 0xe(%rbx), %eax movb 0x12(%rbx), %dl testb %dl, (%r8,%rax) je 0x53190 addq $0x38, %rbx addq $0x38, %r15 cmpq %r9, %rbx jb 0x53171 jmp 0x53378 movq 0xc8(%r14), %rdi movzwl 0x10(%rbx), %ecx movb 0x13(%rbx), %sil testb %sil, (%rdi,%rcx) je 0x531e7 movq 0x188(%r14), %rax testb %sil, (%rax,%rcx) jne 0x5317e movq %r15, %rax movq -0x58(%rbp), %rcx subq 0x588(%rcx), %rax shrq $0x3, %rax imull $0xb6db6db7, %eax, %esi # imm = 0xB6DB6DB7 movq -0x30(%rbp), %rdi callq 0x4e6b6 movq -0x68(%rbp), %r9 movq -0x70(%rbp), %r8 movb $0x0, (%rax) incq %rax movq %rax, -0x30(%rbp) jmp 0x5317e movq -0x60(%rbp), %rdi testb %dl, (%rdi,%rax) je 0x531f4 xorl %ecx, %ecx jmp 0x53202 movq 0x188(%r14), %rax testb %sil, (%rax,%rcx) sete %cl movl (%rbx), %eax movl 0x4(%rbx), %esi leaq (%r8,%rsi), %rdx addq -0x60(%rbp), %rsi movzwl 0x8(%rbx), %r14d cmpl $0x1, %eax je 0x53234 cmpl $0x4, %eax je 0x53267 cmpl $0x8, %eax jne 0x532ef decq %r14 movzwl 0xc(%rbx), %eax addq %rax, %rdx addq %rax, %rsi cmpq $0xff, %r14 ja 0x532ca movq -0x48(%rbp), %rax movzbl (%rax), %edi incq %rax movq %rax, -0x48(%rbp) testb %cl, %cl je 0x53313 movq -0x40(%rbp), %rax movzbl (%rax), %r14d incq %rax jmp 0x532e9 movq %rsi, -0x90(%rbp) addl $-0x8, %r14d movl %r14d, %edi movq %rdx, %rsi movq %r8, %r13 movl %ecx, -0x34(%rbp) callq 0x4a0eb movl 0x4(%rbx), %ecx addq %r13, %rcx movq (%r14,%rcx), %r13 cmpb $0x0, -0x34(%rbp) je 0x53373 movq %rax, -0x88(%rbp) movl %r14d, %edi movq -0x90(%rbp), %rsi callq 0x4a0eb movq -0x88(%rbp), %rdi movl 0x4(%rbx), %ecx addq -0x60(%rbp), %rcx movq (%r14,%rcx), %rsi movl -0x34(%rbp), %ecx movq %rax, %r14 movq %r13, %rdx jmp 0x532f2 movq -0x48(%rbp), %rax movzwl (%rax), %edi addq $0x2, %rax movq %rax, -0x48(%rbp) testb %cl, %cl je 0x53313 movq -0x40(%rbp), %rax movzwl (%rax), %r14d addq $0x2, %rax movq %rax, -0x40(%rbp) jmp 0x532f2 movq %r14, %rdi cmpq %rdi, %r14 sete %al andb %al, %cl cmpb $0x1, %cl jne 0x53313 movq %rdx, %r13 movq %rdx, %rdi movq %r14, %rdx callq 0x29560 testl %eax, %eax jne 0x53319 jmp 0x53362 movq %rdx, %r13 movq %rdi, %r14 movq %r15, %rsi movq -0x58(%rbp), %rax subq 0x588(%rax), %rsi sarq $0x3, %rsi movabsq $0x6db6db6db6db6db7, %rax # imm = 0x6DB6DB6DB6DB6DB7 imulq %rax, %rsi movq -0x30(%rbp), %rdi callq 0x4e6b6 movq %rax, %rdi movq %r14, %rsi callq 0x4e6b6 movq %rax, -0x30(%rbp) movq %r13, (%r12) movq %r14, 0x8(%r12) addq %r14, -0x50(%rbp) addq $0x10, %r12 movq -0x78(%rbp), %r14 movq -0x70(%rbp), %r8 movq -0x68(%rbp), %r9 jmp 0x5317e movq %rax, %r14 jmp 0x53319 movq -0xa0(%rbp), %rbx subq %rbx, %r12 shrq $0x4, %r12 movq -0x98(%rbp), %rax movl %r12d, (%rax) movq -0x30(%rbp), %r14 movl %r14d, %esi movq -0x80(%rbp), %rdi subl %edi, %esi movq $-0x1, %rax cmpl $0xfb, %esi jb 0x533cc xorl %eax, %eax cmpl $0xffff, %esi # imm = 0xFFFF ja 0x533c2 cmpl $0x100, %esi # imm = 0x100 adcq $-0x3, %rax jmp 0x533cc cmpl $0x1000000, %esi # imm = 0x1000000 adcq $-0x5, %rax addq %rax, %rdi movq %rdi, (%rbx) callq 0x4e6b6 subq (%rbx), %r14 movq %r14, 0x8(%rbx) addq -0x50(%rbp), %r14 movq %r14, %rax addq $0x78, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq
fill_update_undo_parts: push rbp mov rbp, rsp push r15 push r14 push r13 push r12 push rbx sub rsp, 78h mov [rbp+var_98], r8 mov rbx, rcx mov rax, rdx mov r14, rsi mov r13, [rdi] mov rcx, [rdi+0D0h] mov [rbp+var_48], rcx mov rcx, [rdi+190h] mov [rbp+var_40], rcx mov [rbp+var_78], rdi mov r15, [rdi+3C8h] lea rcx, [r15+4] mov [rbp+var_80], rcx mov edx, [r13+3FCh] mov rdi, rsi mov [rbp+var_60], rax mov rsi, rax call _bcmp test eax, eax mov [rbp+var_A0], rbx jz short loc_53090 mov byte ptr [r15+4], 0FFh add r15, 5 mov [rbx+10h], r14 mov eax, [r13+3FCh] mov [rbp+var_50], rax mov [rbx+18h], rax lea r12, [rbx+20h] jmp short loc_530A0 loc_53090: lea r12, [rbx+10h] mov [rbp+var_50], 0 mov r15, [rbp+var_80] loc_530A0: mov r8, r14 mov [rbp+var_30], r15 mov rbx, [r13+588h] mov eax, [r13+3CCh] test rax, rax mov [rbp+var_58], r13 jz loc_53148 imul r14, rax, 38h ; '8' add r14, rbx mov r15, rbx loc_530CC: mov esi, [rbx+4] lea rdi, [r8+rsi] add rsi, [rbp+var_60] movzx edx, word ptr [rbx+8] mov r13, r8 call _bcmp test eax, eax jz short loc_5312B mov rax, r15 mov rcx, [rbp+var_58] sub rax, [rcx+588h] shr rax, 3 imul esi, eax, 0B6DB6DB7h mov rdi, [rbp+var_30] call ma_store_length mov [rbp+var_30], rax mov eax, [rbx+4] add rax, r13 mov [r12], rax movzx eax, word ptr [rbx+8] mov [r12+8], rax movzx eax, word ptr [rbx+8] add [rbp+var_50], rax add r12, 10h loc_5312B: mov r8, r13 add rbx, 38h ; '8' add r15, 38h ; '8' cmp rbx, r14 jb short loc_530CC mov r13, [rbp+var_58] mov rax, [r13+588h] jmp short loc_5314B loc_53148: mov rax, rbx loc_5314B: mov ecx, [r13+3C8h] imul r9, rcx, 38h ; '8' add r9, rax cmp rbx, r9 mov r14, [rbp+var_78] jnb loc_53378 mov r15, rbx mov [rbp+var_70], r8 mov [rbp+var_68], r9 loc_53171: movzx eax, word ptr [rbx+0Eh] mov dl, [rbx+12h] test [r8+rax], dl jz short loc_53190 loc_5317E: add rbx, 38h ; '8' add r15, 38h ; '8' cmp rbx, r9 jb short loc_53171 jmp loc_53378 loc_53190: mov rdi, [r14+0C8h] movzx ecx, word ptr [rbx+10h] mov sil, [rbx+13h] test [rdi+rcx], sil jz short loc_531E7 mov rax, [r14+188h] test [rax+rcx], sil jnz short loc_5317E mov rax, r15 mov rcx, [rbp+var_58] sub rax, [rcx+588h] shr rax, 3 imul esi, eax, 0B6DB6DB7h mov rdi, [rbp+var_30] call ma_store_length mov r9, [rbp+var_68] mov r8, [rbp+var_70] mov byte ptr [rax], 0 inc rax mov [rbp+var_30], rax jmp short loc_5317E loc_531E7: mov rdi, [rbp+var_60] test [rdi+rax], dl jz short loc_531F4 xor ecx, ecx jmp short loc_53202 loc_531F4: mov rax, [r14+188h] test [rax+rcx], sil setz cl loc_53202: mov eax, [rbx] mov esi, [rbx+4] lea rdx, [r8+rsi] add rsi, [rbp+var_60] movzx r14d, word ptr [rbx+8] cmp eax, 1 jz short loc_53234 cmp eax, 4 jz short loc_53267 cmp eax, 8 jnz loc_532EF dec r14 movzx eax, word ptr [rbx+0Ch] add rdx, rax add rsi, rax loc_53234: cmp r14, 0FFh ja loc_532CA mov rax, [rbp+var_48] movzx edi, byte ptr [rax] inc rax mov [rbp+var_48], rax test cl, cl jz loc_53313 mov rax, [rbp+var_40] movzx r14d, byte ptr [rax] inc rax jmp loc_532E9 loc_53267: mov [rbp+var_90], rsi add r14d, 0FFFFFFF8h mov edi, r14d mov rsi, rdx mov r13, r8 mov [rbp+var_34], ecx call _ma_calc_blob_length mov ecx, [rbx+4] add rcx, r13 mov r13, [r14+rcx] cmp byte ptr [rbp+var_34], 0 jz loc_53373 mov [rbp+var_88], rax mov edi, r14d mov rsi, [rbp+var_90] call _ma_calc_blob_length mov rdi, [rbp+var_88] mov ecx, [rbx+4] add rcx, [rbp+var_60] mov rsi, [r14+rcx] mov ecx, [rbp+var_34] mov r14, rax mov rdx, r13 jmp short loc_532F2 loc_532CA: mov rax, [rbp+var_48] movzx edi, word ptr [rax] add rax, 2 mov [rbp+var_48], rax test cl, cl jz short loc_53313 mov rax, [rbp+var_40] movzx r14d, word ptr [rax] add rax, 2 loc_532E9: mov [rbp+var_40], rax jmp short loc_532F2 loc_532EF: mov rdi, r14 loc_532F2: cmp r14, rdi setz al and cl, al cmp cl, 1 jnz short loc_53313 mov r13, rdx mov rdi, rdx mov rdx, r14 call _bcmp test eax, eax jnz short loc_53319 jmp short loc_53362 loc_53313: mov r13, rdx mov r14, rdi loc_53319: mov rsi, r15 mov rax, [rbp+var_58] sub rsi, [rax+588h] sar rsi, 3 mov rax, 6DB6DB6DB6DB6DB7h imul rsi, rax mov rdi, [rbp+var_30] call ma_store_length mov rdi, rax mov rsi, r14 call ma_store_length mov [rbp+var_30], rax mov [r12], r13 mov [r12+8], r14 add [rbp+var_50], r14 add r12, 10h loc_53362: mov r14, [rbp+var_78] mov r8, [rbp+var_70] mov r9, [rbp+var_68] jmp loc_5317E loc_53373: mov r14, rax jmp short loc_53319 loc_53378: mov rbx, [rbp+var_A0] sub r12, rbx shr r12, 4 mov rax, [rbp+var_98] mov [rax], r12d mov r14, [rbp+var_30] mov esi, r14d mov rdi, [rbp+var_80] sub esi, edi mov rax, 0FFFFFFFFFFFFFFFFh cmp esi, 0FBh jb short loc_533CC xor eax, eax cmp esi, 0FFFFh ja short loc_533C2 cmp esi, 100h adc rax, 0FFFFFFFFFFFFFFFDh jmp short loc_533CC loc_533C2: cmp esi, 1000000h adc rax, 0FFFFFFFFFFFFFFFBh loc_533CC: add rdi, rax mov [rbx], rdi call ma_store_length sub r14, [rbx] mov [rbx+8], r14 add r14, [rbp+var_50] mov rax, r14 add rsp, 78h pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn
long long fill_update_undo_parts(_QWORD *a1, long long a2, long long a3, char *a4, _DWORD *a5) { long long v6; // r13 long long v7; // r15 long long v8; // r15 char *v9; // r12 long long v10; // r8 int *v11; // rbx unsigned long long v12; // r14 long long v13; // r15 long long v14; // r13 long long v15; // rax long long v16; // rcx unsigned long long v17; // r9 _QWORD *v18; // r14 int *v19; // r15 long long v20; // rax unsigned __int8 v21; // dl long long v22; // rcx unsigned __int8 v23; // si _BYTE *v24; // rax bool v25; // cl int v26; // eax long long v27; // rsi unsigned __int8 *v28; // rdx unsigned __int8 *v29; // rsi unsigned long long v30; // r14 long long v31; // rax unsigned long long v32; // rdi unsigned __int16 *v33; // rax long long v34; // r14 long long v35; // r13 unsigned long long v36; // rax unsigned __int8 *v37; // r13 unsigned long long v38; // rax long long v39; // rax unsigned long long v40; // rsi long long v41; // rax long long v42; // r14 unsigned long long v46; // [rsp+18h] [rbp-88h] long long v47; // [rsp+20h] [rbp-80h] long long v49; // [rsp+30h] [rbp-70h] unsigned long long v50; // [rsp+38h] [rbp-68h] long long v52; // [rsp+48h] [rbp-58h] long long v53; // [rsp+50h] [rbp-50h] unsigned __int16 *v54; // [rsp+58h] [rbp-48h] unsigned __int16 *v55; // [rsp+60h] [rbp-40h] bool v56; // [rsp+6Ch] [rbp-34h] long long v57; // [rsp+70h] [rbp-30h] v6 = *a1; v54 = (unsigned __int16 *)a1[26]; v55 = (unsigned __int16 *)a1[50]; v7 = a1[121]; v47 = v7 + 4; if ( (unsigned int)bcmp(a2, a3, *(unsigned int *)(*a1 + 1020LL)) ) { *(_BYTE *)(v7 + 4) = -1; v8 = v7 + 5; *((_QWORD *)a4 + 2) = a2; v53 = *(unsigned int *)(v6 + 1020); *((_QWORD *)a4 + 3) = v53; v9 = a4 + 32; } else { v9 = a4 + 16; v53 = 0LL; v8 = v7 + 4; } v10 = a2; v57 = v8; v11 = *(int **)(v6 + 1416); v52 = v6; if ( *(_DWORD *)(v6 + 972) ) { v12 = (unsigned long long)&v11[14 * *(unsigned int *)(v6 + 972)]; v13 = *(_QWORD *)(v6 + 1416); do { v14 = v10; if ( (unsigned int)bcmp(v10 + (unsigned int)v11[1], a3 + (unsigned int)v11[1], *((unsigned __int16 *)v11 + 4)) ) { v57 = ma_store_length(v57, -1227133513 * (unsigned int)((unsigned long long)(v13 - *(_QWORD *)(v52 + 1416)) >> 3)); *(_QWORD *)v9 = v14 + (unsigned int)v11[1]; *((_QWORD *)v9 + 1) = *((unsigned __int16 *)v11 + 4); v53 += *((unsigned __int16 *)v11 + 4); v9 += 16; } v10 = v14; v11 += 14; v13 += 56LL; } while ( (unsigned long long)v11 < v12 ); v6 = v52; v15 = *(_QWORD *)(v52 + 1416); } else { v15 = *(_QWORD *)(v6 + 1416); } v16 = *(unsigned int *)(v6 + 968); v17 = v15 + 56 * v16; v18 = a1; if ( (unsigned long long)v11 < v17 ) { v19 = v11; v49 = v10; v50 = v15 + 56 * v16; while ( 1 ) { v20 = *((unsigned __int16 *)v11 + 7); v21 = *((_BYTE *)v11 + 18); if ( (v21 & *(_BYTE *)(v10 + v20)) == 0 ) break; LABEL_14: v11 += 14; v19 += 14; if ( (unsigned long long)v11 >= v17 ) goto LABEL_42; } v22 = *((unsigned __int16 *)v11 + 8); v23 = *((_BYTE *)v11 + 19); if ( (v23 & *(_BYTE *)(v18[25] + v22)) != 0 ) { if ( (v23 & *(_BYTE *)(v18[49] + v22)) == 0 ) { v24 = (_BYTE *)ma_store_length( v57, -1227133513 * (unsigned int)(((unsigned long long)v19 - *(_QWORD *)(v52 + 1416)) >> 3)); v17 = v50; v10 = v49; *v24 = 0; v57 = (long long)(v24 + 1); } goto LABEL_14; } v25 = (v21 & *(_BYTE *)(a3 + v20)) == 0 && (v23 & *(_BYTE *)(v18[49] + v22)) == 0; v26 = *v11; v27 = (unsigned int)v11[1]; v28 = (unsigned __int8 *)(v10 + v27); v29 = (unsigned __int8 *)(a3 + v27); v30 = *((unsigned __int16 *)v11 + 4); if ( *v11 != 1 ) { if ( v26 == 4 ) { v34 = (unsigned int)(v30 - 8); v35 = v10; v56 = v25; v36 = ma_calc_blob_length(v34, v28); v37 = *(unsigned __int8 **)(v34 + v35 + (unsigned int)v11[1]); if ( !v56 ) { v30 = v36; goto LABEL_39; } v46 = v36; v38 = ma_calc_blob_length(v34, v29); v32 = v46; v29 = *(unsigned __int8 **)(v34 + a3 + (unsigned int)v11[1]); v25 = v56; v30 = v38; v28 = v37; goto LABEL_35; } if ( v26 != 8 ) { v32 = *((unsigned __int16 *)v11 + 4); LABEL_35: if ( v30 == v32 && v25 ) { v37 = v28; if ( !(unsigned int)bcmp(v28, v29, v30) ) goto LABEL_40; goto LABEL_39; } goto LABEL_38; } --v30; v31 = *((unsigned __int16 *)v11 + 6); v28 += v31; v29 += v31; } if ( v30 > 0xFF ) { v32 = *v54++; if ( v25 ) { v30 = *v55; v33 = v55 + 1; goto LABEL_33; } } else { v32 = *(unsigned __int8 *)v54; v54 = (unsigned __int16 *)((char *)v54 + 1); if ( v25 ) { v30 = *(unsigned __int8 *)v55; v33 = (unsigned __int16 *)((char *)v55 + 1); LABEL_33: v55 = v33; goto LABEL_35; } } LABEL_38: v37 = v28; v30 = v32; LABEL_39: v39 = ma_store_length(v57, 0x6DB6DB6DB6DB6DB7LL * (((long long)v19 - *(_QWORD *)(v52 + 1416)) >> 3)); v57 = ma_store_length(v39, v30); *(_QWORD *)v9 = v37; *((_QWORD *)v9 + 1) = v30; v53 += v30; v9 += 16; LABEL_40: v18 = a1; v10 = v49; v17 = v50; goto LABEL_14; } LABEL_42: *a5 = (unsigned long long)(v9 - a4) >> 4; v40 = (unsigned int)(v57 - v47); v41 = -1LL; if ( (unsigned int)v40 >= 0xFB ) { if ( (unsigned int)v40 > 0xFFFF ) v41 = ((unsigned int)v40 < 0x1000000) - 5LL; else v41 = ((unsigned int)v40 < 0x100) - 3LL; } *(_QWORD *)a4 = v41 + v47; ma_store_length(v41 + v47, v40); v42 = v57 - *(_QWORD *)a4; *((_QWORD *)a4 + 1) = v42; return v53 + v42; }
fill_update_undo_parts: PUSH RBP MOV RBP,RSP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0x78 MOV qword ptr [RBP + -0x98],R8 MOV RBX,RCX MOV RAX,RDX MOV R14,RSI MOV R13,qword ptr [RDI] MOV RCX,qword ptr [RDI + 0xd0] MOV qword ptr [RBP + -0x48],RCX MOV RCX,qword ptr [RDI + 0x190] MOV qword ptr [RBP + -0x40],RCX MOV qword ptr [RBP + -0x78],RDI MOV R15,qword ptr [RDI + 0x3c8] LEA RCX,[R15 + 0x4] MOV qword ptr [RBP + -0x80],RCX MOV EDX,dword ptr [R13 + 0x3fc] MOV RDI,RSI MOV qword ptr [RBP + -0x60],RAX MOV RSI,RAX CALL 0x00129560 TEST EAX,EAX MOV qword ptr [RBP + -0xa0],RBX JZ 0x00153090 MOV byte ptr [R15 + 0x4],0xff ADD R15,0x5 MOV qword ptr [RBX + 0x10],R14 MOV EAX,dword ptr [R13 + 0x3fc] MOV qword ptr [RBP + -0x50],RAX MOV qword ptr [RBX + 0x18],RAX LEA R12,[RBX + 0x20] JMP 0x001530a0 LAB_00153090: LEA R12,[RBX + 0x10] MOV qword ptr [RBP + -0x50],0x0 MOV R15,qword ptr [RBP + -0x80] LAB_001530a0: MOV R8,R14 MOV qword ptr [RBP + -0x30],R15 MOV RBX,qword ptr [R13 + 0x588] MOV EAX,dword ptr [R13 + 0x3cc] TEST RAX,RAX MOV qword ptr [RBP + -0x58],R13 JZ 0x00153148 IMUL R14,RAX,0x38 ADD R14,RBX MOV R15,RBX LAB_001530cc: MOV ESI,dword ptr [RBX + 0x4] LEA RDI,[R8 + RSI*0x1] ADD RSI,qword ptr [RBP + -0x60] MOVZX EDX,word ptr [RBX + 0x8] MOV R13,R8 CALL 0x00129560 TEST EAX,EAX JZ 0x0015312b MOV RAX,R15 MOV RCX,qword ptr [RBP + -0x58] SUB RAX,qword ptr [RCX + 0x588] SHR RAX,0x3 IMUL ESI,EAX,-0x49249249 MOV RDI,qword ptr [RBP + -0x30] CALL 0x0014e6b6 MOV qword ptr [RBP + -0x30],RAX MOV EAX,dword ptr [RBX + 0x4] ADD RAX,R13 MOV qword ptr [R12],RAX MOVZX EAX,word ptr [RBX + 0x8] MOV qword ptr [R12 + 0x8],RAX MOVZX EAX,word ptr [RBX + 0x8] ADD qword ptr [RBP + -0x50],RAX ADD R12,0x10 LAB_0015312b: MOV R8,R13 ADD RBX,0x38 ADD R15,0x38 CMP RBX,R14 JC 0x001530cc MOV R13,qword ptr [RBP + -0x58] MOV RAX,qword ptr [R13 + 0x588] JMP 0x0015314b LAB_00153148: MOV RAX,RBX LAB_0015314b: MOV ECX,dword ptr [R13 + 0x3c8] IMUL R9,RCX,0x38 ADD R9,RAX CMP RBX,R9 MOV R14,qword ptr [RBP + -0x78] JNC 0x00153378 MOV R15,RBX MOV qword ptr [RBP + -0x70],R8 MOV qword ptr [RBP + -0x68],R9 LAB_00153171: MOVZX EAX,word ptr [RBX + 0xe] MOV DL,byte ptr [RBX + 0x12] TEST byte ptr [R8 + RAX*0x1],DL JZ 0x00153190 LAB_0015317e: ADD RBX,0x38 ADD R15,0x38 CMP RBX,R9 JC 0x00153171 JMP 0x00153378 LAB_00153190: MOV RDI,qword ptr [R14 + 0xc8] MOVZX ECX,word ptr [RBX + 0x10] MOV SIL,byte ptr [RBX + 0x13] TEST byte ptr [RDI + RCX*0x1],SIL JZ 0x001531e7 MOV RAX,qword ptr [R14 + 0x188] TEST byte ptr [RAX + RCX*0x1],SIL JNZ 0x0015317e MOV RAX,R15 MOV RCX,qword ptr [RBP + -0x58] SUB RAX,qword ptr [RCX + 0x588] SHR RAX,0x3 IMUL ESI,EAX,-0x49249249 MOV RDI,qword ptr [RBP + -0x30] CALL 0x0014e6b6 MOV R9,qword ptr [RBP + -0x68] MOV R8,qword ptr [RBP + -0x70] MOV byte ptr [RAX],0x0 INC RAX MOV qword ptr [RBP + -0x30],RAX JMP 0x0015317e LAB_001531e7: MOV RDI,qword ptr [RBP + -0x60] TEST byte ptr [RDI + RAX*0x1],DL JZ 0x001531f4 XOR ECX,ECX JMP 0x00153202 LAB_001531f4: MOV RAX,qword ptr [R14 + 0x188] TEST byte ptr [RAX + RCX*0x1],SIL SETZ CL LAB_00153202: MOV EAX,dword ptr [RBX] MOV ESI,dword ptr [RBX + 0x4] LEA RDX,[R8 + RSI*0x1] ADD RSI,qword ptr [RBP + -0x60] MOVZX R14D,word ptr [RBX + 0x8] CMP EAX,0x1 JZ 0x00153234 CMP EAX,0x4 JZ 0x00153267 CMP EAX,0x8 JNZ 0x001532ef DEC R14 MOVZX EAX,word ptr [RBX + 0xc] ADD RDX,RAX ADD RSI,RAX LAB_00153234: CMP R14,0xff JA 0x001532ca MOV RAX,qword ptr [RBP + -0x48] MOVZX EDI,byte ptr [RAX] INC RAX MOV qword ptr [RBP + -0x48],RAX TEST CL,CL JZ 0x00153313 MOV RAX,qword ptr [RBP + -0x40] MOVZX R14D,byte ptr [RAX] INC RAX JMP 0x001532e9 LAB_00153267: MOV qword ptr [RBP + -0x90],RSI ADD R14D,-0x8 MOV EDI,R14D MOV RSI,RDX MOV R13,R8 MOV dword ptr [RBP + -0x34],ECX CALL 0x0014a0eb MOV ECX,dword ptr [RBX + 0x4] ADD RCX,R13 MOV R13,qword ptr [R14 + RCX*0x1] CMP byte ptr [RBP + -0x34],0x0 JZ 0x00153373 MOV qword ptr [RBP + -0x88],RAX MOV EDI,R14D MOV RSI,qword ptr [RBP + -0x90] CALL 0x0014a0eb MOV RDI,qword ptr [RBP + -0x88] MOV ECX,dword ptr [RBX + 0x4] ADD RCX,qword ptr [RBP + -0x60] MOV RSI,qword ptr [R14 + RCX*0x1] MOV ECX,dword ptr [RBP + -0x34] MOV R14,RAX MOV RDX,R13 JMP 0x001532f2 LAB_001532ca: MOV RAX,qword ptr [RBP + -0x48] MOVZX EDI,word ptr [RAX] ADD RAX,0x2 MOV qword ptr [RBP + -0x48],RAX TEST CL,CL JZ 0x00153313 MOV RAX,qword ptr [RBP + -0x40] MOVZX R14D,word ptr [RAX] ADD RAX,0x2 LAB_001532e9: MOV qword ptr [RBP + -0x40],RAX JMP 0x001532f2 LAB_001532ef: MOV RDI,R14 LAB_001532f2: CMP R14,RDI SETZ AL AND CL,AL CMP CL,0x1 JNZ 0x00153313 MOV R13,RDX MOV RDI,RDX MOV RDX,R14 CALL 0x00129560 TEST EAX,EAX JNZ 0x00153319 JMP 0x00153362 LAB_00153313: MOV R13,RDX MOV R14,RDI LAB_00153319: MOV RSI,R15 MOV RAX,qword ptr [RBP + -0x58] SUB RSI,qword ptr [RAX + 0x588] SAR RSI,0x3 MOV RAX,0x6db6db6db6db6db7 IMUL RSI,RAX MOV RDI,qword ptr [RBP + -0x30] CALL 0x0014e6b6 MOV RDI,RAX MOV RSI,R14 CALL 0x0014e6b6 MOV qword ptr [RBP + -0x30],RAX MOV qword ptr [R12],R13 MOV qword ptr [R12 + 0x8],R14 ADD qword ptr [RBP + -0x50],R14 ADD R12,0x10 LAB_00153362: MOV R14,qword ptr [RBP + -0x78] MOV R8,qword ptr [RBP + -0x70] MOV R9,qword ptr [RBP + -0x68] JMP 0x0015317e LAB_00153373: MOV R14,RAX JMP 0x00153319 LAB_00153378: MOV RBX,qword ptr [RBP + -0xa0] SUB R12,RBX SHR R12,0x4 MOV RAX,qword ptr [RBP + -0x98] MOV dword ptr [RAX],R12D MOV R14,qword ptr [RBP + -0x30] MOV ESI,R14D MOV RDI,qword ptr [RBP + -0x80] SUB ESI,EDI MOV RAX,-0x1 CMP ESI,0xfb JC 0x001533cc XOR EAX,EAX CMP ESI,0xffff JA 0x001533c2 CMP ESI,0x100 ADC RAX,-0x3 JMP 0x001533cc LAB_001533c2: CMP ESI,0x1000000 ADC RAX,-0x5 LAB_001533cc: ADD RDI,RAX MOV qword ptr [RBX],RDI CALL 0x0014e6b6 SUB R14,qword ptr [RBX] MOV qword ptr [RBX + 0x8],R14 ADD R14,qword ptr [RBP + -0x50] MOV RAX,R14 ADD RSP,0x78 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET
long fill_update_undo_parts (long *param_1,void *param_2,void *param_3,long *param_4,int4 *param_5) { int1 *puVar1; byte bVar2; long lVar3; ushort uVar4; int iVar5; int *piVar6; size_t __n; int8 uVar7; long lVar8; ulong uVar9; void *__s1; int *piVar10; uint uVar11; void *__s2; long *plVar12; uint uVar13; int *piVar14; size_t sVar15; bool bVar16; ulong local_58; ushort *local_50; ushort *local_48; int1 *local_38; lVar8 = *param_1; local_50 = (ushort *)param_1[0x1a]; local_48 = (ushort *)param_1[0x32]; lVar3 = param_1[0x79]; puVar1 = (int1 *)(lVar3 + 4); iVar5 = bcmp(param_2,param_3,(ulong)*(uint *)(lVar8 + 0x3fc)); if (iVar5 == 0) { plVar12 = param_4 + 2; local_58 = 0; local_38 = puVar1; } else { *(int1 *)(lVar3 + 4) = 0xff; param_4[2] = (long)param_2; local_58 = (ulong)*(uint *)(lVar8 + 0x3fc); param_4[3] = local_58; plVar12 = param_4 + 4; local_38 = (int1 *)(lVar3 + 5); } piVar6 = *(int **)(lVar8 + 0x588); piVar10 = piVar6; if ((ulong)*(uint *)(lVar8 + 0x3cc) != 0) { piVar14 = piVar6 + (ulong)*(uint *)(lVar8 + 0x3cc) * 0xe; do { iVar5 = bcmp((void *)((long)param_2 + (ulong)(uint)piVar10[1]), (void *)((ulong)(uint)piVar10[1] + (long)param_3),(ulong)*(ushort *)(piVar10 + 2) ); if (iVar5 != 0) { local_38 = (int1 *) ma_store_length(local_38,(int)((ulong)((long)piVar6 - *(long *)(lVar8 + 0x588)) >> 3) * -0x49249249); *plVar12 = (ulong)(uint)piVar10[1] + (long)param_2; plVar12[1] = (ulong)*(ushort *)(piVar10 + 2); local_58 = local_58 + *(ushort *)(piVar10 + 2); plVar12 = plVar12 + 2; } piVar10 = piVar10 + 0xe; piVar6 = piVar6 + 0xe; } while (piVar10 < piVar14); piVar6 = *(int **)(lVar8 + 0x588); } uVar11 = *(uint *)(lVar8 + 0x3c8); piVar14 = piVar10; do { if (piVar6 + (ulong)uVar11 * 0xe <= piVar10) { *param_5 = (int)((ulong)((long)plVar12 - (long)param_4) >> 4); uVar11 = (int)local_38 - (int)puVar1; lVar8 = -1; if (0xfa < uVar11) { if (uVar11 < 0x10000) { lVar8 = (ulong)(uVar11 < 0x100) - 3; } else { lVar8 = (ulong)(uVar11 < 0x1000000) - 5; } } *param_4 = (long)(puVar1 + lVar8); ma_store_length(); param_4[1] = (long)local_38 - *param_4; return ((long)local_38 - *param_4) + local_58; } if ((*(byte *)((long)param_2 + (ulong)*(ushort *)((long)piVar10 + 0xe)) & *(byte *)((long)piVar10 + 0x12)) == 0) { uVar9 = (ulong)*(ushort *)(piVar10 + 4); bVar2 = *(byte *)((long)piVar10 + 0x13); if ((*(byte *)(param_1[0x19] + uVar9) & bVar2) == 0) { if ((*(byte *)((long)param_3 + (ulong)*(ushort *)((long)piVar10 + 0xe)) & *(byte *)((long)piVar10 + 0x12)) == 0) { bVar16 = (*(byte *)(param_1[0x31] + uVar9) & bVar2) == 0; } else { bVar16 = false; } iVar5 = *piVar10; __s1 = (void *)((long)param_2 + (ulong)(uint)piVar10[1]); __s2 = (void *)((ulong)(uint)piVar10[1] + (long)param_3); sVar15 = (size_t)*(ushort *)(piVar10 + 2); if (iVar5 == 1) { LAB_00153234: if (sVar15 < 0x100) { sVar15 = (size_t)(byte)*local_50; local_50 = (ushort *)((long)local_50 + 1); if (bVar16) { uVar4 = *local_48; local_48 = (ushort *)((long)local_48 + 1); __n = (ulong)(byte)uVar4; goto LAB_001532f2; } } else { sVar15 = (size_t)*local_50; local_50 = local_50 + 1; if (bVar16) { uVar4 = *local_48; local_48 = local_48 + 1; __n = (ulong)uVar4; goto LAB_001532f2; } } } else { if (iVar5 == 4) { uVar13 = *(ushort *)(piVar10 + 2) - 8; uVar9 = (ulong)uVar13; sVar15 = _ma_calc_blob_length(uVar9,__s1); __s1 = *(void **)((long)param_2 + uVar9 + (uint)piVar10[1]); if (!bVar16) goto LAB_00153319; __n = _ma_calc_blob_length(uVar13,__s2); __s2 = *(void **)((long)param_3 + uVar9 + (uint)piVar10[1]); } else { __n = sVar15; if (iVar5 == 8) { sVar15 = sVar15 - 1; __s1 = (void *)((long)__s1 + (ulong)*(ushort *)(piVar10 + 3)); __s2 = (void *)((long)__s2 + (ulong)*(ushort *)(piVar10 + 3)); goto LAB_00153234; } } LAB_001532f2: if (((bool)(bVar16 & __n == sVar15)) && (iVar5 = bcmp(__s1,__s2,__n), sVar15 = __n, iVar5 == 0)) goto LAB_0015317e; } LAB_00153319: uVar7 = ma_store_length(local_38,((long)piVar14 - *(long *)(lVar8 + 0x588) >> 3) * 0x6db6db6db6db6db7); local_38 = (int1 *)ma_store_length(uVar7,sVar15); *plVar12 = (long)__s1; plVar12[1] = sVar15; local_58 = local_58 + sVar15; plVar12 = plVar12 + 2; } else if ((*(byte *)(param_1[0x31] + uVar9) & bVar2) == 0) { local_38 = (int1 *) ma_store_length(local_38,(int)((ulong)((long)piVar14 - *(long *)(lVar8 + 0x588)) >> 3) * -0x49249249); *local_38 = 0; local_38 = local_38 + 1; } } LAB_0015317e: piVar10 = piVar10 + 0xe; piVar14 = piVar14 + 0xe; } while( true ); }
34,718
my_hash_sort_utf16_bin
eloqsql/strings/ctype-ucs2.c
static void my_hash_sort_utf16_bin(CHARSET_INFO *cs, const uchar *pos, size_t len, ulong *nr1, ulong *nr2) { size_t lengthsp= my_ci_lengthsp(cs, (const char *) pos, len); my_hash_sort_utf16_nopad_bin(cs, pos, lengthsp, nr1, nr2); }
O3
c
my_hash_sort_utf16_bin: pushq %rbp movq %rsp, %rbp pushq %r15 pushq %r14 pushq %rbx pushq %rax movq %r8, %rbx movq %rcx, %r14 movq %rsi, %r15 movq 0xb8(%rdi), %rax callq *0x18(%rax) movq (%r14), %rcx movq (%rbx), %rdx testq %rax, %rax jle 0xead11 addq %r15, %rax movl %ecx, %esi andl $0x3f, %esi addq %rdx, %rsi movzbl (%r15), %edi imulq %rsi, %rdi movq %rcx, %rsi shlq $0x8, %rsi addq %rdi, %rsi xorq %rsi, %rcx addq $0x3, %rdx incq %r15 cmpq %rax, %r15 jb 0xeace8 movq %rcx, (%r14) movq %rdx, (%rbx) addq $0x8, %rsp popq %rbx popq %r14 popq %r15 popq %rbp retq
my_hash_sort_utf16_bin: push rbp mov rbp, rsp push r15 push r14 push rbx push rax mov rbx, r8 mov r14, rcx mov r15, rsi mov rax, [rdi+0B8h] call qword ptr [rax+18h] mov rcx, [r14] mov rdx, [rbx] test rax, rax jle short loc_EAD11 add rax, r15 loc_EACE8: mov esi, ecx and esi, 3Fh add rsi, rdx movzx edi, byte ptr [r15] imul rdi, rsi mov rsi, rcx shl rsi, 8 add rsi, rdi xor rcx, rsi add rdx, 3 inc r15 cmp r15, rax jb short loc_EACE8 loc_EAD11: mov [r14], rcx mov [rbx], rdx add rsp, 8 pop rbx pop r14 pop r15 pop rbp retn
long long my_hash_sort_utf16_bin(long long a1, unsigned __int8 *a2, long long a3, long long *a4, long long *a5) { unsigned __int8 *v7; // r15 long long result; // rax long long v9; // rcx long long v10; // rdx v7 = a2; result = (*(long long ( **)(long long))(*(_QWORD *)(a1 + 184) + 24LL))(a1); v9 = *a4; v10 = *a5; if ( result > 0 ) { result += (long long)a2; do { v9 ^= (v10 + (v9 & 0x3F)) * *v7 + (v9 << 8); v10 += 3LL; ++v7; } while ( (unsigned long long)v7 < result ); } *a4 = v9; *a5 = v10; return result; }
my_hash_sort_utf16_bin: PUSH RBP MOV RBP,RSP PUSH R15 PUSH R14 PUSH RBX PUSH RAX MOV RBX,R8 MOV R14,RCX MOV R15,RSI MOV RAX,qword ptr [RDI + 0xb8] CALL qword ptr [RAX + 0x18] MOV RCX,qword ptr [R14] MOV RDX,qword ptr [RBX] TEST RAX,RAX JLE 0x001ead11 ADD RAX,R15 LAB_001eace8: MOV ESI,ECX AND ESI,0x3f ADD RSI,RDX MOVZX EDI,byte ptr [R15] IMUL RDI,RSI MOV RSI,RCX SHL RSI,0x8 ADD RSI,RDI XOR RCX,RSI ADD RDX,0x3 INC R15 CMP R15,RAX JC 0x001eace8 LAB_001ead11: MOV qword ptr [R14],RCX MOV qword ptr [RBX],RDX ADD RSP,0x8 POP RBX POP R14 POP R15 POP RBP RET
void my_hash_sort_utf16_bin (long param_1,byte *param_2,int8 param_3,ulong *param_4,long *param_5) { long lVar1; byte *pbVar2; ulong uVar3; long lVar4; lVar1 = (**(code **)(*(long *)(param_1 + 0xb8) + 0x18))(); uVar3 = *param_4; lVar4 = *param_5; if (0 < lVar1) { pbVar2 = param_2 + lVar1; do { uVar3 = uVar3 ^ uVar3 * 0x100 + (ulong)*param_2 * ((ulong)((uint)uVar3 & 0x3f) + lVar4); lVar4 = lVar4 + 3; param_2 = param_2 + 1; } while (param_2 < pbVar2); } *param_4 = uVar3; *param_5 = lVar4; return; }
34,719
mariadb_compression_algorithm_str
eloqsql/libmariadb/libmariadb/ma_compress.c
const char *_mariadb_compression_algorithm_str(enum enum_ma_compression_algorithm algorithm) { switch(algorithm) { case COMPRESSION_NONE: case COMPRESSION_ZLIB: case COMPRESSION_ZSTD: return compression_algorithms[algorithm] ; default: return compression_algorithms[COMPRESSION_UNKNOWN]; } }
O3
c
mariadb_compression_algorithm_str: pushq %rbp movq %rsp, %rbp movl %edi, %eax shlq $0x3, %rax cmpl $0x3, %edi leaq 0x368924(%rip), %rcx # 0x3e4020 movl $0x18, %edx cmovbq %rax, %rdx movq (%rcx,%rdx), %rax popq %rbp retq
_mariadb_compression_algorithm_str: push rbp mov rbp, rsp mov eax, edi shl rax, 3 cmp edi, 3 lea rcx, compression_algorithms mov edx, 18h cmovb rdx, rax mov rax, [rcx+rdx] pop rbp retn
char * mariadb_compression_algorithm_str(unsigned int a1) { long long v1; // rdx v1 = 3LL; if ( a1 < 3 ) v1 = a1; return compression_algorithms[v1]; }
_mariadb_compression_algorithm_str: PUSH RBP MOV RBP,RSP MOV EAX,EDI SHL RAX,0x3 CMP EDI,0x3 LEA RCX,[0x4e4020] MOV EDX,0x18 CMOVC RDX,RAX MOV RAX,qword ptr [RCX + RDX*0x1] POP RBP RET
int8 _mariadb_compression_algorithm_str(uint param_1) { long lVar1; lVar1 = 0x18; if (param_1 < 3) { lVar1 = (ulong)param_1 << 3; } return *(int8 *)(compression_algorithms + lVar1); }
34,720
my_fprintf
eloqsql/strings/my_vsnprintf.c
int my_fprintf(FILE *stream, const char* format, ...) { int result; va_list args; va_start(args, format); result= my_vfprintf(stream, format, args); va_end(args); return result; }
O0
c
my_fprintf: pushq %rbp movq %rsp, %rbp subq $0xe0, %rsp testb %al, %al je 0x7f448 movaps %xmm0, -0xb0(%rbp) movaps %xmm1, -0xa0(%rbp) movaps %xmm2, -0x90(%rbp) movaps %xmm3, -0x80(%rbp) movaps %xmm4, -0x70(%rbp) movaps %xmm5, -0x60(%rbp) movaps %xmm6, -0x50(%rbp) movaps %xmm7, -0x40(%rbp) movq %r9, -0xb8(%rbp) movq %r8, -0xc0(%rbp) movq %rcx, -0xc8(%rbp) movq %rdx, -0xd0(%rbp) movq %rdi, -0x8(%rbp) movq %rsi, -0x10(%rbp) leaq -0xe0(%rbp), %rax movq %rax, -0x20(%rbp) leaq 0x10(%rbp), %rax movq %rax, -0x28(%rbp) movl $0x30, -0x2c(%rbp) movl $0x10, -0x30(%rbp) movq -0x8(%rbp), %rdi movq -0x10(%rbp), %rsi leaq -0x30(%rbp), %rdx callq 0x7f260 movl %eax, -0x14(%rbp) movl -0x14(%rbp), %eax addq $0xe0, %rsp popq %rbp retq nopl (%rax)
my_fprintf: push rbp mov rbp, rsp sub rsp, 0E0h test al, al jz short loc_7F448 movaps [rbp+var_B0], xmm0 movaps [rbp+var_A0], xmm1 movaps [rbp+var_90], xmm2 movaps [rbp+var_80], xmm3 movaps [rbp+var_70], xmm4 movaps [rbp+var_60], xmm5 movaps [rbp+var_50], xmm6 movaps [rbp+var_40], xmm7 loc_7F448: mov [rbp+var_B8], r9 mov [rbp+var_C0], r8 mov [rbp+var_C8], rcx mov [rbp+var_D0], rdx mov [rbp+var_8], rdi mov [rbp+var_10], rsi lea rax, [rbp+var_E0] mov [rbp+var_20], rax lea rax, [rbp+arg_0] mov [rbp+var_28], rax mov [rbp+var_2C], 30h ; '0' mov [rbp+var_30], 10h mov rdi, [rbp+var_8] mov rsi, [rbp+var_10] lea rdx, [rbp+var_30] call my_vfprintf mov [rbp+var_14], eax mov eax, [rbp+var_14] add rsp, 0E0h pop rbp retn
long long my_fprintf( long long a1, char *a2, long long a3, long long a4, long long a5, long long a6, __m128 a7, __m128 a8, __m128 a9, __m128 a10, __m128 a11, __m128 a12, __m128 a13, __m128 a14, char a15) { char v16; // [rsp+0h] [rbp-E0h] BYREF long long v17; // [rsp+10h] [rbp-D0h] long long v18; // [rsp+18h] [rbp-C8h] long long v19; // [rsp+20h] [rbp-C0h] long long v20; // [rsp+28h] [rbp-B8h] __m128 v21; // [rsp+30h] [rbp-B0h] __m128 v22; // [rsp+40h] [rbp-A0h] __m128 v23; // [rsp+50h] [rbp-90h] __m128 v24; // [rsp+60h] [rbp-80h] __m128 v25; // [rsp+70h] [rbp-70h] __m128 v26; // [rsp+80h] [rbp-60h] __m128 v27; // [rsp+90h] [rbp-50h] __m128 v28; // [rsp+A0h] [rbp-40h] int v29[2]; // [rsp+B0h] [rbp-30h] BYREF char *v30; // [rsp+B8h] [rbp-28h] char *v31; // [rsp+C0h] [rbp-20h] char *v32; // [rsp+D0h] [rbp-10h] long long v33; // [rsp+D8h] [rbp-8h] v21 = a7; v22 = a8; v23 = a9; v24 = a10; v25 = a11; v26 = a12; v27 = a13; v28 = a14; v20 = a6; v19 = a5; v18 = a4; v17 = a3; v33 = a1; v32 = a2; v31 = &v16; v30 = &a15; v29[1] = 48; v29[0] = 16; return (unsigned int)my_vfprintf(a1, a2, v29); }
my_fprintf: PUSH RBP MOV RBP,RSP SUB RSP,0xe0 TEST AL,AL JZ 0x0017f448 MOVAPS xmmword ptr [RBP + -0xb0],XMM0 MOVAPS xmmword ptr [RBP + -0xa0],XMM1 MOVAPS xmmword ptr [RBP + -0x90],XMM2 MOVAPS xmmword ptr [RBP + -0x80],XMM3 MOVAPS xmmword ptr [RBP + -0x70],XMM4 MOVAPS xmmword ptr [RBP + -0x60],XMM5 MOVAPS xmmword ptr [RBP + -0x50],XMM6 MOVAPS xmmword ptr [RBP + -0x40],XMM7 LAB_0017f448: MOV qword ptr [RBP + -0xb8],R9 MOV qword ptr [RBP + -0xc0],R8 MOV qword ptr [RBP + -0xc8],RCX MOV qword ptr [RBP + -0xd0],RDX MOV qword ptr [RBP + -0x8],RDI MOV qword ptr [RBP + -0x10],RSI LEA RAX,[RBP + -0xe0] MOV qword ptr [RBP + -0x20],RAX LEA RAX,[RBP + 0x10] MOV qword ptr [RBP + -0x28],RAX MOV dword ptr [RBP + -0x2c],0x30 MOV dword ptr [RBP + -0x30],0x10 MOV RDI,qword ptr [RBP + -0x8] MOV RSI,qword ptr [RBP + -0x10] LEA RDX,[RBP + -0x30] CALL 0x0017f260 MOV dword ptr [RBP + -0x14],EAX MOV EAX,dword ptr [RBP + -0x14] ADD RSP,0xe0 POP RBP RET
int4 my_fprintf(int8 param_1,int8 param_2,int8 param_3,int8 param_4, int8 param_5,int8 param_6,int8 param_7,int8 param_8, int8 param_9,int8 param_10,int8 param_11,int8 param_12, int8 param_13,int8 param_14) { char in_AL; int4 uVar1; int1 local_e8 [16]; int8 local_d8; int8 local_d0; int8 local_c8; int8 local_c0; int8 local_b8; int8 local_a8; int8 local_98; int8 local_88; int8 local_78; int8 local_68; int8 local_58; int8 local_48; int4 local_38; int4 local_34; int1 *local_30; int1 *local_28; int8 local_18; int8 local_10; if (in_AL != '\0') { local_b8 = param_1; local_a8 = param_2; local_98 = param_3; local_88 = param_4; local_78 = param_5; local_68 = param_6; local_58 = param_7; local_48 = param_8; } local_28 = local_e8; local_30 = &stack0x00000008; local_34 = 0x30; local_38 = 0x10; local_d8 = param_11; local_d0 = param_12; local_c8 = param_13; local_c0 = param_14; local_18 = param_10; local_10 = param_9; uVar1 = my_vfprintf(param_9,param_10,&local_38); return uVar1; }
34,721
my_error_register
eloqsql/mysys/my_error.c
int my_error_register(const char** (*get_errmsgs)(int error), uint first, uint last) { struct my_err_head *meh_p; struct my_err_head **search_meh_pp; /* Allocate a new header structure. */ if (! (meh_p= (struct my_err_head*) my_malloc(key_memory_my_err_head, sizeof(struct my_err_head), MYF(MY_WME)))) return 1; meh_p->get_errmsgs= get_errmsgs; meh_p->meh_first= first; meh_p->meh_last= last; /* Search for the right position in the list. */ for (search_meh_pp= &my_errmsgs_list; *search_meh_pp; search_meh_pp= &(*search_meh_pp)->meh_next) { if ((*search_meh_pp)->meh_last > first) break; } /* Error numbers must be unique. No overlapping is allowed. */ if (*search_meh_pp && ((*search_meh_pp)->meh_first <= last)) { my_free(meh_p); return 1; } /* Insert header into the chain. */ meh_p->meh_next= *search_meh_pp; *search_meh_pp= meh_p; return 0; }
O0
c
my_error_register: pushq %rbp movq %rsp, %rbp subq $0x30, %rsp movq %rdi, -0x10(%rbp) movl %esi, -0x14(%rbp) movl %edx, -0x18(%rbp) leaq 0xb927f7(%rip), %rax # 0xc81c90 movl (%rax), %edi movl $0x18, %esi movl $0x10, %edx callq 0xf2e30 movq %rax, -0x20(%rbp) cmpq $0x0, %rax jne 0xef4c0 movl $0x1, -0x4(%rbp) jmp 0xef560 movq -0x10(%rbp), %rcx movq -0x20(%rbp), %rax movq %rcx, 0x8(%rax) movl -0x14(%rbp), %ecx movq -0x20(%rbp), %rax movl %ecx, 0x10(%rax) movl -0x18(%rbp), %ecx movq -0x20(%rbp), %rax movl %ecx, 0x14(%rax) leaq 0x1cf341(%rip), %rax # 0x2be828 movq %rax, -0x28(%rbp) movq -0x28(%rbp), %rax cmpq $0x0, (%rax) je 0xef515 movq -0x28(%rbp), %rax movq (%rax), %rax movl 0x14(%rax), %eax cmpl -0x14(%rbp), %eax jbe 0xef506 jmp 0xef515 jmp 0xef508 movq -0x28(%rbp), %rax movq (%rax), %rax movq %rax, -0x28(%rbp) jmp 0xef4eb movq -0x28(%rbp), %rax cmpq $0x0, (%rax) je 0xef540 movq -0x28(%rbp), %rax movq (%rax), %rax movl 0x10(%rax), %eax cmpl -0x18(%rbp), %eax ja 0xef540 movq -0x20(%rbp), %rdi callq 0xf31b0 movl $0x1, -0x4(%rbp) jmp 0xef560 movq -0x28(%rbp), %rax movq (%rax), %rcx movq -0x20(%rbp), %rax movq %rcx, (%rax) movq -0x20(%rbp), %rcx movq -0x28(%rbp), %rax movq %rcx, (%rax) movl $0x0, -0x4(%rbp) movl -0x4(%rbp), %eax addq $0x30, %rsp popq %rbp retq nopl (%rax)
my_error_register: push rbp mov rbp, rsp sub rsp, 30h mov [rbp+var_10], rdi mov [rbp+var_14], esi mov [rbp+var_18], edx lea rax, key_memory_my_err_head mov edi, [rax] mov esi, 18h mov edx, 10h call my_malloc mov [rbp+var_20], rax cmp rax, 0 jnz short loc_EF4C0 mov [rbp+var_4], 1 jmp loc_EF560 loc_EF4C0: mov rcx, [rbp+var_10] mov rax, [rbp+var_20] mov [rax+8], rcx mov ecx, [rbp+var_14] mov rax, [rbp+var_20] mov [rax+10h], ecx mov ecx, [rbp+var_18] mov rax, [rbp+var_20] mov [rax+14h], ecx lea rax, my_errmsgs_list mov [rbp+var_28], rax loc_EF4EB: mov rax, [rbp+var_28] cmp qword ptr [rax], 0 jz short loc_EF515 mov rax, [rbp+var_28] mov rax, [rax] mov eax, [rax+14h] cmp eax, [rbp+var_14] jbe short loc_EF506 jmp short loc_EF515 loc_EF506: jmp short $+2 loc_EF508: mov rax, [rbp+var_28] mov rax, [rax] mov [rbp+var_28], rax jmp short loc_EF4EB loc_EF515: mov rax, [rbp+var_28] cmp qword ptr [rax], 0 jz short loc_EF540 mov rax, [rbp+var_28] mov rax, [rax] mov eax, [rax+10h] cmp eax, [rbp+var_18] ja short loc_EF540 mov rdi, [rbp+var_20] call my_free mov [rbp+var_4], 1 jmp short loc_EF560 loc_EF540: mov rax, [rbp+var_28] mov rcx, [rax] mov rax, [rbp+var_20] mov [rax], rcx mov rcx, [rbp+var_20] mov rax, [rbp+var_28] mov [rax], rcx mov [rbp+var_4], 0 loc_EF560: mov eax, [rbp+var_4] add rsp, 30h pop rbp retn
long long my_error_register(long long a1, unsigned int a2, unsigned int a3, double a4) { long long **i; // [rsp+8h] [rbp-28h] long long v6; // [rsp+10h] [rbp-20h] v6 = my_malloc(key_memory_my_err_head, 24LL, 16LL); if ( v6 ) { *(_QWORD *)(v6 + 8) = a1; *(_DWORD *)(v6 + 16) = a2; *(_DWORD *)(v6 + 20) = a3; for ( i = &my_errmsgs_list; *i && *((_DWORD *)*i + 5) <= a2; i = (long long **)*i ) ; if ( *i && *((_DWORD *)*i + 4) <= a3 ) { my_free(v6, a4); return 1; } else { *(_QWORD *)v6 = *i; *i = (long long *)v6; return 0; } } else { return 1; } }
my_error_register: PUSH RBP MOV RBP,RSP SUB RSP,0x30 MOV qword ptr [RBP + -0x10],RDI MOV dword ptr [RBP + -0x14],ESI MOV dword ptr [RBP + -0x18],EDX LEA RAX,[0xd81c90] MOV EDI,dword ptr [RAX] MOV ESI,0x18 MOV EDX,0x10 CALL 0x001f2e30 MOV qword ptr [RBP + -0x20],RAX CMP RAX,0x0 JNZ 0x001ef4c0 MOV dword ptr [RBP + -0x4],0x1 JMP 0x001ef560 LAB_001ef4c0: MOV RCX,qword ptr [RBP + -0x10] MOV RAX,qword ptr [RBP + -0x20] MOV qword ptr [RAX + 0x8],RCX MOV ECX,dword ptr [RBP + -0x14] MOV RAX,qword ptr [RBP + -0x20] MOV dword ptr [RAX + 0x10],ECX MOV ECX,dword ptr [RBP + -0x18] MOV RAX,qword ptr [RBP + -0x20] MOV dword ptr [RAX + 0x14],ECX LEA RAX,[0x3be828] MOV qword ptr [RBP + -0x28],RAX LAB_001ef4eb: MOV RAX,qword ptr [RBP + -0x28] CMP qword ptr [RAX],0x0 JZ 0x001ef515 MOV RAX,qword ptr [RBP + -0x28] MOV RAX,qword ptr [RAX] MOV EAX,dword ptr [RAX + 0x14] CMP EAX,dword ptr [RBP + -0x14] JBE 0x001ef506 JMP 0x001ef515 LAB_001ef506: JMP 0x001ef508 LAB_001ef508: MOV RAX,qword ptr [RBP + -0x28] MOV RAX,qword ptr [RAX] MOV qword ptr [RBP + -0x28],RAX JMP 0x001ef4eb LAB_001ef515: MOV RAX,qword ptr [RBP + -0x28] CMP qword ptr [RAX],0x0 JZ 0x001ef540 MOV RAX,qword ptr [RBP + -0x28] MOV RAX,qword ptr [RAX] MOV EAX,dword ptr [RAX + 0x10] CMP EAX,dword ptr [RBP + -0x18] JA 0x001ef540 MOV RDI,qword ptr [RBP + -0x20] CALL 0x001f31b0 MOV dword ptr [RBP + -0x4],0x1 JMP 0x001ef560 LAB_001ef540: MOV RAX,qword ptr [RBP + -0x28] MOV RCX,qword ptr [RAX] MOV RAX,qword ptr [RBP + -0x20] MOV qword ptr [RAX],RCX MOV RCX,qword ptr [RBP + -0x20] MOV RAX,qword ptr [RBP + -0x28] MOV qword ptr [RAX],RCX MOV dword ptr [RBP + -0x4],0x0 LAB_001ef560: MOV EAX,dword ptr [RBP + -0x4] ADD RSP,0x30 POP RBP RET
int4 my_error_register(long param_1,uint param_2,uint param_3) { long *plVar1; int **local_30; int4 local_c; plVar1 = (long *)my_malloc(key_memory_my_err_head,0x18,0x10); if (plVar1 == (long *)0x0) { local_c = 1; } else { plVar1[1] = param_1; *(uint *)(plVar1 + 2) = param_2; *(uint *)((long)plVar1 + 0x14) = param_3; for (local_30 = &my_errmsgs_list; (*local_30 != (int *)0x0 && (*(uint *)(*local_30 + 0x14) <= param_2)); local_30 = (int **)*local_30) { } if ((*local_30 == (int *)0x0) || (param_3 < *(uint *)(*local_30 + 0x10))) { *plVar1 = (long)*local_30; *local_30 = (int *)plVar1; local_c = 0; } else { my_free(plVar1); local_c = 1; } } return local_c; }
34,722
convert_to_branch
corpus-core[P]colibri-stateless/src/chains/eth/verifier/patricia_trie.c
static node_t* convert_to_branch(node_t* parent, nibbles_t path, int idx1, node_t* child1, int idx2, node_t* child2, bytes_t value) { node_t* branch = parent; if (path.len > 0) { parent->type = NODE_TYPE_EXTENSION; parent->values.extension.path = nibbles_to_path(path, false); parent->values.extension.child = safe_calloc(1, sizeof(node_t)); branch = parent->values.extension.child; branch->parent = parent; } for (int i = 0; i < 16; i++) branch->values.branch.children[i] = NULL; if (idx1 != -1) branch->values.branch.children[idx1] = child1; if (idx2 != -1) branch->values.branch.children[idx2] = child2; branch->values.branch.value = value; branch->type = NODE_TYPE_BRANCH; if (child1) child1->parent = branch; if (child2) child2->parent = branch; if (child1) node_update_hash(child1, false, NULL); if (child2) node_update_hash(child2, false, NULL); node_update_hash(branch, true, NULL); return branch; }
O0
c
convert_to_branch: pushq %rbp movq %rsp, %rbp subq $0x60, %rsp leaq 0x18(%rbp), %rax movq %rax, -0x58(%rbp) movq 0x10(%rbp), %rax movl %esi, -0x10(%rbp) movq %rdx, -0x8(%rbp) movq %rdi, -0x18(%rbp) movl %ecx, -0x1c(%rbp) movq %r8, -0x28(%rbp) movl %r9d, -0x2c(%rbp) movq -0x18(%rbp), %rax movq %rax, -0x38(%rbp) cmpl $0x0, -0x10(%rbp) jbe 0x341d8 movq -0x18(%rbp), %rax movl $0x1, 0x30(%rax) movq -0x18(%rbp), %rax movq %rax, -0x60(%rbp) movl -0x10(%rbp), %edi movq -0x8(%rbp), %rsi xorl %edx, %edx callq 0x33130 movl %eax, %ecx movq -0x60(%rbp), %rax movl %ecx, -0x48(%rbp) movq %rdx, -0x40(%rbp) movq -0x48(%rbp), %rcx movq %rcx, 0x38(%rax) movq -0x40(%rbp), %rcx movq %rcx, 0x40(%rax) movl $0x1, %edi movl $0xc8, %esi callq 0x9c480 movq %rax, %rcx movq -0x18(%rbp), %rax movq %rcx, 0x48(%rax) movq -0x18(%rbp), %rax movq 0x48(%rax), %rax movq %rax, -0x38(%rbp) movq -0x18(%rbp), %rcx movq -0x38(%rbp), %rax movq %rcx, 0x28(%rax) movl $0x0, -0x4c(%rbp) cmpl $0x10, -0x4c(%rbp) jge 0x34201 movq -0x38(%rbp), %rax movslq -0x4c(%rbp), %rcx movq $0x0, 0x38(%rax,%rcx,8) movl -0x4c(%rbp), %eax addl $0x1, %eax movl %eax, -0x4c(%rbp) jmp 0x341df cmpl $-0x1, -0x1c(%rbp) je 0x34218 movq -0x28(%rbp), %rdx movq -0x38(%rbp), %rax movslq -0x1c(%rbp), %rcx movq %rdx, 0x38(%rax,%rcx,8) cmpl $-0x1, -0x2c(%rbp) je 0x3422f movq 0x10(%rbp), %rdx movq -0x38(%rbp), %rax movslq -0x2c(%rbp), %rcx movq %rdx, 0x38(%rax,%rcx,8) movq -0x58(%rbp), %rcx movq -0x38(%rbp), %rax movq (%rcx), %rdx movq %rdx, 0xb8(%rax) movq 0x8(%rcx), %rcx movq %rcx, 0xc0(%rax) movq -0x38(%rbp), %rax movl $0x2, 0x30(%rax) cmpq $0x0, -0x28(%rbp) je 0x3426a movq -0x38(%rbp), %rcx movq -0x28(%rbp), %rax movq %rcx, 0x28(%rax) cmpq $0x0, 0x10(%rbp) je 0x3427d movq -0x38(%rbp), %rcx movq 0x10(%rbp), %rax movq %rcx, 0x28(%rax) cmpq $0x0, -0x28(%rbp) je 0x34293 movq -0x28(%rbp), %rdi xorl %esi, %esi xorl %eax, %eax movl %eax, %edx callq 0x33230 cmpq $0x0, 0x10(%rbp) je 0x342a9 movq 0x10(%rbp), %rdi xorl %esi, %esi xorl %eax, %eax movl %eax, %edx callq 0x33230 movq -0x38(%rbp), %rdi movl $0x1, %esi xorl %eax, %eax movl %eax, %edx callq 0x33230 movq -0x38(%rbp), %rax addq $0x60, %rsp popq %rbp retq nopw %cs:(%rax,%rax)
convert_to_branch: push rbp mov rbp, rsp sub rsp, 60h lea rax, [rbp+arg_8] mov [rbp+var_58], rax mov rax, [rbp+arg_0] mov [rbp+var_10], esi mov [rbp+var_8], rdx mov [rbp+var_18], rdi mov [rbp+var_1C], ecx mov [rbp+var_28], r8 mov [rbp+var_2C], r9d mov rax, [rbp+var_18] mov [rbp+var_38], rax cmp [rbp+var_10], 0 jbe short loc_341D8 mov rax, [rbp+var_18] mov dword ptr [rax+30h], 1 mov rax, [rbp+var_18] mov [rbp+var_60], rax mov edi, [rbp+var_10] mov rsi, [rbp+var_8] xor edx, edx call nibbles_to_path mov ecx, eax mov rax, [rbp+var_60] mov dword ptr [rbp+var_48], ecx mov [rbp+var_40], rdx mov rcx, [rbp+var_48] mov [rax+38h], rcx mov rcx, [rbp+var_40] mov [rax+40h], rcx mov edi, 1 mov esi, 0C8h call safe_calloc mov rcx, rax mov rax, [rbp+var_18] mov [rax+48h], rcx mov rax, [rbp+var_18] mov rax, [rax+48h] mov [rbp+var_38], rax mov rcx, [rbp+var_18] mov rax, [rbp+var_38] mov [rax+28h], rcx loc_341D8: mov [rbp+var_4C], 0 loc_341DF: cmp [rbp+var_4C], 10h jge short loc_34201 mov rax, [rbp+var_38] movsxd rcx, [rbp+var_4C] mov qword ptr [rax+rcx*8+38h], 0 mov eax, [rbp+var_4C] add eax, 1 mov [rbp+var_4C], eax jmp short loc_341DF loc_34201: cmp [rbp+var_1C], 0FFFFFFFFh jz short loc_34218 mov rdx, [rbp+var_28] mov rax, [rbp+var_38] movsxd rcx, [rbp+var_1C] mov [rax+rcx*8+38h], rdx loc_34218: cmp [rbp+var_2C], 0FFFFFFFFh jz short loc_3422F mov rdx, [rbp+arg_0] mov rax, [rbp+var_38] movsxd rcx, [rbp+var_2C] mov [rax+rcx*8+38h], rdx loc_3422F: mov rcx, [rbp+var_58] mov rax, [rbp+var_38] mov rdx, [rcx] mov [rax+0B8h], rdx mov rcx, [rcx+8] mov [rax+0C0h], rcx mov rax, [rbp+var_38] mov dword ptr [rax+30h], 2 cmp [rbp+var_28], 0 jz short loc_3426A mov rcx, [rbp+var_38] mov rax, [rbp+var_28] mov [rax+28h], rcx loc_3426A: cmp [rbp+arg_0], 0 jz short loc_3427D mov rcx, [rbp+var_38] mov rax, [rbp+arg_0] mov [rax+28h], rcx loc_3427D: cmp [rbp+var_28], 0 jz short loc_34293 mov rdi, [rbp+var_28] xor esi, esi xor eax, eax mov edx, eax call node_update_hash loc_34293: cmp [rbp+arg_0], 0 jz short loc_342A9 mov rdi, [rbp+arg_0] xor esi, esi xor eax, eax mov edx, eax call node_update_hash loc_342A9: mov rdi, [rbp+var_38] mov esi, 1 xor eax, eax mov edx, eax call node_update_hash mov rax, [rbp+var_38] add rsp, 60h pop rbp retn
long long convert_to_branch( long long a1, unsigned int a2, long long a3, int a4, long long a5, int a6, long long a7, long long a8, long long a9) { long long v9; // rdx int i; // [rsp+14h] [rbp-4Ch] long long v12; // [rsp+18h] [rbp-48h] long long v13; // [rsp+28h] [rbp-38h] v13 = a1; if ( a2 ) { *(_DWORD *)(a1 + 48) = 1; LODWORD(v12) = nibbles_to_path(a2, a3, 0); *(_QWORD *)(a1 + 56) = v12; *(_QWORD *)(a1 + 64) = v9; *(_QWORD *)(a1 + 72) = safe_calloc(1LL, 200LL); v13 = *(_QWORD *)(a1 + 72); *(_QWORD *)(v13 + 40) = a1; } for ( i = 0; i < 16; ++i ) *(_QWORD *)(v13 + 8LL * i + 56) = 0LL; if ( a4 != -1 ) *(_QWORD *)(v13 + 8LL * a4 + 56) = a5; if ( a6 != -1 ) *(_QWORD *)(v13 + 8LL * a6 + 56) = a7; *(_QWORD *)(v13 + 184) = a8; *(_QWORD *)(v13 + 192) = a9; *(_DWORD *)(v13 + 48) = 2; if ( a5 ) *(_QWORD *)(a5 + 40) = v13; if ( a7 ) *(_QWORD *)(a7 + 40) = v13; if ( a5 ) node_update_hash(a5, 0, 0LL); if ( a7 ) node_update_hash(a7, 0, 0LL); node_update_hash(v13, 1, 0LL); return v13; }
convert_to_branch: PUSH RBP MOV RBP,RSP SUB RSP,0x60 LEA RAX,[RBP + 0x18] MOV qword ptr [RBP + -0x58],RAX MOV RAX,qword ptr [RBP + 0x10] MOV dword ptr [RBP + -0x10],ESI MOV qword ptr [RBP + -0x8],RDX MOV qword ptr [RBP + -0x18],RDI MOV dword ptr [RBP + -0x1c],ECX MOV qword ptr [RBP + -0x28],R8 MOV dword ptr [RBP + -0x2c],R9D MOV RAX,qword ptr [RBP + -0x18] MOV qword ptr [RBP + -0x38],RAX CMP dword ptr [RBP + -0x10],0x0 JBE 0x001341d8 MOV RAX,qword ptr [RBP + -0x18] MOV dword ptr [RAX + 0x30],0x1 MOV RAX,qword ptr [RBP + -0x18] MOV qword ptr [RBP + -0x60],RAX MOV EDI,dword ptr [RBP + -0x10] MOV RSI,qword ptr [RBP + -0x8] XOR EDX,EDX CALL 0x00133130 MOV ECX,EAX MOV RAX,qword ptr [RBP + -0x60] MOV dword ptr [RBP + -0x48],ECX MOV qword ptr [RBP + -0x40],RDX MOV RCX,qword ptr [RBP + -0x48] MOV qword ptr [RAX + 0x38],RCX MOV RCX,qword ptr [RBP + -0x40] MOV qword ptr [RAX + 0x40],RCX MOV EDI,0x1 MOV ESI,0xc8 CALL 0x0019c480 MOV RCX,RAX MOV RAX,qword ptr [RBP + -0x18] MOV qword ptr [RAX + 0x48],RCX MOV RAX,qword ptr [RBP + -0x18] MOV RAX,qword ptr [RAX + 0x48] MOV qword ptr [RBP + -0x38],RAX MOV RCX,qword ptr [RBP + -0x18] MOV RAX,qword ptr [RBP + -0x38] MOV qword ptr [RAX + 0x28],RCX LAB_001341d8: MOV dword ptr [RBP + -0x4c],0x0 LAB_001341df: CMP dword ptr [RBP + -0x4c],0x10 JGE 0x00134201 MOV RAX,qword ptr [RBP + -0x38] MOVSXD RCX,dword ptr [RBP + -0x4c] MOV qword ptr [RAX + RCX*0x8 + 0x38],0x0 MOV EAX,dword ptr [RBP + -0x4c] ADD EAX,0x1 MOV dword ptr [RBP + -0x4c],EAX JMP 0x001341df LAB_00134201: CMP dword ptr [RBP + -0x1c],-0x1 JZ 0x00134218 MOV RDX,qword ptr [RBP + -0x28] MOV RAX,qword ptr [RBP + -0x38] MOVSXD RCX,dword ptr [RBP + -0x1c] MOV qword ptr [RAX + RCX*0x8 + 0x38],RDX LAB_00134218: CMP dword ptr [RBP + -0x2c],-0x1 JZ 0x0013422f MOV RDX,qword ptr [RBP + 0x10] MOV RAX,qword ptr [RBP + -0x38] MOVSXD RCX,dword ptr [RBP + -0x2c] MOV qword ptr [RAX + RCX*0x8 + 0x38],RDX LAB_0013422f: MOV RCX,qword ptr [RBP + -0x58] MOV RAX,qword ptr [RBP + -0x38] MOV RDX,qword ptr [RCX] MOV qword ptr [RAX + 0xb8],RDX MOV RCX,qword ptr [RCX + 0x8] MOV qword ptr [RAX + 0xc0],RCX MOV RAX,qword ptr [RBP + -0x38] MOV dword ptr [RAX + 0x30],0x2 CMP qword ptr [RBP + -0x28],0x0 JZ 0x0013426a MOV RCX,qword ptr [RBP + -0x38] MOV RAX,qword ptr [RBP + -0x28] MOV qword ptr [RAX + 0x28],RCX LAB_0013426a: CMP qword ptr [RBP + 0x10],0x0 JZ 0x0013427d MOV RCX,qword ptr [RBP + -0x38] MOV RAX,qword ptr [RBP + 0x10] MOV qword ptr [RAX + 0x28],RCX LAB_0013427d: CMP qword ptr [RBP + -0x28],0x0 JZ 0x00134293 MOV RDI,qword ptr [RBP + -0x28] XOR ESI,ESI XOR EAX,EAX MOV EDX,EAX CALL 0x00133230 LAB_00134293: CMP qword ptr [RBP + 0x10],0x0 JZ 0x001342a9 MOV RDI,qword ptr [RBP + 0x10] XOR ESI,ESI XOR EAX,EAX MOV EDX,EAX CALL 0x00133230 LAB_001342a9: MOV RDI,qword ptr [RBP + -0x38] MOV ESI,0x1 XOR EAX,EAX MOV EDX,EAX CALL 0x00133230 MOV RAX,qword ptr [RBP + -0x38] ADD RSP,0x60 POP RBP RET
long convert_to_branch(long param_1,int param_2,int8 param_3,int param_4,long param_5, int param_6,long param_7,int8 param_8,int8 param_9) { int4 uVar1; int8 uVar2; int8 extraout_RDX; int4 local_54; int4 uStack_4c; int8 local_40; local_40 = param_1; if (param_2 != 0) { *(int4 *)(param_1 + 0x30) = 1; uVar1 = nibbles_to_path(param_2,param_3,0); *(ulong *)(param_1 + 0x38) = CONCAT44(uStack_4c,uVar1); *(int8 *)(param_1 + 0x40) = extraout_RDX; uVar2 = safe_calloc(1,200); *(int8 *)(param_1 + 0x48) = uVar2; local_40 = *(long *)(param_1 + 0x48); *(long *)(local_40 + 0x28) = param_1; } for (local_54 = 0; local_54 < 0x10; local_54 = local_54 + 1) { *(int8 *)(local_40 + 0x38 + (long)local_54 * 8) = 0; } if (param_4 != -1) { *(long *)(local_40 + 0x38 + (long)param_4 * 8) = param_5; } if (param_6 != -1) { *(long *)(local_40 + 0x38 + (long)param_6 * 8) = param_7; } *(int8 *)(local_40 + 0xb8) = param_8; *(int8 *)(local_40 + 0xc0) = param_9; *(int4 *)(local_40 + 0x30) = 2; if (param_5 != 0) { *(long *)(param_5 + 0x28) = local_40; } if (param_7 != 0) { *(long *)(param_7 + 0x28) = local_40; } if (param_5 != 0) { node_update_hash(param_5,0,0); } if (param_7 != 0) { node_update_hash(param_7,0,0); } node_update_hash(local_40,1,0); return local_40; }
34,723
minja::IfNode::IfNode(minja::Location const&, std::vector<std::pair<std::shared_ptr<minja::Expression>, std::shared_ptr<minja::TemplateNode>>, std::allocator<std::pair<std::shared_ptr<minja::Expression>, std::shared_ptr<minja::TemplateNode>>>>&&)
monkey531[P]llama/common/minja.hpp
TemplateNode(const Location & location) : location_(location) {}
O1
cpp
minja::IfNode::IfNode(minja::Location const&, std::vector<std::pair<std::shared_ptr<minja::Expression>, std::shared_ptr<minja::TemplateNode>>, std::allocator<std::pair<std::shared_ptr<minja::Expression>, std::shared_ptr<minja::TemplateNode>>>>&&): leaq 0x7cd5b(%rip), %rax # 0xf3fe8 addq $0x10, %rax movq %rax, (%rdi) movq (%rsi), %rax movq %rax, 0x8(%rdi) movq 0x8(%rsi), %rax movq %rax, 0x10(%rdi) testq %rax, %rax je 0x772bd movq 0x7dce9(%rip), %rcx # 0xf4f98 cmpb $0x0, (%rcx) je 0x772b9 incl 0x8(%rax) jmp 0x772bd lock incl 0x8(%rax) movq 0x10(%rsi), %rax movq %rax, 0x18(%rdi) leaq 0x7d36c(%rip), %rax # 0xf4638 addq $0x10, %rax movq %rax, (%rdi) movups (%rdx), %xmm0 movups %xmm0, 0x20(%rdi) movq 0x10(%rdx), %rax movq %rax, 0x30(%rdi) xorps %xmm0, %xmm0 movups %xmm0, (%rdx) movq $0x0, 0x10(%rdx) retq nop
_ZN5minja12SequenceNodeC2ERKNS_8LocationEOSt6vectorISt10shared_ptrINS_12TemplateNodeEESaIS7_EE: lea rax, _ZTVN5minja12TemplateNodeE; `vtable for'minja::TemplateNode add rax, 10h mov [rdi], rax mov rax, [rsi] mov [rdi+8], rax mov rax, [rsi+8] mov [rdi+10h], rax test rax, rax jz short loc_772BD mov rcx, cs:__libc_single_threaded_ptr cmp byte ptr [rcx], 0 jz short loc_772B9 inc dword ptr [rax+8] jmp short loc_772BD loc_772B9: lock inc dword ptr [rax+8] loc_772BD: mov rax, [rsi+10h] mov [rdi+18h], rax lea rax, _ZTVN5minja12SequenceNodeE; `vtable for'minja::SequenceNode add rax, 10h mov [rdi], rax movups xmm0, xmmword ptr [rdx] movups xmmword ptr [rdi+20h], xmm0 mov rax, [rdx+10h] mov [rdi+30h], rax xorps xmm0, xmm0 movups xmmword ptr [rdx], xmm0 mov qword ptr [rdx+10h], 0 retn
long long minja::SequenceNode::SequenceNode(long long a1, _QWORD *a2, long long a3) { long long v3; // rax long long result; // rax *(_QWORD *)a1 = &`vtable for'minja::TemplateNode + 2; *(_QWORD *)(a1 + 8) = *a2; v3 = a2[1]; *(_QWORD *)(a1 + 16) = v3; if ( v3 ) { if ( _libc_single_threaded ) ++*(_DWORD *)(v3 + 8); else _InterlockedIncrement((volatile signed __int32 *)(v3 + 8)); } *(_QWORD *)(a1 + 24) = a2[2]; *(_QWORD *)a1 = &`vtable for'minja::SequenceNode + 2; *(_OWORD *)(a1 + 32) = *(_OWORD *)a3; result = *(_QWORD *)(a3 + 16); *(_QWORD *)(a1 + 48) = result; *(_OWORD *)a3 = 0LL; *(_QWORD *)(a3 + 16) = 0LL; return result; }
SequenceNode: LEA RAX,[0x1f3fe8] ADD RAX,0x10 MOV qword ptr [RDI],RAX MOV RAX,qword ptr [RSI] MOV qword ptr [RDI + 0x8],RAX MOV RAX,qword ptr [RSI + 0x8] MOV qword ptr [RDI + 0x10],RAX TEST RAX,RAX JZ 0x001772bd MOV RCX,qword ptr [0x001f4f98] CMP byte ptr [RCX],0x0 JZ 0x001772b9 INC dword ptr [RAX + 0x8] JMP 0x001772bd LAB_001772b9: INC.LOCK dword ptr [RAX + 0x8] LAB_001772bd: MOV RAX,qword ptr [RSI + 0x10] MOV qword ptr [RDI + 0x18],RAX LEA RAX,[0x1f4638] ADD RAX,0x10 MOV qword ptr [RDI],RAX MOVUPS XMM0,xmmword ptr [RDX] MOVUPS xmmword ptr [RDI + 0x20],XMM0 MOV RAX,qword ptr [RDX + 0x10] MOV qword ptr [RDI + 0x30],RAX XORPS XMM0,XMM0 MOVUPS xmmword ptr [RDX],XMM0 MOV qword ptr [RDX + 0x10],0x0 RET
/* minja::SequenceNode::SequenceNode(minja::Location const&, std::vector<std::shared_ptr<minja::TemplateNode>, std::allocator<std::shared_ptr<minja::TemplateNode> > >&&) */ void __thiscall minja::SequenceNode::SequenceNode(SequenceNode *this,Location *param_1,vector *param_2) { long lVar1; int8 uVar2; *(int ***)this = &PTR___cxa_pure_virtual_001f3ff8; *(int8 *)(this + 8) = *(int8 *)param_1; lVar1 = *(long *)(param_1 + 8); *(long *)(this + 0x10) = lVar1; if (lVar1 != 0) { if (*PTR___libc_single_threaded_001f4f98 == '\0') { LOCK(); *(int *)(lVar1 + 8) = *(int *)(lVar1 + 8) + 1; UNLOCK(); } else { *(int *)(lVar1 + 8) = *(int *)(lVar1 + 8) + 1; } } *(int8 *)(this + 0x18) = *(int8 *)(param_1 + 0x10); *(int ***)this = &PTR_do_render_001f4648; uVar2 = *(int8 *)(param_2 + 8); *(int8 *)(this + 0x20) = *(int8 *)param_2; *(int8 *)(this + 0x28) = uVar2; *(int8 *)(this + 0x30) = *(int8 *)(param_2 + 0x10); *(int8 *)param_2 = 0; *(int8 *)(param_2 + 8) = 0; *(int8 *)(param_2 + 0x10) = 0; return; }
34,724
minja::IfNode::IfNode(minja::Location const&, std::vector<std::pair<std::shared_ptr<minja::Expression>, std::shared_ptr<minja::TemplateNode>>, std::allocator<std::pair<std::shared_ptr<minja::Expression>, std::shared_ptr<minja::TemplateNode>>>>&&)
monkey531[P]llama/common/minja.hpp
TemplateNode(const Location & location) : location_(location) {}
O3
cpp
minja::IfNode::IfNode(minja::Location const&, std::vector<std::pair<std::shared_ptr<minja::Expression>, std::shared_ptr<minja::TemplateNode>>, std::allocator<std::pair<std::shared_ptr<minja::Expression>, std::shared_ptr<minja::TemplateNode>>>>&&): leaq 0x7bb73(%rip), %rax # 0xeffe8 addq $0x10, %rax movq %rax, (%rdi) movq (%rsi), %rax movq %rax, 0x8(%rdi) movq 0x8(%rsi), %rax movq %rax, 0x10(%rdi) testq %rax, %rax je 0x744a6 movq 0x7cb01(%rip), %r8 # 0xf0f98 cmpb $0x0, (%r8) je 0x744a2 incl 0x8(%rax) jmp 0x744a6 lock incl 0x8(%rax) movq 0x10(%rsi), %rax movq %rax, 0x18(%rdi) leaq 0x7c063(%rip), %rax # 0xf0518 addq $0x10, %rax movq %rax, (%rdi) xorl %eax, %eax movq %rax, 0x28(%rdi) movups (%rdx), %xmm0 movq %rax, 0x8(%rdx) movups %xmm0, 0x20(%rdi) movq %rax, (%rdx) movq %rax, 0x38(%rdi) movups (%rcx), %xmm0 movq %rax, 0x8(%rcx) movups %xmm0, 0x30(%rdi) movq %rax, (%rcx) retq nop
_ZN5minja10FilterNodeC2ERKNS_8LocationEOSt10shared_ptrINS_10ExpressionEEOS4_INS_12TemplateNodeEE: lea rax, _ZTVN5minja12TemplateNodeE; `vtable for'minja::TemplateNode add rax, 10h mov [rdi], rax mov rax, [rsi] mov [rdi+8], rax mov rax, [rsi+8] mov [rdi+10h], rax test rax, rax jz short loc_744A6 mov r8, cs:__libc_single_threaded_ptr cmp byte ptr [r8], 0 jz short loc_744A2 inc dword ptr [rax+8] jmp short loc_744A6 loc_744A2: lock inc dword ptr [rax+8] loc_744A6: mov rax, [rsi+10h] mov [rdi+18h], rax lea rax, _ZTVN5minja10FilterNodeE; `vtable for'minja::FilterNode add rax, 10h mov [rdi], rax xor eax, eax mov [rdi+28h], rax movups xmm0, xmmword ptr [rdx] mov [rdx+8], rax movups xmmword ptr [rdi+20h], xmm0 mov [rdx], rax mov [rdi+38h], rax movups xmm0, xmmword ptr [rcx] mov [rcx+8], rax movups xmmword ptr [rdi+30h], xmm0 mov [rcx], rax retn
long long minja::FilterNode::FilterNode(long long a1, _QWORD *a2, __int128 *a3, __int128 *a4) { long long v4; // rax long long result; // rax __int128 v6; // xmm0 __int128 v7; // xmm0 *(_QWORD *)a1 = &`vtable for'minja::TemplateNode + 2; *(_QWORD *)(a1 + 8) = *a2; v4 = a2[1]; *(_QWORD *)(a1 + 16) = v4; if ( v4 ) { if ( _libc_single_threaded ) ++*(_DWORD *)(v4 + 8); else _InterlockedIncrement((volatile signed __int32 *)(v4 + 8)); } *(_QWORD *)(a1 + 24) = a2[2]; *(_QWORD *)a1 = &`vtable for'minja::FilterNode + 2; result = 0LL; *(_QWORD *)(a1 + 40) = 0LL; v6 = *a3; *((_QWORD *)a3 + 1) = 0LL; *(_OWORD *)(a1 + 32) = v6; *(_QWORD *)a3 = 0LL; *(_QWORD *)(a1 + 56) = 0LL; v7 = *a4; *((_QWORD *)a4 + 1) = 0LL; *(_OWORD *)(a1 + 48) = v7; *(_QWORD *)a4 = 0LL; return result; }
FilterNode: LEA RAX,[0x1effe8] ADD RAX,0x10 MOV qword ptr [RDI],RAX MOV RAX,qword ptr [RSI] MOV qword ptr [RDI + 0x8],RAX MOV RAX,qword ptr [RSI + 0x8] MOV qword ptr [RDI + 0x10],RAX TEST RAX,RAX JZ 0x001744a6 MOV R8,qword ptr [0x001f0f98] CMP byte ptr [R8],0x0 JZ 0x001744a2 INC dword ptr [RAX + 0x8] JMP 0x001744a6 LAB_001744a2: INC.LOCK dword ptr [RAX + 0x8] LAB_001744a6: MOV RAX,qword ptr [RSI + 0x10] MOV qword ptr [RDI + 0x18],RAX LEA RAX,[0x1f0518] ADD RAX,0x10 MOV qword ptr [RDI],RAX XOR EAX,EAX MOV qword ptr [RDI + 0x28],RAX MOVUPS XMM0,xmmword ptr [RDX] MOV qword ptr [RDX + 0x8],RAX MOVUPS xmmword ptr [RDI + 0x20],XMM0 MOV qword ptr [RDX],RAX MOV qword ptr [RDI + 0x38],RAX MOVUPS XMM0,xmmword ptr [RCX] MOV qword ptr [RCX + 0x8],RAX MOVUPS xmmword ptr [RDI + 0x30],XMM0 MOV qword ptr [RCX],RAX RET
/* minja::FilterNode::FilterNode(minja::Location const&, std::shared_ptr<minja::Expression>&&, std::shared_ptr<minja::TemplateNode>&&) */ void __thiscall minja::FilterNode::FilterNode (FilterNode *this,Location *param_1,shared_ptr *param_2,shared_ptr *param_3) { long lVar1; int8 uVar2; *(int ***)this = &PTR___cxa_pure_virtual_001efff8; *(int8 *)(this + 8) = *(int8 *)param_1; lVar1 = *(long *)(param_1 + 8); *(long *)(this + 0x10) = lVar1; if (lVar1 != 0) { if (*PTR___libc_single_threaded_001f0f98 == '\0') { LOCK(); *(int *)(lVar1 + 8) = *(int *)(lVar1 + 8) + 1; UNLOCK(); } else { *(int *)(lVar1 + 8) = *(int *)(lVar1 + 8) + 1; } } *(int8 *)(this + 0x18) = *(int8 *)(param_1 + 0x10); *(int ***)this = &PTR_do_render_001f0528; *(int8 *)(this + 0x28) = 0; uVar2 = *(int8 *)(param_2 + 8); *(int8 *)(param_2 + 8) = 0; *(int8 *)(this + 0x20) = *(int8 *)param_2; *(int8 *)(this + 0x28) = uVar2; *(int8 *)param_2 = 0; *(int8 *)(this + 0x38) = 0; uVar2 = *(int8 *)(param_3 + 8); *(int8 *)(param_3 + 8) = 0; *(int8 *)(this + 0x30) = *(int8 *)param_3; *(int8 *)(this + 0x38) = uVar2; *(int8 *)param_3 = 0; return; }
34,725
my_is_printable
eloqsql/strings/ctype.c
static inline my_bool my_is_printable(my_wc_t wc) { /* Blocks: U+0000 .. U+001F control U+0020 .. U+007E printable U+007F .. U+009F control U+00A0 .. U+00FF printable U+0100 .. U+10FFFF As of Unicode-6.1.0, this range does not have any characters of the "Cc" (Other, control) category. Should be mostly safe to print. Except for the surrogate halfs, which are encoding components, not real characters. */ if (wc >= 0x20 && wc <= 0x7E) /* Quickly detect ASCII printable */ return TRUE; if (wc <= 0x9F) /* The rest of U+0000..U+009F are control characters */ { /* NL, CR, TAB are Ok */ return (wc == '\r' || wc == '\n' || wc == '\t'); } /* Surrogate halfs (when alone) print badly in terminals: SELECT _ucs2 0xD800; Let's escape them as well. */ if (wc >= 0xD800 && wc <= 0xDFFF) return FALSE; return TRUE; }
O0
c
my_is_printable: pushq %rbp movq %rsp, %rbp movq %rdi, -0x10(%rbp) cmpq $0x20, -0x10(%rbp) jb 0xcb75c cmpq $0x7e, -0x10(%rbp) ja 0xcb75c movb $0x1, -0x1(%rbp) jmp 0xcb7b4 cmpq $0x9f, -0x10(%rbp) ja 0xcb796 movb $0x1, %al cmpq $0xd, -0x10(%rbp) movb %al, -0x11(%rbp) je 0xcb789 movb $0x1, %al cmpq $0xa, -0x10(%rbp) movb %al, -0x11(%rbp) je 0xcb789 cmpq $0x9, -0x10(%rbp) sete %al movb %al, -0x11(%rbp) movb -0x11(%rbp), %al andb $0x1, %al movzbl %al, %eax movb %al, -0x1(%rbp) jmp 0xcb7b4 cmpq $0xd800, -0x10(%rbp) # imm = 0xD800 jb 0xcb7b0 cmpq $0xdfff, -0x10(%rbp) # imm = 0xDFFF ja 0xcb7b0 movb $0x0, -0x1(%rbp) jmp 0xcb7b4 movb $0x1, -0x1(%rbp) movb -0x1(%rbp), %al popq %rbp retq nopl (%rax)
my_is_printable: push rbp mov rbp, rsp mov [rbp+var_10], rdi cmp [rbp+var_10], 20h ; ' ' jb short loc_CB75C cmp [rbp+var_10], 7Eh ; '~' ja short loc_CB75C mov [rbp+var_1], 1 jmp short loc_CB7B4 loc_CB75C: cmp [rbp+var_10], 9Fh ja short loc_CB796 mov al, 1 cmp [rbp+var_10], 0Dh mov [rbp+var_11], al jz short loc_CB789 mov al, 1 cmp [rbp+var_10], 0Ah mov [rbp+var_11], al jz short loc_CB789 cmp [rbp+var_10], 9 setz al mov [rbp+var_11], al loc_CB789: mov al, [rbp+var_11] and al, 1 movzx eax, al mov [rbp+var_1], al jmp short loc_CB7B4 loc_CB796: cmp [rbp+var_10], 0D800h jb short loc_CB7B0 cmp [rbp+var_10], 0DFFFh ja short loc_CB7B0 mov [rbp+var_1], 0 jmp short loc_CB7B4 loc_CB7B0: mov [rbp+var_1], 1 loc_CB7B4: mov al, [rbp+var_1] pop rbp retn
bool my_is_printable(unsigned long long a1) { bool v2; // [rsp+1h] [rbp-11h] if ( a1 >= 0x20 && a1 <= 0x7E ) return 1; if ( a1 > 0x9F ) return a1 < 0xD800 || a1 > 0xDFFF; v2 = 1; if ( a1 != 13 ) { v2 = 1; if ( a1 != 10 ) return a1 == 9; } return v2; }
my_is_printable: PUSH RBP MOV RBP,RSP MOV qword ptr [RBP + -0x10],RDI CMP qword ptr [RBP + -0x10],0x20 JC 0x001cb75c CMP qword ptr [RBP + -0x10],0x7e JA 0x001cb75c MOV byte ptr [RBP + -0x1],0x1 JMP 0x001cb7b4 LAB_001cb75c: CMP qword ptr [RBP + -0x10],0x9f JA 0x001cb796 MOV AL,0x1 CMP qword ptr [RBP + -0x10],0xd MOV byte ptr [RBP + -0x11],AL JZ 0x001cb789 MOV AL,0x1 CMP qword ptr [RBP + -0x10],0xa MOV byte ptr [RBP + -0x11],AL JZ 0x001cb789 CMP qword ptr [RBP + -0x10],0x9 SETZ AL MOV byte ptr [RBP + -0x11],AL LAB_001cb789: MOV AL,byte ptr [RBP + -0x11] AND AL,0x1 MOVZX EAX,AL MOV byte ptr [RBP + -0x1],AL JMP 0x001cb7b4 LAB_001cb796: CMP qword ptr [RBP + -0x10],0xd800 JC 0x001cb7b0 CMP qword ptr [RBP + -0x10],0xdfff JA 0x001cb7b0 MOV byte ptr [RBP + -0x1],0x0 JMP 0x001cb7b4 LAB_001cb7b0: MOV byte ptr [RBP + -0x1],0x1 LAB_001cb7b4: MOV AL,byte ptr [RBP + -0x1] POP RBP RET
bool my_is_printable(ulong param_1) { int1 local_19; int1 local_9; if ((param_1 < 0x20) || (0x7e < param_1)) { if (param_1 < 0xa0) { local_19 = true; if ((param_1 != 0xd) && (local_19 = true, param_1 != 10)) { local_19 = param_1 == 9; } local_9 = local_19; } else if ((param_1 < 0xd800) || (0xdfff < param_1)) { local_9 = true; } else { local_9 = false; } } else { local_9 = true; } return local_9; }
34,726
google::protobuf::DescriptorPool::FindMethodByName(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&) const
aimrt_mujoco_sim/_deps/protobuf-src/src/google/protobuf/descriptor.cc
const MethodDescriptor* DescriptorPool::FindMethodByName( ConstStringParam name) const { return tables_->FindByNameHelper(this, name).method_descriptor(); }
O3
cpp
google::protobuf::DescriptorPool::FindMethodByName(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&) const: pushq %rax movq %rdi, %rax movq 0x20(%rdi), %rdi movq (%rsi), %rdx movq 0x8(%rsi), %rcx movq %rax, %rsi callq 0x1c8ae xorl %ecx, %ecx cmpb $0x8, (%rax) cmovneq %rcx, %rax popq %rcx retq
_ZNK6google8protobuf14DescriptorPool16FindMethodByNameERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE: push rax mov rax, rdi mov rdi, [rdi+20h] mov rdx, [rsi] mov rcx, [rsi+8] mov rsi, rax call _ZN6google8protobuf14DescriptorPool6Tables16FindByNameHelperEPKS1_NS0_20stringpiece_internal11StringPieceE; google::protobuf::DescriptorPool::Tables::FindByNameHelper(google::protobuf::DescriptorPool const*,google::protobuf::stringpiece_internal::StringPiece) xor ecx, ecx cmp byte ptr [rax], 8 cmovnz rax, rcx pop rcx retn
_BYTE * google::protobuf::DescriptorPool::FindMethodByName(long long a1, long long *a2) { _BYTE *result; // rax result = google::protobuf::DescriptorPool::Tables::FindByNameHelper(*(_QWORD **)(a1 + 32), (_QWORD *)a1, *a2, a2[1]); if ( *result != 8 ) return 0LL; return result; }
FindMethodByName: PUSH RAX MOV RAX,RDI MOV RDI,qword ptr [RDI + 0x20] MOV RDX,qword ptr [RSI] MOV RCX,qword ptr [RSI + 0x8] MOV RSI,RAX CALL 0x0011c8ae XOR ECX,ECX CMP byte ptr [RAX],0x8 CMOVNZ RAX,RCX POP RCX RET
/* google::protobuf::DescriptorPool::FindMethodByName(std::__cxx11::string const&) const */ char * __thiscall google::protobuf::DescriptorPool::FindMethodByName(DescriptorPool *this,string *param_1) { char *pcVar1; pcVar1 = (char *)Tables::FindByNameHelper (*(int8 *)(this + 0x20),this,*(int8 *)param_1, *(int8 *)(param_1 + 8)); if (*pcVar1 != '\b') { pcVar1 = (char *)0x0; } return pcVar1; }
34,727
testing::internal::WideStringToUtf8[abi:cxx11](wchar_t const*, int)
giladroyz[P]FindPeaks/build_O1/_deps/googletest-src/googletest/src/gtest.cc
std::string WideStringToUtf8(const wchar_t* str, int num_chars) { if (num_chars == -1) num_chars = static_cast<int>(wcslen(str)); ::std::stringstream stream; for (int i = 0; i < num_chars; ++i) { uint32_t unicode_code_point; if (str[i] == L'\0') { break; } else if (i + 1 < num_chars && IsUtf16SurrogatePair(str[i], str[i + 1])) { unicode_code_point = CreateCodePointFromUtf16SurrogatePair(str[i], str[i + 1]); i++; } else { unicode_code_point = static_cast<uint32_t>(str[i]); } stream << CodePointToUtf8(unicode_code_point); } return StringStreamToString(&stream); }
O1
cpp
testing::internal::WideStringToUtf8[abi:cxx11](wchar_t const*, int): pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x1b8, %rsp # imm = 0x1B8 movl %edx, %r12d movq %rsi, %r14 movq %rdi, 0x28(%rsp) cmpl $-0x1, %edx jne 0x1f58c movq %r14, %rdi callq 0x8400 movq %rax, %r12 leaq 0x30(%rsp), %rdi callq 0x8340 testl %r12d, %r12d jle 0x1f5fe leaq 0x40(%rsp), %r15 movl %r12d, %ebx decq %rbx xorl %r13d, %r13d leaq 0x8(%rsp), %r12 movl (%r14,%r13,4), %ebp testl %ebp, %ebp je 0x1f5fe movq %r12, %rdi movl %ebp, %esi callq 0x1f2b9 movq 0x8(%rsp), %rsi movq 0x10(%rsp), %rdx movq %r15, %rdi callq 0x85b0 movq 0x8(%rsp), %rdi leaq 0x18(%rsp), %rax cmpq %rax, %rdi je 0x1f5ee movq 0x18(%rsp), %rsi incq %rsi callq 0x84e0 testl %ebp, %ebp je 0x1f5fe leaq 0x1(%r13), %rax cmpq %r13, %rbx movq %rax, %r13 jne 0x1f5ae leaq 0x30(%rsp), %rsi movq 0x28(%rsp), %rbx movq %rbx, %rdi callq 0x1cfc7 movq 0x39979(%rip), %rsi # 0x58f90 leaq 0x30(%rsp), %rdi callq 0x8390 leaq 0xb0(%rsp), %rdi callq 0x8190 movq %rbx, %rax addq $0x1b8, %rsp # imm = 0x1B8 popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq jmp 0x1f666 movq %rax, %rbx movq 0x8(%rsp), %rdi leaq 0x18(%rsp), %rax cmpq %rax, %rdi je 0x1f669 movq 0x18(%rsp), %rsi incq %rsi callq 0x84e0 jmp 0x1f669 movq %rax, %rbx movq 0x39920(%rip), %rsi # 0x58f90 leaq 0x30(%rsp), %rdi callq 0x8390 leaq 0xb0(%rsp), %rdi callq 0x8190 movq %rbx, %rdi callq 0x8990 nop
_ZN7testing8internal16WideStringToUtf8B5cxx11EPKwi: push rbp push r15 push r14 push r13 push r12 push rbx sub rsp, 1B8h mov r12d, edx mov r14, rsi mov qword ptr [rsp+1E8h+var_1C0], rdi; int cmp edx, 0FFFFFFFFh jnz short loc_1F58C mov rdi, r14 call _wcslen mov r12, rax loc_1F58C: lea rdi, [rsp+1E8h+var_1B8] call __ZNSt7__cxx1118basic_stringstreamIcSt11char_traitsIcESaIcEEC1Ev; std::basic_stringstream<char,std::char_traits<char>,std::allocator<char>>::basic_stringstream(void) test r12d, r12d jle short loc_1F5FE lea r15, [rsp+1E8h+var_1A8] mov ebx, r12d dec rbx xor r13d, r13d lea r12, [rsp+1E8h+var_1E0] loc_1F5AE: mov ebp, [r14+r13*4] test ebp, ebp jz short loc_1F5FE mov rdi, r12; int mov esi, ebp; int call _ZN7testing8internal15CodePointToUtf8B5cxx11Ej; testing::internal::CodePointToUtf8(uint) mov rsi, [rsp+1E8h+var_1E0] mov rdx, [rsp+1E8h+var_1D8] mov rdi, r15 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 * lea rax, [rsp+1E8h+var_1D0] cmp rdi, rax jz short loc_1F5EE mov rsi, [rsp+1E8h+var_1D0] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_1F5EE: test ebp, ebp jz short loc_1F5FE lea rax, [r13+1] cmp rbx, r13 mov r13, rax jnz short loc_1F5AE loc_1F5FE: lea rsi, [rsp+1E8h+var_1B8] mov rbx, qword ptr [rsp+1E8h+var_1C0] mov rdi, rbx call _ZN7testing8internal20StringStreamToStringEPNSt7__cxx1118basic_stringstreamIcSt11char_traitsIcESaIcEEE; testing::internal::StringStreamToString(std::basic_stringstream<char,std::char_traits<char>,std::allocator<char>> *) mov rsi, cs:_ZTTNSt7__cxx1118basic_stringstreamIcSt11char_traitsIcESaIcEEE_ptr lea rdi, [rsp+1E8h+var_1B8] call __ZNSt7__cxx1118basic_stringstreamIcSt11char_traitsIcESaIcEED2Ev; std::basic_stringstream<char,std::char_traits<char>,std::allocator<char>>::~basic_stringstream() lea rdi, [rsp+1E8h+var_138]; this call __ZNSt8ios_baseD2Ev; std::ios_base::~ios_base() mov rax, rbx add rsp, 1B8h pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn jmp short loc_1F666 mov rbx, rax mov rdi, [rsp+arg_0]; void * lea rax, [rsp+arg_10] cmp rdi, rax jz short loc_1F669 mov rsi, [rsp+arg_10] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) jmp short loc_1F669 loc_1F666: mov rbx, rax loc_1F669: mov rsi, cs:_ZTTNSt7__cxx1118basic_stringstreamIcSt11char_traitsIcESaIcEEE_ptr lea rdi, [rsp+arg_28] call __ZNSt7__cxx1118basic_stringstreamIcSt11char_traitsIcESaIcEED2Ev; std::basic_stringstream<char,std::char_traits<char>,std::allocator<char>>::~basic_stringstream() lea rdi, [rsp+arg_A8]; this call __ZNSt8ios_baseD2Ev; std::ios_base::~ios_base() mov rdi, rbx call __Unwind_Resume
long long testing::internal::WideStringToUtf8[abi:cxx11](long long a1, long long a2, int a3) { int v3; // r12d int v4; // edx int v5; // ecx int v6; // r8d int v7; // r9d long long v8; // r13 int v9; // ebp long long v11; // rbx void *v13; // [rsp+0h] [rbp-1E8h] void *v14; // [rsp+8h] [rbp-1E0h] BYREF long long v15; // [rsp+10h] [rbp-1D8h] long long v16; // [rsp+18h] [rbp-1D0h] BYREF int v17; // [rsp+20h] [rbp-1C8h] int v18[2]; // [rsp+28h] [rbp-1C0h] long long v19[2]; // [rsp+30h] [rbp-1B8h] BYREF _BYTE v20[112]; // [rsp+40h] [rbp-1A8h] BYREF _BYTE v21[312]; // [rsp+B0h] [rbp-138h] BYREF v3 = a3; *(_QWORD *)v18 = a1; if ( a3 == -1 ) v3 = wcslen(a2); std::basic_stringstream<char,std::char_traits<char>,std::allocator<char>>::basic_stringstream(v19); if ( v3 > 0 ) { v8 = 0LL; do { v9 = *(_DWORD *)(a2 + 4 * v8); if ( !v9 ) break; testing::internal::CodePointToUtf8[abi:cxx11]( (int)&v14, v9, v4, v5, v6, v7, v13, (int)v14, v15, v16, v17, v18[0], v19[0]); std::__ostream_insert<char,std::char_traits<char>>(v20, v14, v15); if ( v14 != &v16 ) operator delete(v14, v16 + 1); } while ( (unsigned int)v3 - 1LL != v8++ ); } v11 = *(_QWORD *)v18; testing::internal::StringStreamToString(*(long long *)v18, (long long)v19); std::basic_stringstream<char,std::char_traits<char>,std::allocator<char>>::~basic_stringstream( v19, &`VTT for'std::basic_stringstream<char,std::char_traits<char>,std::allocator<char>>); std::ios_base::~ios_base((std::ios_base *)v21); return v11; }
WideStringToUtf8[abi:cxx11]: PUSH RBP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0x1b8 MOV R12D,EDX MOV R14,RSI MOV qword ptr [RSP + 0x28],RDI CMP EDX,-0x1 JNZ 0x0011f58c MOV RDI,R14 CALL 0x00108400 MOV R12,RAX LAB_0011f58c: LEA RDI,[RSP + 0x30] CALL 0x00108340 TEST R12D,R12D JLE 0x0011f5fe LEA R15,[RSP + 0x40] MOV EBX,R12D DEC RBX XOR R13D,R13D LEA R12,[RSP + 0x8] LAB_0011f5ae: MOV EBP,dword ptr [R14 + R13*0x4] TEST EBP,EBP JZ 0x0011f5fe LAB_0011f5b6: MOV RDI,R12 MOV ESI,EBP CALL 0x0011f2b9 MOV RSI,qword ptr [RSP + 0x8] MOV RDX,qword ptr [RSP + 0x10] LAB_0011f5ca: MOV RDI,R15 CALL 0x001085b0 MOV RDI,qword ptr [RSP + 0x8] LEA RAX,[RSP + 0x18] CMP RDI,RAX JZ 0x0011f5ee MOV RSI,qword ptr [RSP + 0x18] INC RSI CALL 0x001084e0 LAB_0011f5ee: TEST EBP,EBP JZ 0x0011f5fe LEA RAX,[R13 + 0x1] CMP RBX,R13 MOV R13,RAX JNZ 0x0011f5ae LAB_0011f5fe: LEA RSI,[RSP + 0x30] MOV RBX,qword ptr [RSP + 0x28] MOV RDI,RBX CALL 0x0011cfc7 LAB_0011f610: MOV RSI,qword ptr [0x00158f90] LEA RDI,[RSP + 0x30] CALL 0x00108390 LEA RDI,[RSP + 0xb0] CALL 0x00108190 MOV RAX,RBX ADD RSP,0x1b8 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET
/* testing::internal::WideStringToUtf8[abi:cxx11](wchar_t const*, int) */ stringstream * __thiscall testing::internal::WideStringToUtf8_abi_cxx11_(internal *this,wchar_t *param_1,int param_2) { wchar_t wVar1; internal *piVar2; size_t sVar3; long lVar4; bool bVar5; long *local_1e0; long local_1d8; long local_1d0 [2]; internal *local_1c0; stringstream local_1b8 [16]; ostream local_1a8 [112]; ios_base local_138 [264]; local_1c0 = this; if (param_2 == -1) { sVar3 = wcslen(param_1); param_2 = (int)sVar3; } std::__cxx11::stringstream::stringstream(local_1b8); if (0 < param_2) { lVar4 = 0; while (wVar1 = param_1[lVar4], wVar1 != L'\0') { /* try { // try from 0011f5b6 to 0011f5bf has its CatchHandler @ 0011f666 */ CodePointToUtf8_abi_cxx11_((internal *)&local_1e0,wVar1); /* try { // try from 0011f5ca to 0011f5d1 has its CatchHandler @ 0011f645 */ std::__ostream_insert<char,std::char_traits<char>>(local_1a8,(char *)local_1e0,local_1d8); if (local_1e0 != local_1d0) { operator_delete(local_1e0,local_1d0[0] + 1); } if ((wVar1 == L'\0') || (bVar5 = (ulong)(uint)param_2 - 1 == lVar4, lVar4 = lVar4 + 1, bVar5)) break; } } /* try { // try from 0011f5fe to 0011f60f has its CatchHandler @ 0011f643 */ piVar2 = local_1c0; StringStreamToString((stringstream *)local_1c0); std::__cxx11::stringstream::~stringstream(local_1b8); std::ios_base::~ios_base(local_138); return (stringstream *)piVar2; }
34,728
ggml_add1_impl
Yangxiaoz[P]GGML-Tutorial/ggml/src/ggml.c
static struct ggml_tensor * ggml_add1_impl( struct ggml_context * ctx, struct ggml_tensor * a, struct ggml_tensor * b, bool inplace) { GGML_ASSERT(ggml_is_scalar(b)); GGML_ASSERT(ggml_is_padded_1d(a)); struct ggml_tensor * result = inplace ? ggml_view_tensor(ctx, a) : ggml_dup_tensor(ctx, a); result->op = GGML_OP_ADD1; result->src[0] = a; result->src[1] = b; return result; }
O3
c
ggml_add1_impl: pushq %r14 pushq %rbx pushq %rax cmpq $0x1, 0x10(%rdx) jne 0x1ae5f movq %rdx, %rbx cmpq $0x1, 0x18(%rdx) jne 0x1ae5f cmpq $0x1, 0x20(%rbx) jne 0x1ae5f cmpq $0x1, 0x28(%rbx) jne 0x1ae5f movq %rsi, %r14 movq 0x30(%rsi), %rax movl (%rsi), %esi imulq $0x38, %rsi, %rdx leaq 0x51fa4(%rip), %r8 # 0x6cda0 cmpq 0x18(%rdx,%r8), %rax jne 0x1ae7b movq 0x18(%r14), %rdx movq 0x40(%r14), %rax imulq 0x38(%r14), %rdx cmpq %rdx, %rax jne 0x1ae7b imulq 0x20(%r14), %rax cmpq %rax, 0x48(%r14) jne 0x1ae7b testb %cl, %cl je 0x1ae2e movq %r14, %rsi callq 0x16260 jmp 0x1ae42 leaq 0x10(%r14), %rcx movl $0x4, %edx xorl %r8d, %r8d xorl %r9d, %r9d callq 0x1a57f movl $0x3, 0x50(%rax) movq %r14, 0x98(%rax) movq %rbx, 0xa0(%rax) addq $0x8, %rsp popq %rbx popq %r14 retq leaq 0x317ad(%rip), %rdi # 0x4c613 leaq 0x317f8(%rip), %rdx # 0x4c665 leaq 0x339bb(%rip), %rcx # 0x4e82f movl $0x773, %esi # imm = 0x773 jmp 0x1ae95 leaq 0x31791(%rip), %rdi # 0x4c613 leaq 0x317dc(%rip), %rdx # 0x4c665 leaq 0x339b1(%rip), %rcx # 0x4e841 movl $0x774, %esi # imm = 0x774 xorl %eax, %eax callq 0x17cd0
ggml_add1_impl: push r14 push rbx push rax cmp qword ptr [rdx+10h], 1 jnz loc_1AE5F mov rbx, rdx cmp qword ptr [rdx+18h], 1 jnz loc_1AE5F cmp qword ptr [rbx+20h], 1 jnz short loc_1AE5F cmp qword ptr [rbx+28h], 1 jnz short loc_1AE5F mov r14, rsi mov rax, [rsi+30h] mov esi, [rsi] imul rdx, rsi, 38h ; '8' lea r8, type_traits cmp rax, [rdx+r8+18h] jnz short loc_1AE7B mov rdx, [r14+18h] mov rax, [r14+40h] imul rdx, [r14+38h] cmp rax, rdx jnz short loc_1AE7B imul rax, [r14+20h] cmp [r14+48h], rax jnz short loc_1AE7B test cl, cl jz short loc_1AE2E mov rsi, r14 call _ggml_view_tensor jmp short loc_1AE42 loc_1AE2E: lea rcx, [r14+10h] mov edx, 4 xor r8d, r8d xor r9d, r9d call ggml_new_tensor_impl loc_1AE42: mov dword ptr [rax+50h], 3 mov [rax+98h], r14 mov [rax+0A0h], rbx add rsp, 8 pop rbx pop r14 retn loc_1AE5F: lea rdi, aWorkspaceLlm4b; "/workspace/llm4binary/github/2025_star3"... lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed" lea rcx, aGgmlIsScalarB; "ggml_is_scalar(b)" mov esi, 773h jmp short loc_1AE95 loc_1AE7B: lea rdi, aWorkspaceLlm4b; "/workspace/llm4binary/github/2025_star3"... lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed" lea rcx, aGgmlIsPadded1d; "ggml_is_padded_1d(a)" mov esi, 774h loc_1AE95: xor eax, eax call _ggml_abort
long long ggml_add1_impl(long long a1, long long *a2, _QWORD *a3, char a4, char **a5, int a6, double a7) { char *v9; // rax long long v10; // rsi long long v11; // rax long long result; // rax const char *v13; // rcx int v14; // esi if ( a3[2] != 1LL || a3[3] != 1LL || a3[4] != 1LL || a3[5] != 1LL ) { v13 = "ggml_is_scalar(b)"; v14 = 1907; goto LABEL_14; } v9 = (char *)a2[6]; v10 = *(unsigned int *)a2; a5 = &type_traits; if ( v9 != (&type_traits)[7 * v10 + 3] || (v11 = a2[8], v11 != a2[7] * a2[3]) || a2[9] != a2[4] * v11 ) { v13 = "ggml_is_padded_1d(a)"; v14 = 1908; LABEL_14: ggml_abort( (unsigned int)"/workspace/llm4binary/github/2025_star3/Yangxiaoz[P]GGML-Tutorial/ggml/src/ggml.c", v14, (unsigned int)"GGML_ASSERT(%s) failed", (_DWORD)v13, (_DWORD)a5, a6); } if ( a4 ) result = ggml_view_tensor(a1, (long long)a2, a7); else result = ggml_new_tensor_impl(a1, v10, 4u, a2 + 2, 0LL, 0LL, a7); *(_DWORD *)(result + 80) = 3; *(_QWORD *)(result + 152) = a2; *(_QWORD *)(result + 160) = a3; return result; }
ggml_add1_impl: PUSH R14 PUSH RBX PUSH RAX CMP qword ptr [RDX + 0x10],0x1 JNZ 0x0011ae5f MOV RBX,RDX CMP qword ptr [RDX + 0x18],0x1 JNZ 0x0011ae5f CMP qword ptr [RBX + 0x20],0x1 JNZ 0x0011ae5f CMP qword ptr [RBX + 0x28],0x1 JNZ 0x0011ae5f MOV R14,RSI MOV RAX,qword ptr [RSI + 0x30] MOV ESI,dword ptr [RSI] IMUL RDX,RSI,0x38 LEA R8,[0x16cda0] CMP RAX,qword ptr [RDX + R8*0x1 + 0x18] JNZ 0x0011ae7b MOV RDX,qword ptr [R14 + 0x18] MOV RAX,qword ptr [R14 + 0x40] IMUL RDX,qword ptr [R14 + 0x38] CMP RAX,RDX JNZ 0x0011ae7b IMUL RAX,qword ptr [R14 + 0x20] CMP qword ptr [R14 + 0x48],RAX JNZ 0x0011ae7b TEST CL,CL JZ 0x0011ae2e MOV RSI,R14 CALL 0x00116260 JMP 0x0011ae42 LAB_0011ae2e: LEA RCX,[R14 + 0x10] MOV EDX,0x4 XOR R8D,R8D XOR R9D,R9D CALL 0x0011a57f LAB_0011ae42: MOV dword ptr [RAX + 0x50],0x3 MOV qword ptr [RAX + 0x98],R14 MOV qword ptr [RAX + 0xa0],RBX ADD RSP,0x8 POP RBX POP R14 RET LAB_0011ae5f: LEA RDI,[0x14c613] LEA RDX,[0x14c665] LEA RCX,[0x14e82f] MOV ESI,0x773 JMP 0x0011ae95 LAB_0011ae7b: LEA RDI,[0x14c613] LEA RDX,[0x14c665] LEA RCX,[0x14e841] MOV ESI,0x774 LAB_0011ae95: XOR EAX,EAX CALL 0x00117cd0
void ggml_add1_impl(int8 param_1,uint *param_2,long param_3,char param_4) { long lVar1; char *pcVar2; int8 uVar3; if ((((*(long *)(param_3 + 0x10) == 1) && (*(long *)(param_3 + 0x18) == 1)) && (*(long *)(param_3 + 0x20) == 1)) && (*(long *)(param_3 + 0x28) == 1)) { if (*(long *)(param_2 + 0xc) == *(long *)(type_traits + (ulong)*param_2 * 0x38 + 0x18)) { if ((*(long *)(param_2 + 0x10) == *(long *)(param_2 + 6) * *(long *)(param_2 + 0xe)) && (*(long *)(param_2 + 0x12) == *(long *)(param_2 + 0x10) * *(long *)(param_2 + 8))) { if (param_4 == '\0') { lVar1 = ggml_new_tensor_impl(param_1,(ulong)*param_2,4,param_2 + 4,0,0); } else { lVar1 = ggml_view_tensor(param_1,param_2); } *(int4 *)(lVar1 + 0x50) = 3; *(uint **)(lVar1 + 0x98) = param_2; *(long *)(lVar1 + 0xa0) = param_3; return; } } pcVar2 = "ggml_is_padded_1d(a)"; uVar3 = 0x774; } else { pcVar2 = "ggml_is_scalar(b)"; uVar3 = 0x773; } /* WARNING: Subroutine does not return */ ggml_abort("/workspace/llm4binary/github/2025_star3/Yangxiaoz[P]GGML-Tutorial/ggml/src/ggml.c", uVar3,"GGML_ASSERT(%s) failed",pcVar2); }
34,729
nglog::LogDestination::DeleteLogDestinations()
ng-log[P]ng-log/src/logging.cc
void LogDestination::DeleteLogDestinations() { for (auto& log_destination : log_destinations_) { log_destination.reset(); } SinkLock l{sink_mutex_}; sinks_.reset(); }
O1
cpp
nglog::LogDestination::DeleteLogDestinations(): pushq %r14 pushq %rbx pushq %rax xorl %ebx, %ebx leaq 0x2744d(%rip), %r14 # 0x32c60 leaq (%r14,%rbx), %rdi xorl %esi, %esi callq 0x139e0 addq $0x8, %rbx cmpq $0x20, %rbx jne 0xb813 leaq 0x273e9(%rip), %rdi # 0x32c18 callq 0x77f0 cmpl $0x23, %eax je 0xb86f movq 0x273d0(%rip), %rsi # 0x32c10 movq $0x0, 0x273c5(%rip) # 0x32c10 testq %rsi, %rsi je 0xb85c leaq 0x273b9(%rip), %rdi # 0x32c10 callq 0x13af2 leaq 0x273b5(%rip), %rdi # 0x32c18 addq $0x8, %rsp popq %rbx popq %r14 jmp 0x76d0 movl $0x23, %edi callq 0x7330
_ZN5nglog14LogDestination21DeleteLogDestinationsEv: push r14 push rbx push rax xor ebx, ebx lea r14, _ZN5nglog14LogDestination17log_destinations_E; nglog::LogDestination::log_destinations_ loc_B813: lea rdi, [r14+rbx] xor esi, esi call _ZNSt15__uniq_ptr_implIN5nglog14LogDestinationESt14default_deleteIS1_EE5resetEPS1_; std::__uniq_ptr_impl<nglog::LogDestination,std::default_delete<nglog::LogDestination>>::reset(nglog::LogDestination*) add rbx, 8 cmp rbx, 20h ; ' ' jnz short loc_B813 lea rdi, _ZN5nglog14LogDestination11sink_mutex_E; nglog::LogDestination::sink_mutex_ call _pthread_rwlock_wrlock cmp eax, 23h ; '#' jz short loc_B86F mov rsi, cs:_ZN5nglog14LogDestination6sinks_E; nglog::LogDestination::sinks_ mov cs:_ZN5nglog14LogDestination6sinks_E, 0; nglog::LogDestination::sinks_ test rsi, rsi jz short loc_B85C lea rdi, _ZN5nglog14LogDestination6sinks_E; nglog::LogDestination::sinks_ call _ZNKSt14default_deleteISt6vectorIPN5nglog7LogSinkESaIS3_EEEclEPS5_; std::default_delete<std::vector<nglog::LogSink *>>::operator()(std::vector<nglog::LogSink *>*) loc_B85C: lea rdi, _ZN5nglog14LogDestination11sink_mutex_E; nglog::LogDestination::sink_mutex_ add rsp, 8 pop rbx pop r14 jmp _pthread_rwlock_unlock loc_B86F: mov edi, 23h ; '#'; int call __ZSt20__throw_system_errori; std::__throw_system_error(int)
long long nglog::LogDestination::DeleteLogDestinations(nglog::LogDestination *this) { long long i; // rbx long long v2; // rsi for ( i = 0LL; i != 32; i += 8LL ) std::__uniq_ptr_impl<nglog::LogDestination,std::default_delete<nglog::LogDestination>>::reset( (char *)&nglog::LogDestination::log_destinations_ + i, 0LL); if ( (unsigned int)pthread_rwlock_wrlock(&nglog::LogDestination::sink_mutex_) == 35 ) std::__throw_system_error(35); v2 = nglog::LogDestination::sinks_; nglog::LogDestination::sinks_ = 0LL; if ( v2 ) std::default_delete<std::vector<nglog::LogSink *>>::operator()(&nglog::LogDestination::sinks_); return pthread_rwlock_unlock(&nglog::LogDestination::sink_mutex_); }
DeleteLogDestinations: PUSH R14 PUSH RBX PUSH RAX XOR EBX,EBX LEA R14,[0x132c60] LAB_0010b813: LEA RDI,[R14 + RBX*0x1] XOR ESI,ESI CALL 0x001139e0 ADD RBX,0x8 CMP RBX,0x20 JNZ 0x0010b813 LEA RDI,[0x132c18] CALL 0x001077f0 CMP EAX,0x23 JZ 0x0010b86f MOV RSI,qword ptr [0x00132c10] MOV qword ptr [0x00132c10],0x0 TEST RSI,RSI JZ 0x0010b85c LEA RDI,[0x132c10] CALL 0x00113af2 LAB_0010b85c: LEA RDI,[0x132c18] ADD RSP,0x8 POP RBX POP R14 JMP 0x001076d0 LAB_0010b86f: MOV EDI,0x23 CALL 0x00107330
/* nglog::LogDestination::DeleteLogDestinations() */ void nglog::LogDestination::DeleteLogDestinations(void) { vector *pvVar1; int iVar2; long lVar3; lVar3 = 0; do { std::__uniq_ptr_impl<nglog::LogDestination,std::default_delete<nglog::LogDestination>>::reset ((__uniq_ptr_impl<nglog::LogDestination,std::default_delete<nglog::LogDestination>> *) ((long)&log_destinations_ + lVar3),(LogDestination *)0x0); lVar3 = lVar3 + 8; } while (lVar3 != 0x20); iVar2 = pthread_rwlock_wrlock((pthread_rwlock_t *)sink_mutex_); pvVar1 = sinks_; if (iVar2 != 0x23) { sinks_ = (vector *)0x0; if (pvVar1 != (vector *)0x0) { std::default_delete<std::vector<nglog::LogSink*,std::allocator<nglog::LogSink*>>>::operator() ((default_delete<std::vector<nglog::LogSink*,std::allocator<nglog::LogSink*>>> *) &sinks_,pvVar1); } pthread_rwlock_unlock((pthread_rwlock_t *)sink_mutex_); return; } /* WARNING: Subroutine does not return */ std::__throw_system_error(0x23); }
34,730
nglog::LogDestination::DeleteLogDestinations()
ng-log[P]ng-log/src/logging.cc
void LogDestination::DeleteLogDestinations() { for (auto& log_destination : log_destinations_) { log_destination.reset(); } SinkLock l{sink_mutex_}; sinks_.reset(); }
O2
cpp
nglog::LogDestination::DeleteLogDestinations(): pushq %r14 pushq %rbx pushq %rax xorl %ebx, %ebx leaq 0x25f51(%rip), %r14 # 0x30cc0 cmpq $0x20, %rbx je 0xad86 leaq (%r14,%rbx), %rdi xorl %esi, %esi callq 0x10b3e addq $0x8, %rbx jmp 0xad6f leaq 0x25eeb(%rip), %rbx # 0x30c78 movq %rbx, %rdi callq 0x1c606 leaq 0x25ed4(%rip), %rdi # 0x30c70 xorl %esi, %esi callq 0x10cc4 movq %rbx, %rdi addq $0x8, %rsp popq %rbx popq %r14 jmp 0x7750
_ZN5nglog14LogDestination21DeleteLogDestinationsEv: push r14 push rbx push rax xor ebx, ebx lea r14, _ZN5nglog14LogDestination17log_destinations_E; nglog::LogDestination::log_destinations_ loc_AD6F: cmp rbx, 20h ; ' ' jz short loc_AD86 lea rdi, [r14+rbx] xor esi, esi call _ZNSt15__uniq_ptr_implIN5nglog14LogDestinationESt14default_deleteIS1_EE5resetEPS1_; std::__uniq_ptr_impl<nglog::LogDestination,std::default_delete<nglog::LogDestination>>::reset(nglog::LogDestination*) add rbx, 8 jmp short loc_AD6F loc_AD86: lea rbx, _ZN5nglog14LogDestination11sink_mutex_E; nglog::LogDestination::sink_mutex_ mov rdi, rbx; this call _ZNSt22__shared_mutex_pthread4lockEv; std::__shared_mutex_pthread::lock(void) lea rdi, _ZN5nglog14LogDestination6sinks_E; nglog::LogDestination::sinks_ xor esi, esi call _ZNSt15__uniq_ptr_implISt6vectorIPN5nglog7LogSinkESaIS3_EESt14default_deleteIS5_EE5resetEPS5_; std::__uniq_ptr_impl<std::vector<nglog::LogSink *>,std::default_delete<std::vector<nglog::LogSink *>>>::reset(std::vector<nglog::LogSink *>*) mov rdi, rbx add rsp, 8 pop rbx pop r14 jmp _pthread_rwlock_unlock
long long nglog::LogDestination::DeleteLogDestinations(nglog::LogDestination *this) { long long i; // rbx for ( i = 0LL; i != 32; i += 8LL ) std::__uniq_ptr_impl<nglog::LogDestination,std::default_delete<nglog::LogDestination>>::reset( (char *)&nglog::LogDestination::log_destinations_ + i, 0LL); std::__shared_mutex_pthread::lock((std::__shared_mutex_pthread *)&nglog::LogDestination::sink_mutex_); std::__uniq_ptr_impl<std::vector<nglog::LogSink *>,std::default_delete<std::vector<nglog::LogSink *>>>::reset( &nglog::LogDestination::sinks_, 0LL); return pthread_rwlock_unlock(&nglog::LogDestination::sink_mutex_); }
DeleteLogDestinations: PUSH R14 PUSH RBX PUSH RAX XOR EBX,EBX LEA R14,[0x130cc0] LAB_0010ad6f: CMP RBX,0x20 JZ 0x0010ad86 LEA RDI,[R14 + RBX*0x1] XOR ESI,ESI CALL 0x00110b3e ADD RBX,0x8 JMP 0x0010ad6f LAB_0010ad86: LEA RBX,[0x130c78] MOV RDI,RBX CALL 0x0011c606 LEA RDI,[0x130c70] XOR ESI,ESI CALL 0x00110cc4 MOV RDI,RBX ADD RSP,0x8 POP RBX POP R14 JMP 0x00107750
/* nglog::LogDestination::DeleteLogDestinations() */ void nglog::LogDestination::DeleteLogDestinations(void) { long lVar1; for (lVar1 = 0; lVar1 != 0x20; lVar1 = lVar1 + 8) { std::__uniq_ptr_impl<nglog::LogDestination,std::default_delete<nglog::LogDestination>>::reset ((__uniq_ptr_impl<nglog::LogDestination,std::default_delete<nglog::LogDestination>> *) ((long)&log_destinations_ + lVar1),(LogDestination *)0x0); } std::__shared_mutex_pthread::lock((__shared_mutex_pthread *)sink_mutex_); std:: __uniq_ptr_impl<std::vector<nglog::LogSink*,std::allocator<nglog::LogSink*>>,std::default_delete<std::vector<nglog::LogSink*,std::allocator<nglog::LogSink*>>>> ::reset((__uniq_ptr_impl<std::vector<nglog::LogSink*,std::allocator<nglog::LogSink*>>,std::default_delete<std::vector<nglog::LogSink*,std::allocator<nglog::LogSink*>>>> *)&sinks_,(vector *)0x0); pthread_rwlock_unlock((pthread_rwlock_t *)sink_mutex_); return; }
34,731
nglog::LogDestination::DeleteLogDestinations()
ng-log[P]ng-log/src/logging.cc
void LogDestination::DeleteLogDestinations() { for (auto& log_destination : log_destinations_) { log_destination.reset(); } SinkLock l{sink_mutex_}; sinks_.reset(); }
O3
cpp
nglog::LogDestination::DeleteLogDestinations(): pushq %r14 pushq %rbx pushq %rax xorl %ebx, %ebx leaq 0x27729(%rip), %r14 # 0x32c60 leaq (%r14,%rbx), %rdi xorl %esi, %esi callq 0x135f6 addq $0x8, %rbx cmpq $0x20, %rbx jne 0xb537 leaq 0x276c5(%rip), %rdi # 0x32c18 callq 0x77f0 cmpl $0x23, %eax je 0xb593 movq 0x276ac(%rip), %rsi # 0x32c10 movq $0x0, 0x276a1(%rip) # 0x32c10 testq %rsi, %rsi je 0xb580 leaq 0x27695(%rip), %rdi # 0x32c10 callq 0x13708 leaq 0x27691(%rip), %rdi # 0x32c18 addq $0x8, %rsp popq %rbx popq %r14 jmp 0x76d0 movl $0x23, %edi callq 0x7330
_ZN5nglog14LogDestination21DeleteLogDestinationsEv: push r14 push rbx push rax xor ebx, ebx lea r14, _ZN5nglog14LogDestination17log_destinations_E; nglog::LogDestination::log_destinations_ loc_B537: lea rdi, [r14+rbx] xor esi, esi call _ZNSt15__uniq_ptr_implIN5nglog14LogDestinationESt14default_deleteIS1_EE5resetEPS1_; std::__uniq_ptr_impl<nglog::LogDestination,std::default_delete<nglog::LogDestination>>::reset(nglog::LogDestination*) add rbx, 8 cmp rbx, 20h ; ' ' jnz short loc_B537 lea rdi, _ZN5nglog14LogDestination11sink_mutex_E; nglog::LogDestination::sink_mutex_ call _pthread_rwlock_wrlock cmp eax, 23h ; '#' jz short loc_B593 mov rsi, cs:_ZN5nglog14LogDestination6sinks_E; nglog::LogDestination::sinks_ mov cs:_ZN5nglog14LogDestination6sinks_E, 0; nglog::LogDestination::sinks_ test rsi, rsi jz short loc_B580 lea rdi, _ZN5nglog14LogDestination6sinks_E; nglog::LogDestination::sinks_ call _ZNKSt14default_deleteISt6vectorIPN5nglog7LogSinkESaIS3_EEEclEPS5_; std::default_delete<std::vector<nglog::LogSink *>>::operator()(std::vector<nglog::LogSink *>*) loc_B580: lea rdi, _ZN5nglog14LogDestination11sink_mutex_E; nglog::LogDestination::sink_mutex_ add rsp, 8 pop rbx pop r14 jmp _pthread_rwlock_unlock loc_B593: mov edi, 23h ; '#'; int call __ZSt20__throw_system_errori; std::__throw_system_error(int)
long long nglog::LogDestination::DeleteLogDestinations(nglog::LogDestination *this) { long long i; // rbx long long v2; // rsi for ( i = 0LL; i != 32; i += 8LL ) std::__uniq_ptr_impl<nglog::LogDestination,std::default_delete<nglog::LogDestination>>::reset( (char *)&nglog::LogDestination::log_destinations_ + i, 0LL); if ( (unsigned int)pthread_rwlock_wrlock(&nglog::LogDestination::sink_mutex_) == 35 ) std::__throw_system_error(35); v2 = nglog::LogDestination::sinks_; nglog::LogDestination::sinks_ = 0LL; if ( v2 ) std::default_delete<std::vector<nglog::LogSink *>>::operator()(&nglog::LogDestination::sinks_); return pthread_rwlock_unlock(&nglog::LogDestination::sink_mutex_); }
DeleteLogDestinations: PUSH R14 PUSH RBX PUSH RAX XOR EBX,EBX LEA R14,[0x132c60] LAB_0010b537: LEA RDI,[R14 + RBX*0x1] XOR ESI,ESI CALL 0x001135f6 ADD RBX,0x8 CMP RBX,0x20 JNZ 0x0010b537 LEA RDI,[0x132c18] CALL 0x001077f0 CMP EAX,0x23 JZ 0x0010b593 MOV RSI,qword ptr [0x00132c10] MOV qword ptr [0x00132c10],0x0 TEST RSI,RSI JZ 0x0010b580 LEA RDI,[0x132c10] CALL 0x00113708 LAB_0010b580: LEA RDI,[0x132c18] ADD RSP,0x8 POP RBX POP R14 JMP 0x001076d0 LAB_0010b593: MOV EDI,0x23 CALL 0x00107330
/* nglog::LogDestination::DeleteLogDestinations() */ void nglog::LogDestination::DeleteLogDestinations(void) { vector *pvVar1; int iVar2; long lVar3; lVar3 = 0; do { std::__uniq_ptr_impl<nglog::LogDestination,std::default_delete<nglog::LogDestination>>::reset ((__uniq_ptr_impl<nglog::LogDestination,std::default_delete<nglog::LogDestination>> *) ((long)&log_destinations_ + lVar3),(LogDestination *)0x0); lVar3 = lVar3 + 8; } while (lVar3 != 0x20); iVar2 = pthread_rwlock_wrlock((pthread_rwlock_t *)sink_mutex_); pvVar1 = sinks_; if (iVar2 != 0x23) { sinks_ = (vector *)0x0; if (pvVar1 != (vector *)0x0) { std::default_delete<std::vector<nglog::LogSink*,std::allocator<nglog::LogSink*>>>::operator() ((default_delete<std::vector<nglog::LogSink*,std::allocator<nglog::LogSink*>>> *) &sinks_,pvVar1); } pthread_rwlock_unlock((pthread_rwlock_t *)sink_mutex_); return; } /* WARNING: Subroutine does not return */ std::__throw_system_error(0x23); }
34,732
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>::basic_json(std::initializer_list<nlohmann::json_abi_v3_11_3::detail::json_ref<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__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, nlohmann::json_abi_v3_11_3::detail::value_t)
monkey531[P]llama/common/./json.hpp
basic_json(initializer_list_t init, bool type_deduction = true, value_t manual_type = value_t::array) { // check if each element is an array with two elements whose first // element is a string bool is_an_object = std::all_of(init.begin(), init.end(), [](const detail::json_ref<basic_json>& element_ref) { // The cast is to ensure op[size_type] is called, bearing in mind size_type may not be int; // (many string types can be constructed from 0 via its null-pointer guise, so we get a // broken call to op[key_type], the wrong semantics and a 4804 warning on Windows) return element_ref->is_array() && element_ref->size() == 2 && (*element_ref)[static_cast<size_type>(0)].is_string(); }); // adjust type if type deduction is not wanted if (!type_deduction) { // if array is wanted, do not create an object though possible if (manual_type == value_t::array) { is_an_object = false; } // if object is wanted but impossible, throw an exception if (JSON_HEDLEY_UNLIKELY(manual_type == value_t::object && !is_an_object)) { JSON_THROW(type_error::create(301, "cannot create object from initializer list", nullptr)); } } if (is_an_object) { // the initializer list is a list of pairs -> create object m_data.m_type = value_t::object; m_data.m_value = value_t::object; for (auto& element_ref : init) { auto element = element_ref.moved_or_copied(); m_data.m_value.object->emplace( std::move(*((*element.m_data.m_value.array)[0].m_data.m_value.string)), std::move((*element.m_data.m_value.array)[1])); } } else { // the initializer list describes an array -> create array m_data.m_type = value_t::array; m_data.m_value.array = create<array_t>(init.begin(), init.end()); } set_parents(); assert_invariant(); }
O0
cpp
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>::basic_json(std::initializer_list<nlohmann::json_abi_v3_11_3::detail::json_ref<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__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, nlohmann::json_abi_v3_11_3::detail::value_t): subq $0x128, %rsp # imm = 0x128 movb %r8b, %al movq %rsi, 0x118(%rsp) movq %rdx, 0x120(%rsp) movq %rdi, 0x110(%rsp) andb $0x1, %cl movb %cl, 0x10f(%rsp) movb %al, 0x10e(%rsp) movq 0x110(%rsp), %rdi movq %rdi, 0x50(%rsp) movq %rdi, %rax movq %rax, 0x58(%rsp) xorps %xmm0, %xmm0 movups %xmm0, (%rdi) callq 0xa2100 leaq 0x118(%rsp), %rdi movq %rdi, 0x60(%rsp) callq 0x10ce50 movq 0x60(%rsp), %rdi movq %rax, 0x68(%rsp) callq 0x10ce60 movq 0x68(%rsp), %rdi movq %rax, %rsi callq 0x10ce10 movb %al, 0x77(%rsp) jmp 0x6e7c7 movb 0x77(%rsp), %al andb $0x1, %al movb %al, 0x10d(%rsp) testb $0x1, 0x10f(%rsp) jne 0x6e924 cmpb $0x2, 0x10e(%rsp) jne 0x6e80f movb $0x0, 0x10d(%rsp) jmp 0x6e80f movq %rax, %rcx movl %edx, %eax movq %rcx, 0x100(%rsp) movl %eax, 0xfc(%rsp) jmp 0x6eb09 xorl %eax, %eax cmpb $0x1, 0x10e(%rsp) movb %al, 0x4f(%rsp) jne 0x6e82c movb 0x10d(%rsp), %al xorb $-0x1, %al movb %al, 0x4f(%rsp) movb 0x4f(%rsp), %al xorb $-0x1, %al xorb $-0x1, %al testb $0x1, %al jne 0x6e83d jmp 0x6e922 movb $0x1, 0xd6(%rsp) movl $0x20, %edi callq 0x50540 movq %rax, 0x38(%rsp) leaq 0xd7(%rsp), %rdi movq %rdi, 0x40(%rsp) callq 0x50d60 movq 0x40(%rsp), %rdx leaq 0x163902(%rip), %rsi # 0x1d2174 leaq 0xd8(%rsp), %rdi callq 0x61bd0 jmp 0x6e881 movq 0x38(%rsp), %rdi xorl %eax, %eax movl %eax, %ecx movl $0x12d, %esi # imm = 0x12D leaq 0xd8(%rsp), %rdx callq 0x10cea0 jmp 0x6e89e movq 0x38(%rsp), %rdi movb $0x0, 0xd6(%rsp) leaq 0x1e3846(%rip), %rsi # 0x2520f8 leaq 0x31cb7(%rip), %rdx # 0xa0570 callq 0x508f0 jmp 0x6eb20 movq %rax, %rcx movl %edx, %eax movq %rcx, 0x100(%rsp) movl %eax, 0xfc(%rsp) jmp 0x6e8fa movq %rax, %rcx movl %edx, %eax movq %rcx, 0x100(%rsp) movl %eax, 0xfc(%rsp) leaq 0xd8(%rsp), %rdi callq 0x510c0 leaq 0xd7(%rsp), %rdi callq 0x510a0 testb $0x1, 0xd6(%rsp) jne 0x6e913 jmp 0x6e91d movq 0x38(%rsp), %rdi callq 0x50c40 jmp 0x6eb09 jmp 0x6e924 testb $0x1, 0x10d(%rsp) je 0x6ea90 movq 0x58(%rsp), %rax movb $0x1, (%rax) leaq 0xc8(%rsp), %rdi movl $0x1, %esi callq 0xc17f0 jmp 0x6e94e movq 0x58(%rsp), %rax movq 0xc8(%rsp), %rcx movq %rcx, 0x8(%rax) leaq 0x118(%rsp), %rax movq %rax, 0xc0(%rsp) movq 0xc0(%rsp), %rdi callq 0x10ce50 movq %rax, 0xb8(%rsp) movq 0xc0(%rsp), %rdi callq 0x10ce60 movq %rax, 0xb0(%rsp) movq 0xb8(%rsp), %rax cmpq 0xb0(%rsp), %rax je 0x6ea8e movq 0xb8(%rsp), %rax movq %rax, 0xa8(%rsp) movq 0xa8(%rsp), %rsi leaq 0x98(%rsp), %rdi callq 0x10d040 jmp 0x6e9d6 movq 0x58(%rsp), %rax movq 0x8(%rax), %rax movq %rax, 0x18(%rsp) movq 0xa0(%rsp), %rdi xorl %eax, %eax movl %eax, %esi callq 0x10d0a0 movq 0x8(%rax), %rax movq %rax, 0x20(%rsp) movq 0xa0(%rsp), %rdi movl $0x1, %esi callq 0x10d0a0 movq 0x18(%rsp), %rdi movq 0x20(%rsp), %rsi movq %rax, %rdx callq 0xbdb00 movb %dl, 0x2f(%rsp) movq %rax, 0x30(%rsp) jmp 0x6ea2d movb 0x2f(%rsp), %al movq 0x30(%rsp), %rcx movq %rcx, 0x88(%rsp) movb %al, 0x90(%rsp) leaq 0x98(%rsp), %rdi callq 0x6e0f0 movq 0xb8(%rsp), %rax addq $0x18, %rax movq %rax, 0xb8(%rsp) jmp 0x6e999 movq %rax, %rcx movl %edx, %eax movq %rcx, 0x100(%rsp) movl %eax, 0xfc(%rsp) leaq 0x98(%rsp), %rdi callq 0x6e0f0 jmp 0x6eb09 jmp 0x6eae8 movq 0x58(%rsp), %rax movb $0x2, (%rax) leaq 0x118(%rsp), %rdi movq %rdi, 0x8(%rsp) callq 0x10ce50 movq 0x8(%rsp), %rdi movq %rax, 0x80(%rsp) callq 0x10ce60 movq %rax, 0x78(%rsp) leaq 0x80(%rsp), %rdi leaq 0x78(%rsp), %rsi callq 0x10d0c0 movq %rax, 0x10(%rsp) jmp 0x6eada movq 0x58(%rsp), %rax movq 0x10(%rsp), %rcx movq %rcx, 0x8(%rax) movq 0x58(%rsp), %rdi callq 0x9faf0 movq 0x58(%rsp), %rdi movl $0x1, %esi callq 0x9f9a0 addq $0x128, %rsp # imm = 0x128 retq movq 0x50(%rsp), %rdi callq 0xbd440 movq 0x100(%rsp), %rdi callq 0x50940
_ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEC2ESt16initializer_listINS0_6detail8json_refISD_EEEbNSF_7value_tE: sub rsp, 128h mov al, r8b mov qword ptr [rsp+128h+var_10], rsi mov [rsp+128h+var_8], rdx mov qword ptr [rsp+128h+var_18], rdi and cl, 1 mov [rsp+128h+var_19], cl mov [rsp+128h+var_1A], al mov rdi, qword ptr [rsp+128h+var_18] mov qword ptr [rsp+128h+var_D8], rdi; char mov rax, rdi mov qword ptr [rsp+128h+var_D0], rax; int xorps xmm0, xmm0 movups xmmword ptr [rdi], xmm0 call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE4dataC2Ev; 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(void) lea rdi, [rsp+128h+var_10] mov qword ptr [rsp+128h+var_C8], rdi; int call _ZNKSt16initializer_listIN8nlohmann16json_abi_v3_11_36detail8json_refINS1_10basic_jsonINS1_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES6_IhSaIhEEvEEEEE5beginEv; std::initializer_list<nlohmann::json_abi_v3_11_3::detail::json_ref<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>>::begin(void) mov rdi, qword ptr [rsp+128h+var_C8] mov qword ptr [rsp+128h+var_C0], rax; int call _ZNKSt16initializer_listIN8nlohmann16json_abi_v3_11_36detail8json_refINS1_10basic_jsonINS1_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES6_IhSaIhEEvEEEEE3endEv; std::initializer_list<nlohmann::json_abi_v3_11_3::detail::json_ref<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>>::end(void) mov rdi, qword ptr [rsp+128h+var_C0] mov rsi, rax call _ZSt6all_ofIPKN8nlohmann16json_abi_v3_11_36detail8json_refINS1_10basic_jsonINS1_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES6_IhSaIhEEvEEEEZNSG_C1ESt16initializer_listISH_EbNS2_7value_tEEUlRSI_E_EbT_SP_T0_; std::all_of<nlohmann::json_abi_v3_11_3::detail::json_ref<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>> const*,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::(std::initializer_list<nlohmann::json_abi_v3_11_3::detail::json_ref<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>>,bool,nlohmann::json_abi_v3_11_3::detail::value_t)::{lambda(nlohmann::json_abi_v3_11_3::detail::json_ref<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>> const&)#1}>(nlohmann::json_abi_v3_11_3::detail::json_ref<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>> const*,nlohmann::json_abi_v3_11_3::detail::json_ref<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>> const*,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::(std::initializer_list<nlohmann::json_abi_v3_11_3::detail::json_ref<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>>,bool,nlohmann::json_abi_v3_11_3::detail::value_t)::{lambda(nlohmann::json_abi_v3_11_3::detail::json_ref<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>> const&)#1}) mov [rsp+128h+var_B1], al jmp short $+2 loc_6E7C7: mov al, [rsp+128h+var_B1] and al, 1 mov [rsp+128h+var_1B], al test [rsp+128h+var_19], 1 jnz loc_6E924 cmp [rsp+128h+var_1A], 2 jnz short loc_6E80F mov [rsp+128h+var_1B], 0 jmp short loc_6E80F mov rcx, rax mov eax, edx mov [rsp+arg_F8], rcx mov [rsp+arg_F4], eax jmp loc_6EB09 loc_6E80F: xor eax, eax cmp [rsp+128h+var_1A], 1 mov [rsp+128h+var_D9], al jnz short loc_6E82C mov al, [rsp+128h+var_1B] xor al, 0FFh mov [rsp+128h+var_D9], al loc_6E82C: mov al, [rsp+128h+var_D9] xor al, 0FFh xor al, 0FFh test al, 1 jnz short loc_6E83D jmp loc_6E922 loc_6E83D: mov [rsp+128h+var_52], 1 mov edi, 20h ; ' '; thrown_size call ___cxa_allocate_exception mov [rsp+128h+var_F0], rax; int lea rdi, [rsp+128h+var_51] mov [rsp+128h+var_E8], rdi; __int64 call __ZNSaIcEC1Ev; std::allocator<char>::allocator(void) mov rdx, [rsp+128h+var_E8] lea rsi, aCannotCreateOb; "cannot create object from initializer l"... lea rdi, [rsp+128h+var_51+1] call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_; std::string::basic_string<std::allocator<char>>(char const*,std::allocator<char> const&) jmp short $+2 loc_6E881: mov rdi, [rsp+128h+var_F0]; int xor eax, eax mov ecx, eax mov esi, 12Dh lea rdx, [rsp+128h+var_51+1] call _ZN8nlohmann16json_abi_v3_11_36detail10type_error6createIDnTnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES5_ jmp short $+2 loc_6E89E: mov rdi, [rsp+128h+var_F0]; void * mov [rsp+128h+var_52], 0 lea rsi, _ZTIN8nlohmann16json_abi_v3_11_36detail10type_errorE; lptinfo lea rdx, _ZN8nlohmann16json_abi_v3_11_36detail10type_errorD2Ev; void (*)(void *) call ___cxa_throw jmp _ZN8nlohmann16json_abi_v3_11_36detail8json_refINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEEC2EOSF_; nlohmann::json_abi_v3_11_3::detail::json_ref<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>::json_ref(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>&&) mov rcx, rax mov eax, edx mov [rsp+arg_F8], rcx mov [rsp+arg_F4], eax jmp short loc_6E8FA mov rcx, rax mov eax, edx mov [rsp+arg_F8], rcx mov [rsp+arg_F4], eax lea rdi, [rsp+arg_D0]; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string() loc_6E8FA: lea rdi, [rsp+arg_CF] call __ZNSaIcED1Ev; std::allocator<char>::~allocator() test [rsp+arg_CE], 1 jnz short loc_6E913 jmp short loc_6E91D loc_6E913: mov rdi, [rsp+arg_30]; void * call ___cxa_free_exception loc_6E91D: jmp loc_6EB09 loc_6E922: jmp short $+2 loc_6E924: test [rsp+128h+var_1B], 1 jz loc_6EA90 mov rax, qword ptr [rsp+128h+var_D0] mov byte ptr [rax], 1 lea rdi, [rsp+128h+var_60]; int mov esi, 1 call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE10json_valueC2ENS0_6detail7value_tE; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::json_value::json_value(nlohmann::json_abi_v3_11_3::detail::value_t) jmp short $+2 loc_6E94E: mov rax, qword ptr [rsp+128h+var_D0] mov rcx, qword ptr [rsp+128h+var_60] mov [rax+8], rcx lea rax, [rsp+128h+var_10] mov [rsp+128h+var_68], rax mov rdi, [rsp+128h+var_68] call _ZNKSt16initializer_listIN8nlohmann16json_abi_v3_11_36detail8json_refINS1_10basic_jsonINS1_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES6_IhSaIhEEvEEEEE5beginEv; std::initializer_list<nlohmann::json_abi_v3_11_3::detail::json_ref<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>>::begin(void) mov [rsp+128h+var_70], rax mov rdi, [rsp+128h+var_68] call _ZNKSt16initializer_listIN8nlohmann16json_abi_v3_11_36detail8json_refINS1_10basic_jsonINS1_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES6_IhSaIhEEvEEEEE3endEv; std::initializer_list<nlohmann::json_abi_v3_11_3::detail::json_ref<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>>::end(void) mov [rsp+128h+var_78], rax loc_6E999: mov rax, [rsp+128h+var_70] cmp rax, [rsp+128h+var_78] jz loc_6EA8E mov rax, [rsp+128h+var_70] mov [rsp+128h+var_80], rax mov rsi, [rsp+128h+var_80] lea rdi, [rsp+128h+var_90] call _ZNK8nlohmann16json_abi_v3_11_36detail8json_refINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEE15moved_or_copiedEv; nlohmann::json_abi_v3_11_3::detail::json_ref<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>::moved_or_copied(void) jmp short $+2 loc_6E9D6: mov rax, qword ptr [rsp+128h+var_D0] mov rax, [rax+8] mov [rsp+128h+var_110], rax mov rdi, [rsp+128h+var_88] xor eax, eax mov esi, eax call _ZNSt6vectorIN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapES_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES_IhSaIhEEvEESaISD_EEixEm; std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>::operator[](ulong) mov rax, [rax+8] mov [rsp+128h+var_108], rax mov rdi, [rsp+128h+var_88] mov esi, 1 call _ZNSt6vectorIN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapES_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES_IhSaIhEEvEESaISD_EEixEm; std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>::operator[](ulong) mov rdi, [rsp+128h+var_110] mov rsi, [rsp+128h+var_108] mov rdx, rax call _ZN8nlohmann16json_abi_v3_11_311ordered_mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEENS0_10basic_jsonIS1_St6vectorS7_blmdSaNS0_14adl_serializerES9_IhSaIhEEvEESt4lessIvESaISt4pairIKS7_SD_EEE7emplaceERSH_OSD_; nlohmann::json_abi_v3_11_3::ordered_map<std::string,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>,std::less<void>,std::allocator<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>>>::emplace(std::string const&,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>&&) mov [rsp+128h+var_F9], dl mov [rsp+128h+var_F8], rax jmp short $+2 loc_6EA2D: mov al, [rsp+128h+var_F9] mov rcx, [rsp+128h+var_F8] mov [rsp+128h+var_A0], rcx mov [rsp+128h+var_98], al lea rdi, [rsp+128h+var_90] call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvED2Ev; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::~basic_json() mov rax, [rsp+128h+var_70] add rax, 18h mov [rsp+128h+var_70], rax jmp loc_6E999 mov rcx, rax mov eax, edx mov [rsp+arg_F8], rcx mov [rsp+arg_F4], eax lea rdi, [rsp+arg_90] call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvED2Ev; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::~basic_json() jmp short loc_6EB09 loc_6EA8E: jmp short loc_6EAE8 loc_6EA90: mov rax, qword ptr [rsp+128h+var_D0] mov byte ptr [rax], 2 lea rdi, [rsp+128h+var_10] mov [rsp+128h+var_120], rdi call _ZNKSt16initializer_listIN8nlohmann16json_abi_v3_11_36detail8json_refINS1_10basic_jsonINS1_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES6_IhSaIhEEvEEEEE5beginEv; std::initializer_list<nlohmann::json_abi_v3_11_3::detail::json_ref<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>>::begin(void) mov rdi, [rsp+128h+var_120] mov [rsp+128h+var_A8], rax call _ZNKSt16initializer_listIN8nlohmann16json_abi_v3_11_36detail8json_refINS1_10basic_jsonINS1_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES6_IhSaIhEEvEEEEE3endEv; std::initializer_list<nlohmann::json_abi_v3_11_3::detail::json_ref<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>>::end(void) mov [rsp+128h+var_B0], rax lea rdi, [rsp+128h+var_A8] lea rsi, [rsp+128h+var_B0] call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE6createIS3_ISD_SaISD_EEJPKNS0_6detail8json_refISD_EESL_EEEPT_DpOT0_; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::create<std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>,nlohmann::json_abi_v3_11_3::detail::json_ref<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>> const*,nlohmann::json_abi_v3_11_3::detail::json_ref<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>> const*>(nlohmann::json_abi_v3_11_3::detail::json_ref<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>> const*,nlohmann::json_abi_v3_11_3::detail::json_ref<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>> const* &&) mov [rsp+128h+var_118], rax jmp short $+2 loc_6EADA: mov rax, qword ptr [rsp+128h+var_D0] mov rcx, [rsp+128h+var_118] mov [rax+8], rcx loc_6EAE8: mov rdi, qword ptr [rsp+128h+var_D0] call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE11set_parentsEv; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::set_parents(void) mov rdi, qword ptr [rsp+128h+var_D0] mov esi, 1 call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE16assert_invariantEb; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::assert_invariant(bool) add rsp, 128h retn loc_6EB09: mov rdi, [rsp+arg_48] call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE4dataD2Ev; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::data::~data() mov rdi, [rsp+arg_F8] 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>::basic_json( long long a1, long long a2, long long a3, char a4, char a5) { long long v5; // rax long long *v6; // rsi long long v7; // rax char v8; // dl int v10; // [rsp+0h] [rbp-128h] int v11; // [rsp+8h] [rbp-120h] int v12; // [rsp+10h] [rbp-118h] __int16 v13; // [rsp+18h] [rbp-110h] long long v14; // [rsp+18h] [rbp-110h] long long v15; // [rsp+20h] [rbp-108h] long long *v16; // [rsp+20h] [rbp-108h] int v17; // [rsp+28h] [rbp-100h] int v18; // [rsp+30h] [rbp-F8h] int exception; // [rsp+38h] [rbp-F0h] void *v20; // [rsp+38h] [rbp-F0h] int v21; // [rsp+48h] [rbp-E0h] char v22; // [rsp+4Fh] [rbp-D9h] int v23[2]; // [rsp+68h] [rbp-C0h] char v24; // [rsp+70h] [rbp-B8h] long long v25; // [rsp+78h] [rbp-B0h] BYREF long long v26; // [rsp+80h] [rbp-A8h] BYREF long long v27; // [rsp+88h] [rbp-A0h] char v28; // [rsp+90h] [rbp-98h] _BYTE v29[8]; // [rsp+98h] [rbp-90h] BYREF long long v30; // [rsp+A0h] [rbp-88h] long long v31; // [rsp+A8h] [rbp-80h] long long v32; // [rsp+B0h] [rbp-78h] long long v33; // [rsp+B8h] [rbp-70h] int *v34; // [rsp+C0h] [rbp-68h] int v35[2]; // [rsp+C8h] [rbp-60h] BYREF char v36; // [rsp+D6h] [rbp-52h] long long v37[6]; // [rsp+D7h] [rbp-51h] BYREF char v38; // [rsp+10Dh] [rbp-1Bh] char v39; // [rsp+10Eh] [rbp-1Ah] char v40; // [rsp+10Fh] [rbp-19h] char v41[8]; // [rsp+110h] [rbp-18h] int v42[2]; // [rsp+118h] [rbp-10h] BYREF long long v43; // [rsp+120h] [rbp-8h] *(_QWORD *)v42 = a2; v43 = a3; *(_QWORD *)v41 = a1; v40 = a4 & 1; v39 = a5; *(_OWORD *)a1 = 0LL; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::data::data(); *(_QWORD *)v23 = std::initializer_list<nlohmann::json_abi_v3_11_3::detail::json_ref<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>>::begin(v42); v5 = std::initializer_list<nlohmann::json_abi_v3_11_3::detail::json_ref<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>>::end(v42); v38 = std::all_of<nlohmann::json_abi_v3_11_3::detail::json_ref<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>> const*,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::initializer_list<nlohmann::json_abi_v3_11_3::detail::json_ref<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>>,bool,nlohmann::json_abi_v3_11_3::detail::value_t)::{lambda(nlohmann::json_abi_v3_11_3::detail::json_ref<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>> const&)#1}>( *(_QWORD *)v23, v5) & 1; if ( (v40 & 1) == 0 ) { if ( v39 == 2 ) v38 = 0; v22 = 0; if ( v39 == 1 ) v22 = ~v38; if ( (v22 & 1) != 0 ) { exception = (unsigned int)__cxa_allocate_exception(0x20uLL); std::allocator<char>::allocator(); std::string::basic_string<std::allocator<char>>( (long long)v37 + 1, (long long)"cannot create object from initializer list", (long long)v37); ZN8nlohmann16json_abi_v3_11_36detail10type_error6createIDnTnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES5_( exception, v10, v11, v12, v13, v15, v17, v18, exception, (long long)v37, v21, a1, a1, (int)v42, v23[0], v24, v25, v26, v27, v28); v36 = 0; __cxa_throw( v20, (struct type_info *)&`typeinfo for'nlohmann::json_abi_v3_11_3::detail::type_error, nlohmann::json_abi_v3_11_3::detail::type_error::~type_error); } } if ( (v38 & 1) != 0 ) { *(_BYTE *)a1 = 1; v6 = (_QWORD *)(&dword_0 + 1); nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::json_value::json_value( (int)v35, v10, v11, v12, v13, v15, v17, v18); *(_QWORD *)(a1 + 8) = *(_QWORD *)v35; v34 = v42; v33 = std::initializer_list<nlohmann::json_abi_v3_11_3::detail::json_ref<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>>::begin(v42); v32 = std::initializer_list<nlohmann::json_abi_v3_11_3::detail::json_ref<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>>::end(v42); while ( v33 != v32 ) { v31 = v33; nlohmann::json_abi_v3_11_3::detail::json_ref<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>::moved_or_copied( v29, v33); v14 = *(_QWORD *)(a1 + 8); v16 = *(long long **)(std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>::operator[]( v30, 0LL) + 8); v7 = std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>::operator[]( v30, 1LL); v6 = v16; v27 = nlohmann::json_abi_v3_11_3::ordered_map<std::string,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>,std::less<void>,std::allocator<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>>>::emplace( v14, v16, v7); v28 = v8; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::~basic_json((long long)v29); v33 += 24LL; } } else { *(_BYTE *)a1 = 2; v26 = std::initializer_list<nlohmann::json_abi_v3_11_3::detail::json_ref<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>>::begin(v42); v25 = std::initializer_list<nlohmann::json_abi_v3_11_3::detail::json_ref<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>>::end(v42); v6 = &v25; *(_QWORD *)(a1 + 8) = nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::create<std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>,nlohmann::json_abi_v3_11_3::detail::json_ref<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>> const*,nlohmann::json_abi_v3_11_3::detail::json_ref<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>> const*>( &v26, &v25); } nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::set_parents( a1, v6); return nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::assert_invariant( a1, 1LL); }
basic_json: SUB RSP,0x128 MOV AL,R8B MOV qword ptr [RSP + 0x118],RSI MOV qword ptr [RSP + 0x120],RDX MOV qword ptr [RSP + 0x110],RDI AND CL,0x1 MOV byte ptr [RSP + 0x10f],CL MOV byte ptr [RSP + 0x10e],AL MOV RDI,qword ptr [RSP + 0x110] MOV qword ptr [RSP + 0x50],RDI MOV RAX,RDI MOV qword ptr [RSP + 0x58],RAX XORPS XMM0,XMM0 MOVUPS xmmword ptr [RDI],XMM0 CALL 0x001a2100 LEA RDI,[RSP + 0x118] MOV qword ptr [RSP + 0x60],RDI CALL 0x0020ce50 MOV RDI,qword ptr [RSP + 0x60] MOV qword ptr [RSP + 0x68],RAX CALL 0x0020ce60 MOV RDI,qword ptr [RSP + 0x68] MOV RSI,RAX LAB_0016e7bc: CALL 0x0020ce10 LAB_0016e7c1: MOV byte ptr [RSP + 0x77],AL JMP 0x0016e7c7 LAB_0016e7c7: MOV AL,byte ptr [RSP + 0x77] AND AL,0x1 MOV byte ptr [RSP + 0x10d],AL TEST byte ptr [RSP + 0x10f],0x1 JNZ 0x0016e924 CMP byte ptr [RSP + 0x10e],0x2 JNZ 0x0016e80f MOV byte ptr [RSP + 0x10d],0x0 JMP 0x0016e80f LAB_0016e80f: XOR EAX,EAX CMP byte ptr [RSP + 0x10e],0x1 MOV byte ptr [RSP + 0x4f],AL JNZ 0x0016e82c MOV AL,byte ptr [RSP + 0x10d] XOR AL,0xff MOV byte ptr [RSP + 0x4f],AL LAB_0016e82c: MOV AL,byte ptr [RSP + 0x4f] XOR AL,0xff XOR AL,0xff TEST AL,0x1 JNZ 0x0016e83d JMP 0x0016e922 LAB_0016e83d: MOV byte ptr [RSP + 0xd6],0x1 MOV EDI,0x20 CALL 0x00150540 MOV qword ptr [RSP + 0x38],RAX LEA RDI,[RSP + 0xd7] MOV qword ptr [RSP + 0x40],RDI CALL 0x00150d60 MOV RDX,qword ptr [RSP + 0x40] LAB_0016e86b: LEA RSI,[0x2d2174] LEA RDI,[RSP + 0xd8] CALL 0x00161bd0 JMP 0x0016e881 LAB_0016e881: MOV RDI,qword ptr [RSP + 0x38] XOR EAX,EAX MOV ECX,EAX MOV ESI,0x12d LEA RDX,[RSP + 0xd8] CALL 0x0020cea0 JMP 0x0016e89e LAB_0016e89e: MOV RDI,qword ptr [RSP + 0x38] MOV byte ptr [RSP + 0xd6],0x0 LEA RSI,[0x3520f8] LEA RDX,[0x1a0570] CALL 0x001508f0 LAB_0016e922: JMP 0x0016e924 LAB_0016e924: TEST byte ptr [RSP + 0x10d],0x1 JZ 0x0016ea90 MOV RAX,qword ptr [RSP + 0x58] MOV byte ptr [RAX],0x1 LAB_0016e93a: LEA RDI,[RSP + 0xc8] MOV ESI,0x1 CALL 0x001c17f0 JMP 0x0016e94e LAB_0016e94e: MOV RAX,qword ptr [RSP + 0x58] MOV RCX,qword ptr [RSP + 0xc8] MOV qword ptr [RAX + 0x8],RCX LEA RAX,[RSP + 0x118] MOV qword ptr [RSP + 0xc0],RAX MOV RDI,qword ptr [RSP + 0xc0] CALL 0x0020ce50 MOV qword ptr [RSP + 0xb8],RAX MOV RDI,qword ptr [RSP + 0xc0] CALL 0x0020ce60 MOV qword ptr [RSP + 0xb0],RAX LAB_0016e999: MOV RAX,qword ptr [RSP + 0xb8] CMP RAX,qword ptr [RSP + 0xb0] JZ 0x0016ea8e MOV RAX,qword ptr [RSP + 0xb8] MOV qword ptr [RSP + 0xa8],RAX MOV RSI,qword ptr [RSP + 0xa8] LEA RDI,[RSP + 0x98] CALL 0x0020d040 JMP 0x0016e9d6 LAB_0016e9d6: MOV RAX,qword ptr [RSP + 0x58] MOV RAX,qword ptr [RAX + 0x8] MOV qword ptr [RSP + 0x18],RAX MOV RDI,qword ptr [RSP + 0xa0] XOR EAX,EAX MOV ESI,EAX CALL 0x0020d0a0 MOV RAX,qword ptr [RAX + 0x8] MOV qword ptr [RSP + 0x20],RAX MOV RDI,qword ptr [RSP + 0xa0] MOV ESI,0x1 CALL 0x0020d0a0 MOV RDI,qword ptr [RSP + 0x18] MOV RSI,qword ptr [RSP + 0x20] MOV RDX,RAX LAB_0016ea1d: CALL 0x001bdb00 MOV byte ptr [RSP + 0x2f],DL MOV qword ptr [RSP + 0x30],RAX JMP 0x0016ea2d LAB_0016ea2d: MOV AL,byte ptr [RSP + 0x2f] MOV RCX,qword ptr [RSP + 0x30] MOV qword ptr [RSP + 0x88],RCX MOV byte ptr [RSP + 0x90],AL LEA RDI,[RSP + 0x98] CALL 0x0016e0f0 MOV RAX,qword ptr [RSP + 0xb8] ADD RAX,0x18 MOV qword ptr [RSP + 0xb8],RAX JMP 0x0016e999 LAB_0016ea8e: JMP 0x0016eae8 LAB_0016ea90: MOV RAX,qword ptr [RSP + 0x58] MOV byte ptr [RAX],0x2 LEA RDI,[RSP + 0x118] MOV qword ptr [RSP + 0x8],RDI CALL 0x0020ce50 MOV RDI,qword ptr [RSP + 0x8] MOV qword ptr [RSP + 0x80],RAX CALL 0x0020ce60 MOV qword ptr [RSP + 0x78],RAX LAB_0016eac1: LEA RDI,[RSP + 0x80] LEA RSI,[RSP + 0x78] CALL 0x0020d0c0 LAB_0016ead3: MOV qword ptr [RSP + 0x10],RAX JMP 0x0016eada LAB_0016eada: MOV RAX,qword ptr [RSP + 0x58] MOV RCX,qword ptr [RSP + 0x10] MOV qword ptr [RAX + 0x8],RCX LAB_0016eae8: MOV RDI,qword ptr [RSP + 0x58] CALL 0x0019faf0 MOV RDI,qword ptr [RSP + 0x58] MOV ESI,0x1 CALL 0x0019f9a0 ADD RSP,0x128 RET
/* nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::string, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char> >, void>::basic_json(std::initializer_list<nlohmann::json_abi_v3_11_3::detail::json_ref<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::string, 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, nlohmann::json_abi_v3_11_3::detail::value_t) */ 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> ::basic_json(data *param_1,int8 param_2,int8 param_3,byte param_4,char param_5) { ordered_map<std::__cxx11::string,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::less<void>,std::allocator<std::pair<std::__cxx11::string_const,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; string *psVar1; int8 uVar2; int8 uVar3; long lVar4; basic_json *pbVar5; vector *pvVar6; int1 extraout_DL; byte local_d9; json_ref *local_b0; json_ref *local_a8; int8 local_a0; int1 local_98; basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> local_90 [8]; vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>> *local_88; long local_80; long local_78; long local_70; initializer_list<nlohmann::json_abi_v3_11_3::detail::json_ref<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>> *local_68; int8 local_60; int1 local_52; allocator local_51; string local_50 [53]; bool local_1b; char local_1a; byte local_19; data *local_18; int8 local_10; int8 local_8; local_19 = param_4 & 1; *(int8 *)param_1 = 0; *(int8 *)(param_1 + 8) = 0; local_1a = param_5; local_18 = param_1; local_10 = param_2; local_8 = param_3; data::data(param_1); uVar2 = std:: initializer_list<nlohmann::json_abi_v3_11_3::detail::json_ref<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>> ::begin((initializer_list<nlohmann::json_abi_v3_11_3::detail::json_ref<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>> *)&local_10); uVar3 = std:: initializer_list<nlohmann::json_abi_v3_11_3::detail::json_ref<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>> ::end((initializer_list<nlohmann::json_abi_v3_11_3::detail::json_ref<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>> *)&local_10); /* try { // try from 0016e7bc to 0016e7c0 has its CatchHandler @ 0016e7f6 */ local_1b = std:: all_of<nlohmann::json_abi_v3_11_3::detail::json_ref<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>const*,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>::json_ref(std::initializer_list<nlohmann::json_abi_v3_11_3::detail::json_ref<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,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,nlohmann::json_abi_v3_11_3::detail::value_t)::_lambda(nlohmann::json_abi_v3_11_3::detail::json_ref<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>const&)_1_> (uVar2,uVar3); if ((local_19 & 1) == 0) { if (local_1a == '\x02') { local_1b = false; } local_d9 = 0; if (local_1a == '\x01') { local_d9 = local_1b ^ 0xff; } if ((local_d9 & 1) != 0) { local_52 = 1; uVar2 = __cxa_allocate_exception(0x20); std::allocator<char>::allocator(); /* try { // try from 0016e86b to 0016e87e has its CatchHandler @ 0016e8c3 */ std::__cxx11::string::string<std::allocator<char>> (local_50,"cannot create object from initializer list",&local_51); /* try { // try from 0016e881 to 0016e8bd has its CatchHandler @ 0016e8d9 */ _ZN8nlohmann16json_abi_v3_11_36detail10type_error6createIDnTnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES5_ (uVar2,0x12d,local_50,0); local_52 = 0; /* WARNING: Subroutine does not return */ __cxa_throw(uVar2,&detail::type_error::typeinfo,detail::type_error::~type_error); } } if (local_1b == false) { *param_1 = (data)0x2; local_a8 = (json_ref *) std:: initializer_list<nlohmann::json_abi_v3_11_3::detail::json_ref<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>> ::begin((initializer_list<nlohmann::json_abi_v3_11_3::detail::json_ref<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>> *)&local_10); local_b0 = (json_ref *) std:: initializer_list<nlohmann::json_abi_v3_11_3::detail::json_ref<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>> ::end((initializer_list<nlohmann::json_abi_v3_11_3::detail::json_ref<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>> *)&local_10); /* try { // try from 0016eac1 to 0016ead2 has its CatchHandler @ 0016e7f6 */ pvVar6 = create<std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>,nlohmann::json_abi_v3_11_3::detail::json_ref<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>const*,nlohmann::json_abi_v3_11_3::detail::json_ref<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>const*> (&local_a8,&local_b0); *(vector **)(param_1 + 8) = pvVar6; } else { *param_1 = (data)0x1; /* try { // try from 0016e93a to 0016e9d3 has its CatchHandler @ 0016e7f6 */ json_value::json_value((json_value *)&local_60,1); *(int8 *)(param_1 + 8) = local_60; local_68 = (initializer_list<nlohmann::json_abi_v3_11_3::detail::json_ref<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>> *)&local_10; local_70 = std:: initializer_list<nlohmann::json_abi_v3_11_3::detail::json_ref<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>> ::begin(local_68); local_78 = std:: initializer_list<nlohmann::json_abi_v3_11_3::detail::json_ref<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>> ::end(local_68); for (; local_70 != local_78; local_70 = local_70 + 0x18) { local_80 = local_70; detail:: json_ref<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>> ::moved_or_copied(); this = *(ordered_map<std::__cxx11::string,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::less<void>,std::allocator<std::pair<std::__cxx11::string_const,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>>>> **)(param_1 + 8); lVar4 = std:: vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>> ::operator[](local_88,0); psVar1 = *(string **)(lVar4 + 8); pbVar5 = (basic_json *) std:: vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>> ::operator[](local_88,1); /* try { // try from 0016ea1d to 0016ea21 has its CatchHandler @ 0016ea6b */ local_a0 = ordered_map<std::__cxx11::string,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::less<void>,std::allocator<std::pair<std::__cxx11::string_const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>> ::emplace(this,psVar1,pbVar5); local_98 = extraout_DL; ~basic_json(local_90); } } set_parents(); assert_invariant(SUB81(param_1,0)); return; }
34,733
my_thread_destroy_internal_mutex
eloqsql/mysys/my_thr_init.c
void my_thread_destroy_internal_mutex(void) { mysql_mutex_destroy(&THR_LOCK_threads); mysql_mutex_destroy(&THR_LOCK_malloc); mysql_cond_destroy(&THR_COND_threads); }
O3
c
my_thread_destroy_internal_mutex: pushq %rbp movq %rsp, %rbp pushq %rbx pushq %rax leaq 0x3645a4(%rip), %rbx # 0x3d0718 movq 0x40(%rbx), %rdi testq %rdi, %rdi je 0x6c192 leaq 0x2e1f94(%rip), %rax # 0x34e118 movq (%rax), %rax callq *0x48(%rax) movq $0x0, 0x40(%rbx) leaq 0x36457f(%rip), %rdi # 0x3d0718 callq 0x370e0 leaq 0x3645bb(%rip), %rbx # 0x3d0760 movq 0x40(%rbx), %rdi testq %rdi, %rdi je 0x6c1c3 leaq 0x2e1f63(%rip), %rax # 0x34e118 movq (%rax), %rax callq *0x48(%rax) movq $0x0, 0x40(%rbx) leaq 0x364596(%rip), %rdi # 0x3d0760 callq 0x370e0 leaq 0x3645d2(%rip), %rax # 0x3d07a8 movq 0x30(%rax), %rdi testq %rdi, %rdi jne 0x6c1f1 leaq 0x3645c2(%rip), %rdi # 0x3d07a8 addq $0x8, %rsp popq %rbx popq %rbp jmp 0x372c0 callq 0x38b8f jmp 0x6c1df
my_thread_destroy_internal_mutex: push rbp mov rbp, rsp push rbx push rax lea rbx, THR_LOCK_threads mov rdi, [rbx+40h] test rdi, rdi jz short loc_6C192 lea rax, PSI_server mov rax, [rax] call qword ptr [rax+48h] mov qword ptr [rbx+40h], 0 loc_6C192: lea rdi, THR_LOCK_threads call _pthread_mutex_destroy lea rbx, THR_LOCK_malloc mov rdi, [rbx+40h] test rdi, rdi jz short loc_6C1C3 lea rax, PSI_server mov rax, [rax] call qword ptr [rax+48h] mov qword ptr [rbx+40h], 0 loc_6C1C3: lea rdi, THR_LOCK_malloc call _pthread_mutex_destroy lea rax, THR_COND_threads mov rdi, [rax+30h] test rdi, rdi jnz short loc_6C1F1 loc_6C1DF: lea rdi, THR_COND_threads add rsp, 8 pop rbx pop rbp jmp _pthread_cond_destroy loc_6C1F1: call my_thread_destroy_internal_mutex_cold_1 jmp short loc_6C1DF
long long my_thread_destroy_internal_mutex() { long long v0; // rdi long long v1; // rdi v0 = THR_LOCK_threads[8]; if ( v0 ) { (*((void ( **)(long long))PSI_server + 9))(v0); THR_LOCK_threads[8] = 0LL; } pthread_mutex_destroy(THR_LOCK_threads); v1 = THR_LOCK_malloc[8]; if ( v1 ) { (*((void ( **)(long long))PSI_server + 9))(v1); THR_LOCK_malloc[8] = 0LL; } pthread_mutex_destroy(THR_LOCK_malloc); if ( THR_COND_threads[6] ) my_thread_destroy_internal_mutex_cold_1(); return pthread_cond_destroy(THR_COND_threads); }
my_thread_destroy_internal_mutex: PUSH RBP MOV RBP,RSP PUSH RBX PUSH RAX LEA RBX,[0x4d0718] MOV RDI,qword ptr [RBX + 0x40] TEST RDI,RDI JZ 0x0016c192 LEA RAX,[0x44e118] MOV RAX,qword ptr [RAX] CALL qword ptr [RAX + 0x48] MOV qword ptr [RBX + 0x40],0x0 LAB_0016c192: LEA RDI,[0x4d0718] CALL 0x001370e0 LEA RBX,[0x4d0760] MOV RDI,qword ptr [RBX + 0x40] TEST RDI,RDI JZ 0x0016c1c3 LEA RAX,[0x44e118] MOV RAX,qword ptr [RAX] CALL qword ptr [RAX + 0x48] MOV qword ptr [RBX + 0x40],0x0 LAB_0016c1c3: LEA RDI,[0x4d0760] CALL 0x001370e0 LEA RAX,[0x4d07a8] MOV RDI,qword ptr [RAX + 0x30] TEST RDI,RDI JNZ 0x0016c1f1 LAB_0016c1df: LEA RDI,[0x4d07a8] ADD RSP,0x8 POP RBX POP RBP JMP 0x001372c0 LAB_0016c1f1: CALL 0x00138b8f JMP 0x0016c1df
void my_thread_destroy_internal_mutex(void) { if (THR_LOCK_threads._64_8_ != 0) { (**(code **)(PSI_server + 0x48))(); THR_LOCK_threads._64_8_ = 0; } pthread_mutex_destroy((pthread_mutex_t *)THR_LOCK_threads); if (THR_LOCK_malloc._64_8_ != 0) { (**(code **)(PSI_server + 0x48))(); THR_LOCK_malloc._64_8_ = 0; } pthread_mutex_destroy((pthread_mutex_t *)THR_LOCK_malloc); if (THR_COND_threads._48_8_ != 0) { my_thread_destroy_internal_mutex_cold_1(); } pthread_cond_destroy((pthread_cond_t *)THR_COND_threads); return; }
34,734
details::levelToString[abi:cxx11](Logger::Level)
11AgReS1SoR11[P]Graph/Common/Logger/src/Logger.cpp
std::string levelToString(Logger::Level level) { switch (level) { case Logger::Level::INFO: return "INFO"; case Logger::Level::WARN: return "WARN"; case Logger::Level::ERROR: return "ERROR"; } return {}; }
O3
cpp
details::levelToString[abi:cxx11](Logger::Level): pushq %rbx movq %rdi, %rbx leaq 0x10(%rdi), %rax movq %rax, (%rdi) cmpl $0x2, %esi je 0x23d5 cmpl $0x1, %esi je 0x23c5 testl %esi, %esi jne 0x23ed leaq 0xc44(%rip), %rsi # 0x3000 leaq 0xc41(%rip), %rdx # 0x3004 jmp 0x23e3 leaq 0xc39(%rip), %rsi # 0x3005 leaq 0xc36(%rip), %rdx # 0x3009 jmp 0x23e3 leaq 0xc2e(%rip), %rsi # 0x300a leaq 0xc2c(%rip), %rdx # 0x300f movq %rbx, %rdi callq 0x2090 jmp 0x23f9 movq $0x0, 0x8(%rbx) movb $0x0, 0x10(%rbx) movq %rbx, %rax popq %rbx retq
_ZN7details13levelToStringB5cxx11EN6Logger5LevelE: push rbx mov rbx, rdi lea rax, [rdi+10h] mov [rdi], rax cmp esi, 2 jz short loc_23D5 cmp esi, 1 jz short loc_23C5 test esi, esi jnz short loc_23ED lea rsi, aInfo; "INFO" lea rdx, aInfo+4; "" jmp short loc_23E3 loc_23C5: lea rsi, aWarn; "WARN" lea rdx, aWarn+4; "" jmp short loc_23E3 loc_23D5: lea rsi, aError; "ERROR" lea rdx, aError+5; "" loc_23E3: mov rdi, rbx call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPKcEEvT_S8_St20forward_iterator_tag; std::string::_M_construct<char const*>(char const*,char const*,std::forward_iterator_tag) jmp short loc_23F9 loc_23ED: mov qword ptr [rbx+8], 0 mov byte ptr [rbx+10h], 0 loc_23F9: mov rax, rbx pop rbx retn
long long details::levelToString[abi:cxx11](long long a1, int a2) { const char *v2; // rsi char *v3; // rdx *(_QWORD *)a1 = a1 + 16; if ( a2 == 2 ) { v2 = "ERROR"; v3 = ""; } else if ( a2 == 1 ) { v2 = "WARN"; v3 = ""; } else { if ( a2 ) { *(_QWORD *)(a1 + 8) = 0LL; *(_BYTE *)(a1 + 16) = 0; return a1; } v2 = "INFO"; v3 = ""; } std::string::_M_construct<char const*>(a1, v2, v3); return a1; }
levelToString[abi:cxx11]: PUSH RBX MOV RBX,RDI LEA RAX,[RDI + 0x10] MOV qword ptr [RDI],RAX CMP ESI,0x2 JZ 0x001023d5 CMP ESI,0x1 JZ 0x001023c5 TEST ESI,ESI JNZ 0x001023ed LEA RSI,[0x103000] LEA RDX,[0x103004] JMP 0x001023e3 LAB_001023c5: LEA RSI,[0x103005] LEA RDX,[0x103009] JMP 0x001023e3 LAB_001023d5: LEA RSI,[0x10300a] LEA RDX,[0x10300f] LAB_001023e3: MOV RDI,RBX CALL 0x00102090 JMP 0x001023f9 LAB_001023ed: MOV qword ptr [RBX + 0x8],0x0 MOV byte ptr [RBX + 0x10],0x0 LAB_001023f9: MOV RAX,RBX POP RBX RET
/* details::levelToString[abi:cxx11](Logger::Level) */ details * __thiscall details::levelToString_abi_cxx11_(details *this,int param_2) { char *pcVar1; char *pcVar2; *(details **)this = this + 0x10; if (param_2 == 2) { pcVar2 = "ERROR"; pcVar1 = ""; } else if (param_2 == 1) { pcVar2 = "WARN"; pcVar1 = ""; } else { if (param_2 != 0) { *(int8 *)(this + 8) = 0; this[0x10] = (details)0x0; return this; } pcVar2 = "INFO"; pcVar1 = ""; } std::__cxx11::string::_M_construct<char_const*>(this,pcVar2,pcVar1); return this; }
34,735
coro::thread_pool::~thread_pool()
AlayaLite/build_O3/_deps/libcoro-src/src/thread_pool.cpp
thread_pool::~thread_pool() { shutdown(); }
O3
cpp
coro::thread_pool::~thread_pool(): pushq %rbx movq %rdi, %rbx leaq 0x5099(%rip), %rax # 0x8c80 addq $0x10, %rax movq %rax, (%rdi) callq 0x3c52 leaq 0xd0(%rbx), %rdi callq 0x4538 leaq 0x90(%rbx), %rdi callq 0x4190 leaq 0x50(%rbx), %rdi callq 0x41ac movq 0x40(%rbx), %rax testq %rax, %rax je 0x3c2b leaq 0x30(%rbx), %rdi movq %rdi, %rsi movl $0x3, %edx callq *%rax movq 0x20(%rbx), %rax testq %rax, %rax je 0x3c45 addq $0x10, %rbx movq %rbx, %rdi movq %rbx, %rsi movl $0x3, %edx callq *%rax popq %rbx retq jmp 0x3c49 movq %rax, %rdi callq 0x2d32 nop
_ZN4coro11thread_poolD2Ev: push rbx; Alternative name is 'coro::thread_pool::~thread_pool()' mov rbx, rdi lea rax, _ZTVN4coro11thread_poolE; `vtable for'coro::thread_pool add rax, 10h mov [rdi], rax call _ZN4coro11thread_pool8shutdownEv; coro::thread_pool::shutdown(void) lea rdi, [rbx+0D0h] call _ZNSt11_Deque_baseINSt7__n486116coroutine_handleIvEESaIS2_EED2Ev; std::_Deque_base<std::__n4861::coroutine_handle<void>>::~_Deque_base() lea rdi, [rbx+90h]; this call _ZNSt3_V222condition_variable_anyD2Ev; std::_V2::condition_variable_any::~condition_variable_any() lea rdi, [rbx+50h] call _ZNSt6vectorISt6threadSaIS0_EED2Ev; std::vector<std::thread>::~vector() mov rax, [rbx+40h] test rax, rax jz short loc_3C2B lea rdi, [rbx+30h] mov rsi, rdi mov edx, 3 call rax loc_3C2B: mov rax, [rbx+20h] test rax, rax jz short loc_3C45 add rbx, 10h mov rdi, rbx mov rsi, rbx mov edx, 3 call rax loc_3C45: pop rbx retn jmp short $+2 loc_3C49: mov rdi, rax call __clang_call_terminate
void coro::thread_pool::~thread_pool(coro::thread_pool *this) { void ( *v1)(char *, char *, long long); // rax void ( *v2)(char *, char *, long long); // rax *(_QWORD *)this = &`vtable for'coro::thread_pool + 2; coro::thread_pool::shutdown(this); std::_Deque_base<std::__n4861::coroutine_handle<void>>::~_Deque_base((char *)this + 208); std::_V2::condition_variable_any::~condition_variable_any((coro::thread_pool *)((char *)this + 144)); std::vector<std::thread>::~vector((char *)this + 80); v1 = (void ( *)(char *, char *, long long))*((_QWORD *)this + 8); if ( v1 ) v1((char *)this + 48, (char *)this + 48, 3LL); v2 = (void ( *)(char *, char *, long long))*((_QWORD *)this + 4); if ( v2 ) v2((char *)this + 16, (char *)this + 16, 3LL); }
~thread_pool: PUSH RBX MOV RBX,RDI LEA RAX,[0x108c80] ADD RAX,0x10 MOV qword ptr [RDI],RAX CALL 0x00103c52 LEA RDI,[RBX + 0xd0] CALL 0x00104538 LEA RDI,[RBX + 0x90] CALL 0x00104190 LEA RDI,[RBX + 0x50] CALL 0x001041ac MOV RAX,qword ptr [RBX + 0x40] TEST RAX,RAX JZ 0x00103c2b LEA RDI,[RBX + 0x30] LAB_00103c21: MOV RSI,RDI MOV EDX,0x3 CALL RAX LAB_00103c2b: MOV RAX,qword ptr [RBX + 0x20] TEST RAX,RAX JZ 0x00103c45 ADD RBX,0x10 LAB_00103c38: MOV RDI,RBX MOV RSI,RBX MOV EDX,0x3 CALL RAX LAB_00103c45: POP RBX RET
/* coro::thread_pool::~thread_pool() */ void __thiscall coro::thread_pool::~thread_pool(thread_pool *this) { *(int ***)this = &PTR__thread_pool_00108c90; shutdown(this); std:: _Deque_base<std::__n4861::coroutine_handle<void>,std::allocator<std::__n4861::coroutine_handle<void>>> ::~_Deque_base((_Deque_base<std::__n4861::coroutine_handle<void>,std::allocator<std::__n4861::coroutine_handle<void>>> *)(this + 0xd0)); std::_V2::condition_variable_any::~condition_variable_any((condition_variable_any *)(this + 0x90)) ; std::vector<std::thread,std::allocator<std::thread>>::~vector ((vector<std::thread,std::allocator<std::thread>> *)(this + 0x50)); if (*(code **)(this + 0x40) != (code *)0x0) { /* try { // try from 00103c21 to 00103c2a has its CatchHandler @ 00103c49 */ (**(code **)(this + 0x40))(this + 0x30,this + 0x30,3); } if (*(code **)(this + 0x20) != (code *)0x0) { /* try { // try from 00103c38 to 00103c44 has its CatchHandler @ 00103c47 */ (**(code **)(this + 0x20))(this + 0x10,this + 0x10,3); } return; }
34,736
output_object_code
bluesky950520[P]quickjs/qjsc.c
static void output_object_code(JSContext *ctx, FILE *fo, JSValue obj, const char *c_name, BOOL load_only) { uint8_t *out_buf; size_t out_buf_len; int flags = JS_WRITE_OBJ_BYTECODE; if (strip) { flags |= JS_WRITE_OBJ_STRIP_SOURCE; if (strip > 1) flags |= JS_WRITE_OBJ_STRIP_DEBUG; } out_buf = JS_WriteObject(ctx, &out_buf_len, obj, flags); if (!out_buf) { js_std_dump_error(ctx); exit(1); } namelist_add(&cname_list, c_name, NULL, load_only); if (output_type == OUTPUT_RAW) { fwrite(out_buf, 1, out_buf_len, fo); } else { fprintf(fo, "const uint32_t %s_size = %u;\n\n", c_name, (unsigned int)out_buf_len); fprintf(fo, "const uint8_t %s[%u] = {\n", c_name, (unsigned int)out_buf_len); dump_hex(fo, out_buf, out_buf_len); fprintf(fo, "};\n\n"); } js_free(ctx, out_buf); }
O0
c
output_object_code: subq $0x48, %rsp movq %rdx, 0x38(%rsp) movq %rcx, 0x40(%rsp) movq %rdi, 0x30(%rsp) movq %rsi, 0x28(%rsp) movq %r8, 0x20(%rsp) movl %r9d, 0x1c(%rsp) movl $0x1, 0x4(%rsp) cmpl $0x0, 0x1273db(%rip) # 0x1365fc je 0xf244 movl 0x4(%rsp), %eax orl $0x10, %eax movl %eax, 0x4(%rsp) cmpl $0x1, 0x1273c7(%rip) # 0x1365fc jle 0xf242 movl 0x4(%rsp), %eax orl $0x20, %eax movl %eax, 0x4(%rsp) jmp 0xf244 movq 0x30(%rsp), %rdi movl 0x4(%rsp), %r8d movq 0x38(%rsp), %rdx movq 0x40(%rsp), %rcx leaq 0x8(%rsp), %rsi callq 0x4bb40 movq %rax, 0x10(%rsp) cmpq $0x0, 0x10(%rsp) jne 0xf283 movq 0x30(%rsp), %rdi callq 0x11950 movl $0x1, %edi callq 0xe8b0 movq 0x20(%rsp), %rsi movl 0x1c(%rsp), %ecx leaq 0x12734d(%rip), %rdi # 0x1365e0 xorl %eax, %eax movl %eax, %edx callq 0xeac0 cmpl $0x2, 0x127355(%rip) # 0x1365f8 jne 0xf2c0 movq 0x10(%rsp), %rdi movq 0x8(%rsp), %rdx movq 0x28(%rsp), %rcx movl $0x1, %esi callq 0xe8c0 jmp 0xf325 movq 0x28(%rsp), %rdi movq 0x20(%rsp), %rdx movq 0x8(%rsp), %rax movl %eax, %ecx leaq 0xfa5cd(%rip), %rsi # 0x1098a5 movb $0x0, %al callq 0xe550 movq 0x28(%rsp), %rdi movq 0x20(%rsp), %rdx movq 0x8(%rsp), %rax movl %eax, %ecx leaq 0xfa5cd(%rip), %rsi # 0x1098c4 movb $0x0, %al callq 0xe550 movq 0x28(%rsp), %rdi movq 0x10(%rsp), %rsi movq 0x8(%rsp), %rdx callq 0xfe20 movq 0x28(%rsp), %rdi leaq 0xfa5c0(%rip), %rsi # 0x1098de movb $0x0, %al callq 0xe550 movq 0x30(%rsp), %rdi movq 0x10(%rsp), %rsi callq 0x21db0 addq $0x48, %rsp retq nopl (%rax)
output_object_code: sub rsp, 48h mov [rsp+48h+var_10], rdx mov [rsp+48h+var_8], rcx mov [rsp+48h+var_18], rdi mov [rsp+48h+var_20], rsi mov [rsp+48h+var_28], r8 mov [rsp+48h+var_2C], r9d mov [rsp+48h+var_44], 1 cmp cs:strip, 0 jz short loc_F244 mov eax, [rsp+48h+var_44] or eax, 10h mov [rsp+48h+var_44], eax cmp cs:strip, 1 jle short loc_F242 mov eax, [rsp+48h+var_44] or eax, 20h mov [rsp+48h+var_44], eax loc_F242: jmp short $+2 loc_F244: mov rdi, [rsp+48h+var_18] mov r8d, [rsp+48h+var_44] mov rdx, [rsp+48h+var_10] mov rcx, [rsp+48h+var_8] lea rsi, [rsp+48h+var_40] call JS_WriteObject mov [rsp+48h+var_38], rax cmp [rsp+48h+var_38], 0 jnz short loc_F283 mov rdi, [rsp+48h+var_18] call js_std_dump_error mov edi, 1 call _exit loc_F283: mov rsi, [rsp+48h+var_28] mov ecx, [rsp+48h+var_2C] lea rdi, cname_list xor eax, eax mov edx, eax call namelist_add cmp cs:output_type, 2 jnz short loc_F2C0 mov rdi, [rsp+48h+var_38] mov rdx, [rsp+48h+var_40] mov rcx, [rsp+48h+var_20] mov esi, 1 call _fwrite jmp short loc_F325 loc_F2C0: mov rdi, [rsp+48h+var_20] mov rdx, [rsp+48h+var_28] mov rax, [rsp+48h+var_40] mov ecx, eax lea rsi, aConstUint32TSS; "const uint32_t %s_size = %u;\n\n" mov al, 0 call _fprintf mov rdi, [rsp+48h+var_20] mov rdx, [rsp+48h+var_28] mov rax, [rsp+48h+var_40] mov ecx, eax lea rsi, aConstUint8TSU; "const uint8_t %s[%u] = {\n" mov al, 0 call _fprintf mov rdi, [rsp+48h+var_20] mov rsi, [rsp+48h+var_38] mov rdx, [rsp+48h+var_40] call dump_hex mov rdi, [rsp+48h+var_20] lea rsi, asc_1098DE; "};\n\n" mov al, 0 call _fprintf loc_F325: mov rdi, [rsp+48h+var_18] mov rsi, [rsp+48h+var_38] call js_free add rsp, 48h retn
long long output_object_code(long long a1, long long a2, long long a3, long long a4, const char *a5, int a6) { unsigned int v7; // [rsp+4h] [rbp-44h] long long v8; // [rsp+8h] [rbp-40h] BYREF long long v9; // [rsp+10h] [rbp-38h] int v10; // [rsp+1Ch] [rbp-2Ch] const char *v11; // [rsp+20h] [rbp-28h] long long v12; // [rsp+28h] [rbp-20h] long long v13; // [rsp+30h] [rbp-18h] long long v14; // [rsp+38h] [rbp-10h] long long v15; // [rsp+40h] [rbp-8h] v14 = a3; v15 = a4; v13 = a1; v12 = a2; v11 = a5; v10 = a6; v7 = 1; if ( strip ) { v7 = 17; if ( strip > 1 ) v7 = 49; } v9 = JS_WriteObject(v13, &v8, v14, v15, v7); if ( !v9 ) { js_std_dump_error(v13); exit(1LL); } namelist_add((int *)&cname_list, (long long)v11, 0LL, v10); if ( output_type == 2 ) { fwrite(v9, 1LL, v8, v12); } else { fprintf(v12, "const uint32_t %s_size = %u;\n\n", v11, v8); fprintf(v12, "const uint8_t %s[%u] = {\n", v11, v8); dump_hex(v12, v9, v8); fprintf(v12, "};\n\n"); } return js_free(v13, v9); }
output_object_code: SUB RSP,0x48 MOV qword ptr [RSP + 0x38],RDX MOV qword ptr [RSP + 0x40],RCX MOV qword ptr [RSP + 0x30],RDI MOV qword ptr [RSP + 0x28],RSI MOV qword ptr [RSP + 0x20],R8 MOV dword ptr [RSP + 0x1c],R9D MOV dword ptr [RSP + 0x4],0x1 CMP dword ptr [0x002365fc],0x0 JZ 0x0010f244 MOV EAX,dword ptr [RSP + 0x4] OR EAX,0x10 MOV dword ptr [RSP + 0x4],EAX CMP dword ptr [0x002365fc],0x1 JLE 0x0010f242 MOV EAX,dword ptr [RSP + 0x4] OR EAX,0x20 MOV dword ptr [RSP + 0x4],EAX LAB_0010f242: JMP 0x0010f244 LAB_0010f244: MOV RDI,qword ptr [RSP + 0x30] MOV R8D,dword ptr [RSP + 0x4] MOV RDX,qword ptr [RSP + 0x38] MOV RCX,qword ptr [RSP + 0x40] LEA RSI,[RSP + 0x8] CALL 0x0014bb40 MOV qword ptr [RSP + 0x10],RAX CMP qword ptr [RSP + 0x10],0x0 JNZ 0x0010f283 MOV RDI,qword ptr [RSP + 0x30] CALL 0x00111950 MOV EDI,0x1 CALL 0x0010e8b0 LAB_0010f283: MOV RSI,qword ptr [RSP + 0x20] MOV ECX,dword ptr [RSP + 0x1c] LEA RDI,[0x2365e0] XOR EAX,EAX MOV EDX,EAX CALL 0x0010eac0 CMP dword ptr [0x002365f8],0x2 JNZ 0x0010f2c0 MOV RDI,qword ptr [RSP + 0x10] MOV RDX,qword ptr [RSP + 0x8] MOV RCX,qword ptr [RSP + 0x28] MOV ESI,0x1 CALL 0x0010e8c0 JMP 0x0010f325 LAB_0010f2c0: MOV RDI,qword ptr [RSP + 0x28] MOV RDX,qword ptr [RSP + 0x20] MOV RAX,qword ptr [RSP + 0x8] MOV ECX,EAX LEA RSI,[0x2098a5] MOV AL,0x0 CALL 0x0010e550 MOV RDI,qword ptr [RSP + 0x28] MOV RDX,qword ptr [RSP + 0x20] MOV RAX,qword ptr [RSP + 0x8] MOV ECX,EAX LEA RSI,[0x2098c4] MOV AL,0x0 CALL 0x0010e550 MOV RDI,qword ptr [RSP + 0x28] MOV RSI,qword ptr [RSP + 0x10] MOV RDX,qword ptr [RSP + 0x8] CALL 0x0010fe20 MOV RDI,qword ptr [RSP + 0x28] LEA RSI,[0x2098de] MOV AL,0x0 CALL 0x0010e550 LAB_0010f325: MOV RDI,qword ptr [RSP + 0x30] MOV RSI,qword ptr [RSP + 0x10] CALL 0x00121db0 ADD RSP,0x48 RET
void output_object_code(int8 param_1,FILE *param_2,int8 param_3,int8 param_4, int8 param_5,int4 param_6) { int4 local_44; ulong local_40; void *local_38; int4 local_2c; int8 local_28; FILE *local_20; int8 local_18; int8 local_10; int8 local_8; local_44 = 1; if ((strip != 0) && (local_44 = 0x11, 1 < strip)) { local_44 = 0x31; } local_2c = param_6; local_28 = param_5; local_20 = param_2; local_18 = param_1; local_10 = param_3; local_8 = param_4; local_38 = (void *)JS_WriteObject(param_1,&local_40,param_3,param_4,local_44); if (local_38 != (void *)0x0) { namelist_add(&cname_list,local_28,0,local_2c); if (output_type == 2) { fwrite(local_38,1,local_40,local_20); } else { fprintf(local_20,"const uint32_t %s_size = %u;\n\n",local_28,local_40 & 0xffffffff); fprintf(local_20,"const uint8_t %s[%u] = {\n",local_28,local_40 & 0xffffffff); dump_hex(local_20,local_38,local_40); fprintf(local_20,"};\n\n"); } js_free(local_18,local_38); return; } js_std_dump_error(local_18); /* WARNING: Subroutine does not return */ exit(1); }
34,737
output_object_code
bluesky950520[P]quickjs/qjsc.c
static void output_object_code(JSContext *ctx, FILE *fo, JSValue obj, const char *c_name, BOOL load_only) { uint8_t *out_buf; size_t out_buf_len; int flags = JS_WRITE_OBJ_BYTECODE; if (strip) { flags |= JS_WRITE_OBJ_STRIP_SOURCE; if (strip > 1) flags |= JS_WRITE_OBJ_STRIP_DEBUG; } out_buf = JS_WriteObject(ctx, &out_buf_len, obj, flags); if (!out_buf) { js_std_dump_error(ctx); exit(1); } namelist_add(&cname_list, c_name, NULL, load_only); if (output_type == OUTPUT_RAW) { fwrite(out_buf, 1, out_buf_len, fo); } else { fprintf(fo, "const uint32_t %s_size = %u;\n\n", c_name, (unsigned int)out_buf_len); fprintf(fo, "const uint8_t %s[%u] = {\n", c_name, (unsigned int)out_buf_len); dump_hex(fo, out_buf, out_buf_len); fprintf(fo, "};\n\n"); } js_free(ctx, out_buf); }
O1
c
output_object_code: pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x18, %rsp movl %r9d, %ebp movq %r8, %r12 movq %rsi, %r14 movq %rdi, %rbx movl 0xb96db(%rip), %eax # 0xcd5a4 xorl %esi, %esi cmpl $0x2, %eax setge %sil shll $0x5, %esi orl $0x11, %esi testl %eax, %eax movl $0x1, %r8d cmovnel %esi, %r8d leaq 0x8(%rsp), %rsi callq 0x325a4 testq %rax, %rax je 0x13fed movq %rax, %r15 leaq 0xb9687(%rip), %rdi # 0xcd588 movq %r12, %rsi xorl %edx, %edx movl %ebp, %ecx callq 0x13adc cmpl $0x2, 0xb968c(%rip) # 0xcd5a0 movq 0x8(%rsp), %rcx jne 0x13f2b movl $0x1, %esi movq %r15, %rdi movq %rcx, %rdx jmp 0x13fcb leaq 0x878f3(%rip), %rsi # 0x9b825 movq %r14, %rdi movq %r12, %rdx xorl %eax, %eax callq 0xe550 movl 0x8(%rsp), %ecx leaq 0x878fa(%rip), %rsi # 0x9b844 movq %r14, %rdi movq %r12, %rdx xorl %eax, %eax callq 0xe550 movq 0x8(%rsp), %r13 testq %r13, %r13 je 0x13fba movq %rbx, 0x10(%rsp) leaq 0x878f6(%rip), %r12 # 0x9b863 xorl %ebx, %ebx xorl %ebp, %ebp movzbl (%r15,%rbp), %edx movq %r14, %rdi movq %r12, %rsi xorl %eax, %eax callq 0xe550 incq %rbx cmpq $0x8, %rbx jne 0x13f9b movl $0xa, %edi movq %r14, %rsi callq 0xe420 xorl %ebx, %ebx incq %rbp cmpq %rbp, %r13 jne 0x13f71 testq %rbx, %rbx movq 0x10(%rsp), %rbx je 0x13fba movl $0xa, %edi movq %r14, %rsi callq 0xe420 leaq 0x8789d(%rip), %rdi # 0x9b85e movl $0x4, %esi movl $0x1, %edx movq %r14, %rcx callq 0xe8d0 movq %rbx, %rdi movq %r15, %rsi callq 0x1cb99 addq $0x18, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq movq %rbx, %rdi callq 0x15519 movl $0x1, %edi callq 0xe8c0
output_object_code: push rbp push r15 push r14 push r13 push r12 push rbx sub rsp, 18h mov ebp, r9d mov r12, r8 mov r14, rsi mov rbx, rdi mov eax, cs:strip xor esi, esi cmp eax, 2 setnl sil shl esi, 5 or esi, 11h test eax, eax mov r8d, 1 cmovnz r8d, esi lea rsi, [rsp+48h+var_40] call JS_WriteObject test rax, rax jz loc_13FED mov r15, rax lea rdi, cname_list mov rsi, r12 xor edx, edx mov ecx, ebp call namelist_add cmp cs:output_type, 2 mov rcx, [rsp+48h+var_40] jnz short loc_13F2B mov esi, 1 mov rdi, r15 mov rdx, rcx jmp loc_13FCB loc_13F2B: lea rsi, aConstUint32TSS; "const uint32_t %s_size = %u;\n\n" mov rdi, r14 mov rdx, r12 xor eax, eax call _fprintf mov ecx, dword ptr [rsp+48h+var_40] lea rsi, aConstUint8TSU; "const uint8_t %s[%u] = {\n" mov rdi, r14 mov rdx, r12 xor eax, eax call _fprintf mov r13, [rsp+48h+var_40] test r13, r13 jz short loc_13FBA mov [rsp+48h+var_38], rbx lea r12, a0x02x; " 0x%02x," xor ebx, ebx xor ebp, ebp loc_13F71: movzx edx, byte ptr [r15+rbp] mov rdi, r14 mov rsi, r12 xor eax, eax call _fprintf inc rbx cmp rbx, 8 jnz short loc_13F9B mov edi, 0Ah mov rsi, r14 call _fputc xor ebx, ebx loc_13F9B: inc rbp cmp r13, rbp jnz short loc_13F71 test rbx, rbx mov rbx, [rsp+48h+var_38] jz short loc_13FBA mov edi, 0Ah mov rsi, r14 call _fputc loc_13FBA: lea rdi, asc_9B85E; "};\n\n" mov esi, 4 mov edx, 1 loc_13FCB: mov rcx, r14 call _fwrite mov rdi, rbx mov rsi, r15 call js_free add rsp, 18h pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn loc_13FED: mov rdi, rbx call js_std_dump_error mov edi, 1 call _exit
long long output_object_code(long long a1, long long a2, long long a3, long long a4, const char *a5, int a6) { long long v9; // rbx long long v10; // r8 long long v11; // rax const char *v12; // r15 long long v13; // rsi const char *v14; // rdi long long v15; // rdx long long v16; // r13 long long v17; // rbx long long v18; // rbp bool v19; // zf long long v21; // [rsp+8h] [rbp-40h] BYREF long long v22; // [rsp+10h] [rbp-38h] v9 = a1; v10 = 1LL; if ( strip ) v10 = (32 * (strip >= 2)) | 0x11u; v11 = JS_WriteObject(a1, &v21, a3, a4, v10); if ( !v11 ) { js_std_dump_error(a1); exit(1LL); } v12 = (const char *)v11; namelist_add(&cname_list, (long long)a5, 0LL, a6); if ( output_type == 2 ) { v13 = 1LL; v14 = v12; v15 = v21; } else { fprintf(a2, "const uint32_t %s_size = %u;\n\n", a5, v21); fprintf(a2, "const uint8_t %s[%u] = {\n", a5, v21); v16 = v21; if ( v21 ) { v22 = a1; v17 = 0LL; v18 = 0LL; do { fprintf(a2, " 0x%02x,", (unsigned __int8)v12[v18]); if ( ++v17 == 8 ) { fputc(10LL, a2); v17 = 0LL; } ++v18; } while ( v16 != v18 ); v19 = v17 == 0; v9 = v22; if ( !v19 ) fputc(10LL, a2); } v14 = "};\n\n"; v13 = 4LL; v15 = 1LL; } fwrite(v14, v13, v15, a2); return js_free(v9, v12); }
output_object_code: PUSH RBP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0x18 MOV EBP,R9D MOV R12,R8 MOV R14,RSI MOV RBX,RDI MOV EAX,dword ptr [0x001cd5a4] XOR ESI,ESI CMP EAX,0x2 SETGE SIL SHL ESI,0x5 OR ESI,0x11 TEST EAX,EAX MOV R8D,0x1 CMOVNZ R8D,ESI LEA RSI,[RSP + 0x8] CALL 0x001325a4 TEST RAX,RAX JZ 0x00113fed MOV R15,RAX LEA RDI,[0x1cd588] MOV RSI,R12 XOR EDX,EDX MOV ECX,EBP CALL 0x00113adc CMP dword ptr [0x001cd5a0],0x2 MOV RCX,qword ptr [RSP + 0x8] JNZ 0x00113f2b MOV ESI,0x1 MOV RDI,R15 MOV RDX,RCX JMP 0x00113fcb LAB_00113f2b: LEA RSI,[0x19b825] MOV RDI,R14 MOV RDX,R12 XOR EAX,EAX CALL 0x0010e550 MOV ECX,dword ptr [RSP + 0x8] LEA RSI,[0x19b844] MOV RDI,R14 MOV RDX,R12 XOR EAX,EAX CALL 0x0010e550 MOV R13,qword ptr [RSP + 0x8] TEST R13,R13 JZ 0x00113fba MOV qword ptr [RSP + 0x10],RBX LEA R12,[0x19b863] XOR EBX,EBX XOR EBP,EBP LAB_00113f71: MOVZX EDX,byte ptr [R15 + RBP*0x1] MOV RDI,R14 MOV RSI,R12 XOR EAX,EAX CALL 0x0010e550 INC RBX CMP RBX,0x8 JNZ 0x00113f9b MOV EDI,0xa MOV RSI,R14 CALL 0x0010e420 XOR EBX,EBX LAB_00113f9b: INC RBP CMP R13,RBP JNZ 0x00113f71 TEST RBX,RBX MOV RBX,qword ptr [RSP + 0x10] JZ 0x00113fba MOV EDI,0xa MOV RSI,R14 CALL 0x0010e420 LAB_00113fba: LEA RDI,[0x19b85e] MOV ESI,0x4 MOV EDX,0x1 LAB_00113fcb: MOV RCX,R14 CALL 0x0010e8d0 MOV RDI,RBX MOV RSI,R15 CALL 0x0011cb99 ADD RSP,0x18 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET LAB_00113fed: MOV RDI,RBX CALL 0x00115519 MOV EDI,0x1 CALL 0x0010e8c0
void output_object_code(int8 param_1,FILE *param_2,int8 param_3,int8 param_4, int8 param_5,int4 param_6) { int *puVar1; size_t __n; long lVar2; long lVar3; size_t __size; int *__ptr; uint uVar4; uint local_40; int4 uStack_3c; int8 local_38; uVar4 = 1; if (strip != 0) { uVar4 = (uint)(1 < strip) << 5 | 0x11; } puVar1 = (int *)JS_WriteObject(param_1,&local_40,param_3,param_4,uVar4); if (puVar1 != (int *)0x0) { namelist_add(&cname_list,param_5,0,param_6); __n = CONCAT44(uStack_3c,local_40); if (output_type == 2) { __size = 1; __ptr = puVar1; } else { fprintf(param_2,"const uint32_t %s_size = %u;\n\n",param_5); fprintf(param_2,"const uint8_t %s[%u] = {\n",param_5,(ulong)local_40); if (CONCAT44(uStack_3c,local_40) != 0) { lVar2 = 0; lVar3 = 0; local_38 = param_1; do { fprintf(param_2," 0x%02x,",(ulong)(byte)puVar1[lVar3]); lVar2 = lVar2 + 1; if (lVar2 == 8) { fputc(10,param_2); lVar2 = 0; } param_1 = local_38; lVar3 = lVar3 + 1; } while (CONCAT44(uStack_3c,local_40) != lVar3); if (lVar2 != 0) { fputc(10,param_2); } } __ptr = &DAT_0019b85e; __size = 4; __n = 1; } fwrite(__ptr,__size,__n,param_2); js_free(param_1,puVar1); return; } js_std_dump_error(param_1); /* WARNING: Subroutine does not return */ exit(1); }
34,738
output_object_code
bluesky950520[P]quickjs/qjsc.c
static void output_object_code(JSContext *ctx, FILE *fo, JSValue obj, const char *c_name, BOOL load_only) { uint8_t *out_buf; size_t out_buf_len; int flags = JS_WRITE_OBJ_BYTECODE; if (strip) { flags |= JS_WRITE_OBJ_STRIP_SOURCE; if (strip > 1) flags |= JS_WRITE_OBJ_STRIP_DEBUG; } out_buf = JS_WriteObject(ctx, &out_buf_len, obj, flags); if (!out_buf) { js_std_dump_error(ctx); exit(1); } namelist_add(&cname_list, c_name, NULL, load_only); if (output_type == OUTPUT_RAW) { fwrite(out_buf, 1, out_buf_len, fo); } else { fprintf(fo, "const uint32_t %s_size = %u;\n\n", c_name, (unsigned int)out_buf_len); fprintf(fo, "const uint8_t %s[%u] = {\n", c_name, (unsigned int)out_buf_len); dump_hex(fo, out_buf, out_buf_len); fprintf(fo, "};\n\n"); } js_free(ctx, out_buf); }
O2
c
output_object_code: pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x18, %rsp movl %r9d, %ebp movq %r8, %r12 movq %rsi, %r14 movq %rdi, %rbx movl 0xac6d0(%rip), %eax # 0xbb5b4 xorl %esi, %esi cmpl $0x2, %eax setge %sil shll $0x5, %esi orl $0x11, %esi testl %eax, %eax pushq $0x1 popq %r8 cmovnel %esi, %r8d leaq 0x8(%rsp), %rsi callq 0x2abef testq %rax, %rax je 0xf001 movq %rax, %r15 leaq 0xac67e(%rip), %rdi # 0xbb598 movq %r12, %rsi xorl %edx, %edx movl %ebp, %ecx callq 0xeaec cmpl $0x2, 0xac683(%rip) # 0xbb5b0 movq 0x8(%rsp), %rcx jne 0xef4a pushq $0x1 popq %rsi movq %r15, %rdi movq %rcx, %rdx movq %r14, %rcx callq 0xe8f0 jmp 0xefe7 movq %rbx, 0x10(%rsp) leaq 0x738cf(%rip), %rsi # 0x82825 movq %r14, %rdi movq %r12, %rdx xorl %eax, %eax callq 0xe560 movl 0x8(%rsp), %ecx leaq 0x738d6(%rip), %rsi # 0x82844 movq %r14, %rdi movq %r12, %rdx xorl %eax, %eax callq 0xe560 movq 0x8(%rsp), %r13 leaq 0x738dc(%rip), %r12 # 0x82863 xorl %ebx, %ebx xorl %ebp, %ebp cmpq %rbx, %r13 je 0xefbd movzbl (%r15,%rbx), %edx movq %r14, %rdi movq %r12, %rsi xorl %eax, %eax callq 0xe560 incq %rbp cmpq $0x8, %rbp jne 0xefb8 pushq $0xa popq %rdi movq %r14, %rsi callq 0xe430 xorl %ebp, %ebp incq %rbx jmp 0xef8b testq %rbp, %rbp je 0xefcd pushq $0xa popq %rdi movq %r14, %rsi callq 0xe430 leaq 0x7388a(%rip), %rdi # 0x8285e pushq $0x4 popq %rsi pushq $0x1 popq %rdx movq %r14, %rcx callq 0xe8f0 movq 0x10(%rsp), %rbx movq %rbx, %rdi movq %r15, %rsi callq 0x1726e addq $0x18, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq movq %rbx, %rdi callq 0x1049c pushq $0x1 popq %rdi callq 0xe8e0
output_object_code: push rbp push r15 push r14 push r13 push r12 push rbx sub rsp, 18h mov ebp, r9d mov r12, r8 mov r14, rsi mov rbx, rdi mov eax, cs:strip xor esi, esi cmp eax, 2 setnl sil shl esi, 5 or esi, 11h test eax, eax push 1 pop r8 cmovnz r8d, esi lea rsi, [rsp+48h+var_40] call JS_WriteObject test rax, rax jz loc_F001 mov r15, rax lea rdi, cname_list mov rsi, r12 xor edx, edx mov ecx, ebp call namelist_add cmp cs:output_type, 2 mov rcx, [rsp+48h+var_40] jnz short loc_EF4A push 1 pop rsi mov rdi, r15 mov rdx, rcx mov rcx, r14 call _fwrite jmp loc_EFE7 loc_EF4A: mov [rsp+48h+var_38], rbx lea rsi, aConstUint32TSS; "const uint32_t %s_size = %u;\n\n" mov rdi, r14 mov rdx, r12 xor eax, eax call _fprintf mov ecx, dword ptr [rsp+48h+var_40] lea rsi, aConstUint8TSU; "const uint8_t %s[%u] = {\n" mov rdi, r14 mov rdx, r12 xor eax, eax call _fprintf mov r13, [rsp+48h+var_40] lea r12, a0x02x; " 0x%02x," xor ebx, ebx xor ebp, ebp loc_EF8B: cmp r13, rbx jz short loc_EFBD movzx edx, byte ptr [r15+rbx] mov rdi, r14 mov rsi, r12 xor eax, eax call _fprintf inc rbp cmp rbp, 8 jnz short loc_EFB8 push 0Ah pop rdi mov rsi, r14 call _fputc xor ebp, ebp loc_EFB8: inc rbx jmp short loc_EF8B loc_EFBD: test rbp, rbp jz short loc_EFCD push 0Ah pop rdi mov rsi, r14 call _fputc loc_EFCD: lea rdi, asc_8285E; "};\n\n" push 4 pop rsi push 1 pop rdx mov rcx, r14 call _fwrite mov rbx, [rsp+48h+var_38] loc_EFE7: mov rdi, rbx mov rsi, r15 call js_free add rsp, 18h pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn loc_F001: mov rdi, rbx call js_std_dump_error push 1 pop rdi call _exit
long long output_object_code(long long a1, long long a2, long long a3, long long a4, const char *a5, int a6) { long long v8; // rbx long long v9; // r8 long long v10; // rax long long v11; // r15 long long v12; // r13 long long v13; // rbx long long v14; // rbp long long v16; // [rsp+8h] [rbp-40h] BYREF long long v17; // [rsp+10h] [rbp-38h] v8 = a1; v9 = 1LL; if ( strip ) v9 = (32 * (strip >= 2)) | 0x11u; v10 = JS_WriteObject(a1, &v16, a3, a4, v9); if ( !v10 ) { js_std_dump_error(a1); exit(1LL); } v11 = v10; namelist_add(&cname_list, (long long)a5, 0LL, a6); if ( output_type == 2 ) { fwrite(v11, 1LL, v16, a2); } else { v17 = a1; fprintf(a2, "const uint32_t %s_size = %u;\n\n", a5, v16); fprintf(a2, "const uint8_t %s[%u] = {\n", a5, v16); v12 = v16; v13 = 0LL; v14 = 0LL; while ( v12 != v13 ) { fprintf(a2, " 0x%02x,", *(unsigned __int8 *)(v11 + v13)); if ( ++v14 == 8 ) { fputc(10LL, a2); v14 = 0LL; } ++v13; } if ( v14 ) fputc(10LL, a2); fwrite("};\n\n", 4LL, 1LL, a2); v8 = v17; } return js_free(v8, v11); }
output_object_code: PUSH RBP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0x18 MOV EBP,R9D MOV R12,R8 MOV R14,RSI MOV RBX,RDI MOV EAX,dword ptr [0x001bb5b4] XOR ESI,ESI CMP EAX,0x2 SETGE SIL SHL ESI,0x5 OR ESI,0x11 TEST EAX,EAX PUSH 0x1 POP R8 CMOVNZ R8D,ESI LEA RSI,[RSP + 0x8] CALL 0x0012abef TEST RAX,RAX JZ 0x0010f001 MOV R15,RAX LEA RDI,[0x1bb598] MOV RSI,R12 XOR EDX,EDX MOV ECX,EBP CALL 0x0010eaec CMP dword ptr [0x001bb5b0],0x2 MOV RCX,qword ptr [RSP + 0x8] JNZ 0x0010ef4a PUSH 0x1 POP RSI MOV RDI,R15 MOV RDX,RCX MOV RCX,R14 CALL 0x0010e8f0 JMP 0x0010efe7 LAB_0010ef4a: MOV qword ptr [RSP + 0x10],RBX LEA RSI,[0x182825] MOV RDI,R14 MOV RDX,R12 XOR EAX,EAX CALL 0x0010e560 MOV ECX,dword ptr [RSP + 0x8] LEA RSI,[0x182844] MOV RDI,R14 MOV RDX,R12 XOR EAX,EAX CALL 0x0010e560 MOV R13,qword ptr [RSP + 0x8] LEA R12,[0x182863] XOR EBX,EBX XOR EBP,EBP LAB_0010ef8b: CMP R13,RBX JZ 0x0010efbd MOVZX EDX,byte ptr [R15 + RBX*0x1] MOV RDI,R14 MOV RSI,R12 XOR EAX,EAX CALL 0x0010e560 INC RBP CMP RBP,0x8 JNZ 0x0010efb8 PUSH 0xa POP RDI MOV RSI,R14 CALL 0x0010e430 XOR EBP,EBP LAB_0010efb8: INC RBX JMP 0x0010ef8b LAB_0010efbd: TEST RBP,RBP JZ 0x0010efcd PUSH 0xa POP RDI MOV RSI,R14 CALL 0x0010e430 LAB_0010efcd: LEA RDI,[0x18285e] PUSH 0x4 POP RSI PUSH 0x1 POP RDX MOV RCX,R14 CALL 0x0010e8f0 MOV RBX,qword ptr [RSP + 0x10] LAB_0010efe7: MOV RDI,RBX MOV RSI,R15 CALL 0x0011726e ADD RSP,0x18 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET LAB_0010f001: MOV RDI,RBX CALL 0x0011049c PUSH 0x1 POP RDI CALL 0x0010e8e0
void output_object_code(int8 param_1,FILE *param_2,int8 param_3,int8 param_4, int8 param_5,int4 param_6) { void *__ptr; long lVar1; long lVar2; uint uVar3; uint local_40; int4 uStack_3c; int8 local_38; uVar3 = 1; if (strip != 0) { uVar3 = (uint)(1 < strip) << 5 | 0x11; } __ptr = (void *)JS_WriteObject(param_1,&local_40,param_3,param_4,uVar3); if (__ptr != (void *)0x0) { namelist_add(&cname_list,param_5,0,param_6); if (output_type == 2) { fwrite(__ptr,1,CONCAT44(uStack_3c,local_40),param_2); } else { local_38 = param_1; fprintf(param_2,"const uint32_t %s_size = %u;\n\n",param_5); fprintf(param_2,"const uint8_t %s[%u] = {\n",param_5,(ulong)local_40); lVar2 = 0; for (lVar1 = 0; CONCAT44(uStack_3c,local_40) != lVar1; lVar1 = lVar1 + 1) { fprintf(param_2," 0x%02x,",(ulong)*(byte *)((long)__ptr + lVar1)); lVar2 = lVar2 + 1; if (lVar2 == 8) { fputc(10,param_2); lVar2 = 0; } } if (lVar2 != 0) { fputc(10,param_2); } fwrite(&DAT_0018285e,4,1,param_2); param_1 = local_38; } js_free(param_1,__ptr); return; } js_std_dump_error(param_1); /* WARNING: Subroutine does not return */ exit(1); }
34,739
minja::MacroTemplateToken::MacroTemplateToken(minja::Location const&, minja::SpaceHandling, minja::SpaceHandling, std::shared_ptr<minja::VariableExpr>&&, std::vector<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::shared_ptr<minja::Expression>>, std::allocator<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::shared_ptr<minja::Expression>>>>&&)
monkey531[P]llama/common/minja.hpp
TemplateToken(Type type, const Location & location, SpaceHandling pre, SpaceHandling post) : type(type), location(location), pre_space(pre), post_space(post) {}
O3
cpp
minja::MacroTemplateToken::MacroTemplateToken(minja::Location const&, minja::SpaceHandling, minja::SpaceHandling, std::shared_ptr<minja::VariableExpr>&&, std::vector<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::shared_ptr<minja::Expression>>, std::allocator<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::shared_ptr<minja::Expression>>>>&&): leaq 0x91a95(%rip), %rax # 0x12a2f8 addq $0x10, %rax movq %rax, (%rdi) movl $0xd, 0x8(%rdi) movq (%rsi), %rax movq %rax, 0x10(%rdi) movq 0x8(%rsi), %rax movq %rax, 0x18(%rdi) testq %rax, %rax je 0x9889b movq 0x936fc(%rip), %r10 # 0x12bf88 cmpb $0x0, (%r10) je 0x98897 incl 0x8(%rax) jmp 0x9889b lock incl 0x8(%rax) movq 0x10(%rsi), %rax movq %rax, 0x20(%rdi) movl %edx, 0x28(%rdi) movl %ecx, 0x2c(%rdi) leaq 0x92538(%rip), %rax # 0x12ade8 addq $0x10, %rax movq %rax, (%rdi) xorl %eax, %eax movq %rax, 0x38(%rdi) movups (%r8), %xmm0 movq %rax, 0x8(%r8) movups %xmm0, 0x30(%rdi) movq %rax, (%r8) movups (%r9), %xmm0 movups %xmm0, 0x40(%rdi) movq 0x10(%r9), %rcx movq %rcx, 0x50(%rdi) movq %rax, 0x10(%r9) xorps %xmm0, %xmm0 movups %xmm0, (%r9) retq
_ZN5minja18MacroTemplateTokenC2ERKNS_8LocationENS_13SpaceHandlingES4_OSt10shared_ptrINS_12VariableExprEEOSt6vectorISt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES5_INS_10ExpressionEEESaISJ_EE: lea rax, _ZTVN5minja13TemplateTokenE; `vtable for'minja::TemplateToken add rax, 10h mov [rdi], rax mov dword ptr [rdi+8], 0Dh mov rax, [rsi] mov [rdi+10h], rax mov rax, [rsi+8] mov [rdi+18h], rax test rax, rax jz short loc_9889B mov r10, cs:__libc_single_threaded_ptr cmp byte ptr [r10], 0 jz short loc_98897 inc dword ptr [rax+8] jmp short loc_9889B loc_98897: lock inc dword ptr [rax+8] loc_9889B: mov rax, [rsi+10h] mov [rdi+20h], rax mov [rdi+28h], edx mov [rdi+2Ch], ecx lea rax, _ZTVN5minja18MacroTemplateTokenE; `vtable for'minja::MacroTemplateToken add rax, 10h mov [rdi], rax xor eax, eax mov [rdi+38h], rax movups xmm0, xmmword ptr [r8] mov [r8+8], rax movups xmmword ptr [rdi+30h], xmm0 mov [r8], rax movups xmm0, xmmword ptr [r9] movups xmmword ptr [rdi+40h], xmm0 mov rcx, [r9+10h] mov [rdi+50h], rcx mov [r9+10h], rax xorps xmm0, xmm0 movups xmmword ptr [r9], xmm0 retn
long long minja::MacroTemplateToken::MacroTemplateToken( long long a1, _QWORD *a2, int a3, int a4, __int128 *a5, long long a6) { long long v6; // rax long long result; // rax __int128 v8; // xmm0 *(_QWORD *)a1 = &`vtable for'minja::TemplateToken + 2; *(_DWORD *)(a1 + 8) = 13; *(_QWORD *)(a1 + 16) = *a2; v6 = a2[1]; *(_QWORD *)(a1 + 24) = v6; if ( v6 ) { if ( _libc_single_threaded ) ++*(_DWORD *)(v6 + 8); else _InterlockedIncrement((volatile signed __int32 *)(v6 + 8)); } *(_QWORD *)(a1 + 32) = a2[2]; *(_DWORD *)(a1 + 40) = a3; *(_DWORD *)(a1 + 44) = a4; *(_QWORD *)a1 = &`vtable for'minja::MacroTemplateToken + 2; result = 0LL; *(_QWORD *)(a1 + 56) = 0LL; v8 = *a5; *((_QWORD *)a5 + 1) = 0LL; *(_OWORD *)(a1 + 48) = v8; *(_QWORD *)a5 = 0LL; *(_OWORD *)(a1 + 64) = *(_OWORD *)a6; *(_QWORD *)(a1 + 80) = *(_QWORD *)(a6 + 16); *(_QWORD *)(a6 + 16) = 0LL; *(_OWORD *)a6 = 0LL; return result; }
MacroTemplateToken: LEA RAX,[0x22a2f8] ADD RAX,0x10 MOV qword ptr [RDI],RAX MOV dword ptr [RDI + 0x8],0xd MOV RAX,qword ptr [RSI] MOV qword ptr [RDI + 0x10],RAX MOV RAX,qword ptr [RSI + 0x8] MOV qword ptr [RDI + 0x18],RAX TEST RAX,RAX JZ 0x0019889b MOV R10,qword ptr [0x0022bf88] CMP byte ptr [R10],0x0 JZ 0x00198897 INC dword ptr [RAX + 0x8] JMP 0x0019889b LAB_00198897: INC.LOCK dword ptr [RAX + 0x8] LAB_0019889b: MOV RAX,qword ptr [RSI + 0x10] MOV qword ptr [RDI + 0x20],RAX MOV dword ptr [RDI + 0x28],EDX MOV dword ptr [RDI + 0x2c],ECX LEA RAX,[0x22ade8] ADD RAX,0x10 MOV qword ptr [RDI],RAX XOR EAX,EAX MOV qword ptr [RDI + 0x38],RAX MOVUPS XMM0,xmmword ptr [R8] MOV qword ptr [R8 + 0x8],RAX MOVUPS xmmword ptr [RDI + 0x30],XMM0 MOV qword ptr [R8],RAX MOVUPS XMM0,xmmword ptr [R9] MOVUPS xmmword ptr [RDI + 0x40],XMM0 MOV RCX,qword ptr [R9 + 0x10] MOV qword ptr [RDI + 0x50],RCX MOV qword ptr [R9 + 0x10],RAX XORPS XMM0,XMM0 MOVUPS xmmword ptr [R9],XMM0 RET
/* minja::MacroTemplateToken::MacroTemplateToken(minja::Location const&, minja::SpaceHandling, minja::SpaceHandling, std::shared_ptr<minja::VariableExpr>&&, std::vector<std::pair<std::__cxx11::string, std::shared_ptr<minja::Expression> >, std::allocator<std::pair<std::__cxx11::string, std::shared_ptr<minja::Expression> > > >&&) */ void __thiscall minja::MacroTemplateToken::MacroTemplateToken (MacroTemplateToken *this,int8 *param_1,int4 param_3,int4 param_4, int8 *param_5,int8 *param_6) { long lVar1; int8 uVar2; *(int ***)this = &PTR__TemplateToken_0022a308; *(int4 *)(this + 8) = 0xd; *(int8 *)(this + 0x10) = *param_1; lVar1 = param_1[1]; *(long *)(this + 0x18) = lVar1; if (lVar1 != 0) { if (*PTR___libc_single_threaded_0022bf88 == '\0') { LOCK(); *(int *)(lVar1 + 8) = *(int *)(lVar1 + 8) + 1; UNLOCK(); } else { *(int *)(lVar1 + 8) = *(int *)(lVar1 + 8) + 1; } } *(int8 *)(this + 0x20) = param_1[2]; *(int4 *)(this + 0x28) = param_3; *(int4 *)(this + 0x2c) = param_4; *(int ***)this = &PTR__MacroTemplateToken_0022adf8; *(int8 *)(this + 0x38) = 0; uVar2 = param_5[1]; param_5[1] = 0; *(int8 *)(this + 0x30) = *param_5; *(int8 *)(this + 0x38) = uVar2; *param_5 = 0; uVar2 = param_6[1]; *(int8 *)(this + 0x40) = *param_6; *(int8 *)(this + 0x48) = uVar2; *(int8 *)(this + 0x50) = param_6[2]; param_6[2] = 0; *param_6 = 0; param_6[1] = 0; return; }
34,740
lunasvg::SVGGeometryElement::strokeBoundingBox() const
dmazzella[P]pylunasvg/lunasvg/source/svggeometryelement.cpp
Rect SVGGeometryElement::strokeBoundingBox() const { auto strokeBoundingBox = fillBoundingBox(); if(m_stroke.isRenderable()) { float capLimit = m_strokeData.lineWidth() / 2.f; if(m_strokeData.lineCap() == LineCap::Square) capLimit *= PLUTOVG_SQRT2; float joinLimit = m_strokeData.lineWidth() / 2.f; if(m_strokeData.lineJoin() == LineJoin::Miter) { joinLimit *= m_strokeData.miterLimit(); } strokeBoundingBox.inflate(std::max(capLimit, joinLimit)); } for(const auto& markerPosition : m_markerPositions) strokeBoundingBox.unite(markerPosition.markerBoundingBox(m_strokeData.lineWidth())); return strokeBoundingBox; }
O0
cpp
lunasvg::SVGGeometryElement::strokeBoundingBox() const: pushq %rbp movq %rsp, %rbp subq $0x60, %rsp movq %rdi, -0x18(%rbp) movq -0x18(%rbp), %rdi movq %rdi, -0x58(%rbp) movq (%rdi), %rax movq 0x58(%rax), %rax callq *%rax movq -0x58(%rbp), %rdi movlpd %xmm0, -0x10(%rbp) movlpd %xmm1, -0x8(%rbp) addq $0xe8, %rdi callq 0x206f0 testb $0x1, %al jne 0x2d130 jmp 0x2d1e0 movq -0x58(%rbp), %rdi addq $0xb0, %rdi callq 0x14d70 movq -0x58(%rbp), %rdi movss 0x5f700(%rip), %xmm1 # 0x8c84c divss %xmm1, %xmm0 movss %xmm0, -0x1c(%rbp) addq $0xb0, %rdi callq 0x14db0 cmpb $0x2, %al jne 0x2d177 movss 0x5f6e3(%rip), %xmm0 # 0x8c850 mulss -0x1c(%rbp), %xmm0 movss %xmm0, -0x1c(%rbp) movq -0x58(%rbp), %rdi addq $0xb0, %rdi callq 0x14d70 movq -0x58(%rbp), %rdi movss 0x5f6b9(%rip), %xmm1 # 0x8c84c divss %xmm1, %xmm0 movss %xmm0, -0x20(%rbp) addq $0xb0, %rdi callq 0x14dd0 cmpb $0x0, %al jne 0x2d1c6 movq -0x58(%rbp), %rdi addq $0xb0, %rdi callq 0x14d90 mulss -0x20(%rbp), %xmm0 movss %xmm0, -0x20(%rbp) leaq -0x1c(%rbp), %rdi leaq -0x20(%rbp), %rsi callq 0x22550 movss (%rax), %xmm0 leaq -0x10(%rbp), %rdi callq 0x2ecf0 movq -0x58(%rbp), %rax addq $0xf8, %rax movq %rax, -0x28(%rbp) movq -0x28(%rbp), %rdi callq 0x2ed20 movq %rax, -0x30(%rbp) movq -0x28(%rbp), %rdi callq 0x2ed50 movq %rax, -0x38(%rbp) leaq -0x30(%rbp), %rdi leaq -0x38(%rbp), %rsi callq 0x2ed80 testb $0x1, %al jne 0x2d21b jmp 0x2d26b leaq -0x30(%rbp), %rdi callq 0x2edc0 movq -0x58(%rbp), %rdi movq %rax, -0x40(%rbp) movq -0x40(%rbp), %rax movq %rax, -0x60(%rbp) addq $0xb0, %rdi callq 0x14d70 movq -0x60(%rbp), %rdi callq 0x2cf70 movlpd %xmm0, -0x50(%rbp) movlpd %xmm1, -0x48(%rbp) leaq -0x10(%rbp), %rdi leaq -0x50(%rbp), %rsi callq 0x1fdd0 leaq -0x30(%rbp), %rdi callq 0x2ede0 jmp 0x2d208 movsd -0x10(%rbp), %xmm0 movsd -0x8(%rbp), %xmm1 addq $0x60, %rsp popq %rbp retq nopl (%rax,%rax)
_ZNK7lunasvg18SVGGeometryElement17strokeBoundingBoxEv: push rbp mov rbp, rsp sub rsp, 60h mov [rbp+var_18], rdi mov rdi, [rbp+var_18] mov [rbp+var_58], rdi mov rax, [rdi] mov rax, [rax+58h] call rax mov rdi, [rbp+var_58] movlpd [rbp+var_10], xmm0 movlpd [rbp+var_8], xmm1 add rdi, 0E8h; this call _ZNK7lunasvg14SVGPaintServer12isRenderableEv; lunasvg::SVGPaintServer::isRenderable(void) test al, 1 jnz short loc_2D130 jmp loc_2D1E0 loc_2D130: mov rdi, [rbp+var_58] add rdi, 0B0h; this call _ZNK7lunasvg10StrokeData9lineWidthEv; lunasvg::StrokeData::lineWidth(void) mov rdi, [rbp+var_58] movss xmm1, cs:dword_8C84C divss xmm0, xmm1 movss [rbp+var_1C], xmm0 add rdi, 0B0h; this call _ZNK7lunasvg10StrokeData7lineCapEv; lunasvg::StrokeData::lineCap(void) cmp al, 2 jnz short loc_2D177 movss xmm0, cs:dword_8C850 mulss xmm0, [rbp+var_1C] movss [rbp+var_1C], xmm0 loc_2D177: mov rdi, [rbp+var_58] add rdi, 0B0h; this call _ZNK7lunasvg10StrokeData9lineWidthEv; lunasvg::StrokeData::lineWidth(void) mov rdi, [rbp+var_58] movss xmm1, cs:dword_8C84C divss xmm0, xmm1 movss [rbp+var_20], xmm0 add rdi, 0B0h; this call _ZNK7lunasvg10StrokeData8lineJoinEv; lunasvg::StrokeData::lineJoin(void) cmp al, 0 jnz short loc_2D1C6 mov rdi, [rbp+var_58] add rdi, 0B0h; this call _ZNK7lunasvg10StrokeData10miterLimitEv; lunasvg::StrokeData::miterLimit(void) mulss xmm0, [rbp+var_20] movss [rbp+var_20], xmm0 loc_2D1C6: lea rdi, [rbp+var_1C] lea rsi, [rbp+var_20] call _ZSt3maxIfERKT_S2_S2_; std::max<float>(float const&,float const&) movss xmm0, dword ptr [rax]; float lea rdi, [rbp+var_10]; this call _ZN7lunasvg4Rect7inflateEf; lunasvg::Rect::inflate(float) loc_2D1E0: mov rax, [rbp+var_58] add rax, 0F8h mov [rbp+var_28], rax mov rdi, [rbp+var_28] call _ZNKSt6vectorIN7lunasvg17SVGMarkerPositionESaIS1_EE5beginEv; std::vector<lunasvg::SVGMarkerPosition>::begin(void) mov [rbp+var_30], rax mov rdi, [rbp+var_28] call _ZNKSt6vectorIN7lunasvg17SVGMarkerPositionESaIS1_EE3endEv; std::vector<lunasvg::SVGMarkerPosition>::end(void) mov [rbp+var_38], rax loc_2D208: lea rdi, [rbp+var_30] lea rsi, [rbp+var_38] call _ZN9__gnu_cxxneIPKN7lunasvg17SVGMarkerPositionESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESD_; __gnu_cxx::operator!=<lunasvg::SVGMarkerPosition const*,std::vector<lunasvg::SVGMarkerPosition>>(__gnu_cxx::__normal_iterator<lunasvg::SVGMarkerPosition const*,std::vector<lunasvg::SVGMarkerPosition>> const&,__gnu_cxx::__normal_iterator<lunasvg::SVGMarkerPosition const*,std::vector<lunasvg::SVGMarkerPosition>> const&) test al, 1 jnz short loc_2D21B jmp short loc_2D26B loc_2D21B: lea rdi, [rbp+var_30] call _ZNK9__gnu_cxx17__normal_iteratorIPKN7lunasvg17SVGMarkerPositionESt6vectorIS2_SaIS2_EEEdeEv; __gnu_cxx::__normal_iterator<lunasvg::SVGMarkerPosition const*,std::vector<lunasvg::SVGMarkerPosition>>::operator*(void) mov rdi, [rbp+var_58] mov [rbp+var_40], rax mov rax, [rbp+var_40] mov [rbp+var_60], rax add rdi, 0B0h; this call _ZNK7lunasvg10StrokeData9lineWidthEv; lunasvg::StrokeData::lineWidth(void) mov rdi, [rbp+var_60]; this call _ZNK7lunasvg17SVGMarkerPosition17markerBoundingBoxEf; lunasvg::SVGMarkerPosition::markerBoundingBox(float) movlpd [rbp+var_50], xmm0 movlpd [rbp+var_48], xmm1 lea rdi, [rbp+var_10]; this lea rsi, [rbp+var_50]; lunasvg::Rect * call _ZN7lunasvg4Rect5uniteERKS0_; lunasvg::Rect::unite(lunasvg::Rect const&) lea rdi, [rbp+var_30] call _ZN9__gnu_cxx17__normal_iteratorIPKN7lunasvg17SVGMarkerPositionESt6vectorIS2_SaIS2_EEEppEv; __gnu_cxx::__normal_iterator<lunasvg::SVGMarkerPosition const*,std::vector<lunasvg::SVGMarkerPosition>>::operator++(void) jmp short loc_2D208 loc_2D26B: movsd xmm0, [rbp+var_10] movsd xmm1, [rbp+var_8] add rsp, 60h pop rbp retn
double lunasvg::SVGGeometryElement::strokeBoundingBox( lunasvg::SVGGeometryElement *this, double a2, double a3) { double v3; // xmm0_8 lunasvg::SVGMarkerPosition *v5; // [rsp+0h] [rbp-60h] _QWORD v6[2]; // [rsp+10h] [rbp-50h] BYREF long long v7; // [rsp+20h] [rbp-40h] long long v8; // [rsp+28h] [rbp-38h] BYREF _QWORD v9[2]; // [rsp+30h] [rbp-30h] BYREF float v10; // [rsp+40h] [rbp-20h] BYREF float v11; // [rsp+44h] [rbp-1Ch] BYREF lunasvg::SVGGeometryElement *v12; // [rsp+48h] [rbp-18h] _QWORD v13[2]; // [rsp+50h] [rbp-10h] BYREF v12 = this; v3 = (*(double ( **)(lunasvg::SVGGeometryElement *))(*(_QWORD *)this + 88LL))(this); *(double *)v13 = v3; *(double *)&v13[1] = a3; if ( lunasvg::SVGPaintServer::isRenderable((lunasvg::SVGGeometryElement *)((char *)this + 232)) ) { v11 = lunasvg::StrokeData::lineWidth((lunasvg::SVGGeometryElement *)((char *)this + 176)) / 2.0; if ( lunasvg::StrokeData::lineCap((lunasvg::SVGGeometryElement *)((char *)this + 176)) == 2 ) v11 = 1.4142135 * v11; *(_QWORD *)&a3 = 0x40000000LL; v10 = lunasvg::StrokeData::lineWidth((lunasvg::SVGGeometryElement *)((char *)this + 176)) / 2.0; if ( !lunasvg::StrokeData::lineJoin((lunasvg::SVGGeometryElement *)((char *)this + 176)) ) v10 = lunasvg::StrokeData::miterLimit((lunasvg::SVGGeometryElement *)((char *)this + 176)) * v10; *(_QWORD *)&v3 = *(unsigned int *)std::max<float>(&v11, &v10); lunasvg::Rect::inflate((lunasvg::Rect *)v13, *(float *)&v3); } v9[1] = (char *)this + 248; v9[0] = std::vector<lunasvg::SVGMarkerPosition>::begin((char *)this + 248); v8 = std::vector<lunasvg::SVGMarkerPosition>::end((char *)this + 248); while ( (__gnu_cxx::operator!=<lunasvg::SVGMarkerPosition const*,std::vector<lunasvg::SVGMarkerPosition>>(v9, &v8) & 1) != 0 ) { v7 = __gnu_cxx::__normal_iterator<lunasvg::SVGMarkerPosition const*,std::vector<lunasvg::SVGMarkerPosition>>::operator*(v9); v5 = (lunasvg::SVGMarkerPosition *)v7; *(float *)&v3 = lunasvg::StrokeData::lineWidth((lunasvg::SVGGeometryElement *)((char *)this + 176)); lunasvg::SVGMarkerPosition::markerBoundingBox(v5, *(float *)&v3); *(double *)v6 = v3; *(double *)&v6[1] = a3; lunasvg::Rect::unite((lunasvg::Rect *)v13, (const lunasvg::Rect *)v6, v3, a3); __gnu_cxx::__normal_iterator<lunasvg::SVGMarkerPosition const*,std::vector<lunasvg::SVGMarkerPosition>>::operator++(v9); } return *(double *)v13; }
strokeBoundingBox: PUSH RBP MOV RBP,RSP SUB RSP,0x60 MOV qword ptr [RBP + -0x18],RDI MOV RDI,qword ptr [RBP + -0x18] MOV qword ptr [RBP + -0x58],RDI MOV RAX,qword ptr [RDI] MOV RAX,qword ptr [RAX + 0x58] CALL RAX MOV RDI,qword ptr [RBP + -0x58] MOVLPD qword ptr [RBP + -0x10],XMM0 MOVLPD qword ptr [RBP + -0x8],XMM1 ADD RDI,0xe8 CALL 0x001206f0 TEST AL,0x1 JNZ 0x0012d130 JMP 0x0012d1e0 LAB_0012d130: MOV RDI,qword ptr [RBP + -0x58] ADD RDI,0xb0 CALL 0x00114d70 MOV RDI,qword ptr [RBP + -0x58] MOVSS XMM1,dword ptr [0x0018c84c] DIVSS XMM0,XMM1 MOVSS dword ptr [RBP + -0x1c],XMM0 ADD RDI,0xb0 CALL 0x00114db0 CMP AL,0x2 JNZ 0x0012d177 MOVSS XMM0,dword ptr [0x0018c850] MULSS XMM0,dword ptr [RBP + -0x1c] MOVSS dword ptr [RBP + -0x1c],XMM0 LAB_0012d177: MOV RDI,qword ptr [RBP + -0x58] ADD RDI,0xb0 CALL 0x00114d70 MOV RDI,qword ptr [RBP + -0x58] MOVSS XMM1,dword ptr [0x0018c84c] DIVSS XMM0,XMM1 MOVSS dword ptr [RBP + -0x20],XMM0 ADD RDI,0xb0 CALL 0x00114dd0 CMP AL,0x0 JNZ 0x0012d1c6 MOV RDI,qword ptr [RBP + -0x58] ADD RDI,0xb0 CALL 0x00114d90 MULSS XMM0,dword ptr [RBP + -0x20] MOVSS dword ptr [RBP + -0x20],XMM0 LAB_0012d1c6: LEA RDI,[RBP + -0x1c] LEA RSI,[RBP + -0x20] CALL 0x00122550 MOVSS XMM0,dword ptr [RAX] LEA RDI,[RBP + -0x10] CALL 0x0012ecf0 LAB_0012d1e0: MOV RAX,qword ptr [RBP + -0x58] ADD RAX,0xf8 MOV qword ptr [RBP + -0x28],RAX MOV RDI,qword ptr [RBP + -0x28] CALL 0x0012ed20 MOV qword ptr [RBP + -0x30],RAX MOV RDI,qword ptr [RBP + -0x28] CALL 0x0012ed50 MOV qword ptr [RBP + -0x38],RAX LAB_0012d208: LEA RDI,[RBP + -0x30] LEA RSI,[RBP + -0x38] CALL 0x0012ed80 TEST AL,0x1 JNZ 0x0012d21b JMP 0x0012d26b LAB_0012d21b: LEA RDI,[RBP + -0x30] CALL 0x0012edc0 MOV RDI,qword ptr [RBP + -0x58] MOV qword ptr [RBP + -0x40],RAX MOV RAX,qword ptr [RBP + -0x40] MOV qword ptr [RBP + -0x60],RAX ADD RDI,0xb0 CALL 0x00114d70 MOV RDI,qword ptr [RBP + -0x60] CALL 0x0012cf70 MOVLPD qword ptr [RBP + -0x50],XMM0 MOVLPD qword ptr [RBP + -0x48],XMM1 LEA RDI,[RBP + -0x10] LEA RSI,[RBP + -0x50] CALL 0x0011fdd0 LEA RDI,[RBP + -0x30] CALL 0x0012ede0 JMP 0x0012d208 LAB_0012d26b: MOVSD XMM0,qword ptr [RBP + -0x10] MOVSD XMM1,qword ptr [RBP + -0x8] ADD RSP,0x60 POP RBP RET
/* lunasvg::SVGGeometryElement::strokeBoundingBox() const */ int1 [16] lunasvg::SVGGeometryElement::strokeBoundingBox(void) { int1 auVar1 [16]; char cVar2; bool bVar3; ulong uVar4; float *pfVar5; SVGMarkerPosition *this; long *in_RDI; float fVar6; int8 in_XMM1_Qa; int8 local_40; int8 local_38; vector<lunasvg::SVGMarkerPosition,std::allocator<lunasvg::SVGMarkerPosition>> *local_30; float local_28; float local_24 [3]; int8 local_18; int8 local_10; local_18 = (**(code **)(*in_RDI + 0x58))(); local_10 = in_XMM1_Qa; uVar4 = SVGPaintServer::isRenderable((SVGPaintServer *)(in_RDI + 0x1d)); if ((uVar4 & 1) != 0) { local_24[0] = (float)StrokeData::lineWidth((StrokeData *)(in_RDI + 0x16)); local_24[0] = local_24[0] / DAT_0018c84c; cVar2 = StrokeData::lineCap((StrokeData *)(in_RDI + 0x16)); if (cVar2 == '\x02') { local_24[0] = DAT_0018c850 * local_24[0]; } local_28 = (float)StrokeData::lineWidth((StrokeData *)(in_RDI + 0x16)); local_28 = local_28 / DAT_0018c84c; cVar2 = StrokeData::lineJoin((StrokeData *)(in_RDI + 0x16)); if (cVar2 == '\0') { fVar6 = (float)StrokeData::miterLimit((StrokeData *)(in_RDI + 0x16)); local_28 = fVar6 * local_28; } pfVar5 = std::max<float>(local_24,&local_28); Rect::inflate((Rect *)&local_18,*pfVar5); } local_30 = (vector<lunasvg::SVGMarkerPosition,std::allocator<lunasvg::SVGMarkerPosition>> *) (in_RDI + 0x1f); local_38 = std::vector<lunasvg::SVGMarkerPosition,std::allocator<lunasvg::SVGMarkerPosition>>:: begin(local_30); local_40 = std::vector<lunasvg::SVGMarkerPosition,std::allocator<lunasvg::SVGMarkerPosition>>::end (local_30); while (bVar3 = __gnu_cxx::operator!= ((__normal_iterator *)&local_38,(__normal_iterator *)&local_40), bVar3) { this = (SVGMarkerPosition *) __gnu_cxx:: __normal_iterator<lunasvg::SVGMarkerPosition_const*,std::vector<lunasvg::SVGMarkerPosition,std::allocator<lunasvg::SVGMarkerPosition>>> ::operator*((__normal_iterator<lunasvg::SVGMarkerPosition_const*,std::vector<lunasvg::SVGMarkerPosition,std::allocator<lunasvg::SVGMarkerPosition>>> *)&local_38); fVar6 = (float)StrokeData::lineWidth((StrokeData *)(in_RDI + 0x16)); SVGMarkerPosition::markerBoundingBox(this,fVar6); Rect::unite((Rect *)&local_18); __gnu_cxx:: __normal_iterator<lunasvg::SVGMarkerPosition_const*,std::vector<lunasvg::SVGMarkerPosition,std::allocator<lunasvg::SVGMarkerPosition>>> ::operator++((__normal_iterator<lunasvg::SVGMarkerPosition_const*,std::vector<lunasvg::SVGMarkerPosition,std::allocator<lunasvg::SVGMarkerPosition>>> *)&local_38); } auVar1._8_8_ = local_10; auVar1._0_8_ = local_18; return auVar1; }
34,741
my_delete
eloqsql/mysys/my_delete.c
int my_delete(const char *name, myf MyFlags) { int err; DBUG_ENTER("my_delete"); DBUG_PRINT("my",("name %s MyFlags %lu", name, MyFlags)); #ifdef _WIN32 err = my_win_unlink(name); #else if (MyFlags & MY_NOSYMLINKS) err= unlink_nosymlinks(name); else err= unlink(name); #endif if ((MyFlags & MY_IGNORE_ENOENT) && errno == ENOENT) DBUG_RETURN(0); if (err) { my_errno= errno; if (MyFlags & (MY_FAE+MY_WME)) my_error(EE_DELETE, MYF(ME_BELL), name, errno); } else if ((MyFlags & MY_SYNC_DIR) && my_sync_dir_by_file(name, MyFlags)) err= -1; DBUG_RETURN(err); }
O3
c
my_delete: pushq %rbp movq %rsp, %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx pushq %rax movq %rsi, %r14 movq %rdi, %rbx btl $0x9, %r14d jb 0xa1a34 movq %rbx, %rdi callq 0x2a1c0 movl %eax, %r15d jmp 0xa1a69 leaq -0x2c(%rbp), %rsi movq %rbx, %rdi callq 0xa7504 testq %rax, %rax je 0xa1a63 movl -0x2c(%rbp), %edi movq %rax, %rsi xorl %edx, %edx callq 0x2aa50 movl %eax, %r15d movl -0x2c(%rbp), %edi testl %edi, %edi js 0xa1a69 callq 0x2a1b0 jmp 0xa1a69 movl $0xffffffff, %r15d # imm = 0xFFFFFFFF testb $0x20, %r14b je 0xa1a79 callq 0x2a820 cmpl $0x2, (%rax) je 0xa1ab7 testl %r15d, %r15d je 0xa1ab1 callq 0x2a820 movq %rax, %r12 movl (%rax), %r13d callq 0xa813e movl %r13d, (%rax) testb $0x18, %r14b je 0xa1acf movl (%r12), %ecx movl $0x4, %esi movl $0x6, %edi movq %rbx, %rdx xorl %eax, %eax callq 0xa1c83 jmp 0xa1acf testw %r14w, %r14w js 0xa1abc xorl %r15d, %r15d jmp 0xa1acf movq %rbx, %rdi movq %r14, %rsi callq 0xa7c5f xorl %r15d, %r15d negl %eax sbbl %r15d, %r15d movl %r15d, %eax addq $0x8, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq
my_delete: push rbp mov rbp, rsp push r15 push r14 push r13 push r12 push rbx push rax mov r14, rsi mov rbx, rdi bt r14d, 9 jb short loc_A1A34 mov rdi, rbx call _unlink mov r15d, eax jmp short loc_A1A69 loc_A1A34: lea rsi, [rbp+var_2C] mov rdi, rbx call my_open_parent_dir_nosymlinks test rax, rax jz short loc_A1A63 mov edi, [rbp+var_2C] mov rsi, rax xor edx, edx call _unlinkat mov r15d, eax mov edi, [rbp+var_2C] test edi, edi js short loc_A1A69 call _close jmp short loc_A1A69 loc_A1A63: mov r15d, 0FFFFFFFFh loc_A1A69: test r14b, 20h jz short loc_A1A79 call ___errno_location cmp dword ptr [rax], 2 jz short loc_A1AB7 loc_A1A79: test r15d, r15d jz short loc_A1AB1 call ___errno_location mov r12, rax mov r13d, [rax] call _my_thread_var mov [rax], r13d test r14b, 18h jz short loc_A1ACF mov ecx, [r12] mov esi, 4 mov edi, 6 mov rdx, rbx xor eax, eax call my_error jmp short loc_A1ACF loc_A1AB1: test r14w, r14w js short loc_A1ABC loc_A1AB7: xor r15d, r15d jmp short loc_A1ACF loc_A1ABC: mov rdi, rbx mov rsi, r14 call my_sync_dir_by_file xor r15d, r15d neg eax sbb r15d, r15d loc_A1ACF: mov eax, r15d add rsp, 8 pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn
long long my_delete(long long a1, long long a2) { long long v2; // rax long long v3; // rbx unsigned int v4; // r15d long long v5; // rax _DWORD *v6; // r12 int v7; // r13d int v8; // r8d int v9; // r9d unsigned int v11[11]; // [rsp+0h] [rbp-2Ch] BYREF v11[0] = HIDWORD(v2); v3 = a1; if ( (a2 & 0x200) != 0 ) { v5 = my_open_parent_dir_nosymlinks(a1, v11); if ( v5 ) { v4 = unlinkat(v11[0], v5, 0LL); a1 = v11[0]; if ( (v11[0] & 0x80000000) == 0 ) close(v11[0]); } else { v4 = -1; } } else { v4 = unlink(a1); } if ( (a2 & 0x20) != 0 && *(_DWORD *)__errno_location(a1) == 2 ) return 0; if ( !v4 ) { if ( (a2 & 0x8000u) != 0LL ) return (unsigned int)-((unsigned int)my_sync_dir_by_file(v3, a2) != 0); return 0; } v6 = (_DWORD *)__errno_location(a1); v7 = *v6; *(_DWORD *)my_thread_var(a1) = v7; if ( (a2 & 0x18) != 0 ) my_error(6, 4, v3, *v6, v8, v9); return v4; }
my_delete: PUSH RBP MOV RBP,RSP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX PUSH RAX MOV R14,RSI MOV RBX,RDI BT R14D,0x9 JC 0x001a1a34 MOV RDI,RBX CALL 0x0012a1c0 MOV R15D,EAX JMP 0x001a1a69 LAB_001a1a34: LEA RSI,[RBP + -0x2c] MOV RDI,RBX CALL 0x001a7504 TEST RAX,RAX JZ 0x001a1a63 MOV EDI,dword ptr [RBP + -0x2c] MOV RSI,RAX XOR EDX,EDX CALL 0x0012aa50 MOV R15D,EAX MOV EDI,dword ptr [RBP + -0x2c] TEST EDI,EDI JS 0x001a1a69 CALL 0x0012a1b0 JMP 0x001a1a69 LAB_001a1a63: MOV R15D,0xffffffff LAB_001a1a69: TEST R14B,0x20 JZ 0x001a1a79 CALL 0x0012a820 CMP dword ptr [RAX],0x2 JZ 0x001a1ab7 LAB_001a1a79: TEST R15D,R15D JZ 0x001a1ab1 CALL 0x0012a820 MOV R12,RAX MOV R13D,dword ptr [RAX] CALL 0x001a813e MOV dword ptr [RAX],R13D TEST R14B,0x18 JZ 0x001a1acf MOV ECX,dword ptr [R12] MOV ESI,0x4 MOV EDI,0x6 MOV RDX,RBX XOR EAX,EAX CALL 0x001a1c83 JMP 0x001a1acf LAB_001a1ab1: TEST R14W,R14W JS 0x001a1abc LAB_001a1ab7: XOR R15D,R15D JMP 0x001a1acf LAB_001a1abc: MOV RDI,RBX MOV RSI,R14 CALL 0x001a7c5f XOR R15D,R15D NEG EAX SBB R15D,R15D LAB_001a1acf: MOV EAX,R15D ADD RSP,0x8 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET
int my_delete(char *param_1,ulong param_2) { int iVar1; int iVar2; int8 in_RAX; char *__name; int *piVar3; int *piVar4; int local_34; local_34 = (int)((ulong)in_RAX >> 0x20); if (((uint)param_2 >> 9 & 1) == 0) { iVar2 = unlink(param_1); } else { __name = (char *)my_open_parent_dir_nosymlinks(param_1,&local_34); if (__name == (char *)0x0) { iVar2 = -1; } else { iVar2 = unlinkat(local_34,__name,0); if (-1 < local_34) { close(local_34); } } } if (((param_2 & 0x20) == 0) || (piVar3 = __errno_location(), *piVar3 != 2)) { if (iVar2 != 0) { piVar3 = __errno_location(); iVar1 = *piVar3; piVar4 = (int *)_my_thread_var(); *piVar4 = iVar1; if ((param_2 & 0x18) == 0) { return iVar2; } my_error(6,4,param_1,*piVar3); return iVar2; } if ((short)param_2 < 0) { iVar2 = my_sync_dir_by_file(param_1,param_2); return -(uint)(iVar2 != 0); } } return 0; }
34,742
link_changed
eloqsql/mysys/mf_keycache.c
static inline void link_changed(BLOCK_LINK *block, BLOCK_LINK **phead) { DBUG_ASSERT(!block->next_changed); DBUG_ASSERT(!block->prev_changed); block->prev_changed= phead; if ((block->next_changed= *phead)) (*phead)->prev_changed= &block->next_changed; *phead= block; }
O0
c
link_changed: pushq %rbp movq %rsp, %rbp movq %rdi, -0x8(%rbp) movq %rsi, -0x10(%rbp) jmp 0x740be jmp 0x740c0 jmp 0x740c2 movq -0x10(%rbp), %rcx movq -0x8(%rbp), %rax movq %rcx, 0x18(%rax) movq -0x10(%rbp), %rax movq (%rax), %rax movq -0x8(%rbp), %rcx movq %rax, 0x10(%rcx) cmpq $0x0, %rax je 0x740f6 movq -0x8(%rbp), %rcx addq $0x10, %rcx movq -0x10(%rbp), %rax movq (%rax), %rax movq %rcx, 0x18(%rax) movq -0x8(%rbp), %rcx movq -0x10(%rbp), %rax movq %rcx, (%rax) popq %rbp retq nopw %cs:(%rax,%rax)
link_changed: push rbp mov rbp, rsp mov [rbp+var_8], rdi mov [rbp+var_10], rsi jmp short $+2 loc_740BE: jmp short $+2 loc_740C0: jmp short $+2 loc_740C2: mov rcx, [rbp+var_10] mov rax, [rbp+var_8] mov [rax+18h], rcx mov rax, [rbp+var_10] mov rax, [rax] mov rcx, [rbp+var_8] mov [rcx+10h], rax cmp rax, 0 jz short loc_740F6 mov rcx, [rbp+var_8] add rcx, 10h mov rax, [rbp+var_10] mov rax, [rax] mov [rax+18h], rcx loc_740F6: mov rcx, [rbp+var_8] mov rax, [rbp+var_10] mov [rax], rcx pop rbp retn
long long * link_changed(long long a1, long long *a2) { long long v2; // rax long long *result; // rax *(_QWORD *)(a1 + 24) = a2; v2 = *a2; *(_QWORD *)(a1 + 16) = *a2; if ( v2 ) *(_QWORD *)(*a2 + 24) = a1 + 16; result = a2; *a2 = a1; return result; }
link_changed: PUSH RBP MOV RBP,RSP MOV qword ptr [RBP + -0x8],RDI MOV qword ptr [RBP + -0x10],RSI JMP 0x001740be LAB_001740be: JMP 0x001740c0 LAB_001740c0: JMP 0x001740c2 LAB_001740c2: MOV RCX,qword ptr [RBP + -0x10] MOV RAX,qword ptr [RBP + -0x8] MOV qword ptr [RAX + 0x18],RCX MOV RAX,qword ptr [RBP + -0x10] MOV RAX,qword ptr [RAX] MOV RCX,qword ptr [RBP + -0x8] MOV qword ptr [RCX + 0x10],RAX CMP RAX,0x0 JZ 0x001740f6 MOV RCX,qword ptr [RBP + -0x8] ADD RCX,0x10 MOV RAX,qword ptr [RBP + -0x10] MOV RAX,qword ptr [RAX] MOV qword ptr [RAX + 0x18],RCX LAB_001740f6: MOV RCX,qword ptr [RBP + -0x8] MOV RAX,qword ptr [RBP + -0x10] MOV qword ptr [RAX],RCX POP RBP RET
void link_changed(long param_1,long *param_2) { long lVar1; *(long **)(param_1 + 0x18) = param_2; lVar1 = *param_2; *(long *)(param_1 + 0x10) = lVar1; if (lVar1 != 0) { *(long *)(*param_2 + 0x18) = param_1 + 0x10; } *param_2 = param_1; return; }
34,743
OpenSubdiv::v3_6_0::Far::PatchTableBuilder::appendPatch(int, int)
NVIDIA-RTX[P]OSD-Lite/opensubdiv/far/patchTableFactory.cpp
inline void PatchTableBuilder::appendPatch(int levelIndex, Index faceIndex) { _patches.push_back(PatchTuple(faceIndex, levelIndex)); // Count the patches here to simplify subsequent allocation. if (_patchBuilder->IsPatchRegular(levelIndex, faceIndex)) { ++_numRegularPatches; } else { ++_numIrregularPatches; // LegacyGregory needs to distinguish boundary vs interior if (_requiresLegacyGregoryTables) { _legacyGregoryHelper->AddPatchFace(levelIndex, faceIndex); } } }
O2
cpp
OpenSubdiv::v3_6_0::Far::PatchTableBuilder::appendPatch(int, int): pushq %rbp pushq %r14 pushq %rbx subq $0x10, %rsp movl %edx, %ebx movl %esi, %ebp movq %rdi, %r14 addq $0x58, %rdi leaq 0x8(%rsp), %rsi movl %edx, (%rsi) movl %ebp, 0x4(%rsi) callq 0x4fd40 movq 0x38(%r14), %rdi pushq $-0x1 popq %rcx movl %ebp, %esi movl %ebx, %edx callq 0x515a0 testb %al, %al je 0x80a9a incl 0x70(%r14) jmp 0x80ab8 incl 0x74(%r14) cmpb $0x1, 0xc0(%r14) jne 0x80ab8 movq 0xc8(%r14), %rdi movl %ebp, %esi movl %ebx, %edx callq 0x52d00 addq $0x10, %rsp popq %rbx popq %r14 popq %rbp retq nop
_ZN10OpenSubdiv6v3_6_03Far17PatchTableBuilder11appendPatchEii: push rbp push r14 push rbx sub rsp, 10h mov ebx, edx mov ebp, esi mov r14, rdi add rdi, 58h ; 'X' lea rsi, [rsp+28h+var_20] mov [rsi], edx mov [rsi+4], ebp call __ZNSt6vectorIN10OpenSubdiv6v3_6_03Far17PatchTableBuilder10PatchTupleESaIS4_EE12emplace_backIJS4_EEERS4_DpOT_; std::vector<OpenSubdiv::v3_6_0::Far::PatchTableBuilder::PatchTuple>::emplace_back<OpenSubdiv::v3_6_0::Far::PatchTableBuilder::PatchTuple>(OpenSubdiv::v3_6_0::Far::PatchTableBuilder::PatchTuple &&) mov rdi, [r14+38h]; this push 0FFFFFFFFFFFFFFFFh pop rcx; int mov esi, ebp; int mov edx, ebx; int call __ZNK10OpenSubdiv6v3_6_03Far12PatchBuilder14IsPatchRegularEiii; OpenSubdiv::v3_6_0::Far::PatchBuilder::IsPatchRegular(int,int,int) test al, al jz short loc_80A9A inc dword ptr [r14+70h] jmp short loc_80AB8 loc_80A9A: inc dword ptr [r14+74h] cmp byte ptr [r14+0C0h], 1 jnz short loc_80AB8 mov rdi, [r14+0C8h]; this mov esi, ebp; int mov edx, ebx; int call __ZN10OpenSubdiv6v3_6_03Far17PatchTableBuilder19LegacyGregoryHelper12AddPatchFaceEii; OpenSubdiv::v3_6_0::Far::PatchTableBuilder::LegacyGregoryHelper::AddPatchFace(int,int) loc_80AB8: add rsp, 10h pop rbx pop r14 pop rbp retn
long long OpenSubdiv::v3_6_0::Far::PatchTableBuilder::appendPatch( OpenSubdiv::v3_6_0::Far::PatchBuilder **this, int a2, int a3) { long long result; // rax std::vector<OpenSubdiv::v3_6_0::Far::PatchTableBuilder::PatchTuple>::emplace_back<OpenSubdiv::v3_6_0::Far::PatchTableBuilder::PatchTuple>(this + 11); result = OpenSubdiv::v3_6_0::Far::PatchBuilder::IsPatchRegular(this[7], a2, a3, -1); if ( (_BYTE)result ) { ++*((_DWORD *)this + 28); } else { ++*((_DWORD *)this + 29); if ( *((_BYTE *)this + 192) == 1 ) return OpenSubdiv::v3_6_0::Far::PatchTableBuilder::LegacyGregoryHelper::AddPatchFace(this[25], a2, a3); } return result; }
appendPatch: PUSH RBP PUSH R14 PUSH RBX SUB RSP,0x10 MOV EBX,EDX MOV EBP,ESI MOV R14,RDI ADD RDI,0x58 LEA RSI,[RSP + 0x8] MOV dword ptr [RSI],EDX MOV dword ptr [RSI + 0x4],EBP CALL 0x0014fd40 MOV RDI,qword ptr [R14 + 0x38] PUSH -0x1 POP RCX MOV ESI,EBP MOV EDX,EBX CALL 0x001515a0 TEST AL,AL JZ 0x00180a9a INC dword ptr [R14 + 0x70] JMP 0x00180ab8 LAB_00180a9a: INC dword ptr [R14 + 0x74] CMP byte ptr [R14 + 0xc0],0x1 JNZ 0x00180ab8 MOV RDI,qword ptr [R14 + 0xc8] MOV ESI,EBP MOV EDX,EBX CALL 0x00152d00 LAB_00180ab8: ADD RSP,0x10 POP RBX POP R14 POP RBP RET
/* OpenSubdiv::v3_6_0::Far::PatchTableBuilder::appendPatch(int, int) */ void __thiscall OpenSubdiv::v3_6_0::Far::PatchTableBuilder::appendPatch (PatchTableBuilder *this,int param_1,int param_2) { char cVar1; int local_20; int local_1c; local_20 = param_2; local_1c = param_1; std:: vector<OpenSubdiv::v3_6_0::Far::PatchTableBuilder::PatchTuple,std::allocator<OpenSubdiv::v3_6_0::Far::PatchTableBuilder::PatchTuple>> ::emplace_back<OpenSubdiv::v3_6_0::Far::PatchTableBuilder::PatchTuple> ((vector<OpenSubdiv::v3_6_0::Far::PatchTableBuilder::PatchTuple,std::allocator<OpenSubdiv::v3_6_0::Far::PatchTableBuilder::PatchTuple>> *)(this + 0x58),(PatchTuple *)&local_20); cVar1 = PatchBuilder::IsPatchRegular(*(PatchBuilder **)(this + 0x38),param_1,param_2,-1); if (cVar1 == '\0') { *(int *)(this + 0x74) = *(int *)(this + 0x74) + 1; if (this[0xc0] == (PatchTableBuilder)0x1) { LegacyGregoryHelper::AddPatchFace(*(LegacyGregoryHelper **)(this + 200),param_1,param_2); } } else { *(int *)(this + 0x70) = *(int *)(this + 0x70) + 1; } return; }
34,744
nlohmann::json_abi_v3_11_3::ordered_map<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>, std::less<void>, std::allocator<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const, 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>>>>::erase(__gnu_cxx::__normal_iterator<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const, nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>>*, std::vector<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const, nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>>, std::allocator<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const, 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>>>>>, __gnu_cxx::__normal_iterator<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const, nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>>*, std::vector<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const, nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>>, std::allocator<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const, nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>>>>>)
monkey531[P]llama/common/json.hpp
iterator erase(iterator first, iterator last) { if (first == last) { return first; } const auto elements_affected = std::distance(first, last); const auto offset = std::distance(Container::begin(), first); // This is the start situation. We need to delete elements_affected // elements (3 in this example: e, f, g), and need to return an // iterator past the last deleted element (h in this example). // Note that offset is the distance from the start of the vector // to first. We will need this later. // [ a, b, c, d, e, f, g, h, i, j ] // ^ ^ // first last // Since we cannot move const Keys, we re-construct them in place. // We start at first and re-construct (viz. copy) the elements from // the back of the vector. Example for first iteration: // ,--------. // v | destroy e and re-construct with h // [ a, b, c, d, e, f, g, h, i, j ] // ^ ^ // it it + elements_affected for (auto it = first; std::next(it, elements_affected) != Container::end(); ++it) { it->~value_type(); // destroy but keep allocation new (&*it) value_type{std::move(*std::next(it, elements_affected))}; // "move" next element to it } // [ a, b, c, d, h, i, j, h, i, j ] // ^ ^ // first last // remove the unneeded elements at the end of the vector Container::resize(this->size() - static_cast<size_type>(elements_affected)); // [ a, b, c, d, h, i, j ] // ^ ^ // first last // first is now pointing past the last deleted element, but we cannot // use this iterator, because it may have been invalidated by the // resize call. Instead, we can return begin() + offset. return Container::begin() + offset; }
O2
cpp
nlohmann::json_abi_v3_11_3::ordered_map<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>, std::less<void>, std::allocator<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const, 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>>>>::erase(__gnu_cxx::__normal_iterator<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const, nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>>*, std::vector<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const, nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>>, std::allocator<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const, 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>>>>>, __gnu_cxx::__normal_iterator<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const, nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>>*, std::vector<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const, nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>>, std::allocator<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const, nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>>>>>): pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx pushq %rax movq %rsi, %rbx cmpq %rdx, %rsi je 0x45d07 movq %rdi, %r14 subq %rbx, %rdx pushq $0x30 popq %rcx movq %rdx, %rax cqto idivq %rcx movq %rax, %r15 movq (%rdi), %rax movq %rax, (%rsp) imulq $0x30, %r15, %r13 addq %rbx, %r13 movq %r13, %r12 negq %r12 movq %rbx, %rbp cmpq 0x8(%r14), %r13 je 0x45ce1 movq %rbp, %rdi callq 0x45130 movq %rbp, %rdi movq %r13, %rsi callq 0x45d1a addq $0x30, %rbp addq $0x30, %r13 addq $-0x30, %r12 jmp 0x45cba subq (%rsp), %rbx addq (%r14), %r12 negq %r12 movq %r12, %rax cqto pushq $0x30 popq %rcx idivq %rcx subq %r15, %rax movq %r14, %rdi movq %rax, %rsi callq 0x45d44 addq (%r14), %rbx movq %rbx, %rax addq $0x8, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq nop
_ZN8nlohmann16json_abi_v3_11_311ordered_mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEENS0_10basic_jsonIS1_St6vectorS7_blmdSaNS0_14adl_serializerES9_IhSaIhEEvEESt4lessIvESaISt4pairIKS7_SD_EEE5eraseEN9__gnu_cxx17__normal_iteratorIPSI_S9_ISI_SJ_EEESP_: push rbp push r15 push r14 push r13 push r12 push rbx push rax mov rbx, rsi cmp rsi, rdx jz short loc_45D07 mov r14, rdi sub rdx, rbx push 30h ; '0' pop rcx mov rax, rdx cqo idiv rcx mov r15, rax mov rax, [rdi] mov [rsp+38h+var_38], rax imul r13, r15, 30h ; '0' add r13, rbx mov r12, r13 neg r12 mov rbp, rbx loc_45CBA: cmp r13, [r14+8] jz short loc_45CE1 mov rdi, rbp; void * call _ZNSt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN8nlohmann16json_abi_v3_11_310basic_jsonINS8_11ordered_mapESt6vectorS5_blmdSaNS8_14adl_serializerESB_IhSaIhEEvEEED2Ev; std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>::~pair() mov rdi, rbp mov rsi, r13 call _ZNSt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN8nlohmann16json_abi_v3_11_310basic_jsonINS8_11ordered_mapESt6vectorS5_blmdSaNS8_14adl_serializerESB_IhSaIhEEvEEEC2EOSG_; std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>::pair(std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>&&) add rbp, 30h ; '0' add r13, 30h ; '0' add r12, 0FFFFFFFFFFFFFFD0h jmp short loc_45CBA loc_45CE1: sub rbx, [rsp+38h+var_38] add r12, [r14] neg r12 mov rax, r12 cqo push 30h ; '0' pop rcx idiv rcx sub rax, r15 mov rdi, r14 mov rsi, rax call _ZNSt6vectorISt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN8nlohmann16json_abi_v3_11_310basic_jsonINS9_11ordered_mapES_S6_blmdSaNS9_14adl_serializerES_IhSaIhEEvEEESaISG_EE6resizeEm; std::vector<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>>::resize(ulong) add rbx, [r14] loc_45D07: mov rax, rbx add rsp, 8 pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn
char * nlohmann::json_abi_v3_11_3::ordered_map<std::string,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>,std::less<void>,std::allocator<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>>>::erase( long long *a1, char *a2, char *a3) { char *v3; // rbx long long v4; // r15 char *v5; // r13 long long v6; // r12 char *v7; // rbp long long v9; // [rsp+0h] [rbp-38h] v3 = a2; if ( a2 != a3 ) { v4 = (a3 - a2) / 48; v9 = *a1; v5 = &a2[48 * v4]; v6 = -(long long)v5; v7 = a2; while ( v5 != (char *)a1[1] ) { std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>::~pair(v7); std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>::pair( v7, v5); v7 += 48; v5 += 48; v6 -= 48LL; } std::vector<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>>::resize( a1, -(*a1 + v6) / 48 - v4, -(*a1 + v6) % 48); return &a2[*a1 - v9]; } return v3; }
erase: PUSH RBP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX PUSH RAX MOV RBX,RSI CMP RSI,RDX JZ 0x00145d07 MOV R14,RDI SUB RDX,RBX PUSH 0x30 POP RCX MOV RAX,RDX CQO IDIV RCX MOV R15,RAX MOV RAX,qword ptr [RDI] MOV qword ptr [RSP],RAX IMUL R13,R15,0x30 ADD R13,RBX MOV R12,R13 NEG R12 MOV RBP,RBX LAB_00145cba: CMP R13,qword ptr [R14 + 0x8] JZ 0x00145ce1 MOV RDI,RBP CALL 0x00145130 MOV RDI,RBP MOV RSI,R13 CALL 0x00145d1a ADD RBP,0x30 ADD R13,0x30 ADD R12,-0x30 JMP 0x00145cba LAB_00145ce1: SUB RBX,qword ptr [RSP] ADD R12,qword ptr [R14] NEG R12 MOV RAX,R12 CQO PUSH 0x30 POP RCX IDIV RCX SUB RAX,R15 MOV RDI,R14 MOV RSI,RAX CALL 0x00145d44 ADD RBX,qword ptr [R14] LAB_00145d07: MOV RAX,RBX ADD RSP,0x8 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET
/* nlohmann::json_abi_v3_11_3::ordered_map<std::__cxx11::string, 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::less<void>, std::allocator<std::pair<std::__cxx11::string const, 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> > > >::erase(__gnu_cxx::__normal_iterator<std::pair<std::__cxx11::string const, 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::vector<std::pair<std::__cxx11::string const, 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<std::__cxx11::string const, 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> > > > >, __gnu_cxx::__normal_iterator<std::pair<std::__cxx11::string const, 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::vector<std::pair<std::__cxx11::string const, 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<std::__cxx11::string const, 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> > > > >) */ pair<std::__cxx11::string_const,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:: ordered_map<std::__cxx11::string,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::less<void>,std::allocator<std::pair<std::__cxx11::string_const,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>>>> ::erase(ordered_map<std::__cxx11::string,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::less<void>,std::allocator<std::pair<std::__cxx11::string_const,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,pair<std::__cxx11::string_const,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>> *param_2, pair<std::__cxx11::string_const,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>> *param_3) { long lVar1; long lVar2; pair<std::__cxx11::string_const,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_00; long lVar3; pair<std::__cxx11::string_const,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>> *ppVar4; if (param_2 != param_3) { lVar2 = ((long)param_3 - (long)param_2) / 0x30; lVar1 = *(long *)this; ppVar4 = param_2 + lVar2 * 0x30; lVar3 = -(long)ppVar4; this_00 = param_2; for (; ppVar4 != *(pair<std::__cxx11::string_const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>> **)(this + 8); ppVar4 = ppVar4 + 0x30) { std:: pair<std::__cxx11::string_const,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>> ::~pair(this_00); std:: pair<std::__cxx11::string_const,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>> ::pair(this_00,ppVar4); this_00 = this_00 + 0x30; lVar3 = lVar3 + -0x30; } std:: vector<std::pair<std::__cxx11::string_const,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<std::__cxx11::string_const,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>>>> ::resize((vector<std::pair<std::__cxx11::string_const,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<std::__cxx11::string_const,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,-(lVar3 + *(long *)this) / 0x30 - lVar2); param_2 = param_2 + (*(long *)this - lVar1); } return param_2; }
34,745
minja::Parser::parseExpression(bool)
monkey531[P]llama/common/minja.hpp
std::shared_ptr<Expression> parseExpression(bool allow_if_expr = true) { auto left = parseLogicalOr(); if (it == end) return left; if (!allow_if_expr) return left; static std::regex if_tok(R"(if\b)"); if (consumeToken(if_tok).empty()) { return left; } auto location = get_location(); auto [condition, else_expr] = parseIfExpression(); return std::make_shared<IfExpr>(location, std::move(condition), std::move(left), std::move(else_expr)); }
O0
cpp
minja::Parser::parseExpression(bool): subq $0xe8, %rsp movq %rdi, 0x18(%rsp) movb %dl, %al movq %rdi, %rcx movq %rcx, 0x20(%rsp) movq %rdi, 0xe0(%rsp) movq %rsi, 0xd8(%rsp) andb $0x1, %al movb %al, 0xd7(%rsp) movq 0xd8(%rsp), %rsi movq %rsi, 0x28(%rsp) leaq 0xc0(%rsp), %rdi callq 0x9cfa0 movq 0x28(%rsp), %rsi movq %rsi, %rdi addq $0x20, %rdi addq $0x18, %rsi callq 0x9d2b0 testb $0x1, %al jne 0x782f4 jmp 0x78316 movq 0x18(%rsp), %rdi leaq 0xc0(%rsp), %rsi callq 0x9d2f0 movl $0x1, 0xbc(%rsp) jmp 0x78529 testb $0x1, 0xd7(%rsp) jne 0x78342 movq 0x18(%rsp), %rdi leaq 0xc0(%rsp), %rsi callq 0x9d2f0 movl $0x1, 0xbc(%rsp) jmp 0x78529 leaq 0x1bebd7(%rip), %rax # 0x236f20 cmpb $0x0, (%rax) jne 0x7839f leaq 0x1bebcb(%rip), %rdi # 0x236f20 callq 0x4f4f0 cmpl $0x0, %eax je 0x7839f leaq 0x1beb9a(%rip), %rdi # 0x236f00 leaq 0x13ea74(%rip), %rsi # 0x1b6de1 movl $0x10, %edx callq 0x77ad0 jmp 0x78379 leaq -0x800(%rip), %rdi # 0x77b80 leaq 0x1beb79(%rip), %rsi # 0x236f00 leaq 0x1be4fa(%rip), %rdx # 0x236888 callq 0x4fc50 leaq 0x1beb86(%rip), %rdi # 0x236f20 callq 0x4f870 movq 0x28(%rsp), %rsi leaq 0x1beb55(%rip), %rdx # 0x236f00 leaq 0x88(%rsp), %rdi movl $0x1, %ecx callq 0x786d0 jmp 0x783bf leaq 0x88(%rsp), %rdi callq 0x4f3f0 movb %al, 0x17(%rsp) leaq 0x88(%rsp), %rdi callq 0x50100 movb 0x17(%rsp), %al testb $0x1, %al jne 0x783e7 jmp 0x78447 movq 0x18(%rsp), %rdi leaq 0xc0(%rsp), %rsi callq 0x9d2f0 movl $0x1, 0xbc(%rsp) jmp 0x78529 movq %rax, %rcx movl %edx, %eax movq %rcx, 0xb0(%rsp) movl %eax, 0xac(%rsp) leaq 0x1beafc(%rip), %rdi # 0x236f20 callq 0x4f610 jmp 0x78543 movq %rax, %rcx movl %edx, %eax movq %rcx, 0xb0(%rsp) movl %eax, 0xac(%rsp) jmp 0x78543 movq 0x28(%rsp), %rsi leaq 0x70(%rsp), %rdi callq 0x77c40 jmp 0x78458 movq 0x28(%rsp), %rsi leaq 0x50(%rsp), %rdi callq 0x9d320 jmp 0x78469 leaq 0x50(%rsp), %rdi movq %rdi, 0x8(%rsp) callq 0x9d5d0 movq 0x8(%rsp), %rdi movq %rax, 0x48(%rsp) callq 0x9d5e0 movq %rax, 0x40(%rsp) movq 0x48(%rsp), %rdx movq 0x40(%rsp), %r8 leaq 0x30(%rsp), %rdi leaq 0x70(%rsp), %rsi leaq 0xc0(%rsp), %rcx callq 0x9d5f0 jmp 0x784af movq 0x18(%rsp), %rdi leaq 0x30(%rsp), %rsi callq 0x9d690 leaq 0x30(%rsp), %rdi callq 0x9d6c0 movl $0x1, 0xbc(%rsp) leaq 0x50(%rsp), %rdi callq 0x9d6d0 leaq 0x70(%rsp), %rdi callq 0x7b3d0 jmp 0x78529 movq %rax, %rcx movl %edx, %eax movq %rcx, 0xb0(%rsp) movl %eax, 0xac(%rsp) jmp 0x7851d movq %rax, %rcx movl %edx, %eax movq %rcx, 0xb0(%rsp) movl %eax, 0xac(%rsp) leaq 0x50(%rsp), %rdi callq 0x9d6d0 leaq 0x70(%rsp), %rdi callq 0x7b3d0 jmp 0x78543 leaq 0xc0(%rsp), %rdi callq 0x786c0 movq 0x20(%rsp), %rax addq $0xe8, %rsp retq leaq 0xc0(%rsp), %rdi callq 0x786c0 movq 0xb0(%rsp), %rdi callq 0x4f990 nopl (%rax)
_ZN5minja6Parser15parseExpressionEb: sub rsp, 0E8h mov [rsp+0E8h+var_D0], rdi mov al, dl mov rcx, rdi mov [rsp+0E8h+var_C8], rcx mov [rsp+0E8h+var_8], rdi mov [rsp+0E8h+var_10], rsi and al, 1 mov [rsp+0E8h+var_11], al mov rsi, [rsp+0E8h+var_10] mov [rsp+0E8h+var_C0], rsi lea rdi, [rsp+0E8h+var_28]; this call _ZN5minja6Parser14parseLogicalOrEv; minja::Parser::parseLogicalOr(void) mov rsi, [rsp+0E8h+var_C0] mov rdi, rsi add rdi, 20h ; ' ' add rsi, 18h call _ZN9__gnu_cxxeqIPKcNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEEbRKNS_17__normal_iteratorIT_T0_EESE_; __gnu_cxx::operator==<char const*,std::string>(__gnu_cxx::__normal_iterator<char const*,std::string> const&,__gnu_cxx::__normal_iterator<char const*,std::string> const&) test al, 1 jnz short loc_782F4 jmp short loc_78316 loc_782F4: mov rdi, [rsp+0E8h+var_D0] lea rsi, [rsp+0E8h+var_28] call _ZNSt10shared_ptrIN5minja10ExpressionEEC2EOS2_; std::shared_ptr<minja::Expression>::shared_ptr(std::shared_ptr<minja::Expression>&&) mov [rsp+0E8h+var_2C], 1 jmp loc_78529 loc_78316: test [rsp+0E8h+var_11], 1 jnz short loc_78342 mov rdi, [rsp+0E8h+var_D0] lea rsi, [rsp+0E8h+var_28] call _ZNSt10shared_ptrIN5minja10ExpressionEEC2EOS2_; std::shared_ptr<minja::Expression>::shared_ptr(std::shared_ptr<minja::Expression>&&) mov [rsp+0E8h+var_2C], 1 jmp loc_78529 loc_78342: lea rax, _ZGVZN5minja6Parser15parseExpressionEbE6if_tokB5cxx11; `guard variable for'minja::Parser::parseExpression(bool)::if_tok cmp byte ptr [rax], 0 jnz short loc_7839F lea rdi, _ZGVZN5minja6Parser15parseExpressionEbE6if_tokB5cxx11; __guard * call ___cxa_guard_acquire cmp eax, 0 jz short loc_7839F lea rdi, _ZZN5minja6Parser15parseExpressionEbE6if_tokB5cxx11; minja::Parser::parseExpression(bool)::if_tok lea rsi, aIfB; "if\\b" 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) jmp short $+2 loc_78379: lea rdi, _ZNSt7__cxx1111basic_regexIcNS_12regex_traitsIcEEED2Ev; lpfunc lea rsi, _ZZN5minja6Parser15parseExpressionEbE6if_tokB5cxx11; obj lea rdx, __dso_handle; lpdso_handle call ___cxa_atexit lea rdi, _ZGVZN5minja6Parser15parseExpressionEbE6if_tokB5cxx11; __guard * call ___cxa_guard_release loc_7839F: mov rsi, [rsp+0E8h+var_C0] lea rdx, _ZZN5minja6Parser15parseExpressionEbE6if_tokB5cxx11; minja::Parser::parseExpression(bool)::if_tok lea rdi, [rsp+0E8h+var_60] mov ecx, 1 call _ZN5minja6Parser12consumeTokenERKNSt7__cxx1111basic_regexIcNS1_12regex_traitsIcEEEENS_13SpaceHandlingE; minja::Parser::consumeToken(std::basic_regex<char,std::regex_traits<char>> const&,minja::SpaceHandling) jmp short $+2 loc_783BF: lea rdi, [rsp+0E8h+var_60] call __ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5emptyEv; std::string::empty(void) mov [rsp+0E8h+var_D1], al lea rdi, [rsp+0E8h+var_60]; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string() mov al, [rsp+0E8h+var_D1] test al, 1 jnz short loc_783E7 jmp short loc_78447 loc_783E7: mov rdi, [rsp+0E8h+var_D0] lea rsi, [rsp+0E8h+var_28] call _ZNSt10shared_ptrIN5minja10ExpressionEEC2EOS2_; std::shared_ptr<minja::Expression>::shared_ptr(std::shared_ptr<minja::Expression>&&) mov [rsp+0E8h+var_2C], 1 jmp loc_78529 mov rcx, rax mov eax, edx mov [rsp+arg_A8], rcx mov [rsp+arg_A4], eax lea rdi, _ZGVZN5minja6Parser15parseExpressionEbE6if_tokB5cxx11; __guard * call ___cxa_guard_abort jmp loc_78543 mov rcx, rax mov eax, edx mov [rsp+arg_A8], rcx mov [rsp+arg_A4], eax jmp loc_78543 loc_78447: mov rsi, [rsp+0E8h+var_C0] lea rdi, [rsp+0E8h+var_78]; this call _ZNK5minja6Parser12get_locationEv; minja::Parser::get_location(void) jmp short $+2 loc_78458: mov rsi, [rsp+0E8h+var_C0] lea rdi, [rsp+0E8h+var_98]; this call _ZN5minja6Parser17parseIfExpressionEv; minja::Parser::parseIfExpression(void) jmp short $+2 loc_78469: lea rdi, [rsp+0E8h+var_98] mov [rsp+0E8h+var_E0], rdi call _ZSt3getILm0ESt10shared_ptrIN5minja10ExpressionEES3_EONSt13tuple_elementIXT_ESt4pairIT0_T1_EE4typeEOS8_; std::get<0ul,std::shared_ptr<minja::Expression>,std::shared_ptr<minja::Expression>>(std::pair<std::shared_ptr<minja::Expression>,std::shared_ptr<minja::Expression>>&&) mov rdi, [rsp+0E8h+var_E0] mov [rsp+0E8h+var_A0], rax call _ZSt3getILm1ESt10shared_ptrIN5minja10ExpressionEES3_EONSt13tuple_elementIXT_ESt4pairIT0_T1_EE4typeEOS8_; std::get<1ul,std::shared_ptr<minja::Expression>,std::shared_ptr<minja::Expression>>(std::pair<std::shared_ptr<minja::Expression>,std::shared_ptr<minja::Expression>>&&) mov [rsp+0E8h+var_A8], rax mov rdx, [rsp+0E8h+var_A0] mov r8, [rsp+0E8h+var_A8] lea rdi, [rsp+0E8h+var_B8] lea rsi, [rsp+0E8h+var_78] lea rcx, [rsp+0E8h+var_28] call _ZSt11make_sharedIN5minja6IfExprEJRNS0_8LocationESt10shared_ptrINS0_10ExpressionEES6_S6_EES4_IT_EDpOT0_; std::make_shared<minja::IfExpr,minja::Location &,std::shared_ptr<minja::Expression>,std::shared_ptr<minja::Expression>,std::shared_ptr<minja::Expression>>(minja::Location &,std::shared_ptr<minja::Expression>,std::shared_ptr<minja::Expression>,std::shared_ptr<minja::Expression> &&) jmp short $+2 loc_784AF: mov rdi, [rsp+0E8h+var_D0] lea rsi, [rsp+0E8h+var_B8] call _ZNSt10shared_ptrIN5minja10ExpressionEEC2INS0_6IfExprEvEEOS_IT_E; std::shared_ptr<minja::Expression>::shared_ptr<minja::IfExpr,void>(std::shared_ptr&&<minja::IfExpr>) lea rdi, [rsp+0E8h+var_B8] call _ZNSt10shared_ptrIN5minja6IfExprEED2Ev; std::shared_ptr<minja::IfExpr>::~shared_ptr() mov [rsp+0E8h+var_2C], 1 lea rdi, [rsp+0E8h+var_98] call _ZNSt4pairISt10shared_ptrIN5minja10ExpressionEES3_ED2Ev; std::pair<std::shared_ptr<minja::Expression>,std::shared_ptr<minja::Expression>>::~pair() lea rdi, [rsp+0E8h+var_78]; this call _ZN5minja8LocationD2Ev; minja::Location::~Location() jmp short loc_78529 mov rcx, rax mov eax, edx mov [rsp+arg_A8], rcx mov [rsp+arg_A4], eax jmp short loc_7851D mov rcx, rax mov eax, edx mov [rsp+arg_A8], rcx mov [rsp+arg_A4], eax lea rdi, [rsp+arg_48] call _ZNSt4pairISt10shared_ptrIN5minja10ExpressionEES3_ED2Ev; std::pair<std::shared_ptr<minja::Expression>,std::shared_ptr<minja::Expression>>::~pair() loc_7851D: lea rdi, [rsp+arg_68]; this call _ZN5minja8LocationD2Ev; minja::Location::~Location() jmp short loc_78543 loc_78529: lea rdi, [rsp+0E8h+var_28] call _ZNSt10shared_ptrIN5minja10ExpressionEED2Ev; std::shared_ptr<minja::Expression>::~shared_ptr() mov rax, [rsp+0E8h+var_C8] add rsp, 0E8h retn loc_78543: lea rdi, [rsp+arg_B8] call _ZNSt10shared_ptrIN5minja10ExpressionEED2Ev; std::shared_ptr<minja::Expression>::~shared_ptr() mov rdi, [rsp+arg_A8] call __Unwind_Resume
minja::Parser * minja::Parser::parseExpression(minja::Parser *this, long long a2, char a3) { int v3; // r8d int v4; // r9d int v5; // r9d char v7; // [rsp+17h] [rbp-D1h] _BYTE v8[16]; // [rsp+30h] [rbp-B8h] BYREF long long v9; // [rsp+40h] [rbp-A8h] long long v10; // [rsp+48h] [rbp-A0h] _BYTE v11[32]; // [rsp+50h] [rbp-98h] BYREF _BYTE v12[24]; // [rsp+70h] [rbp-78h] BYREF _BYTE v13[52]; // [rsp+88h] [rbp-60h] BYREF int v14; // [rsp+BCh] [rbp-2Ch] _BYTE v15[23]; // [rsp+C0h] [rbp-28h] BYREF char v16; // [rsp+D7h] [rbp-11h] long long v17; // [rsp+D8h] [rbp-10h] minja::Parser *v18; // [rsp+E0h] [rbp-8h] v18 = this; v17 = a2; v16 = a3 & 1; minja::Parser::parseLogicalOr((minja::Parser *)v15); if ( (__gnu_cxx::operator==<char const*,std::string>(a2 + 32, a2 + 24) & 1) != 0 || (v16 & 1) == 0 ) { std::shared_ptr<minja::Expression>::shared_ptr(this, v15); v14 = 1; } else { if ( !(_BYTE)`guard variable for'minja::Parser::parseExpression(bool)::if_tok[abi:cxx11] && __cxa_guard_acquire(&`guard variable for'minja::Parser::parseExpression(bool)::if_tok[abi:cxx11]) ) { std::basic_regex<char,std::regex_traits<char>>::basic_regex( (long long)&minja::Parser::parseExpression(bool)::if_tok[abi:cxx11], (long long)"if\\b", 0x10u); __cxa_atexit( (void (*)(void *))std::basic_regex<char,std::regex_traits<char>>::~basic_regex, &minja::Parser::parseExpression(bool)::if_tok[abi:cxx11], &_dso_handle); __cxa_guard_release(&`guard variable for'minja::Parser::parseExpression(bool)::if_tok[abi:cxx11]); } minja::Parser::consumeToken( (unsigned int)v13, a2, (unsigned int)&minja::Parser::parseExpression(bool)::if_tok[abi:cxx11], 1, v3, v4); v7 = std::string::empty(v13); std::string::~string(v13); if ( (v7 & 1) != 0 ) { std::shared_ptr<minja::Expression>::shared_ptr(this, v15); v14 = 1; } else { minja::Parser::get_location((minja::Parser *)v12, a2); minja::Parser::parseIfExpression((minja::Parser *)v11); v10 = std::get<0ul,std::shared_ptr<minja::Expression>,std::shared_ptr<minja::Expression>>(v11, a2); v9 = std::get<1ul,std::shared_ptr<minja::Expression>,std::shared_ptr<minja::Expression>>(v11); std::make_shared<minja::IfExpr,minja::Location &,std::shared_ptr<minja::Expression>,std::shared_ptr<minja::Expression>,std::shared_ptr<minja::Expression>>( (unsigned int)v8, (unsigned int)v12, v10, (unsigned int)v15, v9, v5); std::shared_ptr<minja::Expression>::shared_ptr<minja::IfExpr,void>(this, v8); std::shared_ptr<minja::IfExpr>::~shared_ptr(v8); v14 = 1; std::pair<std::shared_ptr<minja::Expression>,std::shared_ptr<minja::Expression>>::~pair(v11); minja::Location::~Location((minja::Location *)v12); } } std::shared_ptr<minja::Expression>::~shared_ptr(v15); return this; }
parseExpression: SUB RSP,0xe8 MOV qword ptr [RSP + 0x18],RDI MOV AL,DL MOV RCX,RDI MOV qword ptr [RSP + 0x20],RCX MOV qword ptr [RSP + 0xe0],RDI MOV qword ptr [RSP + 0xd8],RSI AND AL,0x1 MOV byte ptr [RSP + 0xd7],AL MOV RSI,qword ptr [RSP + 0xd8] MOV qword ptr [RSP + 0x28],RSI LEA RDI,[RSP + 0xc0] CALL 0x0019cfa0 MOV RSI,qword ptr [RSP + 0x28] MOV RDI,RSI ADD RDI,0x20 ADD RSI,0x18 CALL 0x0019d2b0 TEST AL,0x1 JNZ 0x001782f4 JMP 0x00178316 LAB_001782f4: MOV RDI,qword ptr [RSP + 0x18] LEA RSI,[RSP + 0xc0] CALL 0x0019d2f0 MOV dword ptr [RSP + 0xbc],0x1 JMP 0x00178529 LAB_00178316: TEST byte ptr [RSP + 0xd7],0x1 JNZ 0x00178342 MOV RDI,qword ptr [RSP + 0x18] LEA RSI,[RSP + 0xc0] CALL 0x0019d2f0 MOV dword ptr [RSP + 0xbc],0x1 JMP 0x00178529 LAB_00178342: LEA RAX,[0x336f20] CMP byte ptr [RAX],0x0 JNZ 0x0017839f LEA RDI,[0x336f20] CALL 0x0014f4f0 CMP EAX,0x0 JZ 0x0017839f LAB_0017835f: LEA RDI,[0x336f00] LEA RSI,[0x2b6de1] MOV EDX,0x10 CALL 0x00177ad0 JMP 0x00178379 LAB_00178379: LEA RDI,[0x177b80] LEA RSI,[0x336f00] LEA RDX,[0x336888] CALL 0x0014fc50 LEA RDI,[0x336f20] CALL 0x0014f870 LAB_0017839f: MOV RSI,qword ptr [RSP + 0x28] LEA RDX,[0x336f00] LEA RDI,[RSP + 0x88] MOV ECX,0x1 CALL 0x001786d0 JMP 0x001783bf LAB_001783bf: LEA RDI,[RSP + 0x88] CALL 0x0014f3f0 MOV byte ptr [RSP + 0x17],AL LEA RDI,[RSP + 0x88] CALL 0x00150100 MOV AL,byte ptr [RSP + 0x17] TEST AL,0x1 JNZ 0x001783e7 JMP 0x00178447 LAB_001783e7: MOV RDI,qword ptr [RSP + 0x18] LEA RSI,[RSP + 0xc0] CALL 0x0019d2f0 MOV dword ptr [RSP + 0xbc],0x1 JMP 0x00178529 LAB_00178447: MOV RSI,qword ptr [RSP + 0x28] LEA RDI,[RSP + 0x70] CALL 0x00177c40 JMP 0x00178458 LAB_00178458: MOV RSI,qword ptr [RSP + 0x28] LEA RDI,[RSP + 0x50] CALL 0x0019d320 JMP 0x00178469 LAB_00178469: LEA RDI,[RSP + 0x50] MOV qword ptr [RSP + 0x8],RDI CALL 0x0019d5d0 MOV RDI,qword ptr [RSP + 0x8] MOV qword ptr [RSP + 0x48],RAX CALL 0x0019d5e0 MOV qword ptr [RSP + 0x40],RAX MOV RDX,qword ptr [RSP + 0x48] MOV R8,qword ptr [RSP + 0x40] LAB_00178496: LEA RDI,[RSP + 0x30] LEA RSI,[RSP + 0x70] LEA RCX,[RSP + 0xc0] CALL 0x0019d5f0 LAB_001784ad: JMP 0x001784af LAB_001784af: MOV RDI,qword ptr [RSP + 0x18] LEA RSI,[RSP + 0x30] CALL 0x0019d690 LEA RDI,[RSP + 0x30] CALL 0x0019d6c0 MOV dword ptr [RSP + 0xbc],0x1 LEA RDI,[RSP + 0x50] CALL 0x0019d6d0 LEA RDI,[RSP + 0x70] CALL 0x0017b3d0 JMP 0x00178529 LAB_00178529: LEA RDI,[RSP + 0xc0] CALL 0x001786c0 MOV RAX,qword ptr [RSP + 0x20] ADD RSP,0xe8 RET
/* minja::Parser::parseExpression(bool) */ shared_ptr<minja::Expression> * minja::Parser::parseExpression(bool param_1) { bool bVar1; byte bVar2; int iVar3; byte in_DL; long in_RSI; int7 in_register_00000039; shared_ptr<minja::Expression> *this; Location local_b8 [16]; type *local_a8; shared_ptr *local_a0; pair<std::shared_ptr<minja::Expression>,std::shared_ptr<minja::Expression>> local_98 [32]; shared_ptr local_78 [24]; string local_60 [52]; int4 local_2c; shared_ptr local_28 [23]; byte local_11; shared_ptr<minja::Expression> *local_8; this = (shared_ptr<minja::Expression> *)CONCAT71(in_register_00000039,param_1); local_11 = in_DL & 1; local_8 = this; parseLogicalOr(); bVar1 = __gnu_cxx::operator== ((__normal_iterator *)(in_RSI + 0x20),(__normal_iterator *)(in_RSI + 0x18)); if (bVar1) { std::shared_ptr<minja::Expression>::shared_ptr(this,local_28); local_2c = 1; } else if ((local_11 & 1) == 0) { std::shared_ptr<minja::Expression>::shared_ptr(this,local_28); local_2c = 1; } else { if (parseExpression(bool)::if_tok_abi_cxx11_ == '\0') { iVar3 = __cxa_guard_acquire(&parseExpression(bool)::if_tok_abi_cxx11_); if (iVar3 != 0) { /* try { // try from 0017835f to 00178376 has its CatchHandler @ 00178409 */ std::__cxx11::basic_regex<char,std::__cxx11::regex_traits<char>>::basic_regex (parseExpression(bool)::if_tok_abi_cxx11_,&DAT_002b6de1,0x10); __cxa_atexit(std::__cxx11::basic_regex<char,std::__cxx11::regex_traits<char>>::~basic_regex, parseExpression(bool)::if_tok_abi_cxx11_,&__dso_handle); __cxa_guard_release(&parseExpression(bool)::if_tok_abi_cxx11_); } } /* try { // try from 0017839f to 00178455 has its CatchHandler @ 0017842e */ consumeToken(local_60,in_RSI,parseExpression(bool)::if_tok_abi_cxx11_,1); bVar2 = std::__cxx11::string::empty(); std::__cxx11::string::~string(local_60); if ((bVar2 & 1) == 0) { get_location(); /* try { // try from 00178458 to 00178466 has its CatchHandler @ 001784e9 */ parseIfExpression(); local_a0 = (shared_ptr *) std::get<0ul,std::shared_ptr<minja::Expression>,std::shared_ptr<minja::Expression>> (local_98); local_a8 = std::get<1ul,std::shared_ptr<minja::Expression>,std::shared_ptr<minja::Expression>> (local_98); /* try { // try from 00178496 to 001784ac has its CatchHandler @ 001784ff */ std:: make_shared<minja::IfExpr,minja::Location&,std::shared_ptr<minja::Expression>,std::shared_ptr<minja::Expression>,std::shared_ptr<minja::Expression>> (local_b8,local_78,local_a0,local_28); std::shared_ptr<minja::Expression>::shared_ptr<minja::IfExpr,void> (this,(shared_ptr *)local_b8); std::shared_ptr<minja::IfExpr>::~shared_ptr((shared_ptr<minja::IfExpr> *)local_b8); local_2c = 1; std::pair<std::shared_ptr<minja::Expression>,std::shared_ptr<minja::Expression>>::~pair (local_98); Location::~Location((Location *)local_78); } else { std::shared_ptr<minja::Expression>::shared_ptr(this,local_28); local_2c = 1; } } std::shared_ptr<minja::Expression>::~shared_ptr((shared_ptr<minja::Expression> *)local_28); return this; }
34,746
compare_columns
eloqsql/storage/maria/ma_create.c
static int compare_columns(MARIA_COLUMNDEF **a_ptr, MARIA_COLUMNDEF **b_ptr) { MARIA_COLUMNDEF *a= *a_ptr, *b= *b_ptr; enum en_fieldtype a_type, b_type; a_type= (a->type == FIELD_CHECK) ? FIELD_NORMAL : a->type; b_type= (b->type == FIELD_CHECK) ? FIELD_NORMAL : b->type; if (a_type == FIELD_NORMAL && !a->null_bit) { if (b_type != FIELD_NORMAL || b->null_bit) return -1; return sign((long) a->offset - (long) b->offset); } if (b_type == FIELD_NORMAL && !b->null_bit) return 1; if (a_type == b_type) return sign((long) a->offset - (long) b->offset); if (a_type == FIELD_NORMAL) return -1; if (b_type == FIELD_NORMAL) return 1; if (a_type == FIELD_SKIP_ZERO) return -1; if (b_type == FIELD_SKIP_ZERO) return 1; if (a->type != FIELD_BLOB && b->type != FIELD_BLOB) if (a->length != b->length) return sign((long) a->length - (long) b->length); if (a_type == FIELD_BLOB) return 1; if (b_type == FIELD_BLOB) return -1; return sign((long) a->offset - (long) b->offset); }
O0
c
compare_columns: pushq %rbp movq %rsp, %rbp subq $0x40, %rsp movq %rdi, -0x10(%rbp) movq %rsi, -0x18(%rbp) movq -0x10(%rbp), %rax movq (%rax), %rax movq %rax, -0x20(%rbp) movq -0x18(%rbp), %rax movq (%rax), %rax movq %rax, -0x28(%rbp) movq -0x20(%rbp), %rax cmpl $0x9, (%rax) jne 0x95156 xorl %eax, %eax movl %eax, -0x34(%rbp) jmp 0x9515f movq -0x20(%rbp), %rax movl (%rax), %eax movl %eax, -0x34(%rbp) movl -0x34(%rbp), %eax movl %eax, -0x2c(%rbp) movq -0x28(%rbp), %rax cmpl $0x9, (%rax) jne 0x95175 xorl %eax, %eax movl %eax, -0x38(%rbp) jmp 0x9517e movq -0x28(%rbp), %rax movl (%rax), %eax movl %eax, -0x38(%rbp) movl -0x38(%rbp), %eax movl %eax, -0x30(%rbp) cmpl $0x0, -0x2c(%rbp) jne 0x951d3 movq -0x20(%rbp), %rax cmpb $0x0, 0x12(%rax) jne 0x951d3 cmpl $0x0, -0x30(%rbp) jne 0x951a7 movq -0x28(%rbp), %rax movzbl 0x12(%rax), %eax cmpl $0x0, %eax je 0x951b3 movl $0xffffffff, -0x4(%rbp) # imm = 0xFFFFFFFF jmp 0x952df movq -0x20(%rbp), %rax movl 0x4(%rax), %eax movl %eax, %edi movq -0x28(%rbp), %rax movl 0x4(%rax), %eax subq %rax, %rdi callq 0x95dc0 movl %eax, -0x4(%rbp) jmp 0x952df cmpl $0x0, -0x30(%rbp) jne 0x951ef movq -0x28(%rbp), %rax cmpb $0x0, 0x12(%rax) jne 0x951ef movl $0x1, -0x4(%rbp) jmp 0x952df movl -0x2c(%rbp), %eax cmpl -0x30(%rbp), %eax jne 0x95217 movq -0x20(%rbp), %rax movl 0x4(%rax), %eax movl %eax, %edi movq -0x28(%rbp), %rax movl 0x4(%rax), %eax subq %rax, %rdi callq 0x95dc0 movl %eax, -0x4(%rbp) jmp 0x952df cmpl $0x0, -0x2c(%rbp) jne 0x95229 movl $0xffffffff, -0x4(%rbp) # imm = 0xFFFFFFFF jmp 0x952df cmpl $0x0, -0x30(%rbp) jne 0x9523b movl $0x1, -0x4(%rbp) jmp 0x952df cmpl $0x3, -0x2c(%rbp) jne 0x9524d movl $0xffffffff, -0x4(%rbp) # imm = 0xFFFFFFFF jmp 0x952df cmpl $0x3, -0x30(%rbp) jne 0x9525f movl $0x1, -0x4(%rbp) jmp 0x952df movq -0x20(%rbp), %rax cmpl $0x4, (%rax) je 0x952a6 movq -0x28(%rbp), %rax cmpl $0x4, (%rax) je 0x952a6 movq -0x20(%rbp), %rax movzwl 0x8(%rax), %eax movq -0x28(%rbp), %rcx movzwl 0x8(%rcx), %ecx cmpl %ecx, %eax je 0x952a4 movq -0x20(%rbp), %rax movzwl 0x8(%rax), %eax movl %eax, %edi movq -0x28(%rbp), %rax movzwl 0x8(%rax), %eax subq %rax, %rdi callq 0x95dc0 movl %eax, -0x4(%rbp) jmp 0x952df jmp 0x952a6 cmpl $0x4, -0x2c(%rbp) jne 0x952b5 movl $0x1, -0x4(%rbp) jmp 0x952df cmpl $0x4, -0x30(%rbp) jne 0x952c4 movl $0xffffffff, -0x4(%rbp) # imm = 0xFFFFFFFF jmp 0x952df movq -0x20(%rbp), %rax movl 0x4(%rax), %eax movl %eax, %edi movq -0x28(%rbp), %rax movl 0x4(%rax), %eax subq %rax, %rdi callq 0x95dc0 movl %eax, -0x4(%rbp) movl -0x4(%rbp), %eax addq $0x40, %rsp popq %rbp retq nopl (%rax,%rax)
compare_columns: push rbp mov rbp, rsp sub rsp, 40h mov [rbp+var_10], rdi mov [rbp+var_18], rsi mov rax, [rbp+var_10] mov rax, [rax] mov [rbp+var_20], rax mov rax, [rbp+var_18] mov rax, [rax] mov [rbp+var_28], rax mov rax, [rbp+var_20] cmp dword ptr [rax], 9 jnz short loc_95156 xor eax, eax mov [rbp+var_34], eax jmp short loc_9515F loc_95156: mov rax, [rbp+var_20] mov eax, [rax] mov [rbp+var_34], eax loc_9515F: mov eax, [rbp+var_34] mov [rbp+var_2C], eax mov rax, [rbp+var_28] cmp dword ptr [rax], 9 jnz short loc_95175 xor eax, eax mov [rbp+var_38], eax jmp short loc_9517E loc_95175: mov rax, [rbp+var_28] mov eax, [rax] mov [rbp+var_38], eax loc_9517E: mov eax, [rbp+var_38] mov [rbp+var_30], eax cmp [rbp+var_2C], 0 jnz short loc_951D3 mov rax, [rbp+var_20] cmp byte ptr [rax+12h], 0 jnz short loc_951D3 cmp [rbp+var_30], 0 jnz short loc_951A7 mov rax, [rbp+var_28] movzx eax, byte ptr [rax+12h] cmp eax, 0 jz short loc_951B3 loc_951A7: mov [rbp+var_4], 0FFFFFFFFh jmp loc_952DF loc_951B3: mov rax, [rbp+var_20] mov eax, [rax+4] mov edi, eax mov rax, [rbp+var_28] mov eax, [rax+4] sub rdi, rax call sign mov [rbp+var_4], eax jmp loc_952DF loc_951D3: cmp [rbp+var_30], 0 jnz short loc_951EF mov rax, [rbp+var_28] cmp byte ptr [rax+12h], 0 jnz short loc_951EF mov [rbp+var_4], 1 jmp loc_952DF loc_951EF: mov eax, [rbp+var_2C] cmp eax, [rbp+var_30] jnz short loc_95217 mov rax, [rbp+var_20] mov eax, [rax+4] mov edi, eax mov rax, [rbp+var_28] mov eax, [rax+4] sub rdi, rax call sign mov [rbp+var_4], eax jmp loc_952DF loc_95217: cmp [rbp+var_2C], 0 jnz short loc_95229 mov [rbp+var_4], 0FFFFFFFFh jmp loc_952DF loc_95229: cmp [rbp+var_30], 0 jnz short loc_9523B mov [rbp+var_4], 1 jmp loc_952DF loc_9523B: cmp [rbp+var_2C], 3 jnz short loc_9524D mov [rbp+var_4], 0FFFFFFFFh jmp loc_952DF loc_9524D: cmp [rbp+var_30], 3 jnz short loc_9525F mov [rbp+var_4], 1 jmp loc_952DF loc_9525F: mov rax, [rbp+var_20] cmp dword ptr [rax], 4 jz short loc_952A6 mov rax, [rbp+var_28] cmp dword ptr [rax], 4 jz short loc_952A6 mov rax, [rbp+var_20] movzx eax, word ptr [rax+8] mov rcx, [rbp+var_28] movzx ecx, word ptr [rcx+8] cmp eax, ecx jz short loc_952A4 mov rax, [rbp+var_20] movzx eax, word ptr [rax+8] mov edi, eax mov rax, [rbp+var_28] movzx eax, word ptr [rax+8] sub rdi, rax call sign mov [rbp+var_4], eax jmp short loc_952DF loc_952A4: jmp short $+2 loc_952A6: cmp [rbp+var_2C], 4 jnz short loc_952B5 mov [rbp+var_4], 1 jmp short loc_952DF loc_952B5: cmp [rbp+var_30], 4 jnz short loc_952C4 mov [rbp+var_4], 0FFFFFFFFh jmp short loc_952DF loc_952C4: mov rax, [rbp+var_20] mov eax, [rax+4] mov edi, eax mov rax, [rbp+var_28] mov eax, [rax+4] sub rdi, rax call sign mov [rbp+var_4], eax loc_952DF: mov eax, [rbp+var_4] add rsp, 40h pop rbp retn
long long compare_columns(_QWORD *a1, int **a2) { int v3; // [rsp+8h] [rbp-38h] int v4; // [rsp+Ch] [rbp-34h] int *v5; // [rsp+18h] [rbp-28h] _DWORD *v6; // [rsp+20h] [rbp-20h] v6 = (_DWORD *)*a1; v5 = *a2; if ( *(_DWORD *)*a1 == 9 ) v4 = 0; else v4 = *v6; if ( *v5 == 9 ) v3 = 0; else v3 = *v5; if ( v4 || *((_BYTE *)v6 + 18) ) { if ( !v3 && !*((_BYTE *)v5 + 18) ) return 1; if ( v4 != v3 ) { if ( !v4 ) return (unsigned int)-1; if ( !v3 ) return 1; if ( v4 == 3 ) return (unsigned int)-1; if ( v3 == 3 ) return 1; if ( *v6 != 4 && *v5 != 4 && *((unsigned __int16 *)v6 + 4) != *((unsigned __int16 *)v5 + 4) ) return (unsigned int)sign(*((unsigned __int16 *)v6 + 4) - (unsigned long long)*((unsigned __int16 *)v5 + 4)); if ( v4 == 4 ) return 1; if ( v3 == 4 ) return (unsigned int)-1; } return (unsigned int)sign((unsigned int)v6[1] - (unsigned long long)(unsigned int)v5[1]); } if ( !v3 && !*((_BYTE *)v5 + 18) ) return (unsigned int)sign((unsigned int)v6[1] - (unsigned long long)(unsigned int)v5[1]); return (unsigned int)-1; }
compare_columns: PUSH RBP MOV RBP,RSP SUB RSP,0x40 MOV qword ptr [RBP + -0x10],RDI MOV qword ptr [RBP + -0x18],RSI MOV RAX,qword ptr [RBP + -0x10] MOV RAX,qword ptr [RAX] MOV qword ptr [RBP + -0x20],RAX MOV RAX,qword ptr [RBP + -0x18] MOV RAX,qword ptr [RAX] MOV qword ptr [RBP + -0x28],RAX MOV RAX,qword ptr [RBP + -0x20] CMP dword ptr [RAX],0x9 JNZ 0x00195156 XOR EAX,EAX MOV dword ptr [RBP + -0x34],EAX JMP 0x0019515f LAB_00195156: MOV RAX,qword ptr [RBP + -0x20] MOV EAX,dword ptr [RAX] MOV dword ptr [RBP + -0x34],EAX LAB_0019515f: MOV EAX,dword ptr [RBP + -0x34] MOV dword ptr [RBP + -0x2c],EAX MOV RAX,qword ptr [RBP + -0x28] CMP dword ptr [RAX],0x9 JNZ 0x00195175 XOR EAX,EAX MOV dword ptr [RBP + -0x38],EAX JMP 0x0019517e LAB_00195175: MOV RAX,qword ptr [RBP + -0x28] MOV EAX,dword ptr [RAX] MOV dword ptr [RBP + -0x38],EAX LAB_0019517e: MOV EAX,dword ptr [RBP + -0x38] MOV dword ptr [RBP + -0x30],EAX CMP dword ptr [RBP + -0x2c],0x0 JNZ 0x001951d3 MOV RAX,qword ptr [RBP + -0x20] CMP byte ptr [RAX + 0x12],0x0 JNZ 0x001951d3 CMP dword ptr [RBP + -0x30],0x0 JNZ 0x001951a7 MOV RAX,qword ptr [RBP + -0x28] MOVZX EAX,byte ptr [RAX + 0x12] CMP EAX,0x0 JZ 0x001951b3 LAB_001951a7: MOV dword ptr [RBP + -0x4],0xffffffff JMP 0x001952df LAB_001951b3: MOV RAX,qword ptr [RBP + -0x20] MOV EAX,dword ptr [RAX + 0x4] MOV EDI,EAX MOV RAX,qword ptr [RBP + -0x28] MOV EAX,dword ptr [RAX + 0x4] SUB RDI,RAX CALL 0x00195dc0 MOV dword ptr [RBP + -0x4],EAX JMP 0x001952df LAB_001951d3: CMP dword ptr [RBP + -0x30],0x0 JNZ 0x001951ef MOV RAX,qword ptr [RBP + -0x28] CMP byte ptr [RAX + 0x12],0x0 JNZ 0x001951ef MOV dword ptr [RBP + -0x4],0x1 JMP 0x001952df LAB_001951ef: MOV EAX,dword ptr [RBP + -0x2c] CMP EAX,dword ptr [RBP + -0x30] JNZ 0x00195217 MOV RAX,qword ptr [RBP + -0x20] MOV EAX,dword ptr [RAX + 0x4] MOV EDI,EAX MOV RAX,qword ptr [RBP + -0x28] MOV EAX,dword ptr [RAX + 0x4] SUB RDI,RAX CALL 0x00195dc0 MOV dword ptr [RBP + -0x4],EAX JMP 0x001952df LAB_00195217: CMP dword ptr [RBP + -0x2c],0x0 JNZ 0x00195229 MOV dword ptr [RBP + -0x4],0xffffffff JMP 0x001952df LAB_00195229: CMP dword ptr [RBP + -0x30],0x0 JNZ 0x0019523b MOV dword ptr [RBP + -0x4],0x1 JMP 0x001952df LAB_0019523b: CMP dword ptr [RBP + -0x2c],0x3 JNZ 0x0019524d MOV dword ptr [RBP + -0x4],0xffffffff JMP 0x001952df LAB_0019524d: CMP dword ptr [RBP + -0x30],0x3 JNZ 0x0019525f MOV dword ptr [RBP + -0x4],0x1 JMP 0x001952df LAB_0019525f: MOV RAX,qword ptr [RBP + -0x20] CMP dword ptr [RAX],0x4 JZ 0x001952a6 MOV RAX,qword ptr [RBP + -0x28] CMP dword ptr [RAX],0x4 JZ 0x001952a6 MOV RAX,qword ptr [RBP + -0x20] MOVZX EAX,word ptr [RAX + 0x8] MOV RCX,qword ptr [RBP + -0x28] MOVZX ECX,word ptr [RCX + 0x8] CMP EAX,ECX JZ 0x001952a4 MOV RAX,qword ptr [RBP + -0x20] MOVZX EAX,word ptr [RAX + 0x8] MOV EDI,EAX MOV RAX,qword ptr [RBP + -0x28] MOVZX EAX,word ptr [RAX + 0x8] SUB RDI,RAX CALL 0x00195dc0 MOV dword ptr [RBP + -0x4],EAX JMP 0x001952df LAB_001952a4: JMP 0x001952a6 LAB_001952a6: CMP dword ptr [RBP + -0x2c],0x4 JNZ 0x001952b5 MOV dword ptr [RBP + -0x4],0x1 JMP 0x001952df LAB_001952b5: CMP dword ptr [RBP + -0x30],0x4 JNZ 0x001952c4 MOV dword ptr [RBP + -0x4],0xffffffff JMP 0x001952df LAB_001952c4: MOV RAX,qword ptr [RBP + -0x20] MOV EAX,dword ptr [RAX + 0x4] MOV EDI,EAX MOV RAX,qword ptr [RBP + -0x28] MOV EAX,dword ptr [RAX + 0x4] SUB RDI,RAX CALL 0x00195dc0 MOV dword ptr [RBP + -0x4],EAX LAB_001952df: MOV EAX,dword ptr [RBP + -0x4] ADD RSP,0x40 POP RBP RET
int compare_columns(int8 *param_1,uchar *param_2,size_t *param_3,uchar *param_4,size_t param_5 ) { int *piVar1; int *piVar2; int local_40; int local_3c; int local_c; piVar1 = (int *)*param_1; piVar2 = *(int **)param_2; if (*piVar1 == 9) { local_3c = 0; } else { local_3c = *piVar1; } if (*piVar2 == 9) { local_40 = 0; } else { local_40 = *piVar2; } if ((local_3c == 0) && (*(char *)((long)piVar1 + 0x12) == '\0')) { if ((local_40 == 0) && (*(char *)((long)piVar2 + 0x12) == '\0')) { local_c = sign((EVP_PKEY_CTX *)((ulong)(uint)piVar1[1] - (ulong)(uint)piVar2[1]),param_2, param_3,param_4,param_5); } else { local_c = -1; } } else if ((local_40 == 0) && (*(char *)((long)piVar2 + 0x12) == '\0')) { local_c = 1; } else if (local_3c == local_40) { local_c = sign((EVP_PKEY_CTX *)((ulong)(uint)piVar1[1] - (ulong)(uint)piVar2[1]),param_2,param_3 ,param_4,param_5); } else if (local_3c == 0) { local_c = -1; } else if (local_40 == 0) { local_c = 1; } else if (local_3c == 3) { local_c = -1; } else if (local_40 == 3) { local_c = 1; } else if (((*piVar1 == 4) || (*piVar2 == 4)) || (param_4 = (uchar *)(ulong)*(ushort *)(piVar2 + 2), *(ushort *)(piVar1 + 2) == *(ushort *)(piVar2 + 2))) { if (local_3c == 4) { local_c = 1; } else if (local_40 == 4) { local_c = -1; } else { local_c = sign((EVP_PKEY_CTX *)((ulong)(uint)piVar1[1] - (ulong)(uint)piVar2[1]),param_2, param_3,param_4,param_5); } } else { local_c = sign((EVP_PKEY_CTX *)((ulong)*(ushort *)(piVar1 + 2) - (ulong)*(ushort *)(piVar2 + 2)) ,param_2,param_3,param_4,param_5); } return local_c; }
34,747
psi_cond_timedwait
eloqsql/mysys/my_thr_init.c
ATTRIBUTE_COLD int psi_cond_timedwait(mysql_cond_t *that, mysql_mutex_t *mutex, const struct timespec *abstime, const char *file, uint line) { PSI_cond_locker_state state; PSI_cond_locker *locker= PSI_COND_CALL(start_cond_wait) (&state, that->m_psi, mutex->m_psi, PSI_COND_TIMEDWAIT, file, line); int result= my_cond_timedwait(&that->m_cond, &mutex->m_mutex, abstime); if (psi_likely(locker)) PSI_COND_CALL(end_cond_wait)(locker, result); return result; }
O0
c
psi_cond_timedwait: pushq %rbp movq %rsp, %rbp subq $0x70, %rsp movq %rdi, -0x8(%rbp) movq %rsi, -0x10(%rbp) movq %rdx, -0x18(%rbp) movq %rcx, -0x20(%rbp) movl %r8d, -0x24(%rbp) leaq 0x1a55b5(%rip), %rax # 0x1d5dc8 movq (%rax), %rax movq 0x1c0(%rax), %rax movq -0x8(%rbp), %rcx movq 0x30(%rcx), %rsi movq -0x10(%rbp), %rcx movq 0x40(%rcx), %rdx movq -0x20(%rbp), %r8 movl -0x24(%rbp), %r9d leaq -0x60(%rbp), %rdi movl $0x1, %ecx callq *%rax movq %rax, -0x68(%rbp) movq -0x8(%rbp), %rdi movq -0x10(%rbp), %rsi movq -0x18(%rbp), %rdx callq 0x244c0 movl %eax, -0x6c(%rbp) cmpq $0x0, -0x68(%rbp) setne %al andb $0x1, %al movzbl %al, %eax cltq cmpq $0x0, %rax je 0x30887 leaq 0x1a5554(%rip), %rax # 0x1d5dc8 movq (%rax), %rax movq 0x1c8(%rax), %rax movq -0x68(%rbp), %rdi movl -0x6c(%rbp), %esi callq *%rax movl -0x6c(%rbp), %eax addq $0x70, %rsp popq %rbp retq
psi_cond_timedwait: push rbp mov rbp, rsp sub rsp, 70h mov [rbp+var_8], rdi mov [rbp+var_10], rsi mov [rbp+var_18], rdx mov [rbp+var_20], rcx mov [rbp+var_24], r8d lea rax, PSI_server mov rax, [rax] mov rax, [rax+1C0h] mov rcx, [rbp+var_8] mov rsi, [rcx+30h] mov rcx, [rbp+var_10] mov rdx, [rcx+40h] mov r8, [rbp+var_20] mov r9d, [rbp+var_24] lea rdi, [rbp+var_60] mov ecx, 1 call rax mov [rbp+var_68], rax mov rdi, [rbp+var_8] mov rsi, [rbp+var_10] mov rdx, [rbp+var_18] call _pthread_cond_timedwait mov [rbp+var_6C], eax cmp [rbp+var_68], 0 setnz al and al, 1 movzx eax, al cdqe cmp rax, 0 jz short loc_30887 lea rax, PSI_server mov rax, [rax] mov rax, [rax+1C8h] mov rdi, [rbp+var_68] mov esi, [rbp+var_6C] call rax loc_30887: mov eax, [rbp+var_6C] add rsp, 70h pop rbp retn
long long psi_cond_timedwait(long long a1, long long a2, long long a3, long long a4, unsigned int a5) { unsigned int v6; // [rsp+4h] [rbp-6Ch] long long v7; // [rsp+8h] [rbp-68h] _BYTE v8[60]; // [rsp+10h] [rbp-60h] BYREF unsigned int v9; // [rsp+4Ch] [rbp-24h] long long v10; // [rsp+50h] [rbp-20h] long long v11; // [rsp+58h] [rbp-18h] long long v12; // [rsp+60h] [rbp-10h] long long v13; // [rsp+68h] [rbp-8h] v13 = a1; v12 = a2; v11 = a3; v10 = a4; v9 = a5; v7 = (*((long long ( **)(_BYTE *, _QWORD, _QWORD, long long, long long, _QWORD))PSI_server[0] + 56))( v8, *(_QWORD *)(a1 + 48), *(_QWORD *)(a2 + 64), 1LL, a4, a5); v6 = pthread_cond_timedwait(v13, v12, v11); if ( v7 ) (*((void ( **)(long long, _QWORD))PSI_server[0] + 57))(v7, v6); return v6; }
psi_cond_timedwait: PUSH RBP MOV RBP,RSP SUB RSP,0x70 MOV qword ptr [RBP + -0x8],RDI MOV qword ptr [RBP + -0x10],RSI MOV qword ptr [RBP + -0x18],RDX MOV qword ptr [RBP + -0x20],RCX MOV dword ptr [RBP + -0x24],R8D LEA RAX,[0x2d5dc8] MOV RAX,qword ptr [RAX] MOV RAX,qword ptr [RAX + 0x1c0] MOV RCX,qword ptr [RBP + -0x8] MOV RSI,qword ptr [RCX + 0x30] MOV RCX,qword ptr [RBP + -0x10] MOV RDX,qword ptr [RCX + 0x40] MOV R8,qword ptr [RBP + -0x20] MOV R9D,dword ptr [RBP + -0x24] LEA RDI,[RBP + -0x60] MOV ECX,0x1 CALL RAX MOV qword ptr [RBP + -0x68],RAX MOV RDI,qword ptr [RBP + -0x8] MOV RSI,qword ptr [RBP + -0x10] MOV RDX,qword ptr [RBP + -0x18] CALL 0x001244c0 MOV dword ptr [RBP + -0x6c],EAX CMP qword ptr [RBP + -0x68],0x0 SETNZ AL AND AL,0x1 MOVZX EAX,AL CDQE CMP RAX,0x0 JZ 0x00130887 LEA RAX,[0x2d5dc8] MOV RAX,qword ptr [RAX] MOV RAX,qword ptr [RAX + 0x1c8] MOV RDI,qword ptr [RBP + -0x68] MOV ESI,dword ptr [RBP + -0x6c] CALL RAX LAB_00130887: MOV EAX,dword ptr [RBP + -0x6c] ADD RSP,0x70 POP RBP RET
int psi_cond_timedwait(pthread_cond_t *param_1,pthread_mutex_t *param_2,timespec *param_3, int8 param_4,int4 param_5) { int iVar1; long lVar2; int1 local_68 [60]; int4 local_2c; int8 local_28; timespec *local_20; pthread_mutex_t *local_18; pthread_cond_t *local_10; local_2c = param_5; local_28 = param_4; local_20 = param_3; local_18 = param_2; local_10 = param_1; lVar2 = (**(code **)(PSI_server + 0x1c0)) (local_68,param_1[1].__align,*(int8 *)((long)param_2 + 0x40),1,param_4, param_5); iVar1 = pthread_cond_timedwait(local_10,local_18,local_20); if (lVar2 != 0) { (**(code **)(PSI_server + 0x1c8))(lVar2,iVar1); } return iVar1; }
34,748
maria_indexes_are_disabled
eloqsql/storage/maria/ma_open.c
int maria_indexes_are_disabled(MARIA_HA *info) { MARIA_SHARE *share= info->s; /* No keys or all are enabled. keys is the number of keys. Left shifted gives us only one bit set. When decreased by one, gives us all all bits up to this one set and it gets unset. */ if (!share->base.keys || (maria_is_all_keys_active(share->state.key_map, share->base.keys))) return 0; /* All are disabled */ if (maria_is_any_key_active(share->state.key_map)) return 1; /* We have keys. Some enabled, some disabled. Don't check for any non-unique disabled but return directly 2 */ return 2; }
O0
c
maria_indexes_are_disabled: pushq %rbp movq %rsp, %rbp movq %rdi, -0x10(%rbp) movq -0x10(%rbp), %rax movq (%rax), %rax movq %rax, -0x18(%rbp) movq -0x18(%rbp), %rax cmpl $0x0, 0x3e8(%rax) je 0x68fb4 movq -0x18(%rbp), %rax movq 0x140(%rax), %rax movq %rax, -0x20(%rbp) movq -0x18(%rbp), %rax cmpl $0x40, 0x3e8(%rax) jae 0x68f9a movq -0x18(%rbp), %rax movl 0x3e8(%rax), %eax movl %eax, %ecx movl $0x1, %eax shlq %cl, %rax subq $0x1, %rax movq %rax, -0x28(%rbp) jmp 0x68fa7 movq $-0x1, %rax movq %rax, -0x28(%rbp) jmp 0x68fa7 movq -0x20(%rbp), %rax movq -0x28(%rbp), %rcx cmpq %rcx, %rax jne 0x68fbd movl $0x0, -0x4(%rbp) jmp 0x68feb movq -0x18(%rbp), %rax cmpq $0x0, 0x140(%rax) je 0x68fd3 movb $0x1, %al testb $0x1, %al jne 0x68fdb jmp 0x68fe4 xorl %eax, %eax testb $0x1, %al jne 0x68fdb jmp 0x68fe4 movl $0x1, -0x4(%rbp) jmp 0x68feb movl $0x2, -0x4(%rbp) movl -0x4(%rbp), %eax popq %rbp retq
maria_indexes_are_disabled: push rbp mov rbp, rsp mov [rbp+var_10], rdi mov rax, [rbp+var_10] mov rax, [rax] mov [rbp+var_18], rax mov rax, [rbp+var_18] cmp dword ptr [rax+3E8h], 0 jz short loc_68FB4 mov rax, [rbp+var_18] mov rax, [rax+140h] mov [rbp+var_20], rax mov rax, [rbp+var_18] cmp dword ptr [rax+3E8h], 40h ; '@' jnb short loc_68F9A mov rax, [rbp+var_18] mov eax, [rax+3E8h] mov ecx, eax mov eax, 1 shl rax, cl sub rax, 1 mov [rbp+var_28], rax jmp short loc_68FA7 loc_68F9A: mov rax, 0FFFFFFFFFFFFFFFFh mov [rbp+var_28], rax jmp short $+2 loc_68FA7: mov rax, [rbp+var_20] mov rcx, [rbp+var_28] cmp rax, rcx jnz short loc_68FBD loc_68FB4: mov [rbp+var_4], 0 jmp short loc_68FEB loc_68FBD: mov rax, [rbp+var_18] cmp qword ptr [rax+140h], 0 jz short loc_68FD3 mov al, 1 test al, 1 jnz short loc_68FDB jmp short loc_68FE4 loc_68FD3: xor eax, eax test al, 1 jnz short loc_68FDB jmp short loc_68FE4 loc_68FDB: mov [rbp+var_4], 1 jmp short loc_68FEB loc_68FE4: mov [rbp+var_4], 2 loc_68FEB: mov eax, [rbp+var_4] pop rbp retn
long long maria_indexes_are_disabled(long long *a1) { long long v2; // [rsp+0h] [rbp-28h] long long v3; // [rsp+10h] [rbp-18h] v3 = *a1; if ( *(_DWORD *)(*a1 + 1000) && (*(_DWORD *)(v3 + 1000) >= 0x40u ? (v2 = -1LL) : (v2 = (1LL << *(_DWORD *)(v3 + 1000)) - 1), *(_QWORD *)(v3 + 320) != v2) ) { if ( *(_QWORD *)(v3 + 320) ) return 1; else return 2; } else { return 0; } }
maria_indexes_are_disabled: PUSH RBP MOV RBP,RSP MOV qword ptr [RBP + -0x10],RDI MOV RAX,qword ptr [RBP + -0x10] MOV RAX,qword ptr [RAX] MOV qword ptr [RBP + -0x18],RAX MOV RAX,qword ptr [RBP + -0x18] CMP dword ptr [RAX + 0x3e8],0x0 JZ 0x00168fb4 MOV RAX,qword ptr [RBP + -0x18] MOV RAX,qword ptr [RAX + 0x140] MOV qword ptr [RBP + -0x20],RAX MOV RAX,qword ptr [RBP + -0x18] CMP dword ptr [RAX + 0x3e8],0x40 JNC 0x00168f9a MOV RAX,qword ptr [RBP + -0x18] MOV EAX,dword ptr [RAX + 0x3e8] MOV ECX,EAX MOV EAX,0x1 SHL RAX,CL SUB RAX,0x1 MOV qword ptr [RBP + -0x28],RAX JMP 0x00168fa7 LAB_00168f9a: MOV RAX,-0x1 MOV qword ptr [RBP + -0x28],RAX JMP 0x00168fa7 LAB_00168fa7: MOV RAX,qword ptr [RBP + -0x20] MOV RCX,qword ptr [RBP + -0x28] CMP RAX,RCX JNZ 0x00168fbd LAB_00168fb4: MOV dword ptr [RBP + -0x4],0x0 JMP 0x00168feb LAB_00168fbd: MOV RAX,qword ptr [RBP + -0x18] CMP qword ptr [RAX + 0x140],0x0 JZ 0x00168fd3 MOV AL,0x1 TEST AL,0x1 JNZ 0x00168fdb JMP 0x00168fe4 LAB_00168fd3: XOR EAX,EAX TEST AL,0x1 JNZ 0x00168fdb JMP 0x00168fe4 LAB_00168fdb: MOV dword ptr [RBP + -0x4],0x1 JMP 0x00168feb LAB_00168fe4: MOV dword ptr [RBP + -0x4],0x2 LAB_00168feb: MOV EAX,dword ptr [RBP + -0x4] POP RBP RET
/* WARNING: Removing unreachable block (ram,0x00168fd1) */ int4 maria_indexes_are_disabled(long *param_1) { long lVar1; long local_30; lVar1 = *param_1; if (*(int *)(lVar1 + 1000) != 0) { if (*(uint *)(lVar1 + 1000) < 0x40) { local_30 = (1L << ((byte)*(int4 *)(lVar1 + 1000) & 0x3f)) + -1; } else { local_30 = -1; } if (*(long *)(lVar1 + 0x140) != local_30) { if (*(long *)(lVar1 + 0x140) != 0) { return 1; } return 2; } } return 0; }
34,749
LefDefParser::defiSubnet::Init()
Efficient-TDP/thirdparty/Limbo/limbo/thirdparty/lefdef/5.8/def/def/defiNet.cpp
void defiSubnet::Init() { name_ = 0; bumpName(16); instances_ = 0; pins_ = 0; musts_ = 0; synthesized_ = 0; numPins_ = 0; bumpPins(16); // WMD -- this will be removed by the next release paths_ = 0; numPaths_ = 0; pathsAllocated_ = 0; numWires_ = 0; wiresAllocated_ = 0; wires_ = 0; nonDefaultRule_ = 0; clear(); }
O3
cpp
LefDefParser::defiSubnet::Init(): pushq %r14 pushq %rbx pushq %rax movq %rdi, %rbx xorl %r14d, %r14d movq %r14, (%rdi) movl $0x10, %esi callq 0x2293e movl $0x0, 0xc(%rbx) xorps %xmm0, %xmm0 movups %xmm0, 0x18(%rbx) movups %xmm0, 0x28(%rbx) movq %rbx, %rdi movl $0x10, %esi callq 0x2296e movq %r14, 0x60(%rbx) xorps %xmm0, %xmm0 movups %xmm0, 0x50(%rbx) movups %xmm0, 0x40(%rbx) movq %rbx, %rdi addq $0x8, %rsp popq %rbx popq %r14 jmp 0x22a44
_ZN12LefDefParser10defiSubnet4InitEv: push r14 push rbx push rax mov rbx, rdi xor r14d, r14d mov [rdi], r14 mov esi, 10h; int call _ZN12LefDefParser10defiSubnet8bumpNameEi; LefDefParser::defiSubnet::bumpName(int) mov dword ptr [rbx+0Ch], 0 xorps xmm0, xmm0 movups xmmword ptr [rbx+18h], xmm0 movups xmmword ptr [rbx+28h], xmm0 mov rdi, rbx; this mov esi, 10h; int call _ZN12LefDefParser10defiSubnet8bumpPinsEi; LefDefParser::defiSubnet::bumpPins(int) mov [rbx+60h], r14 xorps xmm0, xmm0 movups xmmword ptr [rbx+50h], xmm0 movups xmmword ptr [rbx+40h], xmm0 mov rdi, rbx; this add rsp, 8 pop rbx pop r14 jmp _ZN12LefDefParser10defiSubnet5clearEv; LefDefParser::defiSubnet::clear(void)
long long LefDefParser::defiSubnet::Init(LefDefParser::defiSubnet *this) { *(_QWORD *)this = 0LL; LefDefParser::defiSubnet::bumpName(this, 16); *((_DWORD *)this + 3) = 0; *(_OWORD *)((char *)this + 24) = 0LL; *(_OWORD *)((char *)this + 40) = 0LL; LefDefParser::defiSubnet::bumpPins(this, 16); *((_QWORD *)this + 12) = 0LL; *((_OWORD *)this + 5) = 0LL; *((_OWORD *)this + 4) = 0LL; return LefDefParser::defiSubnet::clear(this); }
Init: PUSH R14 PUSH RBX PUSH RAX MOV RBX,RDI XOR R14D,R14D MOV qword ptr [RDI],R14 MOV ESI,0x10 CALL 0x0012293e MOV dword ptr [RBX + 0xc],0x0 XORPS XMM0,XMM0 MOVUPS xmmword ptr [RBX + 0x18],XMM0 MOVUPS xmmword ptr [RBX + 0x28],XMM0 MOV RDI,RBX MOV ESI,0x10 CALL 0x0012296e MOV qword ptr [RBX + 0x60],R14 XORPS XMM0,XMM0 MOVUPS xmmword ptr [RBX + 0x50],XMM0 MOVUPS xmmword ptr [RBX + 0x40],XMM0 MOV RDI,RBX ADD RSP,0x8 POP RBX POP R14 JMP 0x00122a44
/* LefDefParser::defiSubnet::Init() */ void __thiscall LefDefParser::defiSubnet::Init(defiSubnet *this) { *(int8 *)this = 0; bumpName(this,0x10); *(int4 *)(this + 0xc) = 0; *(int8 *)(this + 0x18) = 0; *(int8 *)(this + 0x20) = 0; *(int8 *)(this + 0x28) = 0; *(int8 *)(this + 0x30) = 0; bumpPins(this,0x10); *(int8 *)(this + 0x60) = 0; *(int8 *)(this + 0x50) = 0; *(int8 *)(this + 0x58) = 0; *(int8 *)(this + 0x40) = 0; *(int8 *)(this + 0x48) = 0; clear(this); return; }
34,750
ParamenterIndexAssertFail(unsigned int, unsigned char, unsigned int)
SylCore-WoTLK/src/server/database/Database/MySQLPreparedStatement.cpp
static bool ParamenterIndexAssertFail(uint32 stmtIndex, uint8 index, uint32 paramCount) { LOG_ERROR("sql.driver", "Attempted to bind parameter {}{} on a PreparedStatement {} (statement has only {} parameters)", uint32(index) + 1, (index == 1 ? "st" : (index == 2 ? "nd" : (index == 3 ? "rd" : "nd"))), stmtIndex, paramCount); return false; }
O3
cpp
ParamenterIndexAssertFail(unsigned int, unsigned char, unsigned int): pushq %rbp pushq %r15 pushq %r14 pushq %r12 pushq %rbx subq $0x90, %rsp movl %edx, %ebx movl %esi, %r14d movl %edi, %ebp callq 0xb4614 movq %rax, %r15 leaq 0x60(%rsp), %r12 movq %r12, -0x10(%r12) leaq 0x88738(%rip), %rsi # 0xfc8e6 leaq 0x8873b(%rip), %rdx # 0xfc8f0 leaq 0x50(%rsp), %rdi callq 0x29098 leaq 0x50(%rsp), %rsi movq %r15, %rdi movl $0x2, %edx callq 0xb45e4 movl %eax, %r15d movq 0x50(%rsp), %rdi cmpq %r12, %rdi je 0x741eb movq 0x60(%rsp), %rsi incq %rsi callq 0xd32e8 testb %r15b, %r15b je 0x742c7 callq 0xb4614 movq %rax, %r15 leaq 0x18(%rsp), %r12 movq %r12, -0x10(%r12) leaq 0x886d9(%rip), %rsi # 0xfc8e6 leaq 0x886dc(%rip), %rdx # 0xfc8f0 leaq 0x8(%rsp), %rdi callq 0x29098 movzbl %r14b, %eax cmpb $0x3, %al leaq 0x87121(%rip), %rcx # 0xfb34c leaq 0x99f31(%rip), %rdx # 0x10e163 cmoveq %rcx, %rdx cmpb $0x1, %al leaq 0x85a07(%rip), %rcx # 0xf9c46 cmovneq %rdx, %rcx incq %rax movl %ebp, %edx movl %ebx, %esi leaq 0x50(%rsp), %r8 movq %rax, (%r8) movq %rcx, 0x10(%r8) movq %rdx, 0x20(%r8) movq %rsi, 0x30(%r8) leaq 0x8927f(%rip), %rsi # 0xfd4e4 leaq 0x28(%rsp), %rdi movl $0x5d, %edx movl $0x22c2, %ecx # imm = 0x22C2 callq 0xea7c3 movq 0x28(%rsp), %rcx movq 0x30(%rsp), %r8 leaq 0x8(%rsp), %rsi movq %r15, %rdi movl $0x2, %edx callq 0x285d8 leaq 0x38(%rsp), %rax movq -0x10(%rax), %rdi cmpq %rax, %rdi je 0x742b0 movq 0x38(%rsp), %rsi incq %rsi callq 0xd32e8 movq 0x8(%rsp), %rdi cmpq %r12, %rdi je 0x742c7 movq 0x18(%rsp), %rsi incq %rsi callq 0xd32e8 addq $0x90, %rsp popq %rbx popq %r12 popq %r14 popq %r15 popq %rbp retq movq %rdx, %r14 movq %rax, %rbx leaq 0x38(%rsp), %rax movq -0x10(%rax), %rdi cmpq %rax, %rdi je 0x74300 movq 0x38(%rsp), %rsi incq %rsi callq 0xd32e8 jmp 0x74300 movq %rdx, %r14 movq %rax, %rbx movq 0x8(%rsp), %rdi cmpq %r12, %rdi je 0x74321 movq 0x18(%rsp), %rsi incq %rsi callq 0xd32e8 jmp 0x74321 jmp 0x7431b movq %rdx, %r14 movq %rax, %rbx cmpl $0x1, %r14d jne 0x74418 movq %rbx, %rdi callq 0x1b0d0 movq %rax, %r14 callq 0xb4614 movq %rax, %rbx leaq 0x18(%rsp), %r15 movq %r15, -0x10(%r15) leaq 0x84e9a(%rip), %rsi # 0xf91e8 leaq 0x84e99(%rip), %rdx # 0xf91ee leaq 0x8(%rsp), %rdi callq 0x29098 movq (%r14), %rax movq %r14, %rdi callq *0x10(%rax) leaq 0x28(%rsp), %r9 movq %rax, (%r9) leaq 0x4c(%rsp), %rax movl $0x68, (%rax) leaq 0x8901c(%rip), %r10 # 0xfd39e leaq 0x84e76(%rip), %rcx # 0xf91ff leaq 0x8(%rsp), %rsi movl $0x25, %r8d movq %rbx, %rdi movl $0x2, %edx pushq %rax pushq %r10 callq 0x74a06 addq $0x10, %rsp movq 0x8(%rsp), %rdi cmpq %r15, %rdi je 0x743bf movq 0x18(%rsp), %rsi incq %rsi callq 0xd32e8 callq 0x1be70 jmp 0x742c7 movq %rax, %rbx movq 0x8(%rsp), %rdi cmpq %r15, %rdi je 0x743ea movq 0x18(%rsp), %rsi incq %rsi callq 0xd32e8 jmp 0x743ea jmp 0x743e7 movq %rax, %rbx callq 0x1be70 jmp 0x74418 movq %rax, %rdi callq 0x2841d movq %rax, %rbx movq 0x50(%rsp), %rdi cmpq %r12, %rdi je 0x74418 movq 0x60(%rsp), %rsi incq %rsi callq 0xd32e8 jmp 0x74418 movq %rax, %rbx movq %rbx, %rdi callq 0x1bba0
_ZL25ParamenterIndexAssertFailjhj: push rbp push r15 push r14 push r12 push rbx sub rsp, 90h mov ebx, edx mov r14d, esi mov ebp, edi call _ZN3Log8instanceEv; Log::instance(void) mov r15, rax lea r12, [rsp+0B8h+var_58] mov [r12-10h], r12 lea rsi, aSqlDriver; "sql.driver" lea rdx, aSqlDriver+0Ah; "" lea rdi, [rsp+0B8h+var_68] call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPKcEEvT_S8_St20forward_iterator_tag; std::string::_M_construct<char const*>(char const*,char const*,std::forward_iterator_tag) lea rsi, [rsp+0B8h+var_68] mov rdi, r15 mov edx, 2 call _ZNK3Log9ShouldLogERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE8LogLevel; Log::ShouldLog(std::string const&,LogLevel) mov r15d, eax mov rdi, [rsp+0B8h+var_68]; this cmp rdi, r12 jz short loc_741EB mov rsi, [rsp+0B8h+var_58] inc rsi; unsigned __int64 call _ZdlPvm; operator delete(void *,ulong) loc_741EB: test r15b, r15b jz loc_742C7 call _ZN3Log8instanceEv; Log::instance(void) mov r15, rax lea r12, [rsp+0B8h+var_A0] mov [r12-10h], r12 lea rsi, aSqlDriver; "sql.driver" lea rdx, aSqlDriver+0Ah; "" lea rdi, [rsp+0B8h+var_B0] 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) movzx eax, r14b cmp al, 3 lea rcx, aLoginToWowFail+26h; "rd" lea rdx, aCmakecommand+0Ah; "nd" cmovz rdx, rcx cmp al, 1 lea rcx, aBadAddressCast+0Eh; "st" cmovnz rcx, rdx inc rax mov edx, ebp mov esi, ebx lea r8, [rsp+0B8h+var_68]; int mov [r8], rax mov [r8+10h], rcx mov [r8+20h], rdx mov [r8+30h], rsi lea rsi, aAttemptedToBin; "Attempted to bind parameter {}{} on a P"... lea rdi, [rsp+0B8h+var_90]; int mov edx, 5Dh ; ']'; int mov ecx, 22C2h; int call _ZN3fmt3v107vformatB5cxx11ENS0_17basic_string_viewIcEENS0_17basic_format_argsINS0_20basic_format_contextINS0_8appenderEcEEEE; fmt::v10::vformat(fmt::v10::basic_string_view<char>,fmt::v10::basic_format_args<fmt::v10::basic_format_context<fmt::v10::appender,char>>) mov rcx, qword ptr [rsp+0B8h+var_90] mov r8, [rsp+0B8h+var_88] lea rsi, [rsp+0B8h+var_B0] mov rdi, r15 mov edx, 2 call _ZN3Log10outMessageIJEEEvRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE8LogLevelN3fmt3v1019basic_format_stringIcJDpNSB_13type_identityIT_E4typeEEEEDpOSE_ lea rax, [rsp+0B8h+var_80] mov rdi, [rax-10h]; void * cmp rdi, rax jz short loc_742B0 mov rsi, [rsp+0B8h+var_80] inc rsi; unsigned __int64 call _ZdlPvm; operator delete(void *,ulong) loc_742B0: mov rdi, [rsp+0B8h+var_B0]; void * cmp rdi, r12 jz short loc_742C7 mov rsi, [rsp+0B8h+var_A0] inc rsi; unsigned __int64 call _ZdlPvm; operator delete(void *,ulong) loc_742C7: add rsp, 90h pop rbx pop r12 pop r14 pop r15 pop rbp retn mov r14, rdx mov rbx, rax lea rax, [rsp+0B8h+var_80] mov rdi, [rax-10h]; void * cmp rdi, rax jz short loc_74300 mov rsi, [rsp+0B8h+var_80] inc rsi; unsigned __int64 call _ZdlPvm; operator delete(void *,ulong) jmp short loc_74300 mov r14, rdx mov rbx, rax loc_74300: mov rdi, [rsp+0B8h+var_B0]; void * cmp rdi, r12 jz short loc_74321 mov rsi, [rsp+0B8h+var_A0] inc rsi; unsigned __int64 call _ZdlPvm; operator delete(void *,ulong) jmp short loc_74321 jmp short $+2 loc_7431B: mov r14, rdx mov rbx, rax loc_74321: cmp r14d, 1 jnz loc_74418 mov rdi, rbx; this call ___cxa_begin_catch mov r14, rax call _ZN3Log8instanceEv; Log::instance(void) mov rbx, rax lea r15, [rsp+0B8h+var_A0] mov [r15-10h], r15 lea rsi, aServerAuthserv+0Bh; "server" lea rdx, aServerAuthserv+11h; "" lea rdi, [rsp+0B8h+var_B0] call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPKcEEvT_S8_St20forward_iterator_tag; std::string::_M_construct<char const*>(char const*,char const*,std::forward_iterator_tag) mov rax, [r14] mov rdi, r14 call qword ptr [rax+10h] lea r9, [rsp+0B8h+var_90] mov [r9], rax lea rax, [rsp+0B8h+var_6C] mov dword ptr [rax], 68h ; 'h' lea r10, aWorkspaceLlm4b_14; "/workspace/llm4binary/github2025/SylCor"... lea rcx, aWrongFormatOcc; "Wrong format occurred ({}) at '{}:{}'" lea rsi, [rsp+0B8h+var_B0] mov r8d, 25h ; '%' mov rdi, rbx mov edx, 2 push rax push r10 call _ZN3Log10outMessageIJPKcRA103_S1_iEEEvRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE8LogLevelN3fmt3v1019basic_format_stringIcJDpNSF_13type_identityIT_E4typeEEEEDpOSI_; Log::outMessage<char const*,char const(&)[103],int>(std::string const&,LogLevel,fmt::v10::basic_format_string<char,fmt::v10::type_identity<char const*,char const(&)[103],int>::type>,char const*,char const(&)[103],int&&) add rsp, 10h mov rdi, [rsp+0B8h+var_B0]; void * cmp rdi, r15 jz short loc_743BF mov rsi, [rsp+0B8h+var_A0] inc rsi; unsigned __int64 call _ZdlPvm; operator delete(void *,ulong) loc_743BF: call ___cxa_end_catch jmp loc_742C7 mov rbx, rax mov rdi, [rsp+0B8h+var_B0]; void * cmp rdi, r15 jz short loc_743EA mov rsi, [rsp+0B8h+var_A0] inc rsi; unsigned __int64 call _ZdlPvm; operator delete(void *,ulong) jmp short loc_743EA jmp short $+2 loc_743E7: mov rbx, rax loc_743EA: call ___cxa_end_catch jmp short loc_74418 mov rdi, rax call __clang_call_terminate mov rbx, rax mov rdi, [rsp+0B8h+var_68]; void * cmp rdi, r12 jz short loc_74418 mov rsi, [rsp+0B8h+var_58] inc rsi; unsigned __int64 call _ZdlPvm; operator delete(void *,ulong) jmp short loc_74418 mov rbx, rax loc_74418: mov rdi, rbx call __Unwind_Resume
void ParamenterIndexAssertFail(Log *a1, unsigned __int8 a2, unsigned int a3) { unsigned int v4; // ebp long long v5; // r15 char ShouldLog; // r15 Log *v7; // rdi long long v8; // r15 int v9; // r9d char *v10; // rdx char *v11; // rcx int v12; // r9d int v13; // [rsp+0h] [rbp-B8h] void *v14[2]; // [rsp+8h] [rbp-B0h] BYREF _QWORD v15[2]; // [rsp+18h] [rbp-A0h] BYREF int v16[2]; // [rsp+28h] [rbp-90h] BYREF long long v17; // [rsp+30h] [rbp-88h] long long v18; // [rsp+38h] [rbp-80h] BYREF Log *v19[2]; // [rsp+50h] [rbp-68h] BYREF _QWORD v20[11]; // [rsp+60h] [rbp-58h] BYREF v4 = (unsigned int)a1; v5 = Log::instance(a1); v19[0] = (Log *)v20; std::string::_M_construct<char const*>((long long)v19, "sql.driver", (long long)""); ShouldLog = Log::ShouldLog(v5, v19, 2LL); v7 = v19[0]; if ( (_QWORD *)v19[0] != v20 ) operator delete(v19[0], v20[0] + 1LL); if ( ShouldLog ) { v8 = Log::instance(v7); v14[0] = v15; std::string::_M_construct<char const*>((long long)v14, "sql.driver", (long long)""); v10 = "nd"; if ( a2 == 3 ) v10 = "rd"; v11 = "st"; if ( a2 != 1 ) v11 = v10; v19[0] = (Log *)(a2 + 1LL); v20[0] = v11; v20[2] = v4; v20[4] = a3; fmt::v10::vformat[abi:cxx11]( (int)v16, (int)"Attempted to bind parameter {}{} on a PreparedStatement {} (statement has only {} parameters)", 93, 8898, (int)v19, v9, v13, (int)v14[0], v14[1], v15[0], v15[1]); Log::outMessage<>(v8, (long long)v14, 2u, v16[0], v17, v12); if ( *(long long **)v16 != &v18 ) operator delete(*(void **)v16, v18 + 1); if ( v14[0] != v15 ) operator delete(v14[0], v15[0] + 1LL); } }
ParamenterIndexAssertFail: PUSH RBP PUSH R15 PUSH R14 PUSH R12 PUSH RBX SUB RSP,0x90 MOV EBX,EDX MOV R14D,ESI MOV EBP,EDI CALL 0x001b4614 MOV R15,RAX LEA R12,[RSP + 0x60] MOV qword ptr [R12 + -0x10],R12 LAB_001741a7: LEA RSI,[0x1fc8e6] LEA RDX,[0x1fc8f0] LEA RDI,[RSP + 0x50] CALL 0x00129098 LAB_001741bf: LEA RSI,[RSP + 0x50] MOV RDI,R15 MOV EDX,0x2 CALL 0x001b45e4 MOV R15D,EAX MOV RDI,qword ptr [RSP + 0x50] CMP RDI,R12 JZ 0x001741eb MOV RSI,qword ptr [RSP + 0x60] INC RSI CALL 0x001d32e8 LAB_001741eb: TEST R15B,R15B JZ 0x001742c7 LAB_001741f4: CALL 0x001b4614 MOV R15,RAX LEA R12,[RSP + 0x18] MOV qword ptr [R12 + -0x10],R12 LAB_00174206: LEA RSI,[0x1fc8e6] LEA RDX,[0x1fc8f0] LEA RDI,[RSP + 0x8] CALL 0x00129098 MOVZX EAX,R14B CMP AL,0x3 LEA RCX,[0x1fb34c] LEA RDX,[0x20e163] CMOVZ RDX,RCX CMP AL,0x1 LEA RCX,[0x1f9c46] CMOVNZ RCX,RDX INC RAX MOV EDX,EBP MOV ESI,EBX LEA R8,[RSP + 0x50] MOV qword ptr [R8],RAX MOV qword ptr [R8 + 0x10],RCX MOV qword ptr [R8 + 0x20],RDX MOV qword ptr [R8 + 0x30],RSI LAB_0017425e: LEA RSI,[0x1fd4e4] LEA RDI,[RSP + 0x28] MOV EDX,0x5d MOV ECX,0x22c2 CALL 0x001ea7c3 MOV RCX,qword ptr [RSP + 0x28] MOV R8,qword ptr [RSP + 0x30] LAB_00174283: LEA RSI,[RSP + 0x8] MOV RDI,R15 MOV EDX,0x2 CALL 0x001285d8 LAB_00174295: LEA RAX,[RSP + 0x38] MOV RDI,qword ptr [RAX + -0x10] CMP RDI,RAX JZ 0x001742b0 MOV RSI,qword ptr [RSP + 0x38] INC RSI CALL 0x001d32e8 LAB_001742b0: MOV RDI,qword ptr [RSP + 0x8] CMP RDI,R12 JZ 0x001742c7 MOV RSI,qword ptr [RSP + 0x18] INC RSI CALL 0x001d32e8 LAB_001742c7: ADD RSP,0x90 POP RBX POP R12 POP R14 POP R15 POP RBP RET
/* ParamenterIndexAssertFail(unsigned int, unsigned char, unsigned int) */ void ParamenterIndexAssertFail(uint param_1,uchar param_2,uint param_3) { char cVar1; Log *pLVar2; int8 uVar3; char *pcVar4; long *local_b0 [2]; long local_a0 [2]; long *local_90; int8 local_88; long local_80 [3]; char **local_68 [2]; char *local_58 [2]; ulong local_48; ulong local_38; pLVar2 = (Log *)Log::instance(); /* try { // try from 001741a7 to 001741be has its CatchHandler @ 00174415 */ local_68[0] = local_58; std::__cxx11::string::_M_construct<char_const*>(local_68,"sql.driver",""); /* try { // try from 001741bf to 001741d0 has its CatchHandler @ 001743f9 */ cVar1 = Log::ShouldLog(pLVar2,local_68,2); if (local_68[0] != local_58) { operator_delete(local_68[0],(ulong)(local_58[0] + 1)); } if (cVar1 != '\0') { /* try { // try from 001741f4 to 001741f8 has its CatchHandler @ 0017431b */ uVar3 = Log::instance(); /* try { // try from 00174206 to 0017421d has its CatchHandler @ 00174319 */ local_b0[0] = local_a0; std::__cxx11::string::_M_construct<char_const*>(local_b0,"sql.driver",""); pcVar4 = "nd"; if (param_2 == '\x03') { pcVar4 = "rd"; } local_58[0] = "st"; if (param_2 != '\x01') { local_58[0] = pcVar4; } local_68[0] = (char **)((ulong)param_2 + 1); local_38 = (ulong)param_3; /* try { // try from 0017425e to 00174278 has its CatchHandler @ 001742fa */ local_48 = (ulong)param_1; fmt::v10::vformat_abi_cxx11_ (&local_90, "Attempted to bind parameter {}{} on a PreparedStatement {} (statement has only {} parameters)" ,0x5d,0x22c2); /* try { // try from 00174283 to 00174294 has its CatchHandler @ 001742d7 */ Log::outMessage<>(uVar3,local_b0,2,local_90,local_88); if (local_90 != local_80) { operator_delete(local_90,local_80[0] + 1); } if (local_b0[0] != local_a0) { operator_delete(local_b0[0],local_a0[0] + 1); } } return; }
34,751
translog_next_LSN
eloqsql/storage/maria/ma_loghandler.c
LSN translog_next_LSN(TRANSLOG_ADDRESS addr, TRANSLOG_ADDRESS horizon) { TRANSLOG_SCANNER_DATA scanner; LSN result; DBUG_ENTER("translog_next_LSN"); if (horizon == LSN_IMPOSSIBLE) horizon= translog_get_horizon(); if (addr == horizon) DBUG_RETURN(LSN_IMPOSSIBLE); translog_scanner_init(addr, 0, &scanner, 1); /* addr can point not to a chunk beginning but page end so next page beginning. */ if (addr % TRANSLOG_PAGE_SIZE == 0) { /* We are emulating the page end which cased such horizon value to trigger translog_scanner_eop(). We can't just increase addr on page header overhead because it can be file end so we allow translog_get_next_chunk() to skip to the next page in correct way */ scanner.page_addr-= TRANSLOG_PAGE_SIZE; scanner.page_offset= TRANSLOG_PAGE_SIZE; #ifndef DBUG_OFF scanner.page= NULL; /* prevent using incorrect page content */ #endif } /* addr can point not to a chunk beginning but to a page end */ if (translog_scanner_eop(&scanner)) { if (translog_get_next_chunk(&scanner)) { result= LSN_ERROR; goto out; } if (scanner.page == END_OF_LOG) { result= LSN_IMPOSSIBLE; goto out; } } while (!translog_is_LSN_chunk(scanner.page[scanner.page_offset]) && scanner.page[scanner.page_offset] != TRANSLOG_FILLER) { if (translog_get_next_chunk(&scanner)) { result= LSN_ERROR; goto out; } if (scanner.page == END_OF_LOG) { result= LSN_IMPOSSIBLE; goto out; } } if (scanner.page[scanner.page_offset] == TRANSLOG_FILLER) result= LSN_IMPOSSIBLE; /* reached page filler */ else result= scanner.page_addr + scanner.page_offset; out: translog_destroy_scanner(&scanner); DBUG_RETURN(result); }
O0
c
translog_next_LSN: pushq %rbp movq %rsp, %rbp subq $0x2070, %rsp # imm = 0x2070 movq %fs:0x28, %rax movq %rax, -0x8(%rbp) movq %rdi, -0x2048(%rbp) movq %rsi, -0x2050(%rbp) cmpq $0x0, -0x2050(%rbp) jne 0x3692c callq 0x34410 movq %rax, -0x2050(%rbp) movq -0x2048(%rbp), %rax cmpq -0x2050(%rbp), %rax jne 0x3694e jmp 0x3693e movq $0x0, -0x2040(%rbp) jmp 0x36aae movq -0x2048(%rbp), %rdi xorl %esi, %esi leaq -0x2038(%rbp), %rdx movl $0x1, %ecx callq 0x32560 movq -0x2048(%rbp), %rax movl $0x2000, %ecx # imm = 0x2000 cqto idivq %rcx cmpq $0x0, %rdx jne 0x36994 movq -0x38(%rbp), %rax subq $0x2000, %rax # imm = 0x2000 movq %rax, -0x38(%rbp) movl $0x2000, -0x10(%rbp) # imm = 0x2000 leaq -0x2038(%rbp), %rdi callq 0x36af0 cmpb $0x0, %al je 0x369e3 leaq -0x2038(%rbp), %rdi callq 0x326b0 cmpb $0x0, %al je 0x369c4 movq $0x1, -0x2058(%rbp) jmp 0x36a94 leaq 0xc451c5(%rip), %rax # 0xc7bb90 cmpq %rax, -0x20(%rbp) jne 0x369e1 movq $0x0, -0x2058(%rbp) jmp 0x36a94 jmp 0x369e3 jmp 0x369e5 movq -0x20(%rbp), %rax movl -0x10(%rbp), %ecx movzbl (%rax,%rcx), %edi callq 0x32650 movb %al, %cl xorl %eax, %eax cmpb $0x0, %cl movb %al, -0x2059(%rbp) jne 0x36a1d movq -0x20(%rbp), %rax movl -0x10(%rbp), %ecx movzbl (%rax,%rcx), %eax cmpl $0xff, %eax setne %al movb %al, -0x2059(%rbp) movb -0x2059(%rbp), %al testb $0x1, %al jne 0x36a29 jmp 0x36a62 leaq -0x2038(%rbp), %rdi callq 0x326b0 cmpb $0x0, %al je 0x36a46 movq $0x1, -0x2058(%rbp) jmp 0x36a94 leaq 0xc45143(%rip), %rax # 0xc7bb90 cmpq %rax, -0x20(%rbp) jne 0x36a60 movq $0x0, -0x2058(%rbp) jmp 0x36a94 jmp 0x369e5 movq -0x20(%rbp), %rax movl -0x10(%rbp), %ecx movzbl (%rax,%rcx), %eax cmpl $0xff, %eax jne 0x36a81 movq $0x0, -0x2058(%rbp) jmp 0x36a92 movq -0x38(%rbp), %rax movl -0x10(%rbp), %ecx addq %rcx, %rax movq %rax, -0x2058(%rbp) jmp 0x36a94 leaq -0x2038(%rbp), %rdi callq 0x32890 movq -0x2058(%rbp), %rax movq %rax, -0x2040(%rbp) movq -0x2040(%rbp), %rax movq %rax, -0x2068(%rbp) movq %fs:0x28, %rax movq -0x8(%rbp), %rcx cmpq %rcx, %rax jne 0x36ade movq -0x2068(%rbp), %rax addq $0x2070, %rsp # imm = 0x2070 popq %rbp retq callq 0x2a250 nopw %cs:(%rax,%rax)
translog_next_LSN: push rbp mov rbp, rsp sub rsp, 2070h mov rax, fs:28h mov [rbp+var_8], rax mov [rbp+var_2048], rdi mov [rbp+var_2050], rsi cmp [rbp+var_2050], 0 jnz short loc_3692C call translog_get_horizon mov [rbp+var_2050], rax loc_3692C: mov rax, [rbp+var_2048] cmp rax, [rbp+var_2050] jnz short loc_3694E jmp short $+2 loc_3693E: mov [rbp+var_2040], 0 jmp loc_36AAE loc_3694E: mov rdi, [rbp+var_2048] xor esi, esi lea rdx, [rbp+var_2038] mov ecx, 1 call translog_scanner_init mov rax, [rbp+var_2048] mov ecx, 2000h cqo idiv rcx cmp rdx, 0 jnz short loc_36994 mov rax, [rbp+var_38] sub rax, 2000h mov [rbp+var_38], rax mov [rbp+var_10], 2000h loc_36994: lea rdi, [rbp+var_2038] call translog_scanner_eop cmp al, 0 jz short loc_369E3 lea rdi, [rbp+var_2038] call translog_get_next_chunk cmp al, 0 jz short loc_369C4 mov [rbp+var_2058], 1 jmp loc_36A94 loc_369C4: lea rax, end_of_log cmp [rbp+var_20], rax jnz short loc_369E1 mov [rbp+var_2058], 0 jmp loc_36A94 loc_369E1: jmp short $+2 loc_369E3: jmp short $+2 loc_369E5: mov rax, [rbp+var_20] mov ecx, [rbp+var_10] movzx edi, byte ptr [rax+rcx] call translog_is_LSN_chunk mov cl, al xor eax, eax cmp cl, 0 mov [rbp+var_2059], al jnz short loc_36A1D mov rax, [rbp+var_20] mov ecx, [rbp+var_10] movzx eax, byte ptr [rax+rcx] cmp eax, 0FFh setnz al mov [rbp+var_2059], al loc_36A1D: mov al, [rbp+var_2059] test al, 1 jnz short loc_36A29 jmp short loc_36A62 loc_36A29: lea rdi, [rbp+var_2038] call translog_get_next_chunk cmp al, 0 jz short loc_36A46 mov [rbp+var_2058], 1 jmp short loc_36A94 loc_36A46: lea rax, end_of_log cmp [rbp+var_20], rax jnz short loc_36A60 mov [rbp+var_2058], 0 jmp short loc_36A94 loc_36A60: jmp short loc_369E5 loc_36A62: mov rax, [rbp+var_20] mov ecx, [rbp+var_10] movzx eax, byte ptr [rax+rcx] cmp eax, 0FFh jnz short loc_36A81 mov [rbp+var_2058], 0 jmp short loc_36A92 loc_36A81: mov rax, [rbp+var_38] mov ecx, [rbp+var_10] add rax, rcx mov [rbp+var_2058], rax loc_36A92: jmp short $+2 loc_36A94: lea rdi, [rbp+var_2038] call translog_destroy_scanner mov rax, [rbp+var_2058] mov [rbp+var_2040], rax loc_36AAE: mov rax, [rbp+var_2040] mov [rbp+var_2068], rax mov rax, fs:28h mov rcx, [rbp+var_8] cmp rax, rcx jnz short loc_36ADE mov rax, [rbp+var_2068] add rsp, 2070h pop rbp retn loc_36ADE: call ___stack_chk_fail
long long translog_next_LSN(long long a1, long long a2) { bool v3; // [rsp+17h] [rbp-2059h] long long v4; // [rsp+18h] [rbp-2058h] long long horizon; // [rsp+20h] [rbp-2050h] _BYTE v7[8192]; // [rsp+38h] [rbp-2038h] BYREF long long v8; // [rsp+2038h] [rbp-38h] _BYTE *v9; // [rsp+2050h] [rbp-20h] unsigned int v10; // [rsp+2060h] [rbp-10h] unsigned long long v11; // [rsp+2068h] [rbp-8h] v11 = __readfsqword(0x28u); horizon = a2; if ( !a2 ) horizon = translog_get_horizon(); if ( a1 == horizon ) return 0LL; translog_scanner_init(a1, 0, (long long)v7, 1); if ( !(a1 % 0x2000) ) { v8 -= 0x2000LL; v10 = 0x2000; } if ( (unsigned __int8)translog_scanner_eop(v7) ) { if ( translog_get_next_chunk((long long)v7) ) { v4 = 1LL; } else { if ( v9 != (_BYTE *)&end_of_log ) goto LABEL_12; v4 = 0LL; } } else { while ( 1 ) { LABEL_12: v3 = 0; if ( !(unsigned __int8)translog_is_LSN_chunk(v9[v10]) ) v3 = (unsigned __int8)v9[v10] != 255; if ( !v3 ) break; if ( translog_get_next_chunk((long long)v7) ) { v4 = 1LL; goto LABEL_23; } if ( v9 == (_BYTE *)&end_of_log ) { v4 = 0LL; goto LABEL_23; } } if ( (unsigned __int8)v9[v10] == 255 ) v4 = 0LL; else v4 = v10 + v8; } LABEL_23: translog_destroy_scanner((long long)v7); return v4; }
translog_next_LSN: PUSH RBP MOV RBP,RSP SUB RSP,0x2070 MOV RAX,qword ptr FS:[0x28] MOV qword ptr [RBP + -0x8],RAX MOV qword ptr [RBP + -0x2048],RDI MOV qword ptr [RBP + -0x2050],RSI CMP qword ptr [RBP + -0x2050],0x0 JNZ 0x0013692c CALL 0x00134410 MOV qword ptr [RBP + -0x2050],RAX LAB_0013692c: MOV RAX,qword ptr [RBP + -0x2048] CMP RAX,qword ptr [RBP + -0x2050] JNZ 0x0013694e JMP 0x0013693e LAB_0013693e: MOV qword ptr [RBP + -0x2040],0x0 JMP 0x00136aae LAB_0013694e: MOV RDI,qword ptr [RBP + -0x2048] XOR ESI,ESI LEA RDX,[RBP + -0x2038] MOV ECX,0x1 CALL 0x00132560 MOV RAX,qword ptr [RBP + -0x2048] MOV ECX,0x2000 CQO IDIV RCX CMP RDX,0x0 JNZ 0x00136994 MOV RAX,qword ptr [RBP + -0x38] SUB RAX,0x2000 MOV qword ptr [RBP + -0x38],RAX MOV dword ptr [RBP + -0x10],0x2000 LAB_00136994: LEA RDI,[RBP + -0x2038] CALL 0x00136af0 CMP AL,0x0 JZ 0x001369e3 LEA RDI,[RBP + -0x2038] CALL 0x001326b0 CMP AL,0x0 JZ 0x001369c4 MOV qword ptr [RBP + -0x2058],0x1 JMP 0x00136a94 LAB_001369c4: LEA RAX,[0xd7bb90] CMP qword ptr [RBP + -0x20],RAX JNZ 0x001369e1 MOV qword ptr [RBP + -0x2058],0x0 JMP 0x00136a94 LAB_001369e1: JMP 0x001369e3 LAB_001369e3: JMP 0x001369e5 LAB_001369e5: MOV RAX,qword ptr [RBP + -0x20] MOV ECX,dword ptr [RBP + -0x10] MOVZX EDI,byte ptr [RAX + RCX*0x1] CALL 0x00132650 MOV CL,AL XOR EAX,EAX CMP CL,0x0 MOV byte ptr [RBP + -0x2059],AL JNZ 0x00136a1d MOV RAX,qword ptr [RBP + -0x20] MOV ECX,dword ptr [RBP + -0x10] MOVZX EAX,byte ptr [RAX + RCX*0x1] CMP EAX,0xff SETNZ AL MOV byte ptr [RBP + -0x2059],AL LAB_00136a1d: MOV AL,byte ptr [RBP + -0x2059] TEST AL,0x1 JNZ 0x00136a29 JMP 0x00136a62 LAB_00136a29: LEA RDI,[RBP + -0x2038] CALL 0x001326b0 CMP AL,0x0 JZ 0x00136a46 MOV qword ptr [RBP + -0x2058],0x1 JMP 0x00136a94 LAB_00136a46: LEA RAX,[0xd7bb90] CMP qword ptr [RBP + -0x20],RAX JNZ 0x00136a60 MOV qword ptr [RBP + -0x2058],0x0 JMP 0x00136a94 LAB_00136a60: JMP 0x001369e5 LAB_00136a62: MOV RAX,qword ptr [RBP + -0x20] MOV ECX,dword ptr [RBP + -0x10] MOVZX EAX,byte ptr [RAX + RCX*0x1] CMP EAX,0xff JNZ 0x00136a81 MOV qword ptr [RBP + -0x2058],0x0 JMP 0x00136a92 LAB_00136a81: MOV RAX,qword ptr [RBP + -0x38] MOV ECX,dword ptr [RBP + -0x10] ADD RAX,RCX MOV qword ptr [RBP + -0x2058],RAX LAB_00136a92: JMP 0x00136a94 LAB_00136a94: LEA RDI,[RBP + -0x2038] CALL 0x00132890 MOV RAX,qword ptr [RBP + -0x2058] MOV qword ptr [RBP + -0x2040],RAX LAB_00136aae: MOV RAX,qword ptr [RBP + -0x2040] MOV qword ptr [RBP + -0x2068],RAX MOV RAX,qword ptr FS:[0x28] MOV RCX,qword ptr [RBP + -0x8] CMP RAX,RCX JNZ 0x00136ade MOV RAX,qword ptr [RBP + -0x2068] ADD RSP,0x2070 POP RBP RET LAB_00136ade: CALL 0x0012a250
long translog_next_LSN(long param_1,long param_2) { char cVar1; long in_FS_OFFSET; bool bVar2; long local_2060; long local_2058; long local_2048; int1 local_2040 [8192]; long local_40; int1 *local_28; uint local_18; long local_10; local_10 = *(long *)(in_FS_OFFSET + 0x28); local_2058 = param_2; if (param_2 == 0) { local_2058 = translog_get_horizon(); } if (param_1 == local_2058) { local_2048 = 0; goto LAB_00136aae; } translog_scanner_init(param_1,0,local_2040,1); if (param_1 % 0x2000 == 0) { local_40 = local_40 + -0x2000; local_18 = 0x2000; } cVar1 = translog_scanner_eop(local_2040); if (cVar1 == '\0') { LAB_001369e5: do { cVar1 = translog_is_LSN_chunk(local_28[local_18]); bVar2 = false; if (cVar1 == '\0') { bVar2 = local_28[local_18] != -1; } if (!bVar2) { if (local_28[local_18] == -1) { local_2060 = 0; } else { local_2060 = local_40 + (ulong)local_18; } goto LAB_00136a94; } cVar1 = translog_get_next_chunk(local_2040); if (cVar1 != '\0') { local_2060 = 1; goto LAB_00136a94; } } while (local_28 != &end_of_log); local_2060 = 0; } else { cVar1 = translog_get_next_chunk(local_2040); if (cVar1 == '\0') { if (local_28 != &end_of_log) goto LAB_001369e5; local_2060 = 0; } else { local_2060 = 1; } } LAB_00136a94: translog_destroy_scanner(local_2040); local_2048 = local_2060; LAB_00136aae: if (*(long *)(in_FS_OFFSET + 0x28) != local_10) { /* WARNING: Subroutine does not return */ __stack_chk_fail(); } return local_2048; }
34,752
js_strndup
bluesky950520[P]quickjs/quickjs.c
char *js_strndup(JSContext *ctx, const char *s, size_t n) { char *ptr; ptr = js_malloc(ctx, n + 1); if (ptr) { memcpy(ptr, s, n); ptr[n] = '\0'; } return ptr; }
O2
c
js_strndup: pushq %r15 pushq %r14 pushq %rbx movq %rdx, %rbx movq %rsi, %r14 leaq 0x1(%rdx), %rsi callq 0x17214 movq %rax, %r15 testq %rax, %rax je 0x1734c movq %r15, %rdi movq %r14, %rsi movq %rbx, %rdx callq 0xe5c0 movb $0x0, (%r15,%rbx) movq %r15, %rax popq %rbx popq %r14 popq %r15 retq
js_strndup: push r15 push r14 push rbx mov rbx, rdx mov r14, rsi lea rsi, [rdx+1] call js_malloc mov r15, rax test rax, rax jz short loc_1734C mov rdi, r15 mov rsi, r14 mov rdx, rbx call _memcpy mov byte ptr [r15+rbx], 0 loc_1734C: mov rax, r15 pop rbx pop r14 pop r15 retn
long long js_strndup(long long a1, long long a2, long long a3) { long long v4; // rax long long v5; // r15 v4 = js_malloc(a1, a3 + 1); v5 = v4; if ( v4 ) { memcpy(v4, a2, a3); *(_BYTE *)(v5 + a3) = 0; } return v5; }
js_strndup: PUSH R15 PUSH R14 PUSH RBX MOV RBX,RDX MOV R14,RSI LEA RSI,[RDX + 0x1] CALL 0x00117214 MOV R15,RAX TEST RAX,RAX JZ 0x0011734c MOV RDI,R15 MOV RSI,R14 MOV RDX,RBX CALL 0x0010e5c0 MOV byte ptr [R15 + RBX*0x1],0x0 LAB_0011734c: MOV RAX,R15 POP RBX POP R14 POP R15 RET
void * js_strndup(int8 param_1,void *param_2,size_t param_3) { void *__dest; __dest = (void *)js_malloc(param_1,param_3 + 1); if (__dest != (void *)0x0) { memcpy(__dest,param_2,param_3); *(int1 *)((long)__dest + param_3) = 0; } return __dest; }
34,753
translog_read_record_header_scan
eloqsql/storage/maria/ma_loghandler.c
int translog_read_record_header_scan(TRANSLOG_SCANNER_DATA *scanner, TRANSLOG_HEADER_BUFFER *buff, my_bool move_scanner) { translog_size_t res; DBUG_ENTER("translog_read_record_header_scan"); DBUG_PRINT("enter", ("Scanner: Cur: " LSN_FMT " Hrz: " LSN_FMT " " "Lst: " LSN_FMT " Offset: %u(%x) fixed %d", LSN_IN_PARTS(scanner->page_addr), LSN_IN_PARTS(scanner->horizon), LSN_IN_PARTS(scanner->last_file_page), (uint) scanner->page_offset, (uint) scanner->page_offset, scanner->fixed_horizon)); DBUG_ASSERT(translog_status == TRANSLOG_OK || translog_status == TRANSLOG_READONLY); buff->groups_no= 0; buff->lsn= scanner->page_addr; buff->lsn+= scanner->page_offset; /* offset increasing */ res= translog_read_record_header_from_buffer(scanner->page, scanner->page_offset, buff, (move_scanner ? scanner : 0)); DBUG_RETURN(res); }
O3
c
translog_read_record_header_scan: pushq %rbp movq %rsp, %rbp movq %rsi, %rax movl $0x0, 0x418(%rsi) movq 0x2000(%rdi), %rcx movq %rcx, (%rsi) movl 0x2028(%rdi), %esi addq %rcx, %rsi movq %rsi, (%rax) movq 0x2018(%rdi), %r8 movzwl 0x2028(%rdi), %esi xorl %ecx, %ecx testb %dl, %dl cmovneq %rdi, %rcx movq %r8, %rdi movq %rax, %rdx popq %rbp jmp 0x4bbb8
translog_read_record_header_scan: push rbp mov rbp, rsp mov rax, rsi mov dword ptr [rsi+418h], 0 mov rcx, [rdi+2000h] mov [rsi], rcx mov esi, [rdi+2028h] add rsi, rcx mov [rax], rsi mov r8, [rdi+2018h] movzx esi, word ptr [rdi+2028h] xor ecx, ecx test dl, dl cmovnz rcx, rdi mov rdi, r8 mov rdx, rax pop rbp jmp translog_read_record_header_from_buffer
long long translog_read_record_header_scan(long long a1, long long a2, char a3) { long long v3; // rcx _BYTE *v4; // rcx *(_DWORD *)(a2 + 1048) = 0; v3 = *(_QWORD *)(a1 + 0x2000); *(_QWORD *)a2 = v3; *(_QWORD *)a2 = v3 + *(unsigned int *)(a1 + 8232); v4 = 0LL; if ( a3 ) v4 = (_BYTE *)a1; return translog_read_record_header_from_buffer(*(_QWORD *)(a1 + 8216), *(unsigned __int16 *)(a1 + 8232), a2, v4); }
translog_read_record_header_scan: PUSH RBP MOV RBP,RSP MOV RAX,RSI MOV dword ptr [RSI + 0x418],0x0 MOV RCX,qword ptr [RDI + 0x2000] MOV qword ptr [RSI],RCX MOV ESI,dword ptr [RDI + 0x2028] ADD RSI,RCX MOV qword ptr [RAX],RSI MOV R8,qword ptr [RDI + 0x2018] MOVZX ESI,word ptr [RDI + 0x2028] XOR ECX,ECX TEST DL,DL CMOVNZ RCX,RDI MOV RDI,R8 MOV RDX,RAX POP RBP JMP 0x0014bbb8
void translog_read_record_header_scan(long param_1,long *param_2,char param_3) { long lVar1; *(int4 *)(param_2 + 0x83) = 0; lVar1 = *(long *)(param_1 + 0x2000); *param_2 = lVar1; *param_2 = (ulong)*(uint *)(param_1 + 0x2028) + lVar1; lVar1 = 0; if (param_3 != '\0') { lVar1 = param_1; } translog_read_record_header_from_buffer (*(int8 *)(param_1 + 0x2018),*(int2 *)(param_1 + 0x2028),param_2,lVar1); return; }
34,754
uf_prespace
eloqsql/storage/myisam/mi_packrec.c
static void uf_prespace(MI_COLUMNDEF *rec, MI_BIT_BUFF *bit_buff, uchar *to, uchar *end) { uint spaces; if ((spaces=get_bits(bit_buff,rec->space_length_bits))+to > end) { bit_buff->error=1; return; } bfill((uchar*) to,spaces,' '); if (to+spaces != end) decode_bytes(rec,bit_buff,to+spaces,end); }
O0
c
uf_prespace: pushq %rbp movq %rsp, %rbp subq $0x30, %rsp movq %rdi, -0x8(%rbp) movq %rsi, -0x10(%rbp) movq %rdx, -0x18(%rbp) movq %rcx, -0x20(%rbp) movq -0x10(%rbp), %rax movl 0x4(%rax), %eax movq -0x8(%rbp), %rcx cmpl 0x1c(%rcx), %eax jb 0xbd92b movq -0x10(%rbp), %rax movl (%rax), %eax movq -0x8(%rbp), %rcx movl 0x1c(%rcx), %esi movq -0x10(%rbp), %rdx movl 0x4(%rdx), %ecx subl %esi, %ecx movl %ecx, 0x4(%rdx) shrl %cl, %eax movq -0x8(%rbp), %rcx movl 0x1c(%rcx), %ecx movl %ecx, %edx leaq 0x201d1d(%rip), %rcx # 0x2bf640 andl (%rcx,%rdx,4), %eax movl %eax, -0x28(%rbp) jmp 0xbd93e movq -0x10(%rbp), %rdi movq -0x8(%rbp), %rax movl 0x1c(%rax), %esi callq 0xbab20 movl %eax, -0x28(%rbp) movl -0x28(%rbp), %ecx movl %ecx, -0x24(%rbp) movq -0x18(%rbp), %rax movl %ecx, %ecx addq %rcx, %rax cmpq -0x20(%rbp), %rax jbe 0xbd960 movq -0x10(%rbp), %rax movl $0x1, 0x28(%rax) jmp 0xbd99e movq -0x18(%rbp), %rdi movl -0x24(%rbp), %eax movl %eax, %edx movl $0x20, %esi callq 0x2a2c0 movq -0x18(%rbp), %rax movl -0x24(%rbp), %ecx addq %rcx, %rax cmpq -0x20(%rbp), %rax je 0xbd99e movq -0x8(%rbp), %rdi movq -0x10(%rbp), %rsi movq -0x18(%rbp), %rdx movl -0x24(%rbp), %eax addq %rax, %rdx movq -0x20(%rbp), %rcx callq 0xbca80 addq $0x30, %rsp popq %rbp retq nopw %cs:(%rax,%rax)
uf_prespace_0: push rbp mov rbp, rsp sub rsp, 30h mov [rbp+var_8], rdi mov [rbp+var_10], rsi mov [rbp+var_18], rdx mov [rbp+var_20], rcx mov rax, [rbp+var_10] mov eax, [rax+4] mov rcx, [rbp+var_8] cmp eax, [rcx+1Ch] jb short loc_BD92B mov rax, [rbp+var_10] mov eax, [rax] mov rcx, [rbp+var_8] mov esi, [rcx+1Ch] mov rdx, [rbp+var_10] mov ecx, [rdx+4] sub ecx, esi mov [rdx+4], ecx shr eax, cl mov rcx, [rbp+var_8] mov ecx, [rcx+1Ch] mov edx, ecx lea rcx, mask_0 and eax, [rcx+rdx*4] mov [rbp+var_28], eax jmp short loc_BD93E loc_BD92B: mov rdi, [rbp+var_10] mov rax, [rbp+var_8] mov esi, [rax+1Ch] call fill_and_get_bits_0 mov [rbp+var_28], eax loc_BD93E: mov ecx, [rbp+var_28] mov [rbp+var_24], ecx mov rax, [rbp+var_18] mov ecx, ecx add rax, rcx cmp rax, [rbp+var_20] jbe short loc_BD960 mov rax, [rbp+var_10] mov dword ptr [rax+28h], 1 jmp short loc_BD99E loc_BD960: mov rdi, [rbp+var_18] mov eax, [rbp+var_24] mov edx, eax mov esi, 20h ; ' ' call _memset mov rax, [rbp+var_18] mov ecx, [rbp+var_24] add rax, rcx cmp rax, [rbp+var_20] jz short loc_BD99E mov rdi, [rbp+var_8] mov rsi, [rbp+var_10] mov rdx, [rbp+var_18] mov eax, [rbp+var_24] add rdx, rax mov rcx, [rbp+var_20] call decode_bytes_0 loc_BD99E: add rsp, 30h pop rbp retn
long long uf_prespace_0(long long a1, unsigned int *a2, long long a3, _BYTE *a4) { unsigned int v4; // eax int v5; // ecx long long result; // rax unsigned int bits_0; // [rsp+8h] [rbp-28h] if ( a2[1] < *(_DWORD *)(a1 + 28) ) { bits_0 = fill_and_get_bits_0(a2, *(_DWORD *)(a1 + 28)); } else { v4 = *a2; v5 = a2[1] - *(_DWORD *)(a1 + 28); a2[1] = v5; bits_0 = mask_0[*(unsigned int *)(a1 + 28)] & (v4 >> v5); } if ( (unsigned long long)bits_0 + a3 <= (unsigned long long)a4 ) { memset(a3, 32LL, bits_0); result = bits_0 + a3; if ( (_BYTE *)result != a4 ) return decode_bytes_0(a1, (long long)a2, (_BYTE *)(bits_0 + a3), a4); } else { result = (long long)a2; a2[10] = 1; } return result; }
uf_prespace: 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 qword ptr [RBP + -0x20],RCX MOV RAX,qword ptr [RBP + -0x10] MOV EAX,dword ptr [RAX + 0x4] MOV RCX,qword ptr [RBP + -0x8] CMP EAX,dword ptr [RCX + 0x1c] JC 0x001bd92b MOV RAX,qword ptr [RBP + -0x10] MOV EAX,dword ptr [RAX] MOV RCX,qword ptr [RBP + -0x8] MOV ESI,dword ptr [RCX + 0x1c] MOV RDX,qword ptr [RBP + -0x10] MOV ECX,dword ptr [RDX + 0x4] SUB ECX,ESI MOV dword ptr [RDX + 0x4],ECX SHR EAX,CL MOV RCX,qword ptr [RBP + -0x8] MOV ECX,dword ptr [RCX + 0x1c] MOV EDX,ECX LEA RCX,[0x3bf640] AND EAX,dword ptr [RCX + RDX*0x4] MOV dword ptr [RBP + -0x28],EAX JMP 0x001bd93e LAB_001bd92b: MOV RDI,qword ptr [RBP + -0x10] MOV RAX,qword ptr [RBP + -0x8] MOV ESI,dword ptr [RAX + 0x1c] CALL 0x001bab20 MOV dword ptr [RBP + -0x28],EAX LAB_001bd93e: MOV ECX,dword ptr [RBP + -0x28] MOV dword ptr [RBP + -0x24],ECX MOV RAX,qword ptr [RBP + -0x18] MOV ECX,ECX ADD RAX,RCX CMP RAX,qword ptr [RBP + -0x20] JBE 0x001bd960 MOV RAX,qword ptr [RBP + -0x10] MOV dword ptr [RAX + 0x28],0x1 JMP 0x001bd99e LAB_001bd960: MOV RDI,qword ptr [RBP + -0x18] MOV EAX,dword ptr [RBP + -0x24] MOV EDX,EAX MOV ESI,0x20 CALL 0x0012a2c0 MOV RAX,qword ptr [RBP + -0x18] MOV ECX,dword ptr [RBP + -0x24] ADD RAX,RCX CMP RAX,qword ptr [RBP + -0x20] JZ 0x001bd99e MOV RDI,qword ptr [RBP + -0x8] MOV RSI,qword ptr [RBP + -0x10] MOV RDX,qword ptr [RBP + -0x18] MOV EAX,dword ptr [RBP + -0x24] ADD RDX,RAX MOV RCX,qword ptr [RBP + -0x20] CALL 0x001bca80 LAB_001bd99e: ADD RSP,0x30 POP RBP RET
void uf_prespace(long param_1,uint *param_2,void *param_3,ulong param_4) { uint uVar1; uint local_30; if (param_2[1] < *(uint *)(param_1 + 0x1c)) { local_30 = fill_and_get_bits(param_2,*(int4 *)(param_1 + 0x1c)); } else { uVar1 = param_2[1] - *(int *)(param_1 + 0x1c); param_2[1] = uVar1; local_30 = *param_2 >> ((byte)uVar1 & 0x1f) & *(uint *)(mask + (ulong)*(uint *)(param_1 + 0x1c) * 4); } if (param_4 < (long)param_3 + (ulong)local_30) { param_2[10] = 1; } else { memset(param_3,0x20,(ulong)local_30); if ((long)param_3 + (ulong)local_30 != param_4) { decode_bytes(param_1,param_2,(long)param_3 + (ulong)local_30,param_4); } } return; }
34,755
fmt::v10::appender fmt::v10::detail::write_escaped_string<char, fmt::v10::appender>(fmt::v10::appender, fmt::v10::basic_string_view<char>)
aimrt_mujoco_sim/_deps/fmt-src/include/fmt/format.h
auto write_escaped_string(OutputIt out, basic_string_view<Char> str) -> OutputIt { *out++ = static_cast<Char>('"'); auto begin = str.begin(), end = str.end(); do { auto escape = find_escape(begin, end); out = copy_str<Char>(begin, escape.begin, out); begin = escape.end; if (!begin) break; out = write_escaped_cp<OutputIt, Char>(out, escape); } while (begin != end); *out++ = static_cast<Char>('"'); return out; }
O0
c
fmt::v10::appender fmt::v10::detail::write_escaped_string<char, fmt::v10::appender>(fmt::v10::appender, fmt::v10::basic_string_view<char>): subq $0x88, %rsp movq %rdi, 0x78(%rsp) movq %rsi, 0x68(%rsp) movq %rdx, 0x70(%rsp) movb $0x22, 0x67(%rsp) leaq 0x78(%rsp), %rdi xorl %esi, %esi callq 0x1abdb0 movq %rax, 0x58(%rsp) leaq 0x58(%rsp), %rdi callq 0x1abdd0 movq %rax, %rdi leaq 0x67(%rsp), %rsi callq 0x1abde0 leaq 0x68(%rsp), %rdi callq 0x1b2750 movq %rax, 0x50(%rsp) leaq 0x68(%rsp), %rdi callq 0x1b2760 movq %rax, 0x48(%rsp) movq 0x50(%rsp), %rsi movq 0x48(%rsp), %rdx leaq 0x30(%rsp), %rdi callq 0x1d24c0 movq 0x50(%rsp), %rdi movq 0x30(%rsp), %rsi movq 0x78(%rsp), %rax movq %rax, 0x20(%rsp) movq 0x20(%rsp), %rdx callq 0x1b1bf0 movq %rax, 0x28(%rsp) movq 0x28(%rsp), %rax movq %rax, 0x78(%rsp) movq 0x38(%rsp), %rax movq %rax, 0x50(%rsp) cmpq $0x0, 0x50(%rsp) jne 0x1d35b6 jmp 0x1d35ee movq 0x78(%rsp), %rax movq %rax, 0x10(%rsp) movq 0x10(%rsp), %rdi leaq 0x30(%rsp), %rsi callq 0x1b1de0 movq %rax, 0x18(%rsp) movq 0x18(%rsp), %rax movq %rax, 0x78(%rsp) movq 0x50(%rsp), %rax cmpq 0x48(%rsp), %rax jne 0x1d3561 movb $0x22, 0xf(%rsp) leaq 0x78(%rsp), %rdi xorl %esi, %esi callq 0x1abdb0 movq %rax, (%rsp) movq %rsp, %rdi callq 0x1abdd0 movq %rax, %rdi leaq 0xf(%rsp), %rsi callq 0x1abde0 movq 0x78(%rsp), %rax movq %rax, 0x80(%rsp) movq 0x80(%rsp), %rax addq $0x88, %rsp retq nopw %cs:(%rax,%rax) nop
_ZN3fmt3v106detail20write_escaped_stringIcNS0_8appenderEEET0_S4_NS0_17basic_string_viewIT_EE: sub rsp, 88h mov [rsp+88h+var_10], rdi mov [rsp+88h+var_20], rsi mov [rsp+88h+var_18], rdx mov [rsp+88h+var_21], 22h ; '"' lea rdi, [rsp+88h+var_10] xor esi, esi call _ZN3fmt3v108appenderppEi; fmt::v10::appender::operator++(int) mov [rsp+88h+var_30], rax lea rdi, [rsp+88h+var_30] call _ZNSt20back_insert_iteratorIN3fmt3v106detail6bufferIcEEEdeEv; std::back_insert_iterator<fmt::v10::detail::buffer<char>>::operator*(void) mov rdi, rax lea rsi, [rsp+88h+var_21] call _ZNSt20back_insert_iteratorIN3fmt3v106detail6bufferIcEEEaSEOc; std::back_insert_iterator<fmt::v10::detail::buffer<char>>::operator=(char &&) lea rdi, [rsp+88h+var_20] call _ZNK3fmt3v1017basic_string_viewIcE5beginEv; fmt::v10::basic_string_view<char>::begin(void) mov [rsp+88h+var_38], rax lea rdi, [rsp+88h+var_20] call _ZNK3fmt3v1017basic_string_viewIcE3endEv; fmt::v10::basic_string_view<char>::end(void) mov [rsp+88h+var_40], rax loc_1D3561: mov rsi, [rsp+88h+var_38]; char * mov rdx, [rsp+88h+var_40]; char * lea rdi, [rsp+88h+var_58]; this call _ZN3fmt3v106detail11find_escapeEPKcS3_; fmt::v10::detail::find_escape(char const*,char const*) mov rdi, [rsp+88h+var_38] mov rsi, [rsp+88h+var_58] mov rax, [rsp+88h+var_10] mov [rsp+88h+var_68], rax mov rdx, [rsp+88h+var_68] call _ZN3fmt3v106detail8copy_strIcPKcEENS0_8appenderET0_S6_S5_; fmt::v10::detail::copy_str<char,char const*>(char const*,char const*,fmt::v10::appender) mov [rsp+88h+var_60], rax mov rax, [rsp+88h+var_60] mov [rsp+88h+var_10], rax mov rax, [rsp+88h+var_50] mov [rsp+88h+var_38], rax cmp [rsp+88h+var_38], 0 jnz short loc_1D35B6 jmp short loc_1D35EE loc_1D35B6: mov rax, [rsp+88h+var_10] mov [rsp+88h+var_78], rax mov rdi, [rsp+88h+var_78] lea rsi, [rsp+88h+var_58] call _ZN3fmt3v106detail16write_escaped_cpINS0_8appenderEcEET_S4_RKNS1_18find_escape_resultIT0_EE; fmt::v10::detail::write_escaped_cp<fmt::v10::appender,char>(fmt::v10::appender,fmt::v10::detail::find_escape_result<char> const&) mov [rsp+88h+var_70], rax mov rax, [rsp+88h+var_70] mov [rsp+88h+var_10], rax mov rax, [rsp+88h+var_38] cmp rax, [rsp+88h+var_40] jnz loc_1D3561 loc_1D35EE: mov [rsp+88h+var_79], 22h ; '"' lea rdi, [rsp+88h+var_10] xor esi, esi call _ZN3fmt3v108appenderppEi; fmt::v10::appender::operator++(int) mov [rsp+88h+var_88], rax mov rdi, rsp call _ZNSt20back_insert_iteratorIN3fmt3v106detail6bufferIcEEEdeEv; std::back_insert_iterator<fmt::v10::detail::buffer<char>>::operator*(void) mov rdi, rax lea rsi, [rsp+88h+var_79] call _ZNSt20back_insert_iteratorIN3fmt3v106detail6bufferIcEEEaSEOc; std::back_insert_iterator<fmt::v10::detail::buffer<char>>::operator=(char &&) mov rax, [rsp+88h+var_10] mov [rsp+88h+var_8], rax mov rax, [rsp+88h+var_8] add rsp, 88h retn
long long fmt::v10::detail::write_escaped_string<char,fmt::v10::appender>(long long a1, long long a2, long long a3) { _QWORD *v3; // rax _QWORD *v4; // rax long long v6; // [rsp+0h] [rbp-88h] BYREF char v7; // [rsp+Fh] [rbp-79h] BYREF long long v8; // [rsp+10h] [rbp-78h] long long v9; // [rsp+18h] [rbp-70h] long long v10; // [rsp+20h] [rbp-68h] long long v11; // [rsp+28h] [rbp-60h] long long v12; // [rsp+30h] [rbp-58h] BYREF char *v13; // [rsp+38h] [rbp-50h] char *v14; // [rsp+48h] [rbp-40h] char *v15; // [rsp+50h] [rbp-38h] long long v16; // [rsp+58h] [rbp-30h] BYREF char v17; // [rsp+67h] [rbp-21h] BYREF _QWORD v18[2]; // [rsp+68h] [rbp-20h] BYREF long long v19; // [rsp+78h] [rbp-10h] BYREF v19 = a1; v18[0] = a2; v18[1] = a3; v17 = 34; v16 = fmt::v10::appender::operator++((long long)&v19); v3 = (_QWORD *)std::back_insert_iterator<fmt::v10::detail::buffer<char>>::operator*((long long)&v16); std::back_insert_iterator<fmt::v10::detail::buffer<char>>::operator=(v3, (long long)&v17); v15 = (char *)fmt::v10::basic_string_view<char>::begin((long long)v18); v14 = (char *)fmt::v10::basic_string_view<char>::end(v18); do { fmt::v10::detail::find_escape((fmt::v10::detail *)&v12, v15, v14); v10 = v19; v11 = fmt::v10::detail::copy_str<char,char const*>((long long)v15, v12, v19); v19 = v11; v15 = v13; if ( !v13 ) break; v8 = v19; v9 = fmt::v10::detail::write_escaped_cp<fmt::v10::appender,char>(v19, (long long)&v12); v19 = v9; } while ( v15 != v14 ); v7 = 34; v6 = fmt::v10::appender::operator++((long long)&v19); v4 = (_QWORD *)std::back_insert_iterator<fmt::v10::detail::buffer<char>>::operator*((long long)&v6); std::back_insert_iterator<fmt::v10::detail::buffer<char>>::operator=(v4, (long long)&v7); return v19; }
34,756
fmt::v10::appender fmt::v10::detail::write_escaped_string<char, fmt::v10::appender>(fmt::v10::appender, fmt::v10::basic_string_view<char>)
aimrt_mujoco_sim/_deps/fmt-src/include/fmt/format.h
auto write_escaped_string(OutputIt out, basic_string_view<Char> str) -> OutputIt { *out++ = static_cast<Char>('"'); auto begin = str.begin(), end = str.end(); do { auto escape = find_escape(begin, end); out = copy_str<Char>(begin, escape.begin, out); begin = escape.end; if (!begin) break; out = write_escaped_cp<OutputIt, Char>(out, escape); } while (begin != end); *out++ = static_cast<Char>('"'); return out; }
O3
c
fmt::v10::appender fmt::v10::detail::write_escaped_string<char, fmt::v10::appender>(fmt::v10::appender, fmt::v10::basic_string_view<char>): pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x20, %rsp movq %rdx, %r14 movq %rsi, %r12 movq %rdi, %rbx incq %rbx addq %rsi, %r14 leaq 0x8(%rsp), %r15 movq %r12, %r13 movq %r14, 0x8(%rsp) movq $0x0, 0x10(%rsp) movl $0x0, 0x18(%rsp) movq %r14, %rsi subq %r12, %rsi movq %r12, %rdi movq %r15, %rdx callq 0x980e5 movq %rbx, %rax subq %r12, %rax movq 0x8(%rsp), %rcx movq 0x10(%rsp), %r12 addq %rcx, %rax cmpq %rcx, %r13 cmovneq %rax, %rbx testq %r12, %r12 je 0x97c01 movq %rbx, %rdi movq %r15, %rsi callq 0x97fac movq %rax, %rbx cmpq %r14, %r12 jne 0x97ba5 incq %rbx movq %rbx, %rax addq $0x20, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 retq
_ZN3fmt3v106detail20write_escaped_stringIcNS1_17counting_iteratorEEET0_S4_NS0_17basic_string_viewIT_EE: push r15 push r14 push r13 push r12 push rbx sub rsp, 20h mov r14, rdx mov r12, rsi mov rbx, rdi inc rbx add r14, rsi lea r15, [rsp+48h+var_40] loc_97BA5: mov r13, r12 mov [rsp+48h+var_40], r14 mov [rsp+48h+var_38], 0 mov [rsp+48h+var_30], 0 mov rsi, r14 sub rsi, r12 mov rdi, r12 mov rdx, r15 call _ZN3fmt3v106detail18for_each_codepointIZNS1_11find_escapeEPKcS4_EUljNS0_17basic_string_viewIcEEE_EEvS6_T_; fmt::v10::detail::for_each_codepoint<fmt::v10::detail::find_escape(char const*,char const*)::{lambda(uint,fmt::v10::basic_string_view<char>)#1}>(fmt::v10::basic_string_view<char>,fmt::v10::detail::find_escape(char const*,char const*)::{lambda(uint,fmt::v10::basic_string_view<char>)#1}) mov rax, rbx sub rax, r12 mov rcx, [rsp+48h+var_40] mov r12, [rsp+48h+var_38] add rax, rcx cmp r13, rcx cmovnz rbx, rax test r12, r12 jz short loc_97C01 mov rdi, rbx mov rsi, r15 call _ZN3fmt3v106detail16write_escaped_cpINS1_17counting_iteratorEcEET_S4_RKNS1_18find_escape_resultIT0_EE; fmt::v10::detail::write_escaped_cp<fmt::v10::detail::counting_iterator,char>(fmt::v10::detail::counting_iterator,fmt::v10::detail::find_escape_result<char> const&) mov rbx, rax cmp r12, r14 jnz short loc_97BA5 loc_97C01: inc rbx mov rax, rbx add rsp, 20h pop rbx pop r12 pop r13 pop r14 pop r15 retn
long long fmt::v10::detail::write_escaped_string<char,fmt::v10::detail::counting_iterator>( long long a1, long long a2, long long a3) { long long v3; // r12 long long v4; // rbx long long v5; // r14 long long v6; // r13 long long v7; // rax long long v8; // rax long long v10; // [rsp+8h] [rbp-40h] BYREF long long v11; // [rsp+10h] [rbp-38h] int v12; // [rsp+18h] [rbp-30h] v3 = a2; v4 = a1 + 1; v5 = a2 + a3; do { v6 = v3; v10 = v5; v11 = 0LL; v12 = 0; fmt::v10::detail::for_each_codepoint<fmt::v10::detail::find_escape(char const*,char const*)::{lambda(unsigned int,fmt::v10::basic_string_view<char>)#1}>( v3, v5 - v3, &v10); v7 = v4 - v3; v3 = v11; v8 = v10 + v7; if ( v6 != v10 ) v4 = v8; if ( !v11 ) break; v4 = fmt::v10::detail::write_escaped_cp<fmt::v10::detail::counting_iterator,char>(v4, &v10); } while ( v3 != v5 ); return v4 + 1; }
write_escaped_string<char,fmt::v10::detail::counting_iterator>: PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0x20 MOV R14,RDX MOV R12,RSI MOV RBX,RDI INC RBX ADD R14,RSI LEA R15,[RSP + 0x8] LAB_00197ba5: MOV R13,R12 MOV qword ptr [RSP + 0x8],R14 MOV qword ptr [RSP + 0x10],0x0 MOV dword ptr [RSP + 0x18],0x0 MOV RSI,R14 SUB RSI,R12 MOV RDI,R12 MOV RDX,R15 CALL 0x001980e5 MOV RAX,RBX SUB RAX,R12 MOV RCX,qword ptr [RSP + 0x8] MOV R12,qword ptr [RSP + 0x10] ADD RAX,RCX CMP R13,RCX CMOVNZ RBX,RAX TEST R12,R12 JZ 0x00197c01 MOV RDI,RBX MOV RSI,R15 CALL 0x00197fac MOV RBX,RAX CMP R12,R14 JNZ 0x00197ba5 LAB_00197c01: INC RBX MOV RAX,RBX ADD RSP,0x20 POP RBX POP R12 POP R13 POP R14 POP R15 RET
/* fmt::v10::detail::counting_iterator fmt::v10::detail::write_escaped_string<char, fmt::v10::detail::counting_iterator>(fmt::v10::detail::counting_iterator, fmt::v10::basic_string_view<char>) */ detail * __thiscall fmt::v10::detail::write_escaped_string<char,fmt::v10::detail::counting_iterator> (detail *this,detail *param_2,long param_3) { detail *pdVar1; detail *pdVar2; detail *local_40; detail *local_38; int4 local_30; this = this + 1; pdVar2 = param_2 + param_3; do { local_38 = (detail *)0x0; local_30 = 0; local_40 = pdVar2; for_each_codepoint<fmt::v10::detail::find_escape(char_const*,char_const*)::_lambda(unsigned_int,fmt::v10::basic_string_view<char>)_1_> (param_2,(long)pdVar2 - (long)param_2,&local_40); pdVar1 = local_38; if (param_2 != local_40) { this = local_40 + ((long)this - (long)param_2); } if (local_38 == (detail *)0x0) break; this = (detail *)write_escaped_cp<fmt::v10::detail::counting_iterator,char>(this,&local_40); param_2 = pdVar1; } while (pdVar1 != pdVar2); return this + 1; }
34,757
multi_alloc_root
eloqsql/mysys/my_alloc.c
void *multi_alloc_root(MEM_ROOT *root, ...) { va_list args; char **ptr, *start, *res; size_t tot_length, length; DBUG_ENTER("multi_alloc_root"); /* We don't need to do DBUG_PRINT here as it will be done when alloc_root is called */ va_start(args, root); tot_length= 0; while ((ptr= va_arg(args, char **))) { length= va_arg(args, uint); tot_length+= ALIGN_SIZE(length); } va_end(args); if (!(start= (char*) alloc_root(root, tot_length))) DBUG_RETURN(0); /* purecov: inspected */ va_start(args, root); res= start; while ((ptr= va_arg(args, char **))) { *ptr= res; length= va_arg(args, uint); res+= ALIGN_SIZE(length); } va_end(args); DBUG_RETURN((void*) start); }
O0
c
multi_alloc_root: pushq %rbp movq %rsp, %rbp subq $0x170, %rsp # imm = 0x170 testb %al, %al je 0xed461 movaps %xmm0, -0xe0(%rbp) movaps %xmm1, -0xd0(%rbp) movaps %xmm2, -0xc0(%rbp) movaps %xmm3, -0xb0(%rbp) movaps %xmm4, -0xa0(%rbp) movaps %xmm5, -0x90(%rbp) movaps %xmm6, -0x80(%rbp) movaps %xmm7, -0x70(%rbp) movq %r9, -0xe8(%rbp) movq %r8, -0xf0(%rbp) movq %rcx, -0xf8(%rbp) movq %rdx, -0x100(%rbp) movq %rsi, -0x108(%rbp) movq %rdi, -0x10(%rbp) leaq -0x30(%rbp), %rax leaq -0x110(%rbp), %rcx movq %rcx, 0x10(%rax) leaq 0x10(%rbp), %rcx movq %rcx, 0x8(%rax) movl $0x30, 0x4(%rax) movl $0x8, (%rax) movq $0x0, -0x50(%rbp) leaq -0x30(%rbp), %rax movq %rax, -0x120(%rbp) movl -0x30(%rbp), %eax movl %eax, -0x114(%rbp) cmpl $0x28, %eax ja 0xed4ef movq -0x120(%rbp), %rcx movl -0x114(%rbp), %edx movslq %edx, %rax addq 0x10(%rcx), %rax addl $0x8, %edx movl %edx, (%rcx) movq %rax, -0x128(%rbp) jmp 0xed50c movq -0x120(%rbp), %rcx movq 0x8(%rcx), %rax movq %rax, %rdx addq $0x8, %rdx movq %rdx, 0x8(%rcx) movq %rax, -0x128(%rbp) movq -0x128(%rbp), %rax movq (%rax), %rax movq %rax, -0x38(%rbp) cmpq $0x0, %rax je 0xed5a6 leaq -0x30(%rbp), %rax movq %rax, -0x138(%rbp) movl -0x30(%rbp), %eax movl %eax, -0x12c(%rbp) cmpl $0x28, %eax ja 0xed55f movq -0x138(%rbp), %rcx movl -0x12c(%rbp), %edx movslq %edx, %rax addq 0x10(%rcx), %rax addl $0x8, %edx movl %edx, (%rcx) movq %rax, -0x140(%rbp) jmp 0xed57c movq -0x138(%rbp), %rcx movq 0x8(%rcx), %rax movq %rax, %rdx addq $0x8, %rdx movq %rdx, 0x8(%rcx) movq %rax, -0x140(%rbp) movq -0x140(%rbp), %rax movl (%rax), %eax movq %rax, -0x58(%rbp) movq -0x58(%rbp), %rax addq $0x8, %rax subq $0x1, %rax andq $-0x8, %rax addq -0x50(%rbp), %rax movq %rax, -0x50(%rbp) jmp 0xed4b4 leaq -0x30(%rbp), %rax movq -0x10(%rbp), %rdi movq -0x50(%rbp), %rsi callq 0xed170 movq %rax, -0x40(%rbp) cmpq $0x0, %rax jne 0xed5d0 jmp 0xed5c3 movq $0x0, -0x8(%rbp) jmp 0xed705 leaq -0x30(%rbp), %rax leaq -0x110(%rbp), %rcx movq %rcx, 0x10(%rax) leaq 0x10(%rbp), %rcx movq %rcx, 0x8(%rax) movl $0x30, 0x4(%rax) movl $0x8, (%rax) movq -0x40(%rbp), %rax movq %rax, -0x48(%rbp) leaq -0x30(%rbp), %rax movq %rax, -0x150(%rbp) movl -0x30(%rbp), %eax movl %eax, -0x144(%rbp) cmpl $0x28, %eax ja 0xed637 movq -0x150(%rbp), %rcx movl -0x144(%rbp), %edx movslq %edx, %rax addq 0x10(%rcx), %rax addl $0x8, %edx movl %edx, (%rcx) movq %rax, -0x158(%rbp) jmp 0xed654 movq -0x150(%rbp), %rcx movq 0x8(%rcx), %rax movq %rax, %rdx addq $0x8, %rdx movq %rdx, 0x8(%rcx) movq %rax, -0x158(%rbp) movq -0x158(%rbp), %rax movq (%rax), %rax movq %rax, -0x38(%rbp) cmpq $0x0, %rax je 0xed6f9 movq -0x48(%rbp), %rcx movq -0x38(%rbp), %rax movq %rcx, (%rax) leaq -0x30(%rbp), %rax movq %rax, -0x168(%rbp) movl -0x30(%rbp), %eax movl %eax, -0x15c(%rbp) cmpl $0x28, %eax ja 0xed6b2 movq -0x168(%rbp), %rcx movl -0x15c(%rbp), %edx movslq %edx, %rax addq 0x10(%rcx), %rax addl $0x8, %edx movl %edx, (%rcx) movq %rax, -0x170(%rbp) jmp 0xed6cf movq -0x168(%rbp), %rcx movq 0x8(%rcx), %rax movq %rax, %rdx addq $0x8, %rdx movq %rdx, 0x8(%rcx) movq %rax, -0x170(%rbp) movq -0x170(%rbp), %rax movl (%rax), %eax movq %rax, -0x58(%rbp) movq -0x58(%rbp), %rax addq $0x8, %rax subq $0x1, %rax andq $-0x8, %rax addq -0x48(%rbp), %rax movq %rax, -0x48(%rbp) jmp 0xed5fc leaq -0x30(%rbp), %rax movq -0x40(%rbp), %rax movq %rax, -0x8(%rbp) movq -0x8(%rbp), %rax addq $0x170, %rsp # imm = 0x170 popq %rbp retq nopw %cs:(%rax,%rax)
multi_alloc_root: push rbp mov rbp, rsp sub rsp, 170h test al, al jz short loc_ED461 movaps [rbp+var_E0], xmm0 movaps [rbp+var_D0], xmm1 movaps [rbp+var_C0], xmm2 movaps [rbp+var_B0], xmm3 movaps [rbp+var_A0], xmm4 movaps [rbp+var_90], xmm5 movaps [rbp+var_80], xmm6 movaps [rbp+var_70], xmm7 loc_ED461: mov [rbp+var_E8], r9 mov [rbp+var_F0], r8 mov [rbp+var_F8], rcx mov [rbp+var_100], rdx mov [rbp+var_108], rsi mov [rbp+var_10], rdi lea rax, [rbp+var_30] lea rcx, [rbp+var_110] mov [rax+10h], rcx lea rcx, [rbp+arg_0] mov [rax+8], rcx mov dword ptr [rax+4], 30h ; '0' mov dword ptr [rax], 8 mov [rbp+var_50], 0 loc_ED4B4: lea rax, [rbp+var_30] mov [rbp+var_120], rax mov eax, [rbp+var_30] mov [rbp+var_114], eax cmp eax, 28h ; '(' ja short loc_ED4EF mov rcx, [rbp+var_120] mov edx, [rbp+var_114] movsxd rax, edx add rax, [rcx+10h] add edx, 8 mov [rcx], edx mov [rbp+var_128], rax jmp short loc_ED50C loc_ED4EF: mov rcx, [rbp+var_120] mov rax, [rcx+8] mov rdx, rax add rdx, 8 mov [rcx+8], rdx mov [rbp+var_128], rax loc_ED50C: mov rax, [rbp+var_128] mov rax, [rax] mov [rbp+var_38], rax cmp rax, 0 jz loc_ED5A6 lea rax, [rbp+var_30] mov [rbp+var_138], rax mov eax, [rbp+var_30] mov [rbp+var_12C], eax cmp eax, 28h ; '(' ja short loc_ED55F mov rcx, [rbp+var_138] mov edx, [rbp+var_12C] movsxd rax, edx add rax, [rcx+10h] add edx, 8 mov [rcx], edx mov [rbp+var_140], rax jmp short loc_ED57C loc_ED55F: mov rcx, [rbp+var_138] mov rax, [rcx+8] mov rdx, rax add rdx, 8 mov [rcx+8], rdx mov [rbp+var_140], rax loc_ED57C: mov rax, [rbp+var_140] mov eax, [rax] mov [rbp+var_58], rax mov rax, [rbp+var_58] add rax, 8 sub rax, 1 and rax, 0FFFFFFFFFFFFFFF8h add rax, [rbp+var_50] mov [rbp+var_50], rax jmp loc_ED4B4 loc_ED5A6: lea rax, [rbp+var_30] mov rdi, [rbp+var_10] mov rsi, [rbp+var_50] call alloc_root mov [rbp+var_40], rax cmp rax, 0 jnz short loc_ED5D0 jmp short $+2 loc_ED5C3: mov [rbp+var_8], 0 jmp loc_ED705 loc_ED5D0: lea rax, [rbp+var_30] lea rcx, [rbp+var_110] mov [rax+10h], rcx lea rcx, [rbp+arg_0] mov [rax+8], rcx mov dword ptr [rax+4], 30h ; '0' mov dword ptr [rax], 8 mov rax, [rbp+var_40] mov [rbp+var_48], rax loc_ED5FC: lea rax, [rbp+var_30] mov [rbp+var_150], rax mov eax, [rbp+var_30] mov [rbp+var_144], eax cmp eax, 28h ; '(' ja short loc_ED637 mov rcx, [rbp+var_150] mov edx, [rbp+var_144] movsxd rax, edx add rax, [rcx+10h] add edx, 8 mov [rcx], edx mov [rbp+var_158], rax jmp short loc_ED654 loc_ED637: mov rcx, [rbp+var_150] mov rax, [rcx+8] mov rdx, rax add rdx, 8 mov [rcx+8], rdx mov [rbp+var_158], rax loc_ED654: mov rax, [rbp+var_158] mov rax, [rax] mov [rbp+var_38], rax cmp rax, 0 jz loc_ED6F9 mov rcx, [rbp+var_48] mov rax, [rbp+var_38] mov [rax], rcx lea rax, [rbp+var_30] mov [rbp+var_168], rax mov eax, [rbp+var_30] mov [rbp+var_15C], eax cmp eax, 28h ; '(' ja short loc_ED6B2 mov rcx, [rbp+var_168] mov edx, [rbp+var_15C] movsxd rax, edx add rax, [rcx+10h] add edx, 8 mov [rcx], edx mov [rbp+var_170], rax jmp short loc_ED6CF loc_ED6B2: mov rcx, [rbp+var_168] mov rax, [rcx+8] mov rdx, rax add rdx, 8 mov [rcx+8], rdx mov [rbp+var_170], rax loc_ED6CF: mov rax, [rbp+var_170] mov eax, [rax] mov [rbp+var_58], rax mov rax, [rbp+var_58] add rax, 8 sub rax, 1 and rax, 0FFFFFFFFFFFFFFF8h add rax, [rbp+var_48] mov [rbp+var_48], rax jmp loc_ED5FC loc_ED6F9: lea rax, [rbp+var_30] mov rax, [rbp+var_40] mov [rbp+var_8], rax loc_ED705: mov rax, [rbp+var_8] add rsp, 170h pop rbp retn
char * multi_alloc_root( _QWORD **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 *v15; // rax char *v16; // rax char *v17; // rax char *v18; // rax char v20; // [rsp+60h] [rbp-110h] BYREF long long v21; // [rsp+68h] [rbp-108h] long long v22; // [rsp+70h] [rbp-100h] long long v23; // [rsp+78h] [rbp-F8h] long long v24; // [rsp+80h] [rbp-F0h] long long v25; // [rsp+88h] [rbp-E8h] __m128 v26; // [rsp+90h] [rbp-E0h] __m128 v27; // [rsp+A0h] [rbp-D0h] __m128 v28; // [rsp+B0h] [rbp-C0h] __m128 v29; // [rsp+C0h] [rbp-B0h] __m128 v30; // [rsp+D0h] [rbp-A0h] __m128 v31; // [rsp+E0h] [rbp-90h] __m128 v32; // [rsp+F0h] [rbp-80h] __m128 v33; // [rsp+100h] [rbp-70h] long long v34; // [rsp+118h] [rbp-58h] long long i; // [rsp+120h] [rbp-50h] char *j; // [rsp+128h] [rbp-48h] char *v37; // [rsp+130h] [rbp-40h] char **v38; // [rsp+138h] [rbp-38h] int v39; // [rsp+140h] [rbp-30h] int v40; // [rsp+144h] [rbp-2Ch] char *v41; // [rsp+148h] [rbp-28h] char *v42; // [rsp+150h] [rbp-20h] _QWORD **v43; // [rsp+160h] [rbp-10h] v26 = a7; v27 = a8; v28 = a9; v29 = a10; v30 = a11; v31 = a12; v32 = a13; v33 = a14; v25 = a6; v24 = a5; v23 = a4; v22 = a3; v21 = a2; v43 = a1; v42 = &v20; v41 = &a15; v40 = 48; v39 = 8; for ( i = 0LL; ; i += (v34 + 7) & 0xFFFFFFFFFFFFFFF8LL ) { if ( (unsigned int)v39 > 0x28 ) { v15 = v41; v41 += 8; } else { v15 = &v42[v39]; v39 += 8; } v38 = *(char ***)v15; if ( !v38 ) break; if ( (unsigned int)v39 > 0x28 ) { v16 = v41; v41 += 8; } else { v16 = &v42[v39]; v39 += 8; } v34 = *(unsigned int *)v16; } v37 = alloc_root(v43, i); if ( !v37 ) return 0LL; v42 = &v20; v41 = &a15; v40 = 48; v39 = 8; for ( j = v37; ; j += (v34 + 7) & 0xFFFFFFFFFFFFFFF8LL ) { if ( (unsigned int)v39 > 0x28 ) { v17 = v41; v41 += 8; } else { v17 = &v42[v39]; v39 += 8; } v38 = *(char ***)v17; if ( !v38 ) break; *v38 = j; if ( (unsigned int)v39 > 0x28 ) { v18 = v41; v41 += 8; } else { v18 = &v42[v39]; v39 += 8; } v34 = *(unsigned int *)v18; } return v37; }
multi_alloc_root: PUSH RBP MOV RBP,RSP SUB RSP,0x170 TEST AL,AL JZ 0x001ed461 MOVAPS xmmword ptr [RBP + -0xe0],XMM0 MOVAPS xmmword ptr [RBP + -0xd0],XMM1 MOVAPS xmmword ptr [RBP + -0xc0],XMM2 MOVAPS xmmword ptr [RBP + -0xb0],XMM3 MOVAPS xmmword ptr [RBP + -0xa0],XMM4 MOVAPS xmmword ptr [RBP + -0x90],XMM5 MOVAPS xmmword ptr [RBP + -0x80],XMM6 MOVAPS xmmword ptr [RBP + -0x70],XMM7 LAB_001ed461: MOV qword ptr [RBP + -0xe8],R9 MOV qword ptr [RBP + -0xf0],R8 MOV qword ptr [RBP + -0xf8],RCX MOV qword ptr [RBP + -0x100],RDX MOV qword ptr [RBP + -0x108],RSI MOV qword ptr [RBP + -0x10],RDI LEA RAX,[RBP + -0x30] LEA RCX,[RBP + -0x110] MOV qword ptr [RAX + 0x10],RCX LEA RCX,[RBP + 0x10] MOV qword ptr [RAX + 0x8],RCX MOV dword ptr [RAX + 0x4],0x30 MOV dword ptr [RAX],0x8 MOV qword ptr [RBP + -0x50],0x0 LAB_001ed4b4: LEA RAX,[RBP + -0x30] MOV qword ptr [RBP + -0x120],RAX MOV EAX,dword ptr [RBP + -0x30] MOV dword ptr [RBP + -0x114],EAX CMP EAX,0x28 JA 0x001ed4ef MOV RCX,qword ptr [RBP + -0x120] MOV EDX,dword ptr [RBP + -0x114] MOVSXD RAX,EDX ADD RAX,qword ptr [RCX + 0x10] ADD EDX,0x8 MOV dword ptr [RCX],EDX MOV qword ptr [RBP + -0x128],RAX JMP 0x001ed50c LAB_001ed4ef: MOV RCX,qword ptr [RBP + -0x120] MOV RAX,qword ptr [RCX + 0x8] MOV RDX,RAX ADD RDX,0x8 MOV qword ptr [RCX + 0x8],RDX MOV qword ptr [RBP + -0x128],RAX LAB_001ed50c: MOV RAX,qword ptr [RBP + -0x128] MOV RAX,qword ptr [RAX] MOV qword ptr [RBP + -0x38],RAX CMP RAX,0x0 JZ 0x001ed5a6 LEA RAX,[RBP + -0x30] MOV qword ptr [RBP + -0x138],RAX MOV EAX,dword ptr [RBP + -0x30] MOV dword ptr [RBP + -0x12c],EAX CMP EAX,0x28 JA 0x001ed55f MOV RCX,qword ptr [RBP + -0x138] MOV EDX,dword ptr [RBP + -0x12c] MOVSXD RAX,EDX ADD RAX,qword ptr [RCX + 0x10] ADD EDX,0x8 MOV dword ptr [RCX],EDX MOV qword ptr [RBP + -0x140],RAX JMP 0x001ed57c LAB_001ed55f: MOV RCX,qword ptr [RBP + -0x138] MOV RAX,qword ptr [RCX + 0x8] MOV RDX,RAX ADD RDX,0x8 MOV qword ptr [RCX + 0x8],RDX MOV qword ptr [RBP + -0x140],RAX LAB_001ed57c: MOV RAX,qword ptr [RBP + -0x140] MOV EAX,dword ptr [RAX] MOV qword ptr [RBP + -0x58],RAX MOV RAX,qword ptr [RBP + -0x58] ADD RAX,0x8 SUB RAX,0x1 AND RAX,-0x8 ADD RAX,qword ptr [RBP + -0x50] MOV qword ptr [RBP + -0x50],RAX JMP 0x001ed4b4 LAB_001ed5a6: LEA RAX,[RBP + -0x30] MOV RDI,qword ptr [RBP + -0x10] MOV RSI,qword ptr [RBP + -0x50] CALL 0x001ed170 MOV qword ptr [RBP + -0x40],RAX CMP RAX,0x0 JNZ 0x001ed5d0 JMP 0x001ed5c3 LAB_001ed5c3: MOV qword ptr [RBP + -0x8],0x0 JMP 0x001ed705 LAB_001ed5d0: LEA RAX,[RBP + -0x30] LEA RCX,[RBP + -0x110] MOV qword ptr [RAX + 0x10],RCX LEA RCX,[RBP + 0x10] MOV qword ptr [RAX + 0x8],RCX MOV dword ptr [RAX + 0x4],0x30 MOV dword ptr [RAX],0x8 MOV RAX,qword ptr [RBP + -0x40] MOV qword ptr [RBP + -0x48],RAX LAB_001ed5fc: LEA RAX,[RBP + -0x30] MOV qword ptr [RBP + -0x150],RAX MOV EAX,dword ptr [RBP + -0x30] MOV dword ptr [RBP + -0x144],EAX CMP EAX,0x28 JA 0x001ed637 MOV RCX,qword ptr [RBP + -0x150] MOV EDX,dword ptr [RBP + -0x144] MOVSXD RAX,EDX ADD RAX,qword ptr [RCX + 0x10] ADD EDX,0x8 MOV dword ptr [RCX],EDX MOV qword ptr [RBP + -0x158],RAX JMP 0x001ed654 LAB_001ed637: MOV RCX,qword ptr [RBP + -0x150] MOV RAX,qword ptr [RCX + 0x8] MOV RDX,RAX ADD RDX,0x8 MOV qword ptr [RCX + 0x8],RDX MOV qword ptr [RBP + -0x158],RAX LAB_001ed654: MOV RAX,qword ptr [RBP + -0x158] MOV RAX,qword ptr [RAX] MOV qword ptr [RBP + -0x38],RAX CMP RAX,0x0 JZ 0x001ed6f9 MOV RCX,qword ptr [RBP + -0x48] MOV RAX,qword ptr [RBP + -0x38] MOV qword ptr [RAX],RCX LEA RAX,[RBP + -0x30] MOV qword ptr [RBP + -0x168],RAX MOV EAX,dword ptr [RBP + -0x30] MOV dword ptr [RBP + -0x15c],EAX CMP EAX,0x28 JA 0x001ed6b2 MOV RCX,qword ptr [RBP + -0x168] MOV EDX,dword ptr [RBP + -0x15c] MOVSXD RAX,EDX ADD RAX,qword ptr [RCX + 0x10] ADD EDX,0x8 MOV dword ptr [RCX],EDX MOV qword ptr [RBP + -0x170],RAX JMP 0x001ed6cf LAB_001ed6b2: MOV RCX,qword ptr [RBP + -0x168] MOV RAX,qword ptr [RCX + 0x8] MOV RDX,RAX ADD RDX,0x8 MOV qword ptr [RCX + 0x8],RDX MOV qword ptr [RBP + -0x170],RAX LAB_001ed6cf: MOV RAX,qword ptr [RBP + -0x170] MOV EAX,dword ptr [RAX] MOV qword ptr [RBP + -0x58],RAX MOV RAX,qword ptr [RBP + -0x58] ADD RAX,0x8 SUB RAX,0x1 AND RAX,-0x8 ADD RAX,qword ptr [RBP + -0x48] MOV qword ptr [RBP + -0x48],RAX JMP 0x001ed5fc LAB_001ed6f9: LEA RAX,[RBP + -0x30] MOV RAX,qword ptr [RBP + -0x40] MOV qword ptr [RBP + -0x8],RAX LAB_001ed705: MOV RAX,qword ptr [RBP + -0x8] ADD RSP,0x170 POP RBP RET
/* WARNING: Restarted to delay deadcode elimination for space: stack */ long multi_alloc_root(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; uint *local_178; uint *local_160; uint *local_148; uint *local_130; uint local_118 [2]; int8 local_110; int8 local_108; int8 local_100; int8 local_f8; int8 local_f0; int8 local_e8; int8 local_d8; int8 local_c8; int8 local_b8; int8 local_a8; int8 local_98; int8 local_88; int8 local_78; ulong local_60; long local_58; long local_50; long local_40; uint local_38; int4 local_34; uint *local_30; uint *local_28; int8 local_18; long local_10; if (in_AL != '\0') { local_e8 = param_1; local_d8 = param_2; local_c8 = param_3; local_b8 = param_4; local_a8 = param_5; local_98 = param_6; local_88 = param_7; local_78 = param_8; } local_28 = local_118; local_30 = (uint *)&stack0x00000008; local_34 = 0x30; local_38 = 8; local_58 = 0; while( true ) { if (local_38 < 0x29) { local_130 = (uint *)((long)local_28 + (long)(int)local_38); local_38 = local_38 + 8; } else { local_130 = local_30; local_30 = local_30 + 2; } local_40 = *(long *)local_130; if (local_40 == 0) break; if (local_38 < 0x29) { local_148 = (uint *)((long)local_28 + (long)(int)local_38); local_38 = local_38 + 8; } else { local_148 = local_30; local_30 = local_30 + 2; } local_60 = (ulong)*local_148; local_58 = (local_60 + 7 & 0xfffffffffffffff8) + local_58; } local_110 = param_10; local_108 = param_11; local_100 = param_12; local_f8 = param_13; local_f0 = param_14; local_18 = param_9; local_10 = alloc_root(param_9,local_58); if (local_10 == 0) { local_10 = 0; } else { local_30 = (uint *)&stack0x00000008; local_38 = 8; local_50 = local_10; while( true ) { if (local_38 < 0x29) { local_160 = (uint *)((long)local_118 + (long)(int)local_38); local_38 = local_38 + 8; } else { local_160 = local_30; local_30 = local_30 + 2; } if (*(long **)local_160 == (long *)0x0) break; **(long **)local_160 = local_50; if (local_38 < 0x29) { local_178 = (uint *)((long)local_118 + (long)(int)local_38); local_38 = local_38 + 8; } else { local_178 = local_30; local_30 = local_30 + 2; } local_50 = ((ulong)*local_178 + 7 & 0xfffffffffffffff8) + local_50; } } return local_10; }
34,758
js_proxy_has
bluesky950520[P]quickjs/quickjs.c
static int js_proxy_has(JSContext *ctx, JSValue obj, JSAtom atom) { JSProxyData *s; JSValue method, ret1, atom_val; int ret, res; JSObject *p; JSValue args[2]; BOOL res2; s = get_proxy_method(ctx, &method, obj, JS_ATOM_has); if (!s) return -1; if (JS_IsUndefined(method)) return JS_HasProperty(ctx, s->target, atom); atom_val = JS_AtomToValue(ctx, atom); if (JS_IsException(atom_val)) { JS_FreeValue(ctx, method); return -1; } args[0] = s->target; args[1] = atom_val; ret1 = JS_CallFree(ctx, method, s->handler, 2, args); JS_FreeValue(ctx, atom_val); if (JS_IsException(ret1)) return -1; ret = JS_ToBoolFree(ctx, ret1); if (!ret) { JSPropertyDescriptor desc; p = JS_VALUE_GET_OBJ(s->target); res = JS_GetOwnPropertyInternal(ctx, &desc, p, atom); if (res < 0) return -1; if (res) { res2 = !(desc.flags & JS_PROP_CONFIGURABLE); js_free_desc(ctx, &desc); if (res2 || !p->extensible) { JS_ThrowTypeError(ctx, "proxy: inconsistent has"); return -1; } } } return ret; }
O1
c
js_proxy_has: pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x88, %rsp movl %ecx, %r14d movq %rdx, %rcx movq %rsi, %rdx movq %rdi, %rbx leaq 0x18(%rsp), %rsi movl $0x64, %r8d callq 0x3c7cc movl $0xffffffff, %ebp # imm = 0xFFFFFFFF testq %rax, %rax je 0x4e3f6 movq %rax, %r15 movq 0x20(%rsp), %r12 cmpl $0x3, %r12d je 0x4e40a movq %rbx, %rdi movl %r14d, 0xc(%rsp) movl %r14d, %esi xorl %edx, %edx callq 0x1fb46 movq %rdx, %r14 cmpl $0x6, %r14d jne 0x4e33a movq 0x18(%rsp), %rsi movq 0x18(%rbx), %rdi movq %r12, %rdx callq 0x1ccb2 jmp 0x4e3f6 movq %rax, %r13 movups (%r15), %xmm0 leaq 0x60(%rsp), %rax movaps %xmm0, (%rax) movq %r13, 0x10(%rax) movq %r14, 0x18(%rax) movq 0x18(%rsp), %rsi movq 0x10(%r15), %rcx movq 0x18(%r15), %r8 movq %rax, (%rsp) movq %rbx, %rdi movq %r12, %rdx movl $0x2, %r9d callq 0x22089 movq %rax, 0x10(%rsp) movq %rdx, %r12 movq 0x18(%rbx), %rdi movq %r13, %rsi movq %r14, %rdx callq 0x1ccb2 cmpl $0x6, %r12d je 0x4e3f6 movq %rbx, %rdi movq 0x10(%rsp), %rsi movq %r12, %rdx callq 0x220f9 movl %eax, %ebp testl %eax, %eax jne 0x4e3f6 movq (%r15), %r14 leaq 0x28(%rsp), %rsi movq %rbx, %rdi movq %r14, %rdx movl 0xc(%rsp), %ecx callq 0x22fc5 testl %eax, %eax js 0x4e3f1 je 0x4e3f6 leaq 0x28(%rsp), %rsi movb (%rsi), %r15b movq %rbx, %rdi callq 0x3ccaf testb $0x1, %r15b je 0x4e3e0 testb $0x1, 0x5(%r14) jne 0x4e3f6 leaq 0x5063a(%rip), %rsi # 0x9ea21 movq %rbx, %rdi xorl %eax, %eax callq 0x21953 movl $0xffffffff, %ebp # imm = 0xFFFFFFFF movl %ebp, %eax addq $0x88, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq movq (%r15), %rsi movq 0x8(%r15), %rdx movq %rbx, %rdi movl %r14d, %ecx addq $0x88, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp jmp 0xf6ca
js_proxy_has: push rbp push r15 push r14 push r13 push r12 push rbx sub rsp, 88h mov r14d, ecx mov rcx, rdx mov rdx, rsi mov rbx, rdi lea rsi, [rsp+0B8h+var_A0] mov r8d, 64h ; 'd' call get_proxy_method mov ebp, 0FFFFFFFFh test rax, rax jz loc_4E3F6 mov r15, rax mov r12, [rsp+0B8h+var_98] cmp r12d, 3 jz loc_4E40A mov rdi, rbx mov [rsp+0B8h+var_AC], r14d mov esi, r14d xor edx, edx call __JS_AtomToValue mov r14, rdx cmp r14d, 6 jnz short loc_4E33A mov rsi, [rsp+0B8h+var_A0] mov rdi, [rbx+18h] mov rdx, r12 call JS_FreeValueRT jmp loc_4E3F6 loc_4E33A: mov r13, rax movups xmm0, xmmword ptr [r15] lea rax, [rsp+0B8h+var_58] movaps xmmword ptr [rax], xmm0 mov [rax+10h], r13 mov [rax+18h], r14 mov rsi, [rsp+0B8h+var_A0] mov rcx, [r15+10h] mov r8, [r15+18h] mov [rsp+0B8h+var_B8], rax mov rdi, rbx mov rdx, r12 mov r9d, 2 call JS_CallFree mov [rsp+0B8h+var_A8], rax mov r12, rdx mov rdi, [rbx+18h] mov rsi, r13 mov rdx, r14 call JS_FreeValueRT cmp r12d, 6 jz short loc_4E3F6 mov rdi, rbx mov rsi, [rsp+0B8h+var_A8] mov rdx, r12 call JS_ToBoolFree mov ebp, eax test eax, eax jnz short loc_4E3F6 mov r14, [r15] lea rsi, [rsp+0B8h+var_90] mov rdi, rbx mov rdx, r14 mov ecx, [rsp+0B8h+var_AC] call JS_GetOwnPropertyInternal test eax, eax js short loc_4E3F1 jz short loc_4E3F6 lea rsi, [rsp+0B8h+var_90] mov r15b, [rsi] mov rdi, rbx call js_free_desc test r15b, 1 jz short loc_4E3E0 test byte ptr [r14+5], 1 jnz short loc_4E3F6 loc_4E3E0: lea rsi, aProxyInconsist_5; "proxy: inconsistent has" mov rdi, rbx xor eax, eax call JS_ThrowTypeError loc_4E3F1: mov ebp, 0FFFFFFFFh loc_4E3F6: mov eax, ebp add rsp, 88h pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn loc_4E40A: mov rsi, [r15] mov rdx, [r15+8] mov rdi, rbx mov ecx, r14d add rsp, 88h pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp jmp JS_HasProperty
long long js_proxy_has( long long a1, long long a2, long long a3, unsigned int a4, __m128 a5, __m128 a6, __m128 a7, __m128 a8, __m128 a9, __m128 a10, __m128 a11, __m128 a12, long long a13, long long a14) { long long *proxy_method; // rax unsigned int v16; // ebp long long *v17; // r15 long long v18; // r12 long long v19; // rax long long v20; // rdx long long v21; // r14 _DWORD *v22; // r13 __m128 v23; // xmm0 long long v24; // rdx long long v25; // r12 long long v26; // r14 int OwnPropertyInternal; // eax char v28; // r15 long long v29; // rdx long long v30; // rcx long long v31; // r8 long long v32; // r9 __m128 v33; // xmm4 __m128 v34; // xmm5 char v36; // [rsp+0h] [rbp-B8h] int v37; // [rsp+Ch] [rbp-ACh] long long v38; // [rsp+10h] [rbp-A8h] _DWORD *v39; // [rsp+18h] [rbp-A0h] BYREF long long v40; // [rsp+20h] [rbp-98h] _BYTE v41[56]; // [rsp+28h] [rbp-90h] BYREF __m128 v42; // [rsp+60h] [rbp-58h] BYREF long long v43; // [rsp+70h] [rbp-48h] long long v44; // [rsp+78h] [rbp-40h] proxy_method = (long long *)get_proxy_method( a1, (unsigned long long *)&v39, a2, a3, 100LL, a14, a5, a6, a7, a8, a9, a10, a11, a12); v16 = -1; if ( !proxy_method ) return v16; v17 = proxy_method; v18 = v40; if ( (_DWORD)v40 != 3 ) { v37 = a4; v19 = _JS_AtomToValue(a1, a4, 0); v21 = v20; if ( (_DWORD)v20 == 6 ) { JS_FreeValueRT(*(_QWORD *)(a1 + 24), v39, v18); } else { v22 = (_DWORD *)v19; v23 = *(__m128 *)v17; v42 = *(__m128 *)v17; v43 = v19; v44 = v20; v38 = JS_CallFree(a1, v39, v18, v17[2], v17[3], 2, (long long)&v42); v25 = v24; JS_FreeValueRT(*(_QWORD *)(a1 + 24), v22, v21); if ( (_DWORD)v25 == 6 ) return v16; v16 = JS_ToBoolFree(a1, v38, v25); if ( v16 ) return v16; v26 = *v17; OwnPropertyInternal = JS_GetOwnPropertyInternal(a1, (long long)v41, *v17, v37); if ( OwnPropertyInternal >= 0 ) { if ( !OwnPropertyInternal ) return v16; v28 = v41[0]; js_free_desc(a1, (long long)v41); if ( (v28 & 1) != 0 && (*(_BYTE *)(v26 + 5) & 1) != 0 ) return v16; JS_ThrowTypeError( a1, (long long)"proxy: inconsistent has", v29, v30, v31, v32, v23, a6, a7, a8, v33, v34, a11, a12, v36); } return (unsigned int)-1; } return v16; } return JS_HasProperty(a1, *proxy_method, proxy_method[1], a4); }
js_proxy_has: PUSH RBP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0x88 MOV R14D,ECX MOV RCX,RDX MOV RDX,RSI MOV RBX,RDI LEA RSI,[RSP + 0x18] MOV R8D,0x64 CALL 0x0013c7cc MOV EBP,0xffffffff TEST RAX,RAX JZ 0x0014e3f6 MOV R15,RAX MOV R12,qword ptr [RSP + 0x20] CMP R12D,0x3 JZ 0x0014e40a MOV RDI,RBX MOV dword ptr [RSP + 0xc],R14D MOV ESI,R14D XOR EDX,EDX CALL 0x0011fb46 MOV R14,RDX CMP R14D,0x6 JNZ 0x0014e33a MOV RSI,qword ptr [RSP + 0x18] MOV RDI,qword ptr [RBX + 0x18] MOV RDX,R12 CALL 0x0011ccb2 JMP 0x0014e3f6 LAB_0014e33a: MOV R13,RAX MOVUPS XMM0,xmmword ptr [R15] LEA RAX,[RSP + 0x60] MOVAPS xmmword ptr [RAX],XMM0 MOV qword ptr [RAX + 0x10],R13 MOV qword ptr [RAX + 0x18],R14 MOV RSI,qword ptr [RSP + 0x18] MOV RCX,qword ptr [R15 + 0x10] MOV R8,qword ptr [R15 + 0x18] MOV qword ptr [RSP],RAX MOV RDI,RBX MOV RDX,R12 MOV R9D,0x2 CALL 0x00122089 MOV qword ptr [RSP + 0x10],RAX MOV R12,RDX MOV RDI,qword ptr [RBX + 0x18] MOV RSI,R13 MOV RDX,R14 CALL 0x0011ccb2 CMP R12D,0x6 JZ 0x0014e3f6 MOV RDI,RBX MOV RSI,qword ptr [RSP + 0x10] MOV RDX,R12 CALL 0x001220f9 MOV EBP,EAX TEST EAX,EAX JNZ 0x0014e3f6 MOV R14,qword ptr [R15] LEA RSI,[RSP + 0x28] MOV RDI,RBX MOV RDX,R14 MOV ECX,dword ptr [RSP + 0xc] CALL 0x00122fc5 TEST EAX,EAX JS 0x0014e3f1 JZ 0x0014e3f6 LEA RSI,[RSP + 0x28] MOV R15B,byte ptr [RSI] MOV RDI,RBX CALL 0x0013ccaf TEST R15B,0x1 JZ 0x0014e3e0 TEST byte ptr [R14 + 0x5],0x1 JNZ 0x0014e3f6 LAB_0014e3e0: LEA RSI,[0x19ea21] MOV RDI,RBX XOR EAX,EAX CALL 0x00121953 LAB_0014e3f1: MOV EBP,0xffffffff LAB_0014e3f6: MOV EAX,EBP ADD RSP,0x88 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET LAB_0014e40a: MOV RSI,qword ptr [R15] MOV RDX,qword ptr [R15 + 0x8] MOV RDI,RBX MOV ECX,R14D ADD RSP,0x88 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP JMP 0x0010f6ca
ulong js_proxy_has(long param_1,int8 param_2,int8 param_3,int4 param_4) { long lVar1; uint uVar2; int iVar3; long *plVar4; int8 uVar5; int8 uVar6; ulong uVar7; int1 auVar8 [16]; int8 local_a0; int8 local_98; byte local_90 [56]; int4 local_58; int4 uStack_54; int4 uStack_50; int4 uStack_4c; int1 local_48 [16]; plVar4 = (long *)get_proxy_method(param_1,&local_a0,param_2,param_3,100); uVar7 = 0xffffffff; if (plVar4 != (long *)0x0) { if ((int)local_98 == 3) { uVar7 = JS_HasProperty(param_1,*plVar4,plVar4[1],param_4); return uVar7; } local_48 = __JS_AtomToValue(param_1,param_4,0); uVar6 = local_48._8_8_; uVar5 = local_48._0_8_; if (local_48._8_4_ == 6) { JS_FreeValueRT(*(int8 *)(param_1 + 0x18),local_a0,local_98); } else { local_58 = (int4)*plVar4; uStack_54 = *(int4 *)((long)plVar4 + 4); uStack_50 = (int4)plVar4[1]; uStack_4c = *(int4 *)((long)plVar4 + 0xc); auVar8 = JS_CallFree(param_1,local_a0,local_98,plVar4[2],plVar4[3],2,&local_58); JS_FreeValueRT(*(int8 *)(param_1 + 0x18),uVar5,uVar6); if (auVar8._8_4_ != 6) { uVar2 = JS_ToBoolFree(param_1,auVar8._0_8_,auVar8._8_8_); uVar7 = (ulong)uVar2; if (uVar2 == 0) { lVar1 = *plVar4; iVar3 = JS_GetOwnPropertyInternal(param_1,local_90,lVar1,param_4); if (-1 < iVar3) { if (iVar3 == 0) { return uVar7; } js_free_desc(param_1); if (((local_90[0] & 1) != 0) && ((*(byte *)(lVar1 + 5) & 1) != 0)) { return uVar7; } JS_ThrowTypeError(param_1,"proxy: inconsistent has"); } uVar7 = 0xffffffff; } } } } return uVar7; }
34,759
js_proxy_has
bluesky950520[P]quickjs/quickjs.c
static int js_proxy_has(JSContext *ctx, JSValue obj, JSAtom atom) { JSProxyData *s; JSValue method, ret1, atom_val; int ret, res; JSObject *p; JSValue args[2]; BOOL res2; s = get_proxy_method(ctx, &method, obj, JS_ATOM_has); if (!s) return -1; if (JS_IsUndefined(method)) return JS_HasProperty(ctx, s->target, atom); atom_val = JS_AtomToValue(ctx, atom); if (JS_IsException(atom_val)) { JS_FreeValue(ctx, method); return -1; } args[0] = s->target; args[1] = atom_val; ret1 = JS_CallFree(ctx, method, s->handler, 2, args); JS_FreeValue(ctx, atom_val); if (JS_IsException(ret1)) return -1; ret = JS_ToBoolFree(ctx, ret1); if (!ret) { JSPropertyDescriptor desc; p = JS_VALUE_GET_OBJ(s->target); res = JS_GetOwnPropertyInternal(ctx, &desc, p, atom); if (res < 0) return -1; if (res) { res2 = !(desc.flags & JS_PROP_CONFIGURABLE); js_free_desc(ctx, &desc); if (res2 || !p->extensible) { JS_ThrowTypeError(ctx, "proxy: inconsistent has"); return -1; } } } return ret; }
O3
c
js_proxy_has: pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x88, %rsp movl %ecx, %r14d movq %rdx, %rcx movq %rsi, %rdx movq %rdi, %rbx leaq 0x18(%rsp), %rsi movl $0x64, %r8d callq 0x3dd9a movl $0xffffffff, %ebp # imm = 0xFFFFFFFF testq %rax, %rax je 0x505d8 movq %rax, %r15 movq 0x20(%rsp), %r12 cmpl $0x3, %r12d je 0x505b3 movq %rbx, %rdi movl %r14d, 0xc(%rsp) movl %r14d, %esi xorl %edx, %edx callq 0x20277 movq %rdx, %r14 cmpl $0x6, %r14d jne 0x504d8 cmpl $-0x9, %r12d jb 0x505d8 movq 0x18(%rsp), %rsi movq 0x18(%rbx), %rdi movl (%rsi), %eax leal -0x1(%rax), %ecx movl %ecx, (%rsi) cmpl $0x1, %eax jg 0x505d8 movq %r12, %rdx callq 0x20d90 jmp 0x505d8 movq %rax, %r13 movups (%r15), %xmm0 leaq 0x60(%rsp), %rax movaps %xmm0, (%rax) movq %r13, 0x10(%rax) movq %r14, 0x18(%rax) movq 0x18(%rsp), %rsi movq 0x10(%r15), %rcx movq 0x18(%r15), %r8 movq %rax, (%rsp) movq %rbx, %rdi movq %r12, %rdx movl $0x2, %r9d callq 0x228ab movq %rax, %rsi movq %rdx, %r12 cmpl $-0x9, %r14d jb 0x50546 movq 0x18(%rbx), %rdi movl (%r13), %eax leal -0x1(%rax), %ecx movl %ecx, (%r13) cmpl $0x1, %eax jg 0x50546 movq %rsi, 0x10(%rsp) movq %r13, %rsi movq %r14, %rdx callq 0x20d90 movq 0x10(%rsp), %rsi cmpl $0x6, %r12d je 0x505d8 movq %rbx, %rdi movq %r12, %rdx callq 0x2292e movl %eax, %ebp testl %eax, %eax jne 0x505d8 movq (%r15), %r14 leaq 0x28(%rsp), %rsi movq %rbx, %rdi movq %r14, %rdx movl 0xc(%rsp), %ecx callq 0x237bd testl %eax, %eax js 0x505ac je 0x505d6 leaq 0x28(%rsp), %rsi movb (%rsi), %bpl movq %rbx, %rdi callq 0x3e21f testb $0x1, %bpl je 0x5059b testb $0x1, 0x5(%r14) jne 0x505d6 leaq 0x51439(%rip), %rsi # 0xa19db movq %rbx, %rdi xorl %eax, %eax callq 0x2214f movl $0xffffffff, %ebp # imm = 0xFFFFFFFF jmp 0x505d8 movq (%r15), %rsi movq 0x8(%r15), %rdx movq %rbx, %rdi movl %r14d, %ecx addq $0x88, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp jmp 0xf89d xorl %ebp, %ebp movl %ebp, %eax addq $0x88, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq
js_proxy_has: push rbp push r15 push r14 push r13 push r12 push rbx sub rsp, 88h mov r14d, ecx mov rcx, rdx mov rdx, rsi mov rbx, rdi lea rsi, [rsp+0B8h+var_A0] mov r8d, 64h ; 'd' call get_proxy_method mov ebp, 0FFFFFFFFh test rax, rax jz loc_505D8 mov r15, rax mov r12, [rsp+0B8h+var_98] cmp r12d, 3 jz loc_505B3 mov rdi, rbx mov [rsp+0B8h+var_AC], r14d mov esi, r14d xor edx, edx call __JS_AtomToValue mov r14, rdx cmp r14d, 6 jnz short loc_504D8 cmp r12d, 0FFFFFFF7h jb loc_505D8 mov rsi, [rsp+0B8h+var_A0] mov rdi, [rbx+18h] mov eax, [rsi] lea ecx, [rax-1] mov [rsi], ecx cmp eax, 1 jg loc_505D8 mov rdx, r12 call js_free_value_rt jmp loc_505D8 loc_504D8: mov r13, rax movups xmm0, xmmword ptr [r15] lea rax, [rsp+0B8h+var_58] movaps xmmword ptr [rax], xmm0 mov [rax+10h], r13 mov [rax+18h], r14 mov rsi, [rsp+0B8h+var_A0] mov rcx, [r15+10h] mov r8, [r15+18h] mov [rsp+0B8h+var_B8], rax mov rdi, rbx mov rdx, r12 mov r9d, 2 call JS_CallFree mov rsi, rax mov r12, rdx cmp r14d, 0FFFFFFF7h jb short loc_50546 mov rdi, [rbx+18h] mov eax, [r13+0] lea ecx, [rax-1] mov [r13+0], ecx cmp eax, 1 jg short loc_50546 mov [rsp+0B8h+var_A8], rsi mov rsi, r13 mov rdx, r14 call js_free_value_rt mov rsi, [rsp+0B8h+var_A8] loc_50546: cmp r12d, 6 jz loc_505D8 mov rdi, rbx mov rdx, r12 call JS_ToBoolFree mov ebp, eax test eax, eax jnz short loc_505D8 mov r14, [r15] lea rsi, [rsp+0B8h+var_90] mov rdi, rbx mov rdx, r14 mov ecx, [rsp+0B8h+var_AC] call JS_GetOwnPropertyInternal test eax, eax js short loc_505AC jz short loc_505D6 lea rsi, [rsp+0B8h+var_90] mov bpl, [rsi] mov rdi, rbx call js_free_desc test bpl, 1 jz short loc_5059B test byte ptr [r14+5], 1 jnz short loc_505D6 loc_5059B: lea rsi, aProxyInconsist_5; "proxy: inconsistent has" mov rdi, rbx xor eax, eax call JS_ThrowTypeError loc_505AC: mov ebp, 0FFFFFFFFh jmp short loc_505D8 loc_505B3: mov rsi, [r15] mov rdx, [r15+8] mov rdi, rbx mov ecx, r14d add rsp, 88h pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp jmp JS_HasProperty loc_505D6: xor ebp, ebp loc_505D8: mov eax, ebp add rsp, 88h pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn
long long js_proxy_has( long long a1, long long a2, long long a3, unsigned int a4, __m128 a5, __m128 a6, __m128 a7, __m128 a8, __m128 a9, __m128 a10, __m128 a11, __m128 a12, long long a13, long long a14) { long long *proxy_method; // rax unsigned int v17; // ebp long long *v18; // r15 long long v19; // r12 long long v20; // rax long long v21; // rdx long long v22; // r8 long long v23; // r9 long long v24; // r14 _QWORD *v25; // rsi long long v26; // rdi int v27; // eax long long v28; // rcx _QWORD *v29; // r13 __m128 v30; // xmm0 long long v31; // rcx long long v32; // rsi long long v33; // r8 long long v34; // r9 long long v35; // rdx long long v36; // r12 long long v37; // rdi int v38; // eax long long v39; // r14 int v40; // eax long long v41; // rdx long long v42; // rcx long long v43; // r8 long long v44; // r9 char v45; // bp long long v46; // rdx long long v47; // rcx long long v48; // r8 long long v49; // r9 __m128 v50; // xmm4 __m128 v51; // xmm5 char v53; // [rsp+0h] [rbp-B8h] unsigned int v54; // [rsp+Ch] [rbp-ACh] _QWORD *v55; // [rsp+18h] [rbp-A0h] BYREF long long v56; // [rsp+20h] [rbp-98h] _QWORD v57[7]; // [rsp+28h] [rbp-90h] BYREF __m128 v58; // [rsp+60h] [rbp-58h] BYREF long long v59; // [rsp+70h] [rbp-48h] long long v60; // [rsp+78h] [rbp-40h] proxy_method = (long long *)get_proxy_method( a1, (unsigned long long *)&v55, a2, a3, 100LL, a14, a5, a6, a7, a8, a9, a10, a11, a12); v17 = -1; if ( !proxy_method ) return v17; v18 = proxy_method; v19 = v56; if ( (_DWORD)v56 == 3 ) return JS_HasProperty(a1, *proxy_method, proxy_method[1], a4); v54 = a4; v20 = _JS_AtomToValue(a1, a4, 0); v24 = v21; if ( (_DWORD)v21 == 6 ) { if ( (unsigned int)v19 >= 0xFFFFFFF7 ) { v25 = v55; v26 = *(_QWORD *)(a1 + 24); v27 = *(_DWORD *)v55; v28 = (unsigned int)(*(_DWORD *)v55 - 1); *(_DWORD *)v55 = v28; if ( v27 <= 1 ) js_free_value_rt(v26, v25, v19, v28, v22, v23); } return v17; } v29 = (_QWORD *)v20; v30 = *(__m128 *)v18; v58 = *(__m128 *)v18; v59 = v20; v60 = v21; v32 = JS_CallFree(a1, v55, v19, v18[2], v18[3], 2, (long long)&v58); v36 = v35; if ( (unsigned int)v24 >= 0xFFFFFFF7 ) { v37 = *(_QWORD *)(a1 + 24); v38 = *(_DWORD *)v29; v31 = (unsigned int)(*(_DWORD *)v29 - 1); *(_DWORD *)v29 = v31; if ( v38 <= 1 ) js_free_value_rt(v37, v29, v24, v31, v33, v34); } if ( (_DWORD)v36 == 6 ) return v17; v17 = JS_ToBoolFree(a1, v32, v36, v31, v33, v34); if ( v17 ) return v17; v39 = *v18; LOBYTE(v40) = JS_GetOwnPropertyInternal(a1, (long long)v57, *v18, v54); if ( v40 >= 0 ) { if ( !v40 ) return 0; v45 = v57[0]; js_free_desc(a1, v57, v41, v42, v43, v44); if ( (v45 & 1) != 0 && (*(_BYTE *)(v39 + 5) & 1) != 0 ) return 0; JS_ThrowTypeError( a1, (long long)"proxy: inconsistent has", v46, v47, v48, v49, v30, a6, a7, a8, v50, v51, a11, a12, v53); } return (unsigned int)-1; }
js_proxy_has: PUSH RBP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0x88 MOV R14D,ECX MOV RCX,RDX MOV RDX,RSI MOV RBX,RDI LEA RSI,[RSP + 0x18] MOV R8D,0x64 CALL 0x0013dd9a MOV EBP,0xffffffff TEST RAX,RAX JZ 0x001505d8 MOV R15,RAX MOV R12,qword ptr [RSP + 0x20] CMP R12D,0x3 JZ 0x001505b3 MOV RDI,RBX MOV dword ptr [RSP + 0xc],R14D MOV ESI,R14D XOR EDX,EDX CALL 0x00120277 MOV R14,RDX CMP R14D,0x6 JNZ 0x001504d8 CMP R12D,-0x9 JC 0x001505d8 MOV RSI,qword ptr [RSP + 0x18] MOV RDI,qword ptr [RBX + 0x18] MOV EAX,dword ptr [RSI] LEA ECX,[RAX + -0x1] MOV dword ptr [RSI],ECX CMP EAX,0x1 JG 0x001505d8 MOV RDX,R12 CALL 0x00120d90 JMP 0x001505d8 LAB_001504d8: MOV R13,RAX MOVUPS XMM0,xmmword ptr [R15] LEA RAX,[RSP + 0x60] MOVAPS xmmword ptr [RAX],XMM0 MOV qword ptr [RAX + 0x10],R13 MOV qword ptr [RAX + 0x18],R14 MOV RSI,qword ptr [RSP + 0x18] MOV RCX,qword ptr [R15 + 0x10] MOV R8,qword ptr [R15 + 0x18] MOV qword ptr [RSP],RAX MOV RDI,RBX MOV RDX,R12 MOV R9D,0x2 CALL 0x001228ab MOV RSI,RAX MOV R12,RDX CMP R14D,-0x9 JC 0x00150546 MOV RDI,qword ptr [RBX + 0x18] MOV EAX,dword ptr [R13] LEA ECX,[RAX + -0x1] MOV dword ptr [R13],ECX CMP EAX,0x1 JG 0x00150546 MOV qword ptr [RSP + 0x10],RSI MOV RSI,R13 MOV RDX,R14 CALL 0x00120d90 MOV RSI,qword ptr [RSP + 0x10] LAB_00150546: CMP R12D,0x6 JZ 0x001505d8 MOV RDI,RBX MOV RDX,R12 CALL 0x0012292e MOV EBP,EAX TEST EAX,EAX JNZ 0x001505d8 MOV R14,qword ptr [R15] LEA RSI,[RSP + 0x28] MOV RDI,RBX MOV RDX,R14 MOV ECX,dword ptr [RSP + 0xc] CALL 0x001237bd TEST EAX,EAX JS 0x001505ac JZ 0x001505d6 LEA RSI,[RSP + 0x28] MOV BPL,byte ptr [RSI] MOV RDI,RBX CALL 0x0013e21f TEST BPL,0x1 JZ 0x0015059b TEST byte ptr [R14 + 0x5],0x1 JNZ 0x001505d6 LAB_0015059b: LEA RSI,[0x1a19db] MOV RDI,RBX XOR EAX,EAX CALL 0x0012214f LAB_001505ac: MOV EBP,0xffffffff JMP 0x001505d8 LAB_001505b3: MOV RSI,qword ptr [R15] MOV RDX,qword ptr [R15 + 0x8] MOV RDI,RBX MOV ECX,R14D ADD RSP,0x88 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP JMP 0x0010f89d LAB_001505d6: XOR EBP,EBP LAB_001505d8: MOV EAX,EBP ADD RSP,0x88 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET
ulong js_proxy_has(long param_1,int8 param_2,int8 param_3,int4 param_4) { int8 uVar1; long lVar2; uint uVar3; int iVar4; long *plVar5; int *piVar6; int8 uVar7; ulong uVar8; int1 auVar9 [16]; int *local_a0; int8 local_98; byte local_90 [56]; int4 local_58; int4 uStack_54; int4 uStack_50; int4 uStack_4c; int1 local_48 [16]; plVar5 = (long *)get_proxy_method(param_1,&local_a0,param_2,param_3,100); if (plVar5 == (long *)0x0) { return 0xffffffff; } if ((uint)local_98 == 3) { uVar8 = JS_HasProperty(param_1,*plVar5,plVar5[1],param_4); return uVar8; } local_48 = __JS_AtomToValue(param_1,param_4,0); uVar7 = local_48._8_8_; piVar6 = local_48._0_8_; uVar3 = local_48._8_4_; if (uVar3 == 6) { if ((uint)local_98 < 0xfffffff7) { return 0xffffffff; } uVar7 = *(int8 *)(param_1 + 0x18); iVar4 = *local_a0; *local_a0 = iVar4 + -1; if (1 < iVar4) { return 0xffffffff; } js_free_value_rt(uVar7,local_a0,local_98); return 0xffffffff; } local_58 = (int4)*plVar5; uStack_54 = *(int4 *)((long)plVar5 + 4); uStack_50 = (int4)plVar5[1]; uStack_4c = *(int4 *)((long)plVar5 + 0xc); auVar9 = JS_CallFree(param_1,local_a0,local_98,plVar5[2],plVar5[3],2,&local_58); if (0xfffffff6 < uVar3) { uVar1 = *(int8 *)(param_1 + 0x18); iVar4 = *piVar6; *piVar6 = iVar4 + -1; if (iVar4 < 2) { js_free_value_rt(uVar1,piVar6,uVar7); } } if (auVar9._8_4_ == 6) { return 0xffffffff; } uVar3 = JS_ToBoolFree(param_1,auVar9._0_8_,auVar9._8_8_); if (uVar3 != 0) { return (ulong)uVar3; } lVar2 = *plVar5; iVar4 = JS_GetOwnPropertyInternal(param_1,local_90,lVar2,param_4); if (iVar4 < 0) { LAB_001505ac: uVar8 = 0xffffffff; } else { if (iVar4 != 0) { js_free_desc(param_1); if (((local_90[0] & 1) == 0) || ((*(byte *)(lVar2 + 5) & 1) == 0)) { JS_ThrowTypeError(param_1,"proxy: inconsistent has"); goto LAB_001505ac; } } uVar8 = 0; } return uVar8; }
34,760
myisam_log
eloqsql/storage/myisam/mi_log.c
void _myisam_log(enum myisam_log_commands command, MI_INFO *info, const uchar *buffert, uint length) { uchar buff[11]; int error,old_errno; ulong pid=(ulong) GETPID(); old_errno=my_errno; bzero(buff,sizeof(buff)); buff[0]=(char) command; mi_int2store(buff+1,info->dfile); mi_int4store(buff+3,pid); mi_int2store(buff+9,length); mysql_mutex_lock(&THR_LOCK_myisam); error=my_lock(myisam_log_file,F_WRLCK,0L,F_TO_EOF,MYF(MY_SEEK_NOT_DONE)); (void) mysql_file_write(myisam_log_file, buff, sizeof(buff), MYF(0)); (void) mysql_file_write(myisam_log_file, buffert, length, MYF(0)); if (!error) error=my_lock(myisam_log_file,F_UNLCK,0L,F_TO_EOF,MYF(MY_SEEK_NOT_DONE)); mysql_mutex_unlock(&THR_LOCK_myisam); my_errno=old_errno; }
O3
c
myisam_log: pushq %rbp movq %rsp, %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x68, %rsp movl %ecx, %r13d movq %rdx, -0x48(%rbp) movq %rsi, %r15 movl %edi, %r12d movq %fs:0x28, %rax movq %rax, -0x30(%rbp) cmpl $0x1, 0xb84024(%rip) # 0xc01cb8 jne 0x7dc9f movq 0xb84013(%rip), %rbx # 0xc01cb0 jmp 0x7dca7 callq 0xa2ec8 movq %rax, %rbx callq 0xa29fe movl (%rax), %eax movl %eax, -0x40(%rbp) movw $0x0, -0x34(%rbp) movb %r12b, -0x3b(%rbp) movl 0x1c0(%r15), %eax movb %al, -0x39(%rbp) movb %ah, -0x3a(%rbp) movb %bl, -0x35(%rbp) movb %bh, -0x36(%rbp) movl %ebx, %eax shrl $0x10, %eax movb %al, -0x37(%rbp) shrl $0x18, %ebx movb %bl, -0x38(%rbp) movl %r13d, %eax movb %al, -0x31(%rbp) movb %ah, -0x32(%rbp) leaq 0xb8cd84(%rip), %rax # 0xc0aa70 cmpq $0x0, 0x40(%rax) jne 0x7ddfe leaq 0xb8cd72(%rip), %rdi # 0xc0aa70 callq 0x29220 leaq 0x3096d6(%rip), %r14 # 0x3873e0 movl (%r14), %edi movl $0x20, %r8d movl $0x1, %esi xorl %edx, %edx xorl %ecx, %ecx callq 0xa0a30 movl %eax, %r15d movl (%r14), %ebx leaq 0x30a392(%rip), %rax # 0x3880c0 movq (%rax), %rax leaq -0x90(%rbp), %rdi movl %ebx, %esi movl $0x7, %edx callq *0x158(%rax) testq %rax, %rax jne 0x7de08 leaq -0x3b(%rbp), %rsi movl $0xb, %edx movl %ebx, %edi xorl %ecx, %ecx callq 0x2f004 movl (%r14), %ebx movl %r13d, %r12d leaq 0x30a353(%rip), %r13 # 0x3880c0 movq (%r13), %rax leaq -0x90(%rbp), %rdi movl %ebx, %esi movl $0x7, %edx callq *0x158(%rax) testq %rax, %rax jne 0x7de1b movl %ebx, %edi movq -0x48(%rbp), %rsi movq %r12, %rdx xorl %ecx, %ecx callq 0x2f004 testl %r15d, %r15d jne 0x7ddba movl (%r14), %edi movl $0x20, %r8d movl $0x2, %esi xorl %edx, %edx xorl %ecx, %ecx callq 0xa0a30 leaq 0xb8ccaf(%rip), %rax # 0xc0aa70 movq 0x40(%rax), %rdi testq %rdi, %rdi jne 0x7de31 leaq 0xb8cc9f(%rip), %rdi # 0xc0aa70 callq 0x291e0 callq 0xa29fe movl -0x40(%rbp), %ecx movl %ecx, (%rax) movq %fs:0x28, %rax cmpq -0x30(%rbp), %rax jne 0x7de3d addq $0x68, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq callq 0x2dc0d jmp 0x7dd03 leaq -0x3b(%rbp), %rdx movq %rax, %rdi movl %ebx, %esi callq 0x2dc2a jmp 0x7dd60 movq %rax, %rdi movq %r12, %rsi movl %ebx, %edx movq -0x48(%rbp), %rcx callq 0x2dca2 jmp 0x7dd9e movq (%r13), %rax callq *0x160(%rax) jmp 0x7ddca callq 0x29270
_myisam_log: push rbp mov rbp, rsp push r15 push r14 push r13 push r12 push rbx sub rsp, 68h mov r13d, ecx mov [rbp+var_48], rdx mov r15, rsi mov r12d, edi mov rax, fs:28h mov [rbp+var_30], rax cmp cs:log_type, 1 jnz short loc_7DC9F mov rbx, cs:myisam_pid jmp short loc_7DCA7 loc_7DC9F: call my_thread_dbug_id mov rbx, rax loc_7DCA7: call _my_thread_var mov eax, [rax] mov [rbp+var_40], eax mov [rbp+var_34], 0 mov [rbp+var_3B], r12b mov eax, [r15+1C0h] mov [rbp+var_39], al mov [rbp+var_3A], ah mov [rbp+var_35], bl mov [rbp+var_36], bh mov eax, ebx shr eax, 10h mov [rbp+var_37], al shr ebx, 18h mov [rbp+var_38], bl mov eax, r13d mov [rbp+var_31], al mov [rbp+var_32], ah lea rax, THR_LOCK_myisam cmp qword ptr [rax+40h], 0 jnz loc_7DDFE lea rdi, THR_LOCK_myisam call _pthread_mutex_lock loc_7DD03: lea r14, myisam_log_file mov edi, [r14] mov r8d, 20h ; ' ' mov esi, 1 xor edx, edx xor ecx, ecx call my_lock mov r15d, eax mov ebx, [r14] lea rax, PSI_server mov rax, [rax] lea rdi, [rbp+var_90] mov esi, ebx mov edx, 7 call qword ptr [rax+158h] test rax, rax jnz loc_7DE08 lea rsi, [rbp+var_3B] mov edx, 0Bh mov edi, ebx xor ecx, ecx call my_write loc_7DD60: mov ebx, [r14] mov r12d, r13d lea r13, PSI_server mov rax, [r13+0] lea rdi, [rbp+var_90] mov esi, ebx mov edx, 7 call qword ptr [rax+158h] test rax, rax jnz loc_7DE1B mov edi, ebx mov rsi, [rbp+var_48] mov rdx, r12 xor ecx, ecx call my_write loc_7DD9E: test r15d, r15d jnz short loc_7DDBA mov edi, [r14] mov r8d, 20h ; ' ' mov esi, 2 xor edx, edx xor ecx, ecx call my_lock loc_7DDBA: lea rax, THR_LOCK_myisam mov rdi, [rax+40h] test rdi, rdi jnz short loc_7DE31 loc_7DDCA: lea rdi, THR_LOCK_myisam call _pthread_mutex_unlock call _my_thread_var mov ecx, [rbp+var_40] mov [rax], ecx mov rax, fs:28h cmp rax, [rbp+var_30] jnz short loc_7DE3D add rsp, 68h pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn loc_7DDFE: call _myisam_log_cold_1 jmp loc_7DD03 loc_7DE08: lea rdx, [rbp+var_3B] mov rdi, rax mov esi, ebx call _myisam_log_cold_2 jmp loc_7DD60 loc_7DE1B: mov rdi, rax mov rsi, r12 mov edx, ebx mov rcx, [rbp+var_48] call _myisam_log_cold_3 jmp loc_7DD9E loc_7DE31: mov rax, [r13+0] call qword ptr [rax+160h] jmp short loc_7DDCA loc_7DE3D: call ___stack_chk_fail
unsigned long long myisam_log(long long a1, long long a2, long long a3, unsigned int a4) { int v5; // ebx __int16 v6; // kr00_2 int v7; // r15d unsigned int v8; // ebx long long v9; // rax unsigned int v10; // ebx long long v11; // rax long long v12; // rsi _DWORD *v13; // rax _BYTE v15[72]; // [rsp+0h] [rbp-90h] BYREF long long v16; // [rsp+48h] [rbp-48h] int v17; // [rsp+50h] [rbp-40h] _BYTE v18[6]; // [rsp+55h] [rbp-3Bh] BYREF _BYTE v19[3]; // [rsp+5Bh] [rbp-35h] char v20; // [rsp+5Eh] [rbp-32h] char v21; // [rsp+5Fh] [rbp-31h] unsigned long long v22; // [rsp+60h] [rbp-30h] v16 = a3; v22 = __readfsqword(0x28u); if ( log_type == 1 ) v5 = myisam_pid; else v5 = my_thread_dbug_id(); v17 = *(_DWORD *)my_thread_var(a1, (const char *)a2); *(_WORD *)&v19[1] = 0; v18[0] = a1; v6 = *(_DWORD *)(a2 + 448); v18[1] = HIBYTE(v6); v18[2] = v6; v18[5] = BYTE1(v5); *(_WORD *)v19 = (unsigned __int8)v5; v18[4] = BYTE2(v5); v18[3] = HIBYTE(v5); v20 = BYTE1(a4); v21 = a4; if ( THR_LOCK_myisam[8] ) myisam_log_cold_1(); else pthread_mutex_lock(THR_LOCK_myisam); v7 = my_lock(myisam_log_file, 1LL, 0LL, 0LL, 32LL); v8 = myisam_log_file; v9 = ((long long ( *)(_BYTE *, _QWORD, long long))PSI_server[43])(v15, myisam_log_file, 7LL); if ( v9 ) myisam_log_cold_2(v9, v8, (long long)v18); else my_write(v8, (long long)v18, 11LL, 0LL); v10 = myisam_log_file; v11 = ((long long ( *)(_BYTE *, _QWORD, long long))PSI_server[43])(v15, myisam_log_file, 7LL); if ( v11 ) { v12 = a4; myisam_log_cold_3(v11, a4, v10, v16); } else { v12 = v16; my_write(v10, v16, a4, 0LL); } if ( !v7 ) { v12 = 2LL; my_lock(myisam_log_file, 2LL, 0LL, 0LL, 32LL); } if ( THR_LOCK_myisam[8] ) PSI_server[44](); pthread_mutex_unlock(THR_LOCK_myisam); v13 = (_DWORD *)my_thread_var(THR_LOCK_myisam, (const char *)v12); *v13 = v17; return __readfsqword(0x28u); }
_myisam_log: PUSH RBP MOV RBP,RSP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0x68 MOV R13D,ECX MOV qword ptr [RBP + -0x48],RDX MOV R15,RSI MOV R12D,EDI MOV RAX,qword ptr FS:[0x28] MOV qword ptr [RBP + -0x30],RAX CMP dword ptr [0x00d01cb8],0x1 JNZ 0x0017dc9f MOV RBX,qword ptr [0x00d01cb0] JMP 0x0017dca7 LAB_0017dc9f: CALL 0x001a2ec8 MOV RBX,RAX LAB_0017dca7: CALL 0x001a29fe MOV EAX,dword ptr [RAX] MOV dword ptr [RBP + -0x40],EAX MOV word ptr [RBP + -0x34],0x0 MOV byte ptr [RBP + -0x3b],R12B MOV EAX,dword ptr [R15 + 0x1c0] MOV byte ptr [RBP + -0x39],AL MOV byte ptr [RBP + -0x3a],AH MOV byte ptr [RBP + -0x35],BL MOV byte ptr [RBP + -0x36],BH MOV EAX,EBX SHR EAX,0x10 MOV byte ptr [RBP + -0x37],AL SHR EBX,0x18 MOV byte ptr [RBP + -0x38],BL MOV EAX,R13D MOV byte ptr [RBP + -0x31],AL MOV byte ptr [RBP + -0x32],AH LEA RAX,[0xd0aa70] CMP qword ptr [RAX + 0x40],0x0 JNZ 0x0017ddfe LEA RDI,[0xd0aa70] CALL 0x00129220 LAB_0017dd03: LEA R14,[0x4873e0] MOV EDI,dword ptr [R14] MOV R8D,0x20 MOV ESI,0x1 XOR EDX,EDX XOR ECX,ECX CALL 0x001a0a30 MOV R15D,EAX MOV EBX,dword ptr [R14] LEA RAX,[0x4880c0] MOV RAX,qword ptr [RAX] LEA RDI,[RBP + -0x90] MOV ESI,EBX MOV EDX,0x7 CALL qword ptr [RAX + 0x158] TEST RAX,RAX JNZ 0x0017de08 LEA RSI,[RBP + -0x3b] MOV EDX,0xb MOV EDI,EBX XOR ECX,ECX CALL 0x0012f004 LAB_0017dd60: MOV EBX,dword ptr [R14] MOV R12D,R13D LEA R13,[0x4880c0] MOV RAX,qword ptr [R13] LEA RDI,[RBP + -0x90] MOV ESI,EBX MOV EDX,0x7 CALL qword ptr [RAX + 0x158] TEST RAX,RAX JNZ 0x0017de1b MOV EDI,EBX MOV RSI,qword ptr [RBP + -0x48] MOV RDX,R12 XOR ECX,ECX CALL 0x0012f004 LAB_0017dd9e: TEST R15D,R15D JNZ 0x0017ddba MOV EDI,dword ptr [R14] MOV R8D,0x20 MOV ESI,0x2 XOR EDX,EDX XOR ECX,ECX CALL 0x001a0a30 LAB_0017ddba: LEA RAX,[0xd0aa70] MOV RDI,qword ptr [RAX + 0x40] TEST RDI,RDI JNZ 0x0017de31 LAB_0017ddca: LEA RDI,[0xd0aa70] CALL 0x001291e0 CALL 0x001a29fe MOV ECX,dword ptr [RBP + -0x40] MOV dword ptr [RAX],ECX MOV RAX,qword ptr FS:[0x28] CMP RAX,qword ptr [RBP + -0x30] JNZ 0x0017de3d ADD RSP,0x68 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET LAB_0017ddfe: CALL 0x0012dc0d JMP 0x0017dd03 LAB_0017de08: LEA RDX,[RBP + -0x3b] MOV RDI,RAX MOV ESI,EBX CALL 0x0012dc2a JMP 0x0017dd60 LAB_0017de1b: MOV RDI,RAX MOV RSI,R12 MOV EDX,EBX MOV RCX,qword ptr [RBP + -0x48] CALL 0x0012dca2 JMP 0x0017dd9e LAB_0017de31: MOV RAX,qword ptr [R13] CALL qword ptr [RAX + 0x160] JMP 0x0017ddca LAB_0017de3d: CALL 0x00129270
void _myisam_log(int1 param_1,long param_2,int8 param_3,int4 param_4) { int4 uVar1; int iVar2; int4 *puVar3; long lVar4; long in_FS_OFFSET; int1 local_98 [72]; int8 local_50; int4 local_48; int1 local_43; int1 local_42; int1 local_41; int1 local_40; int1 local_3f; int1 local_3e; int1 local_3d; int2 local_3c; int1 local_3a; int1 local_39; long local_38; local_38 = *(long *)(in_FS_OFFSET + 0x28); local_50 = param_3; if (log_type == 1) { uVar1 = (int4)myisam_pid; } else { uVar1 = my_thread_dbug_id(); } puVar3 = (int4 *)_my_thread_var(); local_48 = *puVar3; local_3c = 0; local_41 = (int1)*(int4 *)(param_2 + 0x1c0); local_42 = (int1)((uint)*(int4 *)(param_2 + 0x1c0) >> 8); local_3d = (int1)uVar1; local_3e = (int1)((uint)uVar1 >> 8); local_3f = (int1)((uint)uVar1 >> 0x10); local_40 = (int1)((uint)uVar1 >> 0x18); local_39 = (int1)param_4; local_3a = (int1)((uint)param_4 >> 8); local_43 = param_1; if (THR_LOCK_myisam._64_8_ == 0) { pthread_mutex_lock((pthread_mutex_t *)THR_LOCK_myisam); } else { _myisam_log_cold_1(); } iVar2 = my_lock(myisam_log_file,1,0,0,0x20); uVar1 = myisam_log_file; lVar4 = (**(code **)(PSI_server + 0x158))(local_98,myisam_log_file,7); if (lVar4 == 0) { my_write(uVar1,&local_43,0xb,0); } else { _myisam_log_cold_2(lVar4,uVar1,&local_43); } uVar1 = myisam_log_file; lVar4 = (**(code **)(PSI_server + 0x158))(local_98,myisam_log_file,7); if (lVar4 == 0) { my_write(uVar1,local_50,param_4,0); } else { _myisam_log_cold_3(lVar4,param_4,uVar1,local_50); } if (iVar2 == 0) { my_lock(myisam_log_file,2,0,0,0x20); } if (THR_LOCK_myisam._64_8_ != 0) { (**(code **)(PSI_server + 0x160))(); } pthread_mutex_unlock((pthread_mutex_t *)THR_LOCK_myisam); puVar3 = (int4 *)_my_thread_var(); *puVar3 = local_48; if (*(long *)(in_FS_OFFSET + 0x28) == local_38) { return; } /* WARNING: Subroutine does not return */ __stack_chk_fail(); }
34,761
pcmp
eloqsql/strings/ctype-simple.c
static int pcmp(const void * f, const void * s) { const uni_idx *F= (const uni_idx*) f; const uni_idx *S= (const uni_idx*) s; int res; if (!(res=((S->nchars)-(F->nchars)))) res=((F->uidx.from)-(S->uidx.to)); return res; }
O3
c
pcmp: pushq %rbp movq %rsp, %rbp movl (%rsi), %eax subl (%rdi), %eax jne 0x4084d movzwl 0x8(%rdi), %eax movzwl 0xa(%rsi), %ecx subl %ecx, %eax popq %rbp retq nop
pcmp: push rbp mov rbp, rsp mov eax, [rsi] sub eax, [rdi] jnz short loc_4084D movzx eax, word ptr [rdi+8] movzx ecx, word ptr [rsi+0Ah] sub eax, ecx loc_4084D: pop rbp retn
long long pcmp(long long a1, long long a2) { long long result; // rax result = (unsigned int)(*(_DWORD *)a2 - *(_DWORD *)a1); if ( *(_DWORD *)a2 == *(_DWORD *)a1 ) return *(unsigned __int16 *)(a1 + 8) - (unsigned int)*(unsigned __int16 *)(a2 + 10); return result; }
pcmp: PUSH RBP MOV RBP,RSP MOV EAX,dword ptr [RSI] SUB EAX,dword ptr [RDI] JNZ 0x0014084d MOVZX EAX,word ptr [RDI + 0x8] MOVZX ECX,word ptr [RSI + 0xa] SUB EAX,ECX LAB_0014084d: POP RBP RET
int pcmp(int *param_1,int *param_2) { int iVar1; iVar1 = *param_2 - *param_1; if (iVar1 == 0) { iVar1 = (uint)*(ushort *)(param_1 + 2) - (uint)*(ushort *)((long)param_2 + 10); } return iVar1; }
34,762
writer
eloqsql/storage/maria/unittest/ma_pagecache_rwconsist2.c
void writer(int num) { uint i; uchar *buff; PAGECACHE_BLOCK_LINK *link; for (i= 0; i < number_of_write_tests; i++) { uchar c= (uchar) rand() % 256; if (i % report_divisor == 0) diag("Writer %d - %u", num, i); buff= pagecache_read(&pagecache, &file1, 0, 3, NULL, PAGECACHE_PLAIN_PAGE, PAGECACHE_LOCK_WRITE, &link); check_page(buff, num); bfill(buff, TEST_PAGE_SIZE / 2, c); SLEEP; bfill(buff + TEST_PAGE_SIZE/2, TEST_PAGE_SIZE / 2, c); check_page(buff, num); pagecache_unlock_by_link(&pagecache, link, PAGECACHE_LOCK_WRITE_UNLOCK, PAGECACHE_UNPIN, 0, 0, 1, FALSE); SLEEP; } }
O0
c
writer: pushq %rbp movq %rsp, %rbp subq $0x30, %rsp movl %edi, -0x4(%rbp) movl $0x0, -0x8(%rbp) movl -0x8(%rbp), %eax cmpl 0x2913cd(%rip), %eax # 0x2bc018 jae 0x2ad62 callq 0x2a750 movzbl %al, %eax movl $0x100, %ecx # imm = 0x100 cltd idivl %ecx movb %dl, %al movb %al, -0x19(%rbp) movl -0x8(%rbp), %eax xorl %edx, %edx divl 0x2913a3(%rip) # 0x2bc014 cmpl $0x0, %edx jne 0x2ac8a movl -0x4(%rbp), %esi movl -0x8(%rbp), %edx leaq 0x1253c2(%rip), %rdi # 0x150045 movb $0x0, %al callq 0xd95c0 leaq 0x44b31f(%rip), %rdi # 0x475fb0 leaq 0x44b538(%rip), %rsi # 0x4761d0 xorl %eax, %eax movl %eax, %r8d movl $0x3, %ecx movl $0x1, %r9d leaq -0x18(%rbp), %rax movq %r8, %rdx movl $0x4, (%rsp) movq %rax, 0x8(%rsp) callq 0x2d320 movq %rax, -0x10(%rbp) movq -0x10(%rbp), %rdi movl -0x4(%rbp), %esi callq 0x2aac0 movq -0x10(%rbp), %rdi movzbl -0x19(%rbp), %eax movl $0x200, %edx # imm = 0x200 movzbl %al, %esi callq 0x2a2c0 movl $0x5, %edi callq 0xf47b0 movq -0x10(%rbp), %rdi addq $0x200, %rdi # imm = 0x200 movzbl -0x19(%rbp), %eax movl $0x200, %edx # imm = 0x200 movzbl %al, %esi callq 0x2a2c0 movq -0x10(%rbp), %rdi movl -0x4(%rbp), %esi callq 0x2aac0 movq -0x18(%rbp), %rsi leaq 0x44b28e(%rip), %rdi # 0x475fb0 movl $0x6, %edx movl $0x3, %ecx xorl %eax, %eax movl %eax, %r9d xorl %eax, %eax movq %r9, %r8 movl $0x1, (%rsp) movl $0x0, 0x8(%rsp) callq 0x2d0c0 movl $0x5, %edi callq 0xf47b0 movl -0x8(%rbp), %eax addl $0x1, %eax movl %eax, -0x8(%rbp) jmp 0x2ac42 addq $0x30, %rsp popq %rbp retq nopl (%rax,%rax)
writer: push rbp mov rbp, rsp sub rsp, 30h mov [rbp+var_4], edi mov [rbp+var_8], 0 loc_2AC42: mov eax, [rbp+var_8] cmp eax, cs:number_of_write_tests jnb loc_2AD62 call _rand movzx eax, al mov ecx, 100h cdq idiv ecx mov al, dl mov [rbp+var_19], al mov eax, [rbp+var_8] xor edx, edx div cs:report_divisor cmp edx, 0 jnz short loc_2AC8A mov esi, [rbp+var_4] mov edx, [rbp+var_8] lea rdi, aWriterDU; "Writer %d - %u" mov al, 0 call diag loc_2AC8A: lea rdi, pagecache lea rsi, file1 xor eax, eax mov r8d, eax mov ecx, 3 mov r9d, 1 lea rax, [rbp+var_18] mov rdx, r8 mov [rsp+30h+var_30], 4 mov [rsp+30h+var_28], rax call pagecache_read mov [rbp+var_10], rax mov rdi, [rbp+var_10] mov esi, [rbp+var_4] call check_page mov rdi, [rbp+var_10] movzx eax, [rbp+var_19] mov edx, 200h movzx esi, al call _memset mov edi, 5 call my_sleep mov rdi, [rbp+var_10] add rdi, 200h movzx eax, [rbp+var_19] mov edx, 200h movzx esi, al call _memset mov rdi, [rbp+var_10] mov esi, [rbp+var_4] call check_page mov rsi, [rbp+var_18] lea rdi, pagecache mov edx, 6 mov ecx, 3 xor eax, eax mov r9d, eax xor eax, eax mov r8, r9 mov [rsp+30h+var_30], 1 mov dword ptr [rsp+30h+var_28], 0 call pagecache_unlock_by_link mov edi, 5 call my_sleep mov eax, [rbp+var_8] add eax, 1 mov [rbp+var_8], eax jmp loc_2AC42 loc_2AD62: add rsp, 30h pop rbp retn
long long writer(int a1) { long long result; // rax int v2; // r8d int v3; // r9d long long v4; // rdx long long v5; // rcx long long v6; // r8 int v7; // r9d long long v8; // rdx long long v9; // rcx long long v10; // r8 int v11; // r9d char v12; // [rsp+0h] [rbp-30h] unsigned __int8 v13; // [rsp+17h] [rbp-19h] long long v14; // [rsp+18h] [rbp-18h] BYREF unsigned __int8 *v15; // [rsp+20h] [rbp-10h] unsigned int i; // [rsp+28h] [rbp-8h] int v17; // [rsp+2Ch] [rbp-4h] v17 = a1; for ( i = 0; ; ++i ) { result = i; if ( i >= number_of_write_tests ) break; v13 = (unsigned __int8)rand() % 256; if ( !(i % report_divisor) ) diag((unsigned int)"Writer %d - %u", v17, i, 256, v2, v3, v12); v15 = (unsigned __int8 *)pagecache_read( (unsigned int)&pagecache, (unsigned int)&file1, 0, 3, 0, 1, 4, (long long)&v14); check_page(v15, v17, v4, v5, v6, v7); memset(v15, v13, 512LL); my_sleep(5LL); memset(v15 + 512, v13, 512LL); check_page(v15, v17, v8, v9, v10, v11); pagecache_unlock_by_link((unsigned int)&pagecache, v14, 6, 3, 0, 0, 1, 0); my_sleep(5LL); } return result; }
writer: PUSH RBP MOV RBP,RSP SUB RSP,0x30 MOV dword ptr [RBP + -0x4],EDI MOV dword ptr [RBP + -0x8],0x0 LAB_0012ac42: MOV EAX,dword ptr [RBP + -0x8] CMP EAX,dword ptr [0x003bc018] JNC 0x0012ad62 CALL 0x0012a750 MOVZX EAX,AL MOV ECX,0x100 CDQ IDIV ECX MOV AL,DL MOV byte ptr [RBP + -0x19],AL MOV EAX,dword ptr [RBP + -0x8] XOR EDX,EDX DIV dword ptr [0x003bc014] CMP EDX,0x0 JNZ 0x0012ac8a MOV ESI,dword ptr [RBP + -0x4] MOV EDX,dword ptr [RBP + -0x8] LEA RDI,[0x250045] MOV AL,0x0 CALL 0x001d95c0 LAB_0012ac8a: LEA RDI,[0x575fb0] LEA RSI,[0x5761d0] XOR EAX,EAX MOV R8D,EAX MOV ECX,0x3 MOV R9D,0x1 LEA RAX,[RBP + -0x18] MOV RDX,R8 MOV dword ptr [RSP],0x4 MOV qword ptr [RSP + 0x8],RAX CALL 0x0012d320 MOV qword ptr [RBP + -0x10],RAX MOV RDI,qword ptr [RBP + -0x10] MOV ESI,dword ptr [RBP + -0x4] CALL 0x0012aac0 MOV RDI,qword ptr [RBP + -0x10] MOVZX EAX,byte ptr [RBP + -0x19] MOV EDX,0x200 MOVZX ESI,AL CALL 0x0012a2c0 MOV EDI,0x5 CALL 0x001f47b0 MOV RDI,qword ptr [RBP + -0x10] ADD RDI,0x200 MOVZX EAX,byte ptr [RBP + -0x19] MOV EDX,0x200 MOVZX ESI,AL CALL 0x0012a2c0 MOV RDI,qword ptr [RBP + -0x10] MOV ESI,dword ptr [RBP + -0x4] CALL 0x0012aac0 MOV RSI,qword ptr [RBP + -0x18] LEA RDI,[0x575fb0] MOV EDX,0x6 MOV ECX,0x3 XOR EAX,EAX MOV R9D,EAX XOR EAX,EAX MOV R8,R9 MOV dword ptr [RSP],0x1 MOV dword ptr [RSP + 0x8],0x0 CALL 0x0012d0c0 MOV EDI,0x5 CALL 0x001f47b0 MOV EAX,dword ptr [RBP + -0x8] ADD EAX,0x1 MOV dword ptr [RBP + -0x8],EAX JMP 0x0012ac42 LAB_0012ad62: ADD RSP,0x30 POP RBP RET
int writer(UI *ui,UI_STRING *uis) { byte bVar1; uint uVar2; int8 *puVar3; int8 local_20; void *local_18; uint local_10; int4 local_c; local_c = SUB84(ui,0); for (local_10 = 0; local_10 < number_of_write_tests; local_10 = local_10 + 1) { uVar2 = rand(); bVar1 = (byte)((ulong)(uVar2 & 0xff) % 0x100); if (local_10 % report_divisor == 0) { diag("Writer %d - %u",local_c,local_10); } puVar3 = &local_20; local_18 = (void *)pagecache_read(pagecache,file1,0,3,0,1,4,puVar3); check_page(local_18,local_c); memset(local_18,(uint)bVar1,0x200); my_sleep(5); memset((void *)((long)local_18 + 0x200),(uint)bVar1,0x200); check_page(local_18,local_c); pagecache_unlock_by_link(pagecache,local_20,6,3,0,0,1,(ulong)puVar3 & 0xffffffff00000000); my_sleep(5); } return local_10; }
34,763
mi_read_dynamic_record
eloqsql/storage/myisam/mi_dynrec.c
int _mi_read_dynamic_record(MI_INFO *info, my_off_t filepos, uchar *buf) { int block_of_record; uint b_type,UNINIT_VAR(left_length); uchar *UNINIT_VAR(to); MI_BLOCK_INFO block_info; File file; DBUG_ENTER("mi_read_dynamic_record"); if (filepos != HA_OFFSET_ERROR) { file=info->dfile; block_of_record= 0; /* First block of record is numbered as zero. */ block_info.second_read= 0; do { /* A corrupted table can have wrong pointers. (Bug# 19835) */ if (filepos == HA_OFFSET_ERROR) goto panic; if (info->opt_flag & WRITE_CACHE_USED && info->rec_cache.pos_in_file < filepos + MI_BLOCK_INFO_HEADER_LENGTH && flush_io_cache(&info->rec_cache)) goto err; info->rec_cache.seek_not_done=1; if ((b_type= _mi_get_block_info(&block_info, file, filepos)) & (BLOCK_DELETED | BLOCK_ERROR | BLOCK_SYNC_ERROR | BLOCK_FATAL_ERROR)) { if (b_type & (BLOCK_SYNC_ERROR | BLOCK_DELETED)) my_errno=HA_ERR_RECORD_DELETED; goto err; } if (block_of_record++ == 0) /* First block */ { if (block_info.rec_len > (uint) info->s->base.max_pack_length) goto panic; if (info->s->base.blobs) { if (!(to=mi_alloc_rec_buff(info, block_info.rec_len, &info->rec_buff))) goto err; } else to= info->rec_buff; left_length=block_info.rec_len; } if (left_length < block_info.data_len || ! block_info.data_len) goto panic; /* Wrong linked record */ /* copy information that is already read */ { uint offset= (uint) (block_info.filepos - filepos); uint prefetch_len= (sizeof(block_info.header) - offset); filepos+= sizeof(block_info.header); if (prefetch_len > block_info.data_len) prefetch_len= block_info.data_len; if (prefetch_len) { memcpy((uchar*) to, block_info.header + offset, prefetch_len); block_info.data_len-= prefetch_len; left_length-= prefetch_len; to+= prefetch_len; } } /* read rest of record from file */ if (block_info.data_len) { if (info->opt_flag & WRITE_CACHE_USED && info->rec_cache.pos_in_file < filepos + block_info.data_len && flush_io_cache(&info->rec_cache)) goto err; /* What a pity that this method is not called 'file_pread' and that there is no equivalent without seeking. We are at the right position already. :( */ if (info->s->file_read(info, (uchar*) to, block_info.data_len, filepos, MYF(MY_NABP))) goto panic; left_length-=block_info.data_len; to+=block_info.data_len; } filepos= block_info.next_filepos; } while (left_length); info->update|= HA_STATE_AKTIV; /* We have a aktive record */ fast_mi_writeinfo(info); DBUG_RETURN(_mi_rec_unpack(info,buf,info->rec_buff,block_info.rec_len) != MY_FILE_ERROR ? 0 : -1); } fast_mi_writeinfo(info); DBUG_RETURN(-1); /* Wrong data to read */ panic: my_errno=HA_ERR_WRONG_IN_RECORD; err: (void) _mi_writeinfo(info,0); DBUG_RETURN(-1); }
O3
c
mi_read_dynamic_record: pushq %rbp movq %rsp, %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x98, %rsp movq %rdi, %r13 movq %fs:0x28, %rax movq %rax, -0x30(%rbp) cmpq $-0x1, %rsi je 0x302dd movq %rsi, %r14 movq %rdx, -0xb8(%rbp) movl 0x1c0(%r13), %r15d leaq -0x88(%rbp), %rax movl $0x0, 0x50(%rax) leaq 0x220(%r13), %rax movq %rax, -0xa0(%rbp) leaq 0x120(%r13), %rax movq %rax, -0xb0(%rbp) xorl %ebx, %ebx movl %r15d, -0xa4(%rbp) movq %r13, -0xc0(%rbp) movl $0x7f, -0x94(%rbp) cmpq $-0x1, %r14 je 0x3030a testb $0x10, 0x1c8(%r13) je 0x30108 leaq 0x14(%r14), %rax movq -0xa0(%rbp), %rcx cmpq %rax, (%rcx) jae 0x30108 movq -0xa0(%rbp), %rdi movl $0x1, %esi callq 0x506dd testl %eax, %eax jne 0x30317 movl $0x1, 0x300(%r13) leaq -0x88(%rbp), %rdi movl %r15d, %esi movq %r14, %rdx callq 0x2f37b cmpl $0x4, %eax jae 0x302fc subl $0x1, %ebx jae 0x3018c movq -0x70(%rbp), %r12 movq (%r13), %rax movl 0x158(%rax), %ecx cmpq %rcx, %r12 ja 0x3030a cmpl $0x0, 0x188(%rax) je 0x3017b movq %r13, %rdi movq %r12, %rsi movq -0xb0(%rbp), %rdx callq 0x36c65 movq %rax, -0x90(%rbp) testq %rax, %rax je 0x30317 movq -0x70(%rbp), %r12 jmp 0x3018c movq -0xb0(%rbp), %rax movq (%rax), %rax movq %rax, -0x90(%rbp) movl %r12d, %eax movq -0x68(%rbp), %rdx leaq -0x1(%rdx), %rcx cmpq %rax, %rcx jae 0x3030a movl %ebx, -0x98(%rbp) movq -0x50(%rbp), %rax subq %r14, %rax movl $0x14, %ecx subl %eax, %ecx cmpq %rcx, %rdx movl %edx, %ebx cmovael %ecx, %ebx testl %ebx, %ebx je 0x30212 movl %eax, %eax leaq (%rax,%rbp), %rsi addq $-0x88, %rsi movl %ebx, %r13d movq -0x90(%rbp), %r15 movq %r15, %rdi movq %r13, %rdx callq 0x282c0 movq -0x68(%rbp), %rdx subl %ebx, %r12d addq %r13, %r15 movq %r15, -0x90(%rbp) subq %r13, %rdx movq -0xc0(%rbp), %r13 movl -0xa4(%rbp), %r15d movq %rdx, -0x68(%rbp) movl -0x98(%rbp), %ebx jne 0x30218 jmp 0x30287 movl -0x98(%rbp), %ebx addq $0x14, %r14 testb $0x10, 0x1c8(%r13) je 0x30253 leaq (%rdx,%r14), %rax movq -0xa0(%rbp), %rcx cmpq %rax, (%rcx) jae 0x30253 movq -0xa0(%rbp), %rdi movl $0x1, %esi callq 0x506dd testl %eax, %eax jne 0x30317 movq -0x68(%rbp), %rdx movq (%r13), %rax movl $0x4, %r8d movq %r13, %rdi movq -0x90(%rbp), %rsi movq %r14, %rcx callq *0x2e0(%rax) testq %rax, %rax jne 0x3030a movq -0x68(%rbp), %rax subl %eax, %r12d addq %rax, -0x90(%rbp) movq -0x48(%rbp), %r14 testl %r12d, %r12d jne 0x300c1 orb $0x2, 0x1d0(%r13) movq (%r13), %rax cmpl $0x0, 0x368(%rax) jne 0x302b3 movq %r13, %rdi xorl %esi, %esi callq 0x3387e movq 0x120(%r13), %rdx movq -0x70(%rbp), %rcx movq %r13, %rdi movq -0xb8(%rbp), %rsi callq 0x2fc35 xorl %r14d, %r14d cmpq $-0x1, %rax sete %r14b negl %r14d jmp 0x30327 movq (%r13), %rax movl $0xffffffff, %r14d # imm = 0xFFFFFFFF cmpl $0x0, 0x368(%rax) jne 0x30327 movq %r13, %rdi xorl %esi, %esi callq 0x3387e jmp 0x30327 movl $0x86, -0x94(%rbp) testb $0x14, %al je 0x30317 callq 0x5be8e movl -0x94(%rbp), %ecx movl %ecx, (%rax) movq %r13, %rdi xorl %esi, %esi callq 0x3387e movl $0xffffffff, %r14d # imm = 0xFFFFFFFF movq %fs:0x28, %rax cmpq -0x30(%rbp), %rax jne 0x3034b movl %r14d, %eax addq $0x98, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq callq 0x283f0
_mi_read_dynamic_record: push rbp mov rbp, rsp push r15 push r14 push r13 push r12 push rbx sub rsp, 98h mov r13, rdi mov rax, fs:28h mov [rbp+var_30], rax cmp rsi, 0FFFFFFFFFFFFFFFFh jz loc_302DD mov r14, rsi mov [rbp+var_B8], rdx mov r15d, [r13+1C0h] lea rax, [rbp+var_88] mov dword ptr [rax+50h], 0 lea rax, [r13+220h] mov [rbp+var_A0], rax lea rax, [r13+120h] mov [rbp+var_B0], rax xor ebx, ebx mov [rbp+var_A4], r15d mov [rbp+var_C0], r13 loc_300C1: mov [rbp+var_94], 7Fh cmp r14, 0FFFFFFFFFFFFFFFFh jz loc_3030A test byte ptr [r13+1C8h], 10h jz short loc_30108 lea rax, [r14+14h] mov rcx, [rbp+var_A0] cmp [rcx], rax jnb short loc_30108 mov rdi, [rbp+var_A0] mov esi, 1 call my_b_flush_io_cache test eax, eax jnz loc_30317 loc_30108: mov dword ptr [r13+300h], 1 lea rdi, [rbp+var_88] mov esi, r15d mov rdx, r14 call _mi_get_block_info cmp eax, 4 jnb loc_302FC sub ebx, 1 jnb short loc_3018C mov r12, [rbp+var_70] mov rax, [r13+0] mov ecx, [rax+158h] cmp r12, rcx ja loc_3030A cmp dword ptr [rax+188h], 0 jz short loc_3017B mov rdi, r13 mov rsi, r12 mov rdx, [rbp+var_B0] call mi_alloc_rec_buff mov [rbp+var_90], rax test rax, rax jz loc_30317 mov r12, [rbp+var_70] jmp short loc_3018C loc_3017B: mov rax, [rbp+var_B0] mov rax, [rax] mov [rbp+var_90], rax loc_3018C: mov eax, r12d mov rdx, [rbp+var_68] lea rcx, [rdx-1] cmp rcx, rax jnb loc_3030A mov [rbp+var_98], ebx mov rax, [rbp+var_50] sub rax, r14 mov ecx, 14h sub ecx, eax cmp rdx, rcx mov ebx, edx cmovnb ebx, ecx test ebx, ebx jz short loc_30212 mov eax, eax lea rsi, [rax+rbp] add rsi, 0FFFFFFFFFFFFFF78h mov r13d, ebx mov r15, [rbp+var_90] mov rdi, r15 mov rdx, r13 call _memcpy mov rdx, [rbp+var_68] sub r12d, ebx add r15, r13 mov [rbp+var_90], r15 sub rdx, r13 mov r13, [rbp+var_C0] mov r15d, [rbp+var_A4] mov [rbp+var_68], rdx mov ebx, [rbp+var_98] jnz short loc_30218 jmp short loc_30287 loc_30212: mov ebx, [rbp+var_98] loc_30218: add r14, 14h test byte ptr [r13+1C8h], 10h jz short loc_30253 lea rax, [rdx+r14] mov rcx, [rbp+var_A0] cmp [rcx], rax jnb short loc_30253 mov rdi, [rbp+var_A0] mov esi, 1 call my_b_flush_io_cache test eax, eax jnz loc_30317 mov rdx, [rbp+var_68] loc_30253: mov rax, [r13+0] mov r8d, 4 mov rdi, r13 mov rsi, [rbp+var_90] mov rcx, r14 call qword ptr [rax+2E0h] test rax, rax jnz loc_3030A mov rax, [rbp+var_68] sub r12d, eax add [rbp+var_90], rax loc_30287: mov r14, [rbp+var_48] test r12d, r12d jnz loc_300C1 or byte ptr [r13+1D0h], 2 mov rax, [r13+0] cmp dword ptr [rax+368h], 0 jnz short loc_302B3 mov rdi, r13 xor esi, esi call _mi_writeinfo loc_302B3: mov rdx, [r13+120h] mov rcx, [rbp+var_70] mov rdi, r13 mov rsi, [rbp+var_B8] call _mi_rec_unpack xor r14d, r14d cmp rax, 0FFFFFFFFFFFFFFFFh setz r14b neg r14d jmp short loc_30327 loc_302DD: mov rax, [r13+0] mov r14d, 0FFFFFFFFh cmp dword ptr [rax+368h], 0 jnz short loc_30327 mov rdi, r13 xor esi, esi call _mi_writeinfo jmp short loc_30327 loc_302FC: mov [rbp+var_94], 86h test al, 14h jz short loc_30317 loc_3030A: call _my_thread_var mov ecx, [rbp+var_94] mov [rax], ecx loc_30317: mov rdi, r13 xor esi, esi call _mi_writeinfo mov r14d, 0FFFFFFFFh loc_30327: mov rax, fs:28h cmp rax, [rbp+var_30] jnz short loc_3034B mov eax, r14d add rsp, 98h pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn loc_3034B: call ___stack_chk_fail
long long mi_read_dynamic_record(_DWORD *a1, long long a2, _WORD *a3) { unsigned int v3; // r12d long long v4; // r13 long long v5; // r14 unsigned int v6; // r15d int v7; // ebx unsigned int block_info; // eax bool v9; // cf int v10; // ebx unsigned long long v11; // rdx unsigned int v12; // ebx bool v13; // zf long long v14; // r14 unsigned int v15; // r14d _DWORD *v17; // [rsp+0h] [rbp-C0h] long long *v19; // [rsp+10h] [rbp-B0h] unsigned int v20; // [rsp+1Ch] [rbp-A4h] _QWORD *v21; // [rsp+20h] [rbp-A0h] int v22; // [rsp+28h] [rbp-98h] int v23; // [rsp+2Ch] [rbp-94h] long long v24; // [rsp+30h] [rbp-90h] _BYTE v25[24]; // [rsp+38h] [rbp-88h] BYREF unsigned long long v26; // [rsp+50h] [rbp-70h] unsigned long long v27; // [rsp+58h] [rbp-68h] long long v28; // [rsp+70h] [rbp-50h] long long v29; // [rsp+78h] [rbp-48h] int v30; // [rsp+88h] [rbp-38h] unsigned long long v31; // [rsp+90h] [rbp-30h] v4 = (long long)a1; v31 = __readfsqword(0x28u); if ( a2 != -1 ) { v5 = a2; v6 = a1[112]; v30 = 0; v21 = a1 + 136; v19 = (long long *)(a1 + 72); v7 = 0; v20 = v6; v17 = a1; while ( 1 ) { v23 = 127; if ( v5 == -1 ) goto LABEL_34; if ( (*(_BYTE *)(v4 + 456) & 0x10) != 0 && *v21 < (unsigned long long)(v5 + 20) && (unsigned int)my_b_flush_io_cache(v21, 1LL) ) { goto LABEL_35; } *(_DWORD *)(v4 + 768) = 1; a1 = v25; block_info = mi_get_block_info((long long)v25, v6, v5); if ( block_info >= 4 ) { v23 = 134; if ( (block_info & 0x14) != 0 ) LABEL_34: *(_DWORD *)my_thread_var(a1) = v23; LABEL_35: mi_writeinfo(v4, 0LL); return (unsigned int)-1; } v9 = v7 == 0; v10 = v7 - 1; if ( v9 ) { v3 = v26; if ( v26 > *(unsigned int *)(*(_QWORD *)v4 + 344LL) ) goto LABEL_34; if ( *(_DWORD *)(*(_QWORD *)v4 + 392LL) ) { a1 = (_DWORD *)v4; v24 = mi_alloc_rec_buff(v4, v26, v19); if ( !v24 ) goto LABEL_35; v3 = v26; } else { v24 = *v19; } } v11 = v27; if ( v27 - 1 >= v3 ) goto LABEL_34; v22 = v10; v12 = v27; if ( v27 >= (unsigned int)(20 - (v28 - v5)) ) v12 = 20 - (v28 - v5); if ( !v12 ) break; a1 = (_DWORD *)v24; memcpy(v24, &v25[(unsigned int)(v28 - v5)], v12); v3 -= v12; v24 += v12; v11 = v27 - v12; v13 = v27 == v12; v4 = (long long)v17; v6 = v20; v27 = v11; v7 = v22; if ( !v13 ) goto LABEL_21; LABEL_27: v5 = v29; if ( !v3 ) { *(_BYTE *)(v4 + 464) |= 2u; if ( !*(_DWORD *)(*(_QWORD *)v4 + 872LL) ) mi_writeinfo(v4, 0LL); return (unsigned int)-(mi_rec_unpack(v4, a3, *(unsigned __int8 **)(v4 + 288), v26) == -1); } } v7 = v22; LABEL_21: v14 = v5 + 20; if ( (*(_BYTE *)(v4 + 456) & 0x10) != 0 && *v21 < v11 + v14 ) { if ( (unsigned int)my_b_flush_io_cache(v21, 1LL) ) goto LABEL_35; v11 = v27; } a1 = (_DWORD *)v4; if ( (*(long long ( **)(long long, long long, unsigned long long, long long, long long))(*(_QWORD *)v4 + 736LL))( v4, v24, v11, v14, 4LL) ) { goto LABEL_34; } v3 -= v27; v24 += v27; goto LABEL_27; } v15 = -1; if ( !*(_DWORD *)(*(_QWORD *)a1 + 872LL) ) mi_writeinfo(a1, 0LL); return v15; }
_mi_read_dynamic_record: PUSH RBP MOV RBP,RSP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0x98 MOV R13,RDI MOV RAX,qword ptr FS:[0x28] MOV qword ptr [RBP + -0x30],RAX CMP RSI,-0x1 JZ 0x001302dd MOV R14,RSI MOV qword ptr [RBP + -0xb8],RDX MOV R15D,dword ptr [R13 + 0x1c0] LEA RAX,[RBP + -0x88] MOV dword ptr [RAX + 0x50],0x0 LEA RAX,[R13 + 0x220] MOV qword ptr [RBP + -0xa0],RAX LEA RAX,[R13 + 0x120] MOV qword ptr [RBP + -0xb0],RAX XOR EBX,EBX MOV dword ptr [RBP + -0xa4],R15D MOV qword ptr [RBP + -0xc0],R13 LAB_001300c1: MOV dword ptr [RBP + -0x94],0x7f CMP R14,-0x1 JZ 0x0013030a TEST byte ptr [R13 + 0x1c8],0x10 JZ 0x00130108 LEA RAX,[R14 + 0x14] MOV RCX,qword ptr [RBP + -0xa0] CMP qword ptr [RCX],RAX JNC 0x00130108 MOV RDI,qword ptr [RBP + -0xa0] MOV ESI,0x1 CALL 0x001506dd TEST EAX,EAX JNZ 0x00130317 LAB_00130108: MOV dword ptr [R13 + 0x300],0x1 LEA RDI,[RBP + -0x88] MOV ESI,R15D MOV RDX,R14 CALL 0x0012f37b CMP EAX,0x4 JNC 0x001302fc SUB EBX,0x1 JNC 0x0013018c MOV R12,qword ptr [RBP + -0x70] MOV RAX,qword ptr [R13] MOV ECX,dword ptr [RAX + 0x158] CMP R12,RCX JA 0x0013030a CMP dword ptr [RAX + 0x188],0x0 JZ 0x0013017b MOV RDI,R13 MOV RSI,R12 MOV RDX,qword ptr [RBP + -0xb0] CALL 0x00136c65 MOV qword ptr [RBP + -0x90],RAX TEST RAX,RAX JZ 0x00130317 MOV R12,qword ptr [RBP + -0x70] JMP 0x0013018c LAB_0013017b: MOV RAX,qword ptr [RBP + -0xb0] MOV RAX,qword ptr [RAX] MOV qword ptr [RBP + -0x90],RAX LAB_0013018c: MOV EAX,R12D MOV RDX,qword ptr [RBP + -0x68] LEA RCX,[RDX + -0x1] CMP RCX,RAX JNC 0x0013030a MOV dword ptr [RBP + -0x98],EBX MOV RAX,qword ptr [RBP + -0x50] SUB RAX,R14 MOV ECX,0x14 SUB ECX,EAX CMP RDX,RCX MOV EBX,EDX CMOVNC EBX,ECX TEST EBX,EBX JZ 0x00130212 MOV EAX,EAX LEA RSI,[RAX + RBP*0x1] ADD RSI,-0x88 MOV R13D,EBX MOV R15,qword ptr [RBP + -0x90] MOV RDI,R15 MOV RDX,R13 CALL 0x001282c0 MOV RDX,qword ptr [RBP + -0x68] SUB R12D,EBX ADD R15,R13 MOV qword ptr [RBP + -0x90],R15 SUB RDX,R13 MOV R13,qword ptr [RBP + -0xc0] MOV R15D,dword ptr [RBP + -0xa4] MOV qword ptr [RBP + -0x68],RDX MOV EBX,dword ptr [RBP + -0x98] JNZ 0x00130218 JMP 0x00130287 LAB_00130212: MOV EBX,dword ptr [RBP + -0x98] LAB_00130218: ADD R14,0x14 TEST byte ptr [R13 + 0x1c8],0x10 JZ 0x00130253 LEA RAX,[RDX + R14*0x1] MOV RCX,qword ptr [RBP + -0xa0] CMP qword ptr [RCX],RAX JNC 0x00130253 MOV RDI,qword ptr [RBP + -0xa0] MOV ESI,0x1 CALL 0x001506dd TEST EAX,EAX JNZ 0x00130317 MOV RDX,qword ptr [RBP + -0x68] LAB_00130253: MOV RAX,qword ptr [R13] MOV R8D,0x4 MOV RDI,R13 MOV RSI,qword ptr [RBP + -0x90] MOV RCX,R14 CALL qword ptr [RAX + 0x2e0] TEST RAX,RAX JNZ 0x0013030a MOV RAX,qword ptr [RBP + -0x68] SUB R12D,EAX ADD qword ptr [RBP + -0x90],RAX LAB_00130287: MOV R14,qword ptr [RBP + -0x48] TEST R12D,R12D JNZ 0x001300c1 OR byte ptr [R13 + 0x1d0],0x2 MOV RAX,qword ptr [R13] CMP dword ptr [RAX + 0x368],0x0 JNZ 0x001302b3 MOV RDI,R13 XOR ESI,ESI CALL 0x0013387e LAB_001302b3: MOV RDX,qword ptr [R13 + 0x120] MOV RCX,qword ptr [RBP + -0x70] MOV RDI,R13 MOV RSI,qword ptr [RBP + -0xb8] CALL 0x0012fc35 XOR R14D,R14D CMP RAX,-0x1 SETZ R14B NEG R14D JMP 0x00130327 LAB_001302dd: MOV RAX,qword ptr [R13] MOV R14D,0xffffffff CMP dword ptr [RAX + 0x368],0x0 JNZ 0x00130327 MOV RDI,R13 XOR ESI,ESI CALL 0x0013387e JMP 0x00130327 LAB_001302fc: MOV dword ptr [RBP + -0x94],0x86 TEST AL,0x14 JZ 0x00130317 LAB_0013030a: CALL 0x0015be8e MOV ECX,dword ptr [RBP + -0x94] MOV dword ptr [RAX],ECX LAB_00130317: MOV RDI,R13 XOR ESI,ESI CALL 0x0013387e MOV R14D,0xffffffff LAB_00130327: MOV RAX,qword ptr FS:[0x28] CMP RAX,qword ptr [RBP + -0x30] JNZ 0x0013034b MOV EAX,R14D ADD RSP,0x98 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET LAB_0013034b: CALL 0x001283f0
int _mi_read_dynamic_record(long *param_1,long param_2,int8 param_3) { ulong *puVar1; int iVar2; uint uVar3; uint uVar4; long lVar5; long lVar6; int4 *puVar7; uint uVar8; int iVar9; uint uVar10; ulong unaff_R12; ulong __n; long in_FS_OFFSET; bool bVar11; int4 local_9c; void *local_98; int1 local_90 [24]; ulong local_78; ulong local_70; int8 local_58; long local_50; int4 local_40; long local_38; local_38 = *(long *)(in_FS_OFFSET + 0x28); if (param_2 == -1) { iVar9 = -1; if (*(int *)(*param_1 + 0x368) == 0) { _mi_writeinfo(param_1,0); } } else { lVar6 = param_1[0x38]; local_40 = 0; puVar1 = (ulong *)(param_1 + 0x44); iVar9 = 0; do { local_9c = 0x7f; if (param_2 == -1) goto LAB_0013030a; if ((((*(byte *)(param_1 + 0x39) & 0x10) != 0) && (*puVar1 < param_2 + 0x14U)) && (iVar2 = my_b_flush_io_cache(puVar1,1), iVar2 != 0)) { LAB_00130317: _mi_writeinfo(param_1,0); iVar9 = -1; goto LAB_00130327; } *(int4 *)(param_1 + 0x60) = 1; uVar3 = _mi_get_block_info(local_90,(int)lVar6,param_2); if (3 < uVar3) { local_9c = 0x86; if ((uVar3 & 0x14) != 0) goto LAB_0013030a; goto LAB_00130317; } bVar11 = iVar9 == 0; iVar9 = iVar9 + -1; if (bVar11) { if (*(uint *)(*param_1 + 0x158) < local_78) goto LAB_0013030a; if (*(int *)(*param_1 + 0x188) == 0) { local_98 = (void *)param_1[0x24]; unaff_R12 = local_78; } else { local_98 = (void *)mi_alloc_rec_buff(param_1,local_78,param_1 + 0x24); unaff_R12 = local_78; if (local_98 == (void *)0x0) goto LAB_00130317; } } uVar3 = (uint)unaff_R12; if ((unaff_R12 & 0xffffffff) <= local_70 - 1) { LAB_0013030a: puVar7 = (int4 *)_my_thread_var(); *puVar7 = local_9c; goto LAB_00130317; } uVar4 = (int)local_58 - (int)param_2; uVar8 = 0x14 - uVar4; uVar10 = (uint)local_70; if (uVar8 <= local_70) { uVar10 = uVar8; } if (uVar10 == 0) { LAB_00130218: if ((((*(byte *)(param_1 + 0x39) & 0x10) != 0) && (*puVar1 < local_70 + param_2 + 0x14)) && (iVar2 = my_b_flush_io_cache(puVar1,1), iVar2 != 0)) goto LAB_00130317; lVar5 = (**(code **)(*param_1 + 0x2e0))(param_1,local_98,local_70,param_2 + 0x14,4); if (lVar5 != 0) goto LAB_0013030a; uVar3 = uVar3 - (int)local_70; local_98 = (void *)((long)local_98 + local_70); } else { __n = (ulong)uVar10; memcpy(local_98,local_90 + uVar4,__n); uVar3 = uVar3 - uVar10; local_98 = (void *)((long)local_98 + __n); local_70 = local_70 - __n; if (local_70 != 0) goto LAB_00130218; } unaff_R12 = (ulong)uVar3; param_2 = local_50; } while (uVar3 != 0); *(byte *)(param_1 + 0x3a) = *(byte *)(param_1 + 0x3a) | 2; if (*(int *)(*param_1 + 0x368) == 0) { _mi_writeinfo(param_1,0); } lVar6 = _mi_rec_unpack(param_1,param_3,param_1[0x24],local_78); iVar9 = -(uint)(lVar6 == -1); } LAB_00130327: if (*(long *)(in_FS_OFFSET + 0x28) != local_38) { /* WARNING: Subroutine does not return */ __stack_chk_fail(); } return iVar9; }
34,764
glfwPlatformSetWindowAspectRatio
untodesu[P]riteg/build_O1/_deps/glfw-src/src/x11_window.c
void _glfwPlatformSetWindowAspectRatio(_GLFWwindow* window, int numer, int denom) { int width, height; _glfwPlatformGetWindowSize(window, &width, &height); updateNormalHints(window, width, height); XFlush(_glfw.x11.display); }
O1
c
glfwPlatformSetWindowAspectRatio: pushq %r15 pushq %r14 pushq %rbx subq $0x90, %rsp movq %rdi, %rbx leaq 0x8165a(%rip), %r15 # 0xa4638 movq 0x1fec0(%r15), %rdi movq 0x348(%rbx), %rsi leaq 0x8(%rsp), %r14 movq %r14, %rdx callq 0xcf20 movl 0x8(%r14), %esi movl 0xc(%r14), %edx movq %rbx, %rdi callq 0x22e7d movq 0x1fec0(%r15), %rdi callq 0xcce0 addq $0x90, %rsp popq %rbx popq %r14 popq %r15 retq
_glfwPlatformSetWindowAspectRatio: push r15 push r14 push rbx sub rsp, 90h mov rbx, rdi lea r15, _glfw mov rdi, [r15+1FEC0h] mov rsi, [rbx+348h] lea r14, [rsp+0A8h+var_A0] mov rdx, r14 call _XGetWindowAttributes mov esi, [r14+8] mov edx, [r14+0Ch] loc_23001: mov rdi, rbx call updateNormalHints mov rdi, [r15+1FEC0h] call _XFlush add rsp, 90h pop rbx pop r14 pop r15 retn
long long glfwPlatformSetWindowAspectRatio(long long a1) { _BYTE v2[8]; // [rsp+8h] [rbp-A0h] BYREF int v3; // [rsp+10h] [rbp-98h] int v4; // [rsp+14h] [rbp-94h] XGetWindowAttributes(*(_QWORD *)&glfw[32688], *(_QWORD *)(a1 + 840), v2); updateNormalHints(a1, v3, v4); return XFlush(*(_QWORD *)&glfw[32688]); }
_glfwPlatformSetWindowAspectRatio: PUSH R15 PUSH R14 PUSH RBX SUB RSP,0x90 MOV RBX,RDI LEA R15,[0x1a4638] MOV RDI,qword ptr [R15 + 0x1fec0] MOV RSI,qword ptr [RBX + 0x348] LEA R14,[RSP + 0x8] MOV RDX,R14 CALL 0x0010cf20 MOV ESI,dword ptr [R14 + 0x8] MOV EDX,dword ptr [R14 + 0xc] MOV RDI,RBX CALL 0x00122e7d MOV RDI,qword ptr [R15 + 0x1fec0] CALL 0x0010cce0 ADD RSP,0x90 POP RBX POP R14 POP R15 RET
void _glfwPlatformSetWindowAspectRatio(long param_1) { int1 local_a0 [8]; int4 local_98; int4 local_94; XGetWindowAttributes(DAT_001c44f8,*(int8 *)(param_1 + 0x348),local_a0); updateNormalHints(param_1,local_98,local_94); XFlush(DAT_001c44f8); return; }
34,765
pfs_open_table_v1
eloqsql/storage/perfschema/pfs.cc
PSI_table* pfs_open_table_v1(PSI_table_share *share, const void *identity) { PFS_table_share *pfs_table_share= reinterpret_cast<PFS_table_share*> (share); /* When the performance schema is off, do not instrument anything. Table handles have short life cycle, instrumentation will happen again if needed during the next open(). */ if (psi_unlikely(! flag_global_instrumentation)) return NULL; if (unlikely(pfs_table_share == NULL)) return NULL; /* This object is not to be instrumented. */ if (! pfs_table_share->m_enabled) return NULL; /* This object is instrumented, but all table instruments are disabled. */ if (! global_table_io_class.m_enabled && ! global_table_lock_class.m_enabled) return NULL; PFS_thread *thread= my_thread_get_THR_PFS(); if (unlikely(thread == NULL)) return NULL; PFS_table *pfs_table= create_table(pfs_table_share, thread, identity); return reinterpret_cast<PSI_table *> (pfs_table); }
O0
cpp
pfs_open_table_v1: pushq %rbp movq %rsp, %rbp subq $0x30, %rsp movq %rdi, -0x10(%rbp) movq %rsi, -0x18(%rbp) movq -0x10(%rbp), %rax movq %rax, -0x20(%rbp) leaq 0x3c8781(%rip), %rax # 0x40df80 movb (%rax), %al xorb $-0x1, %al andb $0x1, %al movzbl %al, %eax cmpl $0x0, %eax je 0x4581a movq $0x0, -0x8(%rbp) jmp 0x458b0 cmpq $0x0, -0x20(%rbp) sete %al andb $0x1, %al movzbl %al, %eax cmpl $0x0, %eax je 0x45836 movq $0x0, -0x8(%rbp) jmp 0x458b0 movq -0x20(%rbp), %rax testb $0x1, 0x4(%rax) jne 0x4584a movq $0x0, -0x8(%rbp) jmp 0x458b0 leaq 0x3c4bef(%rip), %rax # 0x40a440 testb $0x1, 0x4(%rax) jne 0x4586e leaq 0x3c4ca2(%rip), %rax # 0x40a500 testb $0x1, 0x4(%rax) jne 0x4586e movq $0x0, -0x8(%rbp) jmp 0x458b0 callq 0x45700 movq %rax, -0x28(%rbp) cmpq $0x0, -0x28(%rbp) sete %al andb $0x1, %al movzbl %al, %eax cmpl $0x0, %eax je 0x45893 movq $0x0, -0x8(%rbp) jmp 0x458b0 movq -0x20(%rbp), %rdi movq -0x28(%rbp), %rsi movq -0x18(%rbp), %rdx callq 0x30500 movq %rax, -0x30(%rbp) movq -0x30(%rbp), %rax movq %rax, -0x8(%rbp) movq -0x8(%rbp), %rax addq $0x30, %rsp popq %rbp retq nopw (%rax,%rax)
pfs_open_table_v1: push rbp mov rbp, rsp sub rsp, 30h mov [rbp+var_10], rdi mov [rbp+var_18], rsi mov rax, [rbp+var_10] mov [rbp+var_20], rax lea rax, flag_global_instrumentation mov al, [rax] xor al, 0FFh and al, 1 movzx eax, al cmp eax, 0 jz short loc_4581A mov [rbp+var_8], 0 jmp loc_458B0 loc_4581A: cmp [rbp+var_20], 0 setz al and al, 1 movzx eax, al cmp eax, 0 jz short loc_45836 mov [rbp+var_8], 0 jmp short loc_458B0 loc_45836: mov rax, [rbp+var_20] test byte ptr [rax+4], 1 jnz short loc_4584A mov [rbp+var_8], 0 jmp short loc_458B0 loc_4584A: lea rax, global_table_io_class test byte ptr [rax+4], 1 jnz short loc_4586E lea rax, global_table_lock_class test byte ptr [rax+4], 1 jnz short loc_4586E mov [rbp+var_8], 0 jmp short loc_458B0 loc_4586E: call _ZL21my_thread_get_THR_PFSv; my_thread_get_THR_PFS(void) mov [rbp+var_28], rax cmp [rbp+var_28], 0 setz al and al, 1 movzx eax, al cmp eax, 0 jz short loc_45893 mov [rbp+var_8], 0 jmp short loc_458B0 loc_45893: mov rdi, [rbp+var_20]; PFS_table_share * mov rsi, [rbp+var_28]; PFS_thread * mov rdx, [rbp+var_18]; void * call _Z12create_tableP15PFS_table_shareP10PFS_threadPKv; create_table(PFS_table_share *,PFS_thread *,void const*) mov [rbp+var_30], rax mov rax, [rbp+var_30] mov [rbp+var_8], rax loc_458B0: mov rax, [rbp+var_8] add rsp, 30h pop rbp retn
long long pfs_open_table_v1(PFS_table_share *a1, const void *a2) { PFS_thread *THR_PFS; // [rsp+8h] [rbp-28h] if ( (flag_global_instrumentation & 1) == 0 ) return 0LL; if ( !a1 ) return 0LL; if ( (*((_BYTE *)a1 + 4) & 1) == 0 ) return 0LL; if ( (global_table_io_class[4] & 1) == 0 && (global_table_lock_class[4] & 1) == 0 ) return 0LL; THR_PFS = (PFS_thread *)my_thread_get_THR_PFS(); if ( THR_PFS ) return create_table(a1, THR_PFS, a2); else return 0LL; }
pfs_open_table_v1: 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 qword ptr [RBP + -0x20],RAX LEA RAX,[0x50df80] MOV AL,byte ptr [RAX] XOR AL,0xff AND AL,0x1 MOVZX EAX,AL CMP EAX,0x0 JZ 0x0014581a MOV qword ptr [RBP + -0x8],0x0 JMP 0x001458b0 LAB_0014581a: CMP qword ptr [RBP + -0x20],0x0 SETZ AL AND AL,0x1 MOVZX EAX,AL CMP EAX,0x0 JZ 0x00145836 MOV qword ptr [RBP + -0x8],0x0 JMP 0x001458b0 LAB_00145836: MOV RAX,qword ptr [RBP + -0x20] TEST byte ptr [RAX + 0x4],0x1 JNZ 0x0014584a MOV qword ptr [RBP + -0x8],0x0 JMP 0x001458b0 LAB_0014584a: LEA RAX,[0x50a440] TEST byte ptr [RAX + 0x4],0x1 JNZ 0x0014586e LEA RAX,[0x50a500] TEST byte ptr [RAX + 0x4],0x1 JNZ 0x0014586e MOV qword ptr [RBP + -0x8],0x0 JMP 0x001458b0 LAB_0014586e: CALL 0x00145700 MOV qword ptr [RBP + -0x28],RAX CMP qword ptr [RBP + -0x28],0x0 SETZ AL AND AL,0x1 MOVZX EAX,AL CMP EAX,0x0 JZ 0x00145893 MOV qword ptr [RBP + -0x8],0x0 JMP 0x001458b0 LAB_00145893: MOV RDI,qword ptr [RBP + -0x20] MOV RSI,qword ptr [RBP + -0x28] MOV RDX,qword ptr [RBP + -0x18] CALL 0x00130500 MOV qword ptr [RBP + -0x30],RAX MOV RAX,qword ptr [RBP + -0x30] MOV qword ptr [RBP + -0x8],RAX LAB_001458b0: MOV RAX,qword ptr [RBP + -0x8] ADD RSP,0x30 POP RBP RET
int8 pfs_open_table_v1(PFS_table_share *param_1,void *param_2) { PFS_thread *pPVar1; int8 local_10; if (((flag_global_instrumentation ^ 0xff) & 1) == 0) { if (param_1 == (PFS_table_share *)0x0) { local_10 = 0; } else if (((byte)param_1[4] & 1) == 0) { local_10 = 0; } else if (((global_table_io_class[4] & 1) == 0) && ((global_table_lock_class[4] & 1) == 0)) { local_10 = 0; } else { pPVar1 = (PFS_thread *)my_thread_get_THR_PFS(); if (pPVar1 == (PFS_thread *)0x0) { local_10 = 0; } else { local_10 = create_table(param_1,pPVar1,param_2); } } } else { local_10 = 0; } return local_10; }
34,766
expand_message_xmd
corpus-core[P]colibri-stateless/build_O1/_deps/blst-src/src/hash_to_field.c
static void expand_message_xmd(unsigned char *bytes, size_t len_in_bytes, const unsigned char *aug, size_t aug_len, const unsigned char *msg, size_t msg_len, const unsigned char *DST, size_t DST_len) { union { limb_t align; unsigned char c[32]; } b_0; union { limb_t align; unsigned char c[33+256+31]; } b_i; unsigned char *p; size_t i, b_i_bits, b_i_blocks; SHA256_CTX ctx; /* * compose template for 'strxor(b_0, b_(i-1)) || I2OSP(i, 1) || DST_prime' */ if (DST_len > 255) { sha256_init(&ctx); sha256_update(&ctx, "H2C-OVERSIZE-DST-", 17); sha256_update(&ctx, DST, DST_len); sha256_final(b_0.c, &ctx); DST = b_0.c, DST_len = 32; } b_i_blocks = ((33 + DST_len + 1 + 9) + 63) & -64; vec_zero(b_i.c + b_i_blocks - 64, 64); p = b_i.c + 33; for (i = 0; i < DST_len; i++) p[i] = DST[i]; p[i++] = (unsigned char)DST_len; p[i++] = 0x80; p[i+6] = p[i+5] = p[i+4] = p[i+3] = p[i+2] = p[i+1] = p[i+0] = 0; b_i_bits = (33 + DST_len + 1) * 8; p = b_i.c + b_i_blocks; p[-2] = (unsigned char)(b_i_bits >> 8); p[-1] = (unsigned char)(b_i_bits); sha256_init_Zpad(&ctx); /* Z_pad | */ sha256_update(&ctx, aug, aug_len); /* | aug | */ sha256_update(&ctx, msg, msg_len); /* | msg | */ /* | I2OSP(len_in_bytes, 2) || I2OSP(0, 1) || DST_prime */ b_i.c[30] = (unsigned char)(len_in_bytes >> 8); b_i.c[31] = (unsigned char)(len_in_bytes); b_i.c[32] = 0; sha256_update(&ctx, b_i.c + 30, 3 + DST_len + 1); sha256_final(b_0.c, &ctx); sha256_init_h(ctx.h); vec_copy(b_i.c, b_0.c, 32); ++b_i.c[32]; sha256_block_data_order(ctx.h, b_i.c, b_i_blocks / 64); sha256_emit(bytes, ctx.h); len_in_bytes += 31; /* ell = ceil(len_in_bytes / b_in_bytes), with */ len_in_bytes /= 32; /* caller being responsible for accordingly large * buffer. hash_to_field passes one with length * divisible by 64, remember? which works... */ while (--len_in_bytes) { sha256_init_h(ctx.h); vec_xor(b_i.c, b_0.c, bytes, 32); bytes += 32; ++b_i.c[32]; sha256_block_data_order(ctx.h, b_i.c, b_i_blocks / 64); sha256_emit(bytes, ctx.h); } }
O1
c
expand_message_xmd: pushq %rbp movq %rsp, %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x208, %rsp # imm = 0x208 movq %rsi, -0x38(%rbp) movq %rdi, %rbx movq 0x18(%rbp), %r12 movq 0x10(%rbp), %r15 cmpq $0x100, %r12 # imm = 0x100 movq %r9, -0x58(%rbp) movq %r8, -0x50(%rbp) movq %rcx, -0x48(%rbp) movq %rdx, -0x40(%rbp) jb 0x5b75c movaps 0x32e05(%rip), %xmm0 # 0x8e4e0 leaq -0xc0(%rbp), %rax movups %xmm0, -0x28(%rax) movaps 0x32e03(%rip), %xmm0 # 0x8e4f0 movups %xmm0, -0x18(%rax) movq $0x0, -0x8(%rax) movl $0x5, %ecx movq $0x0, -0xe8(%rbp,%rcx,8) incq %rcx cmpq $0xd, %rcx jne 0x5b6fe leaq -0xe8(%rbp), %r14 movq $0x0, 0x68(%r14) leaq 0x33477(%rip), %rsi # 0x8eba0 movl $0x11, %edx movq %r14, %rdi callq 0x683aa movq %r14, %rdi movq %r15, %rsi movq %r12, %rdx callq 0x683aa leaq -0x78(%rbp), %rdi movq %rdi, -0x30(%rbp) movq %r14, %rsi callq 0x684b2 movl $0x20, %r12d jmp 0x5b760 movq %r15, -0x30(%rbp) leaq 0x6a(%r12), %r14 movl %r14d, %eax andl $0x1c0, %eax # imm = 0x1C0 leaq (%rax,%rbp), %r15 addq $-0x230, %r15 # imm = 0xFDD0 addq %rbp, %rax addq $-0x270, %rax # imm = 0xFD90 movq $-0x40, %rcx movq $0x0, (%r15,%rcx) addq $0x8, %rcx jne 0x5b788 leaq -0x20f(%rbp), %r13 xorl %ecx, %ecx testq %r12, %r12 je 0x5b7ba movq %r13, %rdi movq -0x30(%rbp), %rsi movq %r12, %rdx callq 0x211a0 xorl %ecx, %ecx movq %r12, %rax jmp 0x5b7bc xorl %eax, %eax movb %r12b, -0x20f(%rbp,%rax) movb $-0x80, -0x20e(%rbp,%rax) movl %ecx, 0x5(%r13,%rax) movl %ecx, 0x2(%r13,%rax) leal 0x110(,%r12,8), %eax rolw $0x8, %ax movw %ax, -0x2(%r15) movaps 0x32d12(%rip), %xmm0 # 0x8e500 leaq -0xc0(%rbp), %rax movups %xmm0, -0x28(%rax) movaps 0x32d10(%rip), %xmm0 # 0x8e510 movups %xmm0, -0x18(%rax) movq $0x40, -0x8(%rax) movl $0x5, %ecx movq $0x0, -0xe8(%rbp,%rcx,8) incq %rcx cmpq $0xd, %rcx jne 0x5b811 leaq -0xe8(%rbp), %r15 movq $0x0, 0x68(%r15) movq %r15, %rdi movq -0x40(%rbp), %rsi movq -0x48(%rbp), %rdx callq 0x683aa movq %r15, %rdi movq -0x50(%rbp), %rsi movq -0x58(%rbp), %rdx callq 0x683aa leaq -0x212(%rbp), %r13 movq -0x38(%rbp), %rax movb %ah, -0x212(%rbp) movb %al, 0x1(%r13) movb $0x0, 0x2(%r13) addq $0x4, %r12 movq %r15, %rdi movq %r13, %rsi movq %r12, %rdx callq 0x683aa leaq -0x78(%rbp), %r12 movq %r12, %rdi movq %r15, %rsi callq 0x684b2 movaps 0x32c49(%rip), %xmm0 # 0x8e4e0 movups %xmm0, (%r15) movaps 0x32c4e(%rip), %xmm0 # 0x8e4f0 movups %xmm0, 0x10(%r15) movups (%r12), %xmm0 movups 0x10(%r12), %xmm1 movaps %xmm0, -0x1e(%r13) movaps %xmm1, -0xe(%r13) incb 0x2(%r13) shrq $0x6, %r14 leaq -0x230(%rbp), %rsi movq %r15, %rdi movq %r14, %rdx callq 0x6d240 movq %rbx, %rdi movq %r15, %rsi callq 0x6f5a0 movq -0x38(%rbp), %r13 addq $0x1f, %r13 shrq $0x5, %r13 decq %r13 je 0x5b959 leaq -0x230(%rbp), %r12 movaps 0x32be0(%rip), %xmm0 # 0x8e4e0 movups %xmm0, -0xe8(%rbp) movaps 0x32be2(%rip), %xmm0 # 0x8e4f0 movups %xmm0, -0xd8(%rbp) xorl %eax, %eax movq (%rbx,%rax,8), %rcx xorq -0x78(%rbp,%rax,8), %rcx movq %rcx, -0x230(%rbp,%rax,8) incq %rax cmpq $0x4, %rax jne 0x5b917 addq $0x20, %rbx incb -0x210(%rbp) movq %r15, %rdi movq %r12, %rsi movq %r14, %rdx callq 0x6d240 movq %rbx, %rdi movq %r15, %rsi callq 0x6f5a0 decq %r13 jne 0x5b8f9 addq $0x208, %rsp # imm = 0x208 popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq
expand_message_xmd: push rbp mov rbp, rsp push r15 push r14 push r13 push r12 push rbx sub rsp, 208h mov [rbp+var_38], rsi mov rbx, rdi mov r12, [rbp+arg_8] mov r15, [rbp+arg_0] cmp r12, 100h mov [rbp+var_58], r9 mov [rbp+var_50], r8 mov [rbp+var_48], rcx mov [rbp+var_40], rdx jb loc_5B75C movaps xmm0, cs:xmmword_8E4E0 lea rax, [rbp+var_C0] movups xmmword ptr [rax-28h], xmm0 movaps xmm0, cs:xmmword_8E4F0 movups xmmword ptr [rax-18h], xmm0 mov qword ptr [rax-8], 0 mov ecx, 5 loc_5B6FE: mov qword ptr [rbp+rcx*8+var_E8], 0 inc rcx cmp rcx, 0Dh jnz short loc_5B6FE lea r14, [rbp+var_E8] mov qword ptr [r14+68h], 0 lea rsi, aH2cOversizeDst; "H2C-OVERSIZE-DST-" mov edx, 11h mov rdi, r14 call sha256_update mov rdi, r14 mov rsi, r15 mov rdx, r12 call sha256_update lea rdi, [rbp+var_78] mov [rbp+var_30], rdi mov rsi, r14 call sha256_final mov r12d, 20h ; ' ' jmp short loc_5B760 loc_5B75C: mov [rbp+var_30], r15 loc_5B760: lea r14, [r12+6Ah] mov eax, r14d and eax, 1C0h lea r15, [rax+rbp] add r15, 0FFFFFFFFFFFFFDD0h add rax, rbp add rax, 0FFFFFFFFFFFFFD90h mov rcx, 0FFFFFFFFFFFFFFC0h loc_5B788: mov qword ptr [r15+rcx], 0 add rcx, 8 jnz short loc_5B788 lea r13, [rbp+var_20F] xor ecx, ecx test r12, r12 jz short loc_5B7BA mov rdi, r13 mov rsi, [rbp+var_30] mov rdx, r12 call _memcpy xor ecx, ecx mov rax, r12 jmp short loc_5B7BC loc_5B7BA: xor eax, eax loc_5B7BC: mov [rbp+rax+var_20F], r12b mov [rbp+rax+var_20E], 80h mov [r13+rax+5], ecx mov [r13+rax+2], ecx lea eax, ds:110h[r12*8] rol ax, 8 mov [r15-2], ax movaps xmm0, cs:xmmword_8E500 lea rax, [rbp+var_C0] movups xmmword ptr [rax-28h], xmm0 movaps xmm0, cs:xmmword_8E510 movups xmmword ptr [rax-18h], xmm0 mov qword ptr [rax-8], 40h ; '@' mov ecx, 5 loc_5B811: mov qword ptr [rbp+rcx*8+var_E8], 0 inc rcx cmp rcx, 0Dh jnz short loc_5B811 lea r15, [rbp+var_E8] mov qword ptr [r15+68h], 0 mov rdi, r15 mov rsi, [rbp+var_40] mov rdx, [rbp+var_48] call sha256_update mov rdi, r15 mov rsi, [rbp+var_50] mov rdx, [rbp+var_58] call sha256_update lea r13, [rbp+var_212] mov rax, [rbp+var_38] mov [rbp+var_212], ah mov [r13+1], al mov byte ptr [r13+2], 0 add r12, 4 mov rdi, r15 mov rsi, r13 mov rdx, r12 call sha256_update lea r12, [rbp+var_78] mov rdi, r12 mov rsi, r15 call sha256_final movaps xmm0, cs:xmmword_8E4E0 movups xmmword ptr [r15], xmm0 movaps xmm0, cs:xmmword_8E4F0 movups xmmword ptr [r15+10h], xmm0 movups xmm0, xmmword ptr [r12] movups xmm1, xmmword ptr [r12+10h] movaps xmmword ptr [r13-1Eh], xmm0 movaps xmmword ptr [r13-0Eh], xmm1 inc byte ptr [r13+2] shr r14, 6 lea rsi, [rbp+var_230] mov rdi, r15 mov rdx, r14 call blst_sha256_block_data_order mov rdi, rbx mov rsi, r15 call blst_sha256_emit mov r13, [rbp+var_38] add r13, 1Fh shr r13, 5 dec r13 jz short loc_5B959 lea r12, [rbp+var_230] loc_5B8F9: movaps xmm0, cs:xmmword_8E4E0 movups [rbp+var_E8], xmm0 movaps xmm0, cs:xmmword_8E4F0 movups [rbp+var_D8], xmm0 xor eax, eax loc_5B917: mov rcx, [rbx+rax*8] xor rcx, [rbp+rax*8+var_78] mov [rbp+rax*8+var_230], rcx inc rax cmp rax, 4 jnz short loc_5B917 add rbx, 20h ; ' ' inc [rbp+var_210] mov rdi, r15 mov rsi, r12 mov rdx, r14 call blst_sha256_block_data_order mov rdi, rbx mov rsi, r15 call blst_sha256_emit dec r13 jnz short loc_5B8F9 loc_5B959: add rsp, 208h pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn
long long expand_message_xmd( long long a1, long long a2, long long a3, long long a4, long long a5, long long a6, long long *a7, unsigned long long a8) { long long v8; // rbx long long v9; // r12 long long i; // rcx char *v11; // r15 long long v12; // rcx long long v13; // rax long long j; // rcx unsigned long long v15; // r14 int v16; // ecx int v17; // r8d int v18; // r9d long long result; // rax int v20; // r8d int v21; // r9d unsigned long long v22; // r13 long long k; // rax long long v24; // rcx long long v25[3]; // [rsp+0h] [rbp-230h] BYREF __int128 v26; // [rsp+18h] [rbp-218h] BYREF long long v27; // [rsp+28h] [rbp-208h] long long v28; // [rsp+30h] [rbp-200h] long long v29; // [rsp+38h] [rbp-1F8h] long long v30; // [rsp+40h] [rbp-1F0h] long long v31; // [rsp+48h] [rbp-1E8h] long long v32; // [rsp+50h] [rbp-1E0h] long long v33; // [rsp+58h] [rbp-1D8h] long long v34; // [rsp+60h] [rbp-1D0h] long long v35; // [rsp+68h] [rbp-1C8h] __int128 v36; // [rsp+148h] [rbp-E8h] BYREF __int128 v37; // [rsp+158h] [rbp-D8h] long long v38; // [rsp+168h] [rbp-C8h] long long v39; // [rsp+1B0h] [rbp-80h] long long v40[4]; // [rsp+1B8h] [rbp-78h] BYREF long long v41; // [rsp+1D8h] [rbp-58h] long long v42; // [rsp+1E0h] [rbp-50h] long long v43; // [rsp+1E8h] [rbp-48h] long long v44; // [rsp+1F0h] [rbp-40h] long long v45; // [rsp+1F8h] [rbp-38h] long long *v46; // [rsp+200h] [rbp-30h] v45 = a2; v8 = a1; v9 = a8; v41 = a6; v42 = a5; v43 = a4; v44 = a3; if ( a8 < 0x100 ) { v46 = a7; } else { v36 = xmmword_8E4E0; v37 = xmmword_8E4F0; v38 = 0LL; for ( i = 5LL; i != 13; ++i ) *((_QWORD *)&v36 + i) = 0LL; v39 = 0LL; sha256_update(&v36, "H2C-OVERSIZE-DST-", 17LL); sha256_update(&v36, a7, a8); v46 = v40; sha256_final(v40, &v36); v9 = 32LL; } v11 = (char *)v25 + (((_WORD)v9 + 106) & 0x1C0); v12 = -64LL; do { *(_QWORD *)&v11[v12] = 0LL; v12 += 8LL; } while ( v12 ); if ( v9 ) { memcpy((char *)&v26 + 9); v13 = v9; } else { v13 = 0LL; } *((_BYTE *)&v26 + v13 + 9) = v9; *((_BYTE *)&v26 + v13 + 10) = 0x80; *(_DWORD *)((char *)&v26 + v13 + 14) = 0; *(_DWORD *)((char *)&v26 + v13 + 11) = 0; *((_WORD *)v11 - 1) = __ROL2__(8 * v9 + 272, 8); v36 = xmmword_8E500; v37 = xmmword_8E510; v38 = 64LL; for ( j = 5LL; j != 13; ++j ) *((_QWORD *)&v36 + j) = 0LL; v39 = 0LL; sha256_update(&v36, v44, v43); sha256_update(&v36, v42, v41); BYTE6(v26) = BYTE1(v45); *(_WORD *)((char *)&v26 + 7) = (unsigned __int8)v45; sha256_update(&v36, (char *)&v26 + 6, v9 + 4); sha256_final(v40, &v36); v36 = xmmword_8E4E0; v37 = xmmword_8E4F0; ++BYTE8(v26); v15 = (unsigned long long)(v9 + 106) >> 6; blst_sha256_block_data_order( (unsigned int)&v36, (unsigned int)v25, v15, v16, v17, v18, v40[0], v40[1], v40[2], v40[3], *((long long *)&v26 + 1), v27, v28, v29, v30, v31, v32, v33, v34, v35); result = blst_sha256_emit(a1, &v36); v22 = ((unsigned long long)(v45 + 31) >> 5) - 1; if ( (unsigned long long)(v45 + 31) >> 5 != 1 ) { do { v36 = xmmword_8E4E0; v37 = xmmword_8E4F0; for ( k = 0LL; k != 4; ++k ) { v24 = v40[k] ^ *(_QWORD *)(v8 + 8 * k); v25[k] = v24; } v8 += 32LL; ++BYTE8(v26); blst_sha256_block_data_order( (unsigned int)&v36, (unsigned int)v25, v15, v24, v20, v21, v25[0], v25[1], v25[2], v26, *((long long *)&v26 + 1), v27, v28, v29, v30, v31, v32, v33, v34, v35); result = blst_sha256_emit(v8, &v36); --v22; } while ( v22 ); } return result; }
expand_message_xmd: PUSH RBP MOV RBP,RSP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0x208 MOV qword ptr [RBP + -0x38],RSI MOV RBX,RDI MOV R12,qword ptr [RBP + 0x18] MOV R15,qword ptr [RBP + 0x10] CMP R12,0x100 MOV qword ptr [RBP + -0x58],R9 MOV qword ptr [RBP + -0x50],R8 MOV qword ptr [RBP + -0x48],RCX MOV qword ptr [RBP + -0x40],RDX JC 0x0015b75c MOVAPS XMM0,xmmword ptr [0x0018e4e0] LEA RAX,[RBP + -0xc0] MOVUPS xmmword ptr [RAX + -0x28],XMM0 MOVAPS XMM0,xmmword ptr [0x0018e4f0] MOVUPS xmmword ptr [RAX + -0x18],XMM0 MOV qword ptr [RAX + -0x8],0x0 MOV ECX,0x5 LAB_0015b6fe: MOV qword ptr [RBP + RCX*0x8 + -0xe8],0x0 INC RCX CMP RCX,0xd JNZ 0x0015b6fe LEA R14,[RBP + -0xe8] MOV qword ptr [R14 + 0x68],0x0 LEA RSI,[0x18eba0] MOV EDX,0x11 MOV RDI,R14 CALL 0x001683aa MOV RDI,R14 MOV RSI,R15 MOV RDX,R12 CALL 0x001683aa LEA RDI,[RBP + -0x78] MOV qword ptr [RBP + -0x30],RDI MOV RSI,R14 CALL 0x001684b2 MOV R12D,0x20 JMP 0x0015b760 LAB_0015b75c: MOV qword ptr [RBP + -0x30],R15 LAB_0015b760: LEA R14,[R12 + 0x6a] MOV EAX,R14D AND EAX,0x1c0 LEA R15,[RAX + RBP*0x1] ADD R15,-0x230 ADD RAX,RBP ADD RAX,-0x270 MOV RCX,-0x40 LAB_0015b788: MOV qword ptr [R15 + RCX*0x1],0x0 ADD RCX,0x8 JNZ 0x0015b788 LEA R13,[RBP + -0x20f] XOR ECX,ECX TEST R12,R12 JZ 0x0015b7ba MOV RDI,R13 MOV RSI,qword ptr [RBP + -0x30] MOV RDX,R12 CALL 0x001211a0 XOR ECX,ECX MOV RAX,R12 JMP 0x0015b7bc LAB_0015b7ba: XOR EAX,EAX LAB_0015b7bc: MOV byte ptr [RBP + RAX*0x1 + -0x20f],R12B MOV byte ptr [RBP + RAX*0x1 + -0x20e],0x80 MOV dword ptr [R13 + RAX*0x1 + 0x5],ECX MOV dword ptr [R13 + RAX*0x1 + 0x2],ECX LEA EAX,[0x110 + R12*0x8] ROL AX,0x8 MOV word ptr [R15 + -0x2],AX MOVAPS XMM0,xmmword ptr [0x0018e500] LEA RAX,[RBP + -0xc0] MOVUPS xmmword ptr [RAX + -0x28],XMM0 MOVAPS XMM0,xmmword ptr [0x0018e510] MOVUPS xmmword ptr [RAX + -0x18],XMM0 MOV qword ptr [RAX + -0x8],0x40 MOV ECX,0x5 LAB_0015b811: MOV qword ptr [RBP + RCX*0x8 + -0xe8],0x0 INC RCX CMP RCX,0xd JNZ 0x0015b811 LEA R15,[RBP + -0xe8] MOV qword ptr [R15 + 0x68],0x0 MOV RDI,R15 MOV RSI,qword ptr [RBP + -0x40] MOV RDX,qword ptr [RBP + -0x48] CALL 0x001683aa MOV RDI,R15 MOV RSI,qword ptr [RBP + -0x50] MOV RDX,qword ptr [RBP + -0x58] CALL 0x001683aa LEA R13,[RBP + -0x212] MOV RAX,qword ptr [RBP + -0x38] MOV byte ptr [RBP + -0x212],AH MOV byte ptr [R13 + 0x1],AL MOV byte ptr [R13 + 0x2],0x0 ADD R12,0x4 MOV RDI,R15 MOV RSI,R13 MOV RDX,R12 CALL 0x001683aa LEA R12,[RBP + -0x78] MOV RDI,R12 MOV RSI,R15 CALL 0x001684b2 MOVAPS XMM0,xmmword ptr [0x0018e4e0] MOVUPS xmmword ptr [R15],XMM0 MOVAPS XMM0,xmmword ptr [0x0018e4f0] MOVUPS xmmword ptr [R15 + 0x10],XMM0 MOVUPS XMM0,xmmword ptr [R12] MOVUPS XMM1,xmmword ptr [R12 + 0x10] MOVAPS xmmword ptr [R13 + -0x1e],XMM0 MOVAPS xmmword ptr [R13 + -0xe],XMM1 INC byte ptr [R13 + 0x2] SHR R14,0x6 LEA RSI,[RBP + -0x230] MOV RDI,R15 MOV RDX,R14 CALL 0x0016d240 MOV RDI,RBX MOV RSI,R15 CALL 0x0016f5a0 MOV R13,qword ptr [RBP + -0x38] ADD R13,0x1f SHR R13,0x5 DEC R13 JZ 0x0015b959 LEA R12,[RBP + -0x230] LAB_0015b8f9: MOVAPS XMM0,xmmword ptr [0x0018e4e0] MOVUPS xmmword ptr [RBP + -0xe8],XMM0 MOVAPS XMM0,xmmword ptr [0x0018e4f0] MOVUPS xmmword ptr [RBP + -0xd8],XMM0 XOR EAX,EAX LAB_0015b917: MOV RCX,qword ptr [RBX + RAX*0x8] XOR RCX,qword ptr [RBP + RAX*0x8 + -0x78] MOV qword ptr [RBP + RAX*0x8 + -0x230],RCX INC RAX CMP RAX,0x4 JNZ 0x0015b917 ADD RBX,0x20 INC byte ptr [RBP + -0x210] MOV RDI,R15 MOV RSI,R12 MOV RDX,R14 CALL 0x0016d240 MOV RDI,RBX MOV RSI,R15 CALL 0x0016f5a0 DEC R13 JNZ 0x0015b8f9 LAB_0015b959: ADD RSP,0x208 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET
/* WARNING: Globals starting with '_' overlap smaller symbols at the same address */ void expand_message_xmd(long param_1,long param_2,int8 param_3,int8 param_4, int8 param_5,int8 param_6,int8 *param_7,size_t param_8) { ushort uVar1; size_t sVar2; long lVar3; long lVar4; ulong uVar5; int8 uStack_240; int8 local_238; int4 uStack_230; int4 uStack_22c; int4 local_228; int4 uStack_224; int4 uStack_220; int4 uStack_21c; char local_218; int1 local_217 [2]; int1 auStack_215 [293]; int8 local_f0 [2]; int8 local_e0; int8 uStack_d8; int8 local_d0; int8 local_c8 [8]; int8 local_88; int8 local_80; int4 uStack_78; int4 uStack_74; int4 local_70; int4 uStack_6c; int4 uStack_68; int4 uStack_64; int8 local_60; int8 local_58; int8 local_50; int8 local_48; long local_40; int8 *local_38; local_60 = param_6; local_58 = param_5; local_50 = param_4; local_48 = param_3; local_40 = param_2; if (param_8 < 0x100) { local_38 = param_7; } else { local_f0[0] = _DAT_0018e4e0; local_f0[1] = _UNK_0018e4e8; local_e0 = CONCAT44(_UNK_0018e4f4,_DAT_0018e4f0); uStack_d8 = CONCAT44(_UNK_0018e4fc,_UNK_0018e4f8); local_d0 = 0; lVar4 = 5; do { local_f0[lVar4] = 0; lVar4 = lVar4 + 1; } while (lVar4 != 0xd); local_88 = 0; uStack_240 = 0x15b736; sha256_update(local_f0,"H2C-OVERSIZE-DST-",0x11); uStack_240 = 0x15b744; sha256_update(local_f0,param_7,param_8); local_38 = &local_80; uStack_240 = 0x15b754; sha256_final(local_38,local_f0); param_8 = 0x20; } uVar5 = (ulong)((uint)(param_8 + 0x6a) & 0x1c0); lVar4 = -0x40; do { *(int8 *)((long)&local_238 + lVar4 + uVar5) = 0; lVar4 = lVar4 + 8; } while (lVar4 != 0); if (param_8 == 0) { sVar2 = 0; } else { uStack_240 = 0x15b7b3; memcpy(local_217,local_38,param_8); sVar2 = param_8; } local_217[sVar2] = (char)param_8; local_217[sVar2 + 1] = 0x80; *(int4 *)(local_217 + sVar2 + 5) = 0; *(int4 *)(local_217 + sVar2 + 2) = 0; uVar1 = (short)param_8 * 8 + 0x110; *(ushort *)((long)&uStack_240 + uVar5 + 6) = uVar1 * 0x100 | uVar1 >> 8; local_f0[0] = _DAT_0018e500; local_f0[1] = _UNK_0018e508; local_e0 = CONCAT44(_UNK_0018e514,_DAT_0018e510); uStack_d8 = CONCAT44(_UNK_0018e51c,_UNK_0018e518); local_d0 = 0x40; lVar4 = 5; do { local_f0[lVar4] = 0; lVar4 = lVar4 + 1; } while (lVar4 != 0xd); local_88 = 0; uStack_240 = 0x15b845; sha256_update(local_f0,local_48,local_50); uStack_240 = 0x15b855; sha256_update(local_f0,local_58,local_60); uStack_21c = CONCAT13((char)local_40,CONCAT12((char)((ulong)local_40 >> 8),(int2)uStack_21c) ); local_218 = '\0'; uStack_240 = 0x15b881; sha256_update(local_f0,(long)&uStack_21c + 2,param_8 + 4); uStack_240 = 0x15b890; sha256_final(&local_80,local_f0); local_f0[0] = _DAT_0018e4e0; local_f0[1] = _UNK_0018e4e8; local_e0 = CONCAT44(_UNK_0018e4f4,_DAT_0018e4f0); uStack_d8 = CONCAT44(_UNK_0018e4fc,_UNK_0018e4f8); local_238._0_4_ = (int4)local_80; local_238._4_4_ = local_80._4_4_; uStack_230 = uStack_78; uStack_22c = uStack_74; local_228 = local_70; uStack_224 = uStack_6c; uStack_220 = uStack_68; uStack_21c = uStack_64; local_218 = local_218 + '\x01'; uVar5 = param_8 + 0x6a >> 6; uStack_240 = 0x15b8d6; blst_sha256_block_data_order(local_f0,&local_238,uVar5); uStack_240 = 0x15b8e1; blst_sha256_emit(param_1,local_f0); lVar4 = (local_40 + 0x1fU >> 5) - 1; if (lVar4 != 0) { do { local_f0[0] = _DAT_0018e4e0; local_f0[1] = _UNK_0018e4e8; local_e0 = CONCAT44(_UNK_0018e4f4,_DAT_0018e4f0); uStack_d8 = CONCAT44(_UNK_0018e4fc,_UNK_0018e4f8); lVar3 = 0; do { (&local_238)[lVar3] = *(ulong *)(param_1 + lVar3 * 8) ^ (&local_80)[lVar3]; lVar3 = lVar3 + 1; } while (lVar3 != 4); param_1 = param_1 + 0x20; local_218 = local_218 + '\x01'; uStack_240 = 0x15b949; blst_sha256_block_data_order(local_f0,&local_238,uVar5); uStack_240 = 0x15b954; blst_sha256_emit(param_1,local_f0); lVar4 = lVar4 + -1; } while (lVar4 != 0); } return; }
34,767
mi_check_index_tuple
eloqsql/storage/myisam/mi_key.c
check_result_t mi_check_index_tuple(MI_INFO *info, uint keynr, uchar *record) { int need_unpack= TRUE; check_result_t res= CHECK_POS; if (info->index_cond_func) { if (mi_unpack_index_tuple(info, keynr, record)) res= CHECK_ERROR; else if ((res= info->index_cond_func(info->index_cond_func_arg)) == CHECK_OUT_OF_RANGE) { /* We got beyond the end of scanned range */ info->lastpos= HA_OFFSET_ERROR; /* No active record */ my_errno= HA_ERR_END_OF_FILE; } /* If we got an error, out-of-range condition, or ICP condition computed to FALSE - we don't need to check the Rowid Filter. */ if (res != CHECK_POS) return res; need_unpack= FALSE; } /* Check the Rowid Filter, if present */ if (mi_check_rowid_filter_is_active(info)) { /* Unpack the index tuple if we haven't done it already */ if (need_unpack && mi_unpack_index_tuple(info, keynr, record)) res= CHECK_ERROR; else { if ((res= info->rowid_filter_func(info->rowid_filter_func_arg)) == CHECK_OUT_OF_RANGE) { /* We got beyond the end of scanned range */ info->lastpos= HA_OFFSET_ERROR; /* No active record */ my_errno= HA_ERR_END_OF_FILE; } } } return res; }
O3
c
mi_check_index_tuple: pushq %rbp movq %rsp, %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx pushq %rax movq %rdx, %r14 movl %esi, %r15d movq %rdi, %rbx movq 0x340(%rdi), %r13 testq %r13, %r13 je 0x7b51b movq %rbx, %rdi movl %r15d, %esi movq %r14, %rdx callq 0x7b59e movl $0xffffffff, %r12d # imm = 0xFFFFFFFF testl %eax, %eax jne 0x7b58c movq 0x348(%rbx), %rdi callq *0x340(%rbx) cmpl $0x2, %eax je 0x7b551 movl %eax, %r12d cmpl $0x1, %eax jne 0x7b58c movq 0x358(%rbx), %rax movl $0x1, %r12d testq %rax, %rax je 0x7b58c movq 0x360(%rbx), %rdi callq *%rax testl %eax, %eax je 0x7b58c testq %r13, %r13 je 0x7b574 movq 0x360(%rbx), %rdi callq *0x350(%rbx) cmpl $0x2, %eax jne 0x7b56f movq $-0x1, 0x170(%rbx) callq 0xa13e6 movl $0x89, (%rax) movl $0x2, %r12d jmp 0x7b58c movl %eax, %r12d jmp 0x7b58c movq %rbx, %rdi movl %r15d, %esi movq %r14, %rdx callq 0x7b59e movl $0xffffffff, %r12d # imm = 0xFFFFFFFF testl %eax, %eax je 0x7b53f movl %r12d, %eax addq $0x8, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq
mi_check_index_tuple: push rbp mov rbp, rsp push r15 push r14 push r13 push r12 push rbx push rax mov r14, rdx mov r15d, esi mov rbx, rdi mov r13, [rdi+340h] test r13, r13 jz short loc_7B51B mov rdi, rbx mov esi, r15d mov rdx, r14 call mi_unpack_index_tuple mov r12d, 0FFFFFFFFh test eax, eax jnz loc_7B58C mov rdi, [rbx+348h] call qword ptr [rbx+340h] cmp eax, 2 jz short loc_7B551 mov r12d, eax cmp eax, 1 jnz short loc_7B58C loc_7B51B: mov rax, [rbx+358h] mov r12d, 1 test rax, rax jz short loc_7B58C mov rdi, [rbx+360h] call rax test eax, eax jz short loc_7B58C test r13, r13 jz short loc_7B574 loc_7B53F: mov rdi, [rbx+360h] call qword ptr [rbx+350h] cmp eax, 2 jnz short loc_7B56F loc_7B551: mov qword ptr [rbx+170h], 0FFFFFFFFFFFFFFFFh call _my_thread_var mov dword ptr [rax], 89h mov r12d, 2 jmp short loc_7B58C loc_7B56F: mov r12d, eax jmp short loc_7B58C loc_7B574: mov rdi, rbx mov esi, r15d mov rdx, r14 call mi_unpack_index_tuple mov r12d, 0FFFFFFFFh test eax, eax jz short loc_7B53F loc_7B58C: mov eax, r12d add rsp, 8 pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn
long long mi_check_index_tuple(long long a1, unsigned int a2, long long a3) { long long v5; // r13 unsigned int v6; // r12d long long v7; // rdi unsigned int v8; // eax unsigned int ( *v9)(_QWORD); // rax unsigned int v10; // eax v5 = *(_QWORD *)(a1 + 832); if ( v5 ) { v6 = -1; if ( (unsigned int)mi_unpack_index_tuple(a1, a2, a3) ) return v6; v7 = *(_QWORD *)(a1 + 840); v8 = (*(long long ( **)(long long))(a1 + 832))(v7); if ( v8 == 2 ) { LABEL_9: *(_QWORD *)(a1 + 368) = -1LL; *(_DWORD *)my_thread_var(v7) = 137; return 2; } v6 = v8; if ( v8 != 1 ) return v6; } v9 = *(unsigned int ( **)(_QWORD))(a1 + 856); v6 = 1; if ( v9 ) { if ( v9(*(_QWORD *)(a1 + 864)) ) { if ( v5 || (v6 = -1, !(unsigned int)mi_unpack_index_tuple(a1, a2, a3)) ) { v7 = *(_QWORD *)(a1 + 864); v10 = (*(long long ( **)(long long))(a1 + 848))(v7); if ( v10 != 2 ) return v10; goto LABEL_9; } } } return v6; }
mi_check_index_tuple: PUSH RBP MOV RBP,RSP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX PUSH RAX MOV R14,RDX MOV R15D,ESI MOV RBX,RDI MOV R13,qword ptr [RDI + 0x340] TEST R13,R13 JZ 0x0017b51b MOV RDI,RBX MOV ESI,R15D MOV RDX,R14 CALL 0x0017b59e MOV R12D,0xffffffff TEST EAX,EAX JNZ 0x0017b58c MOV RDI,qword ptr [RBX + 0x348] CALL qword ptr [RBX + 0x340] CMP EAX,0x2 JZ 0x0017b551 MOV R12D,EAX CMP EAX,0x1 JNZ 0x0017b58c LAB_0017b51b: MOV RAX,qword ptr [RBX + 0x358] MOV R12D,0x1 TEST RAX,RAX JZ 0x0017b58c MOV RDI,qword ptr [RBX + 0x360] CALL RAX TEST EAX,EAX JZ 0x0017b58c TEST R13,R13 JZ 0x0017b574 LAB_0017b53f: MOV RDI,qword ptr [RBX + 0x360] CALL qword ptr [RBX + 0x350] CMP EAX,0x2 JNZ 0x0017b56f LAB_0017b551: MOV qword ptr [RBX + 0x170],-0x1 CALL 0x001a13e6 MOV dword ptr [RAX],0x89 MOV R12D,0x2 JMP 0x0017b58c LAB_0017b56f: MOV R12D,EAX JMP 0x0017b58c LAB_0017b574: MOV RDI,RBX MOV ESI,R15D MOV RDX,R14 CALL 0x0017b59e MOV R12D,0xffffffff TEST EAX,EAX JZ 0x0017b53f LAB_0017b58c: MOV EAX,R12D ADD RSP,0x8 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET
int mi_check_index_tuple(long param_1,int4 param_2,int8 param_3) { long lVar1; int iVar2; int4 *puVar3; lVar1 = *(long *)(param_1 + 0x340); if (lVar1 != 0) { iVar2 = mi_unpack_index_tuple(param_1,param_2,param_3); if (iVar2 != 0) { return -1; } iVar2 = (**(code **)(param_1 + 0x340))(*(int8 *)(param_1 + 0x348)); if (iVar2 == 2) goto LAB_0017b551; if (iVar2 != 1) { return iVar2; } } if (*(code **)(param_1 + 0x358) == (code *)0x0) { return 1; } iVar2 = (**(code **)(param_1 + 0x358))(*(int8 *)(param_1 + 0x360)); if (iVar2 == 0) { return 1; } if ((lVar1 == 0) && (iVar2 = mi_unpack_index_tuple(param_1,param_2,param_3), iVar2 != 0)) { return -1; } iVar2 = (**(code **)(param_1 + 0x350))(*(int8 *)(param_1 + 0x360)); if (iVar2 != 2) { return iVar2; } LAB_0017b551: *(int8 *)(param_1 + 0x170) = 0xffffffffffffffff; puVar3 = (int4 *)_my_thread_var(); *puVar3 = 0x89; return 2; }
34,768
ggml_argsort
ngxson[P]ggml-easy/ggml/src/ggml.c
struct ggml_tensor * ggml_argsort( struct ggml_context * ctx, struct ggml_tensor * a, enum ggml_sort_order order) { GGML_ASSERT(a->ne[0] <= INT32_MAX); struct ggml_tensor * result = ggml_new_tensor(ctx, GGML_TYPE_I32, GGML_MAX_DIMS, a->ne); ggml_set_op_params_i32(result, 0, (int32_t) order); result->op = GGML_OP_ARGSORT; result->src[0] = a; return result; }
O0
c
ggml_argsort: subq $0x28, %rsp movq %rdi, 0x20(%rsp) movq %rsi, 0x18(%rsp) movl %edx, 0x14(%rsp) movq 0x18(%rsp), %rax cmpq $0x7fffffff, 0x10(%rax) # imm = 0x7FFFFFFF jle 0x51aa2 leaq 0x62b2f(%rip), %rdi # 0xb45b7 movl $0x110d, %esi # imm = 0x110D leaq 0x62b6e(%rip), %rdx # 0xb4602 leaq 0x62ca0(%rip), %rcx # 0xb473b movb $0x0, %al callq 0x46780 movq 0x20(%rsp), %rdi movq 0x18(%rsp), %rcx addq $0x10, %rcx movl $0x1a, %esi movl $0x4, %edx callq 0x40500 movq %rax, 0x8(%rsp) movq 0x8(%rsp), %rdi movl 0x14(%rsp), %edx xorl %esi, %esi callq 0x4c120 movq 0x8(%rsp), %rax movl $0x3d, 0x50(%rax) movq 0x18(%rsp), %rcx movq 0x8(%rsp), %rax movq %rcx, 0x98(%rax) movq 0x8(%rsp), %rax addq $0x28, %rsp retq nopl (%rax,%rax)
ggml_argsort: sub rsp, 28h mov [rsp+28h+var_8], rdi mov [rsp+28h+var_10], rsi mov [rsp+28h+var_14], edx mov rax, [rsp+28h+var_10] cmp qword ptr [rax+10h], 7FFFFFFFh jle short loc_51AA2 lea rdi, aWorkspaceLlm4b; "/workspace/llm4binary/github/2025_star3"... mov esi, 110Dh lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed" lea rcx, aANe0Int32Max; "a->ne[0] <= INT32_MAX" mov al, 0 call _ggml_abort loc_51AA2: mov rdi, [rsp+28h+var_8] mov rcx, [rsp+28h+var_10] add rcx, 10h mov esi, 1Ah mov edx, 4 call _ggml_new_tensor mov [rsp+28h+var_20], rax mov rdi, [rsp+28h+var_20] mov edx, [rsp+28h+var_14] xor esi, esi call ggml_set_op_params_i32 mov rax, [rsp+28h+var_20] mov dword ptr [rax+50h], 3Dh ; '=' mov rcx, [rsp+28h+var_10] mov rax, [rsp+28h+var_20] mov [rax+98h], rcx mov rax, [rsp+28h+var_20] add rsp, 28h retn
long long ggml_argsort(long long a1, long long a2, int a3) { long long v4; // [rsp+8h] [rbp-20h] if ( *(long long *)(a2 + 16) > 0x7FFFFFFF ) ggml_abort( "/workspace/llm4binary/github/2025_star3/ngxson[P]ggml-easy/ggml/src/ggml.c", 4365, (long long)"GGML_ASSERT(%s) failed", "a->ne[0] <= INT32_MAX"); v4 = ggml_new_tensor(a1, 0x1Au, 4u, a2 + 16); ggml_set_op_params_i32(v4, 0, a3); *(_DWORD *)(v4 + 80) = 61; *(_QWORD *)(v4 + 152) = a2; return v4; }
ggml_argsort: SUB RSP,0x28 MOV qword ptr [RSP + 0x20],RDI MOV qword ptr [RSP + 0x18],RSI MOV dword ptr [RSP + 0x14],EDX MOV RAX,qword ptr [RSP + 0x18] CMP qword ptr [RAX + 0x10],0x7fffffff JLE 0x00151aa2 LEA RDI,[0x1b45b7] MOV ESI,0x110d LEA RDX,[0x1b4602] LEA RCX,[0x1b473b] MOV AL,0x0 CALL 0x00146780 LAB_00151aa2: MOV RDI,qword ptr [RSP + 0x20] MOV RCX,qword ptr [RSP + 0x18] ADD RCX,0x10 MOV ESI,0x1a MOV EDX,0x4 CALL 0x00140500 MOV qword ptr [RSP + 0x8],RAX MOV RDI,qword ptr [RSP + 0x8] MOV EDX,dword ptr [RSP + 0x14] XOR ESI,ESI CALL 0x0014c120 MOV RAX,qword ptr [RSP + 0x8] MOV dword ptr [RAX + 0x50],0x3d MOV RCX,qword ptr [RSP + 0x18] MOV RAX,qword ptr [RSP + 0x8] MOV qword ptr [RAX + 0x98],RCX MOV RAX,qword ptr [RSP + 0x8] ADD RSP,0x28 RET
long ggml_argsort(int8 param_1,long param_2,int4 param_3) { long lVar1; if (0x7fffffff < *(long *)(param_2 + 0x10)) { ggml_abort("/workspace/llm4binary/github/2025_star3/ngxson[P]ggml-easy/ggml/src/ggml.c",0x110d, "GGML_ASSERT(%s) failed","a->ne[0] <= INT32_MAX"); } lVar1 = ggml_new_tensor(param_1,0x1a,4,param_2 + 0x10); ggml_set_op_params_i32(lVar1,0,param_3); *(int4 *)(lVar1 + 0x50) = 0x3d; *(long *)(lVar1 + 0x98) = param_2; return lVar1; }
34,769
resolve_pseudo_var
bluesky950520[P]quickjs/quickjs.c
static int resolve_pseudo_var(JSContext *ctx, JSFunctionDef *s, JSAtom var_name) { int var_idx; if (!s->has_this_binding) return -1; switch(var_name) { case JS_ATOM_home_object: /* 'home_object' pseudo variable */ if (s->home_object_var_idx < 0) s->home_object_var_idx = add_var(ctx, s, var_name); var_idx = s->home_object_var_idx; break; case JS_ATOM_this_active_func: /* 'this.active_func' pseudo variable */ if (s->this_active_func_var_idx < 0) s->this_active_func_var_idx = add_var(ctx, s, var_name); var_idx = s->this_active_func_var_idx; break; case JS_ATOM_new_target: /* 'new.target' pseudo variable */ if (s->new_target_var_idx < 0) s->new_target_var_idx = add_var(ctx, s, var_name); var_idx = s->new_target_var_idx; break; case JS_ATOM_this: /* 'this' pseudo variable */ if (s->this_var_idx < 0) s->this_var_idx = add_var_this(ctx, s); var_idx = s->this_var_idx; break; default: var_idx = -1; break; } return var_idx; }
O0
c
resolve_pseudo_var: subq $0x28, %rsp movq %rdi, 0x18(%rsp) movq %rsi, 0x10(%rsp) movl %edx, 0xc(%rsp) movq 0x10(%rsp), %rax cmpl $0x0, 0x64(%rax) jne 0xc211a movl $0xffffffff, 0x24(%rsp) # imm = 0xFFFFFFFF jmp 0xc2264 movl 0xc(%rsp), %eax movl %eax, 0x4(%rsp) subl $0x8, %eax je 0xc2219 jmp 0xc212d movl 0x4(%rsp), %eax subl $0x72, %eax je 0xc21da jmp 0xc213c movl 0x4(%rsp), %eax subl $0x73, %eax je 0xc2198 jmp 0xc2147 movl 0x4(%rsp), %eax subl $0x74, %eax jne 0xc2254 jmp 0xc2156 movq 0x10(%rsp), %rax cmpl $0x0, 0xe0(%rax) jge 0xc2184 movq 0x18(%rsp), %rdi movq 0x10(%rsp), %rsi movl 0xc(%rsp), %edx callq 0xa44e0 movl %eax, %ecx movq 0x10(%rsp), %rax movl %ecx, 0xe0(%rax) movq 0x10(%rsp), %rax movl 0xe0(%rax), %eax movl %eax, 0x8(%rsp) jmp 0xc225c movq 0x10(%rsp), %rax cmpl $0x0, 0xdc(%rax) jge 0xc21c6 movq 0x18(%rsp), %rdi movq 0x10(%rsp), %rsi movl 0xc(%rsp), %edx callq 0xa44e0 movl %eax, %ecx movq 0x10(%rsp), %rax movl %ecx, 0xdc(%rax) movq 0x10(%rsp), %rax movl 0xdc(%rax), %eax movl %eax, 0x8(%rsp) jmp 0xc225c movq 0x10(%rsp), %rax cmpl $0x0, 0xd8(%rax) jge 0xc2208 movq 0x18(%rsp), %rdi movq 0x10(%rsp), %rsi movl 0xc(%rsp), %edx callq 0xa44e0 movl %eax, %ecx movq 0x10(%rsp), %rax movl %ecx, 0xd8(%rax) movq 0x10(%rsp), %rax movl 0xd8(%rax), %eax movl %eax, 0x8(%rsp) jmp 0xc225c movq 0x10(%rsp), %rax cmpl $0x0, 0xd4(%rax) jge 0xc2243 movq 0x18(%rsp), %rdi movq 0x10(%rsp), %rsi callq 0xbeb00 movl %eax, %ecx movq 0x10(%rsp), %rax movl %ecx, 0xd4(%rax) movq 0x10(%rsp), %rax movl 0xd4(%rax), %eax movl %eax, 0x8(%rsp) jmp 0xc225c movl $0xffffffff, 0x8(%rsp) # imm = 0xFFFFFFFF movl 0x8(%rsp), %eax movl %eax, 0x24(%rsp) movl 0x24(%rsp), %eax addq $0x28, %rsp retq nopl (%rax)
resolve_pseudo_var: sub rsp, 28h mov [rsp+28h+var_10], rdi mov [rsp+28h+var_18], rsi mov [rsp+28h+var_1C], edx mov rax, [rsp+28h+var_18] cmp dword ptr [rax+64h], 0 jnz short loc_C211A mov [rsp+28h+var_4], 0FFFFFFFFh jmp loc_C2264 loc_C211A: mov eax, [rsp+28h+var_1C] mov [rsp+28h+var_24], eax sub eax, 8 jz loc_C2219 jmp short $+2 loc_C212D: mov eax, [rsp+28h+var_24] sub eax, 72h ; 'r' jz loc_C21DA jmp short $+2 loc_C213C: mov eax, [rsp+28h+var_24] sub eax, 73h ; 's' jz short loc_C2198 jmp short $+2 loc_C2147: mov eax, [rsp+28h+var_24] sub eax, 74h ; 't' jnz loc_C2254 jmp short $+2 loc_C2156: mov rax, [rsp+28h+var_18] cmp dword ptr [rax+0E0h], 0 jge short loc_C2184 mov rdi, [rsp+28h+var_10] mov rsi, [rsp+28h+var_18] mov edx, [rsp+28h+var_1C] call add_var mov ecx, eax mov rax, [rsp+28h+var_18] mov [rax+0E0h], ecx loc_C2184: mov rax, [rsp+28h+var_18] mov eax, [rax+0E0h] mov [rsp+28h+var_20], eax jmp loc_C225C loc_C2198: mov rax, [rsp+28h+var_18] cmp dword ptr [rax+0DCh], 0 jge short loc_C21C6 mov rdi, [rsp+28h+var_10] mov rsi, [rsp+28h+var_18] mov edx, [rsp+28h+var_1C] call add_var mov ecx, eax mov rax, [rsp+28h+var_18] mov [rax+0DCh], ecx loc_C21C6: mov rax, [rsp+28h+var_18] mov eax, [rax+0DCh] mov [rsp+28h+var_20], eax jmp loc_C225C loc_C21DA: mov rax, [rsp+28h+var_18] cmp dword ptr [rax+0D8h], 0 jge short loc_C2208 mov rdi, [rsp+28h+var_10] mov rsi, [rsp+28h+var_18] mov edx, [rsp+28h+var_1C] call add_var mov ecx, eax mov rax, [rsp+28h+var_18] mov [rax+0D8h], ecx loc_C2208: mov rax, [rsp+28h+var_18] mov eax, [rax+0D8h] mov [rsp+28h+var_20], eax jmp short loc_C225C loc_C2219: mov rax, [rsp+28h+var_18] cmp dword ptr [rax+0D4h], 0 jge short loc_C2243 mov rdi, [rsp+28h+var_10] mov rsi, [rsp+28h+var_18] call add_var_this mov ecx, eax mov rax, [rsp+28h+var_18] mov [rax+0D4h], ecx loc_C2243: mov rax, [rsp+28h+var_18] mov eax, [rax+0D4h] mov [rsp+28h+var_20], eax jmp short loc_C225C loc_C2254: mov [rsp+28h+var_20], 0FFFFFFFFh loc_C225C: mov eax, [rsp+28h+var_20] mov [rsp+28h+var_4], eax loc_C2264: mov eax, [rsp+28h+var_4] add rsp, 28h retn
long long resolve_pseudo_var( long long a1, _DWORD *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) { unsigned int v15; // [rsp+8h] [rbp-20h] if ( a2[25] ) { switch ( (_DWORD)a3 ) { case 8: if ( (int)a2[53] < 0 ) a2[53] = add_var_this(a1, (long long)a2, a7, a8, a9, a10, a11, a12, a13, a14, a3, a4, a5, a6); v15 = a2[53]; break; case 0x72: if ( (int)a2[54] < 0 ) a2[54] = add_var(a1, (long long)a2, a3, a4, a5, a6, a7, a8, a9, a10, a11, a12, a13, a14); v15 = a2[54]; break; case 0x73: if ( (int)a2[55] < 0 ) a2[55] = add_var(a1, (long long)a2, a3, a4, a5, a6, a7, a8, a9, a10, a11, a12, a13, a14); v15 = a2[55]; break; case 0x74: if ( (int)a2[56] < 0 ) a2[56] = add_var(a1, (long long)a2, a3, a4, a5, a6, a7, a8, a9, a10, a11, a12, a13, a14); v15 = a2[56]; break; default: v15 = -1; break; } return v15; } else { return (unsigned int)-1; } }
resolve_pseudo_var: SUB RSP,0x28 MOV qword ptr [RSP + 0x18],RDI MOV qword ptr [RSP + 0x10],RSI MOV dword ptr [RSP + 0xc],EDX MOV RAX,qword ptr [RSP + 0x10] CMP dword ptr [RAX + 0x64],0x0 JNZ 0x001c211a MOV dword ptr [RSP + 0x24],0xffffffff JMP 0x001c2264 LAB_001c211a: MOV EAX,dword ptr [RSP + 0xc] MOV dword ptr [RSP + 0x4],EAX SUB EAX,0x8 JZ 0x001c2219 JMP 0x001c212d LAB_001c212d: MOV EAX,dword ptr [RSP + 0x4] SUB EAX,0x72 JZ 0x001c21da JMP 0x001c213c LAB_001c213c: MOV EAX,dword ptr [RSP + 0x4] SUB EAX,0x73 JZ 0x001c2198 JMP 0x001c2147 LAB_001c2147: MOV EAX,dword ptr [RSP + 0x4] SUB EAX,0x74 JNZ 0x001c2254 JMP 0x001c2156 LAB_001c2156: MOV RAX,qword ptr [RSP + 0x10] CMP dword ptr [RAX + 0xe0],0x0 JGE 0x001c2184 MOV RDI,qword ptr [RSP + 0x18] MOV RSI,qword ptr [RSP + 0x10] MOV EDX,dword ptr [RSP + 0xc] CALL 0x001a44e0 MOV ECX,EAX MOV RAX,qword ptr [RSP + 0x10] MOV dword ptr [RAX + 0xe0],ECX LAB_001c2184: MOV RAX,qword ptr [RSP + 0x10] MOV EAX,dword ptr [RAX + 0xe0] MOV dword ptr [RSP + 0x8],EAX JMP 0x001c225c LAB_001c2198: MOV RAX,qword ptr [RSP + 0x10] CMP dword ptr [RAX + 0xdc],0x0 JGE 0x001c21c6 MOV RDI,qword ptr [RSP + 0x18] MOV RSI,qword ptr [RSP + 0x10] MOV EDX,dword ptr [RSP + 0xc] CALL 0x001a44e0 MOV ECX,EAX MOV RAX,qword ptr [RSP + 0x10] MOV dword ptr [RAX + 0xdc],ECX LAB_001c21c6: MOV RAX,qword ptr [RSP + 0x10] MOV EAX,dword ptr [RAX + 0xdc] MOV dword ptr [RSP + 0x8],EAX JMP 0x001c225c LAB_001c21da: MOV RAX,qword ptr [RSP + 0x10] CMP dword ptr [RAX + 0xd8],0x0 JGE 0x001c2208 MOV RDI,qword ptr [RSP + 0x18] MOV RSI,qword ptr [RSP + 0x10] MOV EDX,dword ptr [RSP + 0xc] CALL 0x001a44e0 MOV ECX,EAX MOV RAX,qword ptr [RSP + 0x10] MOV dword ptr [RAX + 0xd8],ECX LAB_001c2208: MOV RAX,qword ptr [RSP + 0x10] MOV EAX,dword ptr [RAX + 0xd8] MOV dword ptr [RSP + 0x8],EAX JMP 0x001c225c LAB_001c2219: MOV RAX,qword ptr [RSP + 0x10] CMP dword ptr [RAX + 0xd4],0x0 JGE 0x001c2243 MOV RDI,qword ptr [RSP + 0x18] MOV RSI,qword ptr [RSP + 0x10] CALL 0x001beb00 MOV ECX,EAX MOV RAX,qword ptr [RSP + 0x10] MOV dword ptr [RAX + 0xd4],ECX LAB_001c2243: MOV RAX,qword ptr [RSP + 0x10] MOV EAX,dword ptr [RAX + 0xd4] MOV dword ptr [RSP + 0x8],EAX JMP 0x001c225c LAB_001c2254: MOV dword ptr [RSP + 0x8],0xffffffff LAB_001c225c: MOV EAX,dword ptr [RSP + 0x8] MOV dword ptr [RSP + 0x24],EAX LAB_001c2264: MOV EAX,dword ptr [RSP + 0x24] ADD RSP,0x28 RET
int4 resolve_pseudo_var(int8 param_1,long param_2,int param_3) { int4 uVar1; int4 local_20; int4 local_4; if (*(int *)(param_2 + 100) == 0) { local_4 = 0xffffffff; } else { if (param_3 == 8) { if (*(int *)(param_2 + 0xd4) < 0) { uVar1 = add_var_this(param_1,param_2); *(int4 *)(param_2 + 0xd4) = uVar1; } local_20 = *(int4 *)(param_2 + 0xd4); } else if (param_3 == 0x72) { if (*(int *)(param_2 + 0xd8) < 0) { uVar1 = add_var(param_1,param_2,0x72); *(int4 *)(param_2 + 0xd8) = uVar1; } local_20 = *(int4 *)(param_2 + 0xd8); } else if (param_3 == 0x73) { if (*(int *)(param_2 + 0xdc) < 0) { uVar1 = add_var(param_1,param_2,0x73); *(int4 *)(param_2 + 0xdc) = uVar1; } local_20 = *(int4 *)(param_2 + 0xdc); } else if (param_3 == 0x74) { if (*(int *)(param_2 + 0xe0) < 0) { uVar1 = add_var(param_1,param_2,0x74); *(int4 *)(param_2 + 0xe0) = uVar1; } local_20 = *(int4 *)(param_2 + 0xe0); } else { local_20 = 0xffffffff; } local_4 = local_20; } return local_4; }
34,770
resolve_pseudo_var
bluesky950520[P]quickjs/quickjs.c
static int resolve_pseudo_var(JSContext *ctx, JSFunctionDef *s, JSAtom var_name) { int var_idx; if (!s->has_this_binding) return -1; switch(var_name) { case JS_ATOM_home_object: /* 'home_object' pseudo variable */ if (s->home_object_var_idx < 0) s->home_object_var_idx = add_var(ctx, s, var_name); var_idx = s->home_object_var_idx; break; case JS_ATOM_this_active_func: /* 'this.active_func' pseudo variable */ if (s->this_active_func_var_idx < 0) s->this_active_func_var_idx = add_var(ctx, s, var_name); var_idx = s->this_active_func_var_idx; break; case JS_ATOM_new_target: /* 'new.target' pseudo variable */ if (s->new_target_var_idx < 0) s->new_target_var_idx = add_var(ctx, s, var_name); var_idx = s->new_target_var_idx; break; case JS_ATOM_this: /* 'this' pseudo variable */ if (s->this_var_idx < 0) s->this_var_idx = add_var_this(ctx, s); var_idx = s->this_var_idx; break; default: var_idx = -1; break; } return var_idx; }
O2
c
resolve_pseudo_var: pushq $-0x1 popq %rax cmpl $0x0, 0x64(%rsi) je 0x61292 pushq %rbx movq %rsi, %rbx cmpl $0x8, %edx je 0x61279 cmpl $0x72, %edx je 0x6123f cmpl $0x73, %edx je 0x6125c cmpl $0x74, %edx jne 0x61291 movl 0xe0(%rbx), %eax testl %eax, %eax jns 0x61291 pushq $0x74 popq %rdx movq %rbx, %rsi callq 0x5418b movl %eax, 0xe0(%rbx) jmp 0x61291 movl 0xd8(%rbx), %eax testl %eax, %eax jns 0x61291 pushq $0x72 popq %rdx movq %rbx, %rsi callq 0x5418b movl %eax, 0xd8(%rbx) jmp 0x61291 movl 0xdc(%rbx), %eax testl %eax, %eax jns 0x61291 pushq $0x73 popq %rdx movq %rbx, %rsi callq 0x5418b movl %eax, 0xdc(%rbx) jmp 0x61291 movl 0xd4(%rbx), %eax testl %eax, %eax jns 0x61291 movq %rbx, %rsi callq 0x5fc4a movl %eax, 0xd4(%rbx) popq %rbx retq
resolve_pseudo_var: push 0FFFFFFFFFFFFFFFFh pop rax cmp dword ptr [rsi+64h], 0 jz locret_61292 push rbx mov rbx, rsi cmp edx, 8 jz short loc_61279 cmp edx, 72h ; 'r' jz short loc_6123F cmp edx, 73h ; 's' jz short loc_6125C cmp edx, 74h ; 't' jnz short loc_61291 mov eax, [rbx+0E0h] test eax, eax jns short loc_61291 push 74h ; 't' pop rdx mov rsi, rbx call add_var mov [rbx+0E0h], eax jmp short loc_61291 loc_6123F: mov eax, [rbx+0D8h] test eax, eax jns short loc_61291 push 72h ; 'r' pop rdx mov rsi, rbx call add_var mov [rbx+0D8h], eax jmp short loc_61291 loc_6125C: mov eax, [rbx+0DCh] test eax, eax jns short loc_61291 push 73h ; 's' pop rdx mov rsi, rbx call add_var mov [rbx+0DCh], eax jmp short loc_61291 loc_61279: mov eax, [rbx+0D4h] test eax, eax jns short loc_61291 mov rsi, rbx call add_var_this mov [rbx+0D4h], eax loc_61291: pop rbx locret_61292: retn
long long resolve_pseudo_var( long long a1, _DWORD *a2, long long a3, long long a4, long long a5, long long a6, __m128 a7, __m128 a8, __m128 a9, __m128 a10, __m128 a11, __m128 a12, __m128 a13, __m128 a14) { long long result; // rax result = -1LL; if ( a2[25] ) { switch ( (_DWORD)a3 ) { case 8: result = (unsigned int)a2[53]; if ( (int)result < 0 ) { result = add_var_this(a1, (long long)a2, a7, a8, a9, a10, a11, a12, a13, a14, a3, a4, a5, a6); a2[53] = result; } break; case 0x72: result = (unsigned int)a2[54]; if ( (int)result < 0 ) { result = add_var(a1, (long long)a2, 114, a4, a7, a8, a9, a10, a11, a12, a13, a14, a5, a6); a2[54] = result; } break; case 0x73: result = (unsigned int)a2[55]; if ( (int)result < 0 ) { result = add_var(a1, (long long)a2, 115, a4, a7, a8, a9, a10, a11, a12, a13, a14, a5, a6); a2[55] = result; } break; case 0x74: result = (unsigned int)a2[56]; if ( (int)result < 0 ) { result = add_var(a1, (long long)a2, 116, a4, a7, a8, a9, a10, a11, a12, a13, a14, a5, a6); a2[56] = result; } break; } } return result; }
resolve_pseudo_var: PUSH -0x1 POP RAX CMP dword ptr [RSI + 0x64],0x0 JZ 0x00161292 PUSH RBX MOV RBX,RSI CMP EDX,0x8 JZ 0x00161279 CMP EDX,0x72 JZ 0x0016123f CMP EDX,0x73 JZ 0x0016125c CMP EDX,0x74 JNZ 0x00161291 MOV EAX,dword ptr [RBX + 0xe0] TEST EAX,EAX JNS 0x00161291 PUSH 0x74 POP RDX MOV RSI,RBX CALL 0x0015418b MOV dword ptr [RBX + 0xe0],EAX JMP 0x00161291 LAB_0016123f: MOV EAX,dword ptr [RBX + 0xd8] TEST EAX,EAX JNS 0x00161291 PUSH 0x72 POP RDX MOV RSI,RBX CALL 0x0015418b MOV dword ptr [RBX + 0xd8],EAX JMP 0x00161291 LAB_0016125c: MOV EAX,dword ptr [RBX + 0xdc] TEST EAX,EAX JNS 0x00161291 PUSH 0x73 POP RDX MOV RSI,RBX CALL 0x0015418b MOV dword ptr [RBX + 0xdc],EAX JMP 0x00161291 LAB_00161279: MOV EAX,dword ptr [RBX + 0xd4] TEST EAX,EAX JNS 0x00161291 MOV RSI,RBX CALL 0x0015fc4a MOV dword ptr [RBX + 0xd4],EAX LAB_00161291: POP RBX LAB_00161292: RET
ulong resolve_pseudo_var(int8 param_1,long param_2,int param_3) { ulong uVar1; uVar1 = 0xffffffffffffffff; if (*(int *)(param_2 + 100) != 0) { if (param_3 == 8) { uVar1 = (ulong)*(uint *)(param_2 + 0xd4); if ((int)*(uint *)(param_2 + 0xd4) < 0) { uVar1 = add_var_this(param_1,param_2); *(int *)(param_2 + 0xd4) = (int)uVar1; } } else if (param_3 == 0x72) { uVar1 = (ulong)*(uint *)(param_2 + 0xd8); if ((int)*(uint *)(param_2 + 0xd8) < 0) { uVar1 = add_var(param_1,param_2,0x72); *(int *)(param_2 + 0xd8) = (int)uVar1; } } else if (param_3 == 0x73) { uVar1 = (ulong)*(uint *)(param_2 + 0xdc); if ((int)*(uint *)(param_2 + 0xdc) < 0) { uVar1 = add_var(param_1,param_2,0x73); *(int *)(param_2 + 0xdc) = (int)uVar1; } } else if ((param_3 == 0x74) && (uVar1 = (ulong)*(uint *)(param_2 + 0xe0), (int)*(uint *)(param_2 + 0xe0) < 0)) { uVar1 = add_var(param_1,param_2,0x74); *(int *)(param_2 + 0xe0) = (int)uVar1; } } return uVar1; }
34,771
ma_hashtbl_insert
eloqsql/libmariadb/libmariadb/ma_hashtbl.c
my_bool ma_hashtbl_insert(MA_HASHTBL *info,const uchar *record) { int flag; uint halfbuff,hash_nr,first_index,idx; uchar *ptr_to_rec= NULL,*ptr_to_rec2= NULL; MA_HASHTBL_LINK *data,*empty,*gpos= NULL,*gpos2 = NULL,*pos; LINT_INIT(gpos); LINT_INIT(gpos2); LINT_INIT(ptr_to_rec); LINT_INIT(ptr_to_rec2); flag=0; if (!(empty=(MA_HASHTBL_LINK*) ma_alloc_dynamic(&info->array))) return(TRUE); /* No more memory */ info->current_record= NO_RECORD; data=dynamic_element(&info->array,0,MA_HASHTBL_LINK*); halfbuff= info->blength >> 1; idx=first_index=info->records-halfbuff; if (idx != info->records) /* If some records */ { do { pos=data+idx; hash_nr=rec_hashnr(info,pos->data); if (flag == 0) /* First loop; Check if ok */ if (hash_mask(hash_nr,info->blength,info->records) != first_index) break; if (!(hash_nr & halfbuff)) { /* Key will not move */ if (!(flag & LOWFIND)) { if (flag & HIGHFIND) { flag=LOWFIND | HIGHFIND; /* key shall be moved to the current empty position */ gpos=empty; ptr_to_rec=pos->data; empty=pos; /* This place is now free */ } else { flag=LOWFIND | LOWUSED; /* key isn't changed */ gpos=pos; ptr_to_rec=pos->data; } } else { if (!(flag & LOWUSED)) { /* Change link of previous LOW-key */ gpos->data=ptr_to_rec; gpos->next=(uint) (pos-data); flag= (flag & HIGHFIND) | (LOWFIND | LOWUSED); } gpos=pos; ptr_to_rec=pos->data; } } else { /* key will be moved */ if (!(flag & HIGHFIND)) { flag= (flag & LOWFIND) | HIGHFIND; /* key shall be moved to the last (empty) position */ gpos2 = empty; empty=pos; ptr_to_rec2=pos->data; } else { if (!(flag & HIGHUSED)) { /* Change link of previous hash-key and save */ gpos2->data=ptr_to_rec2; gpos2->next=(uint) (pos-data); flag= (flag & LOWFIND) | (HIGHFIND | HIGHUSED); } gpos2=pos; ptr_to_rec2=pos->data; } } } while ((idx=pos->next) != NO_RECORD); if ((flag & (LOWFIND | LOWUSED)) == LOWFIND) { gpos->data=ptr_to_rec; gpos->next=NO_RECORD; } if ((flag & (HIGHFIND | HIGHUSED)) == HIGHFIND) { gpos2->data=ptr_to_rec2; gpos2->next=NO_RECORD; } } /* Check if we are at the empty position */ idx=hash_mask(rec_hashnr(info,record),info->blength,info->records+1); pos=data+idx; if (pos == empty) { pos->data=(uchar*) record; pos->next=NO_RECORD; } else { /* Check if more records in same hash-nr family */ empty[0]=pos[0]; gpos=data+hash_rec_mask(info,pos,info->blength,info->records+1); if (pos == gpos) { pos->data=(uchar*) record; pos->next=(uint) (empty - data); } else { pos->data=(uchar*) record; pos->next=NO_RECORD; movelink(data,(uint) (pos-data),(uint) (gpos-data),(uint) (empty-data)); } } if (++info->records == info->blength) info->blength+= info->blength; return(0); }
O3
c
ma_hashtbl_insert: pushq %rbp movq %rsp, %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x58, %rsp movq %rsi, %r14 movq %rdi, %rbx addq $0x18, %rdi callq 0x332ca testq %rax, %rax je 0x34463 movq %rax, %r13 movl $0xffffffff, 0x10(%rbx) # imm = 0xFFFFFFFF movq 0x18(%rbx), %rcx movl 0xc(%rbx), %edx cmpl $0x2, %edx movq %rbx, -0x70(%rbp) movq %rcx, -0x68(%rbp) movq %r14, -0x40(%rbp) jb 0x34472 movl 0x8(%rbx), %ebx shrl %edx subl %edx, %ebx xorl %r12d, %r12d movl %ebx, -0x74(%rbp) movq $0x0, -0x50(%rbp) movq $0x0, -0x60(%rbp) movq $0x0, -0x48(%rbp) movq $0x0, -0x58(%rbp) movl %edx, %r14d movq %r13, -0x30(%rbp) movl %ebx, %r15d shlq $0x4, %r15 movq 0x8(%rcx,%r15), %rdi movq -0x70(%rbp), %r13 movq 0x30(%r13), %rax testq %rax, %rax je 0x3431e leaq -0x34(%rbp), %rsi xorl %edx, %edx callq *%rax movq %rax, %rdi movl -0x34(%rbp), %esi jmp 0x3432c movl 0x4(%r13), %esi movl %esi, -0x34(%rbp) movl (%r13), %eax addq %rax, %rdi callq *0x40(%r13) testl %r12d, %r12d jne 0x34354 movl 0xc(%r13), %ecx leal -0x1(%rcx), %edx andl %eax, %edx shrl %ecx decl %ecx andl %eax, %ecx cmpl 0x8(%r13), %edx cmovbl %edx, %ecx cmpl -0x74(%rbp), %ecx jne 0x3446a movq -0x68(%rbp), %rcx addq %rcx, %r15 movl %r14d, %edx testl %r14d, %eax je 0x34389 testb $0x4, %r12b jne 0x343be andl $0x1, %r12d orl $0x4, %r12d movq 0x8(%r15), %rax movq %rax, -0x60(%rbp) movq %r15, %r13 movq -0x30(%rbp), %rax movq %rax, -0x58(%rbp) jmp 0x34418 testb $0x1, %r12b jne 0x343ec andl $0x4, %r12d movl %r12d, %eax shrl %eax addl $0x3, %eax testl %r12d, %r12d movq 0x8(%r15), %rsi movq %rsi, -0x50(%rbp) movq %r15, %r13 movq -0x30(%rbp), %rsi cmoveq %rsi, %r13 cmoveq %r15, %rsi movl %eax, %r12d movq %rsi, -0x48(%rbp) jmp 0x34418 testb $0x8, %r12b jne 0x343da movq -0x60(%rbp), %rax movq -0x58(%rbp), %rsi movq %rax, 0x8(%rsi) movl %ebx, (%rsi) andl $0x1, %r12d orl $0xc, %r12d movq 0x8(%r15), %rax movq %rax, -0x60(%rbp) movq -0x30(%rbp), %r13 movq %r15, -0x58(%rbp) jmp 0x34418 testb $0x2, %r12b jne 0x34408 movq -0x50(%rbp), %rax movq -0x48(%rbp), %rsi movq %rax, 0x8(%rsi) movl %ebx, (%rsi) andl $0x4, %r12d orl $0x3, %r12d movq 0x8(%r15), %rax movq %rax, -0x50(%rbp) movq -0x30(%rbp), %r13 movq %r15, -0x48(%rbp) movl (%r15), %ebx cmpl $-0x1, %ebx jne 0x342ee movl %r12d, %eax andl $0x3, %eax cmpl $0x1, %eax jne 0x34441 movq -0x50(%rbp), %rax movq -0x48(%rbp), %rcx movq %rax, 0x8(%rcx) movl $0xffffffff, (%rcx) # imm = 0xFFFFFFFF andl $0xc, %r12d cmpl $0x4, %r12d movq -0x40(%rbp), %r14 jne 0x34472 movq -0x60(%rbp), %rax movq -0x58(%rbp), %rcx movq %rax, 0x8(%rcx) movl $0xffffffff, (%rcx) # imm = 0xFFFFFFFF jmp 0x34472 movb $0x1, %al jmp 0x34557 movq -0x30(%rbp), %r13 movq -0x40(%rbp), %r14 movq -0x70(%rbp), %r15 movq 0x30(%r15), %rax testq %rax, %rax je 0x34496 leaq -0x78(%rbp), %r12 movq %r14, %rdi movq %r12, %rsi xorl %edx, %edx callq *%rax movq %rax, %rdi movl (%r12), %esi jmp 0x344a3 movl 0x4(%r15), %esi movl %esi, -0x78(%rbp) movl (%r15), %edi addq %r14, %rdi callq *0x40(%r15) movl 0x8(%r15), %ecx movl 0xc(%r15), %ebx incl %ecx leal -0x1(%rbx), %edx andl %eax, %edx shrl %ebx decl %ebx andl %eax, %ebx cmpl %ecx, %edx cmovbl %edx, %ebx movq %rbx, %r14 shlq $0x4, %r14 addq -0x68(%rbp), %r14 cmpq %r13, %r14 je 0x34509 movups (%r14), %xmm0 movups %xmm0, (%r13) movl 0x8(%r15), %ecx movl 0xc(%r15), %edx incl %ecx movq 0x8(%r14), %rsi movq %r15, %rdi callq 0x34184 movq -0x40(%rbp), %rcx movq %rcx, 0x8(%r14) cmpl %eax, %ebx jne 0x3451a subq -0x68(%rbp), %r13 shrq $0x4, %r13 movl %r13d, (%r14) jmp 0x3453f movq -0x40(%rbp), %rax movq %rax, 0x8(%r14) movl $0xffffffff, (%r14) # imm = 0xFFFFFFFF jmp 0x3453f movl $0xffffffff, (%r14) # imm = 0xFFFFFFFF movq -0x68(%rbp), %rdx subq %rdx, %r13 shrq $0x4, %r13 movl %eax, %ecx shlq $0x4, %rcx movl (%rdx,%rcx), %eax cmpl %ebx, %eax jne 0x3452c addq %rcx, %rdx movl %r13d, (%rdx) movq -0x70(%rbp), %rcx movl 0x8(%rcx), %eax incl %eax movl %eax, 0x8(%rcx) cmpl 0xc(%rcx), %eax jne 0x34555 addl %eax, %eax movl %eax, 0xc(%rcx) xorl %eax, %eax addq $0x58, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq
ma_hashtbl_insert: push rbp mov rbp, rsp push r15 push r14 push r13 push r12 push rbx sub rsp, 58h mov r14, rsi mov rbx, rdi add rdi, 18h call ma_alloc_dynamic test rax, rax jz loc_34463 mov r13, rax mov dword ptr [rbx+10h], 0FFFFFFFFh mov rcx, [rbx+18h] mov edx, [rbx+0Ch] cmp edx, 2 mov [rbp+var_70], rbx mov [rbp+var_68], rcx mov [rbp+var_40], r14 jb loc_34472 mov ebx, [rbx+8] shr edx, 1 sub ebx, edx xor r12d, r12d mov [rbp+var_74], ebx mov [rbp+var_50], 0 mov [rbp+var_60], 0 mov [rbp+var_48], 0 mov [rbp+var_58], 0 loc_342EE: mov r14d, edx mov [rbp+var_30], r13 mov r15d, ebx shl r15, 4 mov rdi, [rcx+r15+8] mov r13, [rbp+var_70] mov rax, [r13+30h] test rax, rax jz short loc_3431E lea rsi, [rbp+var_34] xor edx, edx call rax mov rdi, rax mov esi, [rbp+var_34] jmp short loc_3432C loc_3431E: mov esi, [r13+4] mov [rbp+var_34], esi mov eax, [r13+0] add rdi, rax loc_3432C: call qword ptr [r13+40h] test r12d, r12d jnz short loc_34354 mov ecx, [r13+0Ch] lea edx, [rcx-1] and edx, eax shr ecx, 1 dec ecx and ecx, eax cmp edx, [r13+8] cmovb ecx, edx cmp ecx, [rbp+var_74] jnz loc_3446A loc_34354: mov rcx, [rbp+var_68] add r15, rcx mov edx, r14d test eax, r14d jz short loc_34389 test r12b, 4 jnz short loc_343BE and r12d, 1 or r12d, 4 mov rax, [r15+8] mov [rbp+var_60], rax mov r13, r15 mov rax, [rbp+var_30] mov [rbp+var_58], rax jmp loc_34418 loc_34389: test r12b, 1 jnz short loc_343EC and r12d, 4 mov eax, r12d shr eax, 1 add eax, 3 test r12d, r12d mov rsi, [r15+8] mov [rbp+var_50], rsi mov r13, r15 mov rsi, [rbp+var_30] cmovz r13, rsi cmovz rsi, r15 mov r12d, eax mov [rbp+var_48], rsi jmp short loc_34418 loc_343BE: test r12b, 8 jnz short loc_343DA mov rax, [rbp+var_60] mov rsi, [rbp+var_58] mov [rsi+8], rax mov [rsi], ebx and r12d, 1 or r12d, 0Ch loc_343DA: mov rax, [r15+8] mov [rbp+var_60], rax mov r13, [rbp+var_30] mov [rbp+var_58], r15 jmp short loc_34418 loc_343EC: test r12b, 2 jnz short loc_34408 mov rax, [rbp+var_50] mov rsi, [rbp+var_48] mov [rsi+8], rax mov [rsi], ebx and r12d, 4 or r12d, 3 loc_34408: mov rax, [r15+8] mov [rbp+var_50], rax mov r13, [rbp+var_30] mov [rbp+var_48], r15 loc_34418: mov ebx, [r15] cmp ebx, 0FFFFFFFFh jnz loc_342EE mov eax, r12d and eax, 3 cmp eax, 1 jnz short loc_34441 mov rax, [rbp+var_50] mov rcx, [rbp+var_48] mov [rcx+8], rax mov dword ptr [rcx], 0FFFFFFFFh loc_34441: and r12d, 0Ch cmp r12d, 4 mov r14, [rbp+var_40] jnz short loc_34472 mov rax, [rbp+var_60] mov rcx, [rbp+var_58] mov [rcx+8], rax mov dword ptr [rcx], 0FFFFFFFFh jmp short loc_34472 loc_34463: mov al, 1 jmp loc_34557 loc_3446A: mov r13, [rbp+var_30] mov r14, [rbp+var_40] loc_34472: mov r15, [rbp+var_70] mov rax, [r15+30h] test rax, rax jz short loc_34496 lea r12, [rbp+var_78] mov rdi, r14 mov rsi, r12 xor edx, edx call rax mov rdi, rax mov esi, [r12] jmp short loc_344A3 loc_34496: mov esi, [r15+4] mov [rbp+var_78], esi mov edi, [r15] add rdi, r14 loc_344A3: call qword ptr [r15+40h] mov ecx, [r15+8] mov ebx, [r15+0Ch] inc ecx lea edx, [rbx-1] and edx, eax shr ebx, 1 dec ebx and ebx, eax cmp edx, ecx cmovb ebx, edx mov r14, rbx shl r14, 4 add r14, [rbp+var_68] cmp r14, r13 jz short loc_34509 movups xmm0, xmmword ptr [r14] movups xmmword ptr [r13+0], xmm0 mov ecx, [r15+8] mov edx, [r15+0Ch] inc ecx mov rsi, [r14+8] mov rdi, r15 call hash_rec_mask mov rcx, [rbp+var_40] mov [r14+8], rcx cmp ebx, eax jnz short loc_3451A sub r13, [rbp+var_68] shr r13, 4 mov [r14], r13d jmp short loc_3453F loc_34509: mov rax, [rbp+var_40] mov [r14+8], rax mov dword ptr [r14], 0FFFFFFFFh jmp short loc_3453F loc_3451A: mov dword ptr [r14], 0FFFFFFFFh mov rdx, [rbp+var_68] sub r13, rdx shr r13, 4 loc_3452C: mov ecx, eax shl rcx, 4 mov eax, [rdx+rcx] cmp eax, ebx jnz short loc_3452C add rdx, rcx mov [rdx], r13d loc_3453F: mov rcx, [rbp+var_70] mov eax, [rcx+8] inc eax mov [rcx+8], eax cmp eax, [rcx+0Ch] jnz short loc_34555 add eax, eax mov [rcx+0Ch], eax loc_34555: xor eax, eax loc_34557: add rsp, 58h pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn
long long ma_hashtbl_insert(unsigned int *a1, long long a2) { long long v2; // r14 long long v3; // rax _OWORD *v4; // r13 long long v5; // rcx unsigned int v6; // edx unsigned int v7; // edx unsigned int v8; // ebx int v9; // r12d unsigned int v10; // r14d long long v11; // r15 long long v12; // rdi long long ( *v13)(long long, unsigned int *, _QWORD); // rax long long v14; // rdi long long v15; // rsi int v16; // eax unsigned int v17; // ecx unsigned int v18; // edx int v19; // ecx long long v20; // r15 unsigned int v21; // r12d unsigned int *v22; // rsi unsigned int *v23; // rsi unsigned int *v24; // rsi unsigned int *v25; // rcx unsigned int *v26; // rcx long long ( **v28)(long long, long long); // r15 long long ( *v29)(long long, unsigned int *, _QWORD); // rax long long v30; // rdi long long v31; // rsi int v32; // eax unsigned int v33; // ebx unsigned int v34; // edx long long v35; // rbx long long v36; // r14 unsigned int v37; // eax unsigned long long v38; // r13 long long v39; // rcx unsigned int *v40; // rcx int v41; // eax unsigned int v42; // [rsp+8h] [rbp-78h] BYREF unsigned int v43; // [rsp+Ch] [rbp-74h] unsigned int *v44; // [rsp+10h] [rbp-70h] long long v45; // [rsp+18h] [rbp-68h] long long v46; // [rsp+20h] [rbp-60h] unsigned int *v47; // [rsp+28h] [rbp-58h] long long v48; // [rsp+30h] [rbp-50h] unsigned int *v49; // [rsp+38h] [rbp-48h] long long v50; // [rsp+40h] [rbp-40h] unsigned int v51; // [rsp+4Ch] [rbp-34h] BYREF _OWORD *v52; // [rsp+50h] [rbp-30h] v2 = a2; v3 = ma_alloc_dynamic((long long)(a1 + 6)); if ( !v3 ) return 1LL; v4 = (_OWORD *)v3; a1[4] = -1; v5 = *((_QWORD *)a1 + 3); v6 = a1[3]; v44 = a1; v45 = v5; v50 = a2; if ( v6 >= 2 ) { v7 = v6 >> 1; v8 = a1[2] - v7; v9 = 0; v43 = v8; v48 = 0LL; v46 = 0LL; v49 = 0LL; v47 = 0LL; do { v10 = v7; v52 = v4; v11 = 16LL * v8; v12 = *(_QWORD *)(v5 + v11 + 8); v13 = (long long ( *)(long long, unsigned int *, _QWORD))*((_QWORD *)v44 + 6); if ( v13 ) { v14 = v13(v12, &v51, 0LL); v15 = v51; } else { v15 = v44[1]; v51 = v44[1]; v14 = *v44 + v12; } v16 = (*((long long ( **)(long long, long long))v44 + 8))(v14, v15); if ( !v9 ) { v17 = v44[3]; v18 = v16 & (v17 - 1); v19 = v16 & ((v17 >> 1) - 1); if ( v18 < v44[2] ) v19 = v18; if ( v19 != v43 ) { v4 = v52; v2 = v50; goto LABEL_31; } } v5 = v45; v20 = v45 + v11; v7 = v10; if ( (v10 & v16) != 0 ) { if ( (v9 & 4) != 0 ) { if ( (v9 & 8) == 0 ) { v23 = v47; *((_QWORD *)v47 + 1) = v46; *v23 = v8; v9 = v9 & 1 | 0xC; } v46 = *(_QWORD *)(v20 + 8); v4 = v52; v47 = (unsigned int *)v20; } else { v9 = v9 & 1 | 4; v46 = *(_QWORD *)(v20 + 8); v4 = (_OWORD *)v20; v47 = (unsigned int *)v52; } } else if ( (v9 & 1) != 0 ) { if ( (v9 & 2) == 0 ) { v24 = v49; *((_QWORD *)v49 + 1) = v48; *v24 = v8; v9 = v9 & 4 | 3; } v48 = *(_QWORD *)(v20 + 8); v4 = v52; v49 = (unsigned int *)v20; } else { v21 = v9 & 4; v48 = *(_QWORD *)(v20 + 8); v4 = (_OWORD *)v20; v22 = (unsigned int *)v52; if ( !v21 ) { v4 = v52; v22 = (unsigned int *)v20; } v9 = (v21 >> 1) + 3; v49 = v22; } v8 = *(_DWORD *)v20; } while ( *(_DWORD *)v20 != -1 ); if ( (v9 & 3) == 1 ) { v25 = v49; *((_QWORD *)v49 + 1) = v48; *v25 = -1; } v2 = v50; if ( (v9 & 0xC) == 4 ) { v26 = v47; *((_QWORD *)v47 + 1) = v46; *v26 = -1; } } LABEL_31: v28 = (long long ( **)(long long, long long))v44; v29 = (long long ( *)(long long, unsigned int *, _QWORD))*((_QWORD *)v44 + 6); if ( v29 ) { v30 = v29(v2, &v42, 0LL); v31 = v42; } else { v31 = v44[1]; v42 = v44[1]; v30 = v2 + *v44; } v32 = v28[8](v30, v31); v33 = *((_DWORD *)v28 + 3); v34 = v32 & (v33 - 1); v35 = v32 & ((v33 >> 1) - 1); if ( v34 < *((_DWORD *)v28 + 2) + 1 ) v35 = v34; v36 = v45 + 16 * v35; if ( (_OWORD *)v36 == v4 ) { *(_QWORD *)(v36 + 8) = v50; *(_DWORD *)v36 = -1; } else { *v4 = *(_OWORD *)v36; v37 = hash_rec_mask((unsigned int *)v28, *(_QWORD *)(v36 + 8), *((_DWORD *)v28 + 3), *((_DWORD *)v28 + 2) + 1); *(_QWORD *)(v36 + 8) = v50; if ( (_DWORD)v35 == v37 ) { *(_DWORD *)v36 = ((unsigned long long)v4 - v45) >> 4; } else { *(_DWORD *)v36 = -1; v38 = ((unsigned long long)v4 - v45) >> 4; do { v39 = 16LL * v37; v37 = *(_DWORD *)(v45 + v39); } while ( v37 != (_DWORD)v35 ); *(_DWORD *)(v39 + v45) = v38; } } v40 = v44; v41 = v44[2] + 1; v44[2] = v41; if ( v41 == v40[3] ) v40[3] = 2 * v41; return 0LL; }
ma_hashtbl_insert: PUSH RBP MOV RBP,RSP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0x58 MOV R14,RSI MOV RBX,RDI ADD RDI,0x18 CALL 0x001332ca TEST RAX,RAX JZ 0x00134463 MOV R13,RAX MOV dword ptr [RBX + 0x10],0xffffffff MOV RCX,qword ptr [RBX + 0x18] MOV EDX,dword ptr [RBX + 0xc] CMP EDX,0x2 MOV qword ptr [RBP + -0x70],RBX MOV qword ptr [RBP + -0x68],RCX MOV qword ptr [RBP + -0x40],R14 JC 0x00134472 MOV EBX,dword ptr [RBX + 0x8] SHR EDX,0x1 SUB EBX,EDX XOR R12D,R12D MOV dword ptr [RBP + -0x74],EBX MOV qword ptr [RBP + -0x50],0x0 MOV qword ptr [RBP + -0x60],0x0 MOV qword ptr [RBP + -0x48],0x0 MOV qword ptr [RBP + -0x58],0x0 LAB_001342ee: MOV R14D,EDX MOV qword ptr [RBP + -0x30],R13 MOV R15D,EBX SHL R15,0x4 MOV RDI,qword ptr [RCX + R15*0x1 + 0x8] MOV R13,qword ptr [RBP + -0x70] MOV RAX,qword ptr [R13 + 0x30] TEST RAX,RAX JZ 0x0013431e LEA RSI,[RBP + -0x34] XOR EDX,EDX CALL RAX MOV RDI,RAX MOV ESI,dword ptr [RBP + -0x34] JMP 0x0013432c LAB_0013431e: MOV ESI,dword ptr [R13 + 0x4] MOV dword ptr [RBP + -0x34],ESI MOV EAX,dword ptr [R13] ADD RDI,RAX LAB_0013432c: CALL qword ptr [R13 + 0x40] TEST R12D,R12D JNZ 0x00134354 MOV ECX,dword ptr [R13 + 0xc] LEA EDX,[RCX + -0x1] AND EDX,EAX SHR ECX,0x1 DEC ECX AND ECX,EAX CMP EDX,dword ptr [R13 + 0x8] CMOVC ECX,EDX CMP ECX,dword ptr [RBP + -0x74] JNZ 0x0013446a LAB_00134354: MOV RCX,qword ptr [RBP + -0x68] ADD R15,RCX MOV EDX,R14D TEST EAX,R14D JZ 0x00134389 TEST R12B,0x4 JNZ 0x001343be AND R12D,0x1 OR R12D,0x4 MOV RAX,qword ptr [R15 + 0x8] MOV qword ptr [RBP + -0x60],RAX MOV R13,R15 MOV RAX,qword ptr [RBP + -0x30] MOV qword ptr [RBP + -0x58],RAX JMP 0x00134418 LAB_00134389: TEST R12B,0x1 JNZ 0x001343ec AND R12D,0x4 MOV EAX,R12D SHR EAX,0x1 ADD EAX,0x3 TEST R12D,R12D MOV RSI,qword ptr [R15 + 0x8] MOV qword ptr [RBP + -0x50],RSI MOV R13,R15 MOV RSI,qword ptr [RBP + -0x30] CMOVZ R13,RSI CMOVZ RSI,R15 MOV R12D,EAX MOV qword ptr [RBP + -0x48],RSI JMP 0x00134418 LAB_001343be: TEST R12B,0x8 JNZ 0x001343da MOV RAX,qword ptr [RBP + -0x60] MOV RSI,qword ptr [RBP + -0x58] MOV qword ptr [RSI + 0x8],RAX MOV dword ptr [RSI],EBX AND R12D,0x1 OR R12D,0xc LAB_001343da: MOV RAX,qword ptr [R15 + 0x8] MOV qword ptr [RBP + -0x60],RAX MOV R13,qword ptr [RBP + -0x30] MOV qword ptr [RBP + -0x58],R15 JMP 0x00134418 LAB_001343ec: TEST R12B,0x2 JNZ 0x00134408 MOV RAX,qword ptr [RBP + -0x50] MOV RSI,qword ptr [RBP + -0x48] MOV qword ptr [RSI + 0x8],RAX MOV dword ptr [RSI],EBX AND R12D,0x4 OR R12D,0x3 LAB_00134408: MOV RAX,qword ptr [R15 + 0x8] MOV qword ptr [RBP + -0x50],RAX MOV R13,qword ptr [RBP + -0x30] MOV qword ptr [RBP + -0x48],R15 LAB_00134418: MOV EBX,dword ptr [R15] CMP EBX,-0x1 JNZ 0x001342ee MOV EAX,R12D AND EAX,0x3 CMP EAX,0x1 JNZ 0x00134441 MOV RAX,qword ptr [RBP + -0x50] MOV RCX,qword ptr [RBP + -0x48] MOV qword ptr [RCX + 0x8],RAX MOV dword ptr [RCX],0xffffffff LAB_00134441: AND R12D,0xc CMP R12D,0x4 MOV R14,qword ptr [RBP + -0x40] JNZ 0x00134472 MOV RAX,qword ptr [RBP + -0x60] MOV RCX,qword ptr [RBP + -0x58] MOV qword ptr [RCX + 0x8],RAX MOV dword ptr [RCX],0xffffffff JMP 0x00134472 LAB_00134463: MOV AL,0x1 JMP 0x00134557 LAB_0013446a: MOV R13,qword ptr [RBP + -0x30] MOV R14,qword ptr [RBP + -0x40] LAB_00134472: MOV R15,qword ptr [RBP + -0x70] MOV RAX,qword ptr [R15 + 0x30] TEST RAX,RAX JZ 0x00134496 LEA R12,[RBP + -0x78] MOV RDI,R14 MOV RSI,R12 XOR EDX,EDX CALL RAX MOV RDI,RAX MOV ESI,dword ptr [R12] JMP 0x001344a3 LAB_00134496: MOV ESI,dword ptr [R15 + 0x4] MOV dword ptr [RBP + -0x78],ESI MOV EDI,dword ptr [R15] ADD RDI,R14 LAB_001344a3: CALL qword ptr [R15 + 0x40] MOV ECX,dword ptr [R15 + 0x8] MOV EBX,dword ptr [R15 + 0xc] INC ECX LEA EDX,[RBX + -0x1] AND EDX,EAX SHR EBX,0x1 DEC EBX AND EBX,EAX CMP EDX,ECX CMOVC EBX,EDX MOV R14,RBX SHL R14,0x4 ADD R14,qword ptr [RBP + -0x68] CMP R14,R13 JZ 0x00134509 MOVUPS XMM0,xmmword ptr [R14] MOVUPS xmmword ptr [R13],XMM0 MOV ECX,dword ptr [R15 + 0x8] MOV EDX,dword ptr [R15 + 0xc] INC ECX MOV RSI,qword ptr [R14 + 0x8] MOV RDI,R15 CALL 0x00134184 MOV RCX,qword ptr [RBP + -0x40] MOV qword ptr [R14 + 0x8],RCX CMP EBX,EAX JNZ 0x0013451a SUB R13,qword ptr [RBP + -0x68] SHR R13,0x4 MOV dword ptr [R14],R13D JMP 0x0013453f LAB_00134509: MOV RAX,qword ptr [RBP + -0x40] MOV qword ptr [R14 + 0x8],RAX MOV dword ptr [R14],0xffffffff JMP 0x0013453f LAB_0013451a: MOV dword ptr [R14],0xffffffff MOV RDX,qword ptr [RBP + -0x68] SUB R13,RDX SHR R13,0x4 LAB_0013452c: MOV ECX,EAX SHL RCX,0x4 MOV EAX,dword ptr [RDX + RCX*0x1] CMP EAX,EBX JNZ 0x0013452c ADD RDX,RCX MOV dword ptr [RDX],R13D LAB_0013453f: MOV RCX,qword ptr [RBP + -0x70] MOV EAX,dword ptr [RCX + 0x8] INC EAX MOV dword ptr [RCX + 0x8],EAX CMP EAX,dword ptr [RCX + 0xc] JNZ 0x00134555 ADD EAX,EAX MOV dword ptr [RCX + 0xc],EAX LAB_00134555: XOR EAX,EAX LAB_00134557: ADD RSP,0x58 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET
int8 ma_hashtbl_insert(uint *param_1,long param_2) { uint uVar1; uint uVar2; uint *puVar3; long lVar4; int8 uVar5; ulong uVar6; uint uVar7; uint uVar8; uint uVar9; uint uVar10; uint *puVar11; uint *puVar12; uint local_80; uint local_7c; uint *local_78; long local_70; int8 local_68; uint *local_60; int8 local_58; uint *local_50; long local_48; uint local_3c; uint *local_38; puVar3 = (uint *)ma_alloc_dynamic(param_1 + 6); if (puVar3 == (uint *)0x0) { uVar5 = 1; } else { param_1[4] = 0xffffffff; local_70 = *(long *)(param_1 + 6); local_78 = param_1; local_48 = param_2; if (1 < param_1[3]) { uVar7 = param_1[3] >> 1; uVar9 = param_1[2] - uVar7; uVar10 = 0; local_58 = 0; local_68 = 0; local_50 = (uint *)0x0; local_60 = (uint *)0x0; local_7c = uVar9; do { puVar12 = local_78; lVar4 = *(long *)(local_70 + 8 + (ulong)uVar9 * 0x10); local_38 = puVar3; if (*(code **)(local_78 + 0xc) == (code *)0x0) { local_3c = local_78[1]; lVar4 = lVar4 + (ulong)*local_78; } else { lVar4 = (**(code **)(local_78 + 0xc))(lVar4,&local_3c,0); } uVar2 = (**(code **)(puVar12 + 0x10))(lVar4,local_3c); if (uVar10 == 0) { uVar8 = puVar12[3] - 1 & uVar2; uVar1 = (puVar12[3] >> 1) - 1 & uVar2; if (uVar8 < puVar12[2]) { uVar1 = uVar8; } puVar3 = local_38; if (uVar1 != local_7c) goto LAB_00134472; } puVar12 = (uint *)((ulong)uVar9 * 0x10 + local_70); puVar3 = puVar12; if ((uVar2 & uVar7) == 0) { if ((uVar10 & 1) == 0) { uVar9 = uVar10 & 4; uVar10 = (uVar9 >> 1) + 3; local_58 = *(int8 *)(puVar12 + 2); local_50 = local_38; if (uVar9 == 0) { puVar3 = local_38; local_50 = puVar12; } } else { if ((uVar10 & 2) == 0) { *(int8 *)(local_50 + 2) = local_58; *local_50 = uVar9; uVar10 = uVar10 & 4 | 3; } local_58 = *(int8 *)(puVar12 + 2); puVar3 = local_38; local_50 = puVar12; } } else if ((uVar10 & 4) == 0) { uVar10 = uVar10 & 1 | 4; local_68 = *(int8 *)(puVar12 + 2); local_60 = local_38; } else { if ((uVar10 & 8) == 0) { *(int8 *)(local_60 + 2) = local_68; *local_60 = uVar9; uVar10 = uVar10 & 1 | 0xc; } local_68 = *(int8 *)(puVar12 + 2); puVar3 = local_38; local_60 = puVar12; } uVar9 = *puVar12; } while (uVar9 != 0xffffffff); if ((uVar10 & 3) == 1) { *(int8 *)(local_50 + 2) = local_58; *local_50 = 0xffffffff; } if ((uVar10 & 0xc) == 4) { *(int8 *)(local_60 + 2) = local_68; *local_60 = 0xffffffff; } } LAB_00134472: puVar12 = local_78; if (*(code **)(local_78 + 0xc) == (code *)0x0) { local_80 = local_78[1]; lVar4 = (ulong)*local_78 + local_48; } else { lVar4 = (**(code **)(local_78 + 0xc))(local_48,&local_80,0); } uVar9 = (**(code **)(puVar12 + 0x10))(lVar4,local_80); uVar10 = puVar12[3] - 1 & uVar9; uVar9 = (puVar12[3] >> 1) - 1 & uVar9; if (uVar10 < puVar12[2] + 1) { uVar9 = uVar10; } puVar11 = (uint *)((ulong)uVar9 * 0x10 + local_70); if (puVar11 == puVar3) { *(long *)(puVar11 + 2) = local_48; *puVar11 = 0xffffffff; } else { uVar10 = puVar11[1]; uVar7 = puVar11[2]; uVar2 = puVar11[3]; *puVar3 = *puVar11; puVar3[1] = uVar10; puVar3[2] = uVar7; puVar3[3] = uVar2; uVar10 = hash_rec_mask(puVar12,*(int8 *)(puVar11 + 2),puVar12[3],puVar12[2] + 1); *(long *)(puVar11 + 2) = local_48; if (uVar9 == uVar10) { *puVar11 = (uint)((ulong)((long)puVar3 - local_70) >> 4); } else { *puVar11 = 0xffffffff; do { uVar6 = (ulong)uVar10; uVar10 = *(uint *)(local_70 + uVar6 * 0x10); } while (uVar10 != uVar9); *(int *)(local_70 + uVar6 * 0x10) = (int)((ulong)((long)puVar3 - local_70) >> 4); } } uVar9 = local_78[2] + 1; local_78[2] = uVar9; if (uVar9 == local_78[3]) { local_78[3] = uVar9 * 2; } uVar5 = 0; } return uVar5; }
34,772
CLI::detail::valid_alias_name_string(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&)
MikePodsytnik[P]TCRtrie/build_O3/_deps/cli11-src/include/CLI/StringTools.hpp
inline bool valid_alias_name_string(const std::string &str) { static const std::string badChars(std::string("\n") + '\0'); return (str.find_first_of(badChars) == std::string::npos); }
O3
cpp
CLI::detail::valid_alias_name_string(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&): pushq %r14 pushq %rbx subq $0x28, %rsp movq %rdi, %rbx movb 0x2d5a3(%rip), %al # 0x4a8d8 testb %al, %al je 0x1d360 movq 0x2d578(%rip), %rsi # 0x4a8b8 movq 0x2d579(%rip), %rcx # 0x4a8c0 movq %rbx, %rdi xorl %edx, %edx callq 0x7640 cmpq $-0x1, %rax sete %al addq $0x28, %rsp popq %rbx popq %r14 retq leaq 0x2d571(%rip), %rdi # 0x4a8d8 callq 0x77a0 testl %eax, %eax je 0x1d339 leaq 0x18(%rsp), %r14 movq %r14, -0x10(%r14) leaq 0x1a9f3(%rip), %rsi # 0x37d73 leaq 0x1a9ed(%rip), %rdx # 0x37d74 leaq 0x8(%rsp), %rdi callq 0x11f90 leaq 0x2d520(%rip), %rdi # 0x4a8b8 leaq 0x8(%rsp), %rsi xorl %edx, %edx callq 0xbb38 movq 0x8(%rsp), %rdi cmpq %r14, %rdi je 0x1d3bb movq 0x18(%rsp), %rsi incq %rsi callq 0x7430 movq 0x2cb96(%rip), %rdi # 0x49f58 leaq 0x2d4ef(%rip), %rsi # 0x4a8b8 leaq 0x2d058(%rip), %rdx # 0x4a428 callq 0x73b0 leaq 0x2d4fc(%rip), %rdi # 0x4a8d8 callq 0x7290 jmp 0x1d339 movq %rax, %rbx movq 0x8(%rsp), %rdi cmpq %r14, %rdi je 0x1d405 movq 0x18(%rsp), %rsi incq %rsi callq 0x7430 jmp 0x1d405 movq %rax, %rbx leaq 0x2d4cc(%rip), %rdi # 0x4a8d8 callq 0x7280 movq %rbx, %rdi callq 0x7780 nop
_ZN3CLI6detail23valid_alias_name_stringERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE: push r14 push rbx sub rsp, 28h mov rbx, rdi mov al, cs:_ZGVZN3CLI6detail23valid_alias_name_stringERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEE8badCharsB5cxx11; `guard variable for'CLI::detail::valid_alias_name_string(std::string const&)::badChars test al, al jz short loc_1D360 loc_1D339: mov rsi, cs:_ZZN3CLI6detail23valid_alias_name_stringERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEE8badCharsB5cxx11; CLI::detail::valid_alias_name_string(std::string const&)::badChars mov rcx, cs:qword_4A8C0 mov rdi, rbx xor edx, edx call __ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE13find_first_ofEPKcmm; std::string::find_first_of(char const*,ulong,ulong) cmp rax, 0FFFFFFFFFFFFFFFFh setz al add rsp, 28h pop rbx pop r14 retn loc_1D360: lea rdi, _ZGVZN3CLI6detail23valid_alias_name_stringERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEE8badCharsB5cxx11; __guard * call ___cxa_guard_acquire test eax, eax jz short loc_1D339 lea r14, [rsp+38h+var_20] mov [r14-10h], r14 lea rsi, asc_37D72+1; "\n" lea rdx, asc_37D72+2; "" lea rdi, [rsp+38h+var_30] call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPKcEEvT_S8_St20forward_iterator_tag; std::string::_M_construct<char const*>(char const*,char const*,std::forward_iterator_tag) lea rdi, _ZZN3CLI6detail23valid_alias_name_stringERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEE8badCharsB5cxx11; CLI::detail::valid_alias_name_string(std::string const&)::badChars lea rsi, [rsp+38h+var_30] xor edx, edx call _ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEOS8_S5_; std::operator+<char>(std::string&&,char) mov rdi, [rsp+38h+var_30]; void * cmp rdi, r14 jz short loc_1D3BB mov rsi, [rsp+38h+var_20] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_1D3BB: mov rdi, cs:lpfunc; lpfunc lea rsi, _ZZN3CLI6detail23valid_alias_name_stringERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEE8badCharsB5cxx11; obj lea rdx, __dso_handle; lpdso_handle call ___cxa_atexit lea rdi, _ZGVZN3CLI6detail23valid_alias_name_stringERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEE8badCharsB5cxx11; __guard * call ___cxa_guard_release jmp loc_1D339 mov rbx, rax mov rdi, [rsp+arg_0]; void * cmp rdi, r14 jz short loc_1D405 mov rsi, [rsp+arg_10] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) jmp short loc_1D405 mov rbx, rax loc_1D405: lea rdi, _ZGVZN3CLI6detail23valid_alias_name_stringERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEE8badCharsB5cxx11; __guard * call ___cxa_guard_abort mov rdi, rbx call __Unwind_Resume
bool CLI::detail::valid_alias_name_string(long long a1) { void *v2[2]; // [rsp+8h] [rbp-30h] BYREF _QWORD v3[4]; // [rsp+18h] [rbp-20h] BYREF if ( !(_BYTE)`guard variable for'CLI::detail::valid_alias_name_string(std::string const&)::badChars[abi:cxx11] && __cxa_guard_acquire(&`guard variable for'CLI::detail::valid_alias_name_string(std::string const&)::badChars[abi:cxx11]) ) { v2[0] = v3; std::string::_M_construct<char const*>((long long)v2, "\n", (long long)""); std::operator+<char>( (long long)&CLI::detail::valid_alias_name_string(std::string const&)::badChars[abi:cxx11], (long long)v2, 0); if ( v2[0] != v3 ) operator delete(v2[0], v3[0] + 1LL); __cxa_atexit( (void (*)(void *))&std::string::~string, &CLI::detail::valid_alias_name_string(std::string const&)::badChars[abi:cxx11], &_dso_handle); __cxa_guard_release(&`guard variable for'CLI::detail::valid_alias_name_string(std::string const&)::badChars[abi:cxx11]); } return std::string::find_first_of( a1, CLI::detail::valid_alias_name_string(std::string const&)::badChars[abi:cxx11], 0LL, qword_4A8C0) == -1; }
valid_alias_name_string: PUSH R14 PUSH RBX SUB RSP,0x28 MOV RBX,RDI MOV AL,byte ptr [0x0014a8d8] TEST AL,AL JZ 0x0011d360 LAB_0011d339: MOV RSI,qword ptr [0x0014a8b8] MOV RCX,qword ptr [0x0014a8c0] MOV RDI,RBX XOR EDX,EDX CALL 0x00107640 CMP RAX,-0x1 SETZ AL ADD RSP,0x28 POP RBX POP R14 RET LAB_0011d360: LEA RDI,[0x14a8d8] CALL 0x001077a0 TEST EAX,EAX JZ 0x0011d339 LEA R14,[RSP + 0x18] MOV qword ptr [R14 + -0x10],R14 LAB_0011d379: LEA RSI,[0x137d73] LEA RDX,[0x137d74] LEA RDI,[RSP + 0x8] CALL 0x00111f90 LAB_0011d391: LEA RDI,[0x14a8b8] LEA RSI,[RSP + 0x8] XOR EDX,EDX CALL 0x0010bb38 LAB_0011d3a4: MOV RDI,qword ptr [RSP + 0x8] CMP RDI,R14 JZ 0x0011d3bb MOV RSI,qword ptr [RSP + 0x18] INC RSI CALL 0x00107430 LAB_0011d3bb: MOV RDI,qword ptr [0x00149f58] LEA RSI,[0x14a8b8] LEA RDX,[0x14a428] CALL 0x001073b0 LEA RDI,[0x14a8d8] CALL 0x00107290 JMP 0x0011d339
/* CLI::detail::valid_alias_name_string(std::__cxx11::string const&) */ bool CLI::detail::valid_alias_name_string(string *param_1) { int iVar1; long lVar2; long *local_30 [2]; long local_20 [2]; if (valid_alias_name_string(std::__cxx11::string_const&)::badChars_abi_cxx11_ == '\0') { iVar1 = __cxa_guard_acquire(&valid_alias_name_string(std::__cxx11::string_const&):: badChars_abi_cxx11_); if (iVar1 != 0) { /* try { // try from 0011d379 to 0011d390 has its CatchHandler @ 0011d402 */ local_30[0] = local_20; std::__cxx11::string::_M_construct<char_const*>(local_30,&DAT_00137d73,&DAT_00137d74); /* try { // try from 0011d391 to 0011d3a3 has its CatchHandler @ 0011d3e6 */ std::operator+((string *) &valid_alias_name_string(std::__cxx11::string_const&)::badChars_abi_cxx11_, (char)local_30); if (local_30[0] != local_20) { operator_delete(local_30[0],local_20[0] + 1); } __cxa_atexit(PTR__string_00149f58, &valid_alias_name_string(std::__cxx11::string_const&)::badChars_abi_cxx11_, &__dso_handle); __cxa_guard_release(&valid_alias_name_string(std::__cxx11::string_const&)::badChars_abi_cxx11_ ); } } lVar2 = std::__cxx11::string::find_first_of ((char *)param_1, valid_alias_name_string(std::__cxx11::string_const&)::badChars_abi_cxx11_,0); return lVar2 == -1; }
34,773
ggml_compute_forward_cross_entropy_loss
ngxson[P]ggml-easy/ggml/src/ggml-cpu/ops.cpp
void ggml_compute_forward_cross_entropy_loss( const ggml_compute_params * params, ggml_tensor * dst) { const ggml_tensor * src0 = dst->src[0]; switch (src0->type) { case GGML_TYPE_F32: { ggml_compute_forward_cross_entropy_loss_f32(params, dst); } break; default: { GGML_ABORT("fatal error"); } } }
O0
cpp
ggml_compute_forward_cross_entropy_loss: subq $0x18, %rsp movq %rdi, 0x10(%rsp) movq %rsi, 0x8(%rsp) movq 0x8(%rsp), %rax movq 0x98(%rax), %rax movq %rax, (%rsp) movq (%rsp), %rax movl (%rax), %eax testl %eax, %eax jne 0xa685b jmp 0xa684a movq 0x10(%rsp), %rdi movq 0x8(%rsp), %rsi callq 0xa6880 jmp 0xa6875 leaq 0xee36(%rip), %rdi # 0xb5698 movl $0x21bf, %esi # imm = 0x21BF leaq 0x5226(%rip), %rdx # 0xaba94 movb $0x0, %al callq 0x10660 addq $0x18, %rsp retq nopw (%rax,%rax)
ggml_compute_forward_cross_entropy_loss: sub rsp, 18h mov [rsp+18h+var_8], rdi mov [rsp+18h+var_10], rsi mov rax, [rsp+18h+var_10] mov rax, [rax+98h] mov [rsp+18h+var_18], rax mov rax, [rsp+18h+var_18] mov eax, [rax] test eax, eax jnz short loc_A685B jmp short $+2 loc_A684A: mov rdi, [rsp+18h+var_8] mov rsi, [rsp+18h+var_10] call _ZL43ggml_compute_forward_cross_entropy_loss_f32PK19ggml_compute_paramsP11ggml_tensor; ggml_compute_forward_cross_entropy_loss_f32(ggml_compute_params const*,ggml_tensor *) jmp short loc_A6875 loc_A685B: lea rdi, aWorkspaceLlm4b_6; "/workspace/llm4binary/github/2025_star3"... mov esi, 21BFh lea rdx, aFatalError; "fatal error" mov al, 0 call _ggml_abort loc_A6875: add rsp, 18h retn
double ggml_compute_forward_cross_entropy_loss(long long a1, long long a2) { double result; // xmm0_8 if ( **(_DWORD **)(a2 + 152) ) return ggml_abort( "/workspace/llm4binary/github/2025_star3/ngxson[P]ggml-easy/ggml/src/ggml-cpu/ops.cpp", 8639LL, "fatal error"); ggml_compute_forward_cross_entropy_loss_f32(a1, a2); return result; }
ggml_compute_forward_cross_entropy_loss: SUB RSP,0x18 MOV qword ptr [RSP + 0x10],RDI MOV qword ptr [RSP + 0x8],RSI MOV RAX,qword ptr [RSP + 0x8] MOV RAX,qword ptr [RAX + 0x98] MOV qword ptr [RSP],RAX MOV RAX,qword ptr [RSP] MOV EAX,dword ptr [RAX] TEST EAX,EAX JNZ 0x001a685b JMP 0x001a684a LAB_001a684a: MOV RDI,qword ptr [RSP + 0x10] MOV RSI,qword ptr [RSP + 0x8] CALL 0x001a6880 JMP 0x001a6875 LAB_001a685b: LEA RDI,[0x1b5698] MOV ESI,0x21bf LEA RDX,[0x1aba94] MOV AL,0x0 CALL 0x00110660 LAB_001a6875: ADD RSP,0x18 RET
void ggml_compute_forward_cross_entropy_loss(ggml_compute_params *param_1,ggml_tensor *param_2) { if (**(int **)(param_2 + 0x98) == 0) { ggml_compute_forward_cross_entropy_loss_f32(param_1,param_2); } else { ggml_abort("/workspace/llm4binary/github/2025_star3/ngxson[P]ggml-easy/ggml/src/ggml-cpu/ops.cpp" ,0x21bf,"fatal error"); } return; }
34,774
ggml_compute_forward_cross_entropy_loss
ngxson[P]ggml-easy/ggml/src/ggml-cpu/ops.cpp
void ggml_compute_forward_cross_entropy_loss( const ggml_compute_params * params, ggml_tensor * dst) { const ggml_tensor * src0 = dst->src[0]; switch (src0->type) { case GGML_TYPE_F32: { ggml_compute_forward_cross_entropy_loss_f32(params, dst); } break; default: { GGML_ABORT("fatal error"); } } }
O1
cpp
ggml_compute_forward_cross_entropy_loss: pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x88, %rsp movq 0x98(%rsi), %rax movq %rax, 0x8(%rsp) cmpl $0x0, (%rax) jne 0x475f9 movq %rsi, %r14 movq 0xa0(%rsi), %r12 cmpl $0x0, (%r12) jne 0x47613 movq %rdi, %r15 movq 0x8(%rsp), %rax movq 0x30(%rax), %rbx xorl %edi, %edi callq 0xa8b0 cmpq %rax, %rbx jne 0x47632 movq 0x30(%r12), %rbx movl (%r12), %edi callq 0xa8b0 cmpq %rax, %rbx jne 0x47651 movq 0x8(%rsp), %rdi movq %r12, %rsi callq 0xaf20 testb %al, %al je 0x4766d movq %r14, %rdi callq 0xaf60 testb %al, %al je 0x47689 cmpl $0x0, (%r14) jne 0x476a5 movq %r12, 0x50(%rsp) movq %r14, 0x38(%rsp) movq 0x8(%rsp), %rdi movq 0x10(%rdi), %r14 callq 0xaa40 movq %rax, %rcx movslq 0x4(%r15), %rsi leaq 0x4(,%r14,4), %rax imulq %rsi, %rax cmpq %rax, 0x8(%r15) jb 0x476c1 movslq (%r15), %rdi movq %r15, 0x40(%rsp) movq 0x10(%r15), %rax movq %rax, 0x30(%rsp) leaq (%rcx,%rsi), %rax decq %rax cqto movq %rsi, 0x20(%rsp) idivq %rsi movq %rax, %r13 movq %rdi, 0x28(%rsp) imulq %rdi, %r13 addq %r13, %rax cmpq %rcx, %rax movq %rcx, 0x18(%rsp) cmovgeq %rcx, %rax vxorps %xmm0, %xmm0, %xmm0 movq %rax, 0x48(%rsp) cmpq %rax, %r13 jge 0x47568 movq 0x20(%rsp), %rax movq 0x30(%rsp), %rcx leaq (%rcx,%rax,4), %rax movq %r14, %rcx imulq 0x28(%rsp), %rcx leaq (%rax,%rcx,4), %rbx movl %r14d, %ebp andl $0x7fffffff, %ebp # imm = 0x7FFFFFFF leal 0x7(%r14), %r12d andl $-0x8, %r12d leaq -0x1(%rbp), %rax vpbroadcastq %rax, %ymm4 vmovdqu %ymm4, 0x60(%rsp) vmovss %xmm0, 0x14(%rsp) movq 0x8(%rsp), %rax movq 0x38(%rax), %rdx imulq %r13, %rdx addq 0xf8(%rax), %rdx vmovss 0xc10f(%rip), %xmm0 # 0x53564 testl %r14d, %r14d jle 0x47471 xorl %eax, %eax vmovss 0xc100(%rip), %xmm0 # 0x53564 vmaxss (%rdx,%rax,4), %xmm0, %xmm0 incq %rax cmpq %rax, %rbp jne 0x47464 movq 0x50(%rsp), %rax movq 0x38(%rax), %rcx movq %rcx, 0x58(%rsp) movq 0xf8(%rax), %r15 movl %r14d, %edi movq %rbx, %rsi vzeroupper callq 0xada0 vxorps %xmm1, %xmm1, %xmm1 testl %r14d, %r14d jle 0x47550 vcvtsd2ss %xmm0, %xmm0, %xmm0 vbroadcastss %xmm0, %ymm0 xorl %eax, %eax vmovdqu 0x60(%rsp), %ymm4 vpmovsxbq 0x1bc5(%rip), %ymm5 # 0x49080 vpmovsxbq 0x1bc0(%rip), %ymm6 # 0x49084 vpbroadcastq %rax, %ymm2 vpor %ymm5, %ymm2, %ymm3 vpor %ymm6, %ymm2, %ymm2 vpcmpleuq %ymm4, %ymm2, %k0 vpcmpleuq %ymm4, %ymm3, %k1 kshiftlb $0x4, %k1, %k1 korb %k1, %k0, %k1 vmovups (%rbx,%rax,4), %ymm2 {%k1} {z} vsubps %ymm0, %ymm2, %ymm2 vmovups %ymm2, (%rbx,%rax,4) {%k1} addq $0x8, %rax cmpq %rax, %r12 jne 0x474c4 testl %r14d, %r14d jle 0x47550 movq 0x58(%rsp), %rax imulq %r13, %rax addq %rax, %r15 xorl %eax, %eax vmovss (%rbx,%rax,4), %xmm0 vmulss (%r15,%rax,4), %xmm0, %xmm0 vmovss %xmm0, (%rbx,%rax,4) incq %rax cmpq %rax, %rbp jne 0x47518 testl %r14d, %r14d jle 0x47550 vxorps %xmm0, %xmm0, %xmm0 xorl %eax, %eax vcvtss2sd (%rbx,%rax,4), %xmm7, %xmm1 vaddsd %xmm1, %xmm0, %xmm0 incq %rax cmpq %rax, %rbp jne 0x4753b vcvtsd2ss %xmm0, %xmm0, %xmm1 vmovss 0x14(%rsp), %xmm0 vaddss %xmm1, %xmm0, %xmm0 incq %r13 cmpq 0x48(%rsp), %r13 jne 0x47433 movq 0x30(%rsp), %rbx movq 0x28(%rsp), %r14 vmovss %xmm0, (%rbx,%r14,4) movq 0x40(%rsp), %rax movq 0x18(%rax), %rdi vzeroupper callq 0xa060 testl %r14d, %r14d jne 0x475e7 movq 0x38(%rsp), %rax movq 0xf8(%rax), %rax movq 0x20(%rsp), %rsi testl %esi, %esi jle 0x475c5 vxorps %xmm0, %xmm0, %xmm0 xorl %ecx, %ecx movq 0x18(%rsp), %rdx vcvtss2sd (%rbx,%rcx,4), %xmm7, %xmm1 vaddsd %xmm1, %xmm0, %xmm0 incq %rcx cmpq %rcx, %rsi jne 0x475ae vcvtsd2ss %xmm0, %xmm0, %xmm0 jmp 0x475ce vxorps %xmm0, %xmm0, %xmm0 movq 0x18(%rsp), %rdx vcvtsi2ss %rdx, %xmm7, %xmm1 vmovss 0xbe25(%rip), %xmm2 # 0x53400 vdivss %xmm1, %xmm2, %xmm1 vmulss %xmm0, %xmm1, %xmm0 vmovss %xmm0, (%rax) addq $0x88, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq leaq 0xc4a0(%rip), %rdi # 0x53aa0 leaq 0x2079(%rip), %rdx # 0x49680 movl $0x21bf, %esi # imm = 0x21BF xorl %eax, %eax callq 0xaf40 leaq 0xc486(%rip), %rdi # 0x53aa0 leaq 0x1f49(%rip), %rdx # 0x4956a leaq 0x23b4(%rip), %rcx # 0x499dc movl $0x216e, %esi # imm = 0x216E jmp 0x476db leaq 0xc467(%rip), %rdi # 0x53aa0 leaq 0x1f2a(%rip), %rdx # 0x4956a leaq 0xd0c3(%rip), %rcx # 0x5470a movl $0x216f, %esi # imm = 0x216F jmp 0x476db leaq 0xc448(%rip), %rdi # 0x53aa0 leaq 0x1f0b(%rip), %rdx # 0x4956a leaq 0xd0ce(%rip), %rcx # 0x54734 movl $0x2170, %esi # imm = 0x2170 jmp 0x476db leaq 0xc42c(%rip), %rdi # 0x53aa0 leaq 0x1eef(%rip), %rdx # 0x4956a leaq 0xcae5(%rip), %rcx # 0x54167 movl $0x2171, %esi # imm = 0x2171 jmp 0x476db leaq 0xc410(%rip), %rdi # 0x53aa0 leaq 0x1ed3(%rip), %rdx # 0x4956a leaq 0xc997(%rip), %rcx # 0x54035 movl $0x2172, %esi # imm = 0x2172 jmp 0x476db leaq 0xc3f4(%rip), %rdi # 0x53aa0 leaq 0x1eb7(%rip), %rdx # 0x4956a leaq 0xc457(%rip), %rcx # 0x53b11 movl $0x2173, %esi # imm = 0x2173 jmp 0x476db leaq 0xc3d8(%rip), %rdi # 0x53aa0 leaq 0x1e9b(%rip), %rdx # 0x4956a leaq 0xd088(%rip), %rcx # 0x5475e movl $0x2180, %esi # imm = 0x2180 xorl %eax, %eax callq 0xaf40
ggml_compute_forward_cross_entropy_loss: push rbp push r15 push r14 push r13 push r12 push rbx sub rsp, 88h mov rax, [rsi+98h] mov [rsp+0B8h+var_B0], rax cmp dword ptr [rax], 0 jnz loc_475F9 mov r14, rsi mov r12, [rsi+0A0h] cmp dword ptr [r12], 0 jnz loc_47613 mov r15, rdi mov rax, [rsp+0B8h+var_B0] mov rbx, [rax+30h] xor edi, edi call _ggml_type_size cmp rbx, rax jnz loc_47632 mov rbx, [r12+30h] mov edi, [r12] call _ggml_type_size cmp rbx, rax jnz loc_47651 mov rdi, [rsp+0B8h+var_B0] mov rsi, r12 call _ggml_are_same_shape test al, al jz loc_4766D mov rdi, r14 call _ggml_is_scalar test al, al jz loc_47689 cmp dword ptr [r14], 0 jnz loc_476A5 mov [rsp+0B8h+var_68], r12 mov [rsp+0B8h+var_80], r14 mov rdi, [rsp+0B8h+var_B0] mov r14, [rdi+10h] call _ggml_nrows mov rcx, rax movsxd rsi, dword ptr [r15+4] lea rax, ds:4[r14*4] imul rax, rsi cmp [r15+8], rax jb loc_476C1 movsxd rdi, dword ptr [r15] mov [rsp+0B8h+var_78], r15 mov rax, [r15+10h] mov [rsp+0B8h+var_88], rax lea rax, [rcx+rsi] dec rax cqo mov [rsp+0B8h+var_98], rsi idiv rsi mov r13, rax mov [rsp+0B8h+var_90], rdi imul r13, rdi add rax, r13 cmp rax, rcx mov [rsp+0B8h+var_A0], rcx cmovge rax, rcx vxorps xmm0, xmm0, xmm0 mov [rsp+0B8h+var_70], rax cmp r13, rax jge loc_47568 mov rax, [rsp+0B8h+var_98] mov rcx, [rsp+0B8h+var_88] lea rax, [rcx+rax*4] mov rcx, r14 imul rcx, [rsp+0B8h+var_90] lea rbx, [rax+rcx*4] mov ebp, r14d and ebp, 7FFFFFFFh lea r12d, [r14+7] and r12d, 0FFFFFFF8h lea rax, [rbp-1] vpbroadcastq ymm4, rax vmovdqu [rsp+0B8h+var_58], ymm4 loc_47433: vmovss [rsp+0B8h+var_A4], xmm0 mov rax, [rsp+0B8h+var_B0] mov rdx, [rax+38h] imul rdx, r13 add rdx, [rax+0F8h] vmovss xmm0, cs:dword_53564 test r14d, r14d jle short loc_47471 xor eax, eax vmovss xmm0, cs:dword_53564 loc_47464: vmaxss xmm0, xmm0, dword ptr [rdx+rax*4] inc rax cmp rbp, rax jnz short loc_47464 loc_47471: mov rax, [rsp+0B8h+var_68] mov rcx, [rax+38h] mov [rsp+0B8h+var_60], rcx mov r15, [rax+0F8h] mov edi, r14d mov rsi, rbx vzeroupper call _ggml_vec_log_soft_max_f32 vxorps xmm1, xmm1, xmm1 test r14d, r14d jle loc_47550 vcvtsd2ss xmm0, xmm0, xmm0 vbroadcastss ymm0, xmm0 xor eax, eax vmovdqu ymm4, [rsp+0B8h+var_58] vpmovsxbq ymm5, cs:dword_49080 vpmovsxbq ymm6, cs:dword_49084 loc_474C4: vpbroadcastq ymm2, rax vpor ymm3, ymm2, ymm5 vpor ymm2, ymm2, ymm6 vpcmpleuq k0, ymm2, ymm4 vpcmpleuq k1, ymm3, ymm4 kshiftlb k1, k1, 4 korb k1, k0, k1 vmovups ymm2{k1}{z}, ymmword ptr [rbx+rax*4] vsubps ymm2, ymm2, ymm0 vmovups ymmword ptr [rbx+rax*4]{k1}, ymm2 add rax, 8 cmp r12, rax jnz short loc_474C4 test r14d, r14d jle short loc_47550 mov rax, [rsp+0B8h+var_60] imul rax, r13 add r15, rax xor eax, eax loc_47518: vmovss xmm0, dword ptr [rbx+rax*4] vmulss xmm0, xmm0, dword ptr [r15+rax*4] vmovss dword ptr [rbx+rax*4], xmm0 inc rax cmp rbp, rax jnz short loc_47518 test r14d, r14d jle short loc_47550 vxorps xmm0, xmm0, xmm0 xor eax, eax loc_4753B: vcvtss2sd xmm1, xmm7, dword ptr [rbx+rax*4] vaddsd xmm0, xmm0, xmm1 inc rax cmp rbp, rax jnz short loc_4753B vcvtsd2ss xmm1, xmm0, xmm0 loc_47550: vmovss xmm0, [rsp+0B8h+var_A4] vaddss xmm0, xmm0, xmm1 inc r13 cmp r13, [rsp+0B8h+var_70] jnz loc_47433 loc_47568: mov rbx, [rsp+0B8h+var_88] mov r14, [rsp+0B8h+var_90] vmovss dword ptr [rbx+r14*4], xmm0 mov rax, [rsp+0B8h+var_78] mov rdi, [rax+18h] vzeroupper call _ggml_barrier test r14d, r14d jnz short loc_475E7 mov rax, [rsp+0B8h+var_80] mov rax, [rax+0F8h] mov rsi, [rsp+0B8h+var_98] test esi, esi jle short loc_475C5 vxorps xmm0, xmm0, xmm0 xor ecx, ecx mov rdx, [rsp+0B8h+var_A0] loc_475AE: vcvtss2sd xmm1, xmm7, dword ptr [rbx+rcx*4] vaddsd xmm0, xmm0, xmm1 inc rcx cmp rsi, rcx jnz short loc_475AE vcvtsd2ss xmm0, xmm0, xmm0 jmp short loc_475CE loc_475C5: vxorps xmm0, xmm0, xmm0 mov rdx, [rsp+0B8h+var_A0] loc_475CE: vcvtsi2ss xmm1, xmm7, rdx vmovss xmm2, cs:dword_53400 vdivss xmm1, xmm2, xmm1 vmulss xmm0, xmm1, xmm0 vmovss dword ptr [rax], xmm0 loc_475E7: add rsp, 88h pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn loc_475F9: lea rdi, aWorkspaceLlm4b_5; "/workspace/llm4binary/github/2025_star3"... lea rdx, aFatalError; "fatal error" mov esi, 21BFh xor eax, eax call _ggml_abort loc_47613: lea rdi, aWorkspaceLlm4b_5; "/workspace/llm4binary/github/2025_star3"... lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed" lea rcx, aSrc1TypeGgmlTy; "src1->type == GGML_TYPE_F32" mov esi, 216Eh jmp loc_476DB loc_47632: lea rdi, aWorkspaceLlm4b_5; "/workspace/llm4binary/github/2025_star3"... lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed" lea rcx, aSrc0Nb0GgmlTyp; "src0->nb[0] == ggml_type_size(src0->typ"... mov esi, 216Fh jmp loc_476DB loc_47651: lea rdi, aWorkspaceLlm4b_5; "/workspace/llm4binary/github/2025_star3"... lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed" lea rcx, aSrc1Nb0GgmlTyp; "src1->nb[0] == ggml_type_size(src1->typ"... mov esi, 2170h jmp short loc_476DB loc_4766D: lea rdi, aWorkspaceLlm4b_5; "/workspace/llm4binary/github/2025_star3"... lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed" lea rcx, aGgmlAreSameSha_0+22h; "ggml_are_same_shape(src0, src1)" mov esi, 2171h jmp short loc_476DB loc_47689: lea rdi, aWorkspaceLlm4b_5; "/workspace/llm4binary/github/2025_star3"... lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed" lea rcx, aGgmlIsScalarDs; "ggml_is_scalar(dst)" mov esi, 2172h jmp short loc_476DB loc_476A5: lea rdi, aWorkspaceLlm4b_5; "/workspace/llm4binary/github/2025_star3"... lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed" lea rcx, aDstTypeGgmlTyp_2; "dst->type == GGML_TYPE_F32" mov esi, 2173h jmp short loc_476DB loc_476C1: lea rdi, aWorkspaceLlm4b_5; "/workspace/llm4binary/github/2025_star3"... lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed" lea rcx, aParamsWsizeSiz_0; "params->wsize >= sizeof(float) * (nth +"... mov esi, 2180h loc_476DB: xor eax, eax call _ggml_abort
void ggml_compute_forward_cross_entropy_loss( int *a1, long long a2, __m128 _XMM0, __m128 _XMM1, double a5, double a6, double a7, double a8, double a9, __m128 _XMM7) { unsigned int *v10; // r12 long long v11; // rbx long long v12; // rbx long long v13; // r14 long long v14; // rcx long long v15; // rsi long long v16; // r13 long long v17; // rax long long v20; // rbp long long v24; // rax long long v41; // rax long long i; // rcx long long v56; // [rsp+8h] [rbp-B0h] long long v58; // [rsp+28h] [rbp-90h] long long v59; // [rsp+30h] [rbp-88h] long long v61; // [rsp+48h] [rbp-70h] v56 = *(_QWORD *)(a2 + 152); if ( *(_DWORD *)v56 ) { ggml_abort( "/workspace/llm4binary/github/2025_star3/ngxson[P]ggml-easy/ggml/src/ggml-cpu/ops.cpp", 8639LL, "fatal error"); goto LABEL_34; } v10 = *(unsigned int **)(a2 + 160); if ( *v10 ) { LABEL_34: ggml_abort( "/workspace/llm4binary/github/2025_star3/ngxson[P]ggml-easy/ggml/src/ggml-cpu/ops.cpp", 8558LL, "GGML_ASSERT(%s) failed", "src1->type == GGML_TYPE_F32"); LABEL_41: ggml_compute_forward_cross_entropy_loss_back(); return; } v11 = *(_QWORD *)(v56 + 48); if ( v11 != ggml_type_size(0LL) ) { ggml_abort( "/workspace/llm4binary/github/2025_star3/ngxson[P]ggml-easy/ggml/src/ggml-cpu/ops.cpp", 8559LL, "GGML_ASSERT(%s) failed", "src0->nb[0] == ggml_type_size(src0->type)"); goto LABEL_41; } v12 = *((_QWORD *)v10 + 6); if ( v12 != ggml_type_size(*v10) ) { ggml_abort( "/workspace/llm4binary/github/2025_star3/ngxson[P]ggml-easy/ggml/src/ggml-cpu/ops.cpp", 8560LL, "GGML_ASSERT(%s) failed", "src1->nb[0] == ggml_type_size(src1->type)"); goto LABEL_41; } if ( !(unsigned __int8)ggml_are_same_shape(v56, v10) ) { ggml_abort( "/workspace/llm4binary/github/2025_star3/ngxson[P]ggml-easy/ggml/src/ggml-cpu/ops.cpp", 8561LL, "GGML_ASSERT(%s) failed", "ggml_are_same_shape(src0, src1)"); goto LABEL_41; } if ( !(unsigned __int8)ggml_is_scalar(a2) ) { ggml_abort( "/workspace/llm4binary/github/2025_star3/ngxson[P]ggml-easy/ggml/src/ggml-cpu/ops.cpp", 8562LL, "GGML_ASSERT(%s) failed", "ggml_is_scalar(dst)"); goto LABEL_41; } if ( *(_DWORD *)a2 ) { ggml_abort( "/workspace/llm4binary/github/2025_star3/ngxson[P]ggml-easy/ggml/src/ggml-cpu/ops.cpp", 8563LL, "GGML_ASSERT(%s) failed", "dst->type == GGML_TYPE_F32"); goto LABEL_41; } v13 = *(_QWORD *)(v56 + 16); v14 = ggml_nrows(v56); v15 = a1[1]; if ( *((_QWORD *)a1 + 1) < (unsigned long long)(v15 * (4 * v13 + 4)) ) { ggml_abort( "/workspace/llm4binary/github/2025_star3/ngxson[P]ggml-easy/ggml/src/ggml-cpu/ops.cpp", 8576LL, "GGML_ASSERT(%s) failed", "params->wsize >= sizeof(float) * (nth + nth * nc)"); goto LABEL_41; } v59 = *((_QWORD *)a1 + 2); v58 = *a1; v16 = v58 * ((v14 + v15 - 1) / v15); v17 = v16 + (v14 + v15 - 1) / v15; if ( v17 >= v14 ) v17 = v14; __asm { vxorps xmm0, xmm0, xmm0 } v61 = v17; if ( v16 < v17 ) { _RBX = v59 + 4 * v15 + 4 * v58 * v13; v20 = v13 & 0x7FFFFFFF; _RAX = v20 - 1; __asm { vpbroadcastq ymm4, rax vmovdqu [rsp+0B8h+var_58], ymm4 } do { __asm { vmovss [rsp+0B8h+var_A4], xmm0 vmovss xmm0, cs:dword_53564 } if ( (int)v13 > 0 ) { v24 = 0LL; __asm { vmovss xmm0, cs:dword_53564 } do { __asm { vmaxss xmm0, xmm0, dword ptr [rdx+rax*4] } ++v24; } while ( v20 != v24 ); } __asm { vzeroupper } _XMM0 = ggml_vec_log_soft_max_f32(v13, _RBX, *(_QWORD *)(v56 + 248) + v16 * *(_QWORD *)(v56 + 56), _XMM0); __asm { vxorps xmm1, xmm1, xmm1 } if ( (int)v13 > 0 ) { __asm { vcvtsd2ss xmm0, xmm0, xmm0 vbroadcastss ymm0, xmm0 } _RAX = 0LL; __asm { vmovdqu ymm4, [rsp+0B8h+var_58] vpmovsxbq ymm5, cs:dword_49080 vpmovsxbq ymm6, cs:dword_49084 } do { __asm { vpbroadcastq ymm2, rax vpor ymm3, ymm2, ymm5 vpor ymm2, ymm2, ymm6 vpcmpleuq k0, ymm2, ymm4 vpcmpleuq k1, ymm3, ymm4 kshiftlb k1, k1, 4 korb k1, k0, k1 vmovups ymm2{k1}{z}, ymmword ptr [rbx+rax*4] vsubps ymm2, ymm2, ymm0 vmovups ymmword ptr [rbx+rax*4]{k1}, ymm2 } _RAX += 8LL; } while ( (((_DWORD)v13 + 7) & 0xFFFFFFF8) != _RAX ); _RAX = 0LL; do { __asm { vmovss xmm0, dword ptr [rbx+rax*4] vmulss xmm0, xmm0, dword ptr [r15+rax*4] vmovss dword ptr [rbx+rax*4], xmm0 } ++_RAX; } while ( v20 != _RAX ); __asm { vxorps xmm0, xmm0, xmm0 } v41 = 0LL; do { __asm { vcvtss2sd xmm1, xmm7, dword ptr [rbx+rax*4] vaddsd xmm0, xmm0, xmm1 } ++v41; } while ( v20 != v41 ); __asm { vcvtsd2ss xmm1, xmm0, xmm0 } } __asm { vmovss xmm0, [rsp+0B8h+var_A4] vaddss xmm0, xmm0, xmm1 } ++v16; } while ( v16 != v61 ); } _RBX = v59; _R14 = v58; __asm { vmovss dword ptr [rbx+r14*4], xmm0 vzeroupper } ggml_barrier(*((_QWORD *)a1 + 3)); if ( !(_DWORD)v58 ) { _RAX = *(_QWORD *)(a2 + 248); if ( (int)v15 <= 0 ) { __asm { vxorps xmm0, xmm0, xmm0 } } else { __asm { vxorps xmm0, xmm0, xmm0 } for ( i = 0LL; i != v15; ++i ) { __asm { vcvtss2sd xmm1, xmm7, dword ptr [rbx+rcx*4] vaddsd xmm0, xmm0, xmm1 } } __asm { vcvtsd2ss xmm0, xmm0, xmm0 } } __asm { vcvtsi2ss xmm1, xmm7, rdx vmovss xmm2, cs:dword_53400 vdivss xmm1, xmm2, xmm1 vmulss xmm0, xmm1, xmm0 vmovss dword ptr [rax], xmm0 } } }
ggml_compute_forward_cross_entropy_loss: PUSH RBP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0x88 MOV RAX,qword ptr [RSI + 0x98] MOV qword ptr [RSP + 0x8],RAX CMP dword ptr [RAX],0x0 JNZ 0x001475f9 MOV R14,RSI MOV R12,qword ptr [RSI + 0xa0] CMP dword ptr [R12],0x0 JNZ 0x00147613 MOV R15,RDI MOV RAX,qword ptr [RSP + 0x8] MOV RBX,qword ptr [RAX + 0x30] XOR EDI,EDI CALL 0x0010a8b0 CMP RBX,RAX JNZ 0x00147632 MOV RBX,qword ptr [R12 + 0x30] MOV EDI,dword ptr [R12] CALL 0x0010a8b0 CMP RBX,RAX JNZ 0x00147651 MOV RDI,qword ptr [RSP + 0x8] MOV RSI,R12 CALL 0x0010af20 TEST AL,AL JZ 0x0014766d MOV RDI,R14 CALL 0x0010af60 TEST AL,AL JZ 0x00147689 CMP dword ptr [R14],0x0 JNZ 0x001476a5 MOV qword ptr [RSP + 0x50],R12 MOV qword ptr [RSP + 0x38],R14 MOV RDI,qword ptr [RSP + 0x8] MOV R14,qword ptr [RDI + 0x10] CALL 0x0010aa40 MOV RCX,RAX MOVSXD RSI,dword ptr [R15 + 0x4] LEA RAX,[0x4 + R14*0x4] IMUL RAX,RSI CMP qword ptr [R15 + 0x8],RAX JC 0x001476c1 MOVSXD RDI,dword ptr [R15] MOV qword ptr [RSP + 0x40],R15 MOV RAX,qword ptr [R15 + 0x10] MOV qword ptr [RSP + 0x30],RAX LEA RAX,[RCX + RSI*0x1] DEC RAX CQO MOV qword ptr [RSP + 0x20],RSI IDIV RSI MOV R13,RAX MOV qword ptr [RSP + 0x28],RDI IMUL R13,RDI ADD RAX,R13 CMP RAX,RCX MOV qword ptr [RSP + 0x18],RCX CMOVGE RAX,RCX VXORPS XMM0,XMM0,XMM0 MOV qword ptr [RSP + 0x48],RAX CMP R13,RAX JGE 0x00147568 MOV RAX,qword ptr [RSP + 0x20] MOV RCX,qword ptr [RSP + 0x30] LEA RAX,[RCX + RAX*0x4] MOV RCX,R14 IMUL RCX,qword ptr [RSP + 0x28] LEA RBX,[RAX + RCX*0x4] MOV EBP,R14D AND EBP,0x7fffffff LEA R12D,[R14 + 0x7] AND R12D,0xfffffff8 LEA RAX,[RBP + -0x1] VPBROADCASTQ YMM4 VMOVDQU ymmword ptr [RSP + 0x60],YMM4 LAB_00147433: VMOVSS dword ptr [RSP + 0x14],XMM0 MOV RAX,qword ptr [RSP + 0x8] MOV RDX,qword ptr [RAX + 0x38] IMUL RDX,R13 ADD RDX,qword ptr [RAX + 0xf8] VMOVSS XMM0,dword ptr [0x00153564] TEST R14D,R14D JLE 0x00147471 XOR EAX,EAX VMOVSS XMM0,dword ptr [0x00153564] LAB_00147464: VMAXSS XMM0,XMM0,dword ptr [RDX + RAX*0x4] INC RAX CMP RBP,RAX JNZ 0x00147464 LAB_00147471: MOV RAX,qword ptr [RSP + 0x50] MOV RCX,qword ptr [RAX + 0x38] MOV qword ptr [RSP + 0x58],RCX MOV R15,qword ptr [RAX + 0xf8] MOV EDI,R14D MOV RSI,RBX VZEROUPPER CALL 0x0010ada0 VXORPS XMM1,XMM1,XMM1 TEST R14D,R14D JLE 0x00147550 VCVTSD2SS XMM0,XMM0,XMM0 VBROADCASTSS YMM0,XMM0 XOR EAX,EAX VMOVDQU YMM4,ymmword ptr [RSP + 0x60] VPMOVSXBQ YMM5,dword ptr [0x00149080] VPMOVSXBQ YMM6,dword ptr [0x00149084] VPBROADCASTQ YMM2 VPOR YMM3,YMM2,YMM5 VPOR YMM2,YMM2,YMM6 VPCMPUQ K0 {K0},YMM2,YMM4,0x2 VPCMPUQ K1 {K0},YMM3,YMM4,0x2 KSHIFTLB K1,K1,0x4 LAB_00147550: VMOVSS XMM0,dword ptr [RSP + 0x14] VADDSS XMM0,XMM0,XMM1 INC R13 CMP R13,qword ptr [RSP + 0x48] JNZ 0x00147433 LAB_00147568: MOV RBX,qword ptr [RSP + 0x30] MOV R14,qword ptr [RSP + 0x28] VMOVSS dword ptr [RBX + R14*0x4],XMM0 MOV RAX,qword ptr [RSP + 0x40] MOV RDI,qword ptr [RAX + 0x18] VZEROUPPER CALL 0x0010a060 TEST R14D,R14D JNZ 0x001475e7 MOV RAX,qword ptr [RSP + 0x38] MOV RAX,qword ptr [RAX + 0xf8] MOV RSI,qword ptr [RSP + 0x20] TEST ESI,ESI JLE 0x001475c5 VXORPS XMM0,XMM0,XMM0 XOR ECX,ECX MOV RDX,qword ptr [RSP + 0x18] LAB_001475ae: VCVTSS2SD XMM1,XMM7,dword ptr [RBX + RCX*0x4] VADDSD XMM0,XMM0,XMM1 INC RCX CMP RSI,RCX JNZ 0x001475ae VCVTSD2SS XMM0,XMM0,XMM0 JMP 0x001475ce LAB_001475c5: VXORPS XMM0,XMM0,XMM0 MOV RDX,qword ptr [RSP + 0x18] LAB_001475ce: VCVTSI2SS XMM1,XMM7,RDX VMOVSS XMM2,dword ptr [0x00153400] VDIVSS XMM1,XMM2,XMM1 VMULSS XMM0,XMM1,XMM0 VMOVSS dword ptr [RAX],XMM0 LAB_001475e7: ADD RSP,0x88 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET LAB_001475f9: LEA RDI,[0x153aa0] LEA RDX,[0x149680] MOV ESI,0x21bf XOR EAX,EAX CALL 0x0010af40 LAB_00147613: LEA RDI,[0x153aa0] LEA RDX,[0x14956a] LEA RCX,[0x1499dc] MOV ESI,0x216e JMP 0x001476db LAB_00147632: LEA RDI,[0x153aa0] LEA RDX,[0x14956a] LEA RCX,[0x15470a] MOV ESI,0x216f JMP 0x001476db LAB_00147651: LEA RDI,[0x153aa0] LEA RDX,[0x14956a] LEA RCX,[0x154734] MOV ESI,0x2170 JMP 0x001476db LAB_0014766d: LEA RDI,[0x153aa0] LEA RDX,[0x14956a] LEA RCX,[0x154167] MOV ESI,0x2171 JMP 0x001476db LAB_00147689: LEA RDI,[0x153aa0] LEA RDX,[0x14956a] LEA RCX,[0x154035] MOV ESI,0x2172 JMP 0x001476db LAB_001476a5: LEA RDI,[0x153aa0] LEA RDX,[0x14956a] LEA RCX,[0x153b11] MOV ESI,0x2173 JMP 0x001476db LAB_001476c1: LEA RDI,[0x153aa0] LEA RDX,[0x14956a] LEA RCX,[0x15475e] MOV ESI,0x2180 LAB_001476db: XOR EAX,EAX CALL 0x0010af40
/* WARNING: Control flow encountered bad instruction data */ void ggml_compute_forward_cross_entropy_loss(int *param_1,int *param_2) { int iVar1; int iVar2; int *piVar3; int *piVar4; ulong uVar5; long lVar6; int1 auVar7 [16]; int1 auVar8 [32]; int1 auVar9 [32]; char cVar10; long lVar11; long lVar12; long lVar13; ulong uVar14; char *pcVar15; int8 uVar16; long lVar17; long lVar18; uint uVar19; int1 auVar20 [32]; int1 auVar21 [32]; float fVar22; int1 auVar23 [64]; piVar3 = *(int **)(param_2 + 0x26); if (*piVar3 != 0) { /* WARNING: Subroutine does not return */ ggml_abort("/workspace/llm4binary/github/2025_star3/ngxson[P]ggml-easy/ggml/src/ggml-cpu/ops.cpp" ,0x21bf,"fatal error"); } piVar4 = *(int **)(param_2 + 0x28); if (*piVar4 == 0) { lVar12 = *(long *)(piVar3 + 0xc); lVar11 = ggml_type_size(0); if (lVar12 == lVar11) { lVar12 = *(long *)(piVar4 + 0xc); lVar11 = ggml_type_size(*piVar4); if (lVar12 == lVar11) { cVar10 = ggml_are_same_shape(piVar3,piVar4); if (cVar10 == '\0') { pcVar15 = "ggml_are_same_shape(src0, src1)"; uVar16 = 0x2171; } else { cVar10 = ggml_is_scalar(param_2); if (cVar10 == '\0') { pcVar15 = "ggml_is_scalar(dst)"; uVar16 = 0x2172; } else if (*param_2 == 0) { uVar5 = *(ulong *)(piVar3 + 4); lVar12 = ggml_nrows(); iVar1 = param_1[1]; lVar11 = (long)iVar1; if ((uVar5 * 4 + 4) * lVar11 <= *(ulong *)(param_1 + 2)) { iVar2 = *param_1; lVar17 = (long)iVar2; lVar6 = *(long *)(param_1 + 4); lVar13 = (lVar12 + lVar11 + -1) / lVar11; lVar18 = lVar13 * lVar17; lVar13 = lVar13 + lVar18; if (lVar12 <= lVar13) { lVar13 = lVar12; } fVar22 = 0.0; if (lVar18 < lVar13) { uVar19 = (uint)uVar5; auVar20 = vpbroadcastq_avx512vl(); fVar22 = 0.0; do { if (0 < (int)uVar19) { uVar14 = 0; auVar23 = ZEXT464(DAT_00153564); do { auVar7 = vmaxss_avx(auVar23._0_16_, ZEXT416(*(uint *)(*(long *)(piVar3 + 0xe) * lVar18 + *(long *)(piVar3 + 0x3e) + uVar14 * 4))) ; auVar23 = ZEXT1664(auVar7); uVar14 = uVar14 + 1; } while ((uVar19 & 0x7fffffff) != uVar14); } ggml_vec_log_soft_max_f32 (uVar5 & 0xffffffff,lVar6 + lVar11 * 4 + uVar5 * lVar17 * 4); if (0 < (int)uVar19) { auVar8 = vpmovsxbq_avx2(ZEXT416(DAT_00149080)); auVar9 = vpmovsxbq_avx2(ZEXT416(DAT_00149084)); auVar21 = vpbroadcastq_avx512vl(); auVar8 = vpor_avx2(auVar21,auVar8); auVar9 = vpor_avx2(auVar21,auVar9); vpcmpuq_avx512vl(auVar9,auVar20,2); vpcmpuq_avx512vl(auVar8,auVar20,2); /* WARNING: Bad instruction - Truncating control flow here */ halt_baddata(); } fVar22 = fVar22 + 0.0; lVar18 = lVar18 + 1; } while (lVar18 != lVar13); } *(float *)(lVar6 + lVar17 * 4) = fVar22; ggml_barrier(*(int8 *)(param_1 + 6)); if (iVar2 == 0) { if (iVar1 < 1) { fVar22 = 0.0; } else { fVar22 = 0.0; lVar13 = 0; do { fVar22 = fVar22 + *(float *)(lVar6 + lVar13 * 4); lVar13 = lVar13 + 1; } while (lVar11 != lVar13); } **(float **)(param_2 + 0x3e) = (DAT_00153400 / (float)lVar12) * fVar22; } return; } pcVar15 = "params->wsize >= sizeof(float) * (nth + nth * nc)"; uVar16 = 0x2180; } else { pcVar15 = "dst->type == GGML_TYPE_F32"; uVar16 = 0x2173; } } } else { pcVar15 = "src1->nb[0] == ggml_type_size(src1->type)"; uVar16 = 0x2170; } } else { pcVar15 = "src0->nb[0] == ggml_type_size(src0->type)"; uVar16 = 0x216f; } } else { pcVar15 = "src1->type == GGML_TYPE_F32"; uVar16 = 0x216e; } /* WARNING: Subroutine does not return */ ggml_abort("/workspace/llm4binary/github/2025_star3/ngxson[P]ggml-easy/ggml/src/ggml-cpu/ops.cpp", uVar16,"GGML_ASSERT(%s) failed",pcVar15); }
34,775
google::protobuf::FileDescriptor::GetSourceLocation(std::vector<int, std::allocator<int>> const&, google::protobuf::SourceLocation*) const
aimrt_mujoco_sim/_deps/protobuf-src/src/google/protobuf/descriptor.cc
bool FileDescriptor::GetSourceLocation(const std::vector<int>& path, SourceLocation* out_location) const { GOOGLE_CHECK(out_location != nullptr); if (source_code_info_) { if (const SourceCodeInfo_Location* loc = tables_->GetSourceLocation(path, source_code_info_)) { const RepeatedField<int32_t>& span = loc->span(); if (span.size() == 3 || span.size() == 4) { out_location->start_line = span.Get(0); out_location->start_column = span.Get(1); out_location->end_line = span.Get(span.size() == 3 ? 0 : 2); out_location->end_column = span.Get(span.size() - 1); out_location->leading_comments = loc->leading_comments(); out_location->trailing_comments = loc->trailing_comments(); out_location->leading_detached_comments.assign( loc->leading_detached_comments().begin(), loc->leading_detached_comments().end()); return true; } } } return false; }
O0
cpp
google::protobuf::FileDescriptor::GetSourceLocation(std::vector<int, std::allocator<int>> const&, google::protobuf::SourceLocation*) const: subq $0xc8, %rsp movq %rdi, 0xb8(%rsp) movq %rsi, 0xb0(%rsp) movq %rdx, 0xa8(%rsp) movq 0xb8(%rsp), %rax movq %rax, 0x30(%rsp) movq 0xa8(%rsp), %rax movb $0x0, 0x6f(%rsp) cmpq $0x0, %rax je 0x258111 jmp 0x258161 leaq 0x1a8570(%rip), %rdx # 0x400688 leaq 0x70(%rsp), %rdi movq %rdi, 0x20(%rsp) movl $0x3, %esi movl $0xdb0, %ecx # imm = 0xDB0 callq 0x219560 movq 0x20(%rsp), %rdi movb $0x1, 0x6f(%rsp) leaq 0x1a8a85(%rip), %rsi # 0x400bc7 callq 0x218e20 movq %rax, 0x28(%rsp) jmp 0x25814e movq 0x28(%rsp), %rsi leaq 0x5b(%rsp), %rdi callq 0x218fd0 jmp 0x25815f jmp 0x258161 testb $0x1, 0x6f(%rsp) jne 0x25816a jmp 0x258174 leaq 0x70(%rsp), %rdi callq 0x2195a0 movq 0x30(%rsp), %rax cmpq $0x0, 0x88(%rax) je 0x258347 movq 0x30(%rsp), %rax movq 0x80(%rax), %rdi movq 0xb0(%rsp), %rsi movq 0x88(%rax), %rdx callq 0x24b680 movq %rax, 0x50(%rsp) cmpq $0x0, 0x50(%rsp) je 0x258345 movq 0x50(%rsp), %rdi callq 0x28c810 movq %rax, 0x48(%rsp) movq 0x48(%rsp), %rdi callq 0x2019a0 cmpl $0x3, %eax je 0x2581e9 movq 0x48(%rsp), %rdi callq 0x2019a0 cmpl $0x4, %eax jne 0x258343 movq 0x48(%rsp), %rdi xorl %esi, %esi callq 0x201d20 movl (%rax), %ecx movq 0xa8(%rsp), %rax movl %ecx, (%rax) movq 0x48(%rsp), %rdi movl $0x1, %esi callq 0x201d20 movl (%rax), %ecx movq 0xa8(%rsp), %rax movl %ecx, 0x8(%rax) movq 0x48(%rsp), %rax movq %rax, 0x8(%rsp) movq 0x48(%rsp), %rdi callq 0x2019a0 movq 0x8(%rsp), %rdi movl %eax, %ecx movl $0x2, %esi xorl %eax, %eax cmpl $0x3, %ecx cmovel %eax, %esi callq 0x201d20 movl (%rax), %ecx movq 0xa8(%rsp), %rax movl %ecx, 0x4(%rax) movq 0x48(%rsp), %rax movq %rax, 0x10(%rsp) movq 0x48(%rsp), %rdi callq 0x2019a0 movq 0x10(%rsp), %rdi movl %eax, %esi subl $0x1, %esi callq 0x201d20 movl (%rax), %ecx movq 0xa8(%rsp), %rax movl %ecx, 0xc(%rax) movq 0x50(%rsp), %rdi callq 0x28c820 movq %rax, %rsi movq 0xa8(%rsp), %rdi addq $0x10, %rdi callq 0x21be0 movq 0x50(%rsp), %rdi callq 0x28c830 movq %rax, %rsi movq 0xa8(%rsp), %rdi addq $0x30, %rdi callq 0x21be0 movq 0xa8(%rsp), %rax addq $0x50, %rax movq %rax, 0x18(%rsp) movq 0x50(%rsp), %rdi callq 0x28c880 movq %rax, %rdi callq 0x213230 movq %rax, 0x40(%rsp) movq 0x50(%rsp), %rdi callq 0x28c880 movq %rax, %rdi callq 0x2132f0 movq 0x18(%rsp), %rdi movq %rax, 0x38(%rsp) movq 0x40(%rsp), %rsi movq 0x38(%rsp), %rdx callq 0x28c840 movb $0x1, 0xc7(%rsp) jmp 0x25834f movq %rax, %rcx movl %edx, %eax movq %rcx, 0x60(%rsp) movl %eax, 0x5c(%rsp) testb $0x1, 0x6f(%rsp) jne 0x258337 jmp 0x258341 leaq 0x70(%rsp), %rdi callq 0x2195a0 jmp 0x258360 jmp 0x258345 jmp 0x258347 movb $0x0, 0xc7(%rsp) movb 0xc7(%rsp), %al andb $0x1, %al addq $0xc8, %rsp retq movq 0x60(%rsp), %rdi callq 0x21700 nopw (%rax,%rax)
_ZNK6google8protobuf14FileDescriptor17GetSourceLocationERKSt6vectorIiSaIiEEPNS0_14SourceLocationE: sub rsp, 0C8h mov [rsp+0C8h+var_10], rdi mov [rsp+0C8h+var_18], rsi mov [rsp+0C8h+var_20], rdx mov rax, [rsp+0C8h+var_10] mov [rsp+0C8h+var_98], rax mov rax, [rsp+0C8h+var_20] mov [rsp+0C8h+var_59], 0 cmp rax, 0 jz short loc_258111 jmp short loc_258161 loc_258111: lea rdx, aWorkspaceLlm4b_80; "/workspace/llm4binary/github2025/aimrt_"... lea rdi, [rsp+0C8h+var_58] mov [rsp+0C8h+var_A8], rdi mov esi, 3 mov ecx, 0DB0h call _ZN6google8protobuf8internal10LogMessageC2ENS0_8LogLevelEPKci; google::protobuf::internal::LogMessage::LogMessage(google::protobuf::LogLevel,char const*,int) mov rdi, [rsp+0C8h+var_A8] mov [rsp+0C8h+var_59], 1 lea rsi, aCheckFailedOut_2; "CHECK failed: out_location != nullptr: " call _ZN6google8protobuf8internal10LogMessagelsEPKc; google::protobuf::internal::LogMessage::operator<<(char const*) mov [rsp+0C8h+var_A0], rax jmp short $+2 loc_25814E: mov rsi, [rsp+0C8h+var_A0] lea rdi, [rsp+0C8h+var_6D] call _ZN6google8protobuf8internal11LogFinisheraSERNS1_10LogMessageE; google::protobuf::internal::LogFinisher::operator=(google::protobuf::internal::LogMessage &) jmp short $+2 loc_25815F: jmp short $+2 loc_258161: test [rsp+0C8h+var_59], 1 jnz short loc_25816A jmp short loc_258174 loc_25816A: lea rdi, [rsp+0C8h+var_58]; this call _ZN6google8protobuf8internal10LogMessageD2Ev; google::protobuf::internal::LogMessage::~LogMessage() loc_258174: mov rax, [rsp+0C8h+var_98] cmp qword ptr [rax+88h], 0 jz loc_258347 mov rax, [rsp+0C8h+var_98] mov rdi, [rax+80h] mov rsi, [rsp+0C8h+var_18] mov rdx, [rax+88h] call _ZNK6google8protobuf20FileDescriptorTables17GetSourceLocationERKSt6vectorIiSaIiEEPKNS0_14SourceCodeInfoE; google::protobuf::FileDescriptorTables::GetSourceLocation(std::vector<int> const&,google::protobuf::SourceCodeInfo const*) mov [rsp+0C8h+var_78], rax cmp [rsp+0C8h+var_78], 0 jz loc_258345 mov rdi, [rsp+0C8h+var_78]; this call _ZNK6google8protobuf23SourceCodeInfo_Location4spanEv; google::protobuf::SourceCodeInfo_Location::span(void) mov [rsp+0C8h+var_80], rax mov rdi, [rsp+0C8h+var_80] call _ZNK6google8protobuf13RepeatedFieldIiE4sizeEv; google::protobuf::RepeatedField<int>::size(void) cmp eax, 3 jz short loc_2581E9 mov rdi, [rsp+0C8h+var_80] call _ZNK6google8protobuf13RepeatedFieldIiE4sizeEv; google::protobuf::RepeatedField<int>::size(void) cmp eax, 4 jnz loc_258343 loc_2581E9: mov rdi, [rsp+0C8h+var_80] xor esi, esi call _ZNK6google8protobuf13RepeatedFieldIiE3GetEi; google::protobuf::RepeatedField<int>::Get(int) mov ecx, [rax] mov rax, [rsp+0C8h+var_20] mov [rax], ecx mov rdi, [rsp+0C8h+var_80] mov esi, 1 call _ZNK6google8protobuf13RepeatedFieldIiE3GetEi; google::protobuf::RepeatedField<int>::Get(int) mov ecx, [rax] mov rax, [rsp+0C8h+var_20] mov [rax+8], ecx mov rax, [rsp+0C8h+var_80] mov [rsp+0C8h+var_C0], rax mov rdi, [rsp+0C8h+var_80] call _ZNK6google8protobuf13RepeatedFieldIiE4sizeEv; google::protobuf::RepeatedField<int>::size(void) mov rdi, [rsp+0C8h+var_C0] mov ecx, eax mov esi, 2 xor eax, eax cmp ecx, 3 cmovz esi, eax call _ZNK6google8protobuf13RepeatedFieldIiE3GetEi; google::protobuf::RepeatedField<int>::Get(int) mov ecx, [rax] mov rax, [rsp+0C8h+var_20] mov [rax+4], ecx mov rax, [rsp+0C8h+var_80] mov [rsp+0C8h+var_B8], rax mov rdi, [rsp+0C8h+var_80] call _ZNK6google8protobuf13RepeatedFieldIiE4sizeEv; google::protobuf::RepeatedField<int>::size(void) mov rdi, [rsp+0C8h+var_B8] mov esi, eax sub esi, 1 call _ZNK6google8protobuf13RepeatedFieldIiE3GetEi; google::protobuf::RepeatedField<int>::Get(int) mov ecx, [rax] mov rax, [rsp+0C8h+var_20] mov [rax+0Ch], ecx mov rdi, [rsp+0C8h+var_78] call _ZNK6google8protobuf23SourceCodeInfo_Location16leading_commentsB5cxx11Ev; google::protobuf::SourceCodeInfo_Location::leading_comments(void) mov rsi, rax mov rdi, [rsp+0C8h+var_20] add rdi, 10h call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSERKS4_; std::string::operator=(std::string const&) mov rdi, [rsp+0C8h+var_78] call _ZNK6google8protobuf23SourceCodeInfo_Location17trailing_commentsB5cxx11Ev; google::protobuf::SourceCodeInfo_Location::trailing_comments(void) mov rsi, rax mov rdi, [rsp+0C8h+var_20] add rdi, 30h ; '0' call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSERKS4_; std::string::operator=(std::string const&) mov rax, [rsp+0C8h+var_20] add rax, 50h ; 'P' mov [rsp+0C8h+var_B0], rax mov rdi, [rsp+0C8h+var_78] call _ZNK6google8protobuf23SourceCodeInfo_Location25leading_detached_commentsB5cxx11Ev; google::protobuf::SourceCodeInfo_Location::leading_detached_comments(void) mov rdi, rax call _ZNK6google8protobuf16RepeatedPtrFieldINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEE5beginEv; google::protobuf::RepeatedPtrField<std::string>::begin(void) mov [rsp+0C8h+var_88], rax mov rdi, [rsp+0C8h+var_78] call _ZNK6google8protobuf23SourceCodeInfo_Location25leading_detached_commentsB5cxx11Ev; google::protobuf::SourceCodeInfo_Location::leading_detached_comments(void) mov rdi, rax call _ZNK6google8protobuf16RepeatedPtrFieldINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEE3endEv; google::protobuf::RepeatedPtrField<std::string>::end(void) mov rdi, [rsp+0C8h+var_B0] mov [rsp+0C8h+var_90], rax mov rsi, [rsp+0C8h+var_88] mov rdx, [rsp+0C8h+var_90] call _ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE6assignIN6google8protobuf8internal19RepeatedPtrIteratorIKS5_EEvEEvT_SF_; std::vector<std::string>::assign<google::protobuf::internal::RepeatedPtrIterator<std::string const>,void>(google::protobuf::internal::RepeatedPtrIterator<std::string const>,google::protobuf::internal::RepeatedPtrIterator<std::string const>) mov [rsp+0C8h+var_1], 1 jmp short loc_25834F mov rcx, rax mov eax, edx mov [rsp+arg_58], rcx mov [rsp+arg_54], eax test [rsp+arg_67], 1 jnz short loc_258337 jmp short loc_258341 loc_258337: lea rdi, [rsp+arg_68]; this call _ZN6google8protobuf8internal10LogMessageD2Ev; google::protobuf::internal::LogMessage::~LogMessage() loc_258341: jmp short loc_258360 loc_258343: jmp short $+2 loc_258345: jmp short $+2 loc_258347: mov [rsp+0C8h+var_1], 0 loc_25834F: mov al, [rsp+0C8h+var_1] and al, 1 add rsp, 0C8h retn loc_258360: mov rdi, [rsp+arg_58] call __Unwind_Resume
char google::protobuf::FileDescriptor::GetSourceLocation(long long a1, long long a2, int *a3) { int v3; // edx int v4; // ecx int v5; // r8d int v6; // r9d int *v7; // rax int v8; // ecx int v9; // edx int v10; // r8d int v11; // r9d int *v12; // rax int v13; // edx int v14; // ecx int v15; // r8d int v16; // r9d int v17; // esi int *v18; // rax int v19; // eax int v20; // edx int v21; // ecx int v22; // r8d int v23; // r9d int *v24; // rax long long v25; // rax long long v26; // rsi google::protobuf::internal::RepeatedPtrFieldBase *v27; // rax google::protobuf::internal::RepeatedPtrFieldBase *v28; // rax _DWORD *v30; // [rsp+18h] [rbp-B0h] google::protobuf::internal::LogMessage *v31; // [rsp+28h] [rbp-A0h] long long v32; // [rsp+38h] [rbp-90h] long long v33; // [rsp+40h] [rbp-88h] unsigned int *v34; // [rsp+48h] [rbp-80h] google::protobuf::SourceCodeInfo_Location *SourceLocation; // [rsp+50h] [rbp-78h] char v36[20]; // [rsp+5Bh] [rbp-6Dh] BYREF char v37; // [rsp+6Fh] [rbp-59h] _BYTE v38[56]; // [rsp+70h] [rbp-58h] BYREF int *v39; // [rsp+A8h] [rbp-20h] long long v40; // [rsp+B0h] [rbp-18h] long long v41; // [rsp+B8h] [rbp-10h] v41 = a1; v40 = a2; v39 = a3; v37 = 0; if ( !a3 ) { google::protobuf::internal::LogMessage::LogMessage( (long long)v38, 3, (long long)"/workspace/llm4binary/github2025/aimrt_mujoco_sim/_deps/protobuf-src/src/google/protobuf/descriptor.cc", 3504); v37 = 1; v31 = (google::protobuf::internal::LogMessage *)google::protobuf::internal::LogMessage::operator<<( (long long)v38, (long long)"CHECK failed: out_location != nullptr: "); google::protobuf::internal::LogFinisher::operator=((long long)v36, v31); } if ( (v37 & 1) != 0 ) google::protobuf::internal::LogMessage::~LogMessage((google::protobuf::internal::LogMessage *)v38); if ( !*(_QWORD *)(a1 + 136) ) return 0; SourceLocation = (google::protobuf::SourceCodeInfo_Location *)google::protobuf::FileDescriptorTables::GetSourceLocation( *(_QWORD *)(a1 + 128), v40, *(_QWORD *)(a1 + 136)); if ( !SourceLocation ) return 0; v34 = (unsigned int *)google::protobuf::SourceCodeInfo_Location::span(SourceLocation); if ( (unsigned int)google::protobuf::RepeatedField<int>::size(v34) != 3 && (unsigned int)google::protobuf::RepeatedField<int>::size(v34) != 4 ) { return 0; } v7 = (int *)google::protobuf::RepeatedField<int>::Get((long long)v34, 0, v3, v4, v5, v6); v8 = *v7; *v39 = *v7; v12 = (int *)google::protobuf::RepeatedField<int>::Get((long long)v34, 1, v9, v8, v10, v11); v39[2] = *v12; v14 = google::protobuf::RepeatedField<int>::size(v34); v17 = 2; if ( v14 == 3 ) v17 = 0; v18 = (int *)google::protobuf::RepeatedField<int>::Get((long long)v34, v17, v13, v14, v15, v16); v39[1] = *v18; v19 = google::protobuf::RepeatedField<int>::size(v34); v24 = (int *)google::protobuf::RepeatedField<int>::Get((long long)v34, v19 - 1, v20, v21, v22, v23); v39[3] = *v24; v25 = google::protobuf::SourceCodeInfo_Location::leading_comments[abi:cxx11](SourceLocation); std::string::operator=(v39 + 4, v25); v26 = google::protobuf::SourceCodeInfo_Location::trailing_comments[abi:cxx11](SourceLocation); std::string::operator=(v39 + 12, v26); v30 = v39 + 20; v27 = (google::protobuf::internal::RepeatedPtrFieldBase *)google::protobuf::SourceCodeInfo_Location::leading_detached_comments[abi:cxx11](SourceLocation); v33 = google::protobuf::RepeatedPtrField<std::string>::begin(v27); v28 = (google::protobuf::internal::RepeatedPtrFieldBase *)google::protobuf::SourceCodeInfo_Location::leading_detached_comments[abi:cxx11](SourceLocation); v32 = google::protobuf::RepeatedPtrField<std::string>::end(v28); std::vector<std::string>::assign<google::protobuf::internal::RepeatedPtrIterator<std::string const>,void>( v30, v33, v32); return 1; }
__sort_heap<__gnu_cxx::__normal_iterator<google::protobuf::Descriptor::ExtensionRange_const**,std::vector<google::protobuf::Descriptor::ExtensionRange_const*,std::allocator<google::protobuf::Descriptor::ExtensionRange_const*>>>,__gnu_cxx::__ops::_Iter_comp_iter<google::protobuf::compiler::java::ExtensionRangeOrdering>>: SUB RSP,0x38 MOV qword ptr [RSP + 0x30],RDI MOV qword ptr [RSP + 0x28],RSI MOV qword ptr [RSP + 0x20],RDX LAB_002580e3: LEA RDI,[RSP + 0x28] LEA RSI,[RSP + 0x30] CALL 0x002195c0 CMP RAX,0x1 JLE 0x0025813b LEA RDI,[RSP + 0x28] CALL 0x002196b0 MOV RAX,qword ptr [RSP + 0x30] MOV qword ptr [RSP + 0x18],RAX MOV RAX,qword ptr [RSP + 0x28] MOV qword ptr [RSP + 0x10],RAX MOV RAX,qword ptr [RSP + 0x28] MOV qword ptr [RSP + 0x8],RAX MOV RCX,qword ptr [RSP + 0x20] MOV RDI,qword ptr [RSP + 0x18] MOV RSI,qword ptr [RSP + 0x10] MOV RDX,qword ptr [RSP + 0x8] CALL 0x00258260 JMP 0x002580e3 LAB_0025813b: ADD RSP,0x38 RET
/* WARNING: Unknown calling convention -- yet parameter storage is locked */ /* void std::__sort_heap<__gnu_cxx::__normal_iterator<google::protobuf::Descriptor::ExtensionRange const**, std::vector<google::protobuf::Descriptor::ExtensionRange const*, std::allocator<google::protobuf::Descriptor::ExtensionRange const*> > >, __gnu_cxx::__ops::_Iter_comp_iter<google::protobuf::compiler::java::ExtensionRangeOrdering> >(__gnu_cxx::__normal_iterator<google::protobuf::Descriptor::ExtensionRange const**, std::vector<google::protobuf::Descriptor::ExtensionRange const*, std::allocator<google::protobuf::Descriptor::ExtensionRange const*> > >, __gnu_cxx::__normal_iterator<google::protobuf::Descriptor::ExtensionRange const**, std::vector<google::protobuf::Descriptor::ExtensionRange const*, std::allocator<google::protobuf::Descriptor::ExtensionRange const*> > >, __gnu_cxx::__ops::_Iter_comp_iter<google::protobuf::compiler::java::ExtensionRangeOrdering>&) */ void std:: __sort_heap<__gnu_cxx::__normal_iterator<google::protobuf::Descriptor::ExtensionRange_const**,std::vector<google::protobuf::Descriptor::ExtensionRange_const*,std::allocator<google::protobuf::Descriptor::ExtensionRange_const*>>>,__gnu_cxx::__ops::_Iter_comp_iter<google::protobuf::compiler::java::ExtensionRangeOrdering>> (int8 param_1,int8 param_2,int8 param_3) { long lVar1; int8 local_10; int8 local_8; local_10 = param_2; local_8 = param_1; while( true ) { lVar1 = __gnu_cxx::operator-((__normal_iterator *)&local_10,(__normal_iterator *)&local_8); if (lVar1 < 2) break; __gnu_cxx:: __normal_iterator<google::protobuf::Descriptor::ExtensionRange_const**,std::vector<google::protobuf::Descriptor::ExtensionRange_const*,std::allocator<google::protobuf::Descriptor::ExtensionRange_const*>>> ::operator--((__normal_iterator<google::protobuf::Descriptor::ExtensionRange_const**,std::vector<google::protobuf::Descriptor::ExtensionRange_const*,std::allocator<google::protobuf::Descriptor::ExtensionRange_const*>>> *)&local_10); __pop_heap<__gnu_cxx::__normal_iterator<google::protobuf::Descriptor::ExtensionRange_const**,std::vector<google::protobuf::Descriptor::ExtensionRange_const*,std::allocator<google::protobuf::Descriptor::ExtensionRange_const*>>>,__gnu_cxx::__ops::_Iter_comp_iter<google::protobuf::compiler::java::ExtensionRangeOrdering>> (local_8,local_10,local_10,param_3); } return; }
34,776
nlohmann::json_abi_v3_11_3::detail::lexer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>, nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>>>::reset()
monkey531[P]llama/common/./json.hpp
void reset() noexcept { token_buffer.clear(); token_string.clear(); token_string.push_back(char_traits<char_type>::to_char_type(current)); }
O2
cpp
nlohmann::json_abi_v3_11_3::detail::lexer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>, nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>>>::reset(): pushq %rax movq %rdi, %rax andq $0x0, 0x58(%rdi) movq 0x50(%rdi), %rcx movb $0x0, (%rcx) addq $0x38, %rdi movq 0x38(%rax), %rcx cmpq %rcx, 0x40(%rax) je 0x6eda8 movq %rcx, 0x40(%rax) movb 0x14(%rax), %al leaq 0x7(%rsp), %rsi movb %al, (%rsi) callq 0x48ebc popq %rax retq movq %rax, %rdi callq 0x3bd35 nop
_ZN8nlohmann16json_abi_v3_11_36detail5lexerINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEENS1_22iterator_input_adapterIN9__gnu_cxx17__normal_iteratorIPKcSB_EEEEE5resetEv: push rax mov rax, rdi and qword ptr [rdi+58h], 0 mov rcx, [rdi+50h] mov byte ptr [rcx], 0 add rdi, 38h ; '8' mov rcx, [rax+38h] cmp [rax+40h], rcx jz short loc_6EDA8 mov [rax+40h], rcx loc_6EDA8: mov al, [rax+14h] lea rsi, [rsp+8+var_1] mov [rsi], al call _ZNSt6vectorIcSaIcEE12emplace_backIJcEEERcDpOT_; std::vector<char>::emplace_back<char>(char &&) pop rax retn mov rdi, rax call __clang_call_terminate
void __spoils<rdx,rcx,r8,r9,r10,r11,xmm4,xmm5> nlohmann::json_abi_v3_11_3::detail::lexer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>>::reset( long long a1) { long long v2; // rdi long long v3; // rcx char v4; // [rsp+1h] [rbp-1h] BYREF *(_QWORD *)(a1 + 88) = 0LL; **(_BYTE **)(a1 + 80) = 0; v2 = a1 + 56; v3 = *(_QWORD *)(a1 + 56); if ( *(_QWORD *)(a1 + 64) != v3 ) *(_QWORD *)(a1 + 64) = v3; v4 = *(_BYTE *)(a1 + 20); std::vector<char>::emplace_back<char>(v2, &v4); }
reset: PUSH RAX MOV RAX,RDI AND qword ptr [RDI + 0x58],0x0 MOV RCX,qword ptr [RDI + 0x50] MOV byte ptr [RCX],0x0 ADD RDI,0x38 MOV RCX,qword ptr [RAX + 0x38] CMP qword ptr [RAX + 0x40],RCX JZ 0x0016eda8 MOV qword ptr [RAX + 0x40],RCX LAB_0016eda8: MOV AL,byte ptr [RAX + 0x14] LEA RSI,[RSP + 0x7] MOV byte ptr [RSI],AL LAB_0016edb2: CALL 0x00148ebc POP RAX RET
/* nlohmann::json_abi_v3_11_3::detail::lexer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::string, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char> >, void>, nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*, std::__cxx11::string > > >::reset() */ int8 __thiscall nlohmann::json_abi_v3_11_3::detail:: lexer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char_const*,std::__cxx11::string>>> ::reset(lexer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char_const*,std::__cxx11::string>>> *this) { int8 in_RAX; int8 uStack_8; *(int8 *)(this + 0x58) = 0; **(int1 **)(this + 0x50) = 0; if (*(long *)(this + 0x40) != *(long *)(this + 0x38)) { *(long *)(this + 0x40) = *(long *)(this + 0x38); } uStack_8 = CONCAT17(this[0x14],(int7)in_RAX); /* try { // try from 0016edb2 to 0016edb6 has its CatchHandler @ 0016edb9 */ std::vector<char,std::allocator<char>>::emplace_back<char> ((vector<char,std::allocator<char>> *)(this + 0x38),(char *)((long)&uStack_8 + 7)); return uStack_8; }
34,777
nlohmann::json_abi_v3_11_3::detail::lexer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>, nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>>>::reset()
monkey531[P]llama/common/./json.hpp
void reset() noexcept { token_buffer.clear(); token_string.clear(); token_string.push_back(char_traits<char_type>::to_char_type(current)); }
O3
cpp
nlohmann::json_abi_v3_11_3::detail::lexer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>, nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>>>::reset(): pushq %rax movq %rdi, %rax movq $0x0, 0x58(%rdi) movq 0x50(%rdi), %rcx movb $0x0, (%rcx) addq $0x38, %rdi movq 0x38(%rax), %rcx cmpq %rcx, 0x40(%rax) je 0x7ba81 movq %rcx, 0x40(%rax) movb 0x14(%rax), %al leaq 0x7(%rsp), %rsi movb %al, (%rsi) callq 0x4f0b6 popq %rax retq movq %rax, %rdi callq 0x3f24b
_ZN8nlohmann16json_abi_v3_11_36detail5lexerINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEENS1_22iterator_input_adapterIN9__gnu_cxx17__normal_iteratorIPKcSB_EEEEE5resetEv: push rax mov rax, rdi mov qword ptr [rdi+58h], 0 mov rcx, [rdi+50h] mov byte ptr [rcx], 0 add rdi, 38h ; '8' mov rcx, [rax+38h] cmp [rax+40h], rcx jz short loc_7BA81 mov [rax+40h], rcx loc_7BA81: mov al, [rax+14h] lea rsi, [rsp+8+var_1] mov [rsi], al call _ZNSt6vectorIcSaIcEE12emplace_backIJcEEERcDpOT_; std::vector<char>::emplace_back<char>(char &&) pop rax retn mov rdi, rax call __clang_call_terminate
void __spoils<rdx,rcx,r8,r9,r10,r11,xmm4,xmm5> nlohmann::json_abi_v3_11_3::detail::lexer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>>::reset( long long a1) { long long v2; // rdi long long v3; // rcx char v4; // [rsp+1h] [rbp-1h] BYREF *(_QWORD *)(a1 + 88) = 0LL; **(_BYTE **)(a1 + 80) = 0; v2 = a1 + 56; v3 = *(_QWORD *)(a1 + 56); if ( *(_QWORD *)(a1 + 64) != v3 ) *(_QWORD *)(a1 + 64) = v3; v4 = *(_BYTE *)(a1 + 20); std::vector<char>::emplace_back<char>(v2, &v4); }
reset: PUSH RAX MOV RAX,RDI MOV qword ptr [RDI + 0x58],0x0 MOV RCX,qword ptr [RDI + 0x50] MOV byte ptr [RCX],0x0 ADD RDI,0x38 MOV RCX,qword ptr [RAX + 0x38] CMP qword ptr [RAX + 0x40],RCX JZ 0x0017ba81 MOV qword ptr [RAX + 0x40],RCX LAB_0017ba81: MOV AL,byte ptr [RAX + 0x14] LEA RSI,[RSP + 0x7] MOV byte ptr [RSI],AL LAB_0017ba8b: CALL 0x0014f0b6 POP RAX RET
/* nlohmann::json_abi_v3_11_3::detail::lexer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::string, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char> >, void>, nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*, std::__cxx11::string > > >::reset() */ int8 __thiscall nlohmann::json_abi_v3_11_3::detail:: lexer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char_const*,std::__cxx11::string>>> ::reset(lexer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char_const*,std::__cxx11::string>>> *this) { int8 in_RAX; int8 uStack_8; *(int8 *)(this + 0x58) = 0; **(int1 **)(this + 0x50) = 0; if (*(long *)(this + 0x40) != *(long *)(this + 0x38)) { *(long *)(this + 0x40) = *(long *)(this + 0x38); } uStack_8 = CONCAT17(this[0x14],(int7)in_RAX); /* try { // try from 0017ba8b to 0017ba8f has its CatchHandler @ 0017ba92 */ std::vector<char,std::allocator<char>>::emplace_back<char> ((vector<char,std::allocator<char>> *)(this + 0x38),(char *)((long)&uStack_8 + 7)); return uStack_8; }
34,778
testing::TestPartResultTypeToString(testing::TestPartResult::Type)
AlayaLite/build_O0/_deps/googletest-src/googletest/src/gtest.cc
static const char* TestPartResultTypeToString(TestPartResult::Type type) { switch (type) { case TestPartResult::kSkip: return "Skipped\n"; case TestPartResult::kSuccess: return "Success"; case TestPartResult::kNonFatalFailure: case TestPartResult::kFatalFailure: #ifdef _MSC_VER return "error: "; #else return "Failure\n"; #endif default: return "Unknown result type"; } }
O0
cpp
testing::TestPartResultTypeToString(testing::TestPartResult::Type): movl %edi, -0xc(%rsp) movl -0xc(%rsp), %eax movl %eax, -0x10(%rsp) testl %eax, %eax je 0x40ad8 jmp 0x40ab2 movl -0x10(%rsp), %eax decl %eax subl $0x2, %eax jb 0x40ae6 jmp 0x40abf movl -0x10(%rsp), %eax subl $0x3, %eax jne 0x40af4 jmp 0x40aca leaq 0x356ca(%rip), %rax # 0x7619b movq %rax, -0x8(%rsp) jmp 0x40b00 leaq 0x33967(%rip), %rax # 0x74446 movq %rax, -0x8(%rsp) jmp 0x40b00 leaq 0x356b7(%rip), %rax # 0x761a4 movq %rax, -0x8(%rsp) jmp 0x40b00 leaq 0x356b2(%rip), %rax # 0x761ad movq %rax, -0x8(%rsp) movq -0x8(%rsp), %rax retq nopw %cs:(%rax,%rax)
_ZN7testingL26TestPartResultTypeToStringENS_14TestPartResult4TypeE: mov [rsp+var_C], edi mov eax, [rsp+var_C] mov [rsp+var_10], eax test eax, eax jz short loc_40AD8 jmp short $+2 loc_40AB2: mov eax, [rsp+var_10] dec eax sub eax, 2 jb short loc_40AE6 jmp short $+2 loc_40ABF: mov eax, [rsp+var_10] sub eax, 3 jnz short loc_40AF4 jmp short $+2 loc_40ACA: lea rax, aSkipped_4; "Skipped\n" mov [rsp+var_8], rax jmp short loc_40B00 loc_40AD8: lea rax, aSuccess; "Success" mov [rsp+var_8], rax jmp short loc_40B00 loc_40AE6: lea rax, aFailure_1; "Failure\n" mov [rsp+var_8], rax jmp short loc_40B00 loc_40AF4: lea rax, aUnknownResultT; "Unknown result type" mov [rsp+var_8], rax loc_40B00: mov rax, [rsp+var_8] retn
const char * testing::TestPartResultTypeToString(int a1) { if ( !a1 ) return "Success"; if ( (unsigned int)(a1 - 1) < 2 ) return "Failure\n"; if ( a1 == 3 ) return "Skipped\n"; return "Unknown result type"; }
TestPartResultTypeToString: MOV dword ptr [RSP + -0xc],EDI MOV EAX,dword ptr [RSP + -0xc] MOV dword ptr [RSP + -0x10],EAX TEST EAX,EAX JZ 0x00140ad8 JMP 0x00140ab2 LAB_00140ab2: MOV EAX,dword ptr [RSP + -0x10] DEC EAX SUB EAX,0x2 JC 0x00140ae6 JMP 0x00140abf LAB_00140abf: MOV EAX,dword ptr [RSP + -0x10] SUB EAX,0x3 JNZ 0x00140af4 JMP 0x00140aca LAB_00140aca: LEA RAX,[0x17619b] MOV qword ptr [RSP + -0x8],RAX JMP 0x00140b00 LAB_00140ad8: LEA RAX,[0x174446] MOV qword ptr [RSP + -0x8],RAX JMP 0x00140b00 LAB_00140ae6: LEA RAX,[0x1761a4] MOV qword ptr [RSP + -0x8],RAX JMP 0x00140b00 LAB_00140af4: LEA RAX,[0x1761ad] MOV qword ptr [RSP + -0x8],RAX LAB_00140b00: MOV RAX,qword ptr [RSP + -0x8] RET
/* testing::TestPartResultTypeToString(testing::TestPartResult::Type) */ char * testing::TestPartResultTypeToString(int param_1) { char *local_8; if (param_1 == 0) { local_8 = "Success"; } else if (param_1 - 1U < 2) { local_8 = "Failure\n"; } else if (param_1 == 3) { local_8 = "Skipped\n"; } else { local_8 = "Unknown result type"; } return local_8; }
34,779
maria_page_filler_set_none
eloqsql/storage/maria/ma_pagecrc.c
my_bool maria_page_filler_set_none(PAGECACHE_IO_HOOK_ARGS *args __attribute__((unused))) { #ifdef HAVE_valgrind uchar *page= args->page; MARIA_SHARE *share= (MARIA_SHARE *)args->data; int4store_aligned(page + share->block_size - CRC_SIZE, 0); #endif return 0; }
O0
c
maria_page_filler_set_none: pushq %rbp movq %rsp, %rbp movq %rdi, -0x8(%rbp) xorl %eax, %eax popq %rbp retq nopl (%rax)
maria_page_filler_set_none: push rbp mov rbp, rsp mov [rbp+var_8], rdi xor eax, eax pop rbp retn
long long maria_page_filler_set_none() { return 0LL; }
maria_page_filler_set_none: PUSH RBP MOV RBP,RSP MOV qword ptr [RBP + -0x8],RDI XOR EAX,EAX POP RBP RET
int8 maria_page_filler_set_none(void) { return 0; }
34,780
Spu::UpdateBeatIrq()
sp1187[P]veesem/src/core/spg200/spu.cc
void Spu::UpdateBeatIrq() { bool beat_enabled = beat_count_.irq_enable && beat_count_.irq_status; bool envirq_enabled = channel_env_irq_.any(); irq_.SetSpuBeatIrq(beat_enabled || envirq_enabled); }
O0
cpp
Spu::UpdateBeatIrq(): pushq %rbp movq %rsp, %rbp subq $0x40, %rsp movq %rdi, -0x18(%rbp) movq -0x18(%rbp), %rax movq %rax, -0x28(%rbp) addq $0x6402, %rax # imm = 0x6402 movq %rax, -0x10(%rbp) movq -0x10(%rbp), %rax movzwl (%rax), %ecx sarl $0xf, %ecx andl $0x1, %ecx xorl %eax, %eax cmpl $0x0, %ecx movb %al, -0x1b(%rbp) je 0x148c9 movq -0x28(%rbp), %rax addq $0x6402, %rax # imm = 0x6402 movq %rax, -0x8(%rbp) movq -0x8(%rbp), %rax movzwl (%rax), %eax sarl $0xe, %eax andl $0x1, %eax cmpl $0x0, %eax setne %al movb %al, -0x1b(%rbp) movq -0x28(%rbp), %rdi movb -0x1b(%rbp), %al andb $0x1, %al movb %al, -0x19(%rbp) addq $0x63e8, %rdi # imm = 0x63E8 callq 0x17d80 movb %al, %cl movq -0x28(%rbp), %rax andb $0x1, %cl movb %cl, -0x1a(%rbp) movq 0x6410(%rax), %rax movq %rax, -0x38(%rbp) movb $0x1, %al testb $0x1, -0x19(%rbp) movb %al, -0x29(%rbp) jne 0x14909 movb -0x1a(%rbp), %al movb %al, -0x29(%rbp) movq -0x38(%rbp), %rdi movb -0x29(%rbp), %al movzbl %al, %esi andl $0x1, %esi callq 0x20200 addq $0x40, %rsp popq %rbp retq nopw %cs:(%rax,%rax)
_ZN3Spu13UpdateBeatIrqEv: push rbp mov rbp, rsp sub rsp, 40h mov [rbp+var_18], rdi mov rax, [rbp+var_18] mov [rbp+var_28], rax add rax, 6402h mov [rbp+var_10], rax mov rax, [rbp+var_10] movzx ecx, word ptr [rax] sar ecx, 0Fh and ecx, 1 xor eax, eax cmp ecx, 0 mov [rbp+var_1B], al jz short loc_148C9 mov rax, [rbp+var_28] add rax, 6402h mov [rbp+var_8], rax mov rax, [rbp+var_8] movzx eax, word ptr [rax] sar eax, 0Eh and eax, 1 cmp eax, 0 setnz al mov [rbp+var_1B], al loc_148C9: mov rdi, [rbp+var_28] mov al, [rbp+var_1B] and al, 1 mov [rbp+var_19], al add rdi, 63E8h call _ZNKSt6bitsetILm16EE3anyEv; std::bitset<16ul>::any(void) mov cl, al mov rax, [rbp+var_28] and cl, 1 mov [rbp+var_1A], cl mov rax, [rax+6410h] mov [rbp+var_38], rax mov al, 1 test [rbp+var_19], 1 mov [rbp+var_29], al jnz short loc_14909 mov al, [rbp+var_1A] mov [rbp+var_29], al loc_14909: mov rdi, [rbp+var_38]; this mov al, [rbp+var_29] movzx esi, al and esi, 1; bool call _ZN3Irq13SetSpuBeatIrqEb; Irq::SetSpuBeatIrq(bool) add rsp, 40h pop rbp retn
long long Spu::UpdateBeatIrq(Irq **this) { char v2; // [rsp+17h] [rbp-29h] bool v3; // [rsp+25h] [rbp-1Bh] char v4; // [rsp+26h] [rbp-1Ah] v3 = 0; if ( (((int)*((unsigned __int16 *)this + 12801) >> 15) & 1) != 0 ) v3 = (((int)*((unsigned __int16 *)this + 12801) >> 14) & 1) != 0; v4 = std::bitset<16ul>::any(this + 3197) & 1; v2 = 1; if ( !v3 ) v2 = v4; return Irq::SetSpuBeatIrq(this[3202], v2 & 1); }
UpdateBeatIrq: PUSH RBP MOV RBP,RSP SUB RSP,0x40 MOV qword ptr [RBP + -0x18],RDI MOV RAX,qword ptr [RBP + -0x18] MOV qword ptr [RBP + -0x28],RAX ADD RAX,0x6402 MOV qword ptr [RBP + -0x10],RAX MOV RAX,qword ptr [RBP + -0x10] MOVZX ECX,word ptr [RAX] SAR ECX,0xf AND ECX,0x1 XOR EAX,EAX CMP ECX,0x0 MOV byte ptr [RBP + -0x1b],AL JZ 0x001148c9 MOV RAX,qword ptr [RBP + -0x28] ADD RAX,0x6402 MOV qword ptr [RBP + -0x8],RAX MOV RAX,qword ptr [RBP + -0x8] MOVZX EAX,word ptr [RAX] SAR EAX,0xe AND EAX,0x1 CMP EAX,0x0 SETNZ AL MOV byte ptr [RBP + -0x1b],AL LAB_001148c9: MOV RDI,qword ptr [RBP + -0x28] MOV AL,byte ptr [RBP + -0x1b] AND AL,0x1 MOV byte ptr [RBP + -0x19],AL ADD RDI,0x63e8 CALL 0x00117d80 MOV CL,AL MOV RAX,qword ptr [RBP + -0x28] AND CL,0x1 MOV byte ptr [RBP + -0x1a],CL MOV RAX,qword ptr [RAX + 0x6410] MOV qword ptr [RBP + -0x38],RAX MOV AL,0x1 TEST byte ptr [RBP + -0x19],0x1 MOV byte ptr [RBP + -0x29],AL JNZ 0x00114909 MOV AL,byte ptr [RBP + -0x1a] MOV byte ptr [RBP + -0x29],AL LAB_00114909: MOV RDI,qword ptr [RBP + -0x38] MOV AL,byte ptr [RBP + -0x29] MOVZX ESI,AL AND ESI,0x1 CALL 0x00120200 ADD RSP,0x40 POP RBP RET
/* Spu::UpdateBeatIrq() */ void __thiscall Spu::UpdateBeatIrq(Spu *this) { byte bVar1; bool bVar2; bool local_31; bVar2 = false; if ((int)(uint)*(ushort *)(this + 0x6402) >> 0xf != 0) { bVar2 = ((int)(uint)*(ushort *)(this + 0x6402) >> 0xe & 1U) != 0; } bVar1 = std::bitset<16ul>::any((bitset<16ul> *)(this + 0x63e8)); local_31 = true; if (!bVar2) { local_31 = (bool)(bVar1 & 1); } Irq::SetSpuBeatIrq(*(Irq **)(this + 0x6410),local_31); return; }
34,781
int OpenSubdiv::v3_6_0::Bfr::Tessellation::GetEdgeCoords<float>(int, float*) const
NVIDIA-RTX[P]OSD-Lite/opensubdiv/bfr/tessellation.cpp
int Tessellation::GetEdgeCoords(int edge, REAL coordBuffer[]) const { // Remember this method excludes coords at the end vertices int edgeRes = _outerRates[edge]; Coord2Array<REAL> coords(coordBuffer, _coordStride); switch (_param.GetType()) { case Parameterization::QUAD: return quad::GetEdgeCoords(edge, edgeRes, coords); case Parameterization::TRI: return tri::GetEdgeCoords(edge, edgeRes, coords); case Parameterization::QUAD_SUBFACES: return qsub::GetEdgeCoords(_param, edge, edgeRes, coords); default: assert(0); } return -1; }
O0
cpp
int OpenSubdiv::v3_6_0::Bfr::Tessellation::GetEdgeCoords<float>(int, float*) const: pushq %rbp movq %rsp, %rbp subq $0xc0, %rsp movq %rdi, -0x10(%rbp) movl %esi, -0x14(%rbp) movq %rdx, -0x20(%rbp) movq -0x10(%rbp), %rax movq %rax, -0xb0(%rbp) movq 0x28(%rax), %rcx movslq -0x14(%rbp), %rdx movl (%rcx,%rdx,4), %ecx movl %ecx, -0x24(%rbp) movq -0x20(%rbp), %rsi movl 0xc(%rax), %edx leaq -0x38(%rbp), %rdi callq 0x1bba50 movq -0xb0(%rbp), %rdi callq 0xd7690 movl %eax, -0xa4(%rbp) jmp 0x1c59d3 movl -0xa4(%rbp), %eax testl %eax, %eax je 0x1c5a11 jmp 0x1c59df movl -0xa4(%rbp), %eax subl $0x1, %eax je 0x1c5a68 jmp 0x1c59ec movl -0xa4(%rbp), %eax subl $0x2, %eax je 0x1c5abf jmp 0x1c5b31 movq %rax, %rcx movl %edx, %eax movq %rcx, -0x40(%rbp) movl %eax, -0x44(%rbp) jmp 0x1c5b65 movl -0x14(%rbp), %edi movl -0x24(%rbp), %esi movups -0x38(%rbp), %xmm0 movaps %xmm0, -0x60(%rbp) leaq -0x60(%rbp), %rdx callq 0x1bd020 movl %eax, -0xb4(%rbp) jmp 0x1c5a30 movl -0xb4(%rbp), %eax movl %eax, -0x4(%rbp) leaq -0x60(%rbp), %rdi callq 0x1bbc80 movl $0x1, -0x64(%rbp) jmp 0x1c5b50 movq %rax, %rcx movl %edx, %eax movq %rcx, -0x40(%rbp) movl %eax, -0x44(%rbp) leaq -0x60(%rbp), %rdi callq 0x1bbc80 jmp 0x1c5b65 movl -0x14(%rbp), %edi movl -0x24(%rbp), %esi movups -0x38(%rbp), %xmm0 movaps %xmm0, -0x80(%rbp) leaq -0x80(%rbp), %rdx callq 0x1bd260 movl %eax, -0xb8(%rbp) jmp 0x1c5a87 movl -0xb8(%rbp), %eax movl %eax, -0x4(%rbp) leaq -0x80(%rbp), %rdi callq 0x1bbc80 movl $0x1, -0x64(%rbp) jmp 0x1c5b50 movq %rax, %rcx movl %edx, %eax movq %rcx, -0x40(%rbp) movl %eax, -0x44(%rbp) leaq -0x80(%rbp), %rdi callq 0x1bbc80 jmp 0x1c5b65 movq -0xb0(%rbp), %rax movl (%rax), %eax movl %eax, -0x84(%rbp) movl -0x14(%rbp), %esi movl -0x24(%rbp), %edx movups -0x38(%rbp), %xmm0 movaps %xmm0, -0xa0(%rbp) movl -0x84(%rbp), %edi leaq -0xa0(%rbp), %rcx callq 0x1bd420 movl %eax, -0xbc(%rbp) jmp 0x1c5af9 movl -0xbc(%rbp), %eax movl %eax, -0x4(%rbp) leaq -0xa0(%rbp), %rdi callq 0x1bbc80 movl $0x1, -0x64(%rbp) jmp 0x1c5b50 movq %rax, %rcx movl %edx, %eax movq %rcx, -0x40(%rbp) movl %eax, -0x44(%rbp) leaq -0xa0(%rbp), %rdi callq 0x1bbc80 jmp 0x1c5b65 leaq 0x2450f(%rip), %rdi # 0x1ea047 leaq 0x35411(%rip), %rsi # 0x1faf50 movl $0x90f, %edx # imm = 0x90F leaq 0x355cd(%rip), %rcx # 0x1fb118 callq 0xc9440 leaq -0x38(%rbp), %rdi callq 0x1bbc80 movl -0x4(%rbp), %eax addq $0xc0, %rsp popq %rbp retq leaq -0x38(%rbp), %rdi callq 0x1bbc80 movq -0x40(%rbp), %rdi callq 0xd58b0 nopw (%rax,%rax)
_ZNK10OpenSubdiv6v3_6_03Bfr12Tessellation13GetEdgeCoordsIfEEiiPT_: push rbp mov rbp, rsp sub rsp, 0C0h mov [rbp+var_10], rdi mov [rbp+var_14], esi mov [rbp+var_20], rdx mov rax, [rbp+var_10] mov [rbp+var_B0], rax mov rcx, [rax+28h] movsxd rdx, [rbp+var_14] mov ecx, [rcx+rdx*4] mov [rbp+var_24], ecx mov rsi, [rbp+var_20] mov edx, [rax+0Ch] lea rdi, [rbp+var_38] call _ZN10OpenSubdiv6v3_6_03Bfr12_GLOBAL__N_111Coord2ArrayIfEC2EPfi; OpenSubdiv::v3_6_0::Bfr::`anonymous namespace'::Coord2Array<float>::Coord2Array(float *,int) mov rdi, [rbp+var_B0]; this call __ZNK10OpenSubdiv6v3_6_03Bfr16Parameterization7GetTypeEv; OpenSubdiv::v3_6_0::Bfr::Parameterization::GetType(void) mov [rbp+var_A4], eax jmp short $+2 loc_1C59D3: mov eax, [rbp+var_A4] test eax, eax jz short loc_1C5A11 jmp short $+2 loc_1C59DF: mov eax, [rbp+var_A4] sub eax, 1 jz short loc_1C5A68 jmp short $+2 loc_1C59EC: mov eax, [rbp+var_A4] sub eax, 2 jz loc_1C5ABF jmp loc_1C5B31 mov rcx, rax mov eax, edx mov [rbp+var_40], rcx mov [rbp+var_44], eax jmp loc_1C5B65 loc_1C5A11: mov edi, [rbp+var_14] mov esi, [rbp+var_24] movups xmm0, [rbp+var_38] movaps [rbp+var_60], xmm0 lea rdx, [rbp+var_60] call _ZN10OpenSubdiv6v3_6_03Bfr4quad13GetEdgeCoordsIfEEiiiNS1_12_GLOBAL__N_111Coord2ArrayIT_EE; OpenSubdiv::v3_6_0::Bfr::quad::GetEdgeCoords<float>(int,int,OpenSubdiv::v3_6_0::Bfr::`anonymous namespace'::Coord2Array<float>) mov [rbp+var_B4], eax jmp short $+2 loc_1C5A30: mov eax, [rbp+var_B4] mov [rbp+var_4], eax lea rdi, [rbp+var_60] call _ZN10OpenSubdiv6v3_6_03Bfr12_GLOBAL__N_111Coord2ArrayIfED2Ev; OpenSubdiv::v3_6_0::Bfr::`anonymous namespace'::Coord2Array<float>::~Coord2Array() mov [rbp+var_64], 1 jmp loc_1C5B50 mov rcx, rax mov eax, edx mov [rbp+var_40], rcx mov [rbp+var_44], eax lea rdi, [rbp+var_60] call _ZN10OpenSubdiv6v3_6_03Bfr12_GLOBAL__N_111Coord2ArrayIfED2Ev; OpenSubdiv::v3_6_0::Bfr::`anonymous namespace'::Coord2Array<float>::~Coord2Array() jmp loc_1C5B65 loc_1C5A68: mov edi, [rbp+var_14] mov esi, [rbp+var_24] movups xmm0, [rbp+var_38] movaps [rbp+var_80], xmm0 lea rdx, [rbp+var_80] call _ZN10OpenSubdiv6v3_6_03Bfr3tri13GetEdgeCoordsIfEEiiiNS1_12_GLOBAL__N_111Coord2ArrayIT_EE; OpenSubdiv::v3_6_0::Bfr::tri::GetEdgeCoords<float>(int,int,OpenSubdiv::v3_6_0::Bfr::`anonymous namespace'::Coord2Array<float>) mov [rbp+var_B8], eax jmp short $+2 loc_1C5A87: mov eax, [rbp+var_B8] mov [rbp+var_4], eax lea rdi, [rbp+var_80] call _ZN10OpenSubdiv6v3_6_03Bfr12_GLOBAL__N_111Coord2ArrayIfED2Ev; OpenSubdiv::v3_6_0::Bfr::`anonymous namespace'::Coord2Array<float>::~Coord2Array() mov [rbp+var_64], 1 jmp loc_1C5B50 mov rcx, rax mov eax, edx mov [rbp+var_40], rcx mov [rbp+var_44], eax lea rdi, [rbp+var_80] call _ZN10OpenSubdiv6v3_6_03Bfr12_GLOBAL__N_111Coord2ArrayIfED2Ev; OpenSubdiv::v3_6_0::Bfr::`anonymous namespace'::Coord2Array<float>::~Coord2Array() jmp loc_1C5B65 loc_1C5ABF: mov rax, [rbp+var_B0] mov eax, [rax] mov [rbp+var_84], eax mov esi, [rbp+var_14] mov edx, [rbp+var_24] movups xmm0, [rbp+var_38] movaps [rbp+var_A0], xmm0 mov edi, [rbp+var_84] lea rcx, [rbp+var_A0] call _ZN10OpenSubdiv6v3_6_03Bfr4qsub13GetEdgeCoordsIfEEiNS1_16ParameterizationEiiNS1_12_GLOBAL__N_111Coord2ArrayIT_EE; OpenSubdiv::v3_6_0::Bfr::qsub::GetEdgeCoords<float>(OpenSubdiv::v3_6_0::Bfr::Parameterization,int,int,OpenSubdiv::v3_6_0::Bfr::`anonymous namespace'::Coord2Array<float>) mov [rbp+var_BC], eax jmp short $+2 loc_1C5AF9: mov eax, [rbp+var_BC] mov [rbp+var_4], eax lea rdi, [rbp+var_A0] call _ZN10OpenSubdiv6v3_6_03Bfr12_GLOBAL__N_111Coord2ArrayIfED2Ev; OpenSubdiv::v3_6_0::Bfr::`anonymous namespace'::Coord2Array<float>::~Coord2Array() mov [rbp+var_64], 1 jmp short loc_1C5B50 mov rcx, rax mov eax, edx mov [rbp+var_40], rcx mov [rbp+var_44], eax lea rdi, [rbp+var_A0] call _ZN10OpenSubdiv6v3_6_03Bfr12_GLOBAL__N_111Coord2ArrayIfED2Ev; OpenSubdiv::v3_6_0::Bfr::`anonymous namespace'::Coord2Array<float>::~Coord2Array() jmp short loc_1C5B65 loc_1C5B31: lea rdi, aVspanSize0+0Fh; "0" lea rsi, aWorkspaceLlm4b_42; "/workspace/llm4binary/github/2025_star3"... mov edx, 90Fh lea rcx, aIntOpensubdivV_46; "int OpenSubdiv::v3_6_0::Bfr::Tessellati"... call ___assert_fail loc_1C5B50: lea rdi, [rbp+var_38] call _ZN10OpenSubdiv6v3_6_03Bfr12_GLOBAL__N_111Coord2ArrayIfED2Ev; OpenSubdiv::v3_6_0::Bfr::`anonymous namespace'::Coord2Array<float>::~Coord2Array() mov eax, [rbp+var_4] add rsp, 0C0h pop rbp retn loc_1C5B65: lea rdi, [rbp+var_38] call _ZN10OpenSubdiv6v3_6_03Bfr12_GLOBAL__N_111Coord2ArrayIfED2Ev; OpenSubdiv::v3_6_0::Bfr::`anonymous namespace'::Coord2Array<float>::~Coord2Array() mov rdi, [rbp+var_40] call __Unwind_Resume
long long OpenSubdiv::v3_6_0::Bfr::Tessellation::GetEdgeCoords<float>(long long a1, signed int a2, long long a3) { int Type; // [rsp+1Ch] [rbp-A4h] __int128 v5; // [rsp+20h] [rbp-A0h] BYREF unsigned int v6; // [rsp+3Ch] [rbp-84h] __int128 v7; // [rsp+40h] [rbp-80h] BYREF int v8; // [rsp+5Ch] [rbp-64h] __int128 v9; // [rsp+60h] [rbp-60h] BYREF __int128 v10; // [rsp+88h] [rbp-38h] BYREF int v11; // [rsp+9Ch] [rbp-24h] long long v12; // [rsp+A0h] [rbp-20h] unsigned int v13; // [rsp+ACh] [rbp-14h] long long v14; // [rsp+B0h] [rbp-10h] unsigned int Edge; // [rsp+BCh] [rbp-4h] v14 = a1; v13 = a2; v12 = a3; v11 = *(_DWORD *)(*(_QWORD *)(a1 + 40) + 4LL * a2); OpenSubdiv::v3_6_0::Bfr::`anonymous namespace'::Coord2Array<float>::Coord2Array( (long long)&v10, a3, *(_DWORD *)(a1 + 12)); Type = OpenSubdiv::v3_6_0::Bfr::Parameterization::GetType((OpenSubdiv::v3_6_0::Bfr::Parameterization *)a1); if ( Type ) { if ( Type == 1 ) { v7 = v10; Edge = OpenSubdiv::v3_6_0::Bfr::tri::GetEdgeCoords<float>(v13, v11, &v7); OpenSubdiv::v3_6_0::Bfr::`anonymous namespace'::Coord2Array<float>::~Coord2Array(); v8 = 1; } else { if ( Type != 2 ) __assert_fail( "0", "/workspace/llm4binary/github/2025_star3/NVIDIA-RTX[P]OSD-Lite/opensubdiv/bfr/tessellation.cpp", 2319LL, "int OpenSubdiv::v3_6_0::Bfr::Tessellation::GetEdgeCoords(int, REAL *) const [REAL = float]"); v6 = *(_DWORD *)a1; v5 = v10; Edge = OpenSubdiv::v3_6_0::Bfr::qsub::GetEdgeCoords<float>(v6, v13, v11, &v5); OpenSubdiv::v3_6_0::Bfr::`anonymous namespace'::Coord2Array<float>::~Coord2Array(); v8 = 1; } } else { v9 = v10; Edge = OpenSubdiv::v3_6_0::Bfr::quad::GetEdgeCoords<float>(v13, v11, &v9); OpenSubdiv::v3_6_0::Bfr::`anonymous namespace'::Coord2Array<float>::~Coord2Array(); v8 = 1; } OpenSubdiv::v3_6_0::Bfr::`anonymous namespace'::Coord2Array<float>::~Coord2Array(); return Edge; }
34,782
int OpenSubdiv::v3_6_0::Bfr::Tessellation::GetEdgeCoords<float>(int, float*) const
NVIDIA-RTX[P]OSD-Lite/opensubdiv/bfr/tessellation.cpp
int Tessellation::GetEdgeCoords(int edge, REAL coordBuffer[]) const { // Remember this method excludes coords at the end vertices int edgeRes = _outerRates[edge]; Coord2Array<REAL> coords(coordBuffer, _coordStride); switch (_param.GetType()) { case Parameterization::QUAD: return quad::GetEdgeCoords(edge, edgeRes, coords); case Parameterization::TRI: return tri::GetEdgeCoords(edge, edgeRes, coords); case Parameterization::QUAD_SUBFACES: return qsub::GetEdgeCoords(_param, edge, edgeRes, coords); default: assert(0); } return -1; }
O1
cpp
int OpenSubdiv::v3_6_0::Bfr::Tessellation::GetEdgeCoords<float>(int, float*) const: subq $0x18, %rsp movq 0x28(%rdi), %rax movslq %esi, %rcx movl (%rax,%rcx,4), %ecx movl 0xc(%rdi), %eax movzbl (%rdi), %r8d cmpl $0x2, %r8d je 0xa308c movslq %eax, %rdi cmpl $0x1, %r8d je 0xa302b testl %r8d, %r8d jne 0xa31ba cmpl $0x3, %esi ja 0xa30bc cvtsi2sd %ecx, %xmm2 movsd 0x11512(%rip), %xmm1 # 0xb44e8 movapd %xmm1, %xmm0 divsd %xmm2, %xmm0 subsd %xmm0, %xmm1 leal -0x1(%rcx), %eax movl %esi, %esi leaq 0x1ec7e(%rip), %r8 # 0xc1c6c movslq (%r8,%rsi,4), %rsi addq %r8, %rsi jmpq *%rsi cmpl $0x2, %ecx jl 0xa31b5 movl %eax, %ecx addq $0x8, %rdx shlq $0x3, %rdi movapd %xmm0, %xmm1 movsd %xmm1, -0x8(%rdx) movq $0x0, (%rdx) addsd %xmm0, %xmm1 addq %rdi, %rdx decq %rcx jne 0xa300e jmp 0xa31b5 cvtsi2sd %ecx, %xmm2 movsd 0x114b1(%rip), %xmm1 # 0xb44e8 movapd %xmm1, %xmm0 divsd %xmm2, %xmm0 subsd %xmm0, %xmm1 leal -0x1(%rcx), %eax cmpl $0x2, %esi je 0xa30f8 cmpl $0x1, %esi je 0xa30c3 testl %esi, %esi jne 0xa30bc cmpl $0x2, %ecx jl 0xa31b5 movl %eax, %ecx addq $0x8, %rdx shlq $0x3, %rdi movapd %xmm0, %xmm1 movsd %xmm1, -0x8(%rdx) movq $0x0, (%rdx) addsd %xmm0, %xmm1 addq %rdi, %rdx decq %rcx jne 0xa306f jmp 0xa31b5 movl (%rdi), %edi cvtsi2sd %ecx, %xmm0 movsd 0x1144e(%rip), %xmm1 # 0xb44e8 divsd %xmm0, %xmm1 leaq 0x8(%rsp), %r8 movq %rdx, (%r8) movl %eax, 0x8(%r8) xorpd %xmm0, %xmm0 movl %ecx, %edx xorl %ecx, %ecx callq 0xa17f6 jmp 0xa31b5 xorl %eax, %eax jmp 0xa31b5 cmpl $0x2, %ecx jl 0xa31b5 movl %eax, %ecx addq $0x8, %rdx shlq $0x3, %rdi movapd %xmm0, %xmm2 movsd %xmm1, -0x8(%rdx) movsd %xmm2, (%rdx) subsd %xmm0, %xmm1 addsd %xmm0, %xmm2 addq %rdi, %rdx decq %rcx jne 0xa30da jmp 0xa31b5 cmpl $0x2, %ecx jl 0xa31b5 movl %eax, %ecx addq $0x8, %rdx shlq $0x3, %rdi movq $0x0, -0x8(%rdx) movsd %xmm1, (%rdx) subsd %xmm0, %xmm1 addq %rdi, %rdx decq %rcx jne 0xa310b jmp 0xa31b5 cmpl $0x2, %ecx jl 0xa31b5 movl %eax, %ecx addq $0x8, %rdx shlq $0x3, %rdi movabsq $0x3ff0000000000000, %rsi # imm = 0x3FF0000000000000 movsd %xmm1, -0x8(%rdx) movq %rsi, (%rdx) subsd %xmm0, %xmm1 addq %rdi, %rdx decq %rcx jne 0xa3145 jmp 0xa31b5 cmpl $0x2, %ecx jl 0xa31b5 movl %eax, %ecx addq $0x8, %rdx shlq $0x3, %rdi movq $0x0, -0x8(%rdx) movsd %xmm1, (%rdx) subsd %xmm0, %xmm1 addq %rdi, %rdx decq %rcx jne 0xa316a jmp 0xa31b5 cmpl $0x2, %ecx jl 0xa31b5 movl %eax, %ecx addq $0x8, %rdx shlq $0x3, %rdi movabsq $0x3ff0000000000000, %rsi # imm = 0x3FF0000000000000 movapd %xmm0, %xmm1 movq %rsi, -0x8(%rdx) movsd %xmm1, (%rdx) addsd %xmm0, %xmm1 addq %rdi, %rdx decq %rcx jne 0xa31a1 addq $0x18, %rsp retq leaq 0xee78(%rip), %rdi # 0xb2039 leaq 0x1eac8(%rip), %rsi # 0xc1c90 leaq 0x1ece4(%rip), %rcx # 0xc1eb3 movl $0x90f, %edx # imm = 0x90F callq 0x39560 nop
_ZNK10OpenSubdiv6v3_6_03Bfr12Tessellation13GetEdgeCoordsIdEEiiPT_: sub rsp, 18h mov rax, [rdi+28h] movsxd rcx, esi mov ecx, [rax+rcx*4] mov eax, [rdi+0Ch] movzx r8d, byte ptr [rdi] cmp r8d, 2 jz loc_A308C movsxd rdi, eax cmp r8d, 1 jz short loc_A302B test r8d, r8d jnz loc_A31BA cmp esi, 3; switch 4 cases ja def_A2FF5; jumptable 00000000000A2FF5 default case cvtsi2sd xmm2, ecx movsd xmm1, cs:qword_B44E8 movapd xmm0, xmm1 divsd xmm0, xmm2 subsd xmm1, xmm0 lea eax, [rcx-1] mov esi, esi lea r8, jpt_A2FF5 movsxd rsi, ds:(jpt_A2FF5 - 0C1C6Ch)[r8+rsi*4] add rsi, r8 jmp rsi; switch jump loc_A2FF7: cmp ecx, 2; jumptable 00000000000A2FF5 case 0 jl loc_A31B5 mov ecx, eax add rdx, 8 shl rdi, 3 movapd xmm1, xmm0 loc_A300E: movsd qword ptr [rdx-8], xmm1 mov qword ptr [rdx], 0 addsd xmm1, xmm0 add rdx, rdi dec rcx jnz short loc_A300E jmp loc_A31B5 loc_A302B: cvtsi2sd xmm2, ecx movsd xmm1, cs:qword_B44E8 movapd xmm0, xmm1 divsd xmm0, xmm2 subsd xmm1, xmm0 lea eax, [rcx-1] cmp esi, 2 jz loc_A30F8 cmp esi, 1 jz short loc_A30C3 test esi, esi jnz short def_A2FF5; jumptable 00000000000A2FF5 default case cmp ecx, 2 jl loc_A31B5 mov ecx, eax add rdx, 8 shl rdi, 3 movapd xmm1, xmm0 loc_A306F: movsd qword ptr [rdx-8], xmm1 mov qword ptr [rdx], 0 addsd xmm1, xmm0 add rdx, rdi dec rcx jnz short loc_A306F jmp loc_A31B5 loc_A308C: mov edi, [rdi] cvtsi2sd xmm0, ecx movsd xmm1, cs:qword_B44E8 divsd xmm1, xmm0 lea r8, [rsp+18h+var_10] mov [r8], rdx mov [r8+8], eax xorpd xmm0, xmm0 mov edx, ecx xor ecx, ecx call _ZN10OpenSubdiv6v3_6_03Bfr4qsub17getRingEdgeCoordsIdEEiNS1_16ParameterizationEiibbT_S5_NS1_12_GLOBAL__N_111Coord2ArrayIS5_EE; OpenSubdiv::v3_6_0::Bfr::qsub::getRingEdgeCoords<double>(OpenSubdiv::v3_6_0::Bfr::Parameterization,int,int,bool,bool,double,double,OpenSubdiv::v3_6_0::Bfr::`anonymous namespace'::Coord2Array<double>) jmp loc_A31B5 def_A2FF5: xor eax, eax; jumptable 00000000000A2FF5 default case jmp loc_A31B5 loc_A30C3: cmp ecx, 2 jl loc_A31B5 mov ecx, eax add rdx, 8 shl rdi, 3 movapd xmm2, xmm0 loc_A30DA: movsd qword ptr [rdx-8], xmm1 movsd qword ptr [rdx], xmm2 subsd xmm1, xmm0 addsd xmm2, xmm0 add rdx, rdi dec rcx jnz short loc_A30DA jmp loc_A31B5 loc_A30F8: cmp ecx, 2 jl loc_A31B5 mov ecx, eax add rdx, 8 shl rdi, 3 loc_A310B: mov qword ptr [rdx-8], 0 movsd qword ptr [rdx], xmm1 subsd xmm1, xmm0 add rdx, rdi dec rcx jnz short loc_A310B jmp loc_A31B5 loc_A3128: cmp ecx, 2; jumptable 00000000000A2FF5 case 2 jl loc_A31B5 mov ecx, eax add rdx, 8 shl rdi, 3 mov rsi, 3FF0000000000000h loc_A3145: movsd qword ptr [rdx-8], xmm1 mov [rdx], rsi subsd xmm1, xmm0 add rdx, rdi dec rcx jnz short loc_A3145 jmp short loc_A31B5 loc_A315B: cmp ecx, 2; jumptable 00000000000A2FF5 case 3 jl short loc_A31B5 mov ecx, eax add rdx, 8 shl rdi, 3 loc_A316A: mov qword ptr [rdx-8], 0 movsd qword ptr [rdx], xmm1 subsd xmm1, xmm0 add rdx, rdi dec rcx jnz short loc_A316A jmp short loc_A31B5 loc_A3184: cmp ecx, 2; jumptable 00000000000A2FF5 case 1 jl short loc_A31B5 mov ecx, eax add rdx, 8 shl rdi, 3 mov rsi, 3FF0000000000000h movapd xmm1, xmm0 loc_A31A1: mov [rdx-8], rsi movsd qword ptr [rdx], xmm1 addsd xmm1, xmm0 add rdx, rdi dec rcx jnz short loc_A31A1 loc_A31B5: add rsp, 18h retn loc_A31BA: lea rdi, aVspanSize0+0Fh; "0" lea rsi, aWorkspaceLlm4b_47; "/workspace/llm4binary/github/2025_star3"... lea rcx, aIntOpensubdivV_43; "int OpenSubdiv::v3_6_0::Bfr::Tessellati"... mov edx, 90Fh call ___assert_fail
long long OpenSubdiv::v3_6_0::Bfr::Tessellation::GetEdgeCoords<double>( unsigned __int8 *a1, int a2, long long a3) { int v3; // ecx int v4; // eax int v5; // r8d long long v6; // rdi double v7; // xmm0_8 double v8; // xmm1_8 long long result; // rax long long v10; // rcx double *v11; // rdx long long v12; // rdi double v13; // xmm1_8 double v14; // xmm0_8 double v15; // xmm1_8 long long v16; // rcx double *v17; // rdx long long v18; // rdi double v19; // xmm1_8 int v20; // edi long long v21; // rcx double *v22; // rdx long long v23; // rdi double v24; // xmm2_8 long long v25; // rcx double *v26; // rdx long long v27; // rdi long long v28; // rcx double *v29; // rdx long long v30; // rdi long long v31; // rcx double *v32; // rdx long long v33; // rdi long long v34; // rcx double *v35; // rdx long long v36; // rdi double v37; // xmm1_8 long long v38; // [rsp+8h] [rbp-10h] BYREF int v39; // [rsp+10h] [rbp-8h] v3 = *(_DWORD *)(*((_QWORD *)a1 + 5) + 4LL * a2); v4 = *((_DWORD *)a1 + 3); v5 = *a1; if ( v5 == 2 ) { v20 = *(_DWORD *)a1; v38 = a3; v39 = v4; return OpenSubdiv::v3_6_0::Bfr::qsub::getRingEdgeCoords<double>( v20, a2, v3, 0, (long long)&v38, 0.0, 1.0 / (double)v3); } else { v6 = v4; if ( v5 == 1 ) { v14 = 1.0 / (double)v3; v15 = 1.0 - v14; result = (unsigned int)(v3 - 1); if ( a2 == 2 ) { if ( v3 >= 2 ) { v25 = (unsigned int)result; v26 = (double *)(a3 + 8); v27 = 8 * v6; do { *(v26 - 1) = 0.0; *v26 = v15; v15 = v15 - v14; v26 = (double *)((char *)v26 + v27); --v25; } while ( v25 ); } } else if ( a2 == 1 ) { if ( v3 >= 2 ) { v21 = (unsigned int)result; v22 = (double *)(a3 + 8); v23 = 8 * v6; v24 = v14; do { *(v22 - 1) = v15; *v22 = v24; v15 = v15 - v14; v24 = v24 + v14; v22 = (double *)((char *)v22 + v23); --v21; } while ( v21 ); } } else if ( a2 ) { return 0LL; } else if ( v3 >= 2 ) { v16 = (unsigned int)result; v17 = (double *)(a3 + 8); v18 = 8 * v6; v19 = v14; do { *(v17 - 1) = v19; *v17 = 0.0; v19 = v19 + v14; v17 = (double *)((char *)v17 + v18); --v16; } while ( v16 ); } } else { if ( v5 ) __assert_fail( "0", "/workspace/llm4binary/github/2025_star3/NVIDIA-RTX[P]OSD-Lite/opensubdiv/bfr/tessellation.cpp", 2319LL, "int OpenSubdiv::v3_6_0::Bfr::Tessellation::GetEdgeCoords(int, REAL *) const [REAL = double]"); v7 = 1.0 / (double)v3; v8 = 1.0 - v7; result = (unsigned int)(v3 - 1); switch ( a2 ) { case 0: if ( v3 >= 2 ) { v10 = (unsigned int)result; v11 = (double *)(a3 + 8); v12 = 8 * v6; v13 = v7; do { *(v11 - 1) = v13; *v11 = 0.0; v13 = v13 + v7; v11 = (double *)((char *)v11 + v12); --v10; } while ( v10 ); } break; case 1: if ( v3 >= 2 ) { v34 = (unsigned int)result; v35 = (double *)(a3 + 8); v36 = 8 * v6; v37 = v7; do { *(v35 - 1) = 1.0; *v35 = v37; v37 = v37 + v7; v35 = (double *)((char *)v35 + v36); --v34; } while ( v34 ); } break; case 2: if ( v3 >= 2 ) { v28 = (unsigned int)result; v29 = (double *)(a3 + 8); v30 = 8 * v6; do { *(v29 - 1) = v8; *v29 = 1.0; v8 = v8 - v7; v29 = (double *)((char *)v29 + v30); --v28; } while ( v28 ); } break; case 3: if ( v3 >= 2 ) { v31 = (unsigned int)result; v32 = (double *)(a3 + 8); v33 = 8 * v6; do { *(v32 - 1) = 0.0; *v32 = v8; v8 = v8 - v7; v32 = (double *)((char *)v32 + v33); --v31; } while ( v31 ); } break; default: return 0LL; } } } return result; }
GetEdgeCoords<double>: SUB RSP,0x18 MOV RAX,qword ptr [RDI + 0x28] MOVSXD RCX,ESI MOV ECX,dword ptr [RAX + RCX*0x4] MOV EAX,dword ptr [RDI + 0xc] MOVZX R8D,byte ptr [RDI] CMP R8D,0x2 JZ 0x001a308c MOVSXD RDI,EAX CMP R8D,0x1 JZ 0x001a302b TEST R8D,R8D JNZ 0x001a31ba CMP ESI,0x3 JA 0x001a30bc CVTSI2SD XMM2,ECX MOVSD XMM1,qword ptr [0x001b44e8] MOVAPD XMM0,XMM1 DIVSD XMM0,XMM2 SUBSD XMM1,XMM0 LEA EAX,[RCX + -0x1] MOV ESI,ESI LEA R8,[0x1c1c6c] MOVSXD RSI,dword ptr [R8 + RSI*0x4] ADD RSI,R8 switchD: JMP RSI caseD_0: CMP ECX,0x2 JL 0x001a31b5 MOV ECX,EAX ADD RDX,0x8 SHL RDI,0x3 MOVAPD XMM1,XMM0 LAB_001a300e: MOVSD qword ptr [RDX + -0x8],XMM1 MOV qword ptr [RDX],0x0 ADDSD XMM1,XMM0 ADD RDX,RDI DEC RCX JNZ 0x001a300e JMP 0x001a31b5 LAB_001a302b: CVTSI2SD XMM2,ECX MOVSD XMM1,qword ptr [0x001b44e8] MOVAPD XMM0,XMM1 DIVSD XMM0,XMM2 SUBSD XMM1,XMM0 LEA EAX,[RCX + -0x1] CMP ESI,0x2 JZ 0x001a30f8 CMP ESI,0x1 JZ 0x001a30c3 TEST ESI,ESI JNZ 0x001a30bc CMP ECX,0x2 JL 0x001a31b5 MOV ECX,EAX ADD RDX,0x8 SHL RDI,0x3 MOVAPD XMM1,XMM0 LAB_001a306f: MOVSD qword ptr [RDX + -0x8],XMM1 MOV qword ptr [RDX],0x0 ADDSD XMM1,XMM0 ADD RDX,RDI DEC RCX JNZ 0x001a306f JMP 0x001a31b5 LAB_001a308c: MOV EDI,dword ptr [RDI] CVTSI2SD XMM0,ECX MOVSD XMM1,qword ptr [0x001b44e8] DIVSD XMM1,XMM0 LEA R8,[RSP + 0x8] MOV qword ptr [R8],RDX MOV dword ptr [R8 + 0x8],EAX XORPD XMM0,XMM0 MOV EDX,ECX XOR ECX,ECX CALL 0x001a17f6 JMP 0x001a31b5 LAB_001a30bc: XOR EAX,EAX JMP 0x001a31b5 LAB_001a30c3: CMP ECX,0x2 JL 0x001a31b5 MOV ECX,EAX ADD RDX,0x8 SHL RDI,0x3 MOVAPD XMM2,XMM0 LAB_001a30da: MOVSD qword ptr [RDX + -0x8],XMM1 MOVSD qword ptr [RDX],XMM2 SUBSD XMM1,XMM0 ADDSD XMM2,XMM0 ADD RDX,RDI DEC RCX JNZ 0x001a30da JMP 0x001a31b5 LAB_001a30f8: CMP ECX,0x2 JL 0x001a31b5 MOV ECX,EAX ADD RDX,0x8 SHL RDI,0x3 LAB_001a310b: MOV qword ptr [RDX + -0x8],0x0 MOVSD qword ptr [RDX],XMM1 SUBSD XMM1,XMM0 ADD RDX,RDI DEC RCX JNZ 0x001a310b JMP 0x001a31b5 caseD_2: CMP ECX,0x2 JL 0x001a31b5 MOV ECX,EAX ADD RDX,0x8 SHL RDI,0x3 MOV RSI,0x3ff0000000000000 LAB_001a3145: MOVSD qword ptr [RDX + -0x8],XMM1 MOV qword ptr [RDX],RSI SUBSD XMM1,XMM0 ADD RDX,RDI DEC RCX JNZ 0x001a3145 JMP 0x001a31b5 caseD_3: CMP ECX,0x2 JL 0x001a31b5 MOV ECX,EAX ADD RDX,0x8 SHL RDI,0x3 LAB_001a316a: MOV qword ptr [RDX + -0x8],0x0 MOVSD qword ptr [RDX],XMM1 SUBSD XMM1,XMM0 ADD RDX,RDI DEC RCX JNZ 0x001a316a JMP 0x001a31b5 caseD_1: CMP ECX,0x2 JL 0x001a31b5 MOV ECX,EAX ADD RDX,0x8 SHL RDI,0x3 MOV RSI,0x3ff0000000000000 MOVAPD XMM1,XMM0 LAB_001a31a1: MOV qword ptr [RDX + -0x8],RSI MOVSD qword ptr [RDX],XMM1 ADDSD XMM1,XMM0 ADD RDX,RDI DEC RCX JNZ 0x001a31a1 LAB_001a31b5: ADD RSP,0x18 RET LAB_001a31ba: LEA RDI,[0x1b2039] LEA RSI,[0x1c1c90] LEA RCX,[0x1c1eb3] MOV EDX,0x90f CALL 0x00139560
/* int OpenSubdiv::v3_6_0::Bfr::Tessellation::GetEdgeCoords<double>(int, double*) const */ int __thiscall OpenSubdiv::v3_6_0::Bfr::Tessellation::GetEdgeCoords<double> (Tessellation *this,int param_1,double *param_2) { uint uVar1; Tessellation TVar2; int iVar3; int iVar4; ulong uVar5; double *pdVar6; int4 in_register_00000034; double dVar7; double dVar8; double dVar9; iVar4 = *(int *)(*(long *)(this + 0x28) + (long)param_1 * 4); iVar3 = *(int *)(this + 0xc); TVar2 = *this; if (TVar2 == (Tessellation)0x2) { iVar4 = qsub::getRingEdgeCoords<double> (0,DAT_001b44e8 / (double)iVar4,*(int4 *)this, CONCAT44(in_register_00000034,param_1),iVar4,0); return iVar4; } if (TVar2 == (Tessellation)0x1) { dVar7 = DAT_001b44e8 / (double)iVar4; dVar8 = DAT_001b44e8 - dVar7; uVar1 = iVar4 - 1; if (param_1 == 2) { if (iVar4 < 2) { return uVar1; } uVar5 = (ulong)uVar1; pdVar6 = param_2 + 1; do { pdVar6[-1] = 0.0; *pdVar6 = dVar8; dVar8 = dVar8 - dVar7; pdVar6 = pdVar6 + iVar3; uVar5 = uVar5 - 1; } while (uVar5 != 0); return uVar1; } if (param_1 == 1) { if (iVar4 < 2) { return uVar1; } uVar5 = (ulong)uVar1; pdVar6 = param_2 + 1; dVar9 = dVar7; do { pdVar6[-1] = dVar8; *pdVar6 = dVar9; dVar8 = dVar8 - dVar7; dVar9 = dVar9 + dVar7; pdVar6 = pdVar6 + iVar3; uVar5 = uVar5 - 1; } while (uVar5 != 0); return uVar1; } if (param_1 == 0) { if (iVar4 < 2) { return uVar1; } uVar5 = (ulong)uVar1; pdVar6 = param_2 + 1; dVar8 = dVar7; do { pdVar6[-1] = dVar8; *pdVar6 = 0.0; dVar8 = dVar8 + dVar7; pdVar6 = pdVar6 + iVar3; uVar5 = uVar5 - 1; } while (uVar5 != 0); return uVar1; } } else { if (TVar2 != (Tessellation)0x0) { /* WARNING: Subroutine does not return */ __assert_fail("0", "/workspace/llm4binary/github/2025_star3/NVIDIA-RTX[P]OSD-Lite/opensubdiv/bfr/tessellation.cpp" ,0x90f, "int OpenSubdiv::v3_6_0::Bfr::Tessellation::GetEdgeCoords(int, REAL *) const [REAL = double]" ); } if ((uint)param_1 < 4) { dVar7 = DAT_001b44e8 / (double)iVar4; dVar8 = DAT_001b44e8 - dVar7; uVar1 = iVar4 - 1; switch(param_1) { case 1: if (iVar4 < 2) { return uVar1; } uVar5 = (ulong)uVar1; pdVar6 = param_2 + 1; dVar8 = dVar7; do { pdVar6[-1] = 1.0; *pdVar6 = dVar8; dVar8 = dVar8 + dVar7; pdVar6 = pdVar6 + iVar3; uVar5 = uVar5 - 1; } while (uVar5 != 0); return uVar1; case 2: if (iVar4 < 2) { return uVar1; } uVar5 = (ulong)uVar1; pdVar6 = param_2 + 1; do { pdVar6[-1] = dVar8; *pdVar6 = 1.0; dVar8 = dVar8 - dVar7; pdVar6 = pdVar6 + iVar3; uVar5 = uVar5 - 1; } while (uVar5 != 0); return uVar1; case 3: if (iVar4 < 2) { return uVar1; } uVar5 = (ulong)uVar1; pdVar6 = param_2 + 1; do { pdVar6[-1] = 0.0; *pdVar6 = dVar8; dVar8 = dVar8 - dVar7; pdVar6 = pdVar6 + iVar3; uVar5 = uVar5 - 1; } while (uVar5 != 0); return uVar1; } if (iVar4 < 2) { return uVar1; } uVar5 = (ulong)uVar1; pdVar6 = param_2 + 1; dVar8 = dVar7; do { pdVar6[-1] = dVar8; *pdVar6 = 0.0; dVar8 = dVar8 + dVar7; pdVar6 = pdVar6 + iVar3; uVar5 = uVar5 - 1; } while (uVar5 != 0); return uVar1; } } return 0; }
34,783
int OpenSubdiv::v3_6_0::Bfr::Tessellation::GetEdgeCoords<float>(int, float*) const
NVIDIA-RTX[P]OSD-Lite/opensubdiv/bfr/tessellation.cpp
int Tessellation::GetEdgeCoords(int edge, REAL coordBuffer[]) const { // Remember this method excludes coords at the end vertices int edgeRes = _outerRates[edge]; Coord2Array<REAL> coords(coordBuffer, _coordStride); switch (_param.GetType()) { case Parameterization::QUAD: return quad::GetEdgeCoords(edge, edgeRes, coords); case Parameterization::TRI: return tri::GetEdgeCoords(edge, edgeRes, coords); case Parameterization::QUAD_SUBFACES: return qsub::GetEdgeCoords(_param, edge, edgeRes, coords); default: assert(0); } return -1; }
O2
cpp
int OpenSubdiv::v3_6_0::Bfr::Tessellation::GetEdgeCoords<float>(int, float*) const: pushq %rbx subq $0x10, %rsp movq 0x28(%rdi), %rax movslq %esi, %rcx movl (%rax,%rcx,4), %ebx movl 0xc(%rdi), %eax movzbl (%rdi), %ecx cmpl $0x2, %ecx je 0xae99a cmpl $0x1, %ecx je 0xae94a testl %ecx, %ecx jne 0xaea81 cmpl $0x3, %esi ja 0xaea77 cvtsi2sd %ebx, %xmm0 movsd 0xfbf6(%rip), %xmm3 # 0xbe508 movapd %xmm3, %xmm2 divsd %xmm0, %xmm2 subsd %xmm2, %xmm3 decl %ebx movl %esi, %ecx leaq 0x1def7(%rip), %rsi # 0xcc820 movslq (%rsi,%rcx,4), %rcx addq %rsi, %rcx jmpq *%rcx movq %rsp, %rdi movq %rdx, (%rdi) movl %eax, 0x8(%rdi) xorpd %xmm1, %xmm1 movl %ebx, %esi movapd %xmm2, %xmm0 jmp 0xaea35 cvtsi2sd %ebx, %xmm0 movsd 0xfbb2(%rip), %xmm1 # 0xbe508 movapd %xmm1, %xmm3 divsd %xmm0, %xmm3 subsd %xmm3, %xmm1 decl %ebx cmpl $0x2, %esi je 0xae9f0 cmpl $0x1, %esi je 0xae9ca xorl %ecx, %ecx testl %esi, %esi jne 0xaea12 movq %rsp, %rdi movq %rdx, (%rdi) movl %eax, 0x8(%rdi) xorpd %xmm1, %xmm1 movl %ebx, %esi movapd %xmm3, %xmm0 movapd %xmm3, %xmm2 callq 0xad18c jmp 0xaea10 movl (%rdi), %edi cvtsi2sd %ebx, %xmm0 movsd 0xfb60(%rip), %xmm1 # 0xbe508 divsd %xmm0, %xmm1 movq %rsp, %r8 movq %rdx, (%r8) movl %eax, 0x8(%r8) xorpd %xmm0, %xmm0 movl %ebx, %edx xorl %ecx, %ecx callq 0xad230 movl %eax, %ebx jmp 0xaea79 movq %rsp, %rdi movq %rdx, (%rdi) movl %eax, 0x8(%rdi) movapd 0xfc35(%rip), %xmm2 # 0xbe610 xorpd %xmm3, %xmm2 movl %ebx, %esi movapd %xmm1, %xmm0 movapd %xmm3, %xmm1 callq 0xad1f8 jmp 0xaea10 movq %rsp, %rdi movq %rdx, (%rdi) movl %eax, 0x8(%rdi) xorpd 0xfc0f(%rip), %xmm3 # 0xbe610 xorpd %xmm0, %xmm0 movl %ebx, %esi movapd %xmm3, %xmm2 callq 0xad1c2 movl %ebx, %ecx movl %ecx, %ebx jmp 0xaea79 movq %rsp, %rdi movq %rdx, (%rdi) movl %eax, 0x8(%rdi) xorpd 0xfbe9(%rip), %xmm2 # 0xbe610 movsd 0xfad9(%rip), %xmm1 # 0xbe508 movl %ebx, %esi movapd %xmm3, %xmm0 callq 0xad18c jmp 0xaea79 movq %rsp, %rdi movq %rdx, (%rdi) movl %eax, 0x8(%rdi) xorpd 0xfbc3(%rip), %xmm2 # 0xbe610 xorpd %xmm0, %xmm0 movl %ebx, %esi movapd %xmm3, %xmm1 jmp 0xaea70 movq %rsp, %rdi movq %rdx, (%rdi) movl %eax, 0x8(%rdi) movsd 0xfa9e(%rip), %xmm0 # 0xbe508 movl %ebx, %esi movapd %xmm2, %xmm1 callq 0xad1c2 jmp 0xaea79 xorl %ebx, %ebx movl %ebx, %eax addq $0x10, %rsp popq %rbx retq leaq 0xd5b1(%rip), %rdi # 0xbc039 leaq 0x1dda1(%rip), %rsi # 0xcc830 leaq 0x1dfbd(%rip), %rcx # 0xcca53 movl $0x90f, %edx # imm = 0x90F callq 0x512a0
_ZNK10OpenSubdiv6v3_6_03Bfr12Tessellation13GetEdgeCoordsIdEEiiPT_: push rbx sub rsp, 10h mov rax, [rdi+28h] movsxd rcx, esi mov ebx, [rax+rcx*4] mov eax, [rdi+0Ch] movzx ecx, byte ptr [rdi] cmp ecx, 2 jz loc_AE99A cmp ecx, 1 jz short loc_AE94A test ecx, ecx jnz loc_AEA81 cmp esi, 3; switch 4 cases ja def_AE930; jumptable 00000000000AE930 default case cvtsi2sd xmm0, ebx movsd xmm3, cs:qword_BE508 movapd xmm2, xmm3 divsd xmm2, xmm0 subsd xmm3, xmm2 dec ebx mov ecx, esi lea rsi, jpt_AE930 movsxd rcx, ds:(jpt_AE930 - 0CC820h)[rsi+rcx*4] add rcx, rsi jmp rcx; switch jump loc_AE932: mov rdi, rsp; jumptable 00000000000AE930 case 0 mov [rdi], rdx mov [rdi+8], eax xorpd xmm1, xmm1 mov esi, ebx movapd xmm0, xmm2 jmp loc_AEA35 loc_AE94A: cvtsi2sd xmm0, ebx movsd xmm1, cs:qword_BE508 movapd xmm3, xmm1 divsd xmm3, xmm0 subsd xmm1, xmm3 dec ebx cmp esi, 2 jz loc_AE9F0 cmp esi, 1 jz short loc_AE9CA xor ecx, ecx test esi, esi jnz loc_AEA12 mov rdi, rsp mov [rdi], rdx mov [rdi+8], eax xorpd xmm1, xmm1 mov esi, ebx movapd xmm0, xmm3 movapd xmm2, xmm3 call _ZN10OpenSubdiv6v3_6_03Bfr12_GLOBAL__N_114appendVIsoLineIdEEiNS2_11Coord2ArrayIT_EEiS5_S5_S5_; OpenSubdiv::v3_6_0::Bfr::`anonymous namespace'::appendVIsoLine<double>(OpenSubdiv::v3_6_0::Bfr::`anonymous namespace'::Coord2Array<double>,int,double,double,double) jmp short loc_AEA10 loc_AE99A: mov edi, [rdi] cvtsi2sd xmm0, ebx movsd xmm1, cs:qword_BE508 divsd xmm1, xmm0 mov r8, rsp mov [r8], rdx mov [r8+8], eax xorpd xmm0, xmm0 mov edx, ebx xor ecx, ecx call _ZN10OpenSubdiv6v3_6_03Bfr4qsub17getRingEdgeCoordsIdEEiNS1_16ParameterizationEiibbT_S5_NS1_12_GLOBAL__N_111Coord2ArrayIS5_EE; OpenSubdiv::v3_6_0::Bfr::qsub::getRingEdgeCoords<double>(OpenSubdiv::v3_6_0::Bfr::Parameterization,int,int,bool,bool,double,double,OpenSubdiv::v3_6_0::Bfr::`anonymous namespace'::Coord2Array<double>) mov ebx, eax jmp loc_AEA79 loc_AE9CA: mov rdi, rsp mov [rdi], rdx mov [rdi+8], eax movapd xmm2, cs:xmmword_BE610 xorpd xmm2, xmm3 mov esi, ebx movapd xmm0, xmm1 movapd xmm1, xmm3 call _ZN10OpenSubdiv6v3_6_03Bfr12_GLOBAL__N_112appendUVLineIdEEiNS2_11Coord2ArrayIT_EEiS5_S5_S5_S5_; OpenSubdiv::v3_6_0::Bfr::`anonymous namespace'::appendUVLine<double>(OpenSubdiv::v3_6_0::Bfr::`anonymous namespace'::Coord2Array<double>,int,double,double,double,double) jmp short loc_AEA10 loc_AE9F0: mov rdi, rsp mov [rdi], rdx mov [rdi+8], eax xorpd xmm3, cs:xmmword_BE610 xorpd xmm0, xmm0 mov esi, ebx movapd xmm2, xmm3 call _ZN10OpenSubdiv6v3_6_03Bfr12_GLOBAL__N_114appendUIsoLineIdEEiNS2_11Coord2ArrayIT_EEiS5_S5_S5_; OpenSubdiv::v3_6_0::Bfr::`anonymous namespace'::appendUIsoLine<double>(OpenSubdiv::v3_6_0::Bfr::`anonymous namespace'::Coord2Array<double>,int,double,double,double) loc_AEA10: mov ecx, ebx loc_AEA12: mov ebx, ecx jmp short loc_AEA79 loc_AEA16: mov rdi, rsp; jumptable 00000000000AE930 case 2 mov [rdi], rdx mov [rdi+8], eax xorpd xmm2, cs:xmmword_BE610 movsd xmm1, cs:qword_BE508 mov esi, ebx movapd xmm0, xmm3 loc_AEA35: call _ZN10OpenSubdiv6v3_6_03Bfr12_GLOBAL__N_114appendVIsoLineIdEEiNS2_11Coord2ArrayIT_EEiS5_S5_S5_; OpenSubdiv::v3_6_0::Bfr::`anonymous namespace'::appendVIsoLine<double>(OpenSubdiv::v3_6_0::Bfr::`anonymous namespace'::Coord2Array<double>,int,double,double,double) jmp short loc_AEA79 loc_AEA3C: mov rdi, rsp; jumptable 00000000000AE930 case 3 mov [rdi], rdx mov [rdi+8], eax xorpd xmm2, cs:xmmword_BE610 xorpd xmm0, xmm0 mov esi, ebx movapd xmm1, xmm3 jmp short loc_AEA70 loc_AEA59: mov rdi, rsp; jumptable 00000000000AE930 case 1 mov [rdi], rdx mov [rdi+8], eax movsd xmm0, cs:qword_BE508 mov esi, ebx movapd xmm1, xmm2 loc_AEA70: call _ZN10OpenSubdiv6v3_6_03Bfr12_GLOBAL__N_114appendUIsoLineIdEEiNS2_11Coord2ArrayIT_EEiS5_S5_S5_; OpenSubdiv::v3_6_0::Bfr::`anonymous namespace'::appendUIsoLine<double>(OpenSubdiv::v3_6_0::Bfr::`anonymous namespace'::Coord2Array<double>,int,double,double,double) jmp short loc_AEA79 def_AE930: xor ebx, ebx; jumptable 00000000000AE930 default case loc_AEA79: mov eax, ebx add rsp, 10h pop rbx retn loc_AEA81: lea rdi, aVspanSize0+0Fh; "0" lea rsi, aWorkspaceLlm4b_43; "/workspace/llm4binary/github/2025_star3"... lea rcx, aIntOpensubdivV_47; "int OpenSubdiv::v3_6_0::Bfr::Tessellati"... mov edx, 90Fh call ___assert_fail
long long OpenSubdiv::v3_6_0::Bfr::Tessellation::GetEdgeCoords<double>( unsigned __int8 *a1, int a2, long long a3) { signed int v3; // ebx int v4; // eax int v5; // ecx double v6; // xmm2_8 double v7; // xmm3_8 unsigned int v8; // ebx double v9; // xmm1_8 int v10; // esi double v11; // xmm0_8 __m128d v12; // xmm3 __m128d v13; // xmm1 unsigned int v14; // ebx unsigned int v15; // ecx int v16; // edi __m128 v17; // xmm1 double v18; // xmm0_8 int v19; // esi double v20; // xmm1_8 long long v22; // [rsp+0h] [rbp-18h] BYREF int v23; // [rsp+8h] [rbp-10h] v3 = *(_DWORD *)(*((_QWORD *)a1 + 5) + 4LL * a2); v4 = *((_DWORD *)a1 + 3); v5 = *a1; if ( v5 == 2 ) { v16 = *(_DWORD *)a1; v17 = (__m128)0x3FF0000000000000uLL; *(double *)v17.m128_u64 = 1.0 / (double)v3; v22 = a3; v23 = v4; return (unsigned int)OpenSubdiv::v3_6_0::Bfr::qsub::getRingEdgeCoords<double>( v16, a2, v3, 0, (long long)&v22, (__m128d)0LL, v17); } if ( v5 == 1 ) { v13 = (__m128d)0x3FF0000000000000uLL; v12 = (__m128d)0x3FF0000000000000uLL; v12.m128d_f64[0] = 1.0 / (double)v3; v13.m128d_f64[0] = 1.0 - v12.m128d_f64[0]; v14 = v3 - 1; if ( a2 == 2 ) { v22 = a3; v23 = v4; OpenSubdiv::v3_6_0::Bfr::`anonymous namespace'::appendUIsoLine<double>( &v22, v14, 0.0, v13.m128d_f64[0], -v12.m128d_f64[0]); } else if ( a2 == 1 ) { v22 = a3; v23 = v4; OpenSubdiv::v3_6_0::Bfr::`anonymous namespace'::appendUVLine<double>( (long long)&v22, v14, v13, v12, _mm_xor_pd((__m128d)xmmword_BE610, v12), v12); } else { v15 = 0; if ( a2 ) return v15; v22 = a3; v23 = v4; OpenSubdiv::v3_6_0::Bfr::`anonymous namespace'::appendVIsoLine<double>( &v22, v14, v12.m128d_f64[0], 0.0, v12.m128d_f64[0]); } return v14; } if ( *a1 ) __assert_fail( "0", "/workspace/llm4binary/github/2025_star3/NVIDIA-RTX[P]OSD-Lite/opensubdiv/bfr/tessellation.cpp", 2319LL, "int OpenSubdiv::v3_6_0::Bfr::Tessellation::GetEdgeCoords(int, REAL *) const [REAL = double]"); v6 = 1.0 / (double)v3; v7 = 1.0 - v6; v8 = v3 - 1; switch ( a2 ) { case 0: v22 = a3; v23 = v4; v9 = 0.0; v10 = v8; v11 = v6; goto LABEL_16; case 1: v22 = a3; v23 = v4; v18 = 1.0; v19 = v8; v20 = v6; goto LABEL_19; case 2: v22 = a3; v23 = v4; v6 = -v6; v9 = 1.0; v10 = v8; v11 = v7; LABEL_16: OpenSubdiv::v3_6_0::Bfr::`anonymous namespace'::appendVIsoLine<double>(&v22, v10, v11, v9, v6); return v8; case 3: v22 = a3; v23 = v4; v6 = -v6; v18 = 0.0; v19 = v8; v20 = v7; LABEL_19: OpenSubdiv::v3_6_0::Bfr::`anonymous namespace'::appendUIsoLine<double>(&v22, v19, v18, v20, v6); break; default: v8 = 0; break; } return v8; }
GetEdgeCoords<double>: PUSH RBX SUB RSP,0x10 MOV RAX,qword ptr [RDI + 0x28] MOVSXD RCX,ESI MOV EBX,dword ptr [RAX + RCX*0x4] MOV EAX,dword ptr [RDI + 0xc] MOVZX ECX,byte ptr [RDI] CMP ECX,0x2 JZ 0x001ae99a CMP ECX,0x1 JZ 0x001ae94a TEST ECX,ECX JNZ 0x001aea81 CMP ESI,0x3 JA 0x001aea77 CVTSI2SD XMM0,EBX MOVSD XMM3,qword ptr [0x001be508] MOVAPD XMM2,XMM3 DIVSD XMM2,XMM0 SUBSD XMM3,XMM2 DEC EBX MOV ECX,ESI LEA RSI,[0x1cc820] MOVSXD RCX,dword ptr [RSI + RCX*0x4] ADD RCX,RSI switchD: JMP RCX caseD_0: MOV RDI,RSP MOV qword ptr [RDI],RDX MOV dword ptr [RDI + 0x8],EAX XORPD XMM1,XMM1 MOV ESI,EBX MOVAPD XMM0,XMM2 JMP 0x001aea35 LAB_001ae94a: CVTSI2SD XMM0,EBX MOVSD XMM1,qword ptr [0x001be508] MOVAPD XMM3,XMM1 DIVSD XMM3,XMM0 SUBSD XMM1,XMM3 DEC EBX CMP ESI,0x2 JZ 0x001ae9f0 CMP ESI,0x1 JZ 0x001ae9ca XOR ECX,ECX TEST ESI,ESI JNZ 0x001aea12 MOV RDI,RSP MOV qword ptr [RDI],RDX MOV dword ptr [RDI + 0x8],EAX XORPD XMM1,XMM1 MOV ESI,EBX MOVAPD XMM0,XMM3 MOVAPD XMM2,XMM3 CALL 0x001ad18c JMP 0x001aea10 LAB_001ae99a: MOV EDI,dword ptr [RDI] CVTSI2SD XMM0,EBX MOVSD XMM1,qword ptr [0x001be508] DIVSD XMM1,XMM0 MOV R8,RSP MOV qword ptr [R8],RDX MOV dword ptr [R8 + 0x8],EAX XORPD XMM0,XMM0 MOV EDX,EBX XOR ECX,ECX CALL 0x001ad230 MOV EBX,EAX JMP 0x001aea79 LAB_001ae9ca: MOV RDI,RSP MOV qword ptr [RDI],RDX MOV dword ptr [RDI + 0x8],EAX MOVAPD XMM2,xmmword ptr [0x001be610] XORPD XMM2,XMM3 MOV ESI,EBX MOVAPD XMM0,XMM1 MOVAPD XMM1,XMM3 CALL 0x001ad1f8 JMP 0x001aea10 LAB_001ae9f0: MOV RDI,RSP MOV qword ptr [RDI],RDX MOV dword ptr [RDI + 0x8],EAX XORPD XMM3,xmmword ptr [0x001be610] XORPD XMM0,XMM0 MOV ESI,EBX MOVAPD XMM2,XMM3 CALL 0x001ad1c2 LAB_001aea10: MOV ECX,EBX LAB_001aea12: MOV EBX,ECX JMP 0x001aea79 caseD_2: MOV RDI,RSP MOV qword ptr [RDI],RDX MOV dword ptr [RDI + 0x8],EAX XORPD XMM2,xmmword ptr [0x001be610] MOVSD XMM1,qword ptr [0x001be508] MOV ESI,EBX MOVAPD XMM0,XMM3 LAB_001aea35: CALL 0x001ad18c JMP 0x001aea79 caseD_3: MOV RDI,RSP MOV qword ptr [RDI],RDX MOV dword ptr [RDI + 0x8],EAX XORPD XMM2,xmmword ptr [0x001be610] XORPD XMM0,XMM0 MOV ESI,EBX MOVAPD XMM1,XMM3 JMP 0x001aea70 caseD_1: MOV RDI,RSP MOV qword ptr [RDI],RDX MOV dword ptr [RDI + 0x8],EAX MOVSD XMM0,qword ptr [0x001be508] MOV ESI,EBX MOVAPD XMM1,XMM2 LAB_001aea70: CALL 0x001ad1c2 JMP 0x001aea79 LAB_001aea77: XOR EBX,EBX LAB_001aea79: MOV EAX,EBX ADD RSP,0x10 POP RBX RET LAB_001aea81: LEA RDI,[0x1bc039] LEA RSI,[0x1cc830] LEA RCX,[0x1cca53] MOV EDX,0x90f CALL 0x001512a0
/* WARNING: Globals starting with '_' overlap smaller symbols at the same address */ /* int OpenSubdiv::v3_6_0::Bfr::Tessellation::GetEdgeCoords<double>(int, double*) const */ int __thiscall OpenSubdiv::v3_6_0::Bfr::Tessellation::GetEdgeCoords<double> (Tessellation *this,int param_1,double *param_2) { Tessellation TVar1; int iVar2; int4 in_register_00000034; double dVar3; double dVar4; double dVar5; double *local_18; int4 local_10; iVar2 = *(int *)(*(long *)(this + 0x28) + (long)param_1 * 4); local_10 = *(int4 *)(this + 0xc); TVar1 = *this; local_18 = param_2; if (TVar1 == (Tessellation)0x2) { iVar2 = qsub::getRingEdgeCoords<double> (0,DAT_001be508 / (double)iVar2,*(int4 *)this, CONCAT44(in_register_00000034,param_1),iVar2,0); return iVar2; } if (TVar1 == (Tessellation)0x1) { dVar4 = DAT_001be508 / (double)iVar2; iVar2 = iVar2 + -1; if (param_1 == 2) { (anonymous_namespace)::appendUIsoLine<double> (0,DAT_001be508 - dVar4,(ulong)dVar4 ^ _DAT_001be610,&local_18,iVar2); return iVar2; } if (param_1 != 1) { if (param_1 != 0) { return 0; } (anonymous_namespace)::appendVIsoLine<double>(dVar4,0,dVar4,&local_18,iVar2); return iVar2; } (anonymous_namespace)::appendUVLine<double> (DAT_001be508 - dVar4,dVar4,_DAT_001be610 ^ (ulong)dVar4,&local_18,iVar2); return iVar2; } if (TVar1 != (Tessellation)0x0) { /* WARNING: Subroutine does not return */ __assert_fail("0", "/workspace/llm4binary/github/2025_star3/NVIDIA-RTX[P]OSD-Lite/opensubdiv/bfr/tessellation.cpp" ,0x90f, "int OpenSubdiv::v3_6_0::Bfr::Tessellation::GetEdgeCoords(int, REAL *) const [REAL = double]" ); } if (3 < (uint)param_1) { return 0; } dVar4 = DAT_001be508 / (double)iVar2; iVar2 = iVar2 + -1; switch(param_1) { case 0: dVar3 = 0.0; dVar5 = dVar4; break; case 1: dVar3 = DAT_001be508; dVar5 = dVar4; goto LAB_001aea70; case 2: dVar5 = (double)((ulong)dVar4 ^ _DAT_001be610); dVar4 = DAT_001be508 - dVar4; dVar3 = DAT_001be508; break; case 3: dVar5 = (double)((ulong)dVar4 ^ _DAT_001be610); dVar3 = 0.0; dVar4 = DAT_001be508 - dVar4; LAB_001aea70: (anonymous_namespace)::appendUIsoLine<double>(dVar3,dVar4,dVar5,&local_18,iVar2); return iVar2; } (anonymous_namespace)::appendVIsoLine<double>(dVar4,dVar3,dVar5,&local_18,iVar2); return iVar2; }
34,784
int OpenSubdiv::v3_6_0::Bfr::Tessellation::GetEdgeCoords<float>(int, float*) const
NVIDIA-RTX[P]OSD-Lite/opensubdiv/bfr/tessellation.cpp
int Tessellation::GetEdgeCoords(int edge, REAL coordBuffer[]) const { // Remember this method excludes coords at the end vertices int edgeRes = _outerRates[edge]; Coord2Array<REAL> coords(coordBuffer, _coordStride); switch (_param.GetType()) { case Parameterization::QUAD: return quad::GetEdgeCoords(edge, edgeRes, coords); case Parameterization::TRI: return tri::GetEdgeCoords(edge, edgeRes, coords); case Parameterization::QUAD_SUBFACES: return qsub::GetEdgeCoords(_param, edge, edgeRes, coords); default: assert(0); } return -1; }
O3
cpp
int OpenSubdiv::v3_6_0::Bfr::Tessellation::GetEdgeCoords<float>(int, float*) const: subq $0x18, %rsp movq 0x28(%rdi), %rax movslq %esi, %rcx movl (%rax,%rcx,4), %ecx movl 0xc(%rdi), %eax movzbl (%rdi), %r8d cmpl $0x2, %r8d je 0xa5b38 movslq %eax, %rdi cmpl $0x1, %r8d je 0xa5ad7 testl %r8d, %r8d jne 0xa5c66 cmpl $0x3, %esi ja 0xa5b68 cvtsi2sd %ecx, %xmm2 movsd 0x11b16(%rip), %xmm1 # 0xb7598 movapd %xmm1, %xmm0 divsd %xmm2, %xmm0 subsd %xmm0, %xmm1 leal -0x1(%rcx), %eax movl %esi, %esi leaq 0x1fa56(%rip), %r8 # 0xc54f0 movslq (%r8,%rsi,4), %rsi addq %r8, %rsi jmpq *%rsi cmpl $0x2, %ecx jl 0xa5c61 movl %eax, %ecx addq $0x8, %rdx shlq $0x3, %rdi movapd %xmm0, %xmm1 movsd %xmm1, -0x8(%rdx) movq $0x0, (%rdx) addsd %xmm0, %xmm1 addq %rdi, %rdx decq %rcx jne 0xa5aba jmp 0xa5c61 cvtsi2sd %ecx, %xmm2 movsd 0x11ab5(%rip), %xmm1 # 0xb7598 movapd %xmm1, %xmm0 divsd %xmm2, %xmm0 subsd %xmm0, %xmm1 leal -0x1(%rcx), %eax cmpl $0x2, %esi je 0xa5ba4 cmpl $0x1, %esi je 0xa5b6f testl %esi, %esi jne 0xa5b68 cmpl $0x2, %ecx jl 0xa5c61 movl %eax, %ecx addq $0x8, %rdx shlq $0x3, %rdi movapd %xmm0, %xmm1 movsd %xmm1, -0x8(%rdx) movq $0x0, (%rdx) addsd %xmm0, %xmm1 addq %rdi, %rdx decq %rcx jne 0xa5b1b jmp 0xa5c61 movl (%rdi), %edi cvtsi2sd %ecx, %xmm0 movsd 0x11a52(%rip), %xmm1 # 0xb7598 divsd %xmm0, %xmm1 leaq 0x8(%rsp), %r8 movq %rdx, (%r8) movl %eax, 0x8(%r8) xorpd %xmm0, %xmm0 movl %ecx, %edx xorl %ecx, %ecx callq 0xa421e jmp 0xa5c61 xorl %eax, %eax jmp 0xa5c61 cmpl $0x2, %ecx jl 0xa5c61 movl %eax, %ecx addq $0x8, %rdx shlq $0x3, %rdi movapd %xmm0, %xmm2 movsd %xmm1, -0x8(%rdx) movsd %xmm2, (%rdx) subsd %xmm0, %xmm1 addsd %xmm0, %xmm2 addq %rdi, %rdx decq %rcx jne 0xa5b86 jmp 0xa5c61 cmpl $0x2, %ecx jl 0xa5c61 movl %eax, %ecx addq $0x8, %rdx shlq $0x3, %rdi movq $0x0, -0x8(%rdx) movsd %xmm1, (%rdx) subsd %xmm0, %xmm1 addq %rdi, %rdx decq %rcx jne 0xa5bb7 jmp 0xa5c61 cmpl $0x2, %ecx jl 0xa5c61 movl %eax, %ecx addq $0x8, %rdx shlq $0x3, %rdi movabsq $0x3ff0000000000000, %rsi # imm = 0x3FF0000000000000 movsd %xmm1, -0x8(%rdx) movq %rsi, (%rdx) subsd %xmm0, %xmm1 addq %rdi, %rdx decq %rcx jne 0xa5bf1 jmp 0xa5c61 cmpl $0x2, %ecx jl 0xa5c61 movl %eax, %ecx addq $0x8, %rdx shlq $0x3, %rdi movq $0x0, -0x8(%rdx) movsd %xmm1, (%rdx) subsd %xmm0, %xmm1 addq %rdi, %rdx decq %rcx jne 0xa5c16 jmp 0xa5c61 cmpl $0x2, %ecx jl 0xa5c61 movl %eax, %ecx addq $0x8, %rdx shlq $0x3, %rdi movabsq $0x3ff0000000000000, %rsi # imm = 0x3FF0000000000000 movapd %xmm0, %xmm1 movq %rsi, -0x8(%rdx) movsd %xmm1, (%rdx) addsd %xmm0, %xmm1 addq %rdi, %rdx decq %rcx jne 0xa5c4d addq $0x18, %rsp retq leaq 0xf422(%rip), %rdi # 0xb508f leaq 0x1f88c(%rip), %rsi # 0xc5500 leaq 0x1faa8(%rip), %rcx # 0xc5723 movl $0x90f, %edx # imm = 0x90F callq 0x39540 nop
_ZNK10OpenSubdiv6v3_6_03Bfr12Tessellation13GetEdgeCoordsIdEEiiPT_: sub rsp, 18h mov rax, [rdi+28h] movsxd rcx, esi mov ecx, [rax+rcx*4] mov eax, [rdi+0Ch] movzx r8d, byte ptr [rdi] cmp r8d, 2 jz loc_A5B38 movsxd rdi, eax cmp r8d, 1 jz short loc_A5AD7 test r8d, r8d jnz loc_A5C66 cmp esi, 3; switch 4 cases ja def_A5AA1; jumptable 00000000000A5AA1 default case cvtsi2sd xmm2, ecx movsd xmm1, cs:qword_B7598 movapd xmm0, xmm1 divsd xmm0, xmm2 subsd xmm1, xmm0 lea eax, [rcx-1] mov esi, esi lea r8, jpt_A5AA1 movsxd rsi, ds:(jpt_A5AA1 - 0C54F0h)[r8+rsi*4] add rsi, r8 jmp rsi; switch jump loc_A5AA3: cmp ecx, 2; jumptable 00000000000A5AA1 case 0 jl loc_A5C61 mov ecx, eax add rdx, 8 shl rdi, 3 movapd xmm1, xmm0 loc_A5ABA: movsd qword ptr [rdx-8], xmm1 mov qword ptr [rdx], 0 addsd xmm1, xmm0 add rdx, rdi dec rcx jnz short loc_A5ABA jmp loc_A5C61 loc_A5AD7: cvtsi2sd xmm2, ecx movsd xmm1, cs:qword_B7598 movapd xmm0, xmm1 divsd xmm0, xmm2 subsd xmm1, xmm0 lea eax, [rcx-1] cmp esi, 2 jz loc_A5BA4 cmp esi, 1 jz short loc_A5B6F test esi, esi jnz short def_A5AA1; jumptable 00000000000A5AA1 default case cmp ecx, 2 jl loc_A5C61 mov ecx, eax add rdx, 8 shl rdi, 3 movapd xmm1, xmm0 loc_A5B1B: movsd qword ptr [rdx-8], xmm1 mov qword ptr [rdx], 0 addsd xmm1, xmm0 add rdx, rdi dec rcx jnz short loc_A5B1B jmp loc_A5C61 loc_A5B38: mov edi, [rdi] cvtsi2sd xmm0, ecx movsd xmm1, cs:qword_B7598 divsd xmm1, xmm0 lea r8, [rsp+18h+var_10] mov [r8], rdx mov [r8+8], eax xorpd xmm0, xmm0 mov edx, ecx xor ecx, ecx call _ZN10OpenSubdiv6v3_6_03Bfr4qsub17getRingEdgeCoordsIdEEiNS1_16ParameterizationEiibbT_S5_NS1_12_GLOBAL__N_111Coord2ArrayIS5_EE; OpenSubdiv::v3_6_0::Bfr::qsub::getRingEdgeCoords<double>(OpenSubdiv::v3_6_0::Bfr::Parameterization,int,int,bool,bool,double,double,OpenSubdiv::v3_6_0::Bfr::`anonymous namespace'::Coord2Array<double>) jmp loc_A5C61 def_A5AA1: xor eax, eax; jumptable 00000000000A5AA1 default case jmp loc_A5C61 loc_A5B6F: cmp ecx, 2 jl loc_A5C61 mov ecx, eax add rdx, 8 shl rdi, 3 movapd xmm2, xmm0 loc_A5B86: movsd qword ptr [rdx-8], xmm1 movsd qword ptr [rdx], xmm2 subsd xmm1, xmm0 addsd xmm2, xmm0 add rdx, rdi dec rcx jnz short loc_A5B86 jmp loc_A5C61 loc_A5BA4: cmp ecx, 2 jl loc_A5C61 mov ecx, eax add rdx, 8 shl rdi, 3 loc_A5BB7: mov qword ptr [rdx-8], 0 movsd qword ptr [rdx], xmm1 subsd xmm1, xmm0 add rdx, rdi dec rcx jnz short loc_A5BB7 jmp loc_A5C61 loc_A5BD4: cmp ecx, 2; jumptable 00000000000A5AA1 case 2 jl loc_A5C61 mov ecx, eax add rdx, 8 shl rdi, 3 mov rsi, 3FF0000000000000h loc_A5BF1: movsd qword ptr [rdx-8], xmm1 mov [rdx], rsi subsd xmm1, xmm0 add rdx, rdi dec rcx jnz short loc_A5BF1 jmp short loc_A5C61 loc_A5C07: cmp ecx, 2; jumptable 00000000000A5AA1 case 3 jl short loc_A5C61 mov ecx, eax add rdx, 8 shl rdi, 3 loc_A5C16: mov qword ptr [rdx-8], 0 movsd qword ptr [rdx], xmm1 subsd xmm1, xmm0 add rdx, rdi dec rcx jnz short loc_A5C16 jmp short loc_A5C61 loc_A5C30: cmp ecx, 2; jumptable 00000000000A5AA1 case 1 jl short loc_A5C61 mov ecx, eax add rdx, 8 shl rdi, 3 mov rsi, 3FF0000000000000h movapd xmm1, xmm0 loc_A5C4D: mov [rdx-8], rsi movsd qword ptr [rdx], xmm1 addsd xmm1, xmm0 add rdx, rdi dec rcx jnz short loc_A5C4D loc_A5C61: add rsp, 18h retn loc_A5C66: lea rdi, aVspanSize0+0Fh; "0" lea rsi, aWorkspaceLlm4b_47; "/workspace/llm4binary/github/2025_star3"... lea rcx, aIntOpensubdivV_43; "int OpenSubdiv::v3_6_0::Bfr::Tessellati"... mov edx, 90Fh call ___assert_fail
long long OpenSubdiv::v3_6_0::Bfr::Tessellation::GetEdgeCoords<double>( unsigned __int8 *a1, int a2, long long a3) { int v3; // ecx int v4; // eax int v5; // r8d long long v6; // rdi double v7; // xmm0_8 double v8; // xmm1_8 long long result; // rax long long v10; // rcx double *v11; // rdx long long v12; // rdi double v13; // xmm1_8 double v14; // xmm0_8 double v15; // xmm1_8 long long v16; // rcx double *v17; // rdx long long v18; // rdi double v19; // xmm1_8 int v20; // edi long long v21; // rcx double *v22; // rdx long long v23; // rdi double v24; // xmm2_8 long long v25; // rcx double *v26; // rdx long long v27; // rdi long long v28; // rcx double *v29; // rdx long long v30; // rdi long long v31; // rcx double *v32; // rdx long long v33; // rdi long long v34; // rcx double *v35; // rdx long long v36; // rdi double v37; // xmm1_8 long long v38; // [rsp+8h] [rbp-10h] BYREF int v39; // [rsp+10h] [rbp-8h] v3 = *(_DWORD *)(*((_QWORD *)a1 + 5) + 4LL * a2); v4 = *((_DWORD *)a1 + 3); v5 = *a1; if ( v5 == 2 ) { v20 = *(_DWORD *)a1; v38 = a3; v39 = v4; return OpenSubdiv::v3_6_0::Bfr::qsub::getRingEdgeCoords<double>( v20, a2, v3, 0, (long long)&v38, (__m128d)0LL, 1.0 / (double)v3); } else { v6 = v4; if ( v5 == 1 ) { v14 = 1.0 / (double)v3; v15 = 1.0 - v14; result = (unsigned int)(v3 - 1); if ( a2 == 2 ) { if ( v3 >= 2 ) { v25 = (unsigned int)result; v26 = (double *)(a3 + 8); v27 = 8 * v6; do { *(v26 - 1) = 0.0; *v26 = v15; v15 = v15 - v14; v26 = (double *)((char *)v26 + v27); --v25; } while ( v25 ); } } else if ( a2 == 1 ) { if ( v3 >= 2 ) { v21 = (unsigned int)result; v22 = (double *)(a3 + 8); v23 = 8 * v6; v24 = v14; do { *(v22 - 1) = v15; *v22 = v24; v15 = v15 - v14; v24 = v24 + v14; v22 = (double *)((char *)v22 + v23); --v21; } while ( v21 ); } } else if ( a2 ) { return 0LL; } else if ( v3 >= 2 ) { v16 = (unsigned int)result; v17 = (double *)(a3 + 8); v18 = 8 * v6; v19 = v14; do { *(v17 - 1) = v19; *v17 = 0.0; v19 = v19 + v14; v17 = (double *)((char *)v17 + v18); --v16; } while ( v16 ); } } else { if ( v5 ) __assert_fail( "0", "/workspace/llm4binary/github/2025_star3/NVIDIA-RTX[P]OSD-Lite/opensubdiv/bfr/tessellation.cpp", 2319LL, "int OpenSubdiv::v3_6_0::Bfr::Tessellation::GetEdgeCoords(int, REAL *) const [REAL = double]"); v7 = 1.0 / (double)v3; v8 = 1.0 - v7; result = (unsigned int)(v3 - 1); switch ( a2 ) { case 0: if ( v3 >= 2 ) { v10 = (unsigned int)result; v11 = (double *)(a3 + 8); v12 = 8 * v6; v13 = v7; do { *(v11 - 1) = v13; *v11 = 0.0; v13 = v13 + v7; v11 = (double *)((char *)v11 + v12); --v10; } while ( v10 ); } break; case 1: if ( v3 >= 2 ) { v34 = (unsigned int)result; v35 = (double *)(a3 + 8); v36 = 8 * v6; v37 = v7; do { *(v35 - 1) = 1.0; *v35 = v37; v37 = v37 + v7; v35 = (double *)((char *)v35 + v36); --v34; } while ( v34 ); } break; case 2: if ( v3 >= 2 ) { v28 = (unsigned int)result; v29 = (double *)(a3 + 8); v30 = 8 * v6; do { *(v29 - 1) = v8; *v29 = 1.0; v8 = v8 - v7; v29 = (double *)((char *)v29 + v30); --v28; } while ( v28 ); } break; case 3: if ( v3 >= 2 ) { v31 = (unsigned int)result; v32 = (double *)(a3 + 8); v33 = 8 * v6; do { *(v32 - 1) = 0.0; *v32 = v8; v8 = v8 - v7; v32 = (double *)((char *)v32 + v33); --v31; } while ( v31 ); } break; default: return 0LL; } } } return result; }
GetEdgeCoords<double>: SUB RSP,0x18 MOV RAX,qword ptr [RDI + 0x28] MOVSXD RCX,ESI MOV ECX,dword ptr [RAX + RCX*0x4] MOV EAX,dword ptr [RDI + 0xc] MOVZX R8D,byte ptr [RDI] CMP R8D,0x2 JZ 0x001a5b38 MOVSXD RDI,EAX CMP R8D,0x1 JZ 0x001a5ad7 TEST R8D,R8D JNZ 0x001a5c66 CMP ESI,0x3 JA 0x001a5b68 CVTSI2SD XMM2,ECX MOVSD XMM1,qword ptr [0x001b7598] MOVAPD XMM0,XMM1 DIVSD XMM0,XMM2 SUBSD XMM1,XMM0 LEA EAX,[RCX + -0x1] MOV ESI,ESI LEA R8,[0x1c54f0] MOVSXD RSI,dword ptr [R8 + RSI*0x4] ADD RSI,R8 switchD: JMP RSI caseD_0: CMP ECX,0x2 JL 0x001a5c61 MOV ECX,EAX ADD RDX,0x8 SHL RDI,0x3 MOVAPD XMM1,XMM0 LAB_001a5aba: MOVSD qword ptr [RDX + -0x8],XMM1 MOV qword ptr [RDX],0x0 ADDSD XMM1,XMM0 ADD RDX,RDI DEC RCX JNZ 0x001a5aba JMP 0x001a5c61 LAB_001a5ad7: CVTSI2SD XMM2,ECX MOVSD XMM1,qword ptr [0x001b7598] MOVAPD XMM0,XMM1 DIVSD XMM0,XMM2 SUBSD XMM1,XMM0 LEA EAX,[RCX + -0x1] CMP ESI,0x2 JZ 0x001a5ba4 CMP ESI,0x1 JZ 0x001a5b6f TEST ESI,ESI JNZ 0x001a5b68 CMP ECX,0x2 JL 0x001a5c61 MOV ECX,EAX ADD RDX,0x8 SHL RDI,0x3 MOVAPD XMM1,XMM0 LAB_001a5b1b: MOVSD qword ptr [RDX + -0x8],XMM1 MOV qword ptr [RDX],0x0 ADDSD XMM1,XMM0 ADD RDX,RDI DEC RCX JNZ 0x001a5b1b JMP 0x001a5c61 LAB_001a5b38: MOV EDI,dword ptr [RDI] CVTSI2SD XMM0,ECX MOVSD XMM1,qword ptr [0x001b7598] DIVSD XMM1,XMM0 LEA R8,[RSP + 0x8] MOV qword ptr [R8],RDX MOV dword ptr [R8 + 0x8],EAX XORPD XMM0,XMM0 MOV EDX,ECX XOR ECX,ECX CALL 0x001a421e JMP 0x001a5c61 LAB_001a5b68: XOR EAX,EAX JMP 0x001a5c61 LAB_001a5b6f: CMP ECX,0x2 JL 0x001a5c61 MOV ECX,EAX ADD RDX,0x8 SHL RDI,0x3 MOVAPD XMM2,XMM0 LAB_001a5b86: MOVSD qword ptr [RDX + -0x8],XMM1 MOVSD qword ptr [RDX],XMM2 SUBSD XMM1,XMM0 ADDSD XMM2,XMM0 ADD RDX,RDI DEC RCX JNZ 0x001a5b86 JMP 0x001a5c61 LAB_001a5ba4: CMP ECX,0x2 JL 0x001a5c61 MOV ECX,EAX ADD RDX,0x8 SHL RDI,0x3 LAB_001a5bb7: MOV qword ptr [RDX + -0x8],0x0 MOVSD qword ptr [RDX],XMM1 SUBSD XMM1,XMM0 ADD RDX,RDI DEC RCX JNZ 0x001a5bb7 JMP 0x001a5c61 caseD_2: CMP ECX,0x2 JL 0x001a5c61 MOV ECX,EAX ADD RDX,0x8 SHL RDI,0x3 MOV RSI,0x3ff0000000000000 LAB_001a5bf1: MOVSD qword ptr [RDX + -0x8],XMM1 MOV qword ptr [RDX],RSI SUBSD XMM1,XMM0 ADD RDX,RDI DEC RCX JNZ 0x001a5bf1 JMP 0x001a5c61 caseD_3: CMP ECX,0x2 JL 0x001a5c61 MOV ECX,EAX ADD RDX,0x8 SHL RDI,0x3 LAB_001a5c16: MOV qword ptr [RDX + -0x8],0x0 MOVSD qword ptr [RDX],XMM1 SUBSD XMM1,XMM0 ADD RDX,RDI DEC RCX JNZ 0x001a5c16 JMP 0x001a5c61 caseD_1: CMP ECX,0x2 JL 0x001a5c61 MOV ECX,EAX ADD RDX,0x8 SHL RDI,0x3 MOV RSI,0x3ff0000000000000 MOVAPD XMM1,XMM0 LAB_001a5c4d: MOV qword ptr [RDX + -0x8],RSI MOVSD qword ptr [RDX],XMM1 ADDSD XMM1,XMM0 ADD RDX,RDI DEC RCX JNZ 0x001a5c4d LAB_001a5c61: ADD RSP,0x18 RET LAB_001a5c66: LEA RDI,[0x1b508f] LEA RSI,[0x1c5500] LEA RCX,[0x1c5723] MOV EDX,0x90f CALL 0x00139540
/* int OpenSubdiv::v3_6_0::Bfr::Tessellation::GetEdgeCoords<double>(int, double*) const */ int __thiscall OpenSubdiv::v3_6_0::Bfr::Tessellation::GetEdgeCoords<double> (Tessellation *this,int param_1,double *param_2) { uint uVar1; Tessellation TVar2; int iVar3; int iVar4; ulong uVar5; double *pdVar6; int4 in_register_00000034; double dVar7; double dVar8; double dVar9; iVar4 = *(int *)(*(long *)(this + 0x28) + (long)param_1 * 4); iVar3 = *(int *)(this + 0xc); TVar2 = *this; if (TVar2 == (Tessellation)0x2) { iVar4 = qsub::getRingEdgeCoords<double> (0,DAT_001b7598 / (double)iVar4,*(int4 *)this, CONCAT44(in_register_00000034,param_1),iVar4,0); return iVar4; } if (TVar2 == (Tessellation)0x1) { dVar7 = DAT_001b7598 / (double)iVar4; dVar8 = DAT_001b7598 - dVar7; uVar1 = iVar4 - 1; if (param_1 == 2) { if (iVar4 < 2) { return uVar1; } uVar5 = (ulong)uVar1; pdVar6 = param_2 + 1; do { pdVar6[-1] = 0.0; *pdVar6 = dVar8; dVar8 = dVar8 - dVar7; pdVar6 = pdVar6 + iVar3; uVar5 = uVar5 - 1; } while (uVar5 != 0); return uVar1; } if (param_1 == 1) { if (iVar4 < 2) { return uVar1; } uVar5 = (ulong)uVar1; pdVar6 = param_2 + 1; dVar9 = dVar7; do { pdVar6[-1] = dVar8; *pdVar6 = dVar9; dVar8 = dVar8 - dVar7; dVar9 = dVar9 + dVar7; pdVar6 = pdVar6 + iVar3; uVar5 = uVar5 - 1; } while (uVar5 != 0); return uVar1; } if (param_1 == 0) { if (iVar4 < 2) { return uVar1; } uVar5 = (ulong)uVar1; pdVar6 = param_2 + 1; dVar8 = dVar7; do { pdVar6[-1] = dVar8; *pdVar6 = 0.0; dVar8 = dVar8 + dVar7; pdVar6 = pdVar6 + iVar3; uVar5 = uVar5 - 1; } while (uVar5 != 0); return uVar1; } } else { if (TVar2 != (Tessellation)0x0) { /* WARNING: Subroutine does not return */ __assert_fail("0", "/workspace/llm4binary/github/2025_star3/NVIDIA-RTX[P]OSD-Lite/opensubdiv/bfr/tessellation.cpp" ,0x90f, "int OpenSubdiv::v3_6_0::Bfr::Tessellation::GetEdgeCoords(int, REAL *) const [REAL = double]" ); } if ((uint)param_1 < 4) { dVar7 = DAT_001b7598 / (double)iVar4; dVar8 = DAT_001b7598 - dVar7; uVar1 = iVar4 - 1; switch(param_1) { case 1: if (iVar4 < 2) { return uVar1; } uVar5 = (ulong)uVar1; pdVar6 = param_2 + 1; dVar8 = dVar7; do { pdVar6[-1] = 1.0; *pdVar6 = dVar8; dVar8 = dVar8 + dVar7; pdVar6 = pdVar6 + iVar3; uVar5 = uVar5 - 1; } while (uVar5 != 0); return uVar1; case 2: if (iVar4 < 2) { return uVar1; } uVar5 = (ulong)uVar1; pdVar6 = param_2 + 1; do { pdVar6[-1] = dVar8; *pdVar6 = 1.0; dVar8 = dVar8 - dVar7; pdVar6 = pdVar6 + iVar3; uVar5 = uVar5 - 1; } while (uVar5 != 0); return uVar1; case 3: if (iVar4 < 2) { return uVar1; } uVar5 = (ulong)uVar1; pdVar6 = param_2 + 1; do { pdVar6[-1] = 0.0; *pdVar6 = dVar8; dVar8 = dVar8 - dVar7; pdVar6 = pdVar6 + iVar3; uVar5 = uVar5 - 1; } while (uVar5 != 0); return uVar1; } if (iVar4 < 2) { return uVar1; } uVar5 = (ulong)uVar1; pdVar6 = param_2 + 1; dVar8 = dVar7; do { pdVar6[-1] = dVar8; *pdVar6 = 0.0; dVar8 = dVar8 + dVar7; pdVar6 = pdVar6 + iVar3; uVar5 = uVar5 - 1; } while (uVar5 != 0); return uVar1; } } return 0; }
34,785
my_coll_parser_scan_setting
eloqsql/strings/ctype-uca.c
static int my_coll_parser_scan_setting(MY_COLL_RULE_PARSER *p) { MY_COLL_RULES *rules= p->rules; MY_COLL_LEXEM *lexem= my_coll_parser_curr(p); if (!lex_cmp(lexem, C_STRING_WITH_LEN("[version 4.0.0]"))) { rules->version= 400; rules->uca= &my_uca_v400; } else if (!lex_cmp(lexem, C_STRING_WITH_LEN("[version 5.2.0]"))) { rules->version= 520; rules->uca= &my_uca_v520; } else if (!lex_cmp(lexem, C_STRING_WITH_LEN("[shift-after-method expand]"))) { rules->shift_after_method= my_shift_method_expand; } else if (!lex_cmp(lexem, C_STRING_WITH_LEN("[shift-after-method simple]"))) { rules->shift_after_method= my_shift_method_simple; } else if (!lex_cmp(lexem, C_STRING_WITH_LEN("[strength 1]"))) rules->strength= 1; else if (!lex_cmp(lexem, C_STRING_WITH_LEN("[strength 2]"))) rules->strength= 2; else { return 0; } return my_coll_parser_scan(p); }
O0
c
my_coll_parser_scan_setting: pushq %rbp movq %rsp, %rbp subq $0x20, %rsp movq %rdi, -0x10(%rbp) movq -0x10(%rbp), %rax movq 0xf0(%rax), %rax movq %rax, -0x18(%rbp) movq -0x10(%rbp), %rdi callq 0x5ba10 movq %rax, -0x20(%rbp) movq -0x20(%rbp), %rdi leaq 0x33c45(%rip), %rsi # 0x8fca8 movl $0xf, %edx callq 0x5c190 cmpl $0x0, %eax jne 0x5c090 movq -0x18(%rbp), %rax movl $0x190, (%rax) # imm = 0x190 movq -0x18(%rbp), %rax leaq 0x272fe9(%rip), %rcx # 0x2cf070 movq %rcx, 0x8(%rax) jmp 0x5c17a movq -0x20(%rbp), %rdi leaq 0x33c1d(%rip), %rsi # 0x8fcb8 movl $0xf, %edx callq 0x5c190 cmpl $0x0, %eax jne 0x5c0c8 movq -0x18(%rbp), %rax movl $0x208, (%rax) # imm = 0x208 movq -0x18(%rbp), %rax leaq 0x278119(%rip), %rcx # 0x2d41d8 movq %rcx, 0x8(%rax) jmp 0x5c178 movq -0x20(%rbp), %rdi leaq 0x33bf5(%rip), %rsi # 0x8fcc8 movl $0x1b, %edx callq 0x5c190 cmpl $0x0, %eax jne 0x5c0f2 movq -0x18(%rbp), %rax movl $0x1, 0x30(%rax) jmp 0x5c176 movq -0x20(%rbp), %rdi leaq 0x33be7(%rip), %rsi # 0x8fce4 movl $0x1b, %edx callq 0x5c190 cmpl $0x0, %eax jne 0x5c119 movq -0x18(%rbp), %rax movl $0x0, 0x30(%rax) jmp 0x5c174 movq -0x20(%rbp), %rdi leaq 0x33bdc(%rip), %rsi # 0x8fd00 movl $0xc, %edx callq 0x5c190 cmpl $0x0, %eax jne 0x5c140 movq -0x18(%rbp), %rax movl $0x1, 0x4(%rax) jmp 0x5c172 movq -0x20(%rbp), %rdi leaq 0x331f9(%rip), %rsi # 0x8f344 movl $0xc, %edx callq 0x5c190 cmpl $0x0, %eax jne 0x5c167 movq -0x18(%rbp), %rax movl $0x2, 0x4(%rax) jmp 0x5c170 movl $0x0, -0x4(%rbp) jmp 0x5c186 jmp 0x5c172 jmp 0x5c174 jmp 0x5c176 jmp 0x5c178 jmp 0x5c17a movq -0x10(%rbp), %rdi callq 0x5c1f0 movl %eax, -0x4(%rbp) movl -0x4(%rbp), %eax addq $0x20, %rsp popq %rbp retq nop
my_coll_parser_scan_setting: push rbp mov rbp, rsp sub rsp, 20h mov [rbp+var_10], rdi mov rax, [rbp+var_10] mov rax, [rax+0F0h] mov [rbp+var_18], rax mov rdi, [rbp+var_10] call my_coll_parser_curr mov [rbp+var_20], rax mov rdi, [rbp+var_20] lea rsi, aVersion400; "[version 4.0.0]" mov edx, 0Fh call lex_cmp cmp eax, 0 jnz short loc_5C090 mov rax, [rbp+var_18] mov dword ptr [rax], 190h mov rax, [rbp+var_18] lea rcx, my_uca_v400 mov [rax+8], rcx jmp loc_5C17A loc_5C090: mov rdi, [rbp+var_20] lea rsi, aVersion520; "[version 5.2.0]" mov edx, 0Fh call lex_cmp cmp eax, 0 jnz short loc_5C0C8 mov rax, [rbp+var_18] mov dword ptr [rax], 208h mov rax, [rbp+var_18] lea rcx, my_uca_v520 mov [rax+8], rcx jmp loc_5C178 loc_5C0C8: mov rdi, [rbp+var_20] lea rsi, aShiftAfterMeth; "[shift-after-method expand]" mov edx, 1Bh call lex_cmp cmp eax, 0 jnz short loc_5C0F2 mov rax, [rbp+var_18] mov dword ptr [rax+30h], 1 jmp loc_5C176 loc_5C0F2: mov rdi, [rbp+var_20] lea rsi, aShiftAfterMeth_0; "[shift-after-method simple]" mov edx, 1Bh call lex_cmp cmp eax, 0 jnz short loc_5C119 mov rax, [rbp+var_18] mov dword ptr [rax+30h], 0 jmp short loc_5C174 loc_5C119: mov rdi, [rbp+var_20] lea rsi, aStrength1; "[strength 1]" mov edx, 0Ch call lex_cmp cmp eax, 0 jnz short loc_5C140 mov rax, [rbp+var_18] mov dword ptr [rax+4], 1 jmp short loc_5C172 loc_5C140: mov rdi, [rbp+var_20] lea rsi, aStrength2; "[strength 2]" mov edx, 0Ch call lex_cmp cmp eax, 0 jnz short loc_5C167 mov rax, [rbp+var_18] mov dword ptr [rax+4], 2 jmp short loc_5C170 loc_5C167: mov [rbp+var_4], 0 jmp short loc_5C186 loc_5C170: jmp short $+2 loc_5C172: jmp short $+2 loc_5C174: jmp short $+2 loc_5C176: jmp short $+2 loc_5C178: jmp short $+2 loc_5C17A: mov rdi, [rbp+var_10] call my_coll_parser_scan mov [rbp+var_4], eax loc_5C186: mov eax, [rbp+var_4] add rsp, 20h pop rbp retn
long long my_coll_parser_scan_setting(long long a1) { long long v2; // [rsp+0h] [rbp-20h] long long v3; // [rsp+8h] [rbp-18h] v3 = *(_QWORD *)(a1 + 240); v2 = my_coll_parser_curr(a1); if ( !(unsigned int)lex_cmp(v2, "[version 4.0.0]", 15LL) ) { *(_DWORD *)v3 = 400; *(_QWORD *)(v3 + 8) = &my_uca_v400; return (unsigned int)my_coll_parser_scan(a1); } if ( !(unsigned int)lex_cmp(v2, "[version 5.2.0]", 15LL) ) { *(_DWORD *)v3 = 520; *(_QWORD *)(v3 + 8) = &my_uca_v520; return (unsigned int)my_coll_parser_scan(a1); } if ( !(unsigned int)lex_cmp(v2, "[shift-after-method expand]", 27LL) ) { *(_DWORD *)(v3 + 48) = 1; return (unsigned int)my_coll_parser_scan(a1); } if ( !(unsigned int)lex_cmp(v2, "[shift-after-method simple]", 27LL) ) { *(_DWORD *)(v3 + 48) = 0; return (unsigned int)my_coll_parser_scan(a1); } if ( !(unsigned int)lex_cmp(v2, "[strength 1]", 12LL) ) { *(_DWORD *)(v3 + 4) = 1; return (unsigned int)my_coll_parser_scan(a1); } if ( !(unsigned int)lex_cmp(v2, "[strength 2]", 12LL) ) { *(_DWORD *)(v3 + 4) = 2; return (unsigned int)my_coll_parser_scan(a1); } return 0; }
my_coll_parser_scan_setting: PUSH RBP MOV RBP,RSP SUB RSP,0x20 MOV qword ptr [RBP + -0x10],RDI MOV RAX,qword ptr [RBP + -0x10] MOV RAX,qword ptr [RAX + 0xf0] MOV qword ptr [RBP + -0x18],RAX MOV RDI,qword ptr [RBP + -0x10] CALL 0x0015ba10 MOV qword ptr [RBP + -0x20],RAX MOV RDI,qword ptr [RBP + -0x20] LEA RSI,[0x18fca8] MOV EDX,0xf CALL 0x0015c190 CMP EAX,0x0 JNZ 0x0015c090 MOV RAX,qword ptr [RBP + -0x18] MOV dword ptr [RAX],0x190 MOV RAX,qword ptr [RBP + -0x18] LEA RCX,[0x3cf070] MOV qword ptr [RAX + 0x8],RCX JMP 0x0015c17a LAB_0015c090: MOV RDI,qword ptr [RBP + -0x20] LEA RSI,[0x18fcb8] MOV EDX,0xf CALL 0x0015c190 CMP EAX,0x0 JNZ 0x0015c0c8 MOV RAX,qword ptr [RBP + -0x18] MOV dword ptr [RAX],0x208 MOV RAX,qword ptr [RBP + -0x18] LEA RCX,[0x3d41d8] MOV qword ptr [RAX + 0x8],RCX JMP 0x0015c178 LAB_0015c0c8: MOV RDI,qword ptr [RBP + -0x20] LEA RSI,[0x18fcc8] MOV EDX,0x1b CALL 0x0015c190 CMP EAX,0x0 JNZ 0x0015c0f2 MOV RAX,qword ptr [RBP + -0x18] MOV dword ptr [RAX + 0x30],0x1 JMP 0x0015c176 LAB_0015c0f2: MOV RDI,qword ptr [RBP + -0x20] LEA RSI,[0x18fce4] MOV EDX,0x1b CALL 0x0015c190 CMP EAX,0x0 JNZ 0x0015c119 MOV RAX,qword ptr [RBP + -0x18] MOV dword ptr [RAX + 0x30],0x0 JMP 0x0015c174 LAB_0015c119: MOV RDI,qword ptr [RBP + -0x20] LEA RSI,[0x18fd00] MOV EDX,0xc CALL 0x0015c190 CMP EAX,0x0 JNZ 0x0015c140 MOV RAX,qword ptr [RBP + -0x18] MOV dword ptr [RAX + 0x4],0x1 JMP 0x0015c172 LAB_0015c140: MOV RDI,qword ptr [RBP + -0x20] LEA RSI,[0x18f344] MOV EDX,0xc CALL 0x0015c190 CMP EAX,0x0 JNZ 0x0015c167 MOV RAX,qword ptr [RBP + -0x18] MOV dword ptr [RAX + 0x4],0x2 JMP 0x0015c170 LAB_0015c167: MOV dword ptr [RBP + -0x4],0x0 JMP 0x0015c186 LAB_0015c170: JMP 0x0015c172 LAB_0015c172: JMP 0x0015c174 LAB_0015c174: JMP 0x0015c176 LAB_0015c176: JMP 0x0015c178 LAB_0015c178: JMP 0x0015c17a LAB_0015c17a: MOV RDI,qword ptr [RBP + -0x10] CALL 0x0015c1f0 MOV dword ptr [RBP + -0x4],EAX LAB_0015c186: MOV EAX,dword ptr [RBP + -0x4] ADD RSP,0x20 POP RBP RET
int4 my_coll_parser_scan_setting(long param_1) { int4 *puVar1; int iVar2; int4 uVar3; int8 uVar4; puVar1 = *(int4 **)(param_1 + 0xf0); uVar4 = my_coll_parser_curr(param_1); iVar2 = lex_cmp(uVar4,"[version 4.0.0]",0xf); if (iVar2 == 0) { *puVar1 = 400; *(int1 **)(puVar1 + 2) = my_uca_v400; } else { iVar2 = lex_cmp(uVar4,"[version 5.2.0]",0xf); if (iVar2 == 0) { *puVar1 = 0x208; *(int1 **)(puVar1 + 2) = my_uca_v520; } else { iVar2 = lex_cmp(uVar4,"[shift-after-method expand]",0x1b); if (iVar2 == 0) { puVar1[0xc] = 1; } else { iVar2 = lex_cmp(uVar4,"[shift-after-method simple]",0x1b); if (iVar2 == 0) { puVar1[0xc] = 0; } else { iVar2 = lex_cmp(uVar4,"[strength 1]",0xc); if (iVar2 == 0) { puVar1[1] = 1; } else { iVar2 = lex_cmp(uVar4,"[strength 2]",0xc); if (iVar2 != 0) { return 0; } puVar1[1] = 2; } } } } } uVar3 = my_coll_parser_scan(param_1); return uVar3; }
34,786
fail(int, char const*, ...)
msxemulator/build_O3/_deps/picotool-src/errors/errors.cpp
void fail(int code, const char *format, ...) { va_list args; va_start(args, format); static char error_msg[512]; vsnprintf(error_msg, sizeof(error_msg), format, args); va_end(args); fail(code, std::string(error_msg)); }
O3
cpp
fail(int, char const*, ...): pushq %r15 pushq %r14 pushq %r12 pushq %rbx subq $0xf8, %rsp movq %rsi, %r10 movl %edi, %ebx leaq 0x40(%rsp), %rsi movq %rdx, 0x10(%rsi) movq %rcx, 0x18(%rsi) movq %r8, 0x20(%rsi) movq %r9, 0x28(%rsi) testb %al, %al je 0x7b4fb movaps %xmm0, 0x70(%rsp) movaps %xmm1, 0x80(%rsp) movaps %xmm2, 0x90(%rsp) movaps %xmm3, 0xa0(%rsp) movaps %xmm4, 0xb0(%rsp) movaps %xmm5, 0xc0(%rsp) movaps %xmm6, 0xd0(%rsp) movaps %xmm7, 0xe0(%rsp) leaq 0x20(%rsp), %rcx movq %rsi, 0x10(%rcx) leaq 0x120(%rsp), %rax movq %rax, 0x8(%rcx) movabsq $0x3000000010, %rax # imm = 0x3000000010 movq %rax, (%rcx) leaq 0x71d8c(%rip), %r14 # 0xed2b0 movl $0x200, %esi # imm = 0x200 movq %r14, %rdi movq %r10, %rdx callq 0xf2e0 leaq 0x10(%rsp), %r12 movq %r12, -0x10(%r12) movq %r14, %rdi callq 0xf240 leaq (%rax,%r14), %rdx movq %rsp, %r15 movq %r15, %rdi movq %r14, %rsi callq 0x5c00c movl %ebx, %edi movq %r15, %rsi callq 0x7b3c0 movq %rax, %rbx movq (%rsp), %rdi cmpq %r12, %rdi je 0x7b57b movq 0x10(%rsp), %rsi incq %rsi callq 0xf470 movq %rbx, %rdi callq 0xf7d0 nop
_Z4failiPKcz: push r15 push r14 push r12 push rbx sub rsp, 0F8h mov r10, rsi mov ebx, edi lea rsi, [rsp+118h+var_D8] mov [rsi+10h], rdx mov [rsi+18h], rcx mov [rsi+20h], r8 mov [rsi+28h], r9 test al, al jz short loc_7B4FB movaps [rsp+118h+var_A8], xmm0 movaps [rsp+118h+var_98], xmm1 movaps [rsp+118h+var_88], xmm2 movaps [rsp+118h+var_78], xmm3 movaps [rsp+118h+var_68], xmm4 movaps [rsp+118h+var_58], xmm5 movaps [rsp+118h+var_48], xmm6 movaps [rsp+118h+var_38], xmm7 loc_7B4FB: lea rcx, [rsp+118h+var_F8] mov [rcx+10h], rsi lea rax, [rsp+118h+arg_0] mov [rcx+8], rax mov rax, 3000000010h mov [rcx], rax lea r14, _ZZ4failiPKczE9error_msg; fail(int,char const*,...)::error_msg mov esi, 200h mov rdi, r14 mov rdx, r10 call _vsnprintf lea r12, [rsp+118h+var_108] mov [r12-10h], r12 mov rdi, r14 call _strlen lea rdx, [rax+r14] mov r15, rsp mov rdi, r15 mov rsi, 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 edi, ebx mov rsi, r15 call _Z4failiNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE; fail(int,std::string) mov rbx, rax mov rdi, [rsp+118h+var_118]; void * cmp rdi, r12 jz short loc_7B57B mov rsi, [rsp+118h+var_108] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_7B57B: mov rdi, rbx call __Unwind_Resume
void __noreturn fail( int a1, const char *a2, long long a3, long long a4, long long a5, long long a6, __m128 a7, __m128 a8, __m128 a9, __m128 a10, __m128 a11, __m128 a12, __m128 a13, __m128 a14, char a15) { long long v15; // rdx long long v16; // rcx long long v17; // r8 long long v18; // r9 long long v19; // rax void *v20[2]; // [rsp+0h] [rbp-118h] BYREF long long v21; // [rsp+10h] [rbp-108h] BYREF _QWORD v22[4]; // [rsp+20h] [rbp-F8h] BYREF char v23; // [rsp+40h] [rbp-D8h] BYREF long long v24; // [rsp+50h] [rbp-C8h] long long v25; // [rsp+58h] [rbp-C0h] long long v26; // [rsp+60h] [rbp-B8h] long long v27; // [rsp+68h] [rbp-B0h] __m128 v28; // [rsp+70h] [rbp-A8h] __m128 v29; // [rsp+80h] [rbp-98h] __m128 v30; // [rsp+90h] [rbp-88h] __m128 v31; // [rsp+A0h] [rbp-78h] __m128 v32; // [rsp+B0h] [rbp-68h] __m128 v33; // [rsp+C0h] [rbp-58h] __m128 v34; // [rsp+D0h] [rbp-48h] __m128 v35; // [rsp+E0h] [rbp-38h] v28 = a7; v29 = a8; v30 = a9; v31 = a10; v32 = a11; v33 = a12; v34 = a13; v35 = a14; v24 = a3; v25 = a4; v26 = a5; v27 = a6; v22[2] = &v23; v22[1] = &a15; v22[0] = 0x3000000010LL; vsnprintf(fail(int,char const*,...)::error_msg, 512LL, a2, v22); v20[0] = &v21; v19 = strlen(fail(int,char const*,...)::error_msg, 512LL, v15, v16, v17, v18); std::string::_M_construct<char const*>( (long long)v20, fail(int,char const*,...)::error_msg, (long long)&fail(int,char const*,...)::error_msg[v19]); fail(a1, (long long)v20); }
fail: PUSH R15 PUSH R14 PUSH R12 PUSH RBX SUB RSP,0xf8 MOV R10,RSI MOV EBX,EDI LEA RSI,[RSP + 0x40] MOV qword ptr [RSI + 0x10],RDX MOV qword ptr [RSI + 0x18],RCX MOV qword ptr [RSI + 0x20],R8 MOV qword ptr [RSI + 0x28],R9 TEST AL,AL JZ 0x0017b4fb MOVAPS xmmword ptr [RSP + 0x70],XMM0 MOVAPS xmmword ptr [RSP + 0x80],XMM1 MOVAPS xmmword ptr [RSP + 0x90],XMM2 MOVAPS xmmword ptr [RSP + 0xa0],XMM3 MOVAPS xmmword ptr [RSP + 0xb0],XMM4 MOVAPS xmmword ptr [RSP + 0xc0],XMM5 MOVAPS xmmword ptr [RSP + 0xd0],XMM6 MOVAPS xmmword ptr [RSP + 0xe0],XMM7 LAB_0017b4fb: LEA RCX,[RSP + 0x20] MOV qword ptr [RCX + 0x10],RSI LEA RAX,[RSP + 0x120] MOV qword ptr [RCX + 0x8],RAX MOV RAX,0x3000000010 MOV qword ptr [RCX],RAX LEA R14,[0x1ed2b0] MOV ESI,0x200 MOV RDI,R14 MOV RDX,R10 CALL 0x0010f2e0 LEA R12,[RSP + 0x10] MOV qword ptr [R12 + -0x10],R12 MOV RDI,R14 CALL 0x0010f240 LEA RDX,[RAX + R14*0x1] MOV R15,RSP MOV RDI,R15 MOV RSI,R14 CALL 0x0015c00c LAB_0017b558: MOV EDI,EBX MOV RSI,R15 CALL 0x0017b3c0 LAB_0017b562: MOV RBX,RAX MOV RDI,qword ptr [RSP] CMP RDI,R12 JZ 0x0017b57b MOV RSI,qword ptr [RSP + 0x10] INC RSI CALL 0x0010f470 LAB_0017b57b: MOV RDI,RBX CALL 0x0010f7d0
/* fail(int, char const*, ...) */ void fail(int param_1,char *param_2,...) { char in_AL; size_t sVar1; int8 uVar2; int8 in_RCX; int8 in_RDX; int8 in_R8; int8 in_R9; int8 in_XMM0_Qa; int8 in_XMM1_Qa; int8 in_XMM2_Qa; int8 in_XMM3_Qa; int8 in_XMM4_Qa; int8 in_XMM5_Qa; int8 in_XMM6_Qa; int8 in_XMM7_Qa; long *local_118 [2]; long local_108 [2]; int8 local_f8; int1 *local_f0; int1 *local_e8; 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; local_e8 = local_d8; if (in_AL != '\0') { local_a8 = in_XMM0_Qa; local_98 = in_XMM1_Qa; local_88 = in_XMM2_Qa; local_78 = in_XMM3_Qa; local_68 = in_XMM4_Qa; local_58 = in_XMM5_Qa; local_48 = in_XMM6_Qa; local_38 = in_XMM7_Qa; } local_f0 = &stack0x00000008; local_f8 = 0x3000000010; local_c8 = in_RDX; local_c0 = in_RCX; local_b8 = in_R8; local_b0 = in_R9; vsnprintf(fail(int,char_const*,...)::error_msg,0x200,param_2,&local_f8); local_118[0] = local_108; sVar1 = strlen(fail(int,char_const*,...)::error_msg); std::__cxx11::string::_M_construct<char_const*> ((string *)local_118,fail(int,char_const*,...)::error_msg, fail(int,char_const*,...)::error_msg + sVar1); /* try { // try from 0017b558 to 0017b561 has its CatchHandler @ 0017b562 */ uVar2 = fail(param_1,local_118); /* catch() { ... } // from try @ 0017b558 with catch @ 0017b562 */ if (local_118[0] != local_108) { operator_delete(local_118[0],local_108[0] + 1); } /* WARNING: Subroutine does not return */ _Unwind_Resume(uVar2); }
34,787
my_mb_wc_gbk
eloqsql/strings/ctype-gbk.c
static int my_mb_wc_gbk(CHARSET_INFO *cs __attribute__((unused)), my_wc_t *pwc, const uchar *s, const uchar *e) { int hi; if (s >= e) return MY_CS_TOOSMALL; hi=s[0]; if (hi<0x80) { pwc[0]=hi; return 1; } if (s+2>e) return MY_CS_TOOSMALL2; if (!IS_MB2_CHAR(hi, s[1])) return MY_CS_ILSEQ; if (!(pwc[0]=func_gbk_uni_onechar( (hi<<8) + s[1]))) return -2; return 2; }
O3
c
my_mb_wc_gbk: pushq %rbp movq %rsp, %rbp movl $0xffffff9b, %eax # imm = 0xFFFFFF9B cmpq %rcx, %rdx jae 0x54769 movsbq (%rdx), %rdi testq %rdi, %rdi js 0x546ed movq %rdi, (%rsi) movl $0x1, %eax jmp 0x54769 leaq 0x2(%rdx), %r8 movl $0xffffff9a, %eax # imm = 0xFFFFFF9A cmpq %rcx, %r8 ja 0x54769 movzbl %dil, %ecx xorl %eax, %eax cmpl $0x80, %ecx je 0x54769 cmpl $0xff, %ecx je 0x54769 movzbl 0x1(%rdx), %edx leal -0x7f(%rdx), %edi cmpb $-0x3f, %dil setb %dil cmpb $-0x1, %dl setge %r8b testb %dil, %r8b jne 0x54769 shll $0x8, %ecx leal (%rcx,%rdx), %eax addl $0xffff7ec0, %eax # imm = 0xFFFF7EC0 cmpl $0x7d10, %eax # imm = 0x7D10 jae 0x5475d movl %eax, %eax leaq 0x145ee9(%rip), %rcx # 0x19a630 movzwl (%rcx,%rax,2), %eax movzwl %ax, %ecx movq %rcx, (%rsi) movl $0x2, %eax testw %cx, %cx jne 0x54769 jmp 0x54764 movq $0x0, (%rsi) movl $0xfffffffe, %eax # imm = 0xFFFFFFFE popq %rbp retq
my_mb_wc_gbk: push rbp mov rbp, rsp mov eax, 0FFFFFF9Bh cmp rdx, rcx jnb loc_54769 movsx rdi, byte ptr [rdx] test rdi, rdi js short loc_546ED mov [rsi], rdi mov eax, 1 jmp short loc_54769 loc_546ED: lea r8, [rdx+2] mov eax, 0FFFFFF9Ah cmp r8, rcx ja short loc_54769 movzx ecx, dil xor eax, eax cmp ecx, 80h jz short loc_54769 cmp ecx, 0FFh jz short loc_54769 movzx edx, byte ptr [rdx+1] lea edi, [rdx-7Fh] cmp dil, 0C1h setb dil cmp dl, 0FFh setnl r8b test r8b, dil jnz short loc_54769 shl ecx, 8 lea eax, [rcx+rdx] add eax, 0FFFF7EC0h cmp eax, 7D10h jnb short loc_5475D mov eax, eax lea rcx, tab_gbk_uni0 movzx eax, word ptr [rcx+rax*2] movzx ecx, ax mov [rsi], rcx mov eax, 2 test cx, cx jnz short loc_54769 jmp short loc_54764 loc_5475D: mov qword ptr [rsi], 0 loc_54764: mov eax, 0FFFFFFFEh loc_54769: pop rbp retn
long long my_mb_wc_gbk(long long a1, long long *a2, char *a3, unsigned long long a4) { long long result; // rax long long v5; // rdi int v6; // edx unsigned int v7; // eax long long v8; // rcx result = 4294967195LL; if ( (unsigned long long)a3 < a4 ) { v5 = *a3; if ( v5 >= 0 ) { *a2 = v5; return 1LL; } result = 4294967194LL; if ( (unsigned long long)(a3 + 2) <= a4 ) { result = 0LL; if ( (unsigned __int8)v5 != 128 && (unsigned __int8)v5 != 255 ) { v6 = (unsigned __int8)a3[1]; if ( (unsigned __int8)(v6 - 127) >= 0xC1u || (char)v6 < -1 ) { v7 = ((unsigned __int8)v5 << 8) + v6 - 33088; if ( v7 >= 0x7D10 ) { *a2 = 0LL; } else { v8 = tab_gbk_uni0[v7]; *a2 = v8; result = 2LL; if ( (_WORD)v8 ) return result; } return 4294967294LL; } } } } return result; }
my_mb_wc_gbk: PUSH RBP MOV RBP,RSP MOV EAX,0xffffff9b CMP RDX,RCX JNC 0x00154769 MOVSX RDI,byte ptr [RDX] TEST RDI,RDI JS 0x001546ed MOV qword ptr [RSI],RDI MOV EAX,0x1 JMP 0x00154769 LAB_001546ed: LEA R8,[RDX + 0x2] MOV EAX,0xffffff9a CMP R8,RCX JA 0x00154769 MOVZX ECX,DIL XOR EAX,EAX CMP ECX,0x80 JZ 0x00154769 CMP ECX,0xff JZ 0x00154769 MOVZX EDX,byte ptr [RDX + 0x1] LEA EDI,[RDX + -0x7f] CMP DIL,0xc1 SETC DIL CMP DL,0xff SETGE R8B TEST R8B,DIL JNZ 0x00154769 SHL ECX,0x8 LEA EAX,[RCX + RDX*0x1] ADD EAX,0xffff7ec0 CMP EAX,0x7d10 JNC 0x0015475d MOV EAX,EAX LEA RCX,[0x29a630] MOVZX EAX,word ptr [RCX + RAX*0x2] MOVZX ECX,AX MOV qword ptr [RSI],RCX MOV EAX,0x2 TEST CX,CX JNZ 0x00154769 JMP 0x00154764 LAB_0015475d: MOV qword ptr [RSI],0x0 LAB_00154764: MOV EAX,0xfffffffe LAB_00154769: POP RBP RET
int8 my_mb_wc_gbk(int8 param_1,ulong *param_2,byte *param_3,byte *param_4) { byte bVar1; byte bVar2; ushort uVar3; uint uVar4; int8 uVar5; uVar5 = 0xffffff9b; if (param_3 < param_4) { bVar1 = *param_3; if ((long)(char)bVar1 < 0) { uVar5 = 0xffffff9a; if ((((param_3 + 2 <= param_4) && (uVar5 = 0, bVar1 != 0x80)) && (bVar1 != 0xff)) && (bVar2 = param_3[1], (char)bVar2 < -1 || 0xc0 < (byte)(bVar2 + 0x81))) { uVar4 = ((uint)bVar1 * 0x100 + (uint)bVar2) - 0x8140; if (uVar4 < 0x7d10) { uVar3 = *(ushort *)(&tab_gbk_uni0 + (ulong)uVar4 * 2); *param_2 = (ulong)uVar3; if (uVar3 != 0) { return 2; } } else { *param_2 = 0; } uVar5 = 0xfffffffe; } } else { *param_2 = (long)(char)bVar1; uVar5 = 1; } } return uVar5; }
34,788
str_to_ggml_type(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&)
7CodeWizard[P]stablediffusion/model.cpp
ggml_type str_to_ggml_type(const std::string& dtype) { ggml_type ttype = GGML_TYPE_COUNT; if (dtype == "F16") { ttype = GGML_TYPE_F16; } else if (dtype == "BF16") { ttype = GGML_TYPE_F32; } else if (dtype == "F32") { ttype = GGML_TYPE_F32; } return ttype; }
O0
cpp
str_to_ggml_type(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&): subq $0x18, %rsp movq %rdi, 0x10(%rsp) movl $0x13, 0xc(%rsp) movq 0x10(%rsp), %rdi leaq 0xc6604(%rip), %rsi # 0x183f91 callq 0x301e0 testb $0x1, %al jne 0xbd998 jmp 0xbd9a2 movl $0x1, 0xc(%rsp) jmp 0xbd9e6 movq 0x10(%rsp), %rdi leaq 0xc65e2(%rip), %rsi # 0x183f90 callq 0x301e0 testb $0x1, %al jne 0xbd9b9 jmp 0xbd9c3 movl $0x0, 0xc(%rsp) jmp 0xbd9e4 movq 0x10(%rsp), %rdi leaq 0xcd4ce(%rip), %rsi # 0x18ae9d callq 0x301e0 testb $0x1, %al jne 0xbd9da jmp 0xbd9e2 movl $0x0, 0xc(%rsp) jmp 0xbd9e4 jmp 0xbd9e6 movl 0xc(%rsp), %eax addq $0x18, %rsp retq nop
_Z16str_to_ggml_typeRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE: sub rsp, 18h mov [rsp+18h+var_8], rdi mov [rsp+18h+var_C], 13h mov rdi, [rsp+18h+var_8] lea rsi, aBf16+1; "F16" call _ZSteqIcSt11char_traitsIcESaIcEEbRKNSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_; std::operator==<char>(std::string const&,char const*) test al, 1 jnz short loc_BD998 jmp short loc_BD9A2 loc_BD998: mov [rsp+18h+var_C], 1 jmp short loc_BD9E6 loc_BD9A2: mov rdi, [rsp+18h+var_8] lea rsi, aBf16; "BF16" call _ZSteqIcSt11char_traitsIcESaIcEEbRKNSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_; std::operator==<char>(std::string const&,char const*) test al, 1 jnz short loc_BD9B9 jmp short loc_BD9C3 loc_BD9B9: mov [rsp+18h+var_C], 0 jmp short loc_BD9E4 loc_BD9C3: mov rdi, [rsp+18h+var_8] lea rsi, aMapCustom1F32+0Ch; "F32" call _ZSteqIcSt11char_traitsIcESaIcEEbRKNSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_; std::operator==<char>(std::string const&,char const*) test al, 1 jnz short loc_BD9DA jmp short loc_BD9E2 loc_BD9DA: mov [rsp+18h+var_C], 0 loc_BD9E2: jmp short $+2 loc_BD9E4: jmp short $+2 loc_BD9E6: mov eax, [rsp+18h+var_C] add rsp, 18h retn
long long str_to_ggml_type(long long a1) { unsigned int v2; // [rsp+Ch] [rbp-Ch] v2 = 19; if ( std::operator==<char>(a1, (long long)"F16") ) { return 1; } else if ( std::operator==<char>(a1, (long long)"BF16") ) { return 0; } else if ( std::operator==<char>(a1, (long long)"F32") ) { return 0; } return v2; }
str_to_ggml_type: SUB RSP,0x18 MOV qword ptr [RSP + 0x10],RDI MOV dword ptr [RSP + 0xc],0x13 MOV RDI,qword ptr [RSP + 0x10] LEA RSI,[0x283f91] CALL 0x001301e0 TEST AL,0x1 JNZ 0x001bd998 JMP 0x001bd9a2 LAB_001bd998: MOV dword ptr [RSP + 0xc],0x1 JMP 0x001bd9e6 LAB_001bd9a2: MOV RDI,qword ptr [RSP + 0x10] LEA RSI,[0x283f90] CALL 0x001301e0 TEST AL,0x1 JNZ 0x001bd9b9 JMP 0x001bd9c3 LAB_001bd9b9: MOV dword ptr [RSP + 0xc],0x0 JMP 0x001bd9e4 LAB_001bd9c3: MOV RDI,qword ptr [RSP + 0x10] LEA RSI,[0x28ae9d] CALL 0x001301e0 TEST AL,0x1 JNZ 0x001bd9da JMP 0x001bd9e2 LAB_001bd9da: MOV dword ptr [RSP + 0xc],0x0 LAB_001bd9e2: JMP 0x001bd9e4 LAB_001bd9e4: JMP 0x001bd9e6 LAB_001bd9e6: MOV EAX,dword ptr [RSP + 0xc] ADD RSP,0x18 RET
/* str_to_ggml_type(std::__cxx11::string const&) */ int4 str_to_ggml_type(string *param_1) { bool bVar1; int4 local_c; local_c = 0x13; bVar1 = std::operator==(param_1,"F16"); if (bVar1) { local_c = 1; } else { bVar1 = std::operator==(param_1,"BF16"); if (bVar1) { local_c = 0; } else { bVar1 = std::operator==(param_1,"F32"); if (bVar1) { local_c = 0; } } } return local_c; }
34,789
str_to_ggml_type(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&)
7CodeWizard[P]stablediffusion/model.cpp
ggml_type str_to_ggml_type(const std::string& dtype) { ggml_type ttype = GGML_TYPE_COUNT; if (dtype == "F16") { ttype = GGML_TYPE_F16; } else if (dtype == "BF16") { ttype = GGML_TYPE_F32; } else if (dtype == "F32") { ttype = GGML_TYPE_F32; } return ttype; }
O2
cpp
str_to_ggml_type(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&): pushq %rbx movq %rdi, %rbx leaq 0x559d2(%rip), %rsi # 0x9de11 callq 0x19efa testb %al, %al je 0x4844d pushq $0x1 popq %rax jmp 0x4847d leaq 0x559bc(%rip), %rsi # 0x9de10 movq %rbx, %rdi callq 0x19efa movl %eax, %ecx xorl %eax, %eax testb %cl, %cl jne 0x4847d leaq 0x5ab64(%rip), %rsi # 0xa2fcf movq %rbx, %rdi callq 0x19efa xorl %ecx, %ecx testb %al, %al pushq $0x13 popq %rax cmovnel %ecx, %eax popq %rbx retq
_Z16str_to_ggml_typeRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE: push rbx mov rbx, rdi lea rsi, aBf16+1; "F16" call _ZSteqIcSt11char_traitsIcESaIcEEbRKNSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_; std::operator==<char>(std::string const&,char const*) test al, al jz short loc_4844D push 1 pop rax jmp short loc_4847D loc_4844D: lea rsi, aBf16; "BF16" mov rdi, rbx call _ZSteqIcSt11char_traitsIcESaIcEEbRKNSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_; std::operator==<char>(std::string const&,char const*) mov ecx, eax xor eax, eax test cl, cl jnz short loc_4847D lea rsi, aMapCustom1F32+0Ch; "F32" mov rdi, rbx call _ZSteqIcSt11char_traitsIcESaIcEEbRKNSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_; std::operator==<char>(std::string const&,char const*) xor ecx, ecx test al, al push 13h pop rax cmovnz eax, ecx loc_4847D: pop rbx retn
long long str_to_ggml_type(long long a1) { long long result; // rax bool v2; // cl bool v3; // zf if ( std::operator==<char>(a1) ) return 1LL; v2 = std::operator==<char>(a1); result = 0LL; if ( !v2 ) { v3 = !std::operator==<char>(a1); result = 19LL; if ( !v3 ) return 0LL; } return result; }
str_to_ggml_type: PUSH RBX MOV RBX,RDI LEA RSI,[0x19de11] CALL 0x00119efa TEST AL,AL JZ 0x0014844d PUSH 0x1 POP RAX JMP 0x0014847d LAB_0014844d: LEA RSI,[0x19de10] MOV RDI,RBX CALL 0x00119efa MOV ECX,EAX XOR EAX,EAX TEST CL,CL JNZ 0x0014847d LEA RSI,[0x1a2fcf] MOV RDI,RBX CALL 0x00119efa XOR ECX,ECX TEST AL,AL PUSH 0x13 POP RAX CMOVNZ EAX,ECX LAB_0014847d: POP RBX RET
/* str_to_ggml_type(std::__cxx11::string const&) */ int8 str_to_ggml_type(string *param_1) { bool bVar1; int8 uVar2; bVar1 = std::operator==(param_1,"F16"); if (bVar1) { uVar2 = 1; } else { bVar1 = std::operator==(param_1,"BF16"); uVar2 = 0; if (!bVar1) { bVar1 = std::operator==(param_1,"F32"); uVar2 = 0x13; if (bVar1) { uVar2 = 0; } } } return uVar2; }
34,790
str_to_ggml_type(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&)
7CodeWizard[P]stablediffusion/model.cpp
ggml_type str_to_ggml_type(const std::string& dtype) { ggml_type ttype = GGML_TYPE_COUNT; if (dtype == "F16") { ttype = GGML_TYPE_F16; } else if (dtype == "BF16") { ttype = GGML_TYPE_F32; } else if (dtype == "F32") { ttype = GGML_TYPE_F32; } return ttype; }
O3
cpp
str_to_ggml_type(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&): pushq %rbx movq %rdi, %rbx leaq 0x57aae(%rip), %rsi # 0xc0f11 callq 0xa150 testl %eax, %eax je 0x6949c leaq 0x57a9d(%rip), %rsi # 0xc0f10 movq %rbx, %rdi callq 0xa150 testl %eax, %eax je 0x694a3 leaq 0x5cd76(%rip), %rsi # 0xc61fc movq %rbx, %rdi callq 0xa150 movl %eax, %ecx testl %eax, %eax movl $0x13, %eax cmovel %ecx, %eax jmp 0x694a5 movl $0x1, %eax jmp 0x694a5 xorl %eax, %eax popq %rbx retq
_Z16str_to_ggml_typeRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE: push rbx mov rbx, rdi lea rsi, aBf16+1; "F16" call __ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE7compareEPKc; std::string::compare(char const*) test eax, eax jz short loc_6949C lea rsi, aBf16; "BF16" mov rdi, rbx call __ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE7compareEPKc; std::string::compare(char const*) test eax, eax jz short loc_694A3 lea rsi, aMapCustom1F32+0Ch; "F32" mov rdi, rbx call __ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE7compareEPKc; std::string::compare(char const*) mov ecx, eax test eax, eax mov eax, 13h cmovz eax, ecx jmp short loc_694A5 loc_6949C: mov eax, 1 jmp short loc_694A5 loc_694A3: xor eax, eax loc_694A5: pop rbx retn
long long str_to_ggml_type(long long a1) { int v1; // ecx long long result; // rax if ( !(unsigned int)std::string::compare(a1, "F16") ) return 1LL; if ( !(unsigned int)std::string::compare(a1, "BF16") ) return 0LL; v1 = std::string::compare(a1, "F32"); result = 19LL; if ( !v1 ) return 0LL; return result; }
34,791
mi_setup_functions
eloqsql/storage/myisam/mi_open.c
void mi_setup_functions(register MYISAM_SHARE *share) { if (share->options & HA_OPTION_COMPRESS_RECORD) { share->read_record=_mi_read_pack_record; share->read_rnd=_mi_read_rnd_pack_record; if ((share->options & (HA_OPTION_PACK_RECORD | HA_OPTION_NULL_FIELDS)) || share->has_varchar_fields) share->calc_checksum= mi_checksum; else share->calc_checksum= mi_static_checksum; share->calc_check_checksum= share->calc_checksum; if (!(share->options & HA_OPTION_TEMP_COMPRESS_RECORD)) share->calc_checksum=0; /* No checksum */ } else if (share->options & HA_OPTION_PACK_RECORD) { share->read_record=_mi_read_dynamic_record; share->read_rnd=_mi_read_rnd_dynamic_record; share->delete_record=_mi_delete_dynamic_record; share->compare_record=_mi_cmp_dynamic_record; share->compare_unique=_mi_cmp_dynamic_unique; share->calc_checksum= mi_checksum; share->calc_check_checksum= share->calc_checksum; /* add bits used to pack data to pack_reclength for faster allocation */ share->base.pack_reclength+= share->base.pack_bits; if (share->base.blobs) { share->update_record=_mi_update_blob_record; share->write_record=_mi_write_blob_record; } else { share->write_record=_mi_write_dynamic_record; share->update_record=_mi_update_dynamic_record; } } else { share->read_record=_mi_read_static_record; share->read_rnd=_mi_read_rnd_static_record; share->delete_record=_mi_delete_static_record; share->compare_record=_mi_cmp_static_record; share->update_record=_mi_update_static_record; share->write_record=_mi_write_static_record; share->compare_unique=_mi_cmp_static_unique; if (share->options & HA_OPTION_NULL_FIELDS) share->calc_checksum= mi_checksum; else share->calc_checksum= mi_static_checksum; share->calc_check_checksum= share->calc_checksum; } share->file_read= mi_nommap_pread; share->file_write= mi_nommap_pwrite; if (!(share->options & HA_OPTION_CHECKSUM)) share->calc_checksum=0; return; }
O3
c
mi_setup_functions: pushq %rbp movq %rsp, %rbp movq 0x318(%rdi), %rax testb $0x4, %al jne 0x9f0b8 testb $0x1, %al jne 0x9f118 leaq 0x76de(%rip), %rcx # 0xa6725 movq %rcx, 0x298(%rdi) leaq 0x77b9(%rip), %rcx # 0xa680e movq %rcx, 0x2b8(%rdi) leaq 0x74e5(%rip), %rcx # 0xa6548 movq %rcx, 0x2b0(%rdi) leaq 0x757c(%rip), %rcx # 0xa65ed movq %rcx, 0x2c0(%rdi) leaq 0x748f(%rip), %rcx # 0xa650e movq %rcx, 0x2a8(%rdi) leaq 0x71cf(%rip), %rcx # 0xa625c movq %rcx, 0x2a0(%rdi) leaq 0x761a(%rip), %rcx # 0xa66b5 movq %rcx, 0x2d8(%rdi) btl $0xa, %eax jb 0x9f1c4 leaq 0xf7bf(%rip), %rdx # 0xae872 jmp 0x9f1cb leaq 0x1c49(%rip), %rcx # 0xa0d08 movq %rcx, 0x298(%rdi) leaq 0x2126(%rip), %rcx # 0xa11f3 movq %rcx, 0x2b8(%rdi) testl $0x401, %eax # imm = 0x401 jne 0x9f0ed cmpb $0x0, 0x37e(%rdi) jne 0x9f0ed leaq 0xf787(%rip), %rcx # 0xae872 jmp 0x9f0f4 leaq 0xf678(%rip), %rcx # 0xae76c movq %rcx, 0x2c8(%rdi) movq %rcx, 0x2d0(%rdi) testw %ax, %ax js 0x9f1e0 movl $0x2c8, %ecx # imm = 0x2C8 xorl %r8d, %r8d jmp 0x9f1dc leaq -0x6b2f(%rip), %rcx # 0x985f0 movq %rcx, 0x298(%rdi) leaq -0x6326(%rip), %rcx # 0x98e07 movq %rcx, 0x2b8(%rdi) leaq -0x80e4(%rip), %rcx # 0x97057 movq %rcx, 0x2b0(%rdi) leaq -0x676c(%rip), %rcx # 0x989dd movq %rcx, 0x2c0(%rdi) leaq -0x685f(%rip), %rcx # 0x988f8 movq %rcx, 0x2d8(%rdi) leaq 0xf607(%rip), %rcx # 0xae76c movq %rcx, 0x2c8(%rdi) movq %rcx, 0x2d0(%rdi) movl 0x18c(%rdi), %ecx addq %rcx, 0x148(%rdi) xorl %ecx, %ecx xorl %esi, %esi cmpl $0x0, 0x188(%rdi) sete %cl setne %sil leaq -0x81d6(%rip), %rdx # 0x96fc3 cmoveq 0x315df7(%rip), %rdx # 0x3b4f98 leaq -0x82ee(%rip), %r8 # 0x96eba cmoveq 0x315de0(%rip), %r8 # 0x3b4f90 shll $0x3, %esi movl $0x2a0, %r9d # imm = 0x2A0 orq %r9, %rsi shll $0x3, %ecx orq %r9, %rcx jmp 0x9f1d8 leaq 0xf5a1(%rip), %rdx # 0xae76c movl $0x2d0, %ecx # imm = 0x2D0 movl $0x2c8, %esi # imm = 0x2C8 movq %rdx, %r8 movq %rdx, (%rdi,%rsi) movq %r8, (%rdi,%rcx) leaq -0x8df7(%rip), %rcx # 0x963f0 movq %rcx, 0x2e0(%rdi) leaq -0x8d2b(%rip), %rcx # 0x964ca movq %rcx, 0x2e8(%rdi) testb $0x20, %al jne 0x9f20b movq $0x0, 0x2c8(%rdi) popq %rbp retq
mi_setup_functions: push rbp mov rbp, rsp mov rax, [rdi+318h] test al, 4 jnz loc_9F0B8 test al, 1 jnz loc_9F118 lea rcx, _mi_read_static_record mov [rdi+298h], rcx lea rcx, _mi_read_rnd_static_record mov [rdi+2B8h], rcx lea rcx, _mi_delete_static_record mov [rdi+2B0h], rcx lea rcx, _mi_cmp_static_record mov [rdi+2C0h], rcx lea rcx, _mi_update_static_record mov [rdi+2A8h], rcx lea rcx, _mi_write_static_record mov [rdi+2A0h], rcx lea rcx, _mi_cmp_static_unique mov [rdi+2D8h], rcx bt eax, 0Ah jb loc_9F1C4 lea rdx, mi_static_checksum jmp loc_9F1CB loc_9F0B8: lea rcx, _mi_read_pack_record mov [rdi+298h], rcx lea rcx, _mi_read_rnd_pack_record mov [rdi+2B8h], rcx test eax, 401h jnz short loc_9F0ED cmp byte ptr [rdi+37Eh], 0 jnz short loc_9F0ED lea rcx, mi_static_checksum jmp short loc_9F0F4 loc_9F0ED: lea rcx, mi_checksum loc_9F0F4: mov [rdi+2C8h], rcx mov [rdi+2D0h], rcx test ax, ax js loc_9F1E0 mov ecx, 2C8h xor r8d, r8d jmp loc_9F1DC loc_9F118: lea rcx, _mi_read_dynamic_record mov [rdi+298h], rcx lea rcx, _mi_read_rnd_dynamic_record mov [rdi+2B8h], rcx lea rcx, _mi_delete_dynamic_record mov [rdi+2B0h], rcx lea rcx, _mi_cmp_dynamic_record mov [rdi+2C0h], rcx lea rcx, _mi_cmp_dynamic_unique mov [rdi+2D8h], rcx lea rcx, mi_checksum mov [rdi+2C8h], rcx mov [rdi+2D0h], rcx mov ecx, [rdi+18Ch] add [rdi+148h], rcx xor ecx, ecx xor esi, esi cmp dword ptr [rdi+188h], 0 setz cl setnz sil lea rdx, _mi_update_blob_record cmovz rdx, cs:_mi_write_dynamic_record_ptr lea r8, _mi_write_blob_record cmovz r8, cs:_mi_update_dynamic_record_ptr shl esi, 3 mov r9d, 2A0h or rsi, r9 shl ecx, 3 or rcx, r9 jmp short loc_9F1D8 loc_9F1C4: lea rdx, mi_checksum loc_9F1CB: mov ecx, 2D0h mov esi, 2C8h mov r8, rdx loc_9F1D8: mov [rdi+rsi], rdx loc_9F1DC: mov [rdi+rcx], r8 loc_9F1E0: lea rcx, mi_nommap_pread mov [rdi+2E0h], rcx lea rcx, mi_nommap_pwrite mov [rdi+2E8h], rcx test al, 20h jnz short loc_9F20B mov qword ptr [rdi+2C8h], 0 loc_9F20B: pop rbp retn
long long mi_setup_functions(long long a1) { long long result; // rax long long ( *v2)(); // rdx long long ( *v3)(); // rcx long long v4; // rcx void *v5; // r8 long long v6; // rsi result = *(_QWORD *)(a1 + 792); if ( (result & 4) == 0 ) { if ( (result & 1) != 0 ) { *(_QWORD *)(a1 + 664) = mi_read_dynamic_record; *(_QWORD *)(a1 + 696) = mi_read_rnd_dynamic_record; *(_QWORD *)(a1 + 688) = mi_delete_dynamic_record; *(_QWORD *)(a1 + 704) = mi_cmp_dynamic_record; *(_QWORD *)(a1 + 728) = mi_cmp_dynamic_unique; *(_QWORD *)(a1 + 712) = mi_checksum; *(_QWORD *)(a1 + 720) = mi_checksum; *(_QWORD *)(a1 + 328) += *(unsigned int *)(a1 + 396); v2 = (long long ( *)())mi_update_blob_record; if ( !*(_DWORD *)(a1 + 392) ) v2 = (long long ( *)())mi_write_dynamic_record; v5 = mi_write_blob_record; if ( !*(_DWORD *)(a1 + 392) ) v5 = mi_update_dynamic_record; v6 = (8 * (unsigned int)(*(_DWORD *)(a1 + 392) != 0)) | 0x2A0LL; v4 = (8 * (unsigned int)(*(_DWORD *)(a1 + 392) == 0)) | 0x2A0LL; } else { *(_QWORD *)(a1 + 664) = mi_read_static_record; *(_QWORD *)(a1 + 696) = mi_read_rnd_static_record; *(_QWORD *)(a1 + 688) = mi_delete_static_record; *(_QWORD *)(a1 + 704) = mi_cmp_static_record; *(_QWORD *)(a1 + 680) = mi_update_static_record; *(_QWORD *)(a1 + 672) = mi_write_static_record; *(_QWORD *)(a1 + 728) = mi_cmp_static_unique; if ( (result & 0x400) != 0 ) v2 = mi_checksum; else v2 = mi_static_checksum; v4 = 720LL; v6 = 712LL; v5 = v2; } *(_QWORD *)(a1 + v6) = v2; goto LABEL_19; } *(_QWORD *)(a1 + 664) = mi_read_pack_record; *(_QWORD *)(a1 + 696) = mi_read_rnd_pack_record; if ( (result & 0x401) != 0 || *(_BYTE *)(a1 + 894) ) v3 = mi_checksum; else v3 = mi_static_checksum; *(_QWORD *)(a1 + 712) = v3; *(_QWORD *)(a1 + 720) = v3; if ( (result & 0x8000u) == 0LL ) { v4 = 712LL; v5 = 0LL; LABEL_19: *(_QWORD *)(a1 + v4) = v5; } *(_QWORD *)(a1 + 736) = mi_nommap_pread; *(_QWORD *)(a1 + 744) = mi_nommap_pwrite; if ( (result & 0x20) == 0 ) *(_QWORD *)(a1 + 712) = 0LL; return result; }
mi_setup_functions: PUSH RBP MOV RBP,RSP MOV RAX,qword ptr [RDI + 0x318] TEST AL,0x4 JNZ 0x0019f0b8 TEST AL,0x1 JNZ 0x0019f118 LEA RCX,[0x1a6725] MOV qword ptr [RDI + 0x298],RCX LEA RCX,[0x1a680e] MOV qword ptr [RDI + 0x2b8],RCX LEA RCX,[0x1a6548] MOV qword ptr [RDI + 0x2b0],RCX LEA RCX,[0x1a65ed] MOV qword ptr [RDI + 0x2c0],RCX LEA RCX,[0x1a650e] MOV qword ptr [RDI + 0x2a8],RCX LEA RCX,[0x1a625c] MOV qword ptr [RDI + 0x2a0],RCX LEA RCX,[0x1a66b5] MOV qword ptr [RDI + 0x2d8],RCX BT EAX,0xa JC 0x0019f1c4 LEA RDX,[0x1ae872] JMP 0x0019f1cb LAB_0019f0b8: LEA RCX,[0x1a0d08] MOV qword ptr [RDI + 0x298],RCX LEA RCX,[0x1a11f3] MOV qword ptr [RDI + 0x2b8],RCX TEST EAX,0x401 JNZ 0x0019f0ed CMP byte ptr [RDI + 0x37e],0x0 JNZ 0x0019f0ed LEA RCX,[0x1ae872] JMP 0x0019f0f4 LAB_0019f0ed: LEA RCX,[0x1ae76c] LAB_0019f0f4: MOV qword ptr [RDI + 0x2c8],RCX MOV qword ptr [RDI + 0x2d0],RCX TEST AX,AX JS 0x0019f1e0 MOV ECX,0x2c8 XOR R8D,R8D JMP 0x0019f1dc LAB_0019f118: LEA RCX,[0x1985f0] MOV qword ptr [RDI + 0x298],RCX LEA RCX,[0x198e07] MOV qword ptr [RDI + 0x2b8],RCX LEA RCX,[0x197057] MOV qword ptr [RDI + 0x2b0],RCX LEA RCX,[0x1989dd] MOV qword ptr [RDI + 0x2c0],RCX LEA RCX,[0x1988f8] MOV qword ptr [RDI + 0x2d8],RCX LEA RCX,[0x1ae76c] MOV qword ptr [RDI + 0x2c8],RCX MOV qword ptr [RDI + 0x2d0],RCX MOV ECX,dword ptr [RDI + 0x18c] ADD qword ptr [RDI + 0x148],RCX XOR ECX,ECX XOR ESI,ESI CMP dword ptr [RDI + 0x188],0x0 SETZ CL SETNZ SIL LEA RDX,[0x196fc3] CMOVZ RDX,qword ptr [0x004b4f98] LEA R8,[0x196eba] CMOVZ R8,qword ptr [0x004b4f90] SHL ESI,0x3 MOV R9D,0x2a0 OR RSI,R9 SHL ECX,0x3 OR RCX,R9 JMP 0x0019f1d8 LAB_0019f1c4: LEA RDX,[0x1ae76c] LAB_0019f1cb: MOV ECX,0x2d0 MOV ESI,0x2c8 MOV R8,RDX LAB_0019f1d8: MOV qword ptr [RDI + RSI*0x1],RDX LAB_0019f1dc: MOV qword ptr [RDI + RCX*0x1],R8 LAB_0019f1e0: LEA RCX,[0x1963f0] MOV qword ptr [RDI + 0x2e0],RCX LEA RCX,[0x1964ca] MOV qword ptr [RDI + 0x2e8],RCX TEST AL,0x20 JNZ 0x0019f20b MOV qword ptr [RDI + 0x2c8],0x0 LAB_0019f20b: POP RBP RET
void mi_setup_functions(long param_1) { ulong uVar1; ulong uVar2; code *pcVar3; ulong uVar4; code *pcVar5; bool bVar6; uVar1 = *(ulong *)(param_1 + 0x318); if ((uVar1 & 4) == 0) { if ((uVar1 & 1) == 0) { *(code **)(param_1 + 0x298) = _mi_read_static_record; *(code **)(param_1 + 0x2b8) = _mi_read_rnd_static_record; *(code **)(param_1 + 0x2b0) = _mi_delete_static_record; *(code **)(param_1 + 0x2c0) = _mi_cmp_static_record; *(code **)(param_1 + 0x2a8) = _mi_update_static_record; *(code **)(param_1 + 0x2a0) = _mi_write_static_record; *(code **)(param_1 + 0x2d8) = _mi_cmp_static_unique; if (((uint)uVar1 >> 10 & 1) == 0) { pcVar3 = mi_static_checksum; } else { pcVar3 = mi_checksum; } uVar2 = 0x2d0; uVar4 = 0x2c8; pcVar5 = pcVar3; } else { *(code **)(param_1 + 0x298) = _mi_read_dynamic_record; *(code **)(param_1 + 0x2b8) = _mi_read_rnd_dynamic_record; *(code **)(param_1 + 0x2b0) = _mi_delete_dynamic_record; *(code **)(param_1 + 0x2c0) = _mi_cmp_dynamic_record; *(code **)(param_1 + 0x2d8) = _mi_cmp_dynamic_unique; *(code **)(param_1 + 0x2c8) = mi_checksum; *(code **)(param_1 + 0x2d0) = mi_checksum; *(long *)(param_1 + 0x148) = *(long *)(param_1 + 0x148) + (ulong)*(uint *)(param_1 + 0x18c); bVar6 = *(int *)(param_1 + 0x188) == 0; pcVar3 = _mi_update_blob_record; if (bVar6) { pcVar3 = (code *)PTR__mi_write_dynamic_record_004b4f98; } pcVar5 = _mi_write_blob_record; if (bVar6) { pcVar5 = (code *)PTR__mi_update_dynamic_record_004b4f90; } uVar4 = (ulong)!bVar6 << 3 | 0x2a0; uVar2 = (ulong)bVar6 << 3 | 0x2a0; } *(code **)(param_1 + uVar4) = pcVar3; } else { *(code **)(param_1 + 0x298) = _mi_read_pack_record; *(code **)(param_1 + 0x2b8) = _mi_read_rnd_pack_record; if (((uVar1 & 0x401) == 0) && (*(char *)(param_1 + 0x37e) == '\0')) { pcVar5 = mi_static_checksum; } else { pcVar5 = mi_checksum; } *(code **)(param_1 + 0x2c8) = pcVar5; *(code **)(param_1 + 0x2d0) = pcVar5; if ((short)uVar1 < 0) goto LAB_0019f1e0; uVar2 = 0x2c8; pcVar5 = (code *)0x0; } *(code **)(param_1 + uVar2) = pcVar5; LAB_0019f1e0: *(code **)(param_1 + 0x2e0) = mi_nommap_pread; *(code **)(param_1 + 0x2e8) = mi_nommap_pwrite; if ((uVar1 & 0x20) == 0) { *(int8 *)(param_1 + 0x2c8) = 0; } return; }
34,792
minja::Value::operator-() const
monkey531[P]llama/common/minja.hpp
Value operator-() const { if (is_number_integer()) return -get<int64_t>(); else return -get<double>(); }
O2
cpp
minja::Value::operator-() const: pushq %rbx subq $0x10, %rsp movq %rdi, %rbx movb 0x40(%rsi), %al addb $-0x5, %al movq %rsi, %rdi cmpb $0x1, %al ja 0x658b0 callq 0x659c6 negq %rax leaq 0x8(%rsp), %rsi movq %rax, (%rsi) movq %rbx, %rdi callq 0x65a7c jmp 0x658cc callq 0x65a9a xorps 0x4f1f4(%rip), %xmm0 # 0xb4ab0 leaq 0x8(%rsp), %rsi movlps %xmm0, (%rsi) movq %rbx, %rdi callq 0x65b50 movq %rbx, %rax addq $0x10, %rsp popq %rbx retq nop
_ZNK5minja5ValuengEv: push rbx sub rsp, 10h mov rbx, rdi mov al, [rsi+40h] add al, 0FBh mov rdi, rsi cmp al, 1 ja short loc_658B0 call _ZNK5minja5Value3getIlEET_v; minja::Value::get<long>(void) neg rax lea rsi, [rsp+18h+var_10]; __int64 * mov [rsi], rax mov rdi, rbx; this call _ZN5minja5ValueC2ERKl; minja::Value::Value(long const&) jmp short loc_658CC loc_658B0: call _ZNK5minja5Value3getIdEET_v; minja::Value::get<double>(void) xorps xmm0, cs:xmmword_B4AB0 lea rsi, [rsp+18h+var_10]; double * movlps qword ptr [rsi], xmm0 mov rdi, rbx; this call _ZN5minja5ValueC2ERKd; minja::Value::Value(double const&) loc_658CC: mov rax, rbx add rsp, 10h pop rbx retn
minja::Value * minja::Value::operator-(minja::Value *this, long long a2, __m128 a3) { long long v4[2]; // [rsp+8h] [rbp-10h] BYREF if ( (unsigned __int8)(*(_BYTE *)(a2 + 64) - 5) > 1u ) { *(double *)a3.m128_u64 = minja::Value::get<double>(a2); _mm_storel_ps((double *)v4, _mm_xor_ps(a3, (__m128)xmmword_B4AB0)); minja::Value::Value(this, (const double *)v4); } else { v4[0] = -minja::Value::get<long>(a2); minja::Value::Value(this, v4); } return this; }
operator-: PUSH RBX SUB RSP,0x10 MOV RBX,RDI MOV AL,byte ptr [RSI + 0x40] ADD AL,0xfb MOV RDI,RSI CMP AL,0x1 JA 0x001658b0 CALL 0x001659c6 NEG RAX LEA RSI,[RSP + 0x8] MOV qword ptr [RSI],RAX MOV RDI,RBX CALL 0x00165a7c JMP 0x001658cc LAB_001658b0: CALL 0x00165a9a XORPS XMM0,xmmword ptr [0x001b4ab0] LEA RSI,[RSP + 0x8] MOVLPS qword ptr [RSI],XMM0 MOV RDI,RBX CALL 0x00165b50 LAB_001658cc: MOV RAX,RBX ADD RSP,0x10 POP RBX RET
/* WARNING: Globals starting with '_' overlap smaller symbols at the same address */ /* minja::Value::TEMPNAMEPLACEHOLDERVALUE() const */ Value * __thiscall minja::Value::operator-(Value *this) { long lVar1; Value *in_RSI; double dVar2; double local_10; if ((byte)((char)in_RSI[0x40] - 5U) < 2) { lVar1 = get<long>(in_RSI); local_10 = (double)-lVar1; Value(this,(long *)&local_10); } else { dVar2 = get<double>(in_RSI); local_10 = (double)CONCAT44((uint)((ulong)dVar2 >> 0x20) ^ _UNK_001b4ab4, SUB84(dVar2,0) ^ _DAT_001b4ab0); Value(this,&local_10); } return this; }
34,793
minja::Value::operator-() const
monkey531[P]llama/common/minja.hpp
Value operator-() const { if (is_number_integer()) return -get<int64_t>(); else return -get<double>(); }
O3
cpp
minja::Value::operator-() const: pushq %r14 pushq %rbx pushq %rax movq %rdi, %rbx movb 0x40(%rsi), %al addb $-0x5, %al leaq 0x40(%rdi), %r14 movq %rsi, %rdi cmpb $0x1, %al ja 0x88d76 callq 0x88f38 negq %rax xorps %xmm0, %xmm0 movups %xmm0, (%rbx) movups %xmm0, 0x10(%rbx) movups %xmm0, 0x20(%rbx) movups %xmm0, 0x30(%rbx) movups %xmm0, 0x40(%rbx) movq %r14, %rdi movq %rax, %rsi callq 0x63134 jmp 0x88da0 callq 0x89082 xorps 0x67d1e(%rip), %xmm0 # 0xf0aa0 xorps %xmm1, %xmm1 movups %xmm1, (%rbx) movups %xmm1, 0x10(%rbx) movups %xmm1, 0x20(%rbx) movups %xmm1, 0x30(%rbx) movups %xmm1, 0x40(%rbx) movq %r14, %rdi callq 0x626fc movq %r14, %rdi movl $0x1, %esi callq 0x5b4ca movq %rbx, %rax addq $0x8, %rsp popq %rbx popq %r14 retq
_ZNK5minja5ValuengEv: push r14 push rbx push rax mov rbx, rdi mov al, [rsi+40h] add al, 0FBh lea r14, [rdi+40h] mov rdi, rsi cmp al, 1 ja short loc_88D76 call _ZNK5minja5Value3getIlEET_v; minja::Value::get<long>(void) neg rax xorps xmm0, xmm0 movups xmmword ptr [rbx], xmm0 movups xmmword ptr [rbx+10h], xmm0 movups xmmword ptr [rbx+20h], xmm0 movups xmmword ptr [rbx+30h], xmm0 movups xmmword ptr [rbx+40h], xmm0 mov rdi, r14 mov rsi, rax call _ZN8nlohmann16json_abi_v3_11_36detail20external_constructorILNS1_7value_tE5EE9constructINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES8_IhSaIhEEvEEEEvRT_NSJ_16number_integer_tE; nlohmann::json_abi_v3_11_3::detail::external_constructor<(nlohmann::json_abi_v3_11_3::detail::value_t)5>::construct<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> &,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>::number_integer_t) jmp short loc_88DA0 loc_88D76: call _ZNK5minja5Value3getIdEET_v; minja::Value::get<double>(void) xorps xmm0, cs:xmmword_F0AA0 xorps xmm1, xmm1 movups xmmword ptr [rbx], xmm1 movups xmmword ptr [rbx+10h], xmm1 movups xmmword ptr [rbx+20h], xmm1 movups xmmword ptr [rbx+30h], xmm1 movups xmmword ptr [rbx+40h], xmm1 mov rdi, r14 call _ZN8nlohmann16json_abi_v3_11_36detail20external_constructorILNS1_7value_tE7EE9constructINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES8_IhSaIhEEvEEEEvRT_NSJ_14number_float_tE; nlohmann::json_abi_v3_11_3::detail::external_constructor<(nlohmann::json_abi_v3_11_3::detail::value_t)7>::construct<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> &,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>::number_float_t) loc_88DA0: mov rdi, r14 mov esi, 1 call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE16assert_invariantEb; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::assert_invariant(bool) mov rax, rbx add rsp, 8 pop rbx pop r14 retn
_OWORD * minja::Value::operator-(_OWORD *a1, long long a2) { unsigned __int8 *v2; // r14 long long v3; // rax double v4; // xmm0_8 v2 = (unsigned __int8 *)(a1 + 4); if ( (unsigned __int8)(*(_BYTE *)(a2 + 64) - 5) > 1u ) { v4 = minja::Value::get<double>(a2); *a1 = 0LL; a1[1] = 0LL; a1[2] = 0LL; a1[3] = 0LL; a1[4] = 0LL; nlohmann::json_abi_v3_11_3::detail::external_constructor<(nlohmann::json_abi_v3_11_3::detail::value_t)7>::construct<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>( v2, -v4); } else { v3 = minja::Value::get<long>(a2); *a1 = 0LL; a1[1] = 0LL; a1[2] = 0LL; a1[3] = 0LL; a1[4] = 0LL; nlohmann::json_abi_v3_11_3::detail::external_constructor<(nlohmann::json_abi_v3_11_3::detail::value_t)5>::construct<nlohmann::json_abi_v3_11_3::basic_json<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>>( v2, -v3); } nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::assert_invariant((char *)v2); return a1; }
operator-: PUSH R14 PUSH RBX PUSH RAX MOV RBX,RDI MOV AL,byte ptr [RSI + 0x40] ADD AL,0xfb LEA R14,[RDI + 0x40] MOV RDI,RSI CMP AL,0x1 JA 0x00188d76 CALL 0x00188f38 NEG RAX XORPS XMM0,XMM0 MOVUPS xmmword ptr [RBX],XMM0 MOVUPS xmmword ptr [RBX + 0x10],XMM0 MOVUPS xmmword ptr [RBX + 0x20],XMM0 MOVUPS xmmword ptr [RBX + 0x30],XMM0 MOVUPS xmmword ptr [RBX + 0x40],XMM0 MOV RDI,R14 MOV RSI,RAX CALL 0x00163134 JMP 0x00188da0 LAB_00188d76: CALL 0x00189082 XORPS XMM0,xmmword ptr [0x001f0aa0] XORPS XMM1,XMM1 MOVUPS xmmword ptr [RBX],XMM1 MOVUPS xmmword ptr [RBX + 0x10],XMM1 MOVUPS xmmword ptr [RBX + 0x20],XMM1 MOVUPS xmmword ptr [RBX + 0x30],XMM1 MOVUPS xmmword ptr [RBX + 0x40],XMM1 MOV RDI,R14 CALL 0x001626fc LAB_00188da0: MOV RDI,R14 MOV ESI,0x1 CALL 0x0015b4ca MOV RAX,RBX ADD RSP,0x8 POP RBX POP R14 RET
/* WARNING: Globals starting with '_' overlap smaller symbols at the same address */ /* minja::Value::TEMPNAMEPLACEHOLDERVALUE() const */ Value * __thiscall minja::Value::operator-(Value *this) { Value *pVVar1; double dVar2; long lVar3; Value *in_RSI; uint uVar4; pVVar1 = this + 0x40; if ((byte)((char)in_RSI[0x40] - 5U) < 2) { lVar3 = get<long>(in_RSI); *(int8 *)this = 0; *(int8 *)(this + 8) = 0; *(int8 *)(this + 0x10) = 0; *(int8 *)(this + 0x18) = 0; *(int8 *)(this + 0x20) = 0; *(int8 *)(this + 0x28) = 0; *(int8 *)(this + 0x30) = 0; *(int8 *)(this + 0x38) = 0; *(int8 *)(this + 0x40) = 0; *(int8 *)(this + 0x48) = 0; nlohmann::json_abi_v3_11_3::detail:: external_constructor<(nlohmann::json_abi_v3_11_3::detail::value_t)5>:: construct<nlohmann::json_abi_v3_11_3::basic_json<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>> (pVVar1,-lVar3); } else { dVar2 = get<double>(in_RSI); uVar4 = SUB84(dVar2,0) ^ _DAT_001f0aa0; *(int8 *)this = 0; *(int8 *)(this + 8) = 0; *(int8 *)(this + 0x10) = 0; *(int8 *)(this + 0x18) = 0; *(int8 *)(this + 0x20) = 0; *(int8 *)(this + 0x28) = 0; *(int8 *)(this + 0x30) = 0; *(int8 *)(this + 0x38) = 0; *(int8 *)(this + 0x40) = 0; *(int8 *)(this + 0x48) = 0; nlohmann::json_abi_v3_11_3::detail:: external_constructor<(nlohmann::json_abi_v3_11_3::detail::value_t)7>:: construct<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>> (uVar4,pVVar1); } nlohmann::json_abi_v3_11_3:: basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> ::assert_invariant(SUB81(pVVar1,0)); return this; }
34,794
my_strnxfrm_uca_pad
eloqsql/strings/ctype-uca.c
static uchar * my_strnxfrm_uca_pad(uchar *dst, uchar *de, int weight) { for ( ; dst < de; ) { *dst++= weight >> 8; if (dst < de) *dst++= weight & 0xFF; } return dst; }
O0
c
my_strnxfrm_uca_pad: pushq %rbp movq %rsp, %rbp movq %rdi, -0x8(%rbp) movq %rsi, -0x10(%rbp) movl %edx, -0x14(%rbp) movq -0x8(%rbp), %rax cmpq -0x10(%rbp), %rax jae 0xa1ba9 movl -0x14(%rbp), %eax sarl $0x8, %eax movb %al, %cl movq -0x8(%rbp), %rax movq %rax, %rdx addq $0x1, %rdx movq %rdx, -0x8(%rbp) movb %cl, (%rax) movq -0x8(%rbp), %rax cmpq -0x10(%rbp), %rax jae 0xa1ba7 movl -0x14(%rbp), %eax andl $0xff, %eax movb %al, %cl movq -0x8(%rbp), %rax movq %rax, %rdx addq $0x1, %rdx movq %rdx, -0x8(%rbp) movb %cl, (%rax) jmp 0xa1b5f movq -0x8(%rbp), %rax popq %rbp retq nop
my_strnxfrm_uca_pad: push rbp mov rbp, rsp mov [rbp+var_8], rdi mov [rbp+var_10], rsi mov [rbp+var_14], edx loc_A1B5F: mov rax, [rbp+var_8] cmp rax, [rbp+var_10] jnb short loc_A1BA9 mov eax, [rbp+var_14] sar eax, 8 mov cl, al mov rax, [rbp+var_8] mov rdx, rax add rdx, 1 mov [rbp+var_8], rdx mov [rax], cl mov rax, [rbp+var_8] cmp rax, [rbp+var_10] jnb short loc_A1BA7 mov eax, [rbp+var_14] and eax, 0FFh mov cl, al mov rax, [rbp+var_8] mov rdx, rax add rdx, 1 mov [rbp+var_8], rdx mov [rax], cl loc_A1BA7: jmp short loc_A1B5F loc_A1BA9: mov rax, [rbp+var_8] pop rbp retn
_BYTE * my_strnxfrm_uca_pad(_BYTE *a1, unsigned long long a2, __int16 a3) { _BYTE *v3; // rax _BYTE *v4; // rax while ( (unsigned long long)a1 < a2 ) { v3 = a1++; *v3 = HIBYTE(a3); if ( (unsigned long long)a1 < a2 ) { v4 = a1++; *v4 = a3; } } return a1; }
my_strnxfrm_uca_pad: PUSH RBP MOV RBP,RSP MOV qword ptr [RBP + -0x8],RDI MOV qword ptr [RBP + -0x10],RSI MOV dword ptr [RBP + -0x14],EDX LAB_001a1b5f: MOV RAX,qword ptr [RBP + -0x8] CMP RAX,qword ptr [RBP + -0x10] JNC 0x001a1ba9 MOV EAX,dword ptr [RBP + -0x14] SAR EAX,0x8 MOV CL,AL MOV RAX,qword ptr [RBP + -0x8] MOV RDX,RAX ADD RDX,0x1 MOV qword ptr [RBP + -0x8],RDX MOV byte ptr [RAX],CL MOV RAX,qword ptr [RBP + -0x8] CMP RAX,qword ptr [RBP + -0x10] JNC 0x001a1ba7 MOV EAX,dword ptr [RBP + -0x14] AND EAX,0xff MOV CL,AL MOV RAX,qword ptr [RBP + -0x8] MOV RDX,RAX ADD RDX,0x1 MOV qword ptr [RBP + -0x8],RDX MOV byte ptr [RAX],CL LAB_001a1ba7: JMP 0x001a1b5f LAB_001a1ba9: MOV RAX,qword ptr [RBP + -0x8] POP RBP RET
int1 * my_strnxfrm_uca_pad(int1 *param_1,int1 *param_2,int4 param_3) { int1 *puVar1; int1 *local_10; puVar1 = param_1; while (local_10 = puVar1, local_10 < param_2) { puVar1 = local_10 + 1; *local_10 = (char)((uint)param_3 >> 8); if (puVar1 < param_2) { *puVar1 = (char)param_3; puVar1 = local_10 + 2; } } return local_10; }
34,795
get_proxy_method
bluesky950520[P]quickjs/quickjs.c
static JSProxyData *get_proxy_method(JSContext *ctx, JSValue *pmethod, JSValue obj, JSAtom name) { JSProxyData *s = JS_GetOpaque(obj, JS_CLASS_PROXY); JSValue method; /* safer to test recursion in all proxy methods */ if (js_check_stack_overflow(ctx->rt, 0)) { JS_ThrowStackOverflow(ctx); return NULL; } /* 's' should never be NULL */ if (s->is_revoked) { JS_ThrowTypeErrorRevokedProxy(ctx); return NULL; } method = JS_GetProperty(ctx, s->handler, name); if (JS_IsException(method)) return NULL; if (JS_IsNull(method)) method = JS_UNDEFINED; *pmethod = method; return s; }
O0
c
get_proxy_method: subq $0x88, %rsp movq %rdx, 0x70(%rsp) movq %rcx, 0x78(%rsp) movq %rdi, 0x68(%rsp) movq %rsi, 0x60(%rsp) movl %r8d, 0x5c(%rsp) movq 0x70(%rsp), %rdi movq 0x78(%rsp), %rsi movl $0x30, %edx callq 0x37090 movq %rax, 0x50(%rsp) movq 0x68(%rsp), %rax movq 0x18(%rax), %rdi xorl %eax, %eax movl %eax, %esi callq 0x4ca20 cmpl $0x0, %eax je 0x5ee25 movq 0x68(%rsp), %rdi callq 0x5ef20 movq %rax, 0x30(%rsp) movq %rdx, 0x38(%rsp) movq $0x0, 0x80(%rsp) jmp 0x5ef0a movq 0x50(%rsp), %rax cmpb $0x0, 0x21(%rax) je 0x5ee55 movq 0x68(%rsp), %rdi callq 0x5ef60 movq %rax, 0x20(%rsp) movq %rdx, 0x28(%rsp) movq $0x0, 0x80(%rsp) jmp 0x5ef0a movq 0x68(%rsp), %rdi movq 0x50(%rsp), %rax movl 0x5c(%rsp), %ecx movq 0x10(%rax), %rsi movq 0x18(%rax), %rdx callq 0x28ac0 movq %rax, 0x10(%rsp) movq %rdx, 0x18(%rsp) movq 0x10(%rsp), %rax movq %rax, 0x40(%rsp) movq 0x18(%rsp), %rax movq %rax, 0x48(%rsp) movq 0x40(%rsp), %rdi movq 0x48(%rsp), %rsi callq 0x22a00 cmpl $0x0, %eax je 0x5eeb0 movq $0x0, 0x80(%rsp) jmp 0x5ef0a movq 0x40(%rsp), %rdi movq 0x48(%rsp), %rsi callq 0x2cf80 cmpl $0x0, %eax je 0x5eee7 movl $0x0, (%rsp) movq $0x3, 0x8(%rsp) movq (%rsp), %rax movq %rax, 0x40(%rsp) movq 0x8(%rsp), %rax movq %rax, 0x48(%rsp) movq 0x60(%rsp), %rax movq 0x40(%rsp), %rcx movq %rcx, (%rax) movq 0x48(%rsp), %rcx movq %rcx, 0x8(%rax) movq 0x50(%rsp), %rax movq %rax, 0x80(%rsp) movq 0x80(%rsp), %rax addq $0x88, %rsp retq nopw (%rax,%rax)
get_proxy_method: sub rsp, 88h mov [rsp+88h+var_18], rdx mov [rsp+88h+var_10], rcx mov [rsp+88h+var_20], rdi mov [rsp+88h+var_28], rsi mov [rsp+88h+var_2C], r8d mov rdi, [rsp+88h+var_18] mov rsi, [rsp+88h+var_10] mov edx, 30h ; '0' call JS_GetOpaque mov [rsp+88h+var_38], rax mov rax, [rsp+88h+var_20] mov rdi, [rax+18h] xor eax, eax mov esi, eax call js_check_stack_overflow cmp eax, 0 jz short loc_5EE25 mov rdi, [rsp+88h+var_20] call JS_ThrowStackOverflow mov [rsp+88h+var_58], rax mov [rsp+88h+var_50], rdx mov [rsp+88h+var_8], 0 jmp loc_5EF0A loc_5EE25: mov rax, [rsp+88h+var_38] cmp byte ptr [rax+21h], 0 jz short loc_5EE55 mov rdi, [rsp+88h+var_20] call JS_ThrowTypeErrorRevokedProxy mov [rsp+88h+var_68], rax mov [rsp+88h+var_60], rdx mov [rsp+88h+var_8], 0 jmp loc_5EF0A loc_5EE55: mov rdi, [rsp+88h+var_20] mov rax, [rsp+88h+var_38] mov ecx, [rsp+88h+var_2C] mov rsi, [rax+10h] mov rdx, [rax+18h] call JS_GetProperty mov [rsp+88h+var_78], rax mov [rsp+88h+var_70], rdx mov rax, [rsp+88h+var_78] mov [rsp+88h+var_48], rax mov rax, [rsp+88h+var_70] mov [rsp+88h+var_40], rax mov rdi, [rsp+88h+var_48] mov rsi, [rsp+88h+var_40] call JS_IsException_1 cmp eax, 0 jz short loc_5EEB0 mov [rsp+88h+var_8], 0 jmp short loc_5EF0A loc_5EEB0: mov rdi, [rsp+88h+var_48] mov rsi, [rsp+88h+var_40] call JS_IsNull_0 cmp eax, 0 jz short loc_5EEE7 mov dword ptr [rsp+88h+var_88], 0 mov [rsp+88h+var_80], 3 mov rax, [rsp+88h+var_88] mov [rsp+88h+var_48], rax mov rax, [rsp+88h+var_80] mov [rsp+88h+var_40], rax loc_5EEE7: mov rax, [rsp+88h+var_28] mov rcx, [rsp+88h+var_48] mov [rax], rcx mov rcx, [rsp+88h+var_40] mov [rax+8], rcx mov rax, [rsp+88h+var_38] mov [rsp+88h+var_8], rax loc_5EF0A: mov rax, [rsp+88h+var_8] add rsp, 88h retn
long long get_proxy_method(long long a1, long long *a2, long long a3, int a4, int a5) { long long v5; // rdx long long v7; // [rsp+0h] [rbp-88h] long long Property; // [rsp+10h] [rbp-78h] long long v9; // [rsp+40h] [rbp-48h] long long v10; // [rsp+48h] [rbp-40h] long long Opaque; // [rsp+50h] [rbp-38h] Opaque = JS_GetOpaque(a3, a4, 48); if ( js_check_stack_overflow(*(_QWORD *)(a1 + 24), 0LL) ) { JS_ThrowStackOverflow(a1); return 0LL; } else if ( *(_BYTE *)(Opaque + 33) ) { JS_ThrowTypeErrorRevokedProxy(a1); return 0LL; } else { Property = JS_GetProperty(a1, *(_QWORD *)(Opaque + 16), *(_QWORD *)(Opaque + 24), a5); v9 = Property; v10 = v5; if ( JS_IsException_1(Property, v5) ) { return 0LL; } else { if ( JS_IsNull_0(Property, v10) ) { LODWORD(v7) = 0; v9 = v7; v10 = 3LL; } *a2 = v9; a2[1] = v10; return Opaque; } } }
get_proxy_method: SUB RSP,0x88 MOV qword ptr [RSP + 0x70],RDX MOV qword ptr [RSP + 0x78],RCX MOV qword ptr [RSP + 0x68],RDI MOV qword ptr [RSP + 0x60],RSI MOV dword ptr [RSP + 0x5c],R8D MOV RDI,qword ptr [RSP + 0x70] MOV RSI,qword ptr [RSP + 0x78] MOV EDX,0x30 CALL 0x00137090 MOV qword ptr [RSP + 0x50],RAX MOV RAX,qword ptr [RSP + 0x68] MOV RDI,qword ptr [RAX + 0x18] XOR EAX,EAX MOV ESI,EAX CALL 0x0014ca20 CMP EAX,0x0 JZ 0x0015ee25 MOV RDI,qword ptr [RSP + 0x68] CALL 0x0015ef20 MOV qword ptr [RSP + 0x30],RAX MOV qword ptr [RSP + 0x38],RDX MOV qword ptr [RSP + 0x80],0x0 JMP 0x0015ef0a LAB_0015ee25: MOV RAX,qword ptr [RSP + 0x50] CMP byte ptr [RAX + 0x21],0x0 JZ 0x0015ee55 MOV RDI,qword ptr [RSP + 0x68] CALL 0x0015ef60 MOV qword ptr [RSP + 0x20],RAX MOV qword ptr [RSP + 0x28],RDX MOV qword ptr [RSP + 0x80],0x0 JMP 0x0015ef0a LAB_0015ee55: MOV RDI,qword ptr [RSP + 0x68] MOV RAX,qword ptr [RSP + 0x50] MOV ECX,dword ptr [RSP + 0x5c] MOV RSI,qword ptr [RAX + 0x10] MOV RDX,qword ptr [RAX + 0x18] CALL 0x00128ac0 MOV qword ptr [RSP + 0x10],RAX MOV qword ptr [RSP + 0x18],RDX MOV RAX,qword ptr [RSP + 0x10] MOV qword ptr [RSP + 0x40],RAX MOV RAX,qword ptr [RSP + 0x18] MOV qword ptr [RSP + 0x48],RAX MOV RDI,qword ptr [RSP + 0x40] MOV RSI,qword ptr [RSP + 0x48] CALL 0x00122a00 CMP EAX,0x0 JZ 0x0015eeb0 MOV qword ptr [RSP + 0x80],0x0 JMP 0x0015ef0a LAB_0015eeb0: MOV RDI,qword ptr [RSP + 0x40] MOV RSI,qword ptr [RSP + 0x48] CALL 0x0012cf80 CMP EAX,0x0 JZ 0x0015eee7 MOV dword ptr [RSP],0x0 MOV qword ptr [RSP + 0x8],0x3 MOV RAX,qword ptr [RSP] MOV qword ptr [RSP + 0x40],RAX MOV RAX,qword ptr [RSP + 0x8] MOV qword ptr [RSP + 0x48],RAX LAB_0015eee7: MOV RAX,qword ptr [RSP + 0x60] MOV RCX,qword ptr [RSP + 0x40] MOV qword ptr [RAX],RCX MOV RCX,qword ptr [RSP + 0x48] MOV qword ptr [RAX + 0x8],RCX MOV RAX,qword ptr [RSP + 0x50] MOV qword ptr [RSP + 0x80],RAX LAB_0015ef0a: MOV RAX,qword ptr [RSP + 0x80] ADD RSP,0x88 RET
long get_proxy_method(long param_1,int1 (*param_2) [16],int8 param_3,int8 param_4, int4 param_5) { int iVar1; int1 auVar2 [16]; uint uStack_84; long local_8; local_8 = JS_GetOpaque(param_3,param_4,0x30); iVar1 = js_check_stack_overflow(*(int8 *)(param_1 + 0x18),0); if (iVar1 == 0) { if (*(char *)(local_8 + 0x21) == '\0') { auVar2 = JS_GetProperty(param_1,*(int8 *)(local_8 + 0x10), *(int8 *)(local_8 + 0x18),param_5); iVar1 = JS_IsException(auVar2._0_8_,auVar2._8_8_); if (iVar1 == 0) { iVar1 = JS_IsNull(auVar2._0_8_,auVar2._8_8_); if (iVar1 != 0) { auVar2._8_8_ = 3; auVar2._0_8_ = (ulong)uStack_84 << 0x20; } *param_2 = auVar2; } else { local_8 = 0; } } else { JS_ThrowTypeErrorRevokedProxy(param_1); local_8 = 0; } } else { JS_ThrowStackOverflow(param_1); local_8 = 0; } return local_8; }
34,796
get_proxy_method
bluesky950520[P]quickjs/quickjs.c
static JSProxyData *get_proxy_method(JSContext *ctx, JSValue *pmethod, JSValue obj, JSAtom name) { JSProxyData *s = JS_GetOpaque(obj, JS_CLASS_PROXY); JSValue method; /* safer to test recursion in all proxy methods */ if (js_check_stack_overflow(ctx->rt, 0)) { JS_ThrowStackOverflow(ctx); return NULL; } /* 's' should never be NULL */ if (s->is_revoked) { JS_ThrowTypeErrorRevokedProxy(ctx); return NULL; } method = JS_GetProperty(ctx, s->handler, name); if (JS_IsException(method)) return NULL; if (JS_IsNull(method)) method = JS_UNDEFINED; *pmethod = method; return s; }
O1
c
get_proxy_method: pushq %rbp movq %rsp, %rbp pushq %r14 pushq %rbx subq $0x10, %rsp movq %rsi, %r14 movq %rdx, -0x18(%rbp) cmpl $-0x1, %ecx jne 0x3c7f4 movq -0x18(%rbp), %rax cmpw $0x30, 0x6(%rax) jne 0x3c7f4 movq 0x30(%rax), %rbx jmp 0x3c7f6 xorl %ebx, %ebx movq 0x18(%rdi), %rax cmpq %rbp, 0xe8(%rax) jbe 0x3c815 leaq 0x610c4(%rip), %rsi # 0x9d8ce xorl %ebx, %ebx xorl %eax, %eax callq 0x1fec9 jmp 0x3c886 cmpb $0x0, 0x21(%rbx) je 0x3c82d leaq 0x610cd(%rip), %rsi # 0x9d8ef xorl %ebx, %ebx xorl %eax, %eax callq 0x21953 jmp 0x3c886 movq 0x10(%rbx), %rsi movq 0x18(%rbx), %rdx movl %r8d, %ecx movq %rsi, %r8 movq %rdx, %r9 pushq $0x0 pushq $0x0 callq 0x2238f addq $0x10, %rsp movl %edx, %ecx cmpq $0x6, %rcx jne 0x3c857 xorl %ebx, %ebx jmp 0x3c886 movabsq $-0x100000000, %rsi # imm = 0xFFFFFFFF00000000 andq %rax, %rsi cmpl $0x2, %ecx movl $0x3, %edi cmoveq %rdi, %rdx xorl %edi, %edi cmpq $0x2, %rcx movl %eax, %eax cmovneq %rax, %rdi orq %rsi, %rdi movq %rdi, (%r14) movq %rdx, 0x8(%r14) movq %rbx, %rax addq $0x10, %rsp popq %rbx popq %r14 popq %rbp retq
get_proxy_method: push rbp mov rbp, rsp push r14 push rbx sub rsp, 10h mov r14, rsi mov [rbp+var_18], rdx cmp ecx, 0FFFFFFFFh jnz short loc_3C7F4 mov rax, [rbp+var_18] cmp word ptr [rax+6], 30h ; '0' jnz short loc_3C7F4 mov rbx, [rax+30h] jmp short loc_3C7F6 loc_3C7F4: xor ebx, ebx loc_3C7F6: mov rax, [rdi+18h] cmp [rax+0E8h], rbp jbe short loc_3C815 lea rsi, aMaximumCallSta; "Maximum call stack size exceeded" xor ebx, ebx xor eax, eax call JS_ThrowRangeError jmp short loc_3C886 loc_3C815: cmp byte ptr [rbx+21h], 0 jz short loc_3C82D lea rsi, aRevokedProxy; "revoked proxy" xor ebx, ebx xor eax, eax call JS_ThrowTypeError jmp short loc_3C886 loc_3C82D: mov rsi, [rbx+10h] mov rdx, [rbx+18h] mov ecx, r8d mov r8, rsi mov r9, rdx push 0 push 0 call JS_GetPropertyInternal2 add rsp, 10h mov ecx, edx cmp rcx, 6 jnz short loc_3C857 xor ebx, ebx jmp short loc_3C886 loc_3C857: mov rsi, 0FFFFFFFF00000000h and rsi, rax cmp ecx, 2 mov edi, 3 cmovz rdx, rdi xor edi, edi cmp rcx, 2 mov eax, eax cmovnz rdi, rax or rdi, rsi mov [r14], rdi mov [r14+8], rdx loc_3C886: mov rax, rbx add rsp, 10h pop rbx pop r14 pop rbp retn
long long get_proxy_method( long long a1, unsigned long long *a2, long long a3, long long a4, long long a5, long long a6, __m128 a7, __m128 a8, __m128 a9, __m128 a10, __m128 a11, __m128 a12, __m128 a13, __m128 a14) { long long v14; // rbx unsigned long long PropertyInternal2; // rax long long v16; // rdx long long v17; // rcx long long v18; // rdi char v20; // [rsp+0h] [rbp-20h] long long savedregs; // [rsp+20h] [rbp+0h] BYREF if ( (_DWORD)a4 == -1 && *(_WORD *)(a3 + 6) == 48 ) v14 = *(_QWORD *)(a3 + 48); else v14 = 0LL; if ( *(_QWORD *)(*(_QWORD *)(a1 + 24) + 232LL) <= (unsigned long long)&savedregs ) { if ( *(_BYTE *)(v14 + 33) ) { v14 = 0LL; JS_ThrowTypeError(a1, (long long)"revoked proxy", a3, a4, a5, a6, a7, a8, a9, a10, a11, a12, a13, a14, v20); } else { PropertyInternal2 = JS_GetPropertyInternal2( a1, *(_QWORD *)(v14 + 16), *(_QWORD *)(v14 + 24), a5, *(_QWORD *)(v14 + 16), *(_QWORD *)(v14 + 24), 0LL, 0); v17 = (unsigned int)v16; if ( (unsigned int)v16 == 6LL ) { return 0LL; } else { if ( (_DWORD)v16 == 2 ) v16 = 3LL; v18 = 0LL; if ( v17 != 2 ) v18 = (unsigned int)PropertyInternal2; *a2 = PropertyInternal2 & 0xFFFFFFFF00000000LL | v18; a2[1] = v16; } } } else { v14 = 0LL; JS_ThrowRangeError( a1, (long long)"Maximum call stack size exceeded", a3, a4, a5, a6, a7, a8, a9, a10, a11, a12, a13, a14, v20); } return v14; }
get_proxy_method: PUSH RBP MOV RBP,RSP PUSH R14 PUSH RBX SUB RSP,0x10 MOV R14,RSI MOV qword ptr [RBP + -0x18],RDX CMP ECX,-0x1 JNZ 0x0013c7f4 MOV RAX,qword ptr [RBP + -0x18] CMP word ptr [RAX + 0x6],0x30 JNZ 0x0013c7f4 MOV RBX,qword ptr [RAX + 0x30] JMP 0x0013c7f6 LAB_0013c7f4: XOR EBX,EBX LAB_0013c7f6: MOV RAX,qword ptr [RDI + 0x18] CMP qword ptr [RAX + 0xe8],RBP JBE 0x0013c815 LEA RSI,[0x19d8ce] XOR EBX,EBX XOR EAX,EAX CALL 0x0011fec9 JMP 0x0013c886 LAB_0013c815: CMP byte ptr [RBX + 0x21],0x0 JZ 0x0013c82d LEA RSI,[0x19d8ef] XOR EBX,EBX XOR EAX,EAX CALL 0x00121953 JMP 0x0013c886 LAB_0013c82d: MOV RSI,qword ptr [RBX + 0x10] MOV RDX,qword ptr [RBX + 0x18] MOV ECX,R8D MOV R8,RSI MOV R9,RDX PUSH 0x0 PUSH 0x0 CALL 0x0012238f ADD RSP,0x10 MOV ECX,EDX CMP RCX,0x6 JNZ 0x0013c857 XOR EBX,EBX JMP 0x0013c886 LAB_0013c857: MOV RSI,-0x100000000 AND RSI,RAX CMP ECX,0x2 MOV EDI,0x3 CMOVZ RDX,RDI XOR EDI,EDI CMP RCX,0x2 MOV EAX,EAX CMOVNZ RDI,RAX OR RDI,RSI MOV qword ptr [R14],RDI MOV qword ptr [R14 + 0x8],RDX LAB_0013c886: MOV RAX,RBX ADD RSP,0x10 POP RBX POP R14 POP RBP RET
long get_proxy_method(long param_1,ulong *param_2,long param_3,int param_4) { ulong uVar1; ulong uVar2; long lVar3; ulong uVar4; int1 auVar5 [16]; if ((param_4 == -1) && (*(short *)(param_3 + 6) == 0x30)) { lVar3 = *(long *)(param_3 + 0x30); } else { lVar3 = 0; } if (&stack0xfffffffffffffff8 < *(int1 **)(*(long *)(param_1 + 0x18) + 0xe8)) { lVar3 = 0; JS_ThrowRangeError(param_1,"Maximum call stack size exceeded"); } else if (*(char *)(lVar3 + 0x21) == '\0') { auVar5 = JS_GetPropertyInternal2(); uVar2 = auVar5._8_8_; uVar1 = uVar2 & 0xffffffff; if (uVar1 == 6) { lVar3 = 0; } else { if (auVar5._8_4_ == 2) { uVar2 = 3; } uVar4 = 0; if (uVar1 != 2) { uVar4 = auVar5._0_8_ & 0xffffffff; } *param_2 = uVar4 | auVar5._0_8_ & 0xffffffff00000000; param_2[1] = uVar2; } } else { lVar3 = 0; JS_ThrowTypeError(param_1,"revoked proxy"); } return lVar3; }
34,797
get_proxy_method
bluesky950520[P]quickjs/quickjs.c
static JSProxyData *get_proxy_method(JSContext *ctx, JSValue *pmethod, JSValue obj, JSAtom name) { JSProxyData *s = JS_GetOpaque(obj, JS_CLASS_PROXY); JSValue method; /* safer to test recursion in all proxy methods */ if (js_check_stack_overflow(ctx->rt, 0)) { JS_ThrowStackOverflow(ctx); return NULL; } /* 's' should never be NULL */ if (s->is_revoked) { JS_ThrowTypeErrorRevokedProxy(ctx); return NULL; } method = JS_GetProperty(ctx, s->handler, name); if (JS_IsException(method)) return NULL; if (JS_IsNull(method)) method = JS_UNDEFINED; *pmethod = method; return s; }
O3
c
get_proxy_method: pushq %rbp movq %rsp, %rbp pushq %r14 pushq %rbx movq %rsi, %r14 cmpl $-0x1, %ecx jne 0x3ddb6 cmpw $0x30, 0x6(%rdx) jne 0x3ddb6 movq 0x30(%rdx), %rbx jmp 0x3ddb8 xorl %ebx, %ebx movq 0x18(%rdi), %rax cmpq %rbp, 0xe8(%rax) jbe 0x3ddd7 leaq 0x62ad2(%rip), %rsi # 0xa089e xorl %ebx, %ebx xorl %eax, %eax callq 0x205f0 jmp 0x3de48 cmpb $0x0, 0x21(%rbx) je 0x3ddef leaq 0x62adb(%rip), %rsi # 0xa08bf xorl %ebx, %ebx xorl %eax, %eax callq 0x2214f jmp 0x3de48 movq 0x10(%rbx), %rsi movq 0x18(%rbx), %rdx movl %r8d, %ecx movq %rsi, %r8 movq %rdx, %r9 pushq $0x0 pushq $0x0 callq 0x22c0f addq $0x10, %rsp movl %edx, %ecx cmpq $0x6, %rcx jne 0x3de19 xorl %ebx, %ebx jmp 0x3de48 movabsq $-0x100000000, %rsi # imm = 0xFFFFFFFF00000000 andq %rax, %rsi cmpl $0x2, %ecx movl $0x3, %edi cmoveq %rdi, %rdx xorl %edi, %edi cmpq $0x2, %rcx movl %eax, %eax cmovneq %rax, %rdi orq %rsi, %rdi movq %rdi, (%r14) movq %rdx, 0x8(%r14) movq %rbx, %rax popq %rbx popq %r14 popq %rbp retq
get_proxy_method: push rbp mov rbp, rsp push r14 push rbx mov r14, rsi cmp ecx, 0FFFFFFFFh jnz short loc_3DDB6 cmp word ptr [rdx+6], 30h ; '0' jnz short loc_3DDB6 mov rbx, [rdx+30h] jmp short loc_3DDB8 loc_3DDB6: xor ebx, ebx loc_3DDB8: mov rax, [rdi+18h] cmp [rax+0E8h], rbp jbe short loc_3DDD7 lea rsi, aMaximumCallSta; "Maximum call stack size exceeded" xor ebx, ebx xor eax, eax call JS_ThrowRangeError jmp short loc_3DE48 loc_3DDD7: cmp byte ptr [rbx+21h], 0 jz short loc_3DDEF lea rsi, aRevokedProxy; "revoked proxy" xor ebx, ebx xor eax, eax call JS_ThrowTypeError jmp short loc_3DE48 loc_3DDEF: mov rsi, [rbx+10h] mov rdx, [rbx+18h] mov ecx, r8d mov r8, rsi mov r9, rdx push 0 push 0 call JS_GetPropertyInternal2 add rsp, 10h mov ecx, edx cmp rcx, 6 jnz short loc_3DE19 xor ebx, ebx jmp short loc_3DE48 loc_3DE19: mov rsi, 0FFFFFFFF00000000h and rsi, rax cmp ecx, 2 mov edi, 3 cmovz rdx, rdi xor edi, edi cmp rcx, 2 mov eax, eax cmovnz rdi, rax or rdi, rsi mov [r14], rdi mov [r14+8], rdx loc_3DE48: mov rax, rbx pop rbx pop r14 pop rbp retn
long long get_proxy_method( long long a1, unsigned long long *a2, long long a3, long long a4, long long a5, long long a6, __m128 a7, __m128 a8, __m128 a9, __m128 a10, __m128 a11, __m128 a12, __m128 a13, __m128 a14) { long long v14; // rbx unsigned long long PropertyInternal2; // rax long long v16; // rdx long long v17; // rcx long long v18; // rdi char v20; // [rsp+0h] [rbp-10h] long long savedregs; // [rsp+10h] [rbp+0h] BYREF if ( (_DWORD)a4 == -1 && *(_WORD *)(a3 + 6) == 48 ) v14 = *(_QWORD *)(a3 + 48); else v14 = 0LL; if ( *(_QWORD *)(*(_QWORD *)(a1 + 24) + 232LL) <= (unsigned long long)&savedregs ) { if ( *(_BYTE *)(v14 + 33) ) { v14 = 0LL; JS_ThrowTypeError(a1, (long long)"revoked proxy", a3, a4, a5, a6, a7, a8, a9, a10, a11, a12, a13, a14, v20); } else { PropertyInternal2 = JS_GetPropertyInternal2( a1, *(_QWORD *)(v14 + 16), *(_QWORD *)(v14 + 24), a5, *(_QWORD *)(v14 + 16), *(_QWORD *)(v14 + 24), 0LL, 0); v17 = (unsigned int)v16; if ( (unsigned int)v16 == 6LL ) { return 0LL; } else { if ( (_DWORD)v16 == 2 ) v16 = 3LL; v18 = 0LL; if ( v17 != 2 ) v18 = (unsigned int)PropertyInternal2; *a2 = PropertyInternal2 & 0xFFFFFFFF00000000LL | v18; a2[1] = v16; } } } else { v14 = 0LL; JS_ThrowRangeError( a1, (long long)"Maximum call stack size exceeded", a3, a4, a5, a6, a7, a8, a9, a10, a11, a12, a13, a14, v20); } return v14; }
get_proxy_method: PUSH RBP MOV RBP,RSP PUSH R14 PUSH RBX MOV R14,RSI CMP ECX,-0x1 JNZ 0x0013ddb6 CMP word ptr [RDX + 0x6],0x30 JNZ 0x0013ddb6 MOV RBX,qword ptr [RDX + 0x30] JMP 0x0013ddb8 LAB_0013ddb6: XOR EBX,EBX LAB_0013ddb8: MOV RAX,qword ptr [RDI + 0x18] CMP qword ptr [RAX + 0xe8],RBP JBE 0x0013ddd7 LEA RSI,[0x1a089e] XOR EBX,EBX XOR EAX,EAX CALL 0x001205f0 JMP 0x0013de48 LAB_0013ddd7: CMP byte ptr [RBX + 0x21],0x0 JZ 0x0013ddef LEA RSI,[0x1a08bf] XOR EBX,EBX XOR EAX,EAX CALL 0x0012214f JMP 0x0013de48 LAB_0013ddef: MOV RSI,qword ptr [RBX + 0x10] MOV RDX,qword ptr [RBX + 0x18] MOV ECX,R8D MOV R8,RSI MOV R9,RDX PUSH 0x0 PUSH 0x0 CALL 0x00122c0f ADD RSP,0x10 MOV ECX,EDX CMP RCX,0x6 JNZ 0x0013de19 XOR EBX,EBX JMP 0x0013de48 LAB_0013de19: MOV RSI,-0x100000000 AND RSI,RAX CMP ECX,0x2 MOV EDI,0x3 CMOVZ RDX,RDI XOR EDI,EDI CMP RCX,0x2 MOV EAX,EAX CMOVNZ RDI,RAX OR RDI,RSI MOV qword ptr [R14],RDI MOV qword ptr [R14 + 0x8],RDX LAB_0013de48: MOV RAX,RBX POP RBX POP R14 POP RBP RET
long get_proxy_method(long param_1,ulong *param_2,long param_3,int param_4) { ulong uVar1; ulong uVar2; long lVar3; ulong uVar4; int1 auVar5 [16]; if ((param_4 == -1) && (*(short *)(param_3 + 6) == 0x30)) { lVar3 = *(long *)(param_3 + 0x30); } else { lVar3 = 0; } if (&stack0xfffffffffffffff8 < *(int1 **)(*(long *)(param_1 + 0x18) + 0xe8)) { lVar3 = 0; JS_ThrowRangeError(param_1,"Maximum call stack size exceeded"); } else if (*(char *)(lVar3 + 0x21) == '\0') { auVar5 = JS_GetPropertyInternal2(); uVar2 = auVar5._8_8_; uVar1 = uVar2 & 0xffffffff; if (uVar1 == 6) { lVar3 = 0; } else { if (auVar5._8_4_ == 2) { uVar2 = 3; } uVar4 = 0; if (uVar1 != 2) { uVar4 = auVar5._0_8_ & 0xffffffff; } *param_2 = uVar4 | auVar5._0_8_ & 0xffffffff00000000; param_2[1] = uVar2; } } else { lVar3 = 0; JS_ThrowTypeError(param_1,"revoked proxy"); } return lVar3; }
34,798
testing::internal::JsonUnitTestResultPrinter::OutputJsonKey(std::ostream*, 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::__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&, bool)
seiftnesse[P]memoryallocator/build_O3/_deps/googletest-src/googletest/src/gtest.cc
void JsonUnitTestResultPrinter::OutputJsonKey(std::ostream* stream, const std::string& element_name, const std::string& name, const std::string& value, const std::string& indent, bool comma) { const std::vector<std::string>& allowed_names = GetReservedOutputAttributesForElement(element_name); GTEST_CHECK_(std::find(allowed_names.begin(), allowed_names.end(), name) != allowed_names.end()) << "Key \"" << name << "\" is not allowed for value \"" << element_name << "\"."; *stream << indent << "\"" << name << "\": \"" << EscapeJson(value) << "\""; if (comma) *stream << ",\n"; }
O3
cpp
testing::internal::JsonUnitTestResultPrinter::OutputJsonKey(std::ostream*, 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::__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&, bool): pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x48, %rsp movl %r9d, 0xc(%rsp) movq %r8, %r12 movq %rcx, %r14 movq %rdx, %r15 movq %rsi, %r13 movq %rdi, %rbx leaq 0x30(%rsp), %rbp movq %rbp, %rdi callq 0x29ba4 movq (%rbp), %rdi movq 0x8(%rbp), %rsi movq %r15, %rdx callq 0x3e2aa cmpq 0x38(%rsp), %rax jne 0x2cbb3 leaq 0x15f54(%rip), %rdx # 0x42a6b leaq 0x10(%rsp), %rdi movl $0x3, %esi movl $0x11f1, %ecx # imm = 0x11F1 callq 0x1ae3c movq 0x2d4b6(%rip), %rdi # 0x59fe8 leaq 0x16c49(%rip), %rsi # 0x43782 movl $0x65, %edx callq 0x95a0 movq 0x2d49e(%rip), %rdi # 0x59fe8 leaq 0x16e88(%rip), %rsi # 0x439d9 movl $0x5, %edx callq 0x95a0 movq (%r15), %rsi movq 0x8(%r15), %rdx movq 0x2d47f(%rip), %rdi # 0x59fe8 callq 0x95a0 movq %rax, %rbp leaq 0x16e67(%rip), %rsi # 0x439df movl $0x1c, %edx movq %rax, %rdi callq 0x95a0 movq (%r13), %rsi movq 0x8(%r13), %rdx movq %rbp, %rdi callq 0x95a0 leaq 0x16e60(%rip), %rsi # 0x439fc movl $0x2, %edx movq %rax, %rdi callq 0x95a0 leaq 0x10(%rsp), %rdi callq 0x1af7e movq (%r12), %rsi movq 0x8(%r12), %rdx movq %rbx, %rdi callq 0x95a0 movq %rax, %r12 leaq 0x16e80(%rip), %rsi # 0x43a4e movl $0x1, %edx movq %rax, %rdi callq 0x95a0 movq (%r15), %rsi movq 0x8(%r15), %rdx movq %r12, %rdi callq 0x95a0 movq %rax, %r15 leaq 0x16e57(%rip), %rsi # 0x43a4b movl $0x4, %edx movq %rax, %rdi callq 0x95a0 leaq 0x10(%rsp), %rdi movq %r14, %rsi callq 0x2c8ec movq 0x10(%rsp), %rsi movq 0x18(%rsp), %rdx movq %r15, %rdi callq 0x95a0 leaq 0x16e27(%rip), %rsi # 0x43a4e movl $0x1, %edx movq %rax, %rdi callq 0x95a0 leaq 0x20(%rsp), %rax movq -0x10(%rax), %rdi cmpq %rax, %rdi je 0x2cc4f movq 0x20(%rsp), %rsi incq %rsi callq 0x94c0 cmpb $0x0, 0xc(%rsp) je 0x2cc6a leaq 0x16df4(%rip), %rsi # 0x43a51 movl $0x2, %edx movq %rbx, %rdi callq 0x95a0 leaq 0x30(%rsp), %rdi callq 0x34dfe addq $0x48, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq jmp 0x2ccb8 jmp 0x2ccb8 jmp 0x2ccb8 movq %rax, %rbx leaq 0x20(%rsp), %rax movq -0x10(%rax), %rdi cmpq %rax, %rdi je 0x2ccbb movq 0x20(%rsp), %rsi incq %rsi callq 0x94c0 jmp 0x2ccbb movq %rax, %rbx leaq 0x10(%rsp), %rdi callq 0x1af7e jmp 0x2ccbb movq %rax, %rbx leaq 0x30(%rsp), %rdi callq 0x34dfe movq %rbx, %rdi callq 0x99a0 nop
_ZN7testing8internal25JsonUnitTestResultPrinter13OutputJsonKeyEPSoRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESA_SA_SA_b: push rbp push r15 push r14 push r13 push r12 push rbx sub rsp, 48h mov [rsp+78h+var_6C], r9d mov r12, r8 mov r14, rcx mov r15, rdx mov r13, rsi mov rbx, rdi lea rbp, [rsp+78h+var_48] mov rdi, rbp call _ZN7testingL37GetReservedOutputAttributesForElementERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE; testing::GetReservedOutputAttributesForElement(std::string const&) mov rdi, [rbp+0] mov rsi, [rbp+8] mov rdx, r15 call _ZSt9__find_ifIN9__gnu_cxx17__normal_iteratorIPKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt6vectorIS7_SaIS7_EEEENS0_5__ops16_Iter_equals_valIS8_EEET_SH_SH_T0_St26random_access_iterator_tag; std::__find_if<__gnu_cxx::__normal_iterator<std::string const*,std::vector<std::string>>,__gnu_cxx::__ops::_Iter_equals_val<std::string const>>(__gnu_cxx::__normal_iterator<std::string const*,std::vector<std::string>>,__gnu_cxx::__normal_iterator<std::string const*,std::vector<std::string>>,__gnu_cxx::__ops::_Iter_equals_val<std::string const>,std::random_access_iterator_tag) cmp rax, [rsp+78h+var_40] jnz loc_2CBB3 lea rdx, aWorkspaceLlm4b_3; "/workspace/llm4binary/github/2025_star3"... lea rdi, [rsp+78h+var_68] mov esi, 3 mov ecx, 11F1h call _ZN7testing8internal8GTestLogC2ENS0_16GTestLogSeverityEPKci; testing::internal::GTestLog::GTestLog(testing::internal::GTestLogSeverity,char const*,int) mov rdi, cs:_ZSt4cerr_ptr lea rsi, aConditionStdFi; "Condition std::find(allowed_names.begin"... mov edx, 65h ; 'e' 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, cs:_ZSt4cerr_ptr lea rsi, aKey; "Key \"" mov edx, 5 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, [r15] mov rdx, [r15+8] mov rdi, cs:_ZSt4cerr_ptr call __ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l; std::__ostream_insert<char,std::char_traits<char>>(std::ostream &,char const*,long) mov rbp, rax lea rsi, aIsNotAllowedFo_0; "\" is not allowed for value \"" mov edx, 1Ch 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, [r13+0] mov rdx, [r13+8] mov rdi, rbp 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_439FC; "\"." 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) lea rdi, [rsp+78h+var_68]; this call _ZN7testing8internal8GTestLogD2Ev; testing::internal::GTestLog::~GTestLog() loc_2CBB3: mov rsi, [r12] mov rdx, [r12+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) mov r12, rax lea rsi, aFailure_0+0Fh; "\"" 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 rsi, [r15] mov rdx, [r15+8] mov rdi, r12 call __ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l; std::__ostream_insert<char,std::char_traits<char>>(std::ostream &,char const*,long) mov r15, rax lea rsi, aFailure_0+0Ch; "\": \"" mov edx, 4 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) lea rdi, [rsp+78h+var_68]; int mov rsi, r14; int call _ZN7testing8internal25JsonUnitTestResultPrinter10EscapeJsonERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE; testing::internal::JsonUnitTestResultPrinter::EscapeJson(std::string const&) mov rsi, qword ptr [rsp+78h+var_68] mov rdx, [rsp+78h+var_60] mov rdi, r15 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, aFailure_0+0Fh; "\"" 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) lea rax, [rsp+78h+var_58] mov rdi, [rax-10h]; void * cmp rdi, rax jz short loc_2CC4F mov rsi, [rsp+78h+var_58] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_2CC4F: cmp byte ptr [rsp+78h+var_6C], 0 jz short loc_2CC6A lea rsi, asc_43A50+1; ",\n" mov edx, 2 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) loc_2CC6A: lea rdi, [rsp+78h+var_48]; void * call _ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EED2Ev; std::vector<std::string>::~vector() add rsp, 48h pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn jmp short loc_2CCB8 jmp short loc_2CCB8 jmp short loc_2CCB8 mov rbx, rax lea rax, [rsp+arg_18] mov rdi, [rax-10h]; void * cmp rdi, rax jz short loc_2CCBB mov rsi, [rsp+arg_18] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) jmp short loc_2CCBB mov rbx, rax lea rdi, [rsp+arg_8]; this call _ZN7testing8internal8GTestLogD2Ev; testing::internal::GTestLog::~GTestLog() jmp short loc_2CCBB loc_2CCB8: mov rbx, rax loc_2CCBB: lea rdi, [rsp+arg_28]; void * call _ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EED2Ev; std::vector<std::string>::~vector() mov rdi, rbx call __Unwind_Resume
void testing::internal::JsonUnitTestResultPrinter::OutputJsonKey( long long a1, _QWORD *a2, _QWORD *a3, _QWORD *a4, _QWORD *a5, char a6) { long long v9; // rax long long v10; // rbp long long v11; // rax long long v12; // r12 long long v13; // r15 long long v14; // rax int v16[2]; // [rsp+10h] [rbp-68h] BYREF long long v17; // [rsp+18h] [rbp-60h] long long v18; // [rsp+20h] [rbp-58h] BYREF long long v19; // [rsp+30h] [rbp-48h] BYREF long long v20; // [rsp+38h] [rbp-40h] testing::GetReservedOutputAttributesForElement((long long)&v19, a2); v9 = std::__find_if<__gnu_cxx::__normal_iterator<std::string const*,std::vector<std::string>>,__gnu_cxx::__ops::_Iter_equals_val<std::string const>>( v19, v20, a3); if ( v9 == v20 ) { testing::internal::GTestLog::GTestLog( v16, 3, "/workspace/llm4binary/github/2025_star3/seiftnesse[P]memoryallocator/build_O3/_deps/googletest-src/googletest/src/gtest.cc", 4593); std::__ostream_insert<char,std::char_traits<char>>( &std::cerr, "Condition std::find(allowed_names.begin(), allowed_names.end(), name) != allowed_names.end() failed. ", 101LL); std::__ostream_insert<char,std::char_traits<char>>(&std::cerr, "Key \"", 5LL); v10 = std::__ostream_insert<char,std::char_traits<char>>(&std::cerr, *a3, a3[1]); std::__ostream_insert<char,std::char_traits<char>>(v10, "\" is not allowed for value \"", 28LL); v11 = std::__ostream_insert<char,std::char_traits<char>>(v10, *a2, a2[1]); std::__ostream_insert<char,std::char_traits<char>>(v11, "\".", 2LL); testing::internal::GTestLog::~GTestLog((testing::internal::GTestLog *)v16); } v12 = std::__ostream_insert<char,std::char_traits<char>>(a1, *a5, a5[1]); std::__ostream_insert<char,std::char_traits<char>>(v12, "\"", 1LL); v13 = std::__ostream_insert<char,std::char_traits<char>>(v12, *a3, a3[1]); std::__ostream_insert<char,std::char_traits<char>>(v13, "\": \"", 4LL); testing::internal::JsonUnitTestResultPrinter::EscapeJson((long long)v16, a4); v14 = std::__ostream_insert<char,std::char_traits<char>>(v13, *(_QWORD *)v16, v17); std::__ostream_insert<char,std::char_traits<char>>(v14, "\"", 1LL); if ( *(long long **)v16 != &v18 ) operator delete(*(void **)v16, v18 + 1); if ( a6 ) std::__ostream_insert<char,std::char_traits<char>>(a1, ",\n", 2LL); std::vector<std::string>::~vector(&v19); }
OutputJsonKey: PUSH RBP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0x48 MOV dword ptr [RSP + 0xc],R9D MOV R12,R8 MOV R14,RCX MOV R15,RDX MOV R13,RSI MOV RBX,RDI LEA RBP,[RSP + 0x30] MOV RDI,RBP CALL 0x00129ba4 MOV RDI,qword ptr [RBP] MOV RSI,qword ptr [RBP + 0x8] LAB_0012cafd: MOV RDX,R15 CALL 0x0013e2aa CMP RAX,qword ptr [RSP + 0x38] JNZ 0x0012cbb3 LAB_0012cb10: LEA RDX,[0x142a6b] LEA RDI,[RSP + 0x10] MOV ESI,0x3 MOV ECX,0x11f1 CALL 0x0011ae3c LAB_0012cb2b: MOV RDI,qword ptr [0x00159fe8] LEA RSI,[0x143782] MOV EDX,0x65 CALL 0x001095a0 MOV RDI,qword ptr [0x00159fe8] LEA RSI,[0x1439d9] MOV EDX,0x5 CALL 0x001095a0 MOV RSI,qword ptr [R15] MOV RDX,qword ptr [R15 + 0x8] MOV RDI,qword ptr [0x00159fe8] CALL 0x001095a0 MOV RBP,RAX LEA RSI,[0x1439df] MOV EDX,0x1c MOV RDI,RAX CALL 0x001095a0 MOV RSI,qword ptr [R13] MOV RDX,qword ptr [R13 + 0x8] MOV RDI,RBP CALL 0x001095a0 LEA RSI,[0x1439fc] MOV EDX,0x2 MOV RDI,RAX CALL 0x001095a0 LEA RDI,[RSP + 0x10] CALL 0x0011af7e LAB_0012cbb3: MOV RSI,qword ptr [R12] MOV RDX,qword ptr [R12 + 0x8] LAB_0012cbbc: MOV RDI,RBX CALL 0x001095a0 MOV R12,RAX LEA RSI,[0x143a4e] MOV EDX,0x1 MOV RDI,RAX CALL 0x001095a0 MOV RSI,qword ptr [R15] MOV RDX,qword ptr [R15 + 0x8] MOV RDI,R12 CALL 0x001095a0 MOV R15,RAX LEA RSI,[0x143a4b] MOV EDX,0x4 MOV RDI,RAX CALL 0x001095a0 LAB_0012cc01: LEA RDI,[RSP + 0x10] MOV RSI,R14 CALL 0x0012c8ec MOV RSI,qword ptr [RSP + 0x10] MOV RDX,qword ptr [RSP + 0x18] LAB_0012cc18: MOV RDI,R15 CALL 0x001095a0 LEA RSI,[0x143a4e] MOV EDX,0x1 MOV RDI,RAX CALL 0x001095a0 LEA RAX,[RSP + 0x20] MOV RDI,qword ptr [RAX + -0x10] CMP RDI,RAX JZ 0x0012cc4f MOV RSI,qword ptr [RSP + 0x20] INC RSI CALL 0x001094c0 LAB_0012cc4f: CMP byte ptr [RSP + 0xc],0x0 JZ 0x0012cc6a LAB_0012cc56: LEA RSI,[0x143a51] MOV EDX,0x2 MOV RDI,RBX CALL 0x001095a0 LAB_0012cc6a: LEA RDI,[RSP + 0x30] CALL 0x00134dfe ADD RSP,0x48 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET
/* testing::internal::JsonUnitTestResultPrinter::OutputJsonKey(std::ostream*, std::__cxx11::string const&, std::__cxx11::string const&, std::__cxx11::string const&, std::__cxx11::string const&, bool) */ void testing::internal::JsonUnitTestResultPrinter::OutputJsonKey (ostream *param_1,string *param_2,string *param_3,string *param_4,string *param_5, bool param_6) { long lVar1; ostream *poVar2; long *local_68; long local_60; long local_58 [2]; int8 local_48; long local_40; GetReservedOutputAttributesForElement((testing *)&local_48,param_2); /* try { // try from 0012cafd to 0012cb04 has its CatchHandler @ 0012cc87 */ lVar1 = std:: __find_if<__gnu_cxx::__normal_iterator<std::__cxx11::string_const*,std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>>,__gnu_cxx::__ops::_Iter_equals_val<std::__cxx11::string_const>> (local_48,local_40,param_3); if (lVar1 == local_40) { /* try { // try from 0012cb10 to 0012cb2a has its CatchHandler @ 0012cc83 */ GTestLog::GTestLog((GTestLog *)&local_68,3, "/workspace/llm4binary/github/2025_star3/seiftnesse[P]memoryallocator/build_O3/_deps/googletest-src/googletest/src/gtest.cc" ,0x11f1); /* try { // try from 0012cb2b to 0012cba8 has its CatchHandler @ 0012cca9 */ std::__ostream_insert<char,std::char_traits<char>> ((ostream *)PTR_cerr_00159fe8, "Condition std::find(allowed_names.begin(), allowed_names.end(), name) != allowed_names.end() failed. " ,0x65); std::__ostream_insert<char,std::char_traits<char>>((ostream *)PTR_cerr_00159fe8,"Key \"",5); poVar2 = std::__ostream_insert<char,std::char_traits<char>> ((ostream *)PTR_cerr_00159fe8,*(char **)param_3,*(long *)(param_3 + 8)); std::__ostream_insert<char,std::char_traits<char>>(poVar2,"\" is not allowed for value \"",0x1c) ; poVar2 = std::__ostream_insert<char,std::char_traits<char>> (poVar2,*(char **)param_2,*(long *)(param_2 + 8)); std::__ostream_insert<char,std::char_traits<char>>(poVar2,"\".",2); GTestLog::~GTestLog((GTestLog *)&local_68); } /* try { // try from 0012cbbc to 0012cc00 has its CatchHandler @ 0012ccb8 */ poVar2 = std::__ostream_insert<char,std::char_traits<char>> (param_1,*(char **)param_5,*(long *)(param_5 + 8)); std::__ostream_insert<char,std::char_traits<char>>(poVar2,"\"",1); poVar2 = std::__ostream_insert<char,std::char_traits<char>> (poVar2,*(char **)param_3,*(long *)(param_3 + 8)); std::__ostream_insert<char,std::char_traits<char>>(poVar2,"\": \"",4); /* try { // try from 0012cc01 to 0012cc0d has its CatchHandler @ 0012cc85 */ EscapeJson((JsonUnitTestResultPrinter *)&local_68,param_4); /* try { // try from 0012cc18 to 0012cc33 has its CatchHandler @ 0012cc89 */ poVar2 = std::__ostream_insert<char,std::char_traits<char>>(poVar2,(char *)local_68,local_60); std::__ostream_insert<char,std::char_traits<char>>(poVar2,"\"",1); if (local_68 != local_58) { operator_delete(local_68,local_58[0] + 1); } if (param_6) { /* try { // try from 0012cc56 to 0012cc69 has its CatchHandler @ 0012ccb8 */ std::__ostream_insert<char,std::char_traits<char>>(param_1,",\n",2); } std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>::~vector ((vector<std::__cxx11::string,std::allocator<std::__cxx11::string>> *)&local_48); return; }
34,799
break_str_into_lines(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, unsigned long)
monkey531[P]llama/common/arg.cpp
static std::vector<std::string> break_str_into_lines(std::string input, size_t max_char_per_line) { std::vector<std::string> result; std::istringstream iss(input); std::string line; auto add_line = [&](const std::string& l) { if (l.length() <= max_char_per_line) { result.push_back(l); } else { std::istringstream line_stream(l); std::string word, current_line; while (line_stream >> word) { if (current_line.length() + !current_line.empty() + word.length() > max_char_per_line) { if (!current_line.empty()) result.push_back(current_line); current_line = word; } else { current_line += (!current_line.empty() ? " " : "") + word; } } if (!current_line.empty()) result.push_back(current_line); } }; while (std::getline(iss, line)) { add_line(line); } return result; }
O0
cpp
break_str_into_lines(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, unsigned long): subq $0x208, %rsp # imm = 0x208 movq %rsi, 0x20(%rsp) movq %rdi, 0x10(%rsp) movq %rdi, %rax movq %rax, 0x18(%rsp) movq %rdi, 0x200(%rsp) movq %rsi, 0x1f8(%rsp) movq %rdx, 0x1f0(%rsp) movb $0x0, 0x1ef(%rsp) callq 0x63330 movq 0x20(%rsp), %rsi leaq 0x68(%rsp), %rdi movl $0x8, %edx callq 0x5a830 jmp 0x688a4 leaq 0x38(%rsp), %rdi callq 0x5a610 movq 0x10(%rsp), %rax leaq 0x1f0(%rsp), %rcx movq %rcx, 0x28(%rsp) movq %rax, 0x30(%rsp) leaq 0x68(%rsp), %rdi leaq 0x38(%rsp), %rsi callq 0x5a900 movq %rax, 0x8(%rsp) jmp 0x688db movq 0x8(%rsp), %rdi movq (%rdi), %rax movq -0x18(%rax), %rax addq %rax, %rdi callq 0x5a650 movb %al, 0x7(%rsp) jmp 0x688f5 movb 0x7(%rsp), %al testb $0x1, %al jne 0x688ff jmp 0x68946 leaq 0x28(%rsp), %rdi leaq 0x38(%rsp), %rsi callq 0x82090 jmp 0x68910 jmp 0x688c5 movq %rax, %rcx movl %edx, %eax movq %rcx, 0x60(%rsp) movl %eax, 0x5c(%rsp) jmp 0x68983 movq %rax, %rcx movl %edx, %eax movq %rcx, 0x60(%rsp) movl %eax, 0x5c(%rsp) leaq 0x38(%rsp), %rdi callq 0x5b588 leaq 0x68(%rsp), %rdi callq 0x5a9f0 jmp 0x68983 movb $0x1, 0x1ef(%rsp) leaq 0x38(%rsp), %rdi callq 0x5b588 leaq 0x68(%rsp), %rdi callq 0x5a9f0 testb $0x1, 0x1ef(%rsp) jne 0x68976 movq 0x10(%rsp), %rdi callq 0x63380 movq 0x18(%rsp), %rax addq $0x208, %rsp # imm = 0x208 retq movq 0x10(%rsp), %rdi callq 0x63380 movq 0x60(%rsp), %rdi callq 0x5abf0 nopw (%rax,%rax)
_ZL20break_str_into_linesNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEm: sub rsp, 208h mov [rsp+208h+var_1E8], rsi mov [rsp+208h+var_1F8], rdi mov rax, rdi mov [rsp+208h+var_1F0], rax mov [rsp+208h+var_8], rdi mov [rsp+208h+var_10], rsi mov [rsp+208h+var_18], rdx mov [rsp+208h+var_19], 0 call _ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EEC2Ev; std::vector<std::string>::vector(void) mov rsi, [rsp+208h+var_1E8] lea rdi, [rsp+208h+var_1A0] mov edx, 8 call __ZNSt7__cxx1119basic_istringstreamIcSt11char_traitsIcESaIcEEC1ERKNS_12basic_stringIcS2_S3_EESt13_Ios_Openmode; std::istringstream::basic_istringstream(std::string const&,std::_Ios_Openmode) jmp short $+2 loc_688A4: lea rdi, [rsp+208h+var_1D0] call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC1Ev; std::string::basic_string(void) mov rax, [rsp+208h+var_1F8] lea rcx, [rsp+208h+var_18] mov [rsp+208h+var_1E0], rcx mov [rsp+208h+var_1D8], rax loc_688C5: lea rdi, [rsp+208h+var_1A0] lea rsi, [rsp+208h+var_1D0] call __ZSt7getlineIcSt11char_traitsIcESaIcEERSt13basic_istreamIT_T0_ES7_RNSt7__cxx1112basic_stringIS4_S5_T1_EE; std::getline<char,std::char_traits<char>,std::allocator<char>>(std::istream &,std::string &) mov [rsp+208h+var_200], rax jmp short $+2 loc_688DB: mov rdi, [rsp+208h+var_200] mov rax, [rdi] mov rax, [rax-18h] add rdi, rax call __ZNKSt9basic_iosIcSt11char_traitsIcEEcvbEv; std::ios::operator bool(void) mov [rsp+208h+var_201], al jmp short $+2 loc_688F5: mov al, [rsp+208h+var_201] test al, 1 jnz short loc_688FF jmp short loc_68946 loc_688FF: lea rdi, [rsp+208h+var_1E0] lea rsi, [rsp+208h+var_1D0] call _ZZL20break_str_into_linesNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEmENK3$_0clERKS4_; break_str_into_lines(std::string,ulong)::$_0::operator()(std::string const&) jmp short $+2 loc_68910: jmp short loc_688C5 mov rcx, rax mov eax, edx mov [rsp+arg_58], rcx mov [rsp+arg_54], eax jmp short loc_68983 mov rcx, rax mov eax, edx mov [rsp+arg_58], rcx mov [rsp+arg_54], eax lea rdi, [rsp+arg_30]; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string() lea rdi, [rsp+arg_60] call __ZNSt7__cxx1119basic_istringstreamIcSt11char_traitsIcESaIcEED1Ev; std::istringstream::~istringstream() jmp short loc_68983 loc_68946: mov [rsp+208h+var_19], 1 lea rdi, [rsp+208h+var_1D0]; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string() lea rdi, [rsp+208h+var_1A0] call __ZNSt7__cxx1119basic_istringstreamIcSt11char_traitsIcESaIcEED1Ev; std::istringstream::~istringstream() test [rsp+208h+var_19], 1 jnz short loc_68976 mov rdi, [rsp+208h+var_1F8] call _ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EED2Ev; std::vector<std::string>::~vector() loc_68976: mov rax, [rsp+208h+var_1F0] add rsp, 208h retn loc_68983: mov rdi, [rsp+arg_8] call _ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EED2Ev; std::vector<std::string>::~vector() mov rdi, [rsp+arg_58] call __Unwind_Resume
long long break_str_into_lines(long long a1, long long a2, long long a3) { int v3; // edx int v4; // ecx int v5; // r8d int v6; // r9d int v8; // [rsp+0h] [rbp-208h] _QWORD *v9; // [rsp+8h] [rbp-200h] long long *v10; // [rsp+10h] [rbp-1F8h] long long v11; // [rsp+18h] [rbp-1F0h] char v12; // [rsp+20h] [rbp-1E8h] _QWORD *v13; // [rsp+28h] [rbp-1E0h] BYREF long long i; // [rsp+30h] [rbp-1D8h] _DWORD v15[4]; // [rsp+38h] [rbp-1D0h] BYREF long long v16; // [rsp+48h] [rbp-1C0h] char v17; // [rsp+50h] [rbp-1B8h] int v18; // [rsp+58h] [rbp-1B0h] int v19; // [rsp+60h] [rbp-1A8h] int v20; // [rsp+68h] [rbp-1A0h] BYREF char v21; // [rsp+70h] [rbp-198h] int v22; // [rsp+78h] [rbp-190h] int v23; // [rsp+80h] [rbp-188h] int v24; // [rsp+88h] [rbp-180h] char v25; // [rsp+90h] [rbp-178h] char v26; // [rsp+1EFh] [rbp-19h] _QWORD v27[3]; // [rsp+1F0h] [rbp-18h] BYREF v12 = a2; v10 = (long long *)a1; v11 = a1; v27[2] = a1; v27[1] = a2; v27[0] = a3; v26 = 0; std::vector<std::string>::vector(a1); std::istringstream::basic_istringstream(&v20, a2, 8LL); std::string::basic_string(v15); v13 = v27; for ( i = a1; ; break_str_into_lines(std::string,unsigned long)::$_0::operator()( (unsigned int)&v13, (unsigned int)v15, v3, v4, v5, v6, v8, (_DWORD)v9, (_DWORD)v10, v11, v12, (_DWORD)v13, i, v15[0], v15[2], v16, v17, v18, v19, v20, v21, v22, v23, v24, v25) ) { v9 = (_QWORD *)std::getline<char,std::char_traits<char>,std::allocator<char>>(&v20, v15); if ( (std::ios::operator bool((char *)v9 + *(_QWORD *)(*v9 - 24LL)) & 1) == 0 ) break; } v26 = 1; std::string::~string(v15); std::istringstream::~istringstream(&v20); if ( (v26 & 1) == 0 ) std::vector<std::string>::~vector(v10); return v11; }
break_str_into_lines: SUB RSP,0x208 MOV qword ptr [RSP + 0x20],RSI MOV qword ptr [RSP + 0x10],RDI MOV RAX,RDI MOV qword ptr [RSP + 0x18],RAX MOV qword ptr [RSP + 0x200],RDI MOV qword ptr [RSP + 0x1f8],RSI MOV qword ptr [RSP + 0x1f0],RDX MOV byte ptr [RSP + 0x1ef],0x0 CALL 0x00163330 MOV RSI,qword ptr [RSP + 0x20] LAB_00168893: LEA RDI,[RSP + 0x68] MOV EDX,0x8 CALL 0x0015a830 JMP 0x001688a4 LAB_001688a4: LEA RDI,[RSP + 0x38] CALL 0x0015a610 MOV RAX,qword ptr [RSP + 0x10] LEA RCX,[RSP + 0x1f0] MOV qword ptr [RSP + 0x28],RCX MOV qword ptr [RSP + 0x30],RAX LAB_001688c5: LEA RDI,[RSP + 0x68] LEA RSI,[RSP + 0x38] CALL 0x0015a900 MOV qword ptr [RSP + 0x8],RAX JMP 0x001688db LAB_001688db: MOV RDI,qword ptr [RSP + 0x8] MOV RAX,qword ptr [RDI] MOV RAX,qword ptr [RAX + -0x18] ADD RDI,RAX CALL 0x0015a650 MOV byte ptr [RSP + 0x7],AL JMP 0x001688f5 LAB_001688f5: MOV AL,byte ptr [RSP + 0x7] TEST AL,0x1 JNZ 0x001688ff JMP 0x00168946 LAB_001688ff: LEA RDI,[RSP + 0x28] LEA RSI,[RSP + 0x38] CALL 0x00182090 LAB_0016890e: JMP 0x00168910 LAB_00168910: JMP 0x001688c5 LAB_00168946: MOV byte ptr [RSP + 0x1ef],0x1 LEA RDI,[RSP + 0x38] CALL 0x0015b588 LEA RDI,[RSP + 0x68] CALL 0x0015a9f0 TEST byte ptr [RSP + 0x1ef],0x1 JNZ 0x00168976 MOV RDI,qword ptr [RSP + 0x10] CALL 0x00163380 LAB_00168976: MOV RAX,qword ptr [RSP + 0x18] ADD RSP,0x208 RET
/* break_str_into_lines(std::__cxx11::string, unsigned long) */ vector<std::__cxx11::string,std::allocator<std::__cxx11::string>> * break_str_into_lines (vector<std::__cxx11::string,std::allocator<std::__cxx11::string>> *param_1, int8 param_2,int8 param_3) { bool bVar1; istream *piVar2; int8 *local_1e0; vector<std::__cxx11::string,std::allocator<std::__cxx11::string>> *local_1d8; string local_1d0 [48]; istringstream local_1a0 [391]; byte local_19; int8 local_18; int8 local_10; vector<std::__cxx11::string,std::allocator<std::__cxx11::string>> *local_8; local_19 = 0; local_18 = param_3; local_10 = param_2; local_8 = param_1; std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>::vector(param_1); /* try { // try from 00168893 to 001688a1 has its CatchHandler @ 00168912 */ std::__cxx11::istringstream::istringstream(local_1a0,param_2,8); std::__cxx11::string::string(local_1d0); local_1e0 = &local_18; local_1d8 = param_1; while( true ) { /* try { // try from 001688c5 to 0016890d has its CatchHandler @ 00168922 */ piVar2 = std::getline<char,std::char_traits<char>,std::allocator<char>> ((istream *)local_1a0,local_1d0); bVar1 = std::ios::operator_cast_to_bool((ios *)(piVar2 + *(long *)(*(long *)piVar2 + -0x18))); if (!bVar1) break; break_str_into_lines(std::__cxx11::string,unsigned_long)::$_0::operator() ((__0 *)&local_1e0,local_1d0); } local_19 = 1; std::__cxx11::string::~string(local_1d0); std::__cxx11::istringstream::~istringstream(local_1a0); if ((local_19 & 1) == 0) { std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>::~vector(param_1); } return param_1; }